/* ═══════════════════════════════════════════════════════════ 
   PSH - Pallavi Saree House
   Botanical Sage & Gold Theme
   ═══════════════════════════════════════════════════════════ */

:root {
  --cream: #F5F2E9;
  --gold: #C69C4E;
  --gold-light: #DBC08C;
  --gold-dark: #9A7635;
  --maroon: #7A9678;
  --maroon-deep: #4A6348;
  --maroon-light: #B8C7B6;
  --warm-white: #FCFAEF;
  --dark-text: #24402E;
  --body-text: #3D5A43;
  --muted-text: #8FA693;
  --accent-rose: #E8EDE5;
  --border: #D1DED3;
  --card-bg: #FFFFFF;
  --overlay: rgba(36, 64, 46, 0.7);
  --shadow-sm: 0 2px 8px rgba(36, 64, 46, 0.08);
  --shadow-md: 0 4px 20px rgba(36, 64, 46, 0.12);
  --shadow-lg: 0 8px 40px rgba(36, 64, 46, 0.15);
  --shadow-xl: 0 16px 60px rgba(36, 64, 46, 0.18);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 72px;
  --max-width: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--body-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* â•â•â• GLOBAL BACKGROUND ANIMATIONS â•â•â• */
body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  width: 400px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  background-size: contain;
  background-repeat: no-repeat;
}

body::before {
  left: -50px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 600"><path d="M10,300 Q50,200 150,150 Q100,250 10,300 Z" fill="%237A9678" opacity="0.4"/><path d="M10,300 Q60,400 120,480 Q80,380 10,300 Z" fill="%23D2E0D4" opacity="0.5"/><path d="M10,300 Q80,300 160,280 Q80,320 10,300 Z" fill="%234A6348" opacity="0.3"/><circle cx="120" cy="220" r="4" fill="%23C69C4E" opacity="0.6"/><circle cx="140" cy="350" r="3" fill="%23C69C4E" opacity="0.5"/><circle cx="80" cy="180" r="5" fill="%23C69C4E" opacity="0.4"/></svg>');
  background-position: left center;
  animation: swayLeft 12s ease-in-out infinite alternate;
}

body::after {
  right: -50px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 600"><path d="M190,200 Q150,100 50,80 Q100,150 190,200 Z" fill="%23D2E0D4" opacity="0.3"/><path d="M190,400 Q140,500 80,550 Q120,450 190,400 Z" fill="%237A9678" opacity="0.4"/><path d="M190,300 Q120,250 40,280 Q120,320 190,300 Z" fill="%23C69C4E" opacity="0.2"/><circle cx="80" cy="150" r="4" fill="%23C69C4E" opacity="0.5"/><circle cx="60" cy="450" r="3" fill="%23C69C4E" opacity="0.6"/><circle cx="100" cy="350" r="5" fill="%23C69C4E" opacity="0.4"/></svg>');
  background-position: right center;
  animation: swayRight 15s ease-in-out infinite alternate;
}

@keyframes swayLeft {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }

  100% {
    transform: rotate(2deg) translate(15px, -15px);
  }
}

@keyframes swayRight {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }

  100% {
    transform: rotate(-2deg) translate(-15px, 15px);
  }
}

@media (max-width: 900px) {

  body::before,
  body::after {
    opacity: 0.1;
    width: 200px;
  }

  body::before {
    left: -80px;
  }

  body::after {
    right: -80px;
  }
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  color: var(--dark-text);
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* â•â•â• NAVBAR â•â•â• */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(241, 248, 233, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(241, 248, 233, 0.97);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 4px;
}

.logo-script {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: var(--dark-text);
  line-height: 0.8;
  font-weight: 400;
  padding-right: 12px;
}

.logo-serif {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.55rem;
  color: var(--dark-text);
  letter-spacing: 3px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--body-text);
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--maroon);
  background: rgba(123, 45, 59, 0.06);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-wishlist-badge {
  background: var(--maroon);
  color: white;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  font-weight: 700;
}

/* hamburger base â€” defined with full styles in nav-search section below */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

/* â•â•â• HERO â•â•â• */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  margin-top: var(--nav-height);
  background: var(--dark-text);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transition: opacity 1s ease;
  filter: saturate(0.8);
}

.hero-overlay {
  display: block;
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(36, 64, 46, 0.4) 0%, rgba(36, 64, 46, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
  padding: 50px 24px;
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-badge {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(165, 214, 167, 0.4);
  color: #C8E6C9;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  color: white;
  margin-bottom: 24px;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 em {
  font-style: italic;
  color: #A5D6A7;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  line-height: 1.8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

/* â•â•â• HERO PETAL ANIMATIONS â•â•â• */
.hero-petals {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.petal {
  position: absolute;
  width: 20px;
  height: 28px;
  background: radial-gradient(ellipse at 30% 30%, rgba(200, 230, 201, 0.35), rgba(129, 199, 132, 0.15));
  border-radius: 50% 50% 50% 0;
  opacity: 0;
  animation: petalFall linear infinite;
}

.petal-1 {
  left: 10%;
  width: 18px;
  height: 26px;
  animation-duration: 14s;
  animation-delay: 0s;
}

.petal-2 {
  left: 25%;
  width: 14px;
  height: 20px;
  animation-duration: 11s;
  animation-delay: 2s;
}

.petal-3 {
  left: 40%;
  width: 22px;
  height: 30px;
  animation-duration: 16s;
  animation-delay: 4s;
}

.petal-4 {
  left: 55%;
  width: 16px;
  height: 24px;
  animation-duration: 12s;
  animation-delay: 1s;
}

.petal-5 {
  left: 70%;
  width: 20px;
  height: 28px;
  animation-duration: 15s;
  animation-delay: 3s;
}

.petal-6 {
  left: 85%;
  width: 12px;
  height: 18px;
  animation-duration: 10s;
  animation-delay: 5s;
}

.petal-7 {
  left: 15%;
  width: 16px;
  height: 22px;
  animation-duration: 13s;
  animation-delay: 7s;
}

.petal-8 {
  left: 50%;
  width: 24px;
  height: 32px;
  animation-duration: 17s;
  animation-delay: 6s;
}

.petal-9 {
  left: 78%;
  width: 14px;
  height: 20px;
  animation-duration: 11s;
  animation-delay: 8s;
}

.petal-10 {
  left: 35%;
  width: 18px;
  height: 26px;
  animation-duration: 14s;
  animation-delay: 9s;
}

@keyframes petalFall {
  0% {
    transform: translateY(-60px) rotate(0deg) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  50% {
    transform: translateY(45vh) rotate(180deg) translateX(40px);
    opacity: 0.4;
  }

  80% {
    opacity: 0.2;
  }

  100% {
    transform: translateY(95vh) rotate(360deg) translateX(-20px);
    opacity: 0;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(67, 160, 71, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(67, 160, 71, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--gold);
  color: white;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  background: #25D366;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  background: #20BD5A;
}

/* â•â•â• AUTH BUTTONS â•â•â• */
.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto 40px;
}

.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--dark-text);
  cursor: pointer;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background: var(--cream);
}

.btn-auth-email {
  background: var(--maroon);
  color: white;
  border-color: var(--maroon);
}

.btn-auth-email:hover {
  background: var(--maroon-deep);
  color: white;
}

.btn-auth-google svg {
  width: 20px;
  height: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--muted-text);
  font-size: 0.85rem;
  margin: 16px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.auth-divider:not(:empty)::before {
  margin-right: .5em;
}

.auth-divider:not(:empty)::after {
  margin-left: .5em;
}

/* â•â•â• SECTIONS â•â•â• */
.section {
  padding: 80px 0;
  position: relative;
}

.section-decorated {
  overflow: hidden;
}

.section-alt {
  background: linear-gradient(135deg, rgba(102, 187, 106, 0.04), rgba(200, 230, 201, 0.06));
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted-text);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 3px;
  margin: 16px auto 0;
}

.section-header::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin: 14px auto 0;
  opacity: 0.5;
}

/* â•â•â• VINE DIVIDER â•â•â• */
.vine-divider {
  width: 100%;
  height: 40px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vine-divider svg {
  width: 100%;
  height: 40px;
}

.vine-path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawVine 3s ease forwards;
}

.vine-dot {
  animation: vineGrow 0.5s ease both;
}

.vine-dot:nth-child(2) {
  animation-delay: 1s;
}

.vine-dot:nth-child(3) {
  animation-delay: 1.5s;
}

.vine-dot:nth-child(4) {
  animation-delay: 2s;
}

.vine-dot:nth-child(5) {
  animation-delay: 2.5s;
}

@keyframes drawVine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes vineGrow {
  from {
    r: 0;
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* â•â•â• SECTION LEAF DECORATIONS â•â•â• */
.section-leaves {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.decor-leaf {
  position: absolute;
  opacity: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(102, 187, 106, 0.18), rgba(200, 230, 201, 0.08));
  border-radius: 50% 50% 50% 0;
  animation: decorFloat ease-in-out infinite;
}

@keyframes decorFloat {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(0.8);
  }

  20% {
    opacity: 0.18;
  }

  50% {
    transform: translateY(-20px) rotate(15deg) scale(1);
    opacity: 0.12;
  }

  80% {
    opacity: 0.18;
  }

  100% {
    opacity: 0;
    transform: translateY(0) rotate(-10deg) scale(0.8);
  }
}

/* â•â•â• CATEGORY CARDS â•â•â• */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.category-card:hover .category-card-bg img {
  transform: scale(1.08);
  filter: blur(4px) brightness(0.7);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.category-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: blur(2px) brightness(0.75);
}

.category-card-content {
  position: relative;
  z-index: 2;
  padding: 36px 32px;
  background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.5) 100%);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-card-icon {
  display: none;
}

.category-card h3 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.category-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* â•â•â• PRODUCT GRID â•â•â• */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card-img {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.product-card-img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: white;
  text-align: center;
  padding: 20px;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-img-inner {
  transform: scale(1.05);
}

.product-card-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.product-card-wishlist:hover {
  transform: scale(1.1);
}

.product-card-wishlist.active {
  background: var(--maroon);
  color: white;
}

.product-card-body {
  padding: 20px;
}

.product-card-type {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 6px;
}

.product-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--dark-text);
  margin-bottom: 8px;
  font-weight: 600;
}

.product-card-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--maroon);
}

.product-card-price span {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted-text);
}

.product-card-colors {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.product-card-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.product-card-color-dot:hover {
  transform: scale(1.2);
  border-color: var(--gold);
}

/* â•â•â• FILTERS â•â•â• */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.filters-bar label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-right: 8px;
}

.filter-chip {
  padding: 8px 18px;
  border-radius: 30px;
  background: var(--cream);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--body-text);
  transition: var(--transition);
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--maroon);
  color: white;
  border-color: var(--maroon);
}

.filter-reset {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--muted-text);
  cursor: pointer;
  transition: var(--transition);
}

.filter-reset:hover {
  color: var(--maroon);
}

/* â•â•â• PRODUCT MODAL â•â•â• */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(27, 62, 30, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(30px) scale(0.95);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--dark-text);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--maroon);
  color: white;
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.modal-image {
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: white;
  text-align: center;
  padding: 30px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  transition: background 0.5s ease;
}

.modal-details {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
}

.modal-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark-text);
}

.modal-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--maroon);
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--body-text);
  line-height: 1.7;
}

.modal-variants h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 12px;
}

.modal-variant-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.variant-swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.variant-swatch:hover {
  transform: scale(1.1);
}

.variant-swatch.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 150, 58, 0.3);
}

.variant-swatch.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
}

.variant-swatch.unavailable::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -2px;
  right: -2px;
  height: 2px;
  background: #ff4444;
  transform: rotate(-45deg);
}

.variant-color-label {
  font-size: 0.82rem;
  color: var(--muted-text);
  margin-top: 8px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* â•â•â• WISHLIST PAGE â•â•â• */
.wishlist-empty {
  text-align: center;
  padding: 80px 24px;
}

.wishlist-empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.wishlist-empty h3 {
  font-size: 1.4rem;
  color: var(--dark-text);
  margin-bottom: 8px;
}

.wishlist-empty p {
  color: var(--muted-text);
  margin-bottom: 24px;
}

/* â•â•â• ACCOUNT PAGE â•â•â• */
/* â•â•â• ACCOUNT PAGE â•â•â• */
.account-container {
  max-width: 800px;
  margin: 0 auto;
}

.account-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  margin-bottom: 24px;
}

.account-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.account-header-row h2 {
  font-size: 1.6rem;
  color: var(--dark-text);
  margin: 0;
}

.account-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin: 0 auto 24px;
}

/* Guest Mode */
.account-guest {
  text-align: center;
  padding: 40px 20px;
}

.account-guest h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--dark-text);
}

.account-guest p {
  font-size: 1.1rem;
  color: var(--muted-text);
  margin-bottom: 32px;
}

.guest-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: left;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.benefit-text h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--dark-text);
  margin-bottom: 4px;
}

.benefit-text p {
  font-size: 0.85rem;
  color: var(--muted-text);
  line-height: 1.4;
}

/* Inline Editing Fields */
.field-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--cream);
}

.field-row:last-child {
  border-bottom: none;
}

.field-info {
  flex: 1;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.field-value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--dark-text);
}

.field-edit-btn {
  background: transparent;
  color: var(--gold-dark);
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 600;
}

.field-edit-btn:hover {
  color: var(--maroon);
}

.field-edit-form {
  display: none;
  margin-top: 8px;
}

.field-edit-form.active {
  display: block;
}

.field-edit-form input,
.field-edit-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.field-edit-form input:focus {
  border-color: var(--gold);
  outline: none;
}

.edit-actions {
  display: flex;
  gap: 8px;
}

.btn-save {
  background: var(--maroon);
  color: white;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-cancel {
  background: transparent;
  color: var(--muted-text);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
}

/* Delivery Address Grid */
.address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.address-full {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .address-grid {
    grid-template-columns: 1fr;
  }

  .address-full {
    grid-column: span 1;
  }
}

/* Address Form Groups — scoped to #addressForm only to prevent any global collision */
#addressForm .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#addressForm .form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#addressForm .form-group input,
#addressForm .form-group select,
#addressForm .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--card-bg);
  color: var(--dark-text);
  transition: border-color 0.2s ease;
}

#addressForm .form-group input:focus,
#addressForm .form-group select:focus,
#addressForm .form-group textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(198, 156, 78, 0.12);
}

/* Address form container — display controlled entirely via JS style.display */
#addressFormContainer {
  margin-top: 20px;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-state svg {
  color: var(--border);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.2rem;
  color: var(--dark-text);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--muted-text);
  margin-bottom: 24px;
}

/* Empty state CTA minimum touch target for mobile */
.empty-state .btn-secondary,
.empty-state .btn-primary {
  min-height: 44px;
  padding: 10px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- CATEGORY HERO --- */
.category-hero {
  padding: 60px 0 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(102, 187, 106, 0.08), rgba(46, 125, 50, 0.05));
  margin-top: var(--nav-height);
}

.category-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 8px;
}

.category-hero p {
  color: var(--muted-text);
  font-size: 1rem;
}

/* â•â•â• PAGE HEADER (Wishlist, Account) â•â•â• */
.page-header {
  padding: 60px 0 40px;
  text-align: center;
  margin-top: var(--nav-height);
  background: linear-gradient(135deg, rgba(102, 187, 106, 0.08), rgba(46, 125, 50, 0.05));
}

.page-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--muted-text);
}

/* â•â•â• FOOTER â•â•â• */
.footer {
  background: var(--dark-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.footer-brand h3 span {
  color: var(--gold);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--gold-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  font-family: 'Nunito', sans-serif;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  padding: 4px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
}

/* Footer Social Contact Icon Buttons */
.footer-reach-col {
  display: flex;
  flex-direction: column;
}
.footer-contact-info a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.78);
  transition: var(--transition);
}
.footer-contact-info a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}
.footer-social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.footer-col .footer-social-icon-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease !important;
  flex-shrink: 0 !important;
}
.footer-col .footer-social-icon-btn svg {
  display: block !important;
  margin: auto !important;
  flex-shrink: 0 !important;
}
.footer-col .footer-social-icon-btn:hover {
  transform: translateY(-3px) scale(1.08) !important;
  padding-left: 0 !important;
}
.footer-social-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(214, 36, 159, 0.35);
}
.footer-social-instagram:hover {
  box-shadow: 0 6px 20px rgba(214, 36, 159, 0.55);
}
.footer-social-whatsapp {
  background: #25D366;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.footer-social-whatsapp:hover {
  background: #20BA56;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

/* â•â•â• ANIMATIONS â•â•â• */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease both;
}

.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.2s;
}

.stagger-3 {
  animation-delay: 0.3s;
}

.stagger-4 {
  animation-delay: 0.4s;
}

/* â•â•â• RESPONSIVE â•â•â• */
@media (max-width: 1024px) {
  .modal-content {
    grid-template-columns: 1fr;
  }

  .modal-image {
    min-height: 280px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* â•â•â• RESPONSIVE â€” Mobile â‰¤ 900px â•â•â•
   Single canonical mobile nav block.
   Breakpoint: 900px (hamburger shows on tablet + mobile).
   Uses var(--nav-height) â€” never hardcode pixel offsets.
*/
@media (max-width: 900px) {
  :root {
    --nav-height: 64px;
  }

  /* Slide-in full-screen menu */
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: rgba(241, 248, 233, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px 20px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    list-style: none;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    /* touch target */
    display: flex;
    align-items: center;
  }

  .nav-links li a.active::after {
    display: none;
  }

  /* Show hamburger, keep nav-right-actions icons visible */
  .hamburger {
    display: flex;
  }

  .nav-right-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }

  .nav-logo img {
    height: 46px !important;
    max-width: 150px !important;
    object-fit: contain !important;
  }

  .nav-search-btn,
  .nav-auth-btn,
  .nav-user-avatar {
    min-width: 40px;
    min-height: 40px;
  }

  /* Hero starts below the fixed header */
  .hero {
    min-height: 75vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-logo-script {
    font-size: clamp(3rem, 11vw, 4.5rem) !important;
    padding-right: 0 !important;
    text-align: center;
  }

  .hero-ornament {
    margin: 14px auto !important;
    width: 95% !important;
  }

  .hero-logo-serif {
    font-size: clamp(0.85rem, 3.2vw, 1.1rem) !important;
    letter-spacing: 4px !important;
  }

  .hero-tagline {
    font-size: clamp(1rem, 4vw, 1.25rem) !important;
    letter-spacing: 2px !important;
    padding: 0 12px;
  }

  .categories-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Tablet + landscape phones: auto-fit columns (≈3 at 768px, 3–4 in landscape).
     Portrait phones (≤600px) are pinned to 2 columns in the
     "MOBILE PORTRAIT PRODUCT GRID" block at the end of this file. */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }

  /* Portrait-friendly image box instead of a fixed landscape-ish height */
  .product-card-img {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .section {
    padding: 40px 0;
  }

  .modal-content {
    grid-template-columns: 1fr;
  }

  .modal {
    margin: 12px auto;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
  }

  .modal-details {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Account page mobile: reduce card padding so content has room */
  .account-card {
    padding: 20px 16px;
  }

  .account-header-row h2 {
    font-size: 1.3rem;
  }

  /* Ensure account content scrolls above the fixed mobile bottom nav */
  .account-container {
    padding-bottom: 80px;
  }

  /* Address form: improve tap targets for inputs on mobile */
  #addressFormContainer input,
  #addressFormContainer select,
  #addressFormContainer textarea {
    min-height: 44px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}

@media (max-width: 480px) {
  .nav-logo img {
    height: 42px !important;
    max-width: 130px !important;
  }

  .container {
    padding: 0 14px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  /* Two products per row on portrait phones (was single column) */
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-reset {
    margin-left: 0;
  }

  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    margin: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
    max-height: 92dvh;
  }

  .modal-details {
    padding: 16px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 10px;
  }

  .nav-logo img {
    height: 38px !important;
    max-width: 115px !important;
  }

  .nav-right-actions {
    gap: 2px;
  }

  .mobile-filter-bar {
    padding: 8px 8px;
    gap: 6px;
  }

  .mobile-filter-trigger {
    padding: 6px 8px;
    font-size: 0.78rem;
    gap: 4px;
  }

  .mobile-sort-select {
    padding: 6px 4px;
    font-size: 0.78rem;
  }

  .mobile-product-count {
    display: none;
  }
}

/* â•â•â• SCROLLBAR â•â•â• */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-text);
}

/* â•â•â• UTILITY â•â•â• */
.hidden {
  display: none !important;
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 16px;
}

.mt-4 {
  margin-top: 32px;
}

/* â•â•â• TOAST NOTIFICATIONS â•â•â• */
.toast-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-text);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.4s ease both;
  min-width: 240px;
}

.toast.toast-out {
  animation: toastOut 0.3s ease both;
}

.toast.success {
  border-left: 4px solid #43A047;
}

.toast.info {
  border-left: 4px solid #1E88E5;
}

.toast.warning {
  border-left: 4px solid #FB8C00;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(80px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(80px);
  }
}

/* â•â•â• ADD TO CART BUTTON (Product Card) â•â•â• */
.product-card-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  border-top: 1px solid var(--border);
  background: var(--cream);
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  cursor: pointer;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.product-card-cart-btn:hover {
  background: var(--maroon);
  color: white;
}

/* â•â•â• CART PAGE â•â•â• */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.cart-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-items-count {
  font-weight: 700;
  color: var(--dark-text);
  font-size: 1rem;
}

.cart-clear-btn {
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid #ef5350;
  color: #ef5350;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cart-clear-btn:hover {
  background: #ef5350;
  color: white;
}

.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  transition: var(--transition);
}

.cart-item:hover {
  box-shadow: var(--shadow-md);
}

.cart-item-image {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.7rem;
  color: white;
  text-align: center;
  padding: 8px;
  overflow: hidden;
}

.cart-item-image span {
  line-height: 1.2;
}

.cart-item-details {
  min-width: 0;
}

.cart-item-type {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold);
  margin-bottom: 2px;
}

.cart-item-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 4px;
}

.cart-item-variant {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted-text);
}

.cart-item-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.cart-item-price-mobile {
  display: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--maroon);
  margin-top: 4px;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-text);
  cursor: pointer;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--maroon);
  color: white;
}

.qty-value {
  width: 40px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark-text);
}

.cart-item-price {
  font-weight: 600;
  color: var(--body-text);
  font-size: 0.9rem;
  white-space: nowrap;
}

.cart-item-total {
  font-weight: 700;
  color: var(--dark-text);
  font-size: 1rem;
  white-space: nowrap;
}

.cart-item-remove {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--muted-text);
  cursor: pointer;
  transition: var(--transition);
}

.cart-item-remove:hover {
  background: #ffebee;
  color: #ef5350;
}

.cart-empty {
  text-align: center;
  padding: 80px 24px;
}

.cart-empty-icon {
  margin-bottom: 16px;
}

.cart-empty h3 {
  font-size: 1.4rem;
  color: var(--dark-text);
  margin-bottom: 8px;
}

.cart-empty p {
  color: var(--muted-text);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* â•â•â• BILLING SUMMARY â•â•â• */
.billing-summary {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}

.billing-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--maroon-deep), var(--gold-dark));
  color: white;
}

.billing-header h3 {
  color: white;
  font-size: 1.1rem;
  margin: 0;
}

.billing-coupon {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(102, 187, 106, 0.05);
}

.coupon-input-wrap {
  display: flex;
  gap: 8px;
}

.coupon-input-wrap input {
  flex: 1;
  padding: 8px 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--card-bg);
  color: var(--dark-text);
  font-family: inherit;
}

.coupon-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--gold-dark);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.coupon-note {
  display: block;
  font-size: 0.78rem;
  color: var(--gold-dark);
  margin-top: 8px;
  font-weight: 600;
}

.billing-rows {
  padding: 20px 24px;
}

.billing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--body-text);
}

.billing-row.discount span:last-child {
  color: #43A047;
  font-weight: 600;
}

.billing-row.total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-text);
  padding-top: 16px;
}

.billing-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.free-delivery {
  color: #43A047;
  font-weight: 700;
}

.billing-free-note {
  font-size: 0.78rem;
  color: var(--gold-dark);
  padding: 4px 0 8px;
}

.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: calc(100% - 48px);
  margin: 0 24px 16px;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: #25D366;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  border: none;
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  background: #20BD5A;
}

.billing-secure {
  text-align: center;
  padding: 12px 24px 20px;
  font-size: 0.78rem;
  color: var(--muted-text);
}

/* â•â•â• WISHLIST ENHANCEMENTS â•â•â• */
.wishlist-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.wishlist-select-count {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark-text);
}

.wishlist-action-btn {
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.wishlist-action-btn.move-selected {
  background: var(--maroon);
  color: white;
}

.wishlist-action-btn.move-selected:hover {
  background: var(--gold-dark);
}

.wishlist-action-btn.move-all {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold-dark);
}

.wishlist-action-btn.move-all:hover {
  background: var(--gold);
  color: white;
}

.wishlist-card-wrap {
  position: relative;
}

.wishlist-checkbox-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
}

.wishlist-checkbox {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: var(--gold-dark);
  border-radius: 4px;
}

.wishlist-card-actions {
  display: flex;
  gap: 8px;
  padding: 0 20px 16px;
}

.wishlist-card-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.wishlist-card-btn.move {
  background: var(--maroon);
  color: white;
}

.wishlist-card-btn.move:hover {
  background: var(--gold-dark);
}

.wishlist-card-btn.remove {
  background: #ffebee;
  color: #ef5350;
}

.wishlist-card-btn.remove:hover {
  background: #ef5350;
  color: white;
}

/* â•â•â• (legacy floating-leaves removed â€” replaced by hero-petals & section-leaves) â•â•â• */

/* â•â•â• NAV CART BADGE â•â•â• */
.nav-cart-badge {
  background: var(--gold-dark);
  color: white;
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  font-weight: 700;
}

/* â•â•â• RESPONSIVE (New components) â•â•â• */
@media (max-width: 1024px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .billing-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 70px 1fr;
    gap: 12px;
    padding: 16px;
    position: relative;
  }

  .cart-item-image {
    width: 70px !important;
    height: 70px !important;
  }

  .cart-item-price,
  .cart-item-total {
    display: none;
  }

  .cart-item-price-mobile {
    display: block;
  }

  .cart-item-quantity {
    grid-column: 2;
    margin-top: 8px;
    justify-self: start;
  }

  .cart-item-remove {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .toast-container {
    right: 12px;
    left: 12px;
  }

  .toast {
    min-width: auto;
  }

  .wishlist-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .wishlist-action-btn {
    text-align: center;
  }

  .filters-row {
    flex-wrap: wrap;
  }

  .filter-select {
    min-width: 120px;
  }
}

.cart-address-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

@media (max-width: 576px) {
  .cart-address-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cart-address-flex .btn-secondary {
    align-self: flex-start;
  }
}

/* â•â•â• SEARCH OVERLAY â•â•â• */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.search-bar {
  width: 90%;
  max-width: 640px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.search-input-wrap svg {
  flex-shrink: 0;
  color: var(--muted-text);
}

.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  color: var(--dark-text);
}

.search-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted-text);
  padding: 0 4px;
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-result-item:hover {
  background: var(--cream);
}

.search-result-color {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.search-result-name {
  font-weight: 600;
  color: var(--dark-text);
  font-size: 0.92rem;
}

.search-result-meta {
  font-size: 0.8rem;
  color: var(--muted-text);
  margin-top: 2px;
}

.search-no-result {
  padding: 32px;
  text-align: center;
  color: var(--muted-text);
}

/* â•â•â• NAV SEARCH & MOBILE â•â•â• */
.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--dark-text);
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.nav-search-btn:hover {
  background: var(--accent);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-text);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* â•â•â• SCROLL TO TOP â•â•â• */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-dark);
  color: white;
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.scroll-to-top:hover {
  background: var(--maroon);
}

/* â•â•â• SKELETON LOADER â•â•â• */
.skeleton-page {
  min-height: 80vh;
}

.skeleton-hero {
  height: 300px;
  background: var(--border);
  border-radius: var(--radius-lg);
  margin: 20px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 0 20px;
}

.skeleton-card {
  height: 320px;
  background: var(--border);
  border-radius: var(--radius-lg);
}

.shimmer {
  background: linear-gradient(90deg, var(--border) 25%, rgba(255, 255, 255, 0.4) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* â•â•â• STAR RATINGS â•â•â• */
.product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0;
}

.product-card-rating svg {
  display: block;
}

.rating-count {
  font-size: 0.75rem;
  color: var(--muted-text);
}

.modal-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.modal-rating svg {
  display: block;
}

.modal-rating span {
  font-size: 0.85rem;
  color: var(--muted-text);
}

/* â•â•â• PRODUCT CARD ACTIONS â•â•â• */
.product-card-actions {
  display: flex;
  border-top: 1px solid var(--border);
}

.product-card-cart-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gold-dark);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.product-card-cart-btn:hover {
  background: var(--gold-dark);
  color: white;
}

.product-card-cart-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-card-cart-btn svg {
  width: 16px;
  height: 16px;
}

.product-card-quick-btn {
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--gold-dark);
  transition: var(--transition);
}

.product-card-quick-btn:hover {
  background: #FEF3C7;
  color: #D97706;
}

.product-card-quick-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* â•â•â• OUT OF STOCK BADGE â•â•â• */
.stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stock-badge.out {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

/* â•â•â• ENHANCED FILTERS â•â•â• */
.filters-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
}

.filters-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filters-row label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.filter-select {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--dark-text);
  background: var(--cream);
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--gold);
  outline: none;
}

.filter-toggle-label {
  display: flex !important;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem !important;
  cursor: pointer;
}

.filter-toggle-label input {
  accent-color: var(--gold-dark);
}

.filter-count {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--muted-text);
  font-weight: 600;
}

.color-filter-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.color-filter-dot:hover,
.color-filter-dot.active {
  border-color: var(--gold-dark);
  transform: scale(1.15);
}

.color-filter-dot.color-all {
  background: conic-gradient(red, orange, yellow, green, blue, purple, red) !important;
  font-size: 0;
}

/* ─── TWO-TIER TAXONOMY SUBCATEGORY ROW ─── */
.filters-subcat-row {
  padding: 8px 12px;
  background: rgba(198, 156, 78, 0.05);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  margin-top: 2px;
}

.subcat-chip {
  padding: 5px 14px;
  font-size: 0.78rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--body-text);
  cursor: pointer;
  transition: var(--transition);
}

.subcat-chip:hover,
.subcat-chip.active {
  background: var(--primary-color, #24402E);
  color: white;
  border-color: var(--primary-color, #24402E);
}

/* ─── MOBILE FILTER BAR & DRAWER ─── */
.mobile-filter-bar {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.mobile-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--primary-color, #24402E);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
  white-space: nowrap;
}

.mobile-filter-badge {
  background: var(--gold);
  color: var(--dark-text);
  font-size: 0.72rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-sort-wrapper {
  flex: 1;
  min-width: 0;
}

.mobile-sort-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--dark-text);
  font-size: 0.82rem;
  min-height: 40px;
  font-family: inherit;
}

.mobile-product-count {
  font-size: 0.75rem;
  color: var(--muted-text);
  font-weight: 600;
  white-space: nowrap;
}

.mobile-filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-filter-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-filter-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: var(--surface, #ffffff);
  border-radius: 20px 20px 0 0;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-filter-drawer.open {
  transform: translateY(0);
}

.mobile-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-filter-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--dark-text);
  font-family: 'Playfair Display', serif;
}

.mobile-filter-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--dark-text);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-filter-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mfilter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mfilter-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark-text);
}

.mfilter-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--dark-text);
  font-size: 0.9rem;
  min-height: 44px;
  font-family: inherit;
}

.mfilter-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mobile-filter-footer {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
}

body.drawer-scroll-locked,
body.admin-scroll-locked {
  overflow: hidden !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   ADMIN CATALOG MOBILE CARDS
   ═══════════════════════════════════════════════════════════════════════ */
.admin-products-mobile-cards {
  display: none;
}

.admin-mobile-product-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.admin-mpc-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.admin-mpc-img-wrap {
  width: 64px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream);
  border: 1px solid var(--border);
}

.admin-mpc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-mpc-info {
  flex: 1;
  min-width: 0;
}

.admin-mpc-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark-text);
  line-height: 1.3;
  margin-bottom: 2px;
}

.admin-mpc-taxonomy {
  font-size: 0.78rem;
  color: var(--primary-color, #24402E);
  font-weight: 600;
}

.admin-mpc-subcat {
  font-size: 0.72rem;
  color: var(--muted-text);
}

.admin-mpc-price {
  margin-top: 6px;
  font-size: 0.95rem;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.admin-mpc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.admin-mpc-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 10px;
}

/* ═══════════════════════════════════════════════════════════════════════
   ADMIN BRAND & MOBILE HEADER ALIGNMENT
   ═══════════════════════════════════════════════════════════════════════ */
.admin-header-logo {
  height: 34px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.admin-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.admin-brand-logo-img {
  height: 36px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.admin-brand-logo-text {
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  opacity: 0.85;
  display: inline-block;
  white-space: nowrap;
}

/* â•â•â• CART VARIANT SWITCHER â•â•â• */
.cart-variant-swatches {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.cart-variant-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

.cart-variant-dot:hover {
  transform: scale(1.2);
}

.cart-variant-dot.active {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--gold-dark);
}

/* â•â•â• MODAL EXTRAS â•â•â• */
.modal-qty {
  margin-top: 16px;
}

.modal-qty h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.modal-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.modal-qty-stepper .qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-qty-stepper .qty-btn:hover {
  background: var(--accent);
}

.modal-qty-stepper span {
  width: 44px;
  text-align: center;
  font-weight: 600;
}

.modal-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.modal-share span {
  font-size: 0.82rem;
  color: var(--muted-text);
  font-weight: 600;
}

.modal-share button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--dark-text);
  transition: var(--transition);
}

.modal-share button:hover {
  background: var(--cream);
  border-color: var(--gold);
}

.modal-related {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.modal-related h4 {
  font-size: 1rem;
  margin-bottom: 14px;
}

.modal-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.modal-related-card {
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.modal-related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.modal-related-img {
  height: 80px;
}

.modal-related-name {
  padding: 8px 8px 2px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-related-price {
  padding: 0 8px 8px;
  font-size: 0.75rem;
  color: var(--gold-dark);
  font-weight: 600;
}

@media (max-width: 600px) {
  .modal-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* â•â•â• ORDER CONFIRMATION â•â•â• */
.order-confirm-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
}

.order-confirm-icon {
  margin-bottom: 20px;
}

.order-confirm-card h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.order-confirm-id {
  font-size: 0.9rem;
  color: var(--muted-text);
  margin-bottom: 28px;
}

.order-confirm-details {
  text-align: left;
  margin-bottom: 24px;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.order-detail-row span {
  color: var(--muted-text);
}

.order-detail-row strong {
  color: var(--dark-text);
  text-align: right;
  max-width: 60%;
}

.order-detail-row.total {
  border-bottom: none;
  padding-top: 16px;
}

.order-detail-row.total strong {
  color: var(--gold-dark);
  font-size: 1.1rem;
}

.order-items-summary {
  text-align: left;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
}

.order-items-summary h4 {
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.85rem;
}

.order-item-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.order-item-row span:last-child {
  margin-left: auto;
  font-weight: 600;
  color: var(--gold-dark);
}

.order-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   AUTH MODAL SYSTEM â€” Phase 2
   All modals: authModal, otpModal, forgotPasswordModal
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€â”€ Overlay â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(36, 64, 46, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* â”€â”€â”€ Modal Card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.auth-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(36, 64, 46, 0.22);
  padding: 36px 36px 32px;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  opacity: 0;
}

.auth-modal-overlay.active .auth-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.auth-modal-sm {
  max-width: 380px;
}

/* â”€â”€â”€ Close Button â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  color: var(--muted-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.auth-modal-close:hover {
  background: var(--maroon);
  color: white;
  border-color: var(--maroon);
}

/* â”€â”€â”€ Header / Logo â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.auth-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-modal-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}

.auth-logo-script {
  font-family: 'Great Vibes', cursive;
  font-size: 2.4rem;
  color: var(--dark-text);
  line-height: 0.85;
  padding-right: 10px;
}

.auth-logo-serif {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.6rem;
  color: var(--dark-text);
  letter-spacing: 3px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
}

.auth-modal-tagline {
  font-size: 0.88rem;
  color: var(--muted-text);
  margin-top: 6px;
}

/* â”€â”€â”€ Tabs â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.auth-tabs {
  display: flex;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--cream);
}

.auth-tab {
  flex: 1;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted-text);
  transition: var(--transition);
  font-family: inherit;
}

.auth-tab.active {
  background: var(--maroon);
  color: white;
}

.auth-tab:hover:not(.active) {
  background: var(--border);
  color: var(--dark-text);
}

/* â”€â”€â”€ Google Button â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-xl);
  background: white;
  border: 1.5px solid #DADCE0;
  font-size: 0.93rem;
  font-weight: 600;
  color: #3C4043;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.auth-google-btn:hover {
  background: #F8F9FA;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.auth-google-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-social-row {
  margin-bottom: 4px;
}

/* â”€â”€â”€ OR Divider â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.auth-divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted-text);
  font-size: 0.8rem;
}

.auth-divider-or::before,
.auth-divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* â”€â”€â”€ Form Fields â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.auth-field {
  margin-bottom: 16px;
}

.auth-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark-text);
  background: white;
  transition: border-color 0.2s ease;
  outline: none;
}

.auth-input:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(122, 150, 120, 0.15);
}

.auth-input::placeholder {
  color: var(--muted-text);
}

/* Phone with +91 prefix */
.auth-phone-prefix-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}

.auth-phone-prefix-wrap:focus-within {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(122, 150, 120, 0.15);
}

.auth-phone-prefix {
  padding: 12px 12px;
  background: var(--cream);
  border-right: 1.5px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-text);
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.auth-input-phone {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
  flex: 1;
}

.auth-input-phone:focus {
  box-shadow: none !important;
}

/* Password show/hide */
.auth-input-wrap {
  position: relative;
}

.auth-input-wrap .auth-input {
  padding-right: 44px;
}

.auth-toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted-text);
  padding: 4px;
  line-height: 1;
}

.auth-toggle-pw:hover {
  color: var(--dark-text);
}

/* â”€â”€â”€ Error Messages â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.auth-error {
  font-size: 0.8rem;
  color: #D32F2F;
  margin-top: 5px;
  min-height: 18px;
  line-height: 1.4;
}

.auth-error-global {
  margin-top: 10px;
  padding: 10px 14px;
  background: #FEF2F2;
  border-radius: var(--radius-sm);
  border: 1px solid #FECACA;
}

.auth-error-global:empty {
  display: none;
}

/* â”€â”€â”€ Submit Button â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.auth-submit-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.auth-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 99, 72, 0.35);
}

.auth-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* â”€â”€â”€ Spinner â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.auth-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
}

@keyframes authSpin {
  to {
    transform: rotate(360deg);
  }
}

/* â”€â”€â”€ Footer / Alt Rows â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.auth-alt-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.87rem;
  color: var(--muted-text);
}

.auth-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s;
}

.auth-link:hover {
  color: var(--maroon);
}

.auth-forgot-row {
  text-align: right;
  margin-bottom: 4px;
}

/* â”€â”€â”€ Phone Login Button â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.auth-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--radius-xl);
  background: var(--cream);
  border: 1.5px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-text);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  margin-top: 12px;
}

.auth-phone-btn:hover {
  border-color: var(--maroon);
  color: var(--maroon);
}

/* â”€â”€â”€ OTP Input â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.otp-input {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 10px;
  padding: 16px !important;
}

.otp-sent-notice {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted-text);
  margin-bottom: 24px;
  padding: 12px 16px;
  background: rgba(102, 187, 106, 0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(102, 187, 106, 0.2);
}

/* â”€â”€â”€ Forgot Password â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.forgot-desc {
  font-size: 0.9rem;
  color: var(--muted-text);
  line-height: 1.6;
  margin-bottom: 24px;
  text-align: center;
}

.forgot-success-icon {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 16px;
}

.forgot-success-title {
  font-size: 1.4rem;
  text-align: center;
  color: var(--dark-text);
  margin-bottom: 10px;
}

.forgot-success-desc {
  font-size: 0.9rem;
  color: var(--muted-text);
  text-align: center;
  line-height: 1.6;
}

/* â”€â”€â”€ Navbar Auth State â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.nav-auth-btn {
  padding: 8px 18px;
  border-radius: var(--radius-xl);
  background: var(--maroon);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.nav-auth-btn:hover {
  background: var(--maroon-deep);
  transform: translateY(-1px);
}

.nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* â”€â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 480px) {
  .auth-modal {
    padding: 24px 20px 20px;
  }

  .auth-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .auth-modal {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 95vh;
    max-height: 95dvh;
    /* dynamic viewport height for mobile browsers with address bar */
    overflow-y: auto;
    max-width: 100%;
  }

  .otp-input {
    letter-spacing: 6px;
    font-size: 1.4rem;
  }
}

/* FIX 8.1: Short-height mobile screens (iPhone SE, < 700px height).
   Ensure auth modal is scrollable and all buttons remain reachable. */
@media (max-height: 700px) {
  .auth-modal {
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
  }

  /* Tighten spacing to fit more content in viewport */
  .auth-modal-header {
    margin-bottom: 12px;
  }

  .auth-modal-header img {
    height: 40px !important;
  }

  .auth-modal-tagline {
    display: none;
  }

  /* hide tagline on very short screens */
  .auth-field {
    margin-bottom: 10px;
  }

  .auth-tabs {
    margin-bottom: 14px;
  }

  .auth-divider-or {
    margin: 10px 0;
  }

  .auth-alt-row {
    margin-top: 12px;
  }

  .auth-phone-btn {
    margin-top: 8px;
  }
}


/* ─────────────────────────────────────────────────────────────────────────────────────────────────────────── 
   ADMIN PORTAL STYLES
   Integrated with PSH Botanical Sage & Gold Design System
   ─────────────────────────────────────────────────────────────────────────────────────────────────────────── */

/* Admin Shell Layout */
.admin-shell {
  display: flex;
  min-height: 100vh;
  margin-top: 0;
  background: var(--cream);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* â”€â”€â”€ Mobile Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1010;
  height: 60px;
  background: rgba(241, 248, 233, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
}

.admin-mobile-header .admin-logo-label {
  color: var(--dark-text);
  opacity: 0.75;
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 2px;
  margin-top: 2px;
}

.admin-menu-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-text);
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.admin-mobile-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

/* â”€â”€â”€ Sidebar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1020;
  background: var(--dark-text);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1015;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
}

.admin-sidebar-close {
  display: none;
  color: rgba(255, 255, 255, 0.5);
}

.admin-sidebar-brand {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-logo-script {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: var(--gold-light);
  line-height: 0.9;
}

.admin-logo-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.55rem;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  display: block;
  margin-top: 4px;
}

.admin-sidebar-user {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.admin-user-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.admin-user-role {
  font-size: 0.75rem;
  color: var(--gold-light);
  margin-top: 2px;
}

/* â”€â”€â”€ Sidebar Nav â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-sidebar-nav {
  padding: 16px 12px;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.2s ease;
  text-decoration: none;
  margin-bottom: 2px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100;
  font-family: inherit;
  width: 100%;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
}

.admin-nav-item.active {
  background: rgba(198, 156, 78, 0.15);
  color: var(--gold-light);
  font-weight: 600;
}

.admin-nav-item.active svg {
  stroke: var(--gold-light);
}

.admin-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 12px 8px;
}

.admin-nav-logout {
  color: rgba(255, 255, 255, 0.45);
}

.admin-nav-logout:hover {
  color: #EF5350;
  background: rgba(239, 83, 80, 0.1);
}

/* â”€â”€â”€ Main Content â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-main {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  padding: 32px 40px 60px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-content-area {
  max-width: 1200px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  box-sizing: border-box;
}

/* â”€â”€â”€ Page Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-page-header h1 {
  font-size: 1.8rem;
  color: var(--dark-text);
  margin: 0;
}

.admin-page-header p {
  color: var(--muted-text);
  font-size: 0.92rem;
  width: 100%;
  margin-top: -4px;
}

/* â”€â”€â”€ Stats Grid (Dashboard) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-text);
  font-family: 'Playfair Display', serif;
}

.admin-stat-label {
  font-size: 0.8rem;
  color: var(--muted-text);
  margin-top: 2px;
}

/* â”€â”€â”€ Dashboard Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  min-width: 0;
}

.admin-dashboard-orders-alerts {
  grid-template-columns: 1.5fr 1fr;
}

/* â”€â”€â”€ Card â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.admin-card-header h3 {
  font-size: 1.1rem;
  margin: 0;
}

.admin-link {
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: none;
}

.admin-link:hover {
  color: var(--maroon);
}

/* â”€â”€â”€ Tables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted-text);
  background: rgba(122, 150, 120, 0.04);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.admin-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(209, 222, 211, 0.5);
  font-size: 0.88rem;
  color: var(--body-text);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: rgba(122, 150, 120, 0.03);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-td-mono {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  font-size: 0.82rem;
}

.admin-td-bold {
  font-weight: 600;
  color: var(--dark-text);
}

.admin-td-actions {
  display: flex;
  gap: 6px;
}

.admin-table-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-table-thumb-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--maroon-light), var(--border));
}

/* â”€â”€â”€ Badges â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
  background: color-mix(in srgb, var(--badge-color) 12%, transparent);
  color: var(--badge-color);
  letter-spacing: 0.3px;
}

/* â”€â”€â”€ Action Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-text);
  background: var(--cream);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.admin-action-btn:hover {
  color: var(--dark-text);
  background: var(--border);
}

.admin-action-danger:hover {
  color: #E53935;
  background: rgba(229, 57, 53, 0.08);
  border-color: rgba(229, 57, 53, 0.2);
}

/* â”€â”€â”€ Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.admin-btn-primary {
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  color: white;
  box-shadow: 0 2px 8px rgba(74, 99, 72, 0.25);
}

.admin-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(74, 99, 72, 0.35);
}

.admin-btn-ghost {
  background: transparent;
  color: var(--body-text);
  border: 1px solid var(--border);
}

.admin-btn-ghost:hover {
  background: var(--cream);
}

/* â”€â”€â”€ Toolbar (Search + Filters) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex: 1;
  min-width: 200px;
}

.admin-search-box svg {
  color: var(--muted-text);
  flex-shrink: 0;
}

.admin-search-box input {
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--dark-text);
  width: 100%;
}

.admin-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-chip {
  padding: 7px 16px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--body-text);
  cursor: pointer;
  transition: var(--transition);
}

.admin-chip:hover,
.admin-chip.active {
  background: var(--maroon);
  color: white;
  border-color: var(--maroon);
}

/* â”€â”€â”€ Quick Actions â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-quick-actions {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-quick-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--body-text);
  background: var(--cream);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.admin-quick-btn:hover {
  background: var(--maroon);
  color: white;
  border-color: var(--maroon);
  transform: translateX(4px);
}

.admin-quick-btn:hover svg {
  stroke: white;
}

/* â”€â”€â”€ Empty States â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-empty-state {
  padding: 60px 24px;
  text-align: center;
  color: var(--muted-text);
  font-size: 0.95rem;
}

.admin-empty-mini {
  padding: 32px 24px;
  text-align: center;
  color: var(--muted-text);
  font-size: 0.88rem;
}

/* â”€â”€â”€ Modals â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(36, 64, 46, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.admin-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.admin-modal {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.admin-modal-overlay.active .admin-modal {
  transform: translateY(0);
}

.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}

.admin-modal-header h2 {
  font-size: 1.3rem;
  margin: 0;
}

.admin-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--body-text);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.admin-modal-close:hover {
  background: var(--maroon);
  color: white;
}

.admin-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 28px;
  border-top: 1px solid var(--border);
}

/* â”€â”€â”€ Forms â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 24px 28px;
}

.admin-form-full {
  grid-column: span 2;
}

.admin-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--body-text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--dark-text);
  background: var(--card-bg);
  transition: border-color 0.2s;
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 156, 78, 0.1);
}

.admin-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--body-text);
  cursor: pointer;
}

.admin-checkbox input[type="checkbox"] {
  accent-color: var(--maroon);
  width: 16px;
  height: 16px;
}

/* â”€â”€â”€ Image Upload â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-image-upload-area {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.admin-uploaded-images {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-upload-thumb {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border);
}

.admin-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-upload-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(229, 57, 53, 0.9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
}

.admin-upload-main-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: var(--gold);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.admin-upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted-text);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  min-width: 160px;
  flex: 1;
}

.admin-upload-dropzone:hover {
  border-color: var(--gold);
  background: rgba(198, 156, 78, 0.04);
}

.admin-upload-dropzone span {
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-upload-dropzone small {
  font-size: 0.75rem;
}

/* â”€â”€â”€ Upload Progress â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-upload-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  margin-top: 8px;
}

.admin-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.admin-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--maroon), var(--gold));
  border-radius: 6px;
  transition: width 0.3s ease;
}

.admin-upload-progress span {
  font-size: 0.8rem;
  color: var(--muted-text);
  white-space: nowrap;
}

/* â”€â”€â”€ Order Detail Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
}

.admin-order-detail-grid div {
  font-size: 0.9rem;
}

.admin-notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-note-item {
  padding: 12px 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
}

.admin-note-item small {
  color: var(--muted-text);
  font-size: 0.75rem;
}

.admin-note-item p {
  margin-top: 4px;
  font-size: 0.88rem;
}

/* â”€â”€â”€ Customer Stats â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-customer-stats {
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 20px;
  background: var(--cream);
  border-radius: var(--radius-sm);
}

.admin-mini-stat {
  text-align: center;
}

.admin-mini-stat strong {
  display: block;
  font-size: 1.6rem;
  font-family: 'Playfair Display', serif;
  color: var(--dark-text);
}

.admin-mini-stat span {
  font-size: 0.78rem;
  color: var(--muted-text);
}

/* â”€â”€â”€ Media Library Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.admin-media-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.admin-media-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.admin-media-img {
  height: 160px;
  overflow: hidden;
  background: var(--cream);
}

.admin-media-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-media-info {
  padding: 12px 16px;
}

.admin-media-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-media-meta {
  font-size: 0.75rem;
  color: var(--muted-text);
  margin-top: 2px;
}

.admin-media-actions {
  display: flex;
  gap: 6px;
  padding: 0 16px 12px;
}

/* â”€â”€â”€ Spinner â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-loading {
  display: flex;
  justify-content: center;
  padding: 80px 0;
}

.admin-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--maroon);
  border-radius: 50%;
  animation: adminSpin 0.8s linear infinite;
}

@keyframes adminSpin {
  to {
    transform: rotate(360deg);
  }
}

/* â”€â”€â”€ Responsive: Tablet â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1024px) {
  .admin-main {
    padding: 24px 24px 60px;
  }

  .admin-dashboard-grid,
  .admin-dashboard-charts,
  .admin-dashboard-orders-alerts {
    grid-template-columns: 1fr;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

/* â”€â”€â”€ Responsive: Mobile â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
  .admin-mobile-header {
    display: flex;
  }

  .admin-sidebar {
    transform: translateX(-100%);
    z-index: 1020;
    width: 280px;
    max-width: 85vw;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar-overlay.active {
    display: block;
    opacity: 1;
  }

  .admin-sidebar-close {
    display: flex;
  }

  .admin-main {
    margin-left: 0;
    padding: 76px 16px 40px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .admin-page-header {
    margin-bottom: 20px;
    gap: 8px;
  }

  .admin-page-header h1 {
    font-size: 1.4rem;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-full {
    grid-column: span 1;
  }

  .admin-dashboard-grid,
  .admin-dashboard-charts,
  .admin-dashboard-orders-alerts {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
  }

  .admin-stat-card {
    padding: 14px 12px;
    gap: 10px;
    min-width: 0;
  }

  .admin-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .admin-stat-info {
    min-width: 0;
    overflow: hidden;
  }

  .admin-stat-value {
    font-size: 1.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-stat-label {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-modal {
    margin: 8px auto;
    max-height: 95vh;
    max-height: 95dvh;
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
  }

  .admin-modal-header {
    padding: 16px 18px;
  }

  .admin-form-grid {
    padding: 16px 18px;
  }

  .admin-modal-footer {
    padding: 14px 18px;
  }

  .admin-media-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }

  .admin-order-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-customer-stats {
    flex-direction: column;
    gap: 12px;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .admin-search-box {
    width: 100%;
    min-width: 0;
  }

  .admin-filter-chips {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .admin-chip-row {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .admin-card-header {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .admin-card-header h3 {
    font-size: 1rem;
  }
}

/* Extra-narrow phones (320px–380px) Admin support */
@media (max-width: 380px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .admin-main {
    padding: 70px 10px 40px;
  }

  .admin-stat-card {
    padding: 12px 10px;
  }

  .admin-page-header h1 {
    font-size: 1.25rem;
  }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PRODUCT VARIANT UPGRADE STYLES
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€â”€ Gallery Thumbnails & Arrows (Modal) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-main-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--cream);
}

.modal-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: background-image 0.25s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  color: var(--muted-text);
  font-size: 1.1rem;
  padding: 20px;
  text-align: center;
}

.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  color: var(--dark-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 5;
  border: 1px solid var(--border);
}

.modal-nav-btn:hover {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

.modal-prev {
  left: 12px;
}

.modal-next {
  right: 12px;
}

.modal-thumb-strip {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
}

.modal-thumb-strip::-webkit-scrollbar {
  height: 4px;
}

.modal-thumb-strip::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.modal-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  opacity: 0.7;
}

.modal-thumb:hover,
.modal-thumb.active {
  opacity: 1;
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* â”€â”€â”€ Color Swatches & Wishlist (Modal) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.modal-variant-swatch {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.modal-variant-swatch.active {
  box-shadow: 0 0 0 2px var(--gold);
  transform: scale(1.1);
}

.modal-variant-swatch.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
}

.swatch-x {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* â”€â”€â”€ Stock Badge â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-stock-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-stock-badge.in {
  background: rgba(67, 160, 71, 0.1);
  color: #2e7d32;
}

.modal-stock-badge.out {
  background: rgba(229, 57, 53, 0.1);
  color: #c62828;
}

.modal-stock-badge.low {
  background: rgba(251, 140, 0, 0.1);
  color: #ef6c00;
}

/* â”€â”€â”€ Wishlist Details â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.wishlist-variant-chip {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark-text);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.product-card-color-dot.selected-dot {
  box-shadow: 0 0 0 1px white, 0 0 0 2px var(--gold);
}

/* â”€â”€â”€ Admin Color Variant Section â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-variants-section {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 20px;
}

.admin-variants-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-variants-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.admin-variants-hint {
  font-size: 0.78rem;
  color: var(--muted-text);
  margin-top: 2px;
}

.admin-variant-block {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
}

.admin-variant-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(36, 64, 46, 0.04);
  border-bottom: 1px solid var(--border);
}

.admin-variant-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
}

.admin-variant-color-preview {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
}

.admin-variant-img-count {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted-text);
  background: white;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.admin-variant-img-count.warn {
  border-color: rgba(229, 57, 53, 0.3);
  color: #c62828;
  background: rgba(229, 57, 53, 0.03);
}

.admin-variant-block-body {
  padding: 16px;
}

.admin-color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-color-picker-wrap input[type="color"] {
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  background: none;
}

.admin-color-picker-wrap span {
  font-family: monospace;
  font-size: 0.88rem;
  color: var(--body-text);
}

/* â”€â”€â”€ Admin Variant Image Strip â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-variant-images-section {
  margin-top: 14px;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

.admin-variant-images-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.admin-variant-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.admin-variant-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-variant-upload-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 72px;
  height: 72px;
  border: 2px dashed var(--border);
  border-radius: 8px;
  color: var(--muted-text);
  cursor: pointer;
  transition: var(--transition);
}

.admin-variant-upload-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(198, 156, 78, 0.02);
}

.admin-variant-upload-btn svg {
  width: 16px;
  height: 16px;
}

.admin-variant-upload-btn span {
  font-size: 0.65rem;
  font-weight: 700;
}

.admin-variant-count {
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(198, 156, 78, 0.1);
  color: var(--gold-dark);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ─── Gallery Thumbnail Actions & Live Upload States ─── */
.admin-upload-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s ease, transform 0.15s ease;
}

.admin-upload-remove:hover {
  background: #c62828;
  transform: scale(1.1);
}

.admin-upload-remove svg {
  width: 12px;
  height: 12px;
}

.admin-variant-thumb.upload-active {
  background: #1e1e1e;
}

.admin-variant-thumb .upload-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}

.admin-variant-thumb .upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 18, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  z-index: 2;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.admin-variant-thumb.upload-failed .upload-overlay {
  background: rgba(180, 40, 40, 0.85);
}

.admin-variant-thumb.upload-success .upload-overlay {
  background: rgba(36, 120, 50, 0.88);
  animation: pshSuccessFade 0.6s ease 0.4s forwards;
}

@keyframes pshSuccessFade {
  0% { opacity: 1; }
  80% { opacity: 0.8; }
  100% { opacity: 0; pointer-events: none; }
}

.admin-variant-thumb .upload-status-text {
  font-size: 0.62rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  letter-spacing: 0.2px;
  text-align: center;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-variant-thumb .upload-track {
  width: 84%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 5px;
  position: relative;
}

.admin-variant-thumb .upload-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #D4AF37, #FFF2A8, #D4AF37);
  background-size: 200% 100%;
  border-radius: 3px;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pshShimmer 1.8s infinite linear;
}

@keyframes pshShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-variant-thumb .upload-fill {
    animation: none;
  }
}

.admin-variant-thumb .upload-retry-btn {
  margin-top: 4px;
  background: #ffffff;
  color: #c62828;
  border: none;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transition: background 0.15s ease, transform 0.15s ease;
}

.admin-variant-thumb .upload-retry-btn:hover {
  background: #fff3f3;
  transform: scale(1.05);
}


.cart-variant-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.cart-variant-label {
  font-size: 0.78rem;
  color: var(--muted-text);
  font-weight: 600;
}

.cart-variant-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid white;
  box-shadow: 0 0 0 1px var(--border);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

.cart-variant-dot.active {
  box-shadow: 0 0 0 1.5px var(--gold);
  transform: scale(1.1);
}

.cart-variant-dot.unavailable {
  opacity: 0.3;
  cursor: not-allowed;
}

/* â”€â”€â”€ Add Product Modal Tabs & Preview â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-tab-btn {
  border-bottom: 2px solid transparent !important;
  color: var(--muted-text);
  font-size: 0.9rem;
  transition: var(--transition);
}

.admin-tab-btn.active {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}

.admin-modal-form-scroll::-webkit-scrollbar {
  width: 6px;
}

.admin-modal-form-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

#previewViewport {
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  overflow: hidden;
  max-width: 100%;
}

.device-toggles .admin-chip {
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  background: white;
}

.device-toggles .admin-chip.active {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-text);
  line-height: 1.2;
}

.admin-stat-label {
  font-size: 0.8rem;
  color: var(--muted-text);
  font-weight: 600;
}

/* â”€â”€â”€ Responsive Modals & Customer Nav Alignment â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.admin-split-editor {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  flex: 1;
  overflow: hidden;
  height: calc(100% - 130px);
}

.admin-preview-column {
  background: var(--warm-white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* NOTE: Mobile navbar is now handled by the single canonical block above (max-width:900px).
   No nav overrides should appear here. Admin-specific responsive rules only below. */
@media (max-width: 768px) {
  .admin-split-editor {
    grid-template-columns: 1fr !important;
    overflow-y: auto !important;
    height: auto !important;
  }

  .admin-preview-column {
    display: none !important;
    /* Hide preview on mobile layout to avoid squishing form fields */
  }

  #adminProductModalContent {
    height: 95vh !important;
    height: 95dvh !important;
    max-width: calc(100% - 16px) !important;
    width: calc(100% - 16px) !important;
    margin: 8px auto !important;
  }

  .admin-tabs-nav {
    overflow-x: auto !important;
    white-space: nowrap !important;
    display: flex !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 10px !important;
  }

  .admin-tabs-nav::-webkit-scrollbar {
    display: none !important;
  }

  .admin-tab-btn {
    flex-shrink: 0 !important;
    display: inline-block !important;
    padding: 12px 14px !important;
    font-size: 0.85rem !important;
  }

  .admin-form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 16px !important;
  }

  .admin-modal-form-scroll {
    border-right: none !important;
    padding: 16px !important;
  }
}

/* FIX 8.4: Extra-narrow phones (320px–390px) — ensure admin modal is fully usable */
@media (max-width: 400px) {
  .admin-modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
  }

  #adminProductModalContent {
    height: 98vh !important;
    height: 98dvh !important;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 12px 12px 0 0 !important;
    margin: 0 !important;
  }

  .admin-modal-header {
    padding: 14px 16px !important;
  }

  .admin-modal-footer {
    padding: 12px 16px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .admin-modal-footer .admin-btn {
    flex: 1 !important;
    min-width: 0 !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .admin-form-group input,
  .admin-form-group select,
  .admin-form-group textarea {
    font-size: 16px !important;
    /* Prevents iOS Safari zoom on focus */
  }

  .admin-upload-dropzone {
    padding: 20px 12px !important;
    min-width: 0 !important;
  }
}



/* â”€â”€â”€ Luxury Brand Loader (Phase 9) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.brand-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--dark-text, #24402e);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  opacity: 1;
  visibility: visible;
}

.brand-loader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.brand-loader-wrapper {
  text-align: center;
  width: clamp(240px, 40vw, 500px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.brand-signature-container {
  width: 100%;
  height: auto;
}

.pallavi-signature-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.15));
}

.signature-path {
  stroke: #C69C4E;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawSignature 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawSignature {
  to {
    stroke-dashoffset: 0;
  }
}

.brand-subtitle {
  font-family: 'Cormorant Garamond', serif;
  color: #C69C4E;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInSubtitle 2s ease 1s forwards;
  margin-top: -12px;
}

@keyframes fadeInSubtitle {
  to {
    opacity: 0.9;
  }
}

.brand-loader-bar {
  width: 60%;
  height: 2px;
  background: rgba(198, 156, 78, 0.15);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  animation: fadeInSubtitle 2s ease 1.5s forwards;
}

.brand-loader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #C69C4E;
  transform: translateX(-100%);
  animation: fillBar 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes fillBar {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .signature-path {
    stroke-dashoffset: 0;
    animation: none;
  }

  .brand-subtitle,
  .brand-loader-bar {
    opacity: 0.9;
    animation: none;
  }

  .brand-loader-bar-fill {
    animation: fillBarSimple 4s linear infinite;
  }
}

@keyframes fillBarSimple {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

/* â”€â”€â”€ Micro Loading Spinner â”€â”€â”€ */
.loading-spinner-mini {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  animation: adminSpin 0.6s linear infinite;
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PSH PART 1 â€” PREMIUM BILLING SUMMARY & CHECKOUT UI
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Panel wrapper â”€â”€ */
.psh-billing-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--nav-height) + 16px);
}

/* â”€â”€ Heading â”€â”€ */
.psh-billing-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(122, 150, 120, 0.06) 0%, rgba(198, 156, 78, 0.06) 100%);
}

.psh-billing-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-text);
  margin: 0;
}

.psh-billing-item-count {
  font-size: 0.78rem;
  color: var(--muted-text);
  font-weight: 600;
  background: var(--cream);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* â”€â”€ Order items list â”€â”€ */
.psh-order-items-list {
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.psh-order-items-list::-webkit-scrollbar {
  width: 4px;
}

.psh-order-items-list::-webkit-scrollbar-track {
  background: transparent;
}

.psh-order-items-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.psh-order-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(209, 222, 211, 0.5);
  position: relative;
  transition: background 0.2s;
}

.psh-order-item:hover {
  background: rgba(248, 247, 244, 0.8);
}

.psh-order-item:last-child {
  border-bottom: none;
}

/* Product image */
.psh-order-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.psh-order-item-img-fallback {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

/* Info area */
.psh-order-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.psh-order-item-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.psh-order-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--muted-text);
}

.psh-order-item-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.psh-order-item-sku {
  background: var(--cream);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  border: 1px solid var(--border);
  color: var(--muted-text);
}

/* Qty + price row */
.psh-order-item-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  gap: 8px;
  flex-wrap: wrap;
}

.psh-order-item-qty-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 6px;
}

.psh-qty-btn {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--maroon-deep);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
  line-height: 1;
}

.psh-qty-btn:hover {
  background: rgba(122, 150, 120, 0.15);
}

.psh-qty-val {
  font-weight: 700;
  font-size: 0.85rem;
  min-width: 18px;
  text-align: center;
  color: var(--dark-text);
}

.psh-order-item-line-price {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--muted-text);
}

.psh-order-item-line-price strong {
  color: var(--dark-text);
  font-weight: 700;
}

.psh-order-item-mrp {
  color: var(--muted-text);
  font-size: 0.72rem;
}

.psh-order-item-sep {
  opacity: 0.5;
}

/* Remove button */
.psh-order-item-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-text);
  border-radius: 50%;
  transition: all 0.2s;
  opacity: 0;
}

.psh-order-item:hover .psh-order-item-remove {
  opacity: 1;
}

.psh-order-item-remove:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

/* â”€â”€ Coupon section â”€â”€ */
.psh-coupon-section {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 247, 244, 0.5);
}

.psh-coupon-row {
  display: flex;
  gap: 8px;
}

.psh-coupon-input {
  flex: 1;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--card-bg);
  color: var(--dark-text);
  outline: none;
  transition: border 0.2s;
}

.psh-coupon-input:focus {
  border-color: var(--gold);
}

.psh-coupon-input[readonly] {
  color: var(--maroon-deep);
  border-color: var(--maroon);
}

.psh-coupon-btn {
  padding: 9px 18px;
  background: var(--maroon-deep);
  color: white;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.psh-coupon-btn:hover {
  background: var(--maroon);
  transform: translateY(-1px);
}

.psh-coupon-note {
  font-size: 0.72rem;
  color: var(--muted-text);
  margin-top: 6px;
}

/* Available Coupons in Cart */
.psh-available-coupons-wrap {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.psh-available-coupons-heading {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark-text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.psh-available-coupons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.psh-coupon-card {
  border: 1px solid #EAE5D9;
  background: #FFFDF9;
  border-radius: 6px;
  padding: 8px 10px;
  transition: all 0.2s ease;
}

.psh-coupon-card.eligible {
  border-color: #D4AF37;
  background: #FFFDF0;
}

.psh-coupon-card.applied {
  border-color: #2E7D32;
  background: #F1F8E9;
}

.psh-coupon-card.ineligible {
  opacity: 0.7;
}

.psh-coupon-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.psh-coupon-card-code {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  color: #24402E;
  letter-spacing: 0.05em;
}

.psh-coupon-card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #E8F5E9;
  color: #2E7D32;
}

.psh-coupon-card-desc {
  font-size: 0.7rem;
  color: #555;
  line-height: 1.3;
}

.psh-coupon-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.psh-coupon-apply-link {
  background: none;
  border: none;
  color: #C69C4E;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.psh-coupon-apply-link:hover {
  color: #8B1A2B;
}

.psh-coupon-status-applied {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2E7D32;
}

.psh-coupon-status-reason {
  font-size: 0.68rem;
  color: #C62828;
  font-style: italic;
}


/* â”€â”€ Price details â”€â”€ */
.psh-price-details {
  padding: 16px 20px;
}

.psh-price-heading {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.psh-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.87rem;
  color: var(--body-text);
  padding: 5px 0;
}

.psh-price-muted {
  color: var(--muted-text);
}

.psh-price-savings {
  color: #15803d;
  font-weight: 600;
}

.psh-free-badge {
  background: #d1fae5;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #a7f3d0;
}

.psh-free-delivery-hint {
  font-size: 0.72rem;
  color: var(--gold-dark);
  margin-top: 2px;
  margin-bottom: 4px;
  font-weight: 600;
}

.psh-price-taxes {
  color: var(--muted-text);
  font-size: 0.82rem;
}

.psh-tax-inclusive {
  font-style: italic;
  font-size: 0.78rem;
}

.psh-price-divider {
  border-top: 1px dashed var(--border);
  margin: 12px 0;
}

.psh-price-total {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark-text);
  padding: 6px 0 0;
}

.psh-total-savings-note {
  text-align: center;
  font-size: 0.77rem;
  font-weight: 700;
  color: #15803d;
  background: #d1fae5;
  border-radius: 8px;
  padding: 6px 12px;
  margin-top: 10px;
}

/* â”€â”€ WhatsApp CTA â”€â”€ */
.psh-whatsapp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: calc(100% - 32px);
  margin: 0 16px 12px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  position: relative;
  overflow: hidden;
}

.psh-whatsapp-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: rgba(255, 255, 255, 0.12);
  transform: skewX(-20deg);
  transition: left 0.5s;
}

.psh-whatsapp-cta:hover::before {
  left: 150%;
}

.psh-whatsapp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.psh-whatsapp-cta:active {
  transform: translateY(0);
}

.psh-whatsapp-cta:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.psh-cta-price {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.psh-cta-loading span:nth-child(2)::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: adminSpin 0.7s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

/* â”€â”€ Checkout notice â”€â”€ */
.psh-checkout-notice {
  font-size: 0.72rem;
  color: var(--muted-text);
  text-align: center;
  padding: 0 16px 16px;
  line-height: 1.5;
}

/* â”€â”€ Sticky mobile checkout bar â”€â”€ */
.psh-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: white;
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  box-shadow: 0 -4px 20px rgba(36, 64, 46, 0.12);
  align-items: center;
  gap: 12px;
}

.psh-sticky-total {
  flex: 0 0 auto;
}

.psh-sticky-label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted-text);
  font-weight: 600;
}

.psh-sticky-total strong {
  font-size: 1.05rem;
  color: var(--dark-text);
  font-weight: 800;
}

.psh-sticky-cta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.psh-sticky-cta:active {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .psh-sticky-bar {
    display: flex;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    /* Lift above mobile bottom nav */
  }

  .psh-billing-panel {
    position: static;
  }

  /* Add bottom padding so sticky bar doesn't cover content */
  .cart-billing-section {
    padding-bottom: 144px;
  }

  /* 64px nav + ~80px sticky bar */
}

/* â”€â”€ Product card pricing â”€â”€ */
.product-card-price.has-offer {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.product-card-price-actual {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark-text);
}

.product-card-price-mrp {
  font-size: 0.78rem;
  color: var(--muted-text);
  text-decoration: line-through;
}

.product-card-price-badge {
  font-size: 0.68rem;
  font-weight: 800;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid #fde68a;
  letter-spacing: 0.04em;
}

.product-card-offer-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 10px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
  z-index: 2;
}

/* â”€â”€ Product modal pricing â”€â”€ */
.modal-price-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-price-selling {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark-text);
}

.modal-price-mrp {
  font-size: 1rem;
  color: var(--muted-text);
  text-decoration: line-through;
}

.modal-price-savings {
  font-size: 0.78rem;
  font-weight: 700;
  color: #15803d;
  background: #d1fae5;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid #a7f3d0;
}

/* â”€â”€ Order confirmation page â”€â”€ */
.order-confirm-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  text-align: center;
}

.order-confirm-icon {
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(18, 140, 126, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border: 2px solid rgba(37, 211, 102, 0.2);
}

.order-confirm-card h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.order-confirm-subtitle {
  color: var(--body-text);
  line-height: 1.6;
  margin-bottom: 16px;
}

.order-confirm-id {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin-bottom: 24px;
}

.order-confirm-id strong {
  color: var(--dark-text);
  font-family: 'Courier New', monospace;
}

.order-confirm-details {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  margin-bottom: 20px;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.87rem;
}

.order-detail-row:last-child {
  border-bottom: none;
}

.order-detail-row span {
  color: var(--muted-text);
  flex-shrink: 0;
}

.order-detail-row strong {
  color: var(--dark-text);
  text-align: right;
}

.order-confirm-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.8rem;
  color: #92400e;
  text-align: left;
  margin-bottom: 20px;
  line-height: 1.5;
}

.order-items-summary {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  margin-bottom: 24px;
}

.order-items-summary h4 {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin-bottom: 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(209, 222, 211, 0.5);
}

.order-item-row:last-child {
  border-bottom: none;
}

.order-item-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.order-item-row span:nth-child(2) {
  flex: 1;
  color: var(--body-text);
}

.order-item-row span:last-child {
  color: var(--dark-text);
  font-weight: 700;
  flex-shrink: 0;
}

.order-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.order-confirm-actions .btn-primary {
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
  color: white;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.25s;
  cursor: pointer;
}

.order-confirm-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.order-confirm-actions .btn-secondary {
  background: transparent;
  color: var(--body-text);
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1.5px solid var(--border);
  transition: all 0.25s;
  cursor: pointer;
}

.order-confirm-actions .btn-secondary:hover {
  border-color: var(--maroon);
  color: var(--maroon-deep);
}

/* â”€â”€ Admin field hint text â”€â”€ */
.admin-field-hint {
  display: block;
  font-size: 0.7rem;
  color: var(--muted-text);
  font-weight: 400;
  margin-top: 3px;
  font-family: 'Nunito', sans-serif;
  line-height: 1.4;
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PART 2 â€” ORDER LIFECYCLE STYLES
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Order Confirmation: Number Badge â”€â”€ */
.order-confirm-number-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 20px 0;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.order-confirm-number-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--maroon-deep);
  opacity: 0.8;
}

.order-confirm-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--maroon-deep);
  letter-spacing: 0.05em;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CUSTOMER ORDER TRACKING PAGE
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Status row */
.otk-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.otk-status-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.otk-live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted-text);
}

.otk-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #43A047;
  animation: otk-pulse 1.6s ease-in-out infinite;
}

@keyframes otk-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}

/* Cancelled banner */
.otk-cancelled-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #FFF3F3;
  border: 1.5px solid #FFCDD2;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

/* Customer action panel */
.otk-action-card {
  padding: 24px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  text-align: center;
  border: 2px solid transparent;
}

.otk-action-card.attention {
  background: linear-gradient(135deg, #FFF8E1, #FFF3E0);
  border-color: #FFB300;
  box-shadow: 0 4px 20px rgba(255, 179, 0, 0.15);
}

.otk-action-card h3 {
  margin-bottom: 8px;
}

.otk-action-card p {
  color: var(--muted-text);
  margin-bottom: 16px;
}

.otk-shop-note-inline {
  font-style: italic;
  color: var(--body-text);
  margin: 12px 0;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
}

/* Main cards */
.otk-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.otk-card-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--dark-text);
}

.otk-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.otk-detail-row:last-child {
  border-bottom: none;
}

/* Shop note */
.otk-shop-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(135deg, var(--accent-rose), #EFF2F0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.otk-shop-note-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Progress Stepper */
.otk-stepper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  overflow-x: auto;
  padding: 8px 0;
}

.otk-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 60px;
  opacity: 0.4;
}

.otk-step.done,
.otk-step.current {
  opacity: 1;
}

.otk-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.otk-step.done .otk-step-icon {
  background: var(--maroon);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
}

.otk-step.current .otk-step-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  box-shadow: 0 0 0 4px rgba(198, 156, 78, 0.25);
  animation: otk-pulse 2s ease-in-out infinite;
}

.otk-step-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  color: var(--muted-text);
  max-width: 64px;
}

.otk-step.done .otk-step-label,
.otk-step.current .otk-step-label {
  color: var(--dark-text);
}

.otk-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-bottom: 22px;
  min-width: 20px;
}

.otk-step-line.done {
  background: var(--maroon);
}

/* Items */
.otk-items-list {
  margin-bottom: 12px;
}

.otk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.otk-item:last-child {
  border-bottom: none;
}

.otk-item-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.otk-item-info {
  flex: 1;
}

.otk-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-text);
}

.otk-item-meta {
  font-size: 0.75rem;
  color: var(--muted-text);
  margin-top: 2px;
}

.otk-item-qty {
  font-size: 0.85rem;
  color: var(--muted-text);
}

.otk-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-text);
}

/* Totals */
.otk-totals {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.otk-total-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.9rem;
}

.otk-total-row.savings {
  color: #2E7D32;
}

.otk-total-row.grand {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-text);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 8px;
}

.otk-free {
  color: #2E7D32;
  font-weight: 700;
}

/* Payment row */
.otk-payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--body-text);
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ADMIN â€” PART 2 ORDER EDITOR STYLES
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Section blocks in order editor */
.admin-section-block {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.admin-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Admin chip filter row */
.admin-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-chip {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--body-text);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.admin-chip:hover {
  border-color: var(--maroon);
  color: var(--maroon-deep);
}

.admin-chip.active {
  background: var(--maroon);
  color: white;
  border-color: var(--maroon);
  box-shadow: 0 2px 8px rgba(122, 150, 120, 0.35);
}

/* Admin order detail grid */
.admin-order-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  font-size: 0.9rem;
  color: var(--body-text);
}

/* Admin form label */
.admin-form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 6px;
}

/* Admin Audit Timeline */
.admin-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-timeline-event {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.admin-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.admin-timeline-body {
  flex: 1;
}

.admin-timeline-meta {
  font-size: 0.75rem;
  color: var(--muted-text);
  margin-bottom: 4px;
}

.admin-timeline-transition {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.admin-timeline-note {
  font-size: 0.85rem;
  color: var(--body-text);
  background: var(--accent-rose);
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 4px;
}

.admin-timeline-inv {
  font-size: 0.78rem;
  color: #1565C0;
  margin-top: 4px;
}

/* Admin Order Stepper (in editor) */
.order-stepper {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 8px 0;
  gap: 0;
}

.order-stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 56px;
  opacity: 0.3;
}

.order-stepper-step.done,
.order-stepper-step.current {
  opacity: 1;
}

.order-stepper-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.order-stepper-step.done .order-stepper-icon {
  background: var(--maroon);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.order-stepper-step.current .order-stepper-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  box-shadow: 0 0 0 3px rgba(198, 156, 78, 0.3);
}

.order-stepper-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted-text);
  text-align: center;
  max-width: 56px;
}

.order-stepper-step.done .order-stepper-label,
.order-stepper-step.current .order-stepper-label {
  color: var(--dark-text);
}

.order-stepper-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-bottom: 22px;
  min-width: 16px;
}

.order-stepper-step.done+.order-stepper-line {
  background: var(--maroon);
}

/* Admin mono table cell */
.admin-td-mono {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 700;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PART 3 â€” MOBILE UX ENHANCEMENTS
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 768px) {

  /* Prevent horizontal overflow globally */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Category Page Responsive Filters */
  .desktop-filters-bar {
    display: none !important;
  }

  .mobile-filter-bar {
    display: flex !important;
  }

  /* Admin Product Catalog Mobile Cards */
  .admin-table-wrap .admin-table,
  #adminProductsTable .admin-table {
    display: none !important;
  }

  .admin-products-mobile-cards {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }

  /* Product Detail Modal Mobile Responsiveness */
  .modal-main-image-wrap {
    max-height: 42vh;
    aspect-ratio: auto;
    height: 280px;
  }

  .modal-image {
    min-height: 220px;
    height: 100%;
  }

  .modal-details {
    padding: 16px 18px;
    gap: 14px;
  }

  /* Admin Table Responsiveness */
  .admin-table-container,
  .admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table th,
  .admin-table td {
    white-space: nowrap;
    padding: 10px 12px;
  }

  /* Premium Checkout Adjustments */
  .psh-billing-summary-card {
    padding: 16px;
    margin: 8px 0;
    border-radius: 12px;
  }

  .psh-billing-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .psh-billing-item-img {
    width: 100%;
    height: 120px;
    border-radius: 8px;
  }

  .psh-billing-item-details {
    width: 100%;
  }

  /* Tracking Timeline */
  .psh-stepper {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .psh-step {
    width: 100%;
    margin-bottom: 24px;
  }

  .psh-step-line {
    width: 2px;
    height: 100%;
    left: 11px;
    top: 24px;
  }

  .psh-step-content {
    text-align: left;
    padding-left: 32px;
  }

  /* Review Modal Adjustments */
  .modal-content {
    width: 95%;
    padding: 16px;
    margin: 16px auto;
  }

  /* Touch Targets: minimum 44px height for touch safety */
  button,
  .btn-primary,
  .btn-secondary,
  .admin-btn {
    min-height: 44px;
  }

  .qty-btn {
    min-width: 36px;
    min-height: 36px;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
    /* Prevents iOS zoom */
  }
}

/* â•â•â• MOBILE BOTTOM NAV â•â•â• */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(241, 248, 233, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  body:has(.admin-shell),
  .admin-shell ~ footer,
  body.admin-mode {
    padding-bottom: 0 !important;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--muted-text);
    text-decoration: none;
    flex: 1;
    font-size: 0.65rem;
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .mobile-nav-item.active,
  .mobile-nav-item:hover {
    color: var(--maroon);
  }

  .mobile-nav-item svg {
    width: 22px;
    height: 22px;
  }

  .mobile-nav-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--gold-dark);
    color: white;
    font-size: 0.55rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 1.5px solid #fff;
  }

  /* Hide right actions in top bar on mobile */
  .nav-right-actions .nav-search-btn {
    display: none;
  }

  /* Make sure the search overlay stays above everything */
  .search-overlay {
    z-index: 2000;
  }
}

/* -------------------------------------------
   NEW ANIMATIONS & MICRO-INTERACTIONS
   ------------------------------------------- */

/* 1. Saree Fold Loader (Nested Rectangular Folds) */
.brand-loader-overlay {
  background-color: var(--cream) !important;
}

.brand-subtitle {
  color: var(--dark-text) !important;
  font-weight: 600;
  letter-spacing: 4px;
}

.real-saree-loader {
  width: 300px;
  height: 400px;
  perspective: 2000px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.saree-core {
  width: 120px;
  height: 160px;
  position: relative;
  transform-style: preserve-3d;
  /* Animate the core so it scales down slightly as it folds and stays centered visually */
  animation: sareeCoreAnim 6s infinite ease-in-out;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.s-hinge {
  position: absolute;
  transform-style: preserve-3d;
}

.s-panel {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.s-front,
.s-back {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  overflow: hidden;
}

/* Base Texture */
.s-front {
  transform: translateZ(0.5px);
  background-color: #c21545;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><g fill='rgba(212, 175, 55, 0.5)'><path d='M30 15 C33 15 36 22 30 28 C24 22 27 15 30 15 Z'/><path d='M30 45 C33 45 36 38 30 32 C24 38 27 45 30 45 Z'/><path d='M15 30 C15 27 22 24 28 30 C22 36 15 33 15 30 Z'/><path d='M45 30 C45 27 38 24 32 30 C38 36 45 33 45 30 Z'/><circle cx='30' cy='30' r='3' fill='rgba(212, 175, 55, 0.7)'/></g><polygon points='15,13 17,15 15,17 13,15' fill='rgba(212, 175, 55, 0.4)'/><polygon points='45,13 47,15 45,17 43,15' fill='rgba(212, 175, 55, 0.4)'/><polygon points='15,43 17,45 15,47 13,45' fill='rgba(212, 175, 55, 0.4)'/><polygon points='45,43 47,45 45,47 43,45' fill='rgba(212, 175, 55, 0.4)'/></svg>"),
    linear-gradient(135deg, rgba(194, 21, 69, 0.85) 0%, rgba(232, 26, 84, 0.85) 50%, rgba(194, 21, 69, 0.85) 100%);
  background-size: 50px 50px, 100% 100%;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.s-back {
  transform: translateZ(-0.5px);
  background-color: #991035;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><g fill='rgba(212, 175, 55, 0.2)'><path d='M30 15 C33 15 36 22 30 28 C24 22 27 15 30 15 Z'/><path d='M30 45 C33 45 36 38 30 32 C24 38 27 45 30 45 Z'/><path d='M15 30 C15 27 22 24 28 30 C22 36 15 33 15 30 Z'/><path d='M45 30 C45 27 38 24 32 30 C38 36 45 33 45 30 Z'/><circle cx='30' cy='30' r='3' fill='rgba(212, 175, 55, 0.3)'/></g></svg>"),
    linear-gradient(135deg, rgba(153, 16, 53, 0.9) 0%, rgba(179, 20, 65, 0.9) 50%, rgba(153, 16, 53, 0.9) 100%);
  background-size: 50px 50px, 100% 100%;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Borders */
.p-top .s-front {
  border-top: 6px solid #d4af37;
}

.p-bottom .s-front {
  border-bottom: 20px solid #d4af37;
}

/* Pallu */
.p-left .s-front {
  border-left: 4px solid #d4af37;
}

.p-right .s-front {
  border-right: 4px solid #d4af37;
}

/* HINGE POSITIONS */
.h-c {
  inset: 0;
}

.h-top {
  width: 120px;
  height: 80px;
  bottom: 100%;
  left: 0;
  transform-origin: bottom center;
  animation: foldTop 6s infinite ease-in-out;
}

.h-bottom {
  width: 120px;
  height: 80px;
  top: 100%;
  left: 0;
  transform-origin: top center;
  animation: foldBottom 6s infinite ease-in-out;
}

.h-left {
  width: 60px;
  height: 160px;
  right: 100%;
  top: 0;
  transform-origin: right center;
}

.h-right {
  width: 60px;
  height: 160px;
  left: 100%;
  top: 0;
  transform-origin: left center;
}

.h-tl {
  width: 60px;
  height: 80px;
  right: 100%;
  top: 0;
  transform-origin: right center;
}

.h-tr {
  width: 60px;
  height: 80px;
  left: 100%;
  top: 0;
  transform-origin: left center;
}

.h-bl {
  width: 60px;
  height: 80px;
  right: 100%;
  top: 0;
  transform-origin: right center;
}

.h-br {
  width: 60px;
  height: 80px;
  left: 100%;
  top: 0;
  transform-origin: left center;
}

/* ANIMATIONS */
.anim-left {
  animation: foldLeft 6s infinite ease-in-out;
}

.anim-right {
  animation: foldRight 6s infinite ease-in-out;
}

/* 
0-5%: Flat
12%: Left folds
22%: Right folds
32%: Bottom folds
42%: Top folds
(Hold 42-49%)
50%: FF-Right appears, core clips right half
57%: FF-Right folds (Width 60)
60%: FF-Bottom appears, core clips bottom half
67%: FF-Bottom folds (Height 80)
67-85%: Hold fully folded (tiny)
95-100%: Fade out
*/

@keyframes foldLeft {

  0%,
  2% {
    transform: rotateY(0deg);
  }

  8% {
    transform: rotateY(190deg) translateZ(1px);
  }

  10%,
  100% {
    transform: rotateY(179deg) translateZ(1px);
  }
}

@keyframes foldRight {

  0%,
  12% {
    transform: rotateY(0deg);
  }

  18% {
    transform: rotateY(-190deg) translateZ(2px);
  }

  20%,
  100% {
    transform: rotateY(-179deg) translateZ(2px);
  }
}

@keyframes foldBottom {

  0%,
  22% {
    transform: rotateX(0deg);
  }

  28% {
    transform: rotateX(190deg) translateZ(3px);
  }

  30%,
  100% {
    transform: rotateX(179deg) translateZ(3px);
  }
}

@keyframes foldTop {

  0%,
  32% {
    transform: rotateX(0deg);
  }

  38% {
    transform: rotateX(-190deg) translateZ(4px);
  }

  40%,
  100% {
    transform: rotateX(-179deg) translateZ(4px);
  }
}

@keyframes sareeCoreAnim {

  0%,
  2% {
    transform: scale(0.7) translateX(0) translateY(0) rotateX(15deg) rotateZ(-5deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    opacity: 1;
  }

  /* End of Phase 1 */
  40%,
  48% {
    transform: scale(1.1) translateX(0) translateY(0) rotateX(5deg) rotateZ(0deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    opacity: 1;
  }

  /* FF-Right folds (centers horizontally) */
  60%,
  62% {
    transform: scale(1.35) translateX(30px) translateY(0) rotateX(2deg) rotateZ(0deg);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
    opacity: 1;
  }

  /* FF-Bottom folds (centers vertically and adds final bounce scale) */
  72% {
    transform: scale(1.7) translateX(30px) translateY(40px) rotateX(0deg) rotateZ(0deg);
  }

  /* Bounce overshoot */
  74%,
  86% {
    transform: scale(1.6) translateX(30px) translateY(40px) rotateX(0deg) rotateZ(0deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    opacity: 1;
  }

  95%,
  100% {
    transform: scale(1.6) translateX(30px) translateY(40px) rotateX(0deg) rotateZ(0deg);
    opacity: 0;
  }
}

.saree-core {
  animation: sareeCoreAnim 6s infinite ease-in-out, sareeCoreClip 6s infinite step-end;
}

@keyframes sareeCoreClip {

  0%,
  51.9% {
    clip-path: inset(-200px);
  }

  52%,
  63.9% {
    clip-path: inset(0 50% 0 0);
  }

  64%,
  100% {
    clip-path: inset(0 50% 50% 0);
  }
}

/* FAKE FOLDS FOR LEVEL 2 */
.fake-fold {
  position: absolute;
  transform-style: preserve-3d;
  opacity: 0;
}

.fake-fold .s-front,
.fake-fold .s-back {
  border: none !important;
  /* Hide zari borders on inner folds */
}

.ff-right {
  top: 0;
  right: 0;
  width: 60px;
  height: 160px;
  transform-origin: left center;
  animation: foldFFRight 6s infinite ease-in-out;
}

.ff-bottom {
  bottom: 0;
  left: 0;
  width: 60px;
  height: 80px;
  transform-origin: top center;
  animation: foldFFBottom 6s infinite ease-in-out;
}

@keyframes foldFFRight {

  0%,
  51.9% {
    opacity: 0;
    transform: rotateY(0deg);
  }

  52% {
    opacity: 1;
    transform: rotateY(0deg);
  }

  58% {
    opacity: 1;
    transform: rotateY(-190deg) translateZ(5px);
  }

  60%,
  100% {
    opacity: 1;
    transform: rotateY(-179deg) translateZ(5px);
  }
}

@keyframes foldFFBottom {

  0%,
  63.9% {
    opacity: 0;
    transform: rotateX(0deg);
  }

  64% {
    opacity: 1;
    transform: rotateX(0deg);
  }

  70% {
    opacity: 1;
    transform: rotateX(190deg) translateZ(6px);
  }

  72%,
  100% {
    opacity: 1;
    transform: rotateX(179deg) translateZ(6px);
  }
}

/* Shadows inside the folds for realism */
.s-shadow {
  position: absolute;
  inset: 0;
  background: black;
  opacity: 0;
  pointer-events: none;
  transform: translateZ(1px);
}

.anim-left>.s-panel>.s-shadow {
  animation: shadowLeft 6s infinite ease-in-out;
}

@keyframes shadowLeft {

  0%,
  2% {
    opacity: 0;
  }

  6% {
    opacity: 0.5;
  }

  10%,
  100% {
    opacity: 0;
  }
}

.anim-right>.s-panel>.s-shadow {
  animation: shadowRight 6s infinite ease-in-out;
}

@keyframes shadowRight {

  0%,
  12% {
    opacity: 0;
  }

  16% {
    opacity: 0.5;
  }

  20%,
  100% {
    opacity: 0;
  }
}

.h-bottom>.s-panel>.s-shadow {
  animation: shadowBottom 6s infinite ease-in-out;
}

@keyframes shadowBottom {

  0%,
  22% {
    opacity: 0;
  }

  26% {
    opacity: 0.5;
  }

  30%,
  100% {
    opacity: 0;
  }
}

.h-top>.s-panel>.s-shadow {
  animation: shadowTop 6s infinite ease-in-out;
}

@keyframes shadowTop {

  0%,
  32% {
    opacity: 0;
  }

  36% {
    opacity: 0.5;
  }

  40%,
  100% {
    opacity: 0;
  }
}

.ff-right .s-shadow {
  animation: shadowFFRight 6s infinite ease-in-out;
}

@keyframes shadowFFRight {

  0%,
  51.9% {
    opacity: 0;
  }

  56% {
    opacity: 0.5;
  }

  60%,
  100% {
    opacity: 0;
  }
}

.ff-bottom .s-shadow {
  animation: shadowFFBottom 6s infinite ease-in-out;
}

@keyframes shadowFFBottom {

  0%,
  63.9% {
    opacity: 0;
  }

  68% {
    opacity: 0.5;
  }

  72%,
  100% {
    opacity: 0;
  }
}

.brand-signature-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 160px;
  margin-bottom: 20px;
}

/* 2. Hover Micro-Interactions */
.product-card-img-inner {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.3s ease;
}

.product-card:hover .product-card-img-inner {
  transform: scale(1.05);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.3s ease, left 0.3s ease;
  transform: translateX(0) !important;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  left: 0;
}

.btn-primary,
.product-card-cart-btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.btn-primary:hover,
.product-card-cart-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(36, 64, 46, 0.15) !important;
}

/* 3. Click & Feedback Animations */
@keyframes heartPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

.product-card-wishlist.active svg {
  animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 4. Scroll & Entrance Animations */
.hero-bg {
  background-attachment: fixed;
}

/* 5. Modal & State Transitions */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

#app {
  transition: opacity 0.3s ease;
}

#app.fade-out {
  opacity: 0;
}

/* 6. Cart Empty Space Additions */
.cart-fill-space {
  margin-top: 24px;
  padding: 32px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cart-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--primary);
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.trust-badges-container {
  display: flex;
  justify-content: space-around;
  position: relative;
  z-index: 2;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-icon {
  font-size: 2rem;
}

.trust-text {
  font-size: 0.9rem;
  color: var(--muted-text);
  font-weight: 500;
}

.cart-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M20 80 Q 50 20 80 80' fill='none' stroke='rgba(198, 156, 78, 0.05)' stroke-width='5'/><path d='M30 80 Q 50 40 70 80' fill='none' stroke='rgba(198, 156, 78, 0.05)' stroke-width='3'/></svg>");
  background-size: cover;
  background-position: center;
  z-index: 1;
  pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════
   7. UNIFIED CHECKOUT ANIMATION — Single Authoritative Block
   ═══════════════════════════════════════════════════════════ */

/* Overlay Container */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(251, 248, 241, 0.96);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.checkout-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Scene Wrapper */
.co-scene {
  position: relative;
  width: 440px;
  height: 380px;
  overflow: visible;
  perspective: 1000px;
}

/* Ground Line & Shadow */
.co-ground {
  position: absolute;
  bottom: 35px;
  left: 5%;
  width: 90%;
  height: 8px;
  background: radial-gradient(ellipse at center, rgba(36, 64, 46, 0.12) 0%, transparent 75%);
  border-radius: 50%;
  z-index: 1;
}

/* ── PHASE 1-2: BILLING MACHINE & THERMAL BILL PRINTING ── */
.co-machine-area {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  animation: coMachineAreaIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    coMachineAreaOut 0.5s ease-in forwards 2.3s;
  opacity: 0;
}

.co-machine {
  position: relative;
  width: 140px;
  height: 75px;
  margin: 0 auto;
}

.co-machine-body {
  width: 140px;
  height: 75px;
  background: linear-gradient(180deg, #f0f0f0 0%, #d8d8d8 100%);
  border-radius: 10px 10px 4px 4px;
  border: 1px solid #c0c0c0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  position: relative;
}

.co-machine-screen {
  position: absolute;
  top: 12px;
  left: 15px;
  width: 65px;
  height: 22px;
  background: #a3c4b4;
  border: 1px solid #82a896;
  border-radius: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.co-machine-keys {
  position: absolute;
  top: 14px;
  right: 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 32px;
}

.co-machine-keys span {
  width: 8px;
  height: 6px;
  background: #999;
  border-radius: 1px;
}

.co-machine-slot {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: #222;
  border-radius: 2px 2px 0 0;
  box-shadow: inset 0 -1px 3px rgba(0, 0, 0, 0.8);
}

.co-machine-shadow {
  position: absolute;
  bottom: -8px;
  left: 5%;
  width: 90%;
  height: 8px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

/* Real Thermal Bill Printing Downward */
.co-bill {
  position: absolute;
  top: 73px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 0;
  overflow: hidden;
  z-index: 18;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transform-origin: top center;
  animation: coBillPrint 1.3s steps(15) forwards 0.6s,
    coBillTearAndFall 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards 2.0s;
}

.co-bill-paper {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  background: #faf8f2;
  border: 1px dashed #d5d0c3;
  border-top: none;
  padding: 8px 6px;
  box-sizing: border-box;
  font-family: 'Courier New', monospace;
  color: #333;
}

.co-bill-header {
  font-family: 'Playfair Display', serif;
  font-size: 7px;
  font-weight: 700;
  text-align: center;
  color: #24402E;
  letter-spacing: 0.5px;
}

.co-bill-subheader {
  font-size: 5px;
  text-align: center;
  color: #777;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.co-bill-divider {
  width: 100%;
  height: 1px;
  background: #ccc;
  margin: 3px 0;
}

.co-bill-divider-dashed {
  background: repeating-linear-gradient(90deg, #999 0, #999 2px, transparent 2px, transparent 4px);
}

.co-bill-items {
  font-size: 5.5px;
  line-height: 1.3;
}

.co-bill-row {
  display: flex;
  justify-content: space-between;
  margin: 1px 0;
}

.co-bill-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50px;
}

.co-bill-total {
  font-size: 6.5px;
  font-weight: bold;
  text-align: right;
  color: #111;
  margin-top: 3px;
}

.co-bill-footer {
  font-size: 4.5px;
  text-align: center;
  color: #888;
  margin-top: 4px;
}

.co-bill-tear {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(90deg, transparent 0, transparent 2px, #faf8f2 2px, #faf8f2 4px);
}

/* Animations for Machine & Bill */
@keyframes coMachineAreaIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-50px);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes coMachineAreaOut {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px) scale(0.9);
  }
}

@keyframes coBillPrint {
  0% {
    height: 0;
  }

  100% {
    height: 125px;
  }
}

@keyframes coBillTearAndFall {
  0% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
    opacity: 1;
  }

  30% {
    transform: translateX(-50%) translateY(10px) rotate(-4deg);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(130px) rotate(12deg) scale(0.5);
    opacity: 0;
  }
}

/* ── PHASE 3-4: SHOPPING BAG & PACKING SAREES ── */
.co-stage {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.co-bag {
  position: relative;
  width: 110px;
  height: 130px;
  margin-left: -55px;
  opacity: 0;
  transform: translateY(40px);
  animation: coBagEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards 2.3s;
}

.co-bag.grabbed-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.1s ease;
}

.co-bag-back {
  position: absolute;
  inset: 0;
  background: #EAE3D2;
  border-radius: 0 0 4px 4px;
  z-index: 1;
}

.co-bag-front {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #F5F0E0 0%, #E6DFCD 100%);
  border: 1px solid #dcd5c2;
  border-radius: 0 0 6px 6px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.co-bag-brand {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold, #C69C4E);
  letter-spacing: 4px;
  opacity: 0.85;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.co-bag-left {
  position: absolute;
  left: -8px;
  top: 10px;
  width: 8px;
  height: calc(100% - 10px);
  background: linear-gradient(90deg, #D4CDBC, #E2DCCB);
  border-radius: 0 0 0 4px;
  z-index: 5;
}

.co-bag-right {
  position: absolute;
  right: -8px;
  top: 10px;
  width: 8px;
  height: calc(100% - 10px);
  background: linear-gradient(270deg, #D4CDBC, #E2DCCB);
  border-radius: 0 0 4px 0;
  z-index: 5;
}

.co-bag-bottom {
  position: absolute;
  bottom: -5px;
  left: -8px;
  width: calc(100% + 16px);
  height: 5px;
  background: #C4BDAA;
  border-radius: 0 0 6px 6px;
  z-index: 11;
}

.co-bag-opening {
  position: absolute;
  top: 0;
  left: 6px;
  right: 6px;
  height: 12px;
  background: linear-gradient(180deg, #787262 0%, #999383 100%);
  border-radius: 3px 3px 0 0;
  z-index: 9;
}

.co-bag-handle {
  position: absolute;
  top: -15px;
  width: 22px;
  height: 17px;
  border: 3px solid #ab9f82;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  z-index: 12;
}

.co-handle-l {
  left: 22px;
}

.co-handle-r {
  right: 22px;
}

.co-bag-shadow {
  position: absolute;
  bottom: -12px;
  left: -8px;
  width: calc(100% + 16px);
  height: 10px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.14) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

/* Realistic Folded Sarees */
.co-saree {
  position: absolute;
  width: 80px;
  height: 28px;
  left: 50%;
  margin-left: -40px;
  border-radius: 4px;
  z-index: 8;
  opacity: 0;
  transform: translateY(-90px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.14);
}

.co-saree1 {
  background: linear-gradient(135deg, #D4AD60 0%, #C69C4E 50%, #A87d32 100%);
  animation: coSareeDrop 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards 2.9s;
}

.co-saree2 {
  background: linear-gradient(135deg, #A0253A 0%, #8B1A2B 50%, #68101E 100%);
  animation: coSareeDrop 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards 3.3s;
}

.co-saree-body {
  position: relative;
  width: 100%;
  height: 100%;
}

.co-saree-fold1 {
  position: absolute;
  top: 35%;
  left: 5%;
  right: 5%;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.co-saree-fold2 {
  position: absolute;
  top: 65%;
  left: 5%;
  right: 5%;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
}

.co-saree-border {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 0 0 4px 4px;
}

.co-saree1 .co-saree-border {
  background: repeating-linear-gradient(90deg, #F3D693 0px, #F3D693 5px, #C69C4E 5px, #C69C4E 10px);
}

.co-saree2 .co-saree-border {
  background: repeating-linear-gradient(90deg, #E6C378 0px, #E6C378 5px, #8B1A2B 5px, #8B1A2B 10px);
}

@keyframes coBagEnter {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes coSareeDrop {
  0% {
    opacity: 0;
    transform: translateY(-90px) rotate(6deg);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(45px) rotate(0deg);
  }
}

/* ── PHASE 5-6: DELIVERY PERSON & SINGLE-BAG HANDOFF ── */
.co-delivery-group {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 70px;
  height: 150px;
  z-index: 35;
  transform: translateX(-120px);
  animation: coDeliveryRunIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 3.8s,
    coDeliveryPauseAndGrab 0.6s ease forwards 5.0s,
    coDeliveryExit 1.0s cubic-bezier(0.55, 0, 1, 0.45) forwards 5.6s;
}

.co-person {
  position: relative;
  width: 60px;
  height: 140px;
}

.co-person-head {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: radial-gradient(circle at 35% 35%, #f7dcbf 0%, #e0b892 100%);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  z-index: 4;
}

.co-person-hair {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: #332211;
  border-radius: 15px 15px 0 0;
}

.co-person-body {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 46px;
  background: linear-gradient(180deg, #2B6CB0 0%, #1A365D 100%);
  border-radius: 8px 8px 3px 3px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.18);
  z-index: 3;
}

.co-person-arm {
  position: absolute;
  top: 34px;
  width: 11px;
  height: 42px;
  background: linear-gradient(180deg, #3182CE 0%, #2B6CB0 100%);
  border-radius: 6px;
  transform-origin: top center;
  z-index: 2;
}

.co-arm-front {
  right: 4px;
  z-index: 5;
  animation: coArmSwingFront 0.4s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.co-arm-back {
  left: 4px;
  z-index: 1;
  animation: coArmSwingBack 0.4s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.co-person-leg {
  position: absolute;
  top: 76px;
  width: 13px;
  height: 48px;
  background: linear-gradient(180deg, #1A365D 0%, #0F2342 100%);
  border-radius: 6px;
  transform-origin: top center;
}

.co-leg-front {
  right: 12px;
  z-index: 2;
  animation: coLegSwingFront 0.4s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.co-leg-back {
  left: 12px;
  z-index: 1;
  animation: coLegSwingBack 0.4s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.co-person-shadow {
  position: absolute;
  bottom: -6px;
  left: 5px;
  width: 50px;
  height: 8px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

/* Carried Bag Attached to Delivery Group */
.co-carried-bag {
  position: absolute;
  top: 40px;
  right: -30px;
  z-index: 6;
}

.co-bag-mini {
  position: relative;
  width: 75px;
  height: 90px;
  background: linear-gradient(180deg, #F5F0E0 0%, #E6DFCD 100%);
  border: 1px solid #dcd5c2;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.co-bag-mini-front {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  color: #C69C4E;
  letter-spacing: 3px;
}

.co-bag-mini-side {
  position: absolute;
  left: -5px;
  top: 6px;
  width: 5px;
  height: calc(100% - 6px);
  background: #D4CDBC;
}

.co-bag-mini-handle-l,
.co-bag-mini-handle-r {
  position: absolute;
  top: -10px;
  width: 15px;
  height: 12px;
  border: 2.5px solid #ab9f82;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}

.co-bag-mini-handle-l {
  left: 14px;
}

.co-bag-mini-handle-r {
  right: 14px;
}

/* Delivery Animations */
@keyframes coArmSwingFront {
  0% {
    transform: rotateZ(-35deg);
  }

  100% {
    transform: rotateZ(35deg);
  }
}

@keyframes coArmSwingBack {
  0% {
    transform: rotateZ(35deg);
  }

  100% {
    transform: rotateZ(-35deg);
  }
}

@keyframes coLegSwingFront {
  0% {
    transform: rotateZ(30deg);
  }

  100% {
    transform: rotateZ(-30deg);
  }
}

@keyframes coLegSwingBack {
  0% {
    transform: rotateZ(-30deg);
  }

  100% {
    transform: rotateZ(30deg);
  }
}

@keyframes coDeliveryRunIn {
  0% {
    transform: translateX(-120px);
  }

  100% {
    transform: translateX(calc(50% + 55px));
  }
}

@keyframes coDeliveryPauseAndGrab {
  0% {
    transform: translateX(calc(50% + 55px));
  }

  100% {
    transform: translateX(calc(50% + 65px));
  }
}

@keyframes coDeliveryExit {
  0% {
    transform: translateX(calc(50% + 65px));
  }

  100% {
    transform: translateX(calc(100% + 160px));
  }
}

/* ── MESSAGE ── */
.co-message {
  position: absolute;
  bottom: -45px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--primary, #24402E);
  font-weight: 600;
  letter-spacing: 0.6px;
  opacity: 0;
  z-index: 50;
  animation: coMsgIn 0.5s ease forwards 0.5s,
    coMsgOut 0.5s ease forwards 6.0s;
}

@keyframes coMsgIn {
  to {
    opacity: 1;
  }
}

@keyframes coMsgOut {
  to {
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .co-scene {
    width: 320px;
    height: 320px;
  }

  .co-machine {
    width: 110px;
    height: 60px;
  }

  .co-machine-body {
    width: 110px;
    height: 60px;
  }

  .co-bag {
    width: 90px;
    height: 110px;
    margin-left: -45px;
  }

  .co-message {
    font-size: 1rem;
    bottom: -35px;
  }
}

/* prefers-reduced-motion accessibility overrides */
@media (prefers-reduced-motion: reduce) {

  .petal,
  .decor-leaf,
  body::before,
  body::after {
    animation: none !important;
    opacity: 0.15 !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   PSH Email Verification & Multiple Address Book & Upload Progress
   ═══════════════════════════════════════════════════════════ */

.auth-modal-desc {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--body-text);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 20px;
}

.address-card {
  transition: transform var(--transition), box-shadow var(--transition);
}

.address-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-link {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.cart-address-card {
  transition: box-shadow var(--transition);
}

.cart-address-card:hover {
  box-shadow: var(--shadow-sm);
}

.admin-upload-progress-container {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Onboarding Modal Styles --- */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 64, 46, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.onboarding-overlay.active {
  opacity: 1;
  visibility: visible;
}

.onboarding-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.onboarding-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-xl);
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.onboarding-overlay.active .onboarding-card {
  transform: translateY(0);
}

.onboarding-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted-text);
  transition: var(--transition);
}

.onboarding-close:hover {
  color: var(--dark-text);
}

.onboarding-slides-container {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.onboarding-slide {
  display: none;
  width: 100%;
  animation: slideFadeIn 0.4s ease;
}

.onboarding-slide.active {
  display: block;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.onboarding-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.onboarding-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--dark-text);
  margin-bottom: 12px;
  font-weight: 600;
}

.onboarding-desc {
  font-size: 0.95rem;
  color: var(--body-text);
  line-height: 1.6;
}

.onboarding-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.onboarding-dots {
  display: flex;
  gap: 8px;
}

.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.onboarding-dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

.onboarding-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-text {
  border: none;
  background: none;
  font-size: 0.9rem;
  color: var(--muted-text);
  cursor: pointer;
  transition: var(--transition);
}

.btn-text:hover {
  color: var(--dark-text);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE CATEGORY NAVIGATION (category page, ≤768px)
   Category tiles → Collection chips → Subcategory chips.
   Hidden on desktop, where .desktop-filters-bar is used.
   ═══════════════════════════════════════════════════════════ */
.mobile-cat-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-cat-nav {
    display: block;
    margin: 0 -14px 14px;
  }

  .mobile-cat-scroller,
  .mobile-chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 2px 14px;
  }

  .mobile-cat-scroller::-webkit-scrollbar,
  .mobile-chip-row::-webkit-scrollbar {
    display: none;
  }

  .mobile-cat-scroller {
    gap: 14px;
    padding-bottom: 12px;
  }

  .mobile-cat-tile {
    flex: 0 0 auto;
    width: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--body-text);
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-cat-thumb {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    padding: 2px;
    background: var(--card-bg);
    transition: border-color var(--transition);
  }

  .mobile-cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
  }

  .mobile-cat-label {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.2px;
  }

  .mobile-cat-tile.active .mobile-cat-thumb {
    border-color: var(--gold);
  }

  .mobile-cat-tile.active .mobile-cat-label {
    color: var(--dark-text);
    font-weight: 700;
  }

  .mobile-chip-row {
    padding-bottom: 8px;
  }

  .mobile-chip-row[hidden] {
    display: none;
  }

  .mobile-chip-row .filter-chip {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 6px 14px;
    font-size: 0.78rem;
    white-space: nowrap;
    scroll-snap-align: start;
    background: var(--card-bg);
  }

  .mobile-chip-row .filter-chip.active {
    background: var(--dark-text);
    border-color: var(--dark-text);
    color: #fff;
  }

  .mobile-subcat-row .subcat-chip {
    min-height: 32px;
    padding: 4px 12px;
    font-size: 0.74rem;
    background: rgba(198, 156, 78, 0.08);
    border-color: rgba(198, 156, 78, 0.35);
    color: var(--gold-dark);
  }

  .mobile-subcat-row .subcat-chip.active {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #fff;
  }

  /* Compact category hero so products appear above the fold */
  .category-hero {
    padding: 22px 0 14px;
  }

  .category-hero h1 {
    font-size: 1.55rem;
    margin-bottom: 2px;
  }

  .category-hero p {
    font-size: 0.82rem;
  }

  /* Filters | Sort row — single line, no overflow */
  .mobile-filter-bar {
    padding: 8px;
    gap: 8px;
    margin-bottom: 14px;
  }

  .mobile-filter-trigger,
  .mobile-sort-select {
    min-height: 42px;
  }
}

@media (max-width: 360px) {
  .mobile-cat-nav {
    margin: 0 -10px 12px;
  }

  .mobile-cat-scroller,
  .mobile-chip-row {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE PORTRAIT PRODUCT GRID (≤600px)
   Two compact, portrait product cards per row.
   Placed last so it cleanly follows all earlier card rules.
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .product-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    min-width: 0;
  }

  .product-card-img {
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 12px 12px 0 0;
    background: var(--accent-rose);
  }

  .product-card-img-inner {
    padding: 8px;
    font-size: 0.85rem;
  }

  /* Wishlist: smaller visual, 44px invisible tap area */
  .product-card-wishlist {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    min-height: 32px;
    box-shadow: 0 1px 4px rgba(36, 64, 46, 0.18);
  }

  .product-card-wishlist::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
  }

  .product-card-wishlist svg {
    width: 16px;
    height: 16px;
  }

  .product-card-offer-chip,
  .stock-badge {
    top: 8px;
    left: 8px;
    font-size: 0.6rem;
    padding: 2px 7px;
    max-width: calc(100% - 56px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* If sold out AND discounted, stack instead of overlapping */
  .stock-badge ~ .product-card-offer-chip {
    top: 30px;
  }

  .product-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 10px 8px;
    min-width: 0;
  }

  .product-card-type {
    font-size: 0.6rem;
    letter-spacing: 1px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-card-name {
    font-size: 0.92rem;
    line-height: 1.25;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
  }

  .product-card-rating {
    margin: 0 0 6px;
    gap: 3px;
  }

  .product-card-rating svg {
    width: 11px;
    height: 11px;
  }

  .product-card-rating .rating-count {
    font-size: 0.66rem;
  }

  .product-card-price {
    font-size: 0.95rem;
    margin-top: auto;
  }

  .product-card-price.has-offer {
    gap: 2px 6px;
    align-items: baseline;
  }

  .product-card-price-actual {
    font-size: 0.95rem;
  }

  .product-card-price-mrp {
    font-size: 0.72rem;
  }

  .product-card-price-badge {
    font-size: 0.6rem;
    padding: 1px 6px;
  }

  .product-card-colors {
    gap: 4px;
    margin-top: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .product-card-color-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border-width: 1px;
  }

  .product-card-cart-btn {
    padding: 8px 6px;
    font-size: 0.74rem;
    gap: 4px;
    min-height: 40px;
    white-space: nowrap;
  }

  .product-card-cart-btn svg {
    width: 14px;
    height: 14px;
  }

  .product-card-quick-btn {
    width: 40px;
    min-height: 40px;
    flex: 0 0 auto;
  }
}

@media (max-width: 360px) {
  .products-grid {
    gap: 12px 8px;
  }

  .product-card-body {
    padding: 8px 8px 6px;
  }

  .product-card-name {
    font-size: 0.86rem;
  }

  .product-card-cart-btn {
    font-size: 0.7rem;
  }

  .product-card-quick-btn {
    width: 36px;
  }
}

/* Touch devices: no sticky hover lift/zoom after a tap */
@media (hover: none) {
  .product-card:hover {
    transform: none;
    box-shadow: none;
  }

  .product-card:hover .product-card-img-inner {
    transform: none;
  }

  /* Needed to neutralise the existing !important hover lift (micro-interactions block) */
  .product-card-cart-btn:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}