/* Source: thb-header-index-shared.css */
/* Canonical header styles extracted from the current index.php. Do not add page-specific header overrides here. */

/* Reset ber-scope: menetralkan aturan elemen lama hanya di dalam #thb-new */
html body :where(#thb-new) *,html body :where(#thb-new) ::before,html body :where(#thb-new) ::after{box-sizing:border-box}
html body :where(#thb-new) :is(button,input,select,textarea){font:inherit;color:inherit;margin:0;padding:0;background:none;border:0;border-radius:0;box-shadow:none;min-height:0;height:auto;letter-spacing:normal;text-transform:none;cursor:pointer}
html body :where(#thb-new) :is(h1,h2,h3,p,ul,ol,li,figure){margin:0;padding:0;font:inherit;letter-spacing:normal;text-transform:none;list-style:none}
html body :where(#thb-new) :is(section,header,main,article,nav,form){margin:0;padding:0;max-width:none;background:none;border:0;border-radius:0;box-shadow:none}
html body :where(#thb-new) a{color:inherit;text-decoration:none}
html body :where(#thb-new) img{display:block;max-width:100%}
#thb-new{--f:#173f2b;--ink:#1d3427;--mint:#eef5ef;--sage:#dbe8dd;--coral:#ef5a43;--line:#e4ebe5;background:#fff;color:var(--ink);font:400 16px/1.5 Figtree,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
#thb-new [hidden]{display:none!important}
#thb-new :focus-visible{outline:2px solid var(--f);outline-offset:2px}
#thb-new .n-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
#thb-new .n-wrap{width:100%;max-width:1480px;margin:0 auto;padding:0 30px}
#thb-new .n-top{background:var(--f);color:#cfe3d5;text-align:center;font-size:12.5px;font-weight:600;padding:9px 16px}
/* header */
#thb-new .n-head{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.88);backdrop-filter:saturate(1.6) blur(14px);-webkit-backdrop-filter:saturate(1.6) blur(14px);border-bottom:1px solid var(--line)}
#thb-new .n-bar{display:flex;align-items:center;gap:20px;padding-top:14px;padding-bottom:10px}
#thb-new .n-brand{display:flex;align-items:center;gap:10px;flex:none;font:800 19px/1 "Bricolage Grotesque",sans-serif;color:var(--f);letter-spacing:-.02em}
#thb-new .n-brand img{width:40px;height:40px;border-radius:12px;object-fit:contain;background:var(--mint)}
#thb-new .n-search{position:relative;flex:1;max-width:640px;margin:0 auto;display:flex;align-items:center;background:var(--mint);border:1px solid transparent;border-radius:999px;padding:5px 5px 5px 18px;transition:.15s}
#thb-new .n-search:focus-within{background:#fff;border-color:var(--f);box-shadow:0 0 0 4px rgba(23,63,43,.1)}
#thb-new .n-search svg{width:19px;height:19px;color:#7d8f83;flex:none}
#thb-new .n-search input{flex:1;min-width:0;padding:9px 12px;font-size:14.5px;outline:0;cursor:text}
#thb-new .n-search button{flex:none;background:var(--f);color:#fff;font-weight:700;font-size:14px;padding:9px 22px;border-radius:999px}
#thb-new .n-actions{display:flex;align-items:center;gap:6px;flex:none}
#thb-new .n-icon,#thb-new .live-notification-bell{position:relative;display:grid;place-items:center;width:42px;height:42px;border-radius:999px;color:var(--ink);background:transparent;border:0;transition:.15s}
#thb-new .n-icon:hover,#thb-new .live-notification-bell:hover{background:var(--mint)}
#thb-new .n-icon svg{width:21px;height:21px}
#thb-new .cart-count-badge{position:absolute;top:1px;right:0;display:inline-block;min-width:18px;height:18px;padding:0 5px;margin:0;border-radius:999px;background:var(--f);color:#fff;font:700 10.5px/18px Figtree,sans-serif;text-align:center;transform:none;border:2px solid #fff;box-sizing:content-box}
#thb-new .n-visit{display:flex;flex-direction:column;align-items:flex-start;margin-left:8px;padding-left:14px;border-left:1px solid var(--line);font-size:10.5px;line-height:1.15;color:#7d8f83}
#thb-new .n-visit b{font-size:14px;color:var(--ink);font-weight:800}
#thb-new .n-nav{display:flex;gap:4px;overflow-x:auto;padding-bottom:10px;scrollbar-width:none}
#thb-new .n-nav::-webkit-scrollbar{display:none}
#thb-new .n-nav a{white-space:nowrap;padding:8px 16px;border-radius:999px;font-size:14px;font-weight:600;color:#53675a;transition:.15s}
#thb-new .n-nav a:hover{background:var(--mint);color:var(--f)}
#thb-new .n-nav a.is-on{background:var(--f);color:#fff}
/* hero */
#thb-new .n-hero{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center;padding-top:56px;padding-bottom:56px}
#thb-new .n-chip{display:inline-flex;align-items:center;gap:8px;background:var(--mint);color:var(--f);font-size:13px;font-weight:700;padding:7px 14px;border-radius:999px}
#thb-new .n-chip i{width:8px;height:8px;border-radius:50%;background:#2ea85f}
#thb-new .n-hero h1{margin-top:22px;font:800 clamp(2.6rem,6vw,4.9rem)/.98 "Bricolage Grotesque",sans-serif;letter-spacing:-.04em;color:var(--f)}
#thb-new .n-hero h1 .n-hero-accent{
  color:#1f5135;
  background-image:linear-gradient(transparent 73%,rgba(205,228,211,.92) 73%);
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
  padding:0 .025em;
}
#thb-new .n-hero-copy>p{margin-top:22px;max-width:30rem;font-size:18px;line-height:1.6;color:#53675a}
#thb-new .n-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
#thb-new .n-hero-proof{display:flex;flex-wrap:wrap;gap:10px 16px;margin-top:22px;color:#65796b;font-size:12.5px;font-weight:600;line-height:1.4}
#thb-new .n-hero-proof span{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
#thb-new .n-hero-proof i{display:grid;place-items:center;width:17px;height:17px;flex:0 0 17px;border-radius:50%;background:#edf5ef;color:#247d4d;font-style:normal;font-size:10px;font-weight:900}

#thb-new .n-btn{display:inline-flex;align-items:center;justify-content:center;padding:15px 28px;border-radius:999px;font-weight:700;font-size:15px;transition:.15s}
#thb-new .n-btn-dark{background:var(--f);color:#fff;box-shadow:0 10px 24px rgba(23,63,43,.25)}
#thb-new .n-btn-dark:hover{background:#0f2c1d;transform:translateY(-1px)}
#thb-new .n-btn-soft{background:#eef1ef;color:var(--ink)}
#thb-new .n-btn-soft:hover{background:#e2e8e4}
#thb-new .n-pick{position:relative;border-radius:36px;background:linear-gradient(160deg,var(--sage),var(--mint) 60%);padding:44px 28px 120px;display:flex;justify-content:center;overflow:hidden}
#thb-new .n-pick-tag{position:absolute;left:22px;top:22px;z-index:2;background:#fff;color:var(--f);font-size:12.5px;font-weight:800;padding:7px 14px;border-radius:999px}
#thb-new .n-pick-cover{width:min(58%,260px);aspect-ratio:3/4;border-radius:14px;overflow:hidden;background:#fff;transform:rotate(-3deg);box-shadow:0 30px 60px rgba(23,63,43,.28)}
#thb-new .n-pick-cover img{width:100%;height:100%;object-fit:cover}
#thb-new .n-ph{display:grid;place-items:center;width:100%;height:100%;padding:18px;background:var(--f);color:#fff;text-align:center;font:800 18px/1.2 "Bricolage Grotesque",sans-serif}
#thb-new .n-pick-info{position:absolute;left:16px;right:16px;bottom:16px;background:#fff;border-radius:24px;padding:18px 20px;box-shadow:0 18px 40px rgba(23,63,43,.16)}
#thb-new .n-pick-info small{font-size:12.5px;font-weight:600;color:#7d8f83}
#thb-new .n-pick-info h2{font:800 19px/1.2 "Bricolage Grotesque",sans-serif;color:var(--f);margin-top:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#thb-new .n-pick-price{margin-top:8px}
/* tracking */
#thb-new .n-track{display:grid;grid-template-columns:1fr 1.1fr;gap:28px;align-items:center;background:var(--f);color:#fff;border-radius:32px;padding:40px 44px}
#thb-new .n-track h2{font:800 clamp(1.7rem,3vw,2.3rem)/1.1 "Bricolage Grotesque",sans-serif;letter-spacing:-.03em}
#thb-new .n-track p{margin-top:8px;color:#b9d2c0;font-size:15px;max-width:26rem}
#thb-new .n-track form{display:flex;background:#fff;border-radius:999px;padding:6px}
#thb-new .n-track input{flex:1;min-width:0;padding:12px 20px;color:var(--ink);font-size:15px;outline:0;cursor:text}
#thb-new .n-track input::placeholder{color:#93a399}
#thb-new .n-track button{background:#247d4d;color:#fff;font-weight:700;padding:12px 30px;border-radius:999px;transition:.15s}
#thb-new .n-track button:hover{background:var(--f)}
/* catalog */
#thb-new .n-cat{padding-top:72px;padding-bottom:80px}
#thb-new .n-cat-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:28px}
#thb-new .n-cat-head h2{font:800 clamp(1.8rem,3vw,2.5rem)/1 "Bricolage Grotesque",sans-serif;letter-spacing:-.03em;color:var(--f)}
#thb-new .n-cat-head a{font-weight:700;font-size:14px;color:var(--f);border-bottom:2px solid var(--sage);padding-bottom:2px}
#thb-new .n-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px 22px}
#thb-new .n-card{display:flex;flex-direction:column}
#thb-new .n-card-img{position:relative;aspect-ratio:1/1;border-radius:22px;background:var(--mint);overflow:hidden}
#thb-new .n-card-img>button{display:block;width:100%;height:100%}
#thb-new .n-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
#thb-new .n-card:hover .n-card-img img{transform:scale(1.04)}
#thb-new .n-sold{position:absolute;left:10px;top:10px;z-index:2;background:#fff;color:var(--f);font-size:11.5px;font-weight:800;padding:5px 11px;border-radius:999px;box-shadow:0 4px 12px rgba(23,63,43,.12)}
#thb-new .n-card h3{margin-top:14px;font-size:15px;font-weight:700;line-height:1.35;min-height:2.7em}
#thb-new .n-card h3 button{text-align:left;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:700}
#thb-new .n-pub{margin-top:2px;font-size:13px;color:#7d8f83;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#thb-new .n-price{margin-top:8px;margin-bottom:14px}
#thb-new .n-card form{margin-top:auto}
#thb-new .n-card>.n-add{margin-top:auto}
#thb-new .n-add{display:block;width:100%;padding:12px;border-radius:999px;background:#247d4d;color:#fff;font-weight:700;font-size:14px;text-align:center;transition:.15s}
#thb-new .n-add:hover{background:var(--f)}
#thb-new .n-add:disabled{opacity:.45;cursor:not-allowed}
#thb-new .n-empty{background:var(--mint);border-radius:24px;padding:48px;text-align:center}
#thb-new .n-suggest,#thb-new .thb-suggest-panel{position:absolute;left:0;right:0;top:calc(100% + 10px);z-index:60;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 22px 48px rgba(23,63,43,.16);overflow:hidden}
@media(min-width:1400px) and (max-width:1650px){#thb-new .n-wrap{max-width:1400px;padding-left:28px;padding-right:28px}}
@media(max-width:1023px){#thb-new .n-pwa{display:none!important}#thb-new .n-visit{display:none}#thb-new .n-hero{grid-template-columns:1fr;gap:36px;padding-top:36px}#thb-new .n-grid{grid-template-columns:repeat(3,1fr)}#thb-new .n-track{grid-template-columns:1fr;padding:32px}}
@media(max-width:700px){#thb-new .n-wrap{padding:0 16px}#thb-new .n-brand span{display:none}#thb-new .n-grid{grid-template-columns:repeat(2,1fr);gap:22px 12px}#thb-new .n-track{padding:26px 20px;border-radius:26px}#thb-new .n-track form{flex-direction:column;border-radius:24px;gap:6px}#thb-new .n-track button{padding:13px}#thb-new .n-pick{padding-bottom:130px}#thb-new .n-hero-copy>p{font-size:16px}#thb-new .n-hero-proof{gap:9px 13px;margin-top:19px;font-size:11.5px}#thb-new .n-hero h1{text-wrap:balance}}
/* Perbaikan: badge keranjang tegas + anchor tidak tertutup header sticky */
html{scroll-behavior:smooth}
#thb-new section[id],#keranjang{scroll-margin-top:150px}
html body #thb-new a.cart-link{position:relative!important;display:grid!important;place-items:center!important;width:42px!important;height:42px!important;padding:0!important;overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:999px!important;color:#1d3427!important;opacity:1!important}
html body #thb-new a.cart-link:hover{background:#eef5ef!important}
html body #thb-new a.cart-link .cart-count-badge{position:absolute!important;top:-2px!important;right:-3px!important;z-index:3!important;min-width:20px!important;height:20px!important;padding:0 6px!important;margin:0!important;box-sizing:border-box!important;border-radius:999px!important;background:#ef5a43!important;color:#fff!important;border:2px solid #fff!important;opacity:1!important;visibility:visible!important;filter:none!important;transform:none!important;font:800 11px/16px Figtree,Arial,sans-serif!important;text-align:center!important;box-shadow:0 2px 6px rgba(239,90,67,.35)!important}
html body #thb-new a.cart-link .cart-count-badge[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media(prefers-reduced-motion:reduce){#thb-new *{transition:none!important}}



/* THB mobile header layout v7: keep cart visible and prevent search from pushing actions off-screen */
@media (max-width: 767px) {
  #thb-new .n-top {
    padding: 7px 12px !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    text-align: center !important;
    white-space: normal !important;
  }
  #thb-new .n-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 10px !important;
    padding-top: 10px !important;
    padding-bottom: 8px !important;
  }
  #thb-new .n-brand {
    order: 1 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 7px !important;
    font-size: 15px !important;
  }
  #thb-new .n-brand img {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
  }
  #thb-new .n-brand span {
    display: inline !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 14px !important;
  }
  #thb-new .n-actions {
    order: 2 !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    gap: 2px !important;
    min-width: max-content !important;
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
  }
  #thb-new .n-actions .n-icon,
  #thb-new .n-actions .live-notification-bell,
  #thb-new .n-actions a.cart-link {
    display: grid !important;
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  #thb-new .n-actions a.cart-link svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
  }
  #thb-new .n-actions a.cart-link .cart-count-badge {
    display: inline-flex !important;
  }
  #thb-new .n-visit { display: none !important; }
  #thb-new .n-search {
    order: 3 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 4px 4px 4px 12px !important;
  }
  #thb-new .n-search input {
    min-width: 0 !important;
    width: 100% !important;
    padding: 9px 8px !important;
    font-size: 13px !important;
  }
  #thb-new .n-search button {
    padding: 10px 15px !important;
    font-size: 12px !important;
  }
  #thb-new .n-nav {
    display: flex !important;
    width: 100% !important;
    gap: 4px !important;
    padding-top: 0 !important;
    padding-bottom: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  #thb-new .n-nav a {
    flex: 0 0 auto !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
}
@media (max-width: 380px) {
  #thb-new .n-brand span { max-width: 112px !important; font-size: 12px !important; }
  #thb-new .n-brand img { width: 32px !important; height: 32px !important; flex-basis: 32px !important; }
  #thb-new .n-actions .n-icon,
  #thb-new .n-actions .live-notification-bell,
  #thb-new .n-actions a.cart-link { width: 34px !important; min-width: 34px !important; flex-basis: 34px !important; }
  #thb-new .n-search button { padding: 9px 12px !important; }
}


/* THB latest index mobile header refinements: preserve latest homepage and keep header compact */
@media (max-width: 767px) {
  #thb-new .n-top { padding: 5px 10px !important; font-size: 10px !important; line-height: 1.25 !important; }
  #thb-new .n-head { position:relative !important; }
  #thb-new .n-bar { gap: 5px 8px !important; padding-top: 7px !important; padding-bottom: 5px !important; }
  #thb-new .n-brand { gap: 6px !important; }
  #thb-new .n-brand img { width: 34px !important; height: 34px !important; flex-basis:34px !important; }
  #thb-new .n-brand span { font-size: 13px !important; }
  #thb-new .n-actions .n-icon,
  #thb-new .n-actions .live-notification-bell,
  #thb-new .n-actions a.cart-link { width:34px !important; height:34px !important; min-width:34px !important; flex-basis:34px !important; }
  #thb-new .n-search { min-height:40px !important; padding-top:2px !important; padding-bottom:2px !important; }
  #thb-new .n-nav { padding-bottom:5px !important; }
  #thb-new .n-nav a { padding:7px 10px !important; font-size:11px !important; }
  #thb-new .n-hero.n-hero-ads-active { padding-top: 9px !important; }
}
@media (max-width: 380px) {
  #thb-new .n-top { font-size:9px !important; }
  #thb-new .n-bar { gap:4px 5px !important; }
  #thb-new .n-brand span { max-width:118px !important; font-size:12px !important; }
  #thb-new .n-actions .n-icon,
  #thb-new .n-actions .live-notification-bell,
  #thb-new .n-actions a.cart-link { width:32px !important; height:32px !important; min-width:32px !important; flex-basis:32px !important; }
}


#thb-new .live-notification-wrap { position: relative; display: inline-flex; align-items: center; }
#thb-new .live-notification-bell {
      position: relative; width: 42px; height: 42px; border-radius: 999px;
      border: 1px solid #dbe6dc; background: #fff; color: #173c2b;
      display: inline-flex; align-items: center; justify-content: center;
      cursor: pointer; transition: .18s ease; box-shadow: 0 5px 14px rgba(27,71,48,.06);
    }
#thb-new .live-notification-bell:hover { background: #f2f8f3; border-color: #b9d2bf; transform: translateY(-1px); }
#thb-new .live-notification-bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; }
#thb-new .live-notification-badge {
      position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px;
      border-radius: 999px; background: #d93636; color: #fff; border: 2px solid #fff;
      display: flex; align-items: center; justify-content: center; font: 800 10px/1 system-ui,sans-serif;
    }
#thb-new .live-notification-badge[hidden] { display: none !important; }
#thb-new .live-notification-panel {
      position: absolute; z-index: 1200; right: -20px; top: calc(100% + 13px); width: min(390px, calc(100vw - 28px));
      background: #fff; border: 1px solid #dce7dd; border-radius: 18px; box-shadow: 0 18px 55px rgba(28,52,38,.18);
      overflow: hidden; transform-origin: top right;
    }
#thb-new .live-notification-panel[hidden] { display: none !important; }
#thb-new .live-notification-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 17px 13px; border-bottom:1px solid #edf2ed; }
#thb-new .live-notification-head strong { font-size: 15px; color:#193426; }
#thb-new .live-notification-head button { border:0; background:transparent; color:#257449; font-size:12px; font-weight:800; cursor:pointer; padding:4px; }
#thb-new .live-notification-list { max-height: 390px; overflow:auto; }
#thb-new .live-notification-item { display:block; padding:14px 17px; border-bottom:1px solid #f0f3f0; text-decoration:none; color:inherit; cursor:pointer; position:relative; }
#thb-new .live-notification-item:hover { background:#f7faf7; }
#thb-new .live-notification-item.unread { background:#f4faf5; padding-left:22px; }
#thb-new .live-notification-item.unread:before { content:""; position:absolute; left:10px; top:18px; width:6px; height:6px; border-radius:50%; background:#287545; }
#thb-new .live-notification-title { display:block; font-weight:800; font-size:13px; color:#1d3427; line-height:1.35; margin-bottom:4px; }
#thb-new .live-notification-message { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:12px; color:#657469; line-height:1.45; }
#thb-new .live-notification-time { display:block; margin-top:6px; font-size:10.5px; color:#8b968e; }
#thb-new .live-notification-empty { padding:30px 20px; text-align:center; color:#758079; font-size:13px; }
#thb-new .live-notification-footer { display:block; padding:12px 17px; text-align:center; color:#217044; text-decoration:none; font-size:12px; font-weight:800; background:#fbfdfb; }
#thb-new .live-notification-toast {
      position: fixed; z-index: 1300; right: 22px; top: 82px; width: min(350px, calc(100vw - 30px));
      border:1px solid #bed5c2; border-radius:15px; background:#fff; box-shadow:0 16px 44px rgba(24,57,36,.18);
      padding:13px 15px; opacity:0; transform:translateY(-8px); pointer-events:none; transition:.25s ease;
    }
#thb-new .live-notification-toast.show { opacity:1; transform:translateY(0); }
#thb-new .live-notification-toast b { display:block; color:#1d3d2a; font-size:13px; margin-bottom:3px; }
#thb-new .live-notification-toast span { display:block; color:#6d796f; font-size:12px; line-height:1.4; }
@media (max-width: 760px) {
#
t
h
b
-
n
e
w
 
.
l
i
v
e
-
n
o
t
i
f
i
c
a
t
i
o
n
-
p
a
n
e
l
 
{
 
p
o
s
i
t
i
o
n
:
f
i
x
e
d
;
 
r
i
g
h
t
:
1
2
p
x
;
 
l
e
f
t
:
1
2
p
x
;
 
t
o
p
:
1
1
2
p
x
;
 
w
i
d
t
h
:
a
u
t
o
;
 
m
a
x
-
h
e
i
g
h
t
:
6
5
v
h
;
 
}


#
t
h
b
-
n
e
w
 
.
l
i
v
e
-
n
o
t
i
f
i
c
a
t
i
o
n
-
l
i
s
t
 
{
 
m
a
x
-
h
e
i
g
h
t
:
5
2
v
h
;
 
}


#
t
h
b
-
n
e
w
 
.
l
i
v
e
-
n
o
t
i
f
i
c
a
t
i
o
n
-
t
o
a
s
t
 
{
 
t
o
p
:
7
2
p
x
;
 
r
i
g
h
t
:
1
5
p
x
;
 
}
}
#thb-new .live-notification-bell { flex:0 0 40px; width:40px; height:40px; }
/* Shared pages end the header wrapper immediately after the nav; keep the same look without sticky-wrapper clipping. */
#thb-new.thb-shared-header-scope .n-head { position:relative !important; }
#thb-new.thb-shared-header-scope { width:100%; margin:0; padding:0; }
#thb-new.thb-shared-header-scope .n-top { width:100%; }
#thb-new.thb-shared-header-scope .n-nav { margin-bottom:0; }

/* Source: catalog-refinement-v1.css */
/* THB Catalog Refinement v1
   Compact hero, clearer discovery controls, consistent product cards, responsive layout.
   Intentionally limited to katalog.php components. */

body .page-shell .catalog-hero {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 220px);
  align-items: center;
  gap: clamp(18px, 2.8vw, 34px);
  padding: clamp(22px, 2.8vw, 34px) clamp(22px, 3vw, 38px);
  margin-bottom: 18px;
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(31, 67, 45, .075);
}

body .page-shell .catalog-hero .eyebrow {
  margin: 0 0 8px;
  font-size: .72rem;
  letter-spacing: .16em;
}

body .page-shell .catalog-hero h1 {
  max-width: 18ch;
  margin: 5px 0 10px;
  font-size: clamp(2.2rem, 3.6vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

body .page-shell .catalog-hero p:not(.eyebrow) {
  max-width: 60ch;
  margin: 0;
  font-size: .95rem;
  line-height: 1.65;
}

body .page-shell .catalog-summary {
  min-width: 0;
  padding: 17px 19px;
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(23, 63, 43, .045);
}

body .page-shell .catalog-summary strong {
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

body .page-shell .catalog-summary span {
  margin: 3px 0 10px;
  font-size: .88rem;
}

body .page-shell .catalog-summary a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .88rem;
  line-height: 1.4;
}

body .page-shell .catalog-tools {
  grid-template-columns: minmax(250px, 1.6fr) minmax(180px, 1fr) minmax(170px, .95fr) minmax(100px, .45fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 25px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 24px rgba(31, 67, 45, .045);
}

body .page-shell .catalog-tools label {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body .page-shell .catalog-tools label span,
body .page-shell .catalog-tool-count span {
  margin-bottom: 6px;
  font-size: .7rem;
  letter-spacing: .075em;
}

body .page-shell .catalog-tools input,
body .page-shell .catalog-tools select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #dce5dc;
  border-radius: 13px;
  background: #fff;
  color: #203528;
  font: 500 .92rem/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

body .page-shell .catalog-tools input::placeholder { color: #8a968d; }
body .page-shell .catalog-tools input:focus,
body .page-shell .catalog-tools select:focus {
  outline: none;
  border-color: #39855a;
  box-shadow: 0 0 0 3px rgba(39, 117, 69, .12);
}

body .page-shell .catalog-tool-count {
  min-width: 0;
  align-self: center;
  padding: 0 4px 3px;
  white-space: nowrap;
}

body .page-shell .catalog-tool-count strong {
  display: block;
  margin-top: 2px;
  color: #195e39;
  font-size: .95rem;
  line-height: 1.35;
}

body .page-shell #katalog.catalog-modern {
  margin-bottom: 30px;
}

body .page-shell #katalog .section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

body .page-shell #katalog .section-head .eyebrow {
  margin-bottom: 7px;
  font-size: .7rem;
}

body .page-shell #katalog .section-head h2 {
  margin: 0;
  line-height: 1.12;
}

body .page-shell #katalog .section-head p:not(.eyebrow) {
  margin-top: 7px;
  line-height: 1.55;
}

body .page-shell #katalog .collection-count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #dce8de;
  border-radius: 999px;
  background: #f5faf5;
  color: #285e3d;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .045em;
  white-space: nowrap;
}

body .page-shell #catalog-grid.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px 18px;
}

body .page-shell #catalog-grid .catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e1e9e1;
  border-radius: 19px;
  background: linear-gradient(155deg, #fff 0%, #fcfdfb 70%, #f6f9f5 100%);
  box-shadow: 0 6px 19px rgba(24, 63, 42, .045);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

@media (hover: hover) and (pointer: fine) {
  body .page-shell #catalog-grid .catalog-card:hover {
    transform: translateY(-4px);
    border-color: #c1d8c5;
    box-shadow: 0 15px 32px rgba(24, 63, 42, .105);
  }
}

body .page-shell #catalog-grid .catalog-card .card-image {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.12;
  margin: 0;
  padding: 15px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #edf2ed;
  border-radius: 0;
  background: linear-gradient(145deg, #f1f6f0 0%, #f8f8f2 52%, #eff5f0 100%);
}

body .page-shell #catalog-grid .catalog-card .card-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .28s ease;
}

@media (hover: hover) and (pointer: fine) {
  body .page-shell #catalog-grid .catalog-card .card-image:hover img { transform: scale(1.035); }
}

body .page-shell #catalog-grid .catalog-card .book {
  width: min(78%, 220px);
  min-height: 78%;
  padding: 15px;
  border-radius: 4px;
}

body .page-shell #catalog-grid .catalog-card .card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 14px 15px 15px;
}

body .page-shell #catalog-grid .catalog-card .card-body > p:first-child {
  margin: 0 0 5px;
  color: #7a8b7e;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .045em;
  line-height: 1.45;
}

body .page-shell #catalog-grid .catalog-card .catalog-card-price {
  min-height: 24px;
  margin: 6px 0 4px;
  color: #176b43;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.3;
}

body .page-shell #catalog-grid .catalog-card .catalog-card-price .discount-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 8px;
}

body .page-shell #catalog-grid .catalog-card .catalog-card-price .discount-new {
  color: #176b43;
  font-size: 1rem;
  font-weight: 900;
}

body .page-shell #catalog-grid .catalog-card .catalog-card-price .discount-old {
  color: #8b968d;
  font-size: .75rem;
}

body .page-shell #catalog-grid .catalog-card .card-body h3 {
  min-height: 2.7em;
  margin: 4px 0 0;
  color: #213b2c;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.37;
  overflow-wrap: anywhere;
}

body .page-shell #catalog-grid .catalog-card .card-body h3 .product-detail-link {
  color: inherit;
  text-decoration: none;
}

body .page-shell #catalog-grid .catalog-card .card-body h3 .product-detail-link:hover { color: #1f7548; }

body .page-shell #catalog-grid .catalog-card .card-body .desc {
  display: -webkit-box;
  min-height: 2.7em;
  margin: 7px 0 0;
  overflow: hidden;
  color: #758278;
  font-size: .76rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body .page-shell #catalog-grid .catalog-card .card-bottom {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

body .page-shell #catalog-grid .catalog-card .card-bottom form {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

body .page-shell #catalog-grid .catalog-card .card-bottom button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 39px;
  padding: 9px 12px;
  border: 1px solid #247447;
  border-radius: 999px;
  background: #247447;
  color: #fff;
  font: 800 .8rem/1.25 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

body .page-shell #catalog-grid .catalog-card .card-bottom button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #174d31;
  background: #174d31;
}

body .page-shell #catalog-grid .catalog-card .card-bottom button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

body .page-shell .catalog-pagination {
  margin-top: 24px;
  border-radius: 18px;
}

@media (max-width: 1120px) {
  body .page-shell .catalog-hero { grid-template-columns: minmax(0, 1fr) minmax(150px, 190px); }
  body .page-shell .catalog-tools {
    grid-template-columns: minmax(220px, 1.4fr) minmax(165px, 1fr);
  }
  body .page-shell .catalog-tool-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    grid-column: 1 / -1;
    padding: 3px 4px 0;
  }
  body .page-shell .catalog-tool-count span { margin: 0; }
  body .page-shell .catalog-tool-count strong { margin: 0; }
  body .page-shell #catalog-grid.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  body .page-shell .catalog-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    padding: 21px 18px;
    margin-bottom: 13px;
    border-radius: 21px;
  }
  body .page-shell .catalog-hero h1 {
    max-width: 100%;
    margin: 6px 0 9px;
    font-size: clamp(2rem, 8vw, 2.7rem);
    line-height: 1.02;
  }
  body .page-shell .catalog-hero p:not(.eyebrow) {
    font-size: .88rem;
    line-height: 1.55;
  }
  body .page-shell .catalog-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 8px;
    padding: 11px 13px;
    border-radius: 15px;
  }
  body .page-shell .catalog-summary strong {
    display: inline-block;
    margin: 0 2px 0 0;
    font-size: 1.5rem;
  }
  body .page-shell .catalog-summary span { margin: 0; font-size: .8rem; }
  body .page-shell .catalog-summary a {
    margin-left: auto;
    font-size: .78rem;
    text-align: right;
  }
  body .page-shell .catalog-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 21px;
    padding: 11px;
    border-radius: 17px;
  }
  body .page-shell .catalog-tools .catalog-search { grid-column: 1 / -1; }
  body .page-shell .catalog-tools label span,
  body .page-shell .catalog-tool-count span { font-size: .65rem; }
  body .page-shell .catalog-tools input,
  body .page-shell .catalog-tools select { min-height: 44px; padding: 10px 11px; border-radius: 11px; font-size: .82rem; }
  body .page-shell .catalog-tool-count {
    grid-column: 1 / -1;
    padding: 2px 3px 0;
  }
  body .page-shell .catalog-tool-count strong { font-size: .84rem; }
  body .page-shell #katalog .section-head {
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
  }
  body .page-shell #katalog .section-head .eyebrow { margin-bottom: 5px; font-size: .61rem; }
  body .page-shell #katalog .section-head h2 { font-size: clamp(1.45rem, 6vw, 1.8rem); }
  body .page-shell #katalog .section-head p:not(.eyebrow) { margin-top: 5px; font-size: .76rem; }
  body .page-shell #katalog .collection-count { padding: 6px 8px; font-size: .58rem; }
  body .page-shell #catalog-grid.grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 10px;
  }
  body .page-shell #catalog-grid .catalog-card { border-radius: 14px; }
  body .page-shell #catalog-grid .catalog-card .card-image {
    aspect-ratio: 1 / 1.08;
    padding: 9px;
  }
  body .page-shell #catalog-grid .catalog-card .card-body { padding: 10px 10px 11px; }
  body .page-shell #catalog-grid .catalog-card .card-body > p:first-child {
    margin-bottom: 4px;
    font-size: .59rem;
    letter-spacing: .015em;
  }
  body .page-shell #catalog-grid .catalog-card .catalog-card-price {
    min-height: 21px;
    margin: 5px 0 3px;
    font-size: .85rem;
  }
  body .page-shell #catalog-grid .catalog-card .catalog-card-price .discount-new { font-size: .85rem; }
  body .page-shell #catalog-grid .catalog-card .catalog-card-price .discount-old { font-size: .65rem; }
  body .page-shell #catalog-grid .catalog-card .card-body h3 {
    min-height: 2.7em;
    font-size: .82rem;
    line-height: 1.33;
  }
  body .page-shell #catalog-grid .catalog-card .card-body .desc {
    min-height: 0;
    margin-top: 5px;
    font-size: .68rem;
    line-height: 1.4;
  }
  body .page-shell #catalog-grid .catalog-card .card-bottom { gap: 5px; padding-top: 10px; }
  body .page-shell #catalog-grid .catalog-card .card-bottom button {
    min-height: 35px;
    padding: 8px 5px;
    font-size: .68rem;
    border-radius: 10px;
  }
  body .page-shell .catalog-pagination { margin-top: 17px; }
}

@media (max-width: 370px) {
  body .page-shell .catalog-summary { align-items: flex-start; }
  body .page-shell .catalog-summary a { flex-basis: 100%; margin: 2px 0 0; text-align: left; }
  body .page-shell #katalog .collection-count { display: none; }
  body .page-shell #catalog-grid .catalog-card .card-body { padding: 9px; }
  body .page-shell #catalog-grid .catalog-card .card-bottom button { font-size: .64rem; }
}

@media (prefers-reduced-motion: reduce) {
  body .page-shell #catalog-grid .catalog-card,
  body .page-shell #catalog-grid .catalog-card .card-image img,
  body .page-shell #catalog-grid .catalog-card .card-bottom button {
    transition: none !important;
  }
}

/* THB CATALOG OPTION BUTTON MATCH — full-width pill like the homepage cards */
body .page-shell #catalog-grid > article.catalog-card .card-body .card-bottom {
  display: flex !important;
  width: 100% !important;
  align-items: stretch !important;
  gap: 0 !important;
}
body .page-shell #catalog-grid > article.catalog-card .card-body .card-bottom > button.product-open,
body .page-shell #catalog-grid > article.catalog-card .card-body .card-bottom > form,
body .page-shell #catalog-grid > article.catalog-card .card-body .card-bottom > form > button {
  box-sizing: border-box !important;
  display: flex !important;
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
}
body .page-shell #catalog-grid > article.catalog-card .card-body .card-bottom > button.product-open {
  min-height: 39px !important;
  padding: 9px 12px !important;
  border-radius: 999px !important;
  background: #247447 !important;
  border: 1px solid #247447 !important;
  color: #fff !important;
  justify-content: center !important;
  text-align: center !important;
}
@media (max-width: 640px) {
  body .page-shell #catalog-grid > article.catalog-card .card-body .card-bottom > button.product-open {
    min-height: 35px !important;
    padding: 8px 5px !important;
    border-radius: 999px !important;
  }
}


/* ==========================================================
   THB MOBILE CATALOG CARD FIX — 31 Oct 2026
   Normalize variant and add-to-cart buttons, prevent tall
   option buttons, and improve card rhythm on narrow screens.
   ========================================================== */
@media (max-width: 700px) {
  body .page-shell #catalog-grid.grid {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 14px 11px !important;
  }

  body .page-shell #catalog-grid > article.catalog-card {
    min-width: 0 !important;
    height: 100% !important;
    border-radius: 15px !important;
    overflow: hidden !important;
  }

  body .page-shell #catalog-grid > article.catalog-card > .card-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1.02 !important;
    min-height: 0 !important;
    padding: 8px !important;
    border-radius: 0 !important;
  }

  body .page-shell #catalog-grid > article.catalog-card > .card-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  body .page-shell #catalog-grid > article.catalog-card > .card-body {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-width: 0 !important;
    padding: 10px 10px 11px !important;
  }

  body .page-shell #catalog-grid > article.catalog-card .card-body > p:first-child {
    margin: 0 0 4px !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
    letter-spacing: .02em !important;
  }

  body .page-shell #catalog-grid > article.catalog-card .catalog-card-price {
    min-height: 20px !important;
    margin: 4px 0 5px !important;
    font-size: clamp(13px, 3.7vw, 16px) !important;
    line-height: 1.25 !important;
    overflow-wrap: normal !important;
  }

  body .page-shell #catalog-grid > article.catalog-card .catalog-card-price .discount-price {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 3px 6px !important;
  }

  body .page-shell #catalog-grid > article.catalog-card .catalog-card-price .discount-old {
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  body .page-shell #catalog-grid > article.catalog-card .catalog-card-price .discount-new {
    font-size: clamp(13px, 3.7vw, 16px) !important;
    white-space: nowrap !important;
  }

  body .page-shell #catalog-grid > article.catalog-card .card-body h3 {
    min-height: 2.65em !important;
    max-height: 2.65em !important;
    margin: 2px 0 0 !important;
    overflow: hidden !important;
    font-size: clamp(12px, 3.45vw, 15px) !important;
    line-height: 1.32 !important;
    overflow-wrap: anywhere !important;
  }

  body .page-shell #catalog-grid > article.catalog-card .card-body .desc {
    min-height: 1.3em !important;
    max-height: 1.3em !important;
    margin: 5px 0 0 !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
    -webkit-line-clamp: 1 !important;
  }

  body .page-shell #catalog-grid > article.catalog-card .card-body .product-desc-preview {
    display: none !important;
  }

  /* Both the variant button and add-to-cart form share one stable row. */
  body .page-shell #catalog-grid > article.catalog-card .card-body .card-bottom {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin-top: auto !important;
    padding-top: 10px !important;
    gap: 0 !important;
  }

  body .page-shell #catalog-grid > article.catalog-card .card-body .card-bottom > form,
  body .page-shell #catalog-grid > article.catalog-card .card-body .card-bottom > button.product-open {
    display: flex !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 40px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: stretch !important;
  }

  body .page-shell #catalog-grid > article.catalog-card .card-body .card-bottom > form > button,
  body .page-shell #catalog-grid > article.catalog-card .card-body .card-bottom > button.product-open {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  body .page-shell #catalog-grid > article.catalog-card .thb-wishlist-heart,
  body .page-shell #catalog-grid > article.catalog-card .thb-wishlist-login {
    top: 7px !important;
    right: 7px !important;
    width: 34px !important;
    height: 34px !important;
  }
}

@media (max-width: 380px) {
  body .page-shell #catalog-grid.grid {
    gap: 12px 8px !important;
  }
  body .page-shell #catalog-grid > article.catalog-card > .card-body {
    padding: 9px 8px 10px !important;
  }
  body .page-shell #catalog-grid > article.catalog-card .card-body h3 {
    font-size: 11.5px !important;
  }
  body .page-shell #catalog-grid > article.catalog-card .card-body .card-bottom > form > button,
  body .page-shell #catalog-grid > article.catalog-card .card-body .card-bottom > button.product-open {
    font-size: 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .page-shell #catalog-grid > article.catalog-card,
  body .page-shell #catalog-grid > article.catalog-card .card-image img,
  body .page-shell #catalog-grid > article.catalog-card .card-bottom button {
    transition: none !important;
  }
}
