/* ============================================================
   homedecor.css — Scandinavian Furniture & Home Decor Theme
   CSS prefix: hd-
   Palette: Warm Brown #8B6E4E · Cream #FAF7F4 · Dark #1E1E1E
   Fonts: Cormorant Garamond (headings) + DM Sans (body)
   ============================================================ */

/* ── Variables ── */
:root {
  --hd-brown:       #8B6E4E;
  --hd-brown-dark:  #6B5237;
  --hd-brown-light: #C4A882;
  --hd-terracotta:  #C17959;
  --hd-sage:        #7A8C72;
  --hd-dark:        #1E1E1E;
  --hd-text:        #4A4A4A;
  --hd-text-muted:  #888888;
  --hd-border:      #E2D9CE;
  --hd-bg:          #FAF7F4;
  --hd-bg-alt:      #F3EDE5;
  --hd-white:       #FFFFFF;
  --hd-card-bg:     #F5EFE8;
  --hd-star:        #E8A838;
  --hd-sale:        #C0392B;
  --hd-new:         #7A8C72;
}

/* ══════════════════════════════════════════════
   FIX: HellasCart jQueryRoute Tailwind elements
══════════════════════════════════════════════ */
#mobile-menu,
#pwa-install-modal,
#commonModal,
#search-popup-container { display: none !important; }

.overlay.wish-overlay { display: none !important; }
.wishajaxDrawer {
  position: fixed !important;
  top: -9999px !important;
  left: -9999px !important;
  visibility: hidden !important;
}

/* Cart overlay & panel */
#cart-overlay {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,.4) !important;
  z-index: 1060 !important;
}
#cart-overlay.open { display: block !important; }
#cart-panel {
  position: fixed !important;
  top: 0 !important;
  right: -420px !important;
  bottom: unset !important;
  left: unset !important;
  width: 380px !important;
  max-width: 95vw !important;
  height: 100vh !important;
  background: #ffffff !important;
  z-index: 1070 !important;
  box-shadow: -2px 0 24px rgba(0,0,0,.1) !important;
  overflow-y: auto !important;
  transition: right .35s ease !important;
}
#cart-panel.open { right: 0 !important; }

/* System cart sidebar button compatibility */
.btn-primary {
  display: block; width: 100%; padding: 13px 20px;
  background: var(--hd-brown); color: #fff;
  border: 2px solid var(--hd-brown); border-radius: 4px;
  text-align: center; font-weight: 600; text-decoration: none;
  transition: background .2s, border-color .2s; cursor: pointer;
}
.btn-primary:hover { background: var(--hd-brown-dark); border-color: var(--hd-brown-dark); color: #fff; }
.btn-outline {
  display: block; width: 100%; padding: 11px 20px;
  background: transparent; color: var(--hd-brown);
  border: 2px solid var(--hd-brown); border-radius: 4px;
  text-align: center; font-weight: 600; text-decoration: none;
  transition: background .2s, color .2s; cursor: pointer;
}
.btn-outline:hover { background: var(--hd-brown); color: #fff; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: auto !important; margin: 0; padding: 0; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--hd-text);
  background: var(--hd-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--hd-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: .5rem;
}

a { color: var(--hd-brown); text-decoration: none; transition: color .2s; }
a:hover { color: var(--hd-brown-dark); }
img { max-width: 100%; height: auto; display: block; }
p { margin-bottom: 1rem; }

.container { max-width: 1320px; }

/* ── Section spacing ── */
.hd-section { padding: 80px 0; }
.hd-section-bg { background: var(--hd-bg); }

/* ── Section Title ── */
.hd-section-title {
  text-align: center;
  margin-bottom: 50px;
}
.hd-section-title h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: 14px;
}
.hd-section-title p {
  font-size: 15px;
  color: var(--hd-text-muted);
  max-width: 500px;
  margin: 0 auto;
}
.hd-section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.hd-section-head-row h2 {
  font-size: clamp(22px, 3vw, 34px);
  margin: 0;
}

/* ── Divider ── */
.hd-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.hd-divider span {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--hd-brown-light);
}
.hd-divider i { color: var(--hd-brown); font-size: 10px; }

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.hd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.hd-btn-brown {
  background: var(--hd-brown);
  color: #fff;
  border-radius: 4px;
}
.hd-btn-brown:hover {
  background: var(--hd-brown-dark);
  color: #fff;
}
.hd-btn-outline {
  background: transparent;
  color: var(--hd-brown);
  border: 2px solid var(--hd-brown);
  border-radius: 4px;
}
.hd-btn-outline:hover {
  background: var(--hd-brown);
  color: #fff;
}
.hd-btn-dark {
  background: var(--hd-dark);
  color: #fff;
  border-radius: 4px;
}
.hd-btn-dark:hover {
  background: #3a3a3a;
  color: #fff;
}

/* ══════════════════════════════════════════════
   ANNOUNCEMENT BAR
══════════════════════════════════════════════ */
.hd-announce {
  background: var(--hd-dark);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  letter-spacing: .04em;
}
.hd-announce a { color: var(--hd-brown-light); }

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
.hd-header {
  background: var(--hd-white);
  border-bottom: 1px solid var(--hd-border);
  position: sticky;
  top: 0;
  z-index: 900;
}
.hd-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 70px;
}
.hd-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--hd-dark);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.hd-logo img { height: 44px; width: auto; }
.hd-logo:hover { color: var(--hd-brown); }

/* ── Desktop Nav ── */
.hd-nav { flex: 1; display: flex; justify-content: center; }
.hd-nav > ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hd-nav > ul > li { position: relative; }
.hd-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--hd-text);
  text-decoration: none;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.hd-nav > ul > li > a:hover,
.hd-nav > ul > li > a.active { color: var(--hd-brown); }

/* Dropdown override */
.hd-nav .dropdown-menu {
  display: none !important;
  flex-direction: column !important;
  gap: 0 !important;
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  min-width: 220px !important;
  background: #fff !important;
  border: 1px solid var(--hd-border) !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.1) !important;
  padding: 8px 0 !important;
  z-index: 1050 !important;
}
.hd-nav .dropdown-menu.show { display: block !important; }
.hd-nav .dropdown-menu > li { display: block !important; flex: none !important; width: 100% !important; }
.hd-nav .dropdown-menu > li > a {
  display: block !important;
  padding: 9px 20px !important;
  font-size: 13px !important;
  color: var(--hd-text) !important;
  text-decoration: none !important;
  transition: background .15s, color .15s;
}
.hd-nav .dropdown-menu > li > a:hover {
  background: var(--hd-bg) !important;
  color: var(--hd-brown) !important;
}

/* ── Header Icons ── */
.hd-header-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.hd-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--hd-dark);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background .2s, color .2s;
  font-size: 17px;
}
.hd-icon-btn:hover { background: var(--hd-bg); color: var(--hd-brown); }
.hd-icon-btn .hd-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  background: var(--hd-brown);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* Hamburger */
.hd-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--hd-dark);
  padding: 6px;
  transition: color .2s;
}
.hd-hamburger:hover { color: var(--hd-brown); }

/* ══════════════════════════════════════════════
   MOBILE DRAWER
══════════════════════════════════════════════ */
.hd-mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1100;
}
.hd-mobile-overlay.open { display: block; }
.hd-mobile-nav {
  position: fixed;
  top: 0; left: -300px;
  width: 280px; height: 100vh;
  background: var(--hd-white);
  z-index: 1110;
  overflow-y: auto;
  transition: left .3s ease;
  box-shadow: 2px 0 20px rgba(0,0,0,.12);
}
.hd-mobile-nav.open { left: 0; }
.hd-mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--hd-border);
}
.hd-mobile-close {
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--hd-text);
}
.hd-mobile-nav ul {
  list-style: none; margin: 0; padding: 12px 0;
}
.hd-mobile-nav ul li a {
  display: block;
  padding: 11px 20px;
  color: var(--hd-text);
  font-size: 14px;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  transition: color .2s, background .2s;
}
.hd-mobile-nav ul li a:hover { color: var(--hd-brown); background: var(--hd-bg); }

/* ══════════════════════════════════════════════
   HERO SLIDER
══════════════════════════════════════════════ */
.hd-hero-swiper { width: 100%; }
.hd-hero-slide {
  position: relative;
  height: 560px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.hd-hero-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30,30,30,.65) 0%, rgba(30,30,30,.25) 60%, transparent 100%);
}
.hd-hero-content {
  position: relative;
  z-index: 2;
  max-width: 540px;
}
.hd-hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hd-brown-light);
  margin-bottom: 16px;
}
.hd-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hd-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.85);
  margin-bottom: 32px;
  max-width: 420px;
}
.hd-hero-prev, .hd-hero-next {
  color: #fff !important;
  opacity: .7;
  transition: opacity .2s;
}
.hd-hero-prev:hover, .hd-hero-next:hover { opacity: 1; }
.hd-hero-prev::after, .hd-hero-next::after { font-size: 18px; }

/* ══════════════════════════════════════════════
   CATEGORY STRIP
══════════════════════════════════════════════ */
.hd-cat-strip { padding: 56px 0; background: var(--hd-bg); }
.hd-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s;
}
.hd-cat-card:hover { transform: translateY(-4px); }
.hd-cat-img-wrap {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--hd-card-bg);
  margin-bottom: 14px;
  flex-shrink: 0;
}
.hd-cat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.hd-cat-card:hover .hd-cat-img-wrap img { transform: scale(1.07); }
.hd-cat-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--hd-dark);
  margin-bottom: 2px;
}
.hd-cat-count { font-size: 12px; color: var(--hd-text-muted); }

/* ══════════════════════════════════════════════
   PROMO BANNERS — 3 cards
══════════════════════════════════════════════ */
.hd-promo-bars { padding: 56px 0; }
.hd-promo-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  height: 320px;
  text-decoration: none;
  background: var(--hd-card-bg);
}
.hd-promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.hd-promo-card:hover img { transform: scale(1.04); }
.hd-promo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,20,10,.65) 30%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
}
.hd-promo-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hd-brown-light);
  margin-bottom: 6px;
}
.hd-promo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.2;
}
.hd-promo-sub {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  margin-bottom: 14px;
}
.hd-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.5);
  padding-bottom: 2px;
  transition: color .2s;
}
.hd-promo-card:hover .hd-promo-cta { color: var(--hd-brown-light); }

/* ══════════════════════════════════════════════
   PRODUCT TABS (Featured / New / Sale)
══════════════════════════════════════════════ */
.hd-products-section { padding: 80px 0; }

.hd-tab-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hd-tab-btn {
  padding: 9px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hd-text-muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
}
.hd-tab-btn:hover { color: var(--hd-brown); }
.hd-tab-btn.active {
  color: var(--hd-brown);
  border-color: var(--hd-brown);
  background: var(--hd-bg);
}
.hd-tab-pane { display: none; }
.hd-tab-pane.active { display: block; }

/* ── Product Card ── */
.hd-product-card {
  position: relative;
  background: var(--hd-white);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}
.hd-product-card:hover {
  box-shadow: 0 8px 32px rgba(139,110,78,.15);
  transform: translateY(-3px);
}
.hd-product-img-wrap {
  position: relative;
  background: var(--hd-card-bg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
/* Image link: display:block fills the wrap but doesn't intercept hover-button clicks */
.hd-product-img-wrap > a { display: block; width: 100%; height: 100%; }
.hd-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.hd-product-card:hover .hd-product-img-wrap img { transform: scale(1.05); }
.hd-product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.hd-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 3px;
}
.hd-badge-sale { background: var(--hd-sale); color: #fff; }
.hd-badge-new  { background: var(--hd-new);  color: #fff; }

.hd-product-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .3s, transform .3s;
}
.hd-product-card:hover .hd-product-actions {
  opacity: 1;
  transform: translateX(0);
}
.hd-action-btn {
  width: 36px;
  height: 36px;
  background: var(--hd-white);
  border: 1px solid var(--hd-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--hd-text);
  text-decoration: none;
  transition: background .2s, color .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.hd-action-btn:hover { background: var(--hd-brown); color: #fff; border-color: var(--hd-brown); }

.hd-product-add-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--hd-brown);
  color: #fff !important;
  text-align: center;
  padding: 11px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(100%);
  transition: transform .3s;
  display: block;
  /* button reset */
  border: none;
  width: 100%;
  cursor: pointer;
  outline: none;
}
.hd-product-card:hover .hd-product-add-overlay { transform: translateY(0); }

.hd-product-body {
  padding: 16px;
}
.hd-product-vendor {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hd-brown-light);
  margin-bottom: 5px;
}
.hd-product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
}
.hd-product-name a {
  color: var(--hd-dark);
  text-decoration: none;
  transition: color .2s;
}
.hd-product-name a:hover { color: var(--hd-brown); }
.hd-product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--hd-brown);
}
.hd-old-price {
  font-size: 12px;
  color: var(--hd-text-muted);
  text-decoration: line-through;
  margin-right: 6px;
  font-weight: 400;
}
.hd-sale-price { color: var(--hd-sale); }

.hd-view-all {
  text-align: center;
  margin-top: 48px;
}

/* ══════════════════════════════════════════════
   PROMO WIDE BANNER (2 col)
══════════════════════════════════════════════ */
.hd-wide-banner {
  background: var(--hd-bg-alt);
  padding: 80px 0;
}
.hd-wide-banner .hd-wb-text { padding: 40px 0; }
.hd-wb-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hd-brown);
  margin-bottom: 16px;
}
.hd-wb-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--hd-dark);
  margin-bottom: 18px;
  line-height: 1.15;
}
.hd-wb-desc {
  font-size: 15px;
  color: var(--hd-text-muted);
  margin-bottom: 32px;
  max-width: 420px;
}
.hd-wb-img img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 8px;
}

/* ══════════════════════════════════════════════
   BESTSELLING CAROUSEL
══════════════════════════════════════════════ */
.hd-bestselling { padding: 80px 0; }
.hd-swiper-nav-btn {
  width: 40px; height: 40px;
  background: var(--hd-white);
  border: 1px solid var(--hd-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--hd-text);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.hd-swiper-nav-btn:hover { background: var(--hd-brown); color: #fff; border-color: var(--hd-brown); }
.hd-swiper-nav { display: flex; gap: 8px; }

/* ══════════════════════════════════════════════
   SERVICE STRIP (USP icons)
══════════════════════════════════════════════ */
.hd-services {
  background: var(--hd-dark);
  padding: 48px 0;
}
.hd-service-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 16px;
}
.hd-service-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--hd-brown-light);
  flex-shrink: 0;
}
.hd-service-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.hd-service-sub { font-size: 13px; color: rgba(255,255,255,.55); }

/* ══════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════ */
.hd-testimonials { padding: 80px 0; background: var(--hd-bg); }
.hd-testimonial-card {
  background: var(--hd-white);
  border-radius: 8px;
  padding: 36px;
  height: 100%;
  border: 1px solid var(--hd-border);
  transition: box-shadow .3s;
}
.hd-testimonial-card:hover { box-shadow: 0 8px 32px rgba(139,110,78,.12); }
.hd-testimonial-quote {
  font-size: 36px;
  color: var(--hd-brown-light);
  line-height: 1;
  margin-bottom: 16px;
}
.hd-testimonial-stars { color: var(--hd-star); margin-bottom: 16px; font-size: 14px; }
.hd-testimonial-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--hd-text);
  font-style: italic;
  margin-bottom: 24px;
}
.hd-testimonial-author { display: flex; align-items: center; gap: 12px; }
.hd-testimonial-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--hd-bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--hd-brown);
  flex-shrink: 0;
}
.hd-testimonial-name { font-weight: 600; font-size: 14px; color: var(--hd-dark); display: block; }
.hd-testimonial-role { font-size: 12px; color: var(--hd-text-muted); display: block; }

/* ══════════════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════════════ */
.hd-newsletter {
  background: var(--hd-brown);
  padding: 80px 0;
  text-align: center;
}
.hd-newsletter h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.hd-newsletter p { font-size: 15px; color: rgba(255,255,255,.8); margin-bottom: 32px; }
.hd-newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
}
.hd-newsletter-form input {
  flex: 1;
  padding: 13px 18px;
  font-size: 14px;
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
  background: rgba(255,255,255,.9);
  color: var(--hd-dark);
}
.hd-newsletter-form button {
  padding: 13px 24px;
  background: var(--hd-dark);
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.hd-newsletter-form button:hover { background: #3a3a3a; }

/* ══════════════════════════════════════════════
   BLOG SECTION
══════════════════════════════════════════════ */
.hd-blog-section { padding: 80px 0; }
.hd-blog-card { border-radius: 8px; overflow: hidden; background: var(--hd-white); }
.hd-blog-img-wrap {
  overflow: hidden;
  height: 240px;
  background: var(--hd-card-bg);
}
.hd-blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.hd-blog-card:hover .hd-blog-img-wrap img { transform: scale(1.05); }
.hd-blog-body { padding: 24px; }
.hd-blog-meta {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hd-brown);
  margin-bottom: 10px;
}
.hd-blog-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  display: block;
}
.hd-blog-title a { color: var(--hd-dark); text-decoration: none; transition: color .2s; }
.hd-blog-title a:hover { color: var(--hd-brown); }
.hd-blog-excerpt { font-size: 14px; color: var(--hd-text-muted); margin-bottom: 16px; }
.hd-blog-read-more {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hd-brown);
  text-decoration: none;
  transition: color .2s;
}
.hd-blog-read-more:hover { color: var(--hd-brown-dark); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.hd-footer {
  background: var(--hd-dark);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}
.hd-footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 16px;
}
.hd-footer-logo img { height: 44px; width: auto; }
.hd-footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 20px; color: rgba(255,255,255,.55); }
.hd-footer-social { display: flex; gap: 10px; }
.hd-social-btn {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 13px;
  transition: background .2s, border-color .2s, color .2s;
}
.hd-social-btn:hover {
  background: var(--hd-brown);
  border-color: var(--hd-brown);
  color: #fff;
}
.hd-footer-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hd-footer-links { list-style: none; margin: 0; padding: 0; }
.hd-footer-links li { margin-bottom: 9px; }
.hd-footer-links li a {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
}
.hd-footer-links li a:hover { color: var(--hd-brown-light); }
.hd-footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(255,255,255,.55);
}
.hd-footer-contact-item i { color: var(--hd-brown-light); margin-top: 3px; flex-shrink: 0; }
.hd-footer-bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.35);
}

/* ══════════════════════════════════════════════
   PRODUCT LIST PAGE
══════════════════════════════════════════════ */
.hd-page-banner {
  height: 200px;
  background: var(--hd-bg-alt);
  display: flex;
  align-items: center;
}
.hd-page-banner h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin: 0;
}
.hd-breadcrumb {
  font-size: 13px;
  color: var(--hd-text-muted);
  margin-top: 8px;
}
.hd-breadcrumb a { color: var(--hd-brown); text-decoration: none; }
.hd-breadcrumb a:hover { color: var(--hd-brown-dark); }

/* Sidebar */
.hd-sidebar { position: sticky; top: 90px; }
.hd-sidebar-box {
  background: var(--hd-white);
  border: 1px solid var(--hd-border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}
.hd-sidebar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--hd-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hd-border);
}
.hd-sidebar-box .form-check { padding-left: 0; margin-bottom: 8px; }
.hd-sidebar-box .form-check-input {
  float: none; margin: 0 8px 0 0;
  accent-color: var(--hd-brown);
}
.hd-sidebar-box .form-check-label {
  font-size: 13px;
  color: var(--hd-text);
  cursor: pointer;
}
.hd-price-range input[type=range] {
  accent-color: var(--hd-brown);
  width: 100%;
}
.hd-apply-filter {
  padding: 10px 24px;
  background: var(--hd-brown);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 12px;
  transition: background .2s;
}
.hd-apply-filter:hover { background: var(--hd-brown-dark); }

/* Sort row */
.hd-sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.hd-sort-row select {
  border: 1px solid var(--hd-border);
  border-radius: 4px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--hd-text);
  outline: none;
  cursor: pointer;
  background: var(--hd-white);
}
.hd-result-count { font-size: 13px; color: var(--hd-text-muted); }

/* Pagination */
.hd-pagination { display: flex; justify-content: center; margin-top: 48px; }
.hd-pagination .pagination { gap: 6px; }
.hd-pagination .page-link {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--hd-border);
  font-size: 14px;
  color: var(--hd-text);
  background: var(--hd-white);
  padding: 0;
  transition: background .2s, color .2s;
}
.hd-pagination .page-item.active .page-link,
.hd-pagination .page-link:hover {
  background: var(--hd-brown);
  border-color: var(--hd-brown);
  color: #fff;
}

/* Subcategory cards */
.hd-subcat-card {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 32px 16px;
  background: var(--hd-bg);
  border: 1px solid var(--hd-border);
  border-radius: 8px;
  transition: box-shadow .3s, transform .3s;
}
.hd-subcat-card:hover {
  box-shadow: 0 8px 28px rgba(139,110,78,.15);
  transform: translateY(-3px);
}
.hd-subcat-img {
  width: 120px; height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--hd-card-bg);
  margin: 0 auto 16px;
}
.hd-subcat-img img { width: 100%; height: 100%; object-fit: cover; }
.hd-subcat-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--hd-dark);
  margin-bottom: 6px;
}

/* ══════════════════════════════════════════════
   PRODUCT DETAIL PAGE
══════════════════════════════════════════════ */
.hd-detail-gallery { position: sticky; top: 90px; }
.hd-detail-main-img {
  background: var(--hd-card-bg);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 12px;
}
.hd-detail-main-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hd-detail-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.hd-detail-thumb {
  width: 70px; height: 70px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--hd-card-bg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s;
}
.hd-detail-thumb.active { border-color: var(--hd-brown); }
.hd-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }

.hd-detail-info { padding: 0 0 0 12px; }
.hd-detail-vendor {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hd-brown-light);
  margin-bottom: 8px;
}
.hd-detail-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: var(--hd-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}
.hd-detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.hd-detail-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--hd-brown);
}
.hd-detail-old-price {
  font-size: 16px;
  color: var(--hd-text-muted);
  text-decoration: line-through;
}
.hd-detail-sale-badge {
  background: var(--hd-sale);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
}
.hd-detail-stars { color: var(--hd-star); font-size: 14px; margin-bottom: 16px; }
.hd-detail-desc {
  font-size: 14px;
  color: var(--hd-text);
  line-height: 1.8;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hd-border);
}
.hd-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.hd-qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--hd-border);
  border-radius: 4px;
  overflow: hidden;
}
.hd-qty-stepper button {
  width: 40px; height: 44px;
  background: var(--hd-bg);
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--hd-text);
  transition: background .2s;
}
.hd-qty-stepper button:hover { background: var(--hd-border); }
.hd-qty-stepper input {
  width: 56px;
  height: 44px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--hd-dark);
  outline: none;
  background: var(--hd-white);
}
.hd-detail-add-btn {
  flex: 1;
  padding: 13px 24px;
  background: var(--hd-brown);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.hd-detail-add-btn:hover { background: var(--hd-brown-dark); }
.hd-detail-wish-btn {
  width: 48px; height: 48px;
  border: 1px solid var(--hd-border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--hd-text);
  background: var(--hd-white);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.hd-detail-wish-btn:hover { background: var(--hd-brown); color: #fff; border-color: var(--hd-brown); }
.hd-detail-meta { font-size: 13px; color: var(--hd-text-muted); margin-bottom: 6px; }
.hd-detail-meta span { color: var(--hd-dark); font-weight: 500; }
.hd-detail-tabs { margin-top: 48px; }
.hd-detail-tabs .nav-link {
  color: var(--hd-text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 12px 20px;
  transition: color .2s;
}
.hd-detail-tabs .nav-link.active,
.hd-detail-tabs .nav-link:hover {
  color: var(--hd-brown);
  border-bottom-color: var(--hd-brown);
  background: none;
}
.hd-related-section { padding: 64px 0; background: var(--hd-bg); }

/* ══════════════════════════════════════════════
   BLOG PAGE
══════════════════════════════════════════════ */
.hd-blog-page { padding: 64px 0; }
.hd-blog-page-card {
  background: var(--hd-white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--hd-border);
  transition: box-shadow .3s;
}
.hd-blog-page-card:hover { box-shadow: 0 8px 28px rgba(139,110,78,.12); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 991px) {
  .hd-nav { display: none; }
  .hd-hamburger { display: flex; }
  .hd-hero-slide { height: 420px; }
  .hd-detail-info { padding: 24px 0 0; }
  .hd-detail-gallery { position: static; }
  /* Header: tighten gaps so all icons fit on any screen */
  .hd-header-inner { gap: 8px; }
  .hd-logo {
    flex: 1;
    min-width: 0;
    font-size: 17px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hd-logo img { height: 36px; }
  .hd-header-icons { gap: 0; }
  .hd-icon-btn { width: 36px; height: 36px; font-size: 15px; }
}
@media (max-width: 767px) {
  .hd-hero-slide { height: 320px; }
  .hd-cat-img-wrap { width: 120px; height: 120px; }
  .hd-section, .hd-products-section, .hd-blog-section,
  .hd-testimonials, .hd-bestselling, .hd-promo-bars { padding: 48px 0; }
  .hd-newsletter-form { flex-direction: column; }
  .hd-newsletter-form input { border-radius: 4px; }
  .hd-newsletter-form button { border-radius: 4px; }
  .hd-wb-img img { height: 280px; }
}
@media (max-width: 400px) {
  /* Very small phones: shrink logo font further */
  .hd-logo { font-size: 14px; }
  .hd-header-inner { height: 56px; }
}

/* ══════════════════════════════════════════════
   TAILWIND OVERRIDES (system pages: cart, checkout, wishlist, etc.)
   Tailwind's bg-primary = #3b82f6 (blue) — override to homedecor brown
══════════════════════════════════════════════ */
.bg-primary           { background-color: var(--hd-brown) !important; }
.text-primary         { color: var(--hd-brown) !important; }
.hover\:text-primary:hover { color: var(--hd-brown) !important; }
.border-primary       { border-color: var(--hd-brown) !important; }
.focus\:ring-primary:focus { --tw-ring-color: var(--hd-brown); }

/* Continue shopping / primary links */
.continue-btn         { color: var(--hd-brown) !important; }
.continue-btn:hover   { color: var(--hd-brown-dark) !important; }

/* Cart/Checkout/Wishlist page: fix font from Tailwind preflight conflicting with Bootstrap */
.cart-page-section,
.wishlist-table-section,
section.py-10 { font-family: 'DM Sans', sans-serif; }

/* Cart table image: make sure the img inside h-20 w-20 container stays small */
.h-20 { height: 5rem !important; }
.w-20 { width:  5rem !important; }
.h-16 { height: 4rem !important; }
.w-16 { width:  4rem !important; }

/* Bootstrap sets img { max-width: 100%; height: auto } — override for constrained containers */
.h-20 img, .w-20 img { height: 100% !important; width: 100% !important; max-width: none !important; }

/* Checkout / order pages */
.btn-primary { background-color: var(--hd-brown) !important; border-color: var(--hd-brown) !important; }
.btn-primary:hover { background-color: var(--hd-brown-dark) !important; border-color: var(--hd-brown-dark) !important; }

/* ══════════════════════════════════════════════
   PRODUCT CARD — prevent image link intercepting hover button clicks
══════════════════════════════════════════════ */
.hd-product-img-wrap > a:first-child { z-index: 1; position: relative; }
.hd-product-actions { z-index: 10 !important; }
.hd-product-add-overlay { z-index: 5 !important; }
.hd-action-btn { position: relative; z-index: 10; }

/* ══════════════════════════════════════════════
   SIDEBAR CATEGORY LIST (product-list page)
══════════════════════════════════════════════ */
.hd-sidebar-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hd-sidebar-cat-list li {
  margin-bottom: 4px;
}
.hd-sidebar-cat-list li a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: var(--hd-text);
  text-decoration: none;
  transition: color .2s;
  border-bottom: 1px solid transparent;
}
.hd-sidebar-cat-list li a:hover,
.hd-sidebar-cat-list li a.active {
  color: var(--hd-brown);
  font-weight: 600;
}

/* ══════════════════════════════════════════════
   CARD ATC BUTTON (product card body — product-list & collection-list)
══════════════════════════════════════════════ */
.hd-card-atc-btn {
  width: 100%;
  padding: 10px 16px;
  background: var(--hd-brown);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s;
  text-align: center;
  margin-top: 10px;
  display: block;
}
.hd-card-atc-btn:hover { background: var(--hd-brown-dark); color: #fff; }
