/* BuyTisha - minimal custom styles on top of Bootstrap 5.3.
   Bootstrap handles layout, grid, spacing and responsiveness. */
:root{
  --bt-orange:#ff9800;
  --bt-dark:#232f3e;
  --bt-muted:#97979d;
  --bt-border:rgba(155,155,155,.14);
}
html{overflow-wrap:anywhere;-webkit-text-size-adjust:100%}
body{background:#f5f6f7;color:#626262;font-family:Nunito,Arial,sans-serif;overflow-x:hidden}
a{text-decoration:none}
a:hover{opacity:.85}
img{max-width:100%;height:auto}

/* Header */
#header-wrapper{background:var(--bt-dark);color:#fff}
#header-wrapper .navbar{min-height:60px}
#header-wrapper .navbar-brand img{max-height:34px;width:auto}
#header-wrapper .nav-link{color:#fff!important;font-weight:600}
#header-wrapper .nav-link:hover{color:var(--bt-orange)!important}
#header-wrapper .navbar-toggler{border-color:rgba(255,255,255,.25);padding:.35rem .6rem}
#header-wrapper .navbar-toggler-icon{filter:invert(1)}
.headerbar-wrap{background:#37475a}
.headerbar-wrap .nav-link{color:#fff;font-size:14px;padding:.45rem .75rem!important}
.headerbar-wrap .nav-link:hover{color:var(--bt-orange)!important}
.nav-button{background:var(--bt-orange);color:#fff}

/* Hero */
.hero{background:linear-gradient(120deg,#232f3e,#37475a);color:#fff;padding:2rem;border-radius:.5rem;margin:1.5rem 0}
.hero h1{font-size:clamp(1.5rem,4vw,2rem);color:#fff;margin-bottom:.4rem}
.hero p{color:#ddd;margin-bottom:0}

/* Product cards */
.product .entry-image-link{display:block;width:100%;aspect-ratio:4/3;overflow:hidden;border-radius:.25rem;background:#fff}
.product .entry-image{display:block;width:100%;height:100%;background-size:contain;background-position:center;background-repeat:no-repeat}
.product .entry-image.placeholder{background-size:cover}
.product .entry-image.placeholder.tone-1{background:linear-gradient(135deg,#ffe0b2,#ff9800)}
.product .entry-image.placeholder.tone-2{background:linear-gradient(135deg,#d7ccc8,#8d6e63)}
.product .entry-image.placeholder.tone-3{background:linear-gradient(135deg,#c8e6c9,#4caf50)}
.product .entry-image.placeholder.tone-4{background:linear-gradient(135deg,#bbdefb,#2196f3)}
.product .entry-image.placeholder.tone-5{background:linear-gradient(135deg,#e1bee7,#9c27b0)}
.entry-title{color:var(--bt-dark);font-weight:700;line-height:1.35}
/* Card titles only: keep long product names to two lines. Post <h1> is untouched. */
.product .entry-title{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
.entry-title a{color:inherit}
.entry-title a:hover{color:var(--bt-orange)}
.product-info{font-size:.8rem;color:var(--bt-muted)}
.empty{background:#fff;border-radius:.5rem;padding:2rem;text-align:center}

/* Round page buttons (brand colour, white numbers) */
.pagination{--bs-pagination-padding-x:.7rem;gap:.4rem;flex-wrap:wrap}
.pagination .page-link{border:0;border-radius:50%!important;width:2.4rem;height:2.4rem;display:flex;align-items:center;justify-content:center;background:var(--bt-dark);color:#fff;font-weight:700;padding:0}
.pagination .page-item.active .page-link{background:var(--bt-orange);color:#fff}
.pagination .page-item.nav-link-wrap .page-link{width:auto;border-radius:1.2rem!important;padding:0 1rem;white-space:nowrap}
.pagination .page-link:hover{background:var(--bt-orange);color:#fff}
.pagination .page-item.disabled .page-link{background:var(--bt-dark);color:#fff;opacity:.55}

/* Sidebar widgets */
.side-widget{background:#fff;border-radius:.5rem;padding:1rem;margin-bottom:1.25rem;box-shadow:0 0 10px rgba(0,0,0,.03);overflow:hidden}
.side-widget .widget-title{font-size:1rem;color:var(--bt-dark);font-weight:700;margin-bottom:.75rem}
.side-cats,.side-posts{list-style:none;padding:0;margin:0}
.side-cats li,.side-posts li{border-bottom:1px solid var(--bt-border);padding:.45rem 0}
.side-cats li:last-child,.side-posts li:last-child{border-bottom:0}
.side-cats a,.side-posts a{color:#626262}
.side-cats a:hover,.side-posts a:hover{color:var(--bt-orange)}
.ad-slot{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(155,155,155,.05);border:1px dashed var(--bt-border);border-radius:.5rem;color:var(--bt-muted);text-align:center}
.side-widget iframe,.side-widget ins{max-width:100%}

/* Post / page content */
.item-post-inner{background:#fff;border-radius:.5rem;padding:1.25rem;box-shadow:0 0 10px rgba(0,0,0,.03)}
/* Post hero image: keep it a normal size, centred (was filling the whole column). */
.gallery{text-align:center}
.gallery img{display:block;width:100%;max-width:420px;height:auto;margin:0 auto;border-radius:.5rem}
.item-post h1.entry-title{font-size:clamp(1.5rem,5vw,2.2rem);line-height:1.25;overflow-wrap:anywhere;word-break:break-word}
.post-body{font-size:1rem;line-height:1.65;overflow-wrap:anywhere}
.post-body p{margin-bottom:1.25rem}
.post-body h1,.post-body h2,.post-body h3{color:var(--bt-dark);margin-bottom:1rem;overflow-wrap:anywhere}
.post-body h2{font-size:1.4rem}
.post-body h3{font-size:1.2rem}
.post-body .table-responsive table{margin-bottom:1.25rem}
.affiliate-disclosure{font-size:.8rem;color:var(--bt-muted);border-top:1px solid var(--bt-border);padding-top:.9rem;margin-top:1.75rem}
.post-share a{background:var(--bt-orange);color:#fff;padding:.45rem .85rem;border-radius:.25rem;font-size:.85rem}

/* Amazon buttons embedded in post HTML */
.amz-btn{display:inline-block;position:relative;text-decoration:none!important;line-height:1.05;box-sizing:border-box;max-width:100%;padding:12px 30px 19px;background:#232321;color:#fff;border:3px solid #fff;border-radius:999px;min-width:270px}
.amz-btn .amz-top{display:block;font-size:15px}
.amz-btn .amz-brand{display:inline-block;position:relative;font-size:38px;font-weight:800;letter-spacing:-2px;white-space:nowrap;padding-right:24px}
.amz-btn .amz-smile{position:absolute;left:5%;bottom:-7px;width:64%;height:13px;border-bottom:5px solid #ff9900;border-radius:0 0 50% 50%;transform:rotate(-4deg)}
.amz-btn .amz-arrow{position:absolute;right:2px;top:50%;margin-top:-18px;color:#ff9900;font-size:36px;font-weight:700}
.amz-orange{background:#ff9900;border:0;padding:11px 20px 17px;min-width:230px}
.amz-orange .amz-brand{font-size:27px;padding-right:20px}
.amz-orange .amz-smile{border-bottom-color:#1a1a1a}
.amz-orange .amz-arrow{color:#fff;font-size:27px;margin-top:-13px}

/* Footer */
#footer-wrapper{background:var(--bt-dark);color:#fff;margin-top:2rem}
.footer-logo img{max-height:34px;width:auto;height:auto}
.footer-logo{margin-bottom:.5rem}
.footer-info .image-caption{color:#ddd;margin-top:.5rem}
.footer-bar{background:#1c2634;padding:1.25rem 0;color:#fff}
.footer-bar a{color:#fff}
.footer-menu{display:flex;flex-wrap:wrap;gap:1rem}

@media(max-width:575.98px){
  .hero{padding:1.5rem 1rem}
  .item-post-inner{padding:1rem}
  .gallery img{max-width:280px}
  .amz-btn{width:100%;min-width:0;padding:10px 16px 16px}
  .amz-btn .amz-brand{font-size:24px;letter-spacing:-1px;padding-right:18px}
  .amz-btn .amz-arrow{font-size:24px;margin-top:-12px}
  .amz-orange{width:100%;padding:9px 14px 14px}
  .amz-orange .amz-brand{font-size:20px}
  .pagination{gap:.25rem}
  .pagination .page-link{width:2rem;height:2rem;font-size:.78rem}
  .pagination .page-item.nav-link-wrap .page-link{padding:0 .55rem;font-size:.72rem;white-space:nowrap}
  .footer-bar{text-align:center}
}
