@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Colors */
  --color-primary: #472623;
  --color-accent: #a06c56;
  --color-accent-light: #976a58;
  --color-green: #aec7b5;
  --color-green-dark: #8aab93;
  --color-bg: #ffffff;
  --color-bg-warm: #f4f0eb;
  --color-bg-soft: #f8f6f3;
  --color-bg-cream: #f2ede7;
  --color-text: #472623;
  --color-text-muted: #555555;
  --color-text-light: #999999;

  /* Typography */
  --font-family: 'Inter', sans-serif;
  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-base: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 24px;
  --fs-2xl: 28px;
  --fs-3xl: 30px;
  --fs-4xl: 38px;
  --fs-5xl: 48px;
  --fs-6xl: 56px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 14px;
  --space-lg: 24px;
  --space-xl: 36px;
  --space-2xl: 50px;
  --space-3xl: 60px;
  --space-4xl: 80px;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 25px;
  --radius-xl: 40px;
  --radius-pill: 60px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 18px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.13);
  --shadow-card: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-navbar: 0 4px 20px rgba(0,0,0,0.06);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.4s ease;
}

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

ul, ol { list-style: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children animation */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.4s; }

/* ============================================
   ANNOUNCEMENT BAR & TICKER LOOP
   ============================================ */
.announcement-bar {
  background: var(--color-primary);
  color: var(--color-bg-cream);
  height: 38px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  z-index: 1001;
}

.ticker-wrapper {
  width: 100%;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.ticker-track span {
  padding: 0 50px;
  display: inline-block;
  white-space: nowrap;
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ============================================
   NAVBAR - Figma matching
   ============================================ */
.navbar {
  position: fixed;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1400px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-navbar);
  transition: background var(--transition-base), box-shadow var(--transition-base), top var(--transition-base);
}

.navbar.scrolled {
  top: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.10);
}

.navbar .logo img {
  height: 40px;
  width: auto;
}

.navbar .nav-links {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.navbar .nav-links a {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-base);
}

.navbar .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-accent-light);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.navbar .nav-links a:hover::after,
.navbar .nav-links a.active::after {
  width: 100%;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
  color: var(--color-accent-light);
}

.navbar .nav-icons {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.navbar .nav-icons a {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.navbar .nav-icons img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: 0.65;
  transition: opacity var(--transition-base), transform var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.navbar .nav-icons img:hover {
  opacity: 1;
  transform: scale(1.08);
}

/* Hamburger Toggle */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================
/* ============================================
   FOOTER - Matches FOOTER.png design
   ============================================ */
.site-footer {
  position: relative;
  background: transparent;
  color: var(--color-text);
  padding: 0;
  margin-top: 0;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/footerarkafon.png') top center/100% 100% no-repeat;
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  padding: 130px 80px 50px;
  gap: 80px;
  align-items: flex-start;
}

.footer-logo-area {
  flex-shrink: 0;
}

.footer-logo {
  height: 120px;
  width: auto;
  transition: transform var(--transition-base);
}

.footer-logo:hover {
  transform: scale(1.04);
}

.footer-columns {
  display: flex;
  flex: 1;
  gap: 60px;
}

.footer-columns .footer-col:last-child {
  margin-left: auto;
  max-width: 320px;
  width: 100%;
}

.footer-col h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col ul li a {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  transition: color var(--transition-base), padding-left var(--transition-base);
}

.footer-col ul li a:hover {
  color: var(--color-text);
  padding-left: 6px;
}

.footer-email {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: var(--space-sm);
  border-bottom: 1.5px solid var(--color-text-muted);
  padding-bottom: 4px;
}

.footer-email input {
  flex: 1;
  padding: 8px 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: var(--fs-sm);
}

.footer-email input:focus {
  outline: none;
}

.footer-email input::placeholder {
  color: var(--color-text-light);
}

.footer-email button {
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-base);
}

.footer-email button:hover {
  color: var(--color-text);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 20px 80px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.footer-bottom-text {
  flex: 1;
}

.footer-payment-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-payment-icons img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-add-cart {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 20px;
  background: var(--color-green);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background var(--transition-base), transform var(--transition-fast);
}

.btn-add-cart:hover {
  background: var(--color-green-dark);
  transform: translateY(-2px);
}

.btn-outline-brown {
  display: inline-block;
  padding: 10px 28px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-accent-light);
  color: var(--color-accent-light);
  font-size: var(--fs-base);
  font-weight: 500;
  transition: all var(--transition-base);
}

.btn-outline-brown:hover {
  background: var(--color-accent-light);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE - Tablet (1024px)
   ============================================ */
@media (max-width: 1024px) {
  .navbar {
    padding: 10px 24px;
    width: 96%;
  }

  .footer-inner {
    flex-direction: column;
    padding: 60px 30px 30px;
    gap: 30px;
    align-items: stretch;
  }

  .footer-logo-area {
    text-align: center;
  }

  .footer-columns {
    flex-wrap: wrap;
    gap: 30px;
  }

  .footer-columns .footer-col:last-child {
    margin-left: 0;
    max-width: 100%;
  }

  .footer-bottom {
    padding: 20px 30px;
  }
}

/* ============================================
   RESPONSIVE - Mobile (768px)
   ============================================ */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar {
    border-radius: 30px;
    padding: 10px 20px;
    top: 44px;
  }

  .navbar .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    z-index: 999;
  }

  .navbar .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .navbar .nav-links a {
    font-size: 22px;
  }

  .navbar .nav-icons img {
    width: 30px;
    height: 30px;
  }

  .navbar .nav-icons {
    gap: var(--space-sm);
  }

  /* ---- FOOTER MOBILE ---- */
  .footer-bg {
    background-size: auto 100%;
    background-position: center top;
  }

  .footer-inner {
    flex-direction: column;
    padding: 100px 20px 24px;
    gap: 24px;
    align-items: center;
    text-align: center;
  }

  .footer-logo-area {
    text-align: center;
    width: 100%;
  }

  .footer-logo {
    height: 80px;
    margin: 0 auto;
  }

  .footer-columns {
    flex-direction: column;
    gap: 24px;
    width: 100%;
    align-items: center;
  }

  .footer-columns .footer-col {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .footer-columns .footer-col:last-child {
    margin-left: 0;
    max-width: 320px;
  }

  .footer-col h3 {
    font-size: var(--fs-md);
    margin-bottom: 12px;
  }

  .footer-col ul li {
    margin-bottom: 6px;
  }

  .footer-col ul li a {
    font-size: var(--fs-sm);
  }

  .footer-email {
    max-width: 280px;
    margin: var(--space-sm) auto 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
    text-align: center;
    align-items: center;
  }

  .footer-bottom-text {
    font-size: 11px;
    line-height: 1.6;
    flex: none;
    order: 2;
  }

  .footer-payment-icons {
    order: 1;
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-payment-icons img {
    height: 22px;
  }

  .announcement-bar {
    height: 32px;
    font-size: 11px;
  }

  .ticker-track span {
    padding: 0 30px;
  }

  /* Toast notifications */
  .toast-container {
    left: 12px;
    right: 12px;
    bottom: 16px;
  }

  .toast-item {
    padding: 12px 16px;
    font-size: 13px;
    border-radius: 12px;
  }
}

/* ============================================
   RESPONSIVE - Small Mobile (480px)
   ============================================ */
@media (max-width: 480px) {
  .navbar {
    padding: 8px 14px;
    top: 34px;
  }

  .navbar .logo img {
    height: 28px;
  }

  .navbar .nav-icons img {
    width: 26px;
    height: 26px;
  }

  .navbar .nav-icons {
    gap: 6px;
  }

  .announcement-bar {
    height: 28px;
    font-size: 10px;
  }

  .ticker-track span {
    padding: 0 20px;
  }

  /* ---- FOOTER SMALL MOBILE ---- */
  .footer-inner {
    padding: 80px 16px 20px;
    gap: 20px;
  }

  .footer-logo {
    height: 60px;
  }

  .footer-columns {
    gap: 20px;
  }

  .footer-col h3 {
    font-size: var(--fs-base);
    margin-bottom: 10px;
  }

  .footer-col ul li a {
    font-size: var(--fs-xs);
  }

  .footer-bottom {
    padding: 12px 16px;
    gap: 10px;
  }

  .footer-bottom-text {
    font-size: 10px;
  }

  .footer-payment-icons img {
    height: 18px;
  }

  .footer-email input {
    font-size: var(--fs-xs);
  }
}

/* ============================================
   CART BADGE
   ============================================ */
.nav-cart-link {
  position: relative;
  display: inline-block;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge.visible {
  transform: scale(1);
}

/* ============================================
   PRODUCT DETAIL & SELECTION MODAL
   ============================================ */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(71, 38, 35, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.product-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.product-modal-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 28px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-modal-overlay.open .product-modal-card {
  transform: translateY(0);
}

.product-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3ece4;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: background 0.3s, transform 0.3s;
  z-index: 10;
}

.product-modal-close:hover {
  background: var(--color-accent-light);
  color: #fff;
  transform: rotate(90deg);
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  padding: 40px;
}

.product-modal-image-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-modal-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #faf8f5;
  aspect-ratio: 1.2;
  cursor: zoom-in;
  border: 1px solid rgba(0,0,0,0.05);
}

.product-modal-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-modal-img-wrapper:hover img {
  transform: scale(1.15);
}

/* Lightbox overlay for zooming */
.lightbox-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.lightbox-zoom-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-zoom-img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.lightbox-zoom-overlay.open .lightbox-zoom-img {
  transform: scale(1);
}

.product-modal-info {
  display: flex;
  flex-direction: column;
}

.product-modal-category {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-green-dark);
  font-weight: 600;
  margin-bottom: 8px;
  font-family: 'Sofia Pro', 'Nunito', sans-serif;
}

.product-modal-title {
  font-size: 26px;
  font-family: 'Sofia Pro', 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.3;
  margin-bottom: 12px;
}

.product-modal-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
  font-family: 'Sofia Pro', 'Nunito', sans-serif;
}

.product-modal-option-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  font-family: 'Sofia Pro', 'Nunito', sans-serif;
}

.product-modal-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.size-pill {
  padding: 10px 16px;
  border: 1.5px solid #ddd;
  background: #fff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Sofia Pro', 'Nunito', sans-serif;
}

.size-pill:hover {
  border-color: var(--color-accent-light);
  background: #faf8f5;
}

.size-pill.active {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}

.product-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: auto;
  align-items: center;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.quantity-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: var(--color-text);
  transition: background 0.2s;
}

.quantity-btn:hover {
  background: #f5f5f5;
}

.quantity-input {
  width: 40px;
  height: 44px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  background: transparent;
  pointer-events: none;
}

.product-modal-submit {
  flex: 1;
  height: 46px;
  border-radius: 12px;
  border: none;
  background: var(--color-green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-fast);
  box-shadow: 0 4px 14px rgba(138,171,147,0.3);
  font-family: 'Sofia Pro', 'Nunito', sans-serif;
  letter-spacing: 0.3px;
}

.product-modal-submit:hover {
  background: var(--color-green-dark);
  transform: translateY(-2px);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-item {
  background: rgba(71, 38, 35, 0.95);
  color: #fff;
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  transform: translateY(20px);
  opacity: 0;
  animation: toastIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes toastIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Modal */
@media (max-width: 768px) {
  .product-modal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .product-modal-card {
    border-radius: 20px;
    max-height: 85vh;
  }
  .product-modal-close {
    top: 15px;
    right: 15px;
  }
}

/* ============================================
   CART DRAWER (SIDE PANEL)
   ============================================ */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(71, 38, 35, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-left: 1px solid rgba(255,255,255,0.4);
  box-shadow: -10px 0 40px rgba(0,0,0,0.12);
  z-index: 2200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cart-drawer-overlay.open .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 24px 30px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header h2 {
  font-size: 20px;
  font-family: 'Sofia Pro', 'Nunito', sans-serif;
  color: var(--color-accent);
  font-weight: 700;
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.cart-drawer-close:hover {
  color: var(--color-accent);
  background: #f5ece4;
  transform: rotate(90deg);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-empty-message {
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--color-text-muted);
}

.cart-empty-icon {
  font-size: 48px;
  opacity: 0.6;
}

.cart-empty-message p {
  font-size: 14px;
  line-height: 1.6;
}

.cart-empty-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--color-accent-light);
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.cart-empty-btn:hover {
  background: var(--color-accent);
}

.cart-drawer-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  background: #faf8f5;
  border: 1px solid rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

.cart-item-size {
  font-size: 11px;
  color: var(--color-text-muted);
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 2px;
}

.cart-item-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.cart-item-qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.cart-item-qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.cart-item-qty-btn:hover {
  background: #f5f5f5;
}

.cart-item-qty-input {
  width: 26px;
  height: 28px;
  border: none;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #c97d7d;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.cart-item-remove:hover {
  background: #fcebeb;
  color: #a33c3c;
}

.cart-drawer-footer {
  padding: 24px 30px 30px;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: #faf8f5;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.cart-subtotal-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
}

.cart-checkout-btn {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: var(--color-green);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(138,171,147,0.3);
}

.cart-checkout-btn:hover {
  background: var(--color-green-dark);
  transform: translateY(-2px);
}

.cart-clear-link {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.cart-clear-link:hover {
  color: #a33c3c;
}

@media (max-width: 480px) {
  .cart-drawer {
    max-width: 100%;
  }
}

/* ============================================
   PRODUCT BADGES & PRICES (Figma)
   ============================================ */
.product-img {
  position: relative;
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 5;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.product-badge.discount {
  background: var(--color-accent);
}

.product-badge.new {
  background: var(--color-green-dark);
}

/* Side-by-side price & add-to-cart icon button */
.product-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  width: 100%;
}

.product-price-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 0 !important;
}

.product-price-container .product-price {
  margin-bottom: 0 !important;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent);
}

.old-price {
  font-size: 12px;
  color: var(--color-text-light);
  text-decoration: line-through;
  font-weight: 500;
  line-height: 1;
}

/* Rounded Pill Add-to-cart Text Button */
.product-card .btn-add-cart,
.product-info .btn-add-cart {
  flex-shrink: 0;
  padding: 10px 22px !important;
  border-radius: var(--radius-pill) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border: 1px solid var(--color-primary) !important;
  cursor: pointer;
  transition: all var(--transition-base) !important;
  font-size: var(--fs-sm) !important; /* 13px */
  font-weight: 600 !important;
  line-height: 1 !important;
}

.product-card .btn-add-cart:hover,
.product-info .btn-add-cart:hover {
  background: var(--color-bg-cream) !important;
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(71, 38, 35, 0.15) !important;
}

/* ============================================
   GLOBAL BUTTONS
   ============================================ */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-cream);
  color: var(--color-text);
  font-size: var(--fs-base);
  font-weight: 600;
  transition: background var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s ease-out 0.7s forwards;
}

.btn-primary:hover {
  background: #e8dfd7;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

