@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600&family=Quicksand:wght@400;500;600;700&family=Ribeye&display=swap');

:root {
  /* Brand Logo Color Palette */
  --primary: #728465; /* Earthen Sage/Olive Green from Logo */
  --primary-dark: #4d5c43; /* Deep forest sage for bold headings & text */
  --primary-light: #8fa082; /* Soft sage green tint */
  --secondary: #c9783c; /* Knot Warm Terracotta / Clay Rust from Logo */
  --secondary-light: #dba274; /* Soft warm terracotta tint */
  --secondary-dark: #a95e26; /* Deep terracotta for hover states */
  --accent: #f2d9b3; /* Soft warm wheat / sand from logo artwork */
  --bg: #faf7f2; /* Warm cream background */
  --bg-secondary: #f3ede2; /* Warm sand secondary background */
  --text: #2f362a; /* Deep forest-charcoal text for crisp, comfortable readability (>11:1 contrast) */
  --text-light: #646a5d; /* Earthy muted sage-slate for subtitles and captions */
  --surface: #ffffff;
  
  /* Utilities */
  --radius: 16px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.4);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: 'Quicksand', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

/* Tactile Paper/Linen Texture Overlay */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.035;
  z-index: 99999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Cozy Crochet Wavy Loop Divider */
.crochet-divider {
  width: 100%;
  max-width: 1200px;
  height: 24px;
  margin: 3.5rem auto;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,5 C5,9 10,9 15,5 C20,1 25,1 30,5 C35,9 40,9 45,5 C50,1 55,1 60,5 C65,9 70,9 75,5 C80,1 85,1 90,5 C95,9 100,9 105,5' fill='none' stroke='%23728465' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 80px 24px;
  opacity: 0.35;
  border: none;
}

/* Rolling Yarn Ball Toast Animation */
@keyframes yarnRoll {
  0% {
    transform: translateX(-50px) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateX(0) rotate(360deg);
    opacity: 1;
  }
}

.toast-yarn-ball {
  animation: yarnRoll 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  flex-shrink: 0;
  transform-origin: center;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  color: var(--primary-dark);
}

/* Accents & Price Highlights in Warm Terracotta */
.discount-price,
.price,
.product-card p .discount-price,
.price-highlight {
  color: var(--secondary) !important;
  font-weight: 700;
}

/* Custom Terracotta Brand Heart Icon (#c9783c) */
.heart-terracotta {
  display: inline-block;
  vertical-align: -0.1em;
  margin-left: 0.22em;
  fill: var(--secondary); /* #c9783c Warm Terracotta */
  color: var(--secondary);
  width: 0.88em;
  height: 0.88em;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.heart-terracotta:hover {
  transform: scale(1.18);
}

/* Quantity Stepper Group */
.qty-stepper-btn-group {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(114, 132, 101, 0.3);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px 6px;
  gap: 6px;
}
.qty-btn {
  background: none;
  border: none;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  line-height: 1;
}
.qty-btn:hover {
  background: rgba(114, 132, 101, 0.15);
  color: var(--primary-dark);
}
.qty-display {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-dark);
  min-width: 18px;
  text-align: center;
  user-select: none;
}

h2 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
}
@media (max-width: 600px) {
  h2 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: padding 0.3s ease;
}

.navbar.scrolled {
  padding: 1rem 5%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo img {
  height: 76px;
  width: 76px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(114, 132, 101, 0.15);
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.logo:hover img {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(114, 132, 101, 0.25);
}

.logo-brand-text {
  font-family: 'Ribeye', cursive, serif;
  font-size: 2.15rem;
  font-weight: 400;
  color: var(--primary); /* #728465 Matches 'Earthen' in the logo */
  letter-spacing: -0.3px;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, font-size 0.3s ease;
  user-select: none;
}

.logo-brand-text .logo-accent-text {
  color: var(--secondary); /* #c9783c Matches 'Knot' warm terracotta in the logo */
}

.logo:hover .logo-brand-text {
  transform: translateY(-1px);
}

.navbar.scrolled .logo img {
  height: 60px;
  width: 60px;
}

.navbar.scrolled .logo-brand-text {
  font-size: 1.85rem;
}

.logo-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo-leaf {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  fill: var(--primary);
  fill-opacity: 0.25;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  transition: transform 0.3s ease, fill-opacity 0.3s ease;
  flex-shrink: 0;
}

.logo:hover .logo-leaf,
.footer-logo:hover .logo-leaf {
  transform: rotate(14deg) scale(1.15);
  fill-opacity: 0.45;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.nav-links a.active {
  color: var(--primary);
}

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

.dropdown-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  background-color: var(--surface);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  z-index: 2000; /* High z-index to overlay above all content */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
  padding: 0.5rem 0;
  top: 100%; /* Positioned directly below the button to prevent hover gaps */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

/* Hover support on desktop viewports */
@media (hover: hover) {
  .dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.dropdown-content a {
  padding: 0.8rem 1.5rem;
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  font-family: 'Quicksand', sans-serif;
}

.dropdown-content a::after {
  content: none;
}

.dropdown-content a:hover {
  background-color: rgba(114, 132, 101, 0.1);
  color: var(--primary-dark);
}

.dropdown-content.show {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

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

.nav-links a.dropbtn::after {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cart-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  transition: stroke 0.3s ease;
}

.cart-btn:hover svg {
  stroke: var(--primary);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background-color: var(--secondary);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Quicksand', sans-serif;
  border: transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(114, 132, 101, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(114, 132, 101, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary);
  border: 1px solid var(--secondary);
}

.btn-secondary:hover {
  background-color: var(--secondary);
  color: white;
}

/* === Layout/Containers === */
.main-wrapper {
  margin-top: 140px; /* To account for fixed navbar */
  min-height: calc(100vh - 140px - 200px); /* Adjust based on footer */
}
@media (max-width: 1024px) {
  .main-wrapper {
    margin-top: 110px;
    min-height: calc(100vh - 110px - 200px);
  }
}
@media (max-width: 768px) {
  .main-wrapper {
    margin-top: 90px;
    min-height: calc(100vh - 90px - 200px);
  }
}
@media (max-width: 600px) {
  .main-wrapper {
    margin-top: 65px;
    min-height: calc(100vh - 65px - 200px);
  }
}

section {
  padding: 5rem 5%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
}

@media (max-width: 600px) {
  .glass-panel {
    padding: 1.5rem 1.2rem !important;
  }
}

/* === Responsive Utility Grid Layouts === */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.receipt-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.order-details-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.8rem;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .receipt-grid-2 {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .order-details-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .product-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  #zoom-toggle-btn {
    align-self: flex-start;
  }
}

/* ===  Category Filter Chips (mobile scroll) === */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}

/* === Footer === */
footer {
  background-color: var(--bg-secondary);
  padding: 3rem 5%;
  text-align: center;
  color: var(--text-light);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-links {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-links a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

/* On HOVER: Colorful Official Brand Colors */
.social-links a[aria-label*="WhatsApp"]:hover,
.social-links a.social-whatsapp:hover {
  background: #25D366 !important;
  color: #ffffff !important;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

.social-links a[aria-label*="Instagram"]:hover,
.social-links a.social-instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  color: #ffffff !important;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 20px rgba(220, 39, 67, 0.45);
}

.social-links a[aria-label*="YouTube"]:hover,
.social-links a.social-youtube:hover {
  background: #FF0000 !important;
  color: #ffffff !important;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.45);
}

.social-links a[aria-label*="Email"]:hover,
.social-links a.social-email:hover {
  background: #EA4335 !important;
  color: #ffffff !important;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 20px rgba(234, 67, 53, 0.45);
}

.social-links a[aria-label*="Facebook"]:hover,
.social-links a.social-facebook:hover {
  background: #1877F2 !important;
  color: #ffffff !important;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.45);
}

.social-links a:hover svg {
  transform: scale(1.08);
}

/* Mobile footer stacking */
@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
  }
}

.footer-policy-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 0.88rem;
}

.footer-policy-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.footer-policy-links a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.footer-policy-links .policy-dot {
  color: rgba(0, 0, 0, 0.25);
  user-select: none;
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .footer-policy-links {
    gap: 0.8rem;
    font-size: 0.82rem;
  }
  .footer-policy-links .policy-dot {
    display: none;
  }
}

/* Base animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* === Embedded Videos === */
.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  background-color: var(--surface);
}
.video-container.short {
  max-width: 350px;
  aspect-ratio: 9 / 16;
}
.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === Product Gallery === */
.product-gallery {
  display: flex;
  flex-direction: row;
  align-items: start;
  gap: 1.5rem;
}

.main-image-container {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  background-color: var(--surface);
  max-height: 500px;
}

.main-image-container img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
  transition: transform 0.1s ease-out;
  transform-origin: center center;
}

.thumbnails {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  max-height: 500px;
  padding-right: 0.5rem;
  scrollbar-width: none;
}
.thumbnails::-webkit-scrollbar { 
  display: none; 
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: contain !important;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  background-color: #fbf9f5 !important;
  flex-shrink: 0;
}

.thumbnail:hover, .thumbnail.active {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.thumbnail.active {
  box-shadow: var(--shadow-md);
}

/* Product gallery flips to vertical (image on top, thumbnails below) on mobile */
@media (max-width: 600px) {
  .product-gallery {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .main-image-container {
    max-height: 480px !important;
    min-height: 320px !important;
    aspect-ratio: 4 / 5 !important;
    border-radius: 16px !important;
    background-color: #fbf9f5 !important;
    border: 1px solid rgba(114, 132, 101, 0.12) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .main-image-container img {
    max-height: 480px !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
  }

  .thumbnails {
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-height: none !important;
    padding-right: 0 !important;
    padding-bottom: 0.5rem !important;
    gap: 0.75rem !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .thumbnail {
    width: 68px !important;
    height: 68px !important;
    flex-shrink: 0 !important;
    border-radius: 10px !important;
  }
}

/* === User Auth Button (Navbar) === */
.user-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  transition: background 0.3s ease, color 0.3s ease;
  color: var(--text);
  font-family: 'Quicksand', sans-serif;
}

.user-btn:hover {
  background: rgba(114, 132, 101, 0.1);
  color: var(--primary);
}

.user-btn-label {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.user-auth-container {
  position: relative;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 130%;
  right: 0;
  min-width: 220px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  overflow: hidden;
  animation: fadeIn 0.25s ease;
}

.user-dropdown.show {
  display: block;
}

.user-dropdown-header {
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.user-dropdown-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.user-dropdown-email {
  font-size: 0.8rem;
  color: var(--text-light);
  word-break: break-all;
}

.user-dropdown-divider {
  height: 1px;
  background: rgba(0,0,0,0.06);
}

.user-dropdown-logout {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  color: var(--secondary);
  font-family: 'Quicksand', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.user-dropdown-logout:hover {
  background: rgba(201, 120, 60, 0.1);
  color: var(--primary-dark);
}

.user-dropdown-item {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  color: var(--text);
  font-family: 'Quicksand', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  display: block;
  text-decoration: none;
}

.user-dropdown-item:hover {
  background: rgba(114, 132, 101, 0.08);
  color: var(--primary-dark);
}

/* === Auth Page === */
.auth-section {
  width: 100%;
  max-width: 480px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  position: relative;
}

.auth-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

.auth-bg-orb-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: -80px;
  left: -100px;
}

.auth-bg-orb-2 {
  width: 250px;
  height: 250px;
  background: var(--accent);
  bottom: -60px;
  right: -80px;
}

.auth-container {
  padding: 3rem 2.5rem;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.auth-header h1 {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
  transition: all 0.3s ease;
}

.auth-header p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Auth Form */
.auth-form .form-group {
  margin-bottom: 1.3rem;
}

.auth-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text-light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: stroke 0.3s ease;
}

.input-wrapper input {
  width: 100%;
  padding: 0.85rem 2.8rem 0.85rem 2.8rem;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--text);
  font-family: 'Quicksand', sans-serif;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Toggle Password Visibility Button */
.toggle-password-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: color 0.2s ease;
}

.toggle-password-btn:hover {
  color: var(--primary);
}

.toggle-password-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input-wrapper input:focus {
  border-color: rgba(114, 132, 101, 0.5);
  box-shadow: 0 0 0 3px rgba(114, 132, 101, 0.1);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  stroke: var(--primary);
}

.input-wrapper input::placeholder {
  color: var(--text-light);
  opacity: 0.6;
}

.auth-submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  border-radius: 14px;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-toggle {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.auth-toggle a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.auth-toggle a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Auth Toast */
.auth-toast {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'Quicksand', sans-serif;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: var(--shadow-lg);
  max-width: 90vw;
  text-align: center;
}

.auth-toast.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.auth-toast.error {
  background: #fbe9e7;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.auth-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Spinner */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ====================================================
   Comprehensive Responsive Design (Desktop, Tablet, Mobile)
   ==================================================== */

/* Mobile Hamburger Toggle Button */
.mobile-menu-btn {
  display: none;
  background: rgba(114, 132, 101, 0.08);
  border: 1px solid rgba(114, 132, 101, 0.24);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  width: 42px;
  height: 42px;
  min-width: 42px;
  color: var(--primary-dark);
  z-index: 1002;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
  background: rgba(114, 132, 101, 0.16);
  border-color: var(--primary);
  outline: none;
  transform: scale(1.03);
}

.mobile-menu-btn:active {
  transform: scale(0.97);
}

.mobile-menu-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary-dark);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: transform 0.25s ease;
}

/* Mobile Navigation Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(44, 53, 36, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.nav-menu-open {
  overflow: hidden !important;
}

/* Desktop styles: ensure mobile drawer specifics are hidden */
@media (min-width: 1025px) {
  .mobile-drawer-header,
  .mobile-drawer-footer,
  .mobile-nav-backdrop,
  .mobile-menu-btn {
    display: none !important;
  }
}

/* ==========================================================================
   Product Card Image Container — Complete Image Visibility
   ========================================================================== */
.product-image-container {
  aspect-ratio: 4 / 5;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #fbf9f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.product-image-container img,
.product-card img,
.hero-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center !important;
  display: block;
  transition: transform 0.4s ease;
}

@media (hover: hover) {
  .product-card:hover .product-image-container img,
  .product-card:hover .hero-product-img,
  .product-card:hover img {
    transform: scale(1.03);
  }
}

/* Tablet Layout (max-width: 1024px) */
@media (max-width: 1024px) {
  .navbar {
    padding: 1rem 4%;
  }
  .navbar.scrolled {
    padding: 0.75rem 4%;
  }
  .container {
    padding-left: 4% !important;
    padding-right: 4% !important;
  }
  #product-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
    gap: 1.5rem !important;
  }
  section {
    padding: 3.5rem 4%;
  }

  /* Tablet / iPad product image visibility: fully visible without cropping */
  .product-image-container {
    aspect-ratio: 4 / 5 !important;
    width: 100% !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #fbf9f5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
  }

  .product-image-container img,
  .product-card img,
  .hero-product-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
  }

  /* Product detail gallery on Tablet / iPad */
  .product-gallery {
    flex-direction: column !important;
    gap: 1.25rem !important;
    align-items: center !important;
  }

  .main-image-container {
    width: 100% !important;
    max-width: 580px !important;
    max-height: 560px !important;
    aspect-ratio: 4 / 5 !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #fbf9f5 !important;
    border-radius: 18px !important;
    border: 1px solid rgba(114, 132, 101, 0.12) !important;
  }

  .main-image-container img {
    width: 100% !important;
    height: 100% !important;
    max-height: 560px !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .thumbnails {
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-height: none !important;
    width: 100% !important;
    max-width: 580px !important;
    justify-content: center !important;
    padding-bottom: 0.5rem !important;
    gap: 0.85rem !important;
  }

  .thumbnail {
    width: 72px !important;
    height: 72px !important;
    border-radius: 12px !important;
    object-fit: contain !important;
    background-color: #fbf9f5 !important;
  }

  /* GPU Rendering Optimizations for Tablets and Mobile */
  body::after {
    display: none !important; /* Disables heavy full-viewport SVG turbulence filter */
  }

  .product-card.glass-panel {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Small Tablet / Large Phone (max-width: 768px) */
@media (max-width: 768px) {
  #product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.2rem !important;
  }

  .product-card.glass-panel {
    padding: 1rem !important;
  }

  section {
    padding: 3rem 4%;
  }

  .collection-note {
    padding: 1rem 1.2rem;
    font-size: 0.88rem;
    margin-bottom: 2rem;
  }

  .collection-note-title {
    font-size: 1rem;
  }

  h1[style*="font-size: 3rem"] {
    font-size: 2.2rem !important;
  }

  /* Prevent iOS Safari auto-zoom on input focus */
  input,
  select,
  textarea,
  .input-wrapper input,
  .form-group input {
    font-size: 16px !important;
  }

  .qty-btn {
    width: 32px;
    height: 32px;
    font-size: 1.15rem;
  }
}

/* Touchscreens: Prevent sticky hover states on cards while allowing tactile active press */
@media (hover: none) and (pointer: coarse) {
  .product-card:hover {
    transform: none !important;
    box-shadow: var(--shadow-sm) !important;
  }
  .product-card:hover img {
    transform: none !important;
  }
  .product-card:active {
    transform: scale(0.98) !important;
  }
}

/* Mobile & Tablet Navigation Drawer (max-width: 1024px) */
@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: min(85vw, 360px);
    height: 100vh;
    height: 100dvh;
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.4rem 2.5rem;
    gap: 0.4rem;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
    border-left: 1px solid rgba(114, 132, 101, 0.2);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border-bottom: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(114, 132, 101, 0.1);
    color: var(--primary-dark);
  }

  .nav-links a::after {
    display: none !important;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown a.dropbtn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .dropdown-content {
    position: static;
    visibility: visible;
    opacity: 1;
    display: none;
    box-shadow: none;
    border: none;
    background: rgba(114, 132, 101, 0.05);
    transform: none;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
  }

  .dropdown-content.show {
    display: block;
    transform: none !important;
  }

  .dropdown-content a {
    padding: 0.65rem 1rem;
    font-size: 0.98rem;
    border-radius: 8px;
    color: var(--text) !important;
  }

  .dropdown-content a:hover {
    background: rgba(114, 132, 101, 0.1);
    color: var(--primary-dark) !important;
  }

  /* Mobile Drawer Header */
  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(114, 132, 101, 0.15);
  }

  .mobile-drawer-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .mobile-drawer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
  }

  .mobile-drawer-close {
    background: rgba(114, 132, 101, 0.08);
    border: 1px solid rgba(114, 132, 101, 0.2);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-dark);
    padding: 0;
    transition: all 0.2s ease;
  }

  .mobile-drawer-close:hover {
    background: rgba(114, 132, 101, 0.18);
  }

  .mobile-drawer-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
  }

  /* Mobile Drawer Footer */
  .mobile-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: auto;
    padding-top: 0.75rem;
  }

  .mobile-drawer-divider {
    height: 1px;
    background: rgba(114, 132, 101, 0.15);
    margin: 0.75rem 0;
  }

  .mobile-drawer-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    padding: 0.2rem 0.5rem 0.4rem;
  }

  .mobile-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem !important;
    padding: 0.65rem 0.85rem !important;
    font-size: 0.96rem !important;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s ease;
  }

  .mobile-drawer-link svg {
    flex-shrink: 0;
    color: var(--primary);
  }

  .mobile-drawer-link:hover {
    background: rgba(114, 132, 101, 0.08);
    color: var(--primary-dark) !important;
  }
}

/* Mobile Screens (max-width: 600px) */
@media (max-width: 600px) {
  .navbar {
    padding: 0.65rem 3.5%;
  }

  .logo {
    gap: 0.5rem;
  }

  .logo img {
    width: 48px !important;
    height: 48px !important;
  }

  .logo-brand-text {
    font-size: 1.5rem !important;
  }

  .logo-leaf {
    width: 16px;
    height: 16px;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  /* On small mobile, hide "Sign In" text so action buttons never overflow */
  .user-btn-label {
    display: none !important;
  }

  .user-btn {
    padding: 0.45rem !important;
    border: 1px solid rgba(114, 132, 101, 0.2);
    border-radius: 50% !important;
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0 !important;
  }

  .cart-btn {
    padding: 0.45rem !important;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  h1 {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem) !important;
  }

  section {
    padding: 2.5rem 4%;
  }

  /* Collections: 2-column grid on mobile */
  #product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .product-card {
    max-width: 100%;
  }

  /* Tighter card padding on mobile */
  .product-card.glass-panel {
    padding: 0.85rem !important;
  }

  /* Smaller text in product cards */
  .product-card h3 {
    font-size: 0.95rem !important;
  }

  .product-card p[style*="font-weight: 600"] {
    font-size: 0.95rem !important;
  }

  /* Slightly smaller Add to Cart button on mobile cards */
  .product-card .btn {
    font-size: 0.82rem !important;
    padding: 0.55rem 0.5rem !important;
  }

  /* Product Card Images on Mobile: 4:5 portrait ratio so all items are 100% completely visible without cropping */
  .product-image-container {
    aspect-ratio: 4 / 5 !important;
    margin-bottom: 0.8rem !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
    background: #fbf9f5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .product-card img,
  .product-image-container img,
  .hero-product-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
  }

  /* Scale prices down to fit mobile cards */
  .product-card p {
    font-size: 0.88rem !important;
    gap: 0.35rem !important;
  }
  .product-card p span {
    font-size: 0.8rem !important;
  }
  .product-card p .discount-price {
    font-size: 0.92rem !important;
  }

  /* Disable hover transitions on touchscreens to prevent stickiness */
  .product-card:hover {
    transform: none !important;
  }
  .product-card:hover img {
    transform: none !important;
  }

  /* Collection note compact on mobile */
  .collection-note {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    text-align: left;
  }

  .collection-note-title {
    font-size: 0.95rem;
  }

  /* Product Details Page Responsive */
  .product-action-bar-responsive {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1.2rem !important;
    padding: 1.2rem !important;
  }

  .product-action-bar-responsive > div {
    justify-content: center !important;
  }

  .product-action-bar-responsive .btn-primary,
  .product-action-bar-responsive .btn-secondary {
    width: 100% !important;
  }

  .product-action-bar-responsive .qty-stepper-btn-group {
    width: auto !important;
    display: inline-flex !important;
  }

  .product-action-bar-responsive .qty-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
  }

  /* Checkout & Auth Layouts */
  .checkout-container,
  .auth-container {
    padding: 1.5rem 1.2rem !important;
    border-radius: 16px;
  }

  .auth-bg-orb-1,
  .auth-bg-orb-2 {
    display: none;
  }

  /* Hero product images responsive height without cropping */
  .featured .product-card img[style*="height: 380px"],
  .featured .hero-product-img,
  .featured img {
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  /* Checkout & Cart Items Responsive Styling on Mobile */
  .checkout-cart-item-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    padding: 1rem 0 !important;
  }
  .cart-item-product-info {
    width: 100% !important;
  }
  .cart-item-img-container {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    background: #fbf9f5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-radius: 12px !important;
  }
  .cart-item-img-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }
  .cart-item-name {
    font-size: 0.95rem !important;
    white-space: normal !important;
  }
  .cart-item-controls {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding-top: 0.5rem !important;
    border-top: 1px dashed rgba(114, 132, 101, 0.15) !important;
  }

  /* Cart Toast Message Mobile Placement */
  #cart-toast-msg {
    bottom: 16px !important;
    right: 16px !important;
    left: 16px !important;
    max-width: calc(100vw - 32px) !important;
    padding: 10px 14px !important;
  }

  /* Main wrapper top offset adjustment for smaller navbar */
  .main-wrapper {
    margin-top: 65px;
  }
}

/* Checkout Cart Item Default Row (Desktop/Tablet) */
.checkout-cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  gap: 1rem;
}
.cart-item-product-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Small Phones (max-width: 400px) */
@media (max-width: 400px) {
  .logo {
    gap: 0.4rem;
  }

  .logo img {
    width: 40px !important;
    height: 40px !important;
  }

  .logo-brand-text {
    font-size: 1.25rem !important;
  }

  #product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .product-card.glass-panel {
    padding: 0.7rem !important;
  }

  .product-card h3 {
    font-size: 0.85rem !important;
  }

  .product-card p {
    font-size: 0.8rem !important;
    gap: 0.25rem !important;
  }
  .product-card p span {
    font-size: 0.75rem !important;
  }
  .product-card p .discount-price {
    font-size: 0.85rem !important;
  }
}

/* Sold Out Badge */
.sold-out-badge {
  background-color: var(--secondary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: var(--shadow-sm);
}

/* Multi-photo Badge */
.multi-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(43, 49, 36, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  z-index: 10;
}

/* Collection Reorder Custom Note */
.collection-note {
  max-width: 650px;
  margin: 0 auto 3rem auto;
  padding: 1.2rem 1.8rem;
  background: rgba(201, 120, 60, 0.06);
  border-left: 4px solid var(--secondary);
  border-radius: 12px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}

.collection-note-title {
  color: var(--secondary);
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.25rem;
}

/* === Smooth Layout Transitions === */
.navbar,
.main-wrapper,
section,
.logo,
.logo img,
.product-card,
.btn,
.nav-links,
.hero-product-img {
  transition: padding 0.3s ease, margin 0.3s ease, height 0.3s ease, font-size 0.3s ease, gap 0.3s ease, grid-template-columns 0.3s ease;
}

/* === Home Page Main Wrapper margin settings === */
.home-page-main {
  /* Inherits responsive margin-top from .main-wrapper */
}

/* === Mobile & Tablet Menu Scrollbar Fix === */
@media (max-width: 1024px) {
  .nav-links {
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* === Phone Landscape Optimizations (max-height: 500px) === */
@media (max-height: 500px) and (orientation: landscape) {
  .navbar {
    padding: 0.5rem 4% !important;
  }
  
  .logo {
    gap: 0.4rem !important;
  }
  
  .logo img {
    width: 38px !important;
    height: 38px !important;
  }

  .logo-brand-text {
    font-size: 1.25rem !important;
  }
  
  .main-wrapper {
    margin-top: 55px !important;
  }
  
  .home-page-main {
    margin-top: 55px !important;
  }
  
  .nav-links {
    max-height: calc(100vh - 55px) !important;
  }
  
  section {
    padding: 2rem 4% !important;
  }
  
  h1 {
    font-size: 1.8rem !important;
    margin-bottom: 1.2rem !important;
  }
  
  h2 {
    font-size: 1.6rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .hero-product-img {
    height: 180px !important;
  }
  
  /* Optimize product details page gallery in landscape */
  .product-gallery {
    flex-direction: row !important;
    gap: 1rem !important;
    align-items: center !important;
  }
  
  .main-image-container {
    max-height: 240px !important;
  }
  
  .main-image-container img {
    max-height: 240px !important;
  }
  
  .thumbnails {
    max-height: 240px !important;
    flex-direction: column !important;
  }
  
  .thumbnail {
    width: 60px !important;
    height: 60px !important;
  }
  
  /* Adjust margins and font sizes of headings/stories in landscape */
  .product-bio-wrapper {
    padding: 1.5rem 0 !important;
  }
  
  .size-info-card {
    padding: 1.5rem !important;
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  /* Grid sizes adjustments in landscape */
  #product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 1rem !important;
  }
}

/* Animated Cozy Cat in welcome banner */
@keyframes catBob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes catBlink {
  0%, 90%, 100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}

.welcome-cozy-cat {
  animation: catBob 2.5s ease-in-out infinite;
  transform-origin: bottom center;
}

.welcome-cozy-cat .cat-eye-left,
.welcome-cozy-cat .cat-eye-right,
.welcome-cozy-cat .cat-eye-shine-left,
.welcome-cozy-cat .cat-eye-shine-right {
  animation: catBlink 4s ease-in-out infinite;
  transform-origin: center 52px;
}

/* Ensure the product card supports relative positioning */
.product-card {
  position: relative;
}

/* --- Delivery Address Autocomplete & Map Pinning --- */
.address-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(114, 132, 101, 0.25);
  max-height: 280px;
  overflow-y: auto;
  z-index: 2500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.suggestion-item {
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(114, 132, 101, 0.08);
  transition: background 0.2s ease;
  user-select: none;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: rgba(114, 132, 101, 0.12);
}

.suggestion-item .sugg-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  fill: var(--primary);
}

.suggestion-item .sugg-content {
  flex: 1;
  min-width: 0;
}

.suggestion-item .sugg-main {
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--primary-dark);
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-item .sugg-secondary {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Custom pulsing map pin */
.custom-map-pin {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
  animation: pinDrop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pinDrop {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@media (max-width: 600px) {
  #delivery-map-container {
    height: 190px !important;
  }
}

