/*
 * TamanBD WordPress & WooCommerce Theme Stylesheet
 * Lightweight CSS3 with Custom Properties, Mobile-First Grid, Zero External Bloat
 */

:root {
  --tmb-bg: #FAF9F6;
  --tmb-surface: #FFFFFF;
  --tmb-surface-muted: #F3F1EC;
  --tmb-border: #E5E2DC;
  --tmb-text: #1C1917;
  --tmb-text-muted: #57534E;
  --tmb-text-subtle: #78716C;
  --tmb-accent: #0F4C3A;
  --tmb-accent-hover: #0A3629;
  --tmb-gold: #B45309;
  --tmb-font-display: "Cormorant Garamond", Georgia, serif;
  --tmb-font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --tmb-radius: 12px;
  --tmb-container: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: var(--tmb-font-sans);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.tmb-body {
  margin: 0;
  background: var(--tmb-bg);
  color: var(--tmb-text);
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.tmb-sr-only,
.tmb-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.tmb-skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  background: var(--tmb-accent);
  color: #fff;
  z-index: 9999;
  border-radius: 8px;
}

.tmb-container {
  max-width: var(--tmb-container);
  margin: 0 auto;
  padding: 0 16px;
}
.tmb-container--narrow { max-width: 820px; }

@media (min-width: 640px) {
  .tmb-container { padding: 0 24px; }
}

/* Announcement Bar */
.tmb-announcement {
  background: var(--tmb-accent);
  color: #fff;
  font-size: 12px;
  padding: 8px 0;
}
.tmb-announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tmb-announcement-text {
  margin: 0 auto;
  text-align: center;
  font-weight: 500;
}
.tmb-announcement-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

/* Header */
.tmb-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 246, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--tmb-border);
}
.tmb-header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tmb-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.tmb-wordmark {
  font-family: var(--tmb-font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.tmb-nav { display: none; }
.tmb-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
.tmb-nav-list a {
  font-size: 14px;
  font-weight: 500;
  color: #44403C;
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tmb-nav-list a:hover {
  color: var(--tmb-accent);
  border-bottom-color: var(--tmb-accent);
}

.tmb-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.tmb-search-form {
  display: none;
  position: relative;
  width: 240px;
}
.tmb-search-form--mobile {
  display: flex;
  width: 100%;
  padding: 8px 0 12px;
}
.tmb-search-input {
  width: 100%;
  height: 40px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--tmb-border);
  border-radius: 8px;
  background: var(--tmb-surface);
  font-size: 13px;
  color: var(--tmb-text);
}
.tmb-search-input:focus {
  outline: none;
  border-color: var(--tmb-accent);
}
.tmb-search-submit {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--tmb-text-subtle);
  padding: 6px;
  cursor: pointer;
}
.tmb-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--tmb-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.tmb-icon-btn:hover { background: #EFECE5; }
.tmb-action-link {
  display: none;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
}
.tmb-action-link:hover { background: #EFECE5; }
.tmb-cart-trigger {
  height: 40px;
  padding: 0 14px;
  background: var(--tmb-accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.tmb-cart-trigger:hover { background: var(--tmb-accent-hover); }
.tmb-cart-count {
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}
.tmb-cart-label { display: none; }

@media (min-width: 768px) {
  .tmb-search-form { display: block; }
  .tmb-mobile-search-toggle { display: none; }
  .tmb-action-link { display: inline-flex; }
  .tmb-cart-label { display: inline; }
}
@media (min-width: 1024px) {
  .tmb-nav { display: block; }
  .tmb-mobile-toggle { display: none; }
}

/* Hero Slider */
.tmb-hero {
  background: var(--tmb-surface-muted);
  border-bottom: 1px solid var(--tmb-border);
  padding: 32px 0 44px;
}
.tmb-hero-slide {
  display: none;
  grid-template-columns: 1fr;
  gap: 24px;
}
.tmb-hero-slide.is-active { display: grid; }
@media (min-width: 1024px) {
  .tmb-hero-slide.is-active {
    grid-template-columns: 5fr 7fr;
    gap: 32px;
    align-items: stretch;
  }
}
.tmb-hero-copy {
  background: var(--tmb-surface);
  border: 1px solid var(--tmb-border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.tmb-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tmb-accent);
  margin: 0;
}
.tmb-kicker--light { color: rgba(255, 255, 255, 0.78); }
.tmb-hero-title {
  font-family: var(--tmb-font-display);
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  line-height: 1.12;
  font-weight: 600;
  margin: 12px 0 0;
  text-wrap: balance;
}
.tmb-hero-subtitle {
  font-size: 15px;
  color: var(--tmb-text-muted);
  margin: 14px 0 0;
}
.tmb-hero-actions {
  padding-top: 20px;
  border-top: 1px solid var(--tmb-surface-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tmb-hero-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--tmb-border);
  min-height: 260px;
  max-height: 460px;
}
.tmb-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tmb-slider-nav { display: flex; gap: 8px; }
.tmb-slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--tmb-border);
  background: var(--tmb-bg);
  font-size: 20px;
  cursor: pointer;
}
.tmb-slider-btn:hover { background: #EFECE5; }

/* Buttons */
.tmb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.tmb-btn--primary { background: var(--tmb-accent); color: #fff; }
.tmb-btn--primary:hover { background: var(--tmb-accent-hover); }
.tmb-btn--white { background: #fff; color: var(--tmb-accent); }
.tmb-btn--dark { background: var(--tmb-text); color: #fff; margin-top: 12px; width: 100%; }

/* Sections & Grids */
.tmb-section { padding: 56px 0; border-bottom: 1px solid var(--tmb-border); }
.tmb-section--white { background: var(--tmb-surface); }
.tmb-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.tmb-section-title,
.tmb-page-title {
  font-family: var(--tmb-font-display);
  font-size: clamp(1.85rem, 2.8vw, 2.4rem);
  font-weight: 600;
  margin: 4px 0 0;
  line-height: 1.15;
}
.tmb-text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--tmb-accent);
}
.tmb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .tmb-grid--4, .tmb-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .tmb-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .tmb-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Tabs */
.tmb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--tmb-surface-muted);
  border-radius: 10px;
}
.tmb-tab {
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--tmb-text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.tmb-tab.is-active {
  background: var(--tmb-surface);
  color: var(--tmb-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Category & Product Cards */
.tmb-cat-card,
.tmb-card {
  background: var(--tmb-surface);
  border: 1px solid var(--tmb-border);
  border-radius: var(--tmb-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tmb-cat-card:hover,
.tmb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(28, 25, 23, 0.06);
}
.tmb-cat-media,
.tmb-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--tmb-surface-muted);
  overflow: hidden;
}
.tmb-cat-media img,
.tmb-card-img { width: 100%; height: 100%; object-fit: cover; }
.tmb-cat-body,
.tmb-card-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.tmb-cat-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tmb-cat-title { margin: 0; font-size: 16px; font-weight: 600; }
.tmb-cat-count { font-size: 12px; color: var(--tmb-text-subtle); }
.tmb-cat-desc { margin: 4px 0 0; font-size: 12px; color: var(--tmb-text-muted); }

.tmb-card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--tmb-accent);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
}
.tmb-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--tmb-text-subtle);
  margin-bottom: 6px;
}
.tmb-card-rating { color: var(--tmb-gold); font-weight: 600; white-space: nowrap; }
.tmb-card-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.tmb-card-footer {
  padding-top: 12px;
  border-top: 1px solid var(--tmb-surface-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tmb-card-price { font-size: 15px; font-weight: 700; }
.tmb-card-price del { color: var(--tmb-text-subtle); font-weight: 400; font-size: 12px; margin-right: 4px; }
.tmb-card-price ins { text-decoration: none; color: var(--tmb-accent); }
.tmb-card-add {
  padding: 8px 12px;
  background: var(--tmb-surface-muted);
  color: var(--tmb-text);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.tmb-card-add:hover { background: var(--tmb-accent); color: #fff; }

/* Offer Band */
.tmb-offer-band { background: var(--tmb-accent); color: #fff; padding: 52px 0; }
.tmb-offer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.tmb-offer-title {
  font-family: var(--tmb-font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin: 8px 0 0;
}
.tmb-offer-desc { margin: 10px 0 0; max-width: 580px; color: rgba(255, 255, 255, 0.86); font-size: 15px; }

/* Pillars, Reviews, Posts */
.tmb-pillar { border-top: 1px solid var(--tmb-border); padding-top: 16px; }
.tmb-pillar h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.tmb-pillar p { margin: 0; font-size: 14px; color: var(--tmb-text-muted); }

.tmb-review-card {
  background: var(--tmb-surface);
  border: 1px solid var(--tmb-border);
  border-radius: var(--tmb-radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.tmb-review-stars { color: var(--tmb-gold); font-size: 14px; }
.tmb-review-quote { margin: 0; font-size: 14px; }
.tmb-review-meta { font-size: 12px; color: var(--tmb-text-subtle); display: flex; flex-direction: column; gap: 2px; }
.tmb-review-meta strong { color: var(--tmb-text); }

.tmb-post-media { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.tmb-post-media img { width: 100%; height: 100%; object-fit: cover; }
.tmb-post-meta { font-size: 12px; color: var(--tmb-text-subtle); margin-bottom: 4px; }
.tmb-post-title { font-family: var(--tmb-font-display); font-size: 22px; margin: 0; }
.tmb-post-excerpt { font-size: 14px; color: var(--tmb-text-muted); margin: 8px 0 0; }

/* WooCommerce Archive & PDP */
.tmb-breadcrumbs { font-size: 12px; color: var(--tmb-text-subtle); margin-bottom: 16px; }
.tmb-archive-header { margin-bottom: 24px; }
.tmb-archive-layout.has-sidebar { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 1024px) {
  .tmb-archive-layout.has-sidebar { grid-template-columns: 260px 1fr; }
}
.tmb-archive-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 1024px) { ul.products { grid-template-columns: repeat(4, 1fr); } }

.tmb-pdp-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; }
@media (min-width: 1024px) { .tmb-pdp-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.tmb-pdp-discount { display: inline-block; font-size: 12px; font-weight: 700; color: var(--tmb-accent); margin-bottom: 8px; }

/* Drawers */
.tmb-drawer-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; }
.tmb-drawer-backdrop[hidden] { display: none; }
.tmb-drawer-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); }
.tmb-drawer {
  position: relative;
  z-index: 2;
  width: min(380px, 90vw);
  height: 100%;
  background: var(--tmb-bg);
  padding: 20px;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.tmb-drawer--right { margin-left: auto; }
.tmb-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--tmb-border);
  margin-bottom: 16px;
}
.tmb-drawer-title { margin: 0; font-family: var(--tmb-font-display); font-size: 24px; }
.tmb-mobile-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.tmb-mobile-nav-list a { display: block; padding: 10px 12px; border-radius: 8px; font-weight: 500; }
.tmb-mobile-nav-list a:hover { background: #EFECE5; }

/* Footer */
.tmb-footer { background: #1C1917; color: #E7E5E4; padding: 56px 0 28px; }
.tmb-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) { .tmb-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.tmb-footer-wordmark { font-family: var(--tmb-font-display); font-size: 30px; font-weight: 600; color: #fff; }
.tmb-footer-desc, .tmb-footer-pay { font-size: 13px; color: #A8A29E; line-height: 1.6; }
.tmb-footer-contact, .tmb-footer-links { list-style: none; padding: 0; margin: 12px 0 0; font-size: 13px; color: #D6D3D1; display: flex; flex-direction: column; gap: 8px; }
.tmb-footer-heading { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin: 0 0 12px; }
.tmb-footer-bottom { padding-top: 20px; font-size: 12px; color: #A8A29E; }


/* Automatic WooCommerce category navigation: homepage + shop + category archives */
.tmb-home-layout{width:min(1440px,100%);margin:0 auto;padding:0 24px;display:grid;grid-template-columns:250px minmax(0,1fr);gap:28px;align-items:start}
.tmb-home-sidebar,.tmb-shop-sidebar{min-width:0}
.tmb-home-sidebar{padding-top:28px;position:sticky;top:24px;align-self:start}
.tmb-home-content{min-width:0}
.tmb-home-content>.tmb-hero,.tmb-home-content>.tmb-section{width:100%}
.tmb-home-content .tmb-container{max-width:100%}
.tmb-category-menu{background:var(--tmb-surface,#fff);border:1px solid var(--tmb-border,#e7e2d8);border-radius:12px;padding:18px 16px;box-shadow:0 8px 24px rgba(28,25,23,.045)}
.tmb-category-menu-title{margin:0 0 12px;padding-bottom:12px;border-bottom:1px solid var(--tmb-border,#e7e2d8);font-size:16px;font-weight:700;color:var(--tmb-text,#292524)}
.tmb-category-list,.tmb-category-list ul{list-style:none;margin:0;padding:0}
.tmb-category-list li{margin:0;padding:0}
.tmb-category-list>li{border-bottom:1px solid var(--tmb-border,#eee9e1)}
.tmb-category-list>li:last-child{border-bottom:0}
.tmb-category-list a{display:block;padding:9px 4px;color:var(--tmb-text,#292524);font-size:13px;line-height:1.45;text-decoration:none;transition:color .18s ease,padding-left .18s ease}
.tmb-category-list a:hover,.tmb-category-list .current-cat>a,.tmb-category-list .current-cat-parent>a{color:var(--tmb-accent,#9b7545);padding-left:8px}
.tmb-category-list ul{margin:0 0 8px 12px;padding-left:10px;border-left:1px solid var(--tmb-border,#e7e2d8)}
.tmb-category-list ul a{padding:6px 4px;color:var(--tmb-text-muted,#78716c);font-size:12px}
.tmb-shop-sidebar .tmb-category-menu{margin-bottom:20px}
.tmb-shop-filter-widgets .tmb-widget{margin-bottom:18px}
.tmb-shop-filter-widgets .tmb-widget-title{margin:0 0 10px;font-size:15px}
@media(max-width:1023px){.tmb-home-layout{grid-template-columns:1fr;gap:0;padding:0}.tmb-home-sidebar{position:static;padding:16px 20px 0}.tmb-home-sidebar .tmb-category-menu{padding:14px}.tmb-home-content .tmb-container{padding-left:20px;padding-right:20px}}
@media(max-width:600px){.tmb-category-list a{padding-top:8px;padding-bottom:8px}}
