@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
    --bg-light: #ffffff;
    --green-dark: #2c4c3b;
    --green-mid: #4a7c59;
    --accent: #a39786;
    --accent-hover: #a68a61;
    --cream: #ffffff;
    --text-main: #333;
    --text-light: #777;
    --border: #e0e0e0;
    --white: #ffffff;
    --danger: #d9534f;
    --radius: 8px;

    /* From home.css for global use (footer, etc) */
    --forest:        #1a2e1e;
    --moss:          #2c4c3b;
    --sage:          #4a7c59;
    --honey:         #a39786;
    --beeswax:       #c5beaf;
    --ivory:         #ffffff;
    --muted:         #7a7065;
    --f-display:     'Cinzel', Georgia, serif;
    --f-body:        'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'DM Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: var(--text-main);
    line-height: 1.6;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════
   PREMIUM SITE HEADER — Glassmorphism
═══════════════════════════════════════════════ */

/* ── Overlay (mobile) ── */
.header-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 46, 30, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.header-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ── Header shell ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  height: 64px;
  /* En üstteyken kesinlikle arka plan bandı yok - 100% şeffaf */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    height 0.3s ease;
}

/* Hero pages: start fully transparent */
.site-header--hero {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

/* On scroll: transparent like duruflora.com */
.site-header.is-scrolled {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
  height: 60px;
}

/* ── Inner layout ── */
.site-header__inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* ── Logo ── */
.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.site-header__logo:hover { /* opacity handled by seasonal logo animations */ }

.logo-mark {
  font-size: 1.4rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(163, 151, 134, 0.4));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.site-header__logo:hover .logo-mark { transform: rotate(-12deg) scale(1.15); }

.logo-text {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.22rem;
  font-weight: 400;
  color: var(--green-dark);
  letter-spacing: 0.01em;
  transition: color 0.35s;
}
.site-header--hero:not(.is-scrolled) .logo-text { color: #fff; }
.logo-text strong {
  font-weight: 700;
  color: var(--accent);
}
.site-header--hero:not(.is-scrolled) .logo-text strong { color: #f5c842; }

/* ── Desktop Nav ── */
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.header-nav-link {
  position: relative;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--green-dark);
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 8px;
  letter-spacing: 0.01em;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: color 0.25s, background 0.25s;
}
.site-header--hero:not(.is-scrolled) .header-nav-link { color: rgba(255,255,255,0.88); }

.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 12px; right: 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-nav-link:hover { color: var(--accent); background: rgba(163, 151, 134, 0.08); }
.header-nav-link:hover::after,
.header-nav-link.is-active::after { transform: scaleX(1); }
.header-nav-link.is-active { color: var(--accent); font-weight: 600; }

/* ── Actions (cart, account buttons) ── */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--green-dark);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 10px;
  transition: background 0.25s, color 0.25s, transform 0.2s;
  white-space: nowrap;
}
.site-header--hero:not(.is-scrolled) .header-action-btn { color: rgba(255,255,255,0.9); }
.header-action-btn:hover { background: rgba(163, 151, 134, 0.1); color: var(--accent); transform: translateY(-1px); }

/* Cart */
.header-cart { padding: 7px 10px; }

/* Cart badge */
.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px;
  height: 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(163, 151, 134, 0.5);
  animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes badgePop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* Account button label */
.header-account-label {
  font-size: 0.86rem;
}

.chevron {
  transition: transform 0.3s ease;
  opacity: 0.65;
}
.header-account-btn[aria-expanded='true'] .chevron { transform: rotate(180deg); }

/* Ghost & Solid auth buttons */
.header-btn-ghost {
  border: 1.5px solid rgba(44, 76, 59, 0.35);
  border-radius: 100px;
  color: var(--green-dark);
  padding: 6px 16px;
}
.site-header--hero:not(.is-scrolled) .header-btn-ghost {
  border-color: rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.9);
}
.header-btn-ghost:hover {
  background: rgba(44, 76, 59, 0.08);
  border-color: var(--green-dark);
  color: var(--green-dark);
}

.header-btn-solid {
  background: var(--accent);
  color: #fff !important;
  border-radius: 100px;
  padding: 7px 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 16px rgba(163, 151, 134, 0.3);
  border: none;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.header-btn-solid:hover {
  background: #a68a61;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(163, 151, 134, 0.4);
  color: #fff;
}

/* ── Dropdown (account) ── */
.header-dropdown { position: relative; }

.header-dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 188px;
  background: rgba(254, 252, 246, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(163, 151, 134, 0.18);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(26, 46, 30, 0.14);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 200;
}

.header-dropdown__menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.header-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green-dark);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.header-dropdown__item:hover { background: rgba(163, 151, 134, 0.1); color: var(--accent); }
.header-dropdown__item--danger { color: #c0392b; }
.header-dropdown__item--danger:hover { background: rgba(192, 57, 43, 0.08); color: #c0392b; }

.header-dropdown__divider {
  height: 1px;
  background: rgba(163, 151, 134, 0.15);
  margin: 6px 8px;
}

/* ── Hamburger button ── */
.header-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid rgba(44, 76, 59, 0.2);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.25s, background 0.25s;
  flex-shrink: 0;
}
.site-header--hero:not(.is-scrolled) .header-menu-btn {
  border-color: rgba(255,255,255,0.35);
}
.header-menu-btn:hover { background: rgba(44, 76, 59, 0.06); border-color: var(--green-dark); }

.burger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
.site-header--hero:not(.is-scrolled) .burger-bar { background: rgba(255,255,255,0.9); }

/* Animated X state */
.header-menu-btn.is-open .burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-menu-btn.is-open .burger-bar:nth-child(2) { opacity: 0; width: 0; }
.header-menu-btn.is-open .burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile navigation drawer ── */
.header-mobile-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 90vw);
  background: rgba(250, 248, 242, 0.97);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-left: 1px solid rgba(163, 151, 134, 0.15);
  box-shadow: -12px 0 48px rgba(26, 46, 30, 0.14);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
}

.header-mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(163, 151, 134, 0.12);
}

.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: none;
  border: 1.5px solid rgba(44, 76, 59, 0.18);
  border-radius: 8px;
  cursor: pointer;
  color: var(--green-dark);
  transition: background 0.2s, border-color 0.2s;
}
.mobile-nav-close:hover { background: rgba(44, 76, 59, 0.06); border-color: var(--green-dark); }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  border-bottom: 1px solid rgba(163, 151, 134, 0.12);
  flex: 1;
}

.header-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--green-dark);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.header-mobile-link .cart-badge {
  position: static;
  min-width: 20px; height: 20px;
  display: inline-flex;
}
.header-mobile-link:hover { background: rgba(163, 151, 134, 0.1); color: var(--accent); }
.header-mobile-link.is-active { color: var(--accent); font-weight: 600; }

.mobile-nav-auth {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 32px;
}

.mobile-auth-link {
  display: block;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  color: var(--green-dark);
  border: 1.5px solid rgba(44, 76, 59, 0.25);
  transition: background 0.2s, color 0.2s;
}
.mobile-auth-link:hover { background: rgba(44, 76, 59, 0.07); }
.mobile-auth-link--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(163, 151, 134, 0.3);
}
.mobile-auth-link--accent:hover { background: #a68a61; color: #fff; }
.mobile-auth-link--danger { color: #c0392b; border-color: rgba(192,57,43,0.25); }
.mobile-auth-link--danger:hover { background: rgba(192,57,43,0.06); }

/* ── Page body padding so content is not hidden behind header ── */
body:not(.home-page) .site-header + *,
body:not(.home-page) > header + * { padding-top: 0; }

/* Non-home pages need top padding to clear the fixed header */
.shop-container,
.blog-container,
.auth-container,
.cart-page,
.checkout-page,
.confirmation-page,
.product-detail,
.profile-container {
  padding-top: 110px !important;
}

/* ── Responsive: show hamburger on small screens ── */
@media (max-width: 768px) {
  /* Hide desktop nav & auth labels */
  .site-header__nav { display: none; }
  .header-btn-ghost, .header-btn-solid, .header-account-label { display: none; }
  .header-dropdown { display: none; }

  /* Header inner: logo left, actions right */
  .site-header__inner {
    padding: 0 16px;
    justify-content: space-between;
  }

  /* Actions cluster: cart + hamburger side by side on the right */
  .site-header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
  }

  /* Keep cart button visible */
  .header-action-btn.header-cart {
    display: inline-flex;
    padding: 7px 8px;
  }

  /* Keep hamburger visible */
  .header-menu-btn {
    display: flex;
  }
}

@media (min-width: 769px) {
  .header-mobile-nav { display: none; }
}

/* ── Mobile shop filter bar ── */
@media (max-width: 768px) {
  /* Toolbar row: filter toggle left, sort select right */
  .shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
  }

  /* Filter toggle button – visible on mobile */
  .btn-filter-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: var(--cream);
    border: 1.5px solid rgba(44, 76, 59, 0.18);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-dark);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
  }
  .btn-filter-toggle:hover {
    background: rgba(163, 151, 134, 0.1);
    border-color: var(--accent);
    color: var(--accent);
  }

  /* Sort select on mobile */
  #sort-select {
    flex-shrink: 0;
  }

  /* Sidebar collapsed by default on mobile */
  .shop-sidebar {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Sidebar open state */
  .shop-sidebar.is-open {
    max-height: 1000px;
  }

  /* Stack shop container */
  .shop-container {
    flex-direction: column;
  }

  /* Filter cards inside accordion */
  .filter-card {
    border-radius: 8px;
    margin-bottom: 10px;
  }
}

/* On desktop, always show sidebar and hide toggle */
@media (min-width: 769px) {
  .btn-filter-toggle {
    display: none !important;
  }
  .shop-sidebar {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* ========== SHOP LAYOUT ========== */
.shop-container {
    display: flex;
    max-width: 1440px;
    margin: -45px auto 30px auto;
    gap: 30px;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Sidebar Filters */
.shop-sidebar {
    width: 260px;
    max-width: 100%;
    flex-shrink: 0;
}
.filter-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 20px;
    margin-bottom: 20px;
}
.filter-card h3 {
    color: var(--green-dark);
    margin-bottom: 15px;
    font-size: 1em;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
}
.filter-card ul { list-style: none; }
.filter-card ul li { padding: 6px 0; }
.filter-card ul li a { color: var(--text-main); }
.filter-card ul li a:hover { color: var(--accent); }
.filter-card input[type="number"] {
    width: 70px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
}
.filter-card .btn-filter {
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--green-dark);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

/* Product Grid */
.shop-main { flex: 1; }
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.shop-toolbar select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    width: 100%;
}

@media (max-width: 1300px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.product-card {
  border-radius: 22px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid rgba(163, 151, 134, 0.15);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(26,46,30,0.13);
}

.product-card-image {
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, rgba(111,168,130,0.3), rgba(44,76,59,0.6));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-card:hover .product-card-image img { transform: scale(1.07); }

.product-emoji-placeholder {
  font-size: 4.5rem;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.15));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .product-emoji-placeholder {
  transform: scale(1.18) rotate(-6deg);
}

.product-cart-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(26,46,30,0.85) 0%, transparent 100%);
  padding: 20px 18px 18px;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-card:hover .product-cart-overlay { transform: translateY(0); }

.btn-add-cart {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  white-space: nowrap;
  background: var(--forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-add-cart:hover { background: var(--moss); transform: scale(1.02); }

.btn-add-wishlist {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, color 0.25s;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.btn-add-wishlist:hover { background: #fff; transform: scale(1.02); }
.btn-add-wishlist.active { color: var(--danger); }

.product-card-info { padding: 16px 18px 20px; text-align: center; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }

.product-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-card-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 5px;
}

.product-card-price .old-price {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-right: 8px;
  font-weight: 500;
}

.product-card-price .current-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green-dark);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    pointer-events: none;
}
.product-badge.out-of-stock { background: var(--danger); }
.product-badge.low-stock { background: #f0ad4e; }

/* ========== PRODUCT CUSTOM HANGING TAG BADGE (SAĞ ÜST ASILI ROZET) ========== */
.product-tag-hanging {
    position: absolute;
    top: 0;
    right: 12px;
    z-index: 10;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 5px 12px rgba(0,0,0,0.22));
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: top center;
}
.product-card:hover .product-tag-hanging,
.gallery-main:hover .product-tag-hanging {
    transform: translateY(-2px);
}
.product-tag-hanging .tag-thread {
    width: 2px;
    height: 12px;
    background: linear-gradient(to bottom, rgba(135, 90, 45, 0.5), rgba(90, 55, 20, 0.85));
    border-radius: 1px;
    margin-bottom: -1px;
}
.product-tag-hanging .tag-content-wrap {
    position: relative;
    min-width: 78px;
    max-width: 110px;
    padding: 19px 9px 16px 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}
.product-tag-hanging .tag-svg-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: visible;
}
.product-tag-hanging .tag-labels {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.32);
    line-height: 1.15;
    word-break: break-word;
    width: 100%;
}
.product-tag-hanging .tag-line {
    display: block;
    width: 100%;
}
.product-tag-hanging .tag-line-top {
    font-size: 0.70rem;
    font-weight: 500;
    opacity: 0.95;
    letter-spacing: 0.1px;
    margin-bottom: 2px;
    white-space: nowrap;
}
.product-tag-hanging .tag-line-mid {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 2px;
    line-height: 1.1;
}
.product-tag-hanging .tag-line-bot {
    font-size: 0.90rem;
    font-weight: 900;
    letter-spacing: -0.2px;
    white-space: nowrap;
}
.product-tag-hanging .tag-line-single {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 2px 0;
}
@media (max-width: 576px) {
    .product-tag-hanging {
        right: 8px;
        transform: scale(0.9);
    }
}

/* ========== PRODUCT DETAIL ========== */
.product-detail {
    display: flex;
    align-items: flex-start;
    max-width: 1200px;
    margin: 40px auto;
    gap: 50px;
    padding: 0 20px;
}
.product-gallery {
    flex: 1;
    max-width: 550px;
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.gallery-main { width: 100%; border-radius: 12px; overflow: hidden; position: relative; touch-action: pan-y; background: #f8fafc; display:flex; align-items:center; justify-content:center; }
.gallery-main img { width: 100%; display: block; object-fit: contain; aspect-ratio: 4/3; max-height: 500px; transition: opacity 0.3s ease; }
                
.gallery-dots { display: flex; justify-content: center; gap: 8px; margin-top: 5px; }
.gallery-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; cursor: pointer; transition: all 0.3s ease; border:none; padding:0; }
.gallery-dot.active { background: var(--forest); transform: scale(1.2); }

/* V5 Left Panel Additions */
.product-advantages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.advantage-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.advantage-icon { font-size: 24px; color: var(--forest); }
.advantage-text { font-size: 13px; font-weight: 600; color: #334155; line-height: 1.3; }

.brand-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.brand-message-content h4 { margin: 0 0 5px 0; color: #166534; font-size: 15px; display:flex; align-items:center; gap:8px;}
.brand-message-content p { margin: 0; color: #15803d; font-size: 13px; line-height: 1.4; }
.brand-message-arrow { color: #166534; font-size: 20px; }

.product-gallery-thumbnails { margin-top: 10px; }
.product-gallery-thumbnails-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.product-gallery-thumbnails-header h3 { font-size: 16px; margin: 0; color: #1e293b; }
.product-gallery-thumbnails-header a { font-size: 13px; color: var(--forest); text-decoration: none; font-weight: 600; }
.thumbnails-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumbnail-item { aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; }
.thumbnail-item img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-item.active { border-color: var(--forest); }

.product-info-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.product-info-card-icon { font-size: 24px; flex-shrink: 0; }
.product-info-card-text h4 { margin: 0 0 8px 0; font-size: 15px; color: #1e293b; }
.product-info-card-text p { margin: 0; font-size: 13px; color: #475569; line-height: 1.5; }

/* Right Panel */
.product-info-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Option Groups */
.option-group-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.option-group-title span.req { color: #ef4444; }

/* Color / Option Cards */
.color-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.opt-card-img {
    min-width: 90px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 8px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    box-sizing: border-box;
    position: relative;
}
.opt-card-img.selected {
    border: 2px solid var(--forest, #166534);
    background: #f0fdf4;
}
.opt-card-img .img-placeholder {
    width: 100%;
    max-height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border-radius: 6px;
    overflow: hidden;
}
.opt-card-img .img-placeholder img,
.opt-card-img img {
    max-width: 100%;
    max-height: 85px;
    object-fit: cover;
    border-radius: 6px;
}
.opt-card-img .opt-info {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.opt-card-img .opt-name { font-size: 13px; font-weight: 600; color: #1e293b; margin-bottom: 2px; display: block; line-height: 1.3; }
.opt-card-img .opt-price { font-size: 11px; color: #64748b; font-weight: 500; }

/* Size Cards */
.size-cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.opt-card-txt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.opt-card-txt.selected {
    border: 2px solid var(--forest);
    background: #f0fdf4;
}
.opt-card-txt-radio { display: flex; align-items: center; gap: 10px; font-weight: 500; color: #334155; }
.opt-card-txt-radio input[type="radio"] { width: 18px; height: 18px; accent-color: var(--forest); }
.opt-card-txt-price { font-weight: 600; color: #1e293b; }

/* Extras Cards */
.extras-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.opt-card-chk {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.opt-card-chk.selected {
    border: 2px solid var(--forest);
    background: #f0fdf4;
}
.opt-card-chk-left { display: flex; align-items: flex-start; gap: 12px; }
.opt-card-chk-left input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--forest); margin-top: 2px; }
.opt-card-chk-info h4 { margin: 0 0 5px 0; font-size: 14px; font-weight: 600; color: #334155; display:flex; align-items:center; gap:5px;}
.opt-card-chk-info p { margin: 0; font-size: 12px; color: #64748b; line-height: 1.4; }
.opt-card-chk-price { font-weight: 600; color: #1e293b; font-size: 14px; }

/* Price Summary */
.price-summary-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}
.price-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #475569;
}
.price-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
    font-weight: 700;
    font-size: 18px;
    color: #0f172a;
}

/* Action Row (Qty + Button + Fav) */
.action-row {
    display: flex;
    gap: 15px;
    align-items: center;
}
.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    height: 50px;
    width: 120px;
    overflow: hidden;
    background: #fff;
}
.qty-selector button {
    width: 40px;
    height: 100%;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-selector button:hover { background: #f1f5f9; }
.qty-selector input {
    width: 40px;
    text-align: center;
    border: none;
    font-weight: 600;
    font-size: 15px;
    pointer-events: none;
}
.btn-add-cart {
    flex: 1;
    height: 50px;
    background: var(--forest);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-add-cart:hover { background: var(--moss); }
.btn-fav {
    width: 50px;
    height: 50px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-fav:hover { background: #fef2f2; border-color: #fecaca; }

/* Responsive adjustments */
@media (max-width: 900px) {
    .product-detail {
        flex-direction: column;
        gap: 30px;
        padding: 0 15px;
        margin: 20px auto;
    }
    .product-gallery {
        max-width: 100%;
        position: static;
        top: auto;
    }
    .action-row {
        flex-wrap: wrap;
    }
    .btn-add-cart { order: 3; width: 100%; flex: none; }
    .qty-selector { flex: 1; }
    .btn-fav { flex: 1; }
}
.product-info-detail h1 {
    font-size: 1.8em;
    color: var(--green-dark);
    margin-bottom: 10px;
}
.price-tag {
    font-size: 2em;
    font-weight: 700;
    color: var(--forest);
    margin: 15px 0;
}
.attributes-list {
    list-style: none;
    margin: 15px 0;
}
.attributes-list li {
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9em;
}
.btn-add-cart {
    background: var(--green-dark);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: 0.3s;
}
.btn-add-cart:hover { background: var(--moss); transform: scale(1.02); }
.btn-wishlist {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-wishlist:hover { background: var(--accent); color: #fff; }

/* ========== CART ========== */
.cart-page {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}
.cart-page h1 { color: var(--green-dark); margin-bottom: 20px; }
.cart-table {
    width: 100%;
    background: var(--ivory);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(44, 76, 59, 0.08);
}
.cart-table th, .cart-table td { padding: 15px; text-align: left; }
.cart-table th { background: var(--forest); color: #fff; }
.cart-table .qty-input { width: 60px; padding: 5px; border: 1px solid var(--border); border-radius: 4px; text-align: center; }
.cart-table .btn-remove { color: var(--danger); background: none; border: none; cursor: pointer; font-weight: bold; }
.cart-summary {
    margin-top: 20px;
    text-align: right;
    background: var(--ivory);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(44, 76, 59, 0.08);
}
.cart-summary .total-line { font-size: 1.2em; margin-bottom: 10px; color: var(--forest); }
.cart-summary .total-line strong { color: var(--forest); }
.cart-summary .btn-checkout {
    padding: 14px 30px;
    background: var(--forest);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s;
}
.cart-summary .btn-checkout:hover { background: var(--moss); }
.coupon-form { display: flex; gap: 10px; margin-top: 15px; }
.coupon-form input { padding: 10px; border: 1px solid var(--border); border-radius: 4px; flex: 1; }
.coupon-form button { padding: 10px 20px; background: var(--forest); color: #fff; border: none; border-radius: 4px; cursor: pointer; transition: 0.3s; }
.coupon-form button:hover { background: var(--moss); }

/* ========== CHECKOUT ========== */
.checkout-page {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}
.checkout-page h1 { color: var(--green-dark); margin-bottom: 20px; }
.checkout-form { background: var(--white); padding: 30px; border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.checkout-form .form-group { margin-bottom: 20px; }
.checkout-form label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-main); }
.checkout-form textarea, .checkout-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
}
.checkout-form textarea { min-height: 80px; }
.order-summary-box { background: var(--cream); padding: 20px; border-radius: var(--radius); margin-bottom: 20px; }
.order-summary-box .summary-line { display: flex; justify-content: space-between; padding: 5px 0; }
.order-summary-box .summary-total { font-size: 1.2em; font-weight: bold; color: var(--accent); border-top: 1px solid var(--border); padding-top: 10px; }
.btn-place-order {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-place-order:hover { background: var(--accent-hover); }

/* ========== CONFIRMATION ========== */
.confirmation-page {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.confirmation-page .checkmark { font-size: 4em; color: var(--green-mid); }
.confirmation-page h1 { color: var(--green-dark); margin: 15px 0; }

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 35px auto 25px auto;
    width: 100%;
    max-width: 100%;
}
.pagination-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: calc(20 * 38px + 19 * 6px + 10px);
}
.pagination:not(:has(.pagination-row)) {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: calc(20 * 38px + 19 * 6px + 10px);
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    box-sizing: border-box;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 6px;
    color: var(--text-main, #1e293b);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    background: #ffffff;
    transition: all 0.2s ease;
}
.pagination a:hover {
    border-color: var(--green-dark, #1c2e22);
    color: var(--green-dark, #1c2e22);
    background: #f8fafc;
}
.pagination .active {
    background: var(--green-dark, #1c2e22);
    color: #fff !important;
    border-color: var(--green-dark, #1c2e22);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .shop-container { flex-direction: column; }
    .shop-sidebar { width: 100%; }
    .product-detail { flex-direction: column; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
    top: 100%;
    right: 0;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9em;
}

.dropdown-content a:hover {
    background-color: var(--cream);
    color: var(--green-dark);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ========== PREMIUM PRODUCT REVIEWS ========== */

/* Fractional Stars */
.stars-outer {
    position: relative;
    display: inline-block;
    color: #e0e0e0;
    font-size: 24px;
    letter-spacing: 2px;
}
.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: var(--accent);
}

/* Interactive Stars */
.interactive-stars {
    display: inline-flex;
    gap: 8px;
    font-size: 32px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}
.interactive-stars span {
    display: inline-block;
    color: #e0e0e0;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease, filter 0.3s ease;
}
.interactive-stars span.hovered,
.interactive-stars span.active {
    color: var(--accent);
}
.interactive-stars span.active {
    filter: drop-shadow(0 2px 8px rgba(255, 171, 0, 0.4));
}
.interactive-stars span:hover {
    transform: scale(1.2) translateY(-2px);
}

/* Review Summary Bars */
.review-summary-container {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--cream);
    border-radius: 12px;
}
.review-overall {
    text-align: center;
    min-width: 150px;
    border-right: 1px solid #ddd;
    padding-right: 30px;
}
.review-overall .rating-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--green-dark);
    line-height: 1;
    margin-bottom: 5px;
}
.review-overall .stars-outer {
    font-size: 20px;
}
.review-distribution {
    flex-grow: 1;
}
.distribution-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}
.distribution-row:last-child {
    margin-bottom: 0;
}
.dist-label {
    width: 35px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
}
.dist-bar-bg {
    flex-grow: 1;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}
.dist-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 5px;
    width: 0; /* Animated to target width */
}
.dist-count {
    width: 35px;
    font-size: 13px;
    color: var(--text-light);
    text-align: right;
}

@keyframes fillBarAnim {
    from { width: 0; }
}

/* Premium Review Cards */
.review-card-premium {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.reviewer-name {
    font-weight: 600;
    color: var(--green-dark);
    margin-top: 5px;
    font-size: 15px;
}
.review-date {
    font-size: 13px;
    color: var(--text-light);
    white-space: nowrap;
}

/* Review photos */
.review-photos {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.review-photo-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.review-photo-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* Q&A Section */
.qa-section {}
.qa-thread {
    background: var(--ivory);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(44, 76, 59, 0.08);
}
.qa-question {
    margin-bottom: 12px;
}
.qa-answer {
    background: var(--cream);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    margin-left: 20px;
}
.qa-answer.admin-reply {
    background: rgba(74, 124, 89, 0.08);
    border-left: 3px solid var(--forest);
}
.qa-author {
    font-weight: 600;
    color: var(--forest);
    font-size: 14px;
}
.qa-date {
    font-size: 12px;
    color: var(--text-light);
    margin-left: 8px;
}
.qa-text {
    margin-top: 6px;
    color: var(--text-main);
    line-height: 1.5;
}
.admin-badge {
    display: inline-block;
    background: var(--moss);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 6px;
    vertical-align: middle;
}
.qa-reply-form input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

/* Preview close button */
.photo-preview-item {
    position: relative;
    display: inline-block;
}
.photo-preview-item .remove-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ═══════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE RESPONSIVE FIX
   Covers all pages at all breakpoints (320px – 1024px)
   ═══════════════════════════════════════════════════════════ */

/* ─── GLOBAL OVERFLOWS ───────────────────────────────────── */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Prevent any element from causing horizontal scroll */
* {
    max-width: 100%;
}
img, video, svg, iframe {
    max-width: 100%;
    height: auto;
}

/* ─── PRODUCT DETAIL: mobile layout ─────────────────────── */
@media (max-width: 768px) {
    .product-detail {
        flex-direction: column !important;
        padding: 0 16px;
        gap: 24px;
        max-width: 100%;
    }
    
    /* Product gallery takes full width */
    .product-gallery {
        width: 100% !important;
        max-width: 100%;
    }
    
    /* Product info full width */
    .product-info-detail {
        width: 100% !important;
        max-width: 100%;
    }
    
    /* Product add-to-cart row */
    .product-info-detail > div[style*="display:flex"],
    .product-info-detail > div[style*="display: flex"] {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    
    /* Buttons full width in product detail */
    .product-info-detail .btn-add-cart {
        flex: 1 1 100%;
        min-height: 48px;
        font-size: 1rem;
    }
    .product-info-detail .btn-wishlist {
        flex: 1 1 100%;
        min-height: 48px;
    }
    
    /* Quantity input on mobile */
    .product-info-detail input[type="number"] {
        min-height: 44px;
        font-size: 16px;
    }
    
    /* Reviews section */
    .reviews-section {
        padding: 0 16px;
    }
    
    .review-summary-container {
        flex-direction: column !important;
        gap: 20px;
    }
    
    /* Q&A section */
    .qa-reply-form {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .qa-reply-form input[type="text"] {
        width: 100%;
        min-height: 44px;
    }
    
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .product-card {
        border-radius: 14px !important;
    }
    .product-card-image {
        aspect-ratio: 1 / 1.15 !important;
    }
    .product-card-name {
        font-size: 0.85rem !important;
        line-height: 1.25 !important;
    }
    .product-card-price {
        font-size: 0.88rem !important;
    }
    .btn-add-cart {
        padding: 7px 10px !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
    }
}

@media (max-width: 480px) {
    /* Always 2 columns on phones, compact and clean */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .product-card-image {
        aspect-ratio: 1 / 1.15 !important;
    }
}

/* ─── CART PAGE ──────────────────────────────────────────── */
@media (max-width: 991px) {
    .cart-page {
        padding: 80px 16px 30px !important;
    }
    
    /* Cart table becomes card layout */
    .cart-page table,
    table.cart-table {
        display: block !important;
        width: 100% !important;
        min-width: unset !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    table.cart-table thead {
        display: none !important;
    }
    table.cart-table tbody, table.cart-table tr {
        display: block !important;
        width: 100% !important;
    }
    table.cart-table tr {
        background: #fff;
        margin-bottom: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        padding: 15px;
        position: relative;
        border: 1px solid #eee;
    }
    table.cart-table td {
        display: block !important;
        text-align: left !important;
        padding: 5px 0 !important;
        border: none !important;
    }
    table.cart-table td.item-price {
        font-weight: 600;
        color: var(--green-dark);
    }
    table.cart-table td:nth-child(3) { /* Quantity input */
        margin-top: 10px;
    }
    table.cart-table td:nth-child(4) { /* Subtotal */
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
        border-top: 1px dashed #eee;
        padding-top: 10px;
    }
    table.cart-table td:nth-child(4)::before {
        content: "Ara Toplam:";
        font-size: 13px;
        color: #666;
    }
    table.cart-table td:last-child { /* Remove button */
        position: absolute;
        top: 10px;
        right: 15px;
        padding: 0;
    }
    table.cart-table td:last-child form button {
        background: #fee2e2;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: #ef4444;
    }
    
    /* Cart summary stacking */
    .cart-summary {
        width: 100% !important;
        margin-top: 20px;
    }
    
    /* Order summary area */
    [style*="display:flex"][style*="gap:30px"],
    [style*="display: flex"][style*="gap: 30px"] {
        flex-direction: column !important;
        gap: 16px !important;
    }
}

/* ─── CHECKOUT PAGE ──────────────────────────────────────── */
@media (max-width: 768px) {
    .checkout-page {
        padding: 80px 16px 30px !important;
    }
    
    /* Checkout form fields: 2-col becomes 1-col */
    .checkout-grid,
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Card/payment icons row */
    .payment-icons {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* Checkout columns */
    .checkout-columns {
        flex-direction: column !important;
        gap: 20px;
    }
    
    /* Form sections */
    .checkout-page form .form-row {
        grid-template-columns: 1fr !important;
    }
    
    input, select, textarea {
        font-size: 16px; /* Prevent iOS zoom */
    }
}

/* ─── AUTH PAGES (Login, Register, Forgot Password) ─────── */
@media (max-width: 768px) {
    .auth-container {
        padding: 28px 20px 28px !important;
    }
    
    .auth-card,
    .auth-box {
        width: 100% !important;
        max-width: 100% !important;
        padding: 24px 16px !important;
        border-radius: 12px !important;
    }
    
    /* Form fields full width (excluding checkboxes & radios) */
    .auth-container input:not([type="checkbox"]):not([type="radio"]),
    .auth-container select {
        width: 100%;
        min-height: 44px;
        font-size: 16px;
    }
    
    /* Auth buttons full width */
    .auth-container .btn,
    .auth-container button[type="submit"] {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
    }
}

/* ─── PROFILE / ACCOUNT ──────────────────────────────────── */
@media (max-width: 768px) {
    /* Profile section layout */
    .profile-container,
    .profile-page {
        padding: 80px 16px 30px !important;
    }
    
    /* Profile sidebar to top */
    .profile-layout {
        flex-direction: column !important;
    }
    
    /* Order table */
    .orders-table,
    table.orders-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 400px;
    }
}

/* ─── BLOG PAGE ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .blog-container {
        padding: 80px 16px 30px !important;
    }
    
    /* Blog article content images */
    .article-content img {
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
    }
    
    /* Blog article header */
    .article-header {
        padding: 0 !important;
    }
    
    /* Related articles grid */
    .blog-grid[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    
    .blog-grid[style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }
}

/* ─── CONTACT PAGE ──────────────────────────────────────── */
@media (max-width: 768px) {
    /* Contact form */
    .contact-page {
        padding: 80px 16px 30px;
    }
    
    .contact-layout {
        flex-direction: column !important;
        gap: 30px;
    }
    
    /* Map iframe */
    .contact-map iframe {
        width: 100% !important;
        height: 250px !important;
    }
    
    /* Contact form inputs */
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        width: 100%;
        min-height: 44px;
        font-size: 16px;
    }
}

/* ─── LEGAL PAGES ────────────────────────────────────────── */
@media (max-width: 768px) {
    .legal-container,
    .legal-page {
        padding: 80px 16px 30px;
        max-width: 100%;
    }
    
    .legal-container table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ─── HOMEPAGE HERO ──────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .hero-title {
        font-size: clamp(1.6rem, 8vw, 2.5rem) !important;
    }
    
    .hero-subtitle {
        font-size: clamp(0.85rem, 4vw, 1rem);
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-cta a {
        width: 100%;
        text-align: center;
    }
    
    /* Hero slider — prevent horizontal overflow */
    .hero-slider-container {
        overflow: hidden;
        width: 100%;
    }
    
    #hero-slider-track {
        width: 100%;
    }
}

/* ─── HEADER MOBILE: ensure no overflow ─────────────────── */
@media (max-width: 768px) {
    .site-header__inner {
        padding: 0 16px !important;
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Logo doesn't overflow */
    .site-header__logo .logo-text {
        font-size: 1rem;
    }
    
    /* Search modal on mobile */
    .search-modal,
    .search-overlay {
        width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        top: 64px !important;
        padding: 16px !important;
    }
    
    /* Search input full width */
    .search-modal input[type="text"],
    .search-modal input[type="search"] {
        width: 100%;
        font-size: 16px;
        min-height: 44px;
    }
}

/* ─── ABOUT PAGE ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .about-section {
        padding: 60px 16px !important;
    }
    
    .editorial-block {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    .editorial-block.reverse {
        direction: ltr !important;
    }
    
    .about-visual {
        height: 260px !important;
    }
    
    .about-stat-pill {
        position: static !important;
        margin: 8px 0;
    }
    
    .about-stat-pills {
        position: static !important;
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 20px;
    }
}

/* ─── SHOP CONTAINER ─────────────────────────────────────── */
@media (max-width: 768px) {
    .shop-container {
        padding: 0 14px !important;
        gap: 16px !important;
        margin-top: 0 !important;
    }
    
    .shop-main {
        width: 100% !important;
    }
    
    .shop-toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    #sort-select {
        flex: 1;
        min-width: 120px;
    }
}

/* ─── MAINTENANCE PAGE ───────────────────────────────────── */
@media (max-width: 768px) {
    .maintenance-page,
    .maintenance-container {
        padding: 20px 16px;
        text-align: center;
    }
    
    .maintenance-logo {
        max-width: 200px;
    }
}

/* ─── LANDSCAPE MODE ─────────────────────────────────────── */
@media (max-width: 900px) and (orientation: landscape) {
    .hero-section,
    .hero-slide {
        min-height: 100vw; /* Use viewport width as height in landscape */
        max-height: 50vh;
    }
    
    .site-header {
        height: 52px !important;
    }
    
    /* In landscape, product detail side by side is fine */
    .product-detail {
        flex-direction: row !important;
    }
    
    /* Profile layout side by side */
    .profile-layout {
        flex-direction: row !important;
    }
}

/* ─── VERY SMALL SCREENS (320px) ─────────────────────────── */
@media (max-width: 360px) {
    /* Logo text shorter */
    .site-header__logo .logo-text {
        font-size: 0.9rem;
    }
    
    /* Action buttons smaller */
    .header-action-btn {
        padding: 6px 8px !important;
    }
    
    /* Product cards smaller */
    .product-card {
        border-radius: 14px;
    }
    
    /* Product info smaller text */
    .product-name,
    .product-title {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 0.85rem;
    }
    
    /* Cart badge smaller */
    .cart-badge {
        font-size: 0.6rem;
        min-width: 15px;
        height: 15px;
    }
    
    /* Shop toolbar */
    .shop-container {
        padding: 0 10px !important;
    }
}

/* ─── FOOTER RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 16px 24px !important;
    }
    
    .footer-inner {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
}

/* ─── INTERACTIVE STARS ON MOBILE ────────────────────────── */
@media (max-width: 768px) {
    .interactive-stars {
        font-size: 2rem;
        gap: 4px;
    }
    
    .interactive-stars span {
        padding: 4px; /* Larger touch target */
    }
}

/* ─── QA SECTION MOBILE ──────────────────────────────────── */
@media (max-width: 768px) {
    .qa-thread {
        padding: 16px;
    }
    
    .qa-answer {
        margin-left: 10px;
    }
    
    .qa-reply-form {
        flex-direction: column !important;
        gap: 8px;
    }
    .qa-reply-form input,
    .qa-reply-form button {
        width: 100%;
        min-height: 44px;
    }
}

/* ─── WISHLIST PAGE ──────────────────────────────────────── */
@media (max-width: 768px) {
    .wishlist-grid,
    .wishlist-page {
        padding: 80px 16px 30px !important;
    }
}

/* ─── COOKIE CONSENT ─────────────────────────────────────── */
@media (max-width: 768px) {
    .cookie-bar,
    #cookie-consent-bar {
        flex-direction: column !important;
        gap: 12px;
        padding: 16px !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px 16px 0 0 !important;
    }
    
    .cookie-bar button,
    #cookie-consent-bar button {
        width: 100%;
    }
}

/* ══════════════════════════════════════════════════════════
   PREMIUM ENHANCEMENTS: PRODUCT REVIEWS, Q&A & BLOG COMMENTS
═════════════════════════════════════════════════════════════ */

/* ─── REVIEWS ─── */
.reviews-section {
    max-width: 980px;
    margin: 60px auto;
    padding: 0 20px;
}
.review-summary-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 35px;
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}
.review-overall {
    text-align: center;
    padding-right: 30px;
    border-right: 1px solid #f1f5f9;
    min-width: 160px;
}
@media (max-width: 768px) {
    .review-overall {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding-right: 0;
        padding-bottom: 20px;
        width: 100%;
    }
}
.review-card-premium {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 24px 28px !important;
    margin-bottom: 18px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.review-card-premium:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(26, 46, 30, 0.07) !important;
    border-color: #cbd5e1 !important;
}
.reviewer-avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #3730a3;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.reviewer-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.2px;
}
.review-photo-thumb {
    width: 84px !important;
    height: 84px !important;
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.review-photo-thumb:hover {
    transform: scale(1.04) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12) !important;
}
.review-form-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-top: 40px;
}

/* ─── PRODUCT Q&A (Soru & Cevap) ─── */
.qa-container {
    max-width: 980px;
    margin: 50px auto;
    padding: 0 20px;
}
.qa-thread {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin-bottom: 20px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02) !important;
    transition: all 0.2s ease !important;
}
.qa-thread:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05) !important;
}
.qa-question-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.qa-q-badge {
    background: #f1f5f9;
    color: #475569;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}
.qa-answer-box {
    background: #f0fdf4 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    border-left: 4px solid #16a34a !important;
    margin-left: 42px !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
@media (max-width: 768px) {
    .qa-answer-box {
        margin-left: 12px !important;
        padding: 14px !important;
    }
}
.qa-expert-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #dcfce7;
    color: #15803d;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 14px;
    border: 1px solid #bbf7d0;
}
.qa-reply-form input[type="text"] {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
.qa-reply-form input[type="text"]:focus {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12) !important;
    outline: none !important;
}

/* ─── BLOG COMMENTS ─── */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}
.comment-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: all 0.2s;
}
.comment-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.comment-reply-wrapper {
    margin-left: 40px;
    border-left: 2px dashed #cbd5e1;
    padding-left: 20px;
    margin-top: 12px;
}
@media (max-width: 768px) {
    .comment-reply-wrapper {
        margin-left: 15px;
        padding-left: 12px;
    }
}
.comment-form-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    margin-top: 30px;
}
.comment-form-box textarea,
.comment-form-box input {
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.comment-form-box textarea:focus,
.comment-form-box input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
    outline: none;
}

