.catalog-active{background:rgba(31,106,67,.09)!important;color:var(--accent-dark)!important}
.catalog-hero{display:grid;grid-template-columns:1fr auto;gap:28px;align-items:end;padding:38px 40px;border-radius:32px;background:linear-gradient(135deg,rgba(255,253,249,.95),rgba(230,240,233,.92));border:1px solid rgba(116,122,113,.14);box-shadow:var(--shadow);margin-bottom:24px}
.catalog-hero h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.5rem,5vw,4.4rem);line-height:1.04;margin:10px 0 14px;max-width:11ch}
.catalog-hero h1 em{color:var(--accent)}
.catalog-hero p{max-width:65ch;color:var(--muted);line-height:1.8}
.catalog-summary{min-width:190px;padding:20px 22px;border-radius:24px;background:#fff;border:1px solid rgba(116,122,113,.14)}
.catalog-summary strong{display:block;font-family:Georgia,"Times New Roman",serif;font-size:2.25rem;color:var(--accent)}
.catalog-summary span{display:block;color:var(--muted);margin-bottom:14px}
.catalog-summary a{color:var(--accent-dark);text-decoration:none;font-weight:700}
.catalog-tools{display:grid;grid-template-columns:1.5fr .8fr auto;gap:14px;align-items:end;margin:0 0 28px;padding:18px;border-radius:24px;background:rgba(255,253,249,.9);border:1px solid rgba(116,122,113,.14)}
.catalog-tools label span,.catalog-tool-count span{display:block;font-size:.78rem;text-transform:uppercase;letter-spacing:.09em;color:var(--muted);font-weight:700;margin-bottom:7px}
.catalog-tools input,.catalog-tools select{width:100%;padding:14px 15px;border:1px solid var(--line);border-radius:15px;background:#fff;color:var(--ink);font:inherit}
.catalog-tool-count{padding:0 8px 8px;min-width:100px}
.catalog-tool-count strong{color:var(--accent-dark)}
.catalog-card[hidden]{display:none!important}
@media(max-width:760px){.catalog-hero{grid-template-columns:1fr;padding:26px}.catalog-summary{min-width:0}.catalog-tools{grid-template-columns:1fr}.catalog-tool-count{padding:0 4px}}

.catalog-pagination{display:grid;grid-template-columns:1fr auto 1fr;gap:16px;align-items:center;margin:28px 0 0;padding:18px;border:1px solid rgba(116,122,113,.14);border-radius:24px;background:rgba(255,253,249,.94);box-shadow:0 12px 30px rgba(40,44,38,.04)}
.catalog-pagination[hidden]{display:none!important}
.catalog-page-btn{min-height:48px;padding:12px 18px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--accent-dark);font:inherit;font-weight:700;cursor:pointer;transition:.2s ease}
.catalog-page-btn:last-child{justify-self:end;background:var(--accent);border-color:var(--accent);color:#fff}
.catalog-page-btn:first-child{justify-self:start}
.catalog-page-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 10px 22px rgba(31,106,67,.12)}
.catalog-page-btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.catalog-page-status{text-align:center;min-width:190px}
.catalog-page-status strong{display:block;color:var(--ink);margin-bottom:4px}
.catalog-page-status span{display:block;color:var(--muted);font-size:.9rem}
@media(max-width:760px){
  .catalog-pagination{grid-template-columns:1fr 1fr;padding:14px;gap:10px}
  .catalog-page-status{grid-column:1/-1;grid-row:1;text-align:center;min-width:0}
  .catalog-page-btn{width:100%;padding:12px 10px;font-size:.9rem}
  .catalog-page-btn:first-child,.catalog-page-btn:last-child{justify-self:stretch}
}

/* Mobile-only catalog refinements */
@media(max-width:767px){
  .catalog-hero{padding:20px 16px;border-radius:22px;gap:15px;margin-bottom:14px}
  .catalog-hero h1{font-size:clamp(2rem,10vw,3rem);max-width:none;margin:7px 0 10px}
  .catalog-hero p{font-size:.88rem;line-height:1.6;margin-bottom:0}
  .catalog-summary{padding:15px 16px;border-radius:18px}
  .catalog-summary strong{font-size:1.7rem}
  .catalog-tools{padding:12px;border-radius:18px;gap:10px;margin-bottom:16px}
  .catalog-tools input,.catalog-tools select{padding:12px 13px;border-radius:12px;font-size:.9rem}
  .catalog-pagination{grid-template-columns:1fr 1fr;padding:12px 10px;border-radius:18px;margin-top:18px;gap:8px}
  .catalog-page-status{font-size:.86rem}
  .catalog-page-btn{min-height:42px;border-radius:13px;padding:10px 8px;font-size:.78rem;white-space:normal;line-height:1.25}
}

.catalog-page-btn.is-disabled{opacity:.45;pointer-events:none}.catalog-pagination a.catalog-page-btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}

/* THB katalog pagination polish v3: desktop one-row, tablet/mobile orderly */
.catalog-pagination {
  display: grid;
  grid-template-columns: minmax(270px, 1.25fr) minmax(180px, .9fr) minmax(200px, .9fr) minmax(230px, 1.1fr);
  grid-template-areas: "size previous status next";
  gap: 14px;
  align-items: center;
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(116, 122, 113, .16);
  border-radius: 22px;
  background: rgba(255, 253, 249, .96);
  box-shadow: 0 10px 26px rgba(40, 44, 38, .045);
}
.catalog-pagination[hidden] { display: none !important; }
.catalog-pagination > .catalog-page-size {
  grid-area: size;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #dce8de;
  border-radius: 14px;
  background: #fff;
}
.catalog-pagination > .catalog-page-size label {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.35;
}
.catalog-pagination > .catalog-page-size select {
  min-width: 125px;
  max-width: 100%;
  width: auto;
  padding: 9px 12px;
  border: 1px solid #d5e2d7;
  border-radius: 999px;
  background: #f8faf8;
  color: #173f2b;
  font: 600 12px/1.35 system-ui, sans-serif;
}
.catalog-pagination > .catalog-page-btn:nth-child(2) {
  grid-area: previous;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #dce8de;
  border-radius: 13px;
  background: #fff;
  color: #235d3e;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}
.catalog-pagination > .catalog-page-status {
  grid-area: status;
  min-width: 0;
  padding: 4px 6px;
  text-align: center;
}
.catalog-pagination > .catalog-page-status strong {
  display: block;
  margin-bottom: 5px;
  color: #173f2b;
  font-size: 14px;
}
.catalog-pagination > .catalog-page-status span {
  display: block;
  color: #718078;
  font-size: 12px;
  line-height: 1.4;
}
.catalog-pagination > .catalog-page-btn:last-child {
  grid-area: next;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #20784e;
  border-radius: 13px;
  background: #20784e;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}
.catalog-pagination .catalog-page-btn:hover:not(.is-disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31, 106, 67, .12);
}
.catalog-pagination .catalog-page-btn.is-disabled {
  opacity: .45;
  pointer-events: none;
  background: #f7faf7;
  color: #587366;
  border-color: #dce8de;
  box-shadow: none;
}
@media (max-width: 1100px) {
  .catalog-pagination {
    grid-template-columns: minmax(230px, 1.2fr) minmax(200px, .9fr);
    grid-template-areas: "size status" "previous next";
    gap: 12px;
    padding: 16px;
  }
  .catalog-pagination > .catalog-page-status { text-align: right; }
}
@media (max-width: 760px) {
  .catalog-pagination {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "status status" "size size" "previous next";
    gap: 10px;
    margin-top: 18px;
    padding: 14px 12px;
    border-radius: 18px;
  }
  .catalog-pagination > .catalog-page-status { text-align: center; }
  .catalog-pagination > .catalog-page-size {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 7px;
    padding: 12px;
  }
  .catalog-pagination > .catalog-page-size select { width: 100%; min-width: 0; }
  .catalog-pagination > .catalog-page-btn:nth-child(2),
  .catalog-pagination > .catalog-page-btn:last-child {
    min-height: 44px;
    padding: 10px 7px;
    border-radius: 12px;
    font-size: 12px;
    white-space: normal;
  }
  .catalog-pagination > .catalog-page-status strong { font-size: 13px; }
  .catalog-pagination > .catalog-page-status span { font-size: 11px; }
}


/* Catalog notification dropdown: keep it clickable and above product content. */
.site-header.thb-premium-header .live-notification-wrap{position:relative!important;z-index:9500!important}
.site-header.thb-premium-header .live-notification-bell{position:relative!important;z-index:9502!important;cursor:pointer!important;pointer-events:auto!important}
.site-header.thb-premium-header .live-notification-panel{position:absolute!important;top:calc(100% + 10px)!important;right:0!important;left:auto!important;width:min(360px,calc(100vw - 28px))!important;max-height:min(520px,70vh)!important;overflow:auto!important;background:#fff!important;color:#203728!important;border:1px solid #dce6dd!important;border-radius:16px!important;box-shadow:0 18px 44px rgba(20,50,32,.18)!important;z-index:9600!important}
.site-header.thb-premium-header .live-notification-panel[hidden]{display:none!important}
.site-header.thb-premium-header .live-notification-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-bottom:1px solid #e9eee9}
.site-header.thb-premium-header .live-notification-head button{cursor:pointer;background:#eef5ef;border:0;border-radius:8px;padding:7px 9px;font:600 11px system-ui,sans-serif;color:#205c3b}
.site-header.thb-premium-header .live-notification-item{display:block;padding:12px 15px;text-decoration:none;color:#203728;border-bottom:1px solid #eef1ee;font-size:12px}
.site-header.thb-premium-header .live-notification-item:hover,.site-header.thb-premium-header .live-notification-item.unread{background:#f1f7f2}
.site-header.thb-premium-header .live-notification-title,.site-header.thb-premium-header .live-notification-message,.site-header.thb-premium-header .live-notification-time{display:block;line-height:1.45}
.site-header.thb-premium-header .live-notification-title{font-weight:800;margin-bottom:4px}.site-header.thb-premium-header .live-notification-message{color:#53665a}.site-header.thb-premium-header .live-notification-time{margin-top:5px;font-size:10px;color:#7b8d81}
.site-header.thb-premium-header .live-notification-empty{padding:22px 15px;color:#708176;font-size:12px;text-align:center}.site-header.thb-premium-header .live-notification-footer{display:block;padding:12px 15px;text-align:center;text-decoration:none;font-size:12px;font-weight:800;color:#205c3b;background:#f8fbf8}
@media(max-width:760px){.site-header.thb-premium-header .live-notification-panel{position:fixed!important;top:132px!important;right:12px!important;left:12px!important;width:auto!important;max-width:none!important}}


/* THB CART DRAWER LAYOUT FIX v5 — thumbnail, copy and quantity stay in separate columns */
html body .cart-section.cart-drawer-ready .cart-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
}
html body .cart-section.cart-drawer-ready .cart-row-main {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html body .cart-section.cart-drawer-ready .cart-row-main > img.cart-row-thumb,
html body .cart-section.cart-drawer-ready .cart-row-main > .cart-row-thumb {
  display: block !important;
  box-sizing: border-box !important;
  width: 68px !important;
  height: 84px !important;
  min-width: 68px !important;
  min-height: 84px !important;
  max-width: 68px !important;
  max-height: 84px !important;
  flex: 0 0 68px !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 3px !important;
  border: 1px solid #e0e7dd !important;
  border-radius: 9px !important;
  background: #fff !important;
}
html body .cart-section.cart-drawer-ready .cart-row-copy {
  display: block !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
html body .cart-section.cart-drawer-ready .cart-row-copy > strong {
  display: block !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
html body .cart-section.cart-drawer-ready .cart-row-copy > small {
  display: block !important;
  line-height: 1.45 !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
html body .cart-section.cart-drawer-ready .cart-controls {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  min-width: max-content !important;
  white-space: nowrap !important;
}
html body .cart-section.cart-drawer-ready .cart-controls form {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}
html body .cart-section.cart-drawer-ready .cart-controls button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  flex: 0 0 30px !important;
  line-height: 1 !important;
}
html body .cart-section.cart-drawer-ready .cart-row-copy,
html body .cart-section.cart-drawer-ready .cart-row-copy * {
  max-width: 100% !important;
}
@media (max-width: 600px) {
  html body .cart-section.cart-drawer-ready .cart-row {
    gap: 8px !important;
  }
  html body .cart-section.cart-drawer-ready .cart-row-main {
    gap: 8px !important;
  }
  html body .cart-section.cart-drawer-ready .cart-row-main > img.cart-row-thumb,
  html body .cart-section.cart-drawer-ready .cart-row-main > .cart-row-thumb {
    width: 56px !important;
    height: 70px !important;
    min-width: 56px !important;
    min-height: 70px !important;
    max-width: 56px !important;
    max-height: 70px !important;
    flex-basis: 56px !important;
  }
  html body .cart-section.cart-drawer-ready .cart-controls {
    gap: 4px !important;
  }
  html body .cart-section.cart-drawer-ready .cart-controls button {
    width: 27px !important;
    height: 27px !important;
    min-width: 27px !important;
    min-height: 27px !important;
    flex-basis: 27px !important;
  }
  html body .cart-section.cart-drawer-ready .cart-row-copy > strong {
    font-size: 13px !important;
  }
  html body .cart-section.cart-drawer-ready .cart-row-copy > small {
    font-size: 11px !important;
  }
}
