:root {
  --ink: #211423;
  --muted: #705b70;
  --paper: #f0f7f4;
  --surface: #f7fbf9;
  --marigold: #f6a916;
  --lotus: #db2e68;
  --peacock: #0f8b8d;
  --leaf: #2f8f55;
  --violet: #5c2d91;
  --border: rgba(66, 38, 63, 0.16);
  --shadow: 0 18px 50px rgba(61, 25, 58, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  position: relative;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(240, 248, 244, 0.3), rgba(230, 244, 238, 0.45)),
    url('./peacock_feather_bg.png') no-repeat center center;
  background-size: cover;
  filter: blur(15px); /* Soft-focus premium blur filter */
  transform: scale(1.08); /* Scale slightly to prevent blur bleed artifacts at viewport boundaries */
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(240, 248, 244, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.brand,
.desktop-nav,
.header-actions,
.hero-actions,
.tryon-controls,
.state-tools,
.cart-head,
.cart-total {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--lotus), var(--violet));
  box-shadow: 0 8px 18px rgba(219, 46, 104, 0.28);
}

.desktop-nav {
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
  color: #473044;
}

.desktop-nav a:hover {
  color: var(--lotus);
}

.header-actions {
  gap: 10px;
}

.ghost-button,
.cart-button,
.primary-button,
.secondary-button,
.icon-button,
.file-control {
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
}

.ghost-button {
  padding: 0 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  border-color: var(--border);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: #fff;
  background: var(--ink);
}

.cart-button strong {
  display: grid;
  min-width: 24px;
  min-height: 24px;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: var(--marigold);
  font-size: 12px;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
  padding: clamp(42px, 7vw, 88px) clamp(18px, 5vw, 72px) 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -8% -18% -8%;
  height: 46%;
  background:
    linear-gradient(90deg, rgba(219, 46, 104, 0.18), rgba(246, 169, 22, 0.22), rgba(15, 139, 141, 0.18)),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, 0.32) 22px 24px);
  transform: rotate(-2deg);
  z-index: -1;
}

.hero h1,
.section-heading h2,
.tryon-copy h2,
.cloud-band h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(56px, 9vw, 116px);
  line-height: 0.9;
}

.hero p {
  max-width: 650px;
  margin: 28px 0 0;
  color: #563b55;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.file-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--lotus), #9f286f);
  box-shadow: 0 14px 30px rgba(219, 46, 104, 0.26);
}

.secondary-button,
.file-control {
  color: var(--ink);
  background: #fff;
  border-color: var(--border);
}

.primary-button:hover,
.secondary-button:hover,
.file-control:hover {
  transform: translateY(-2px);
}

.hero-stage {
  position: relative;
  min-height: 560px;
}

.hero-stage img {
  width: 100%;
  height: min(70vh, 660px);
  object-fit: cover;
  object-position: top right;
  border-radius: 40% 40% 8px 8px;
  box-shadow: var(--shadow);
}

.floating-panel {
  position: absolute;
  left: -26px;
  bottom: 54px;
  width: min(260px, 70%);
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.floating-panel span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.floating-panel strong {
  display: block;
  margin-top: 4px;
}

.store-band,
.tryon-band,
.states-band,
.admin-band,
.cloud-band {
  padding: 76px clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 30px;
}

.section-heading h2,
.tryon-copy h2,
.cloud-band h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
}

.section-heading p,
.tryon-copy p,
.cloud-band p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.shop-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
}

.filter-panel,
.admin-form,
.admin-output,
.cart-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.filter-panel {
  position: sticky;
  top: 94px;
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: #4a344a;
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.full {
  width: 100%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card,
.state-card,
.style-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(61, 25, 58, 0.1);
}

.product-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #f3dfef;
}

.product-info {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-info h3,
.admin-output h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tryon-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: stretch; /* Stretch both columns to same height */
  align-content: center; /* Center columns vertically when there is more vertical viewport space */
  color: #fff;
  background:
    linear-gradient(135deg, rgba(33, 20, 35, 0.94), rgba(92, 45, 145, 0.9)),
    url("https://placehold.co/1600x900/5c2d91/ffffff/png?text=AI+Try-On+Studio");
  background-size: cover;
  background-position: center;
  min-height: 1200px; /* Uniform stable min-height for clean layout spacing */
  box-sizing: border-box;
}

.tryon-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.tryon-controls {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.file-control input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.tryon-preview {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.photo-frame {
  position: relative;
  min-height: 520px; /* Uniform stable min-height so photo frame doesn't shrink too much */
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  flex: 1;
  height: 100%;
}

#tryonCanvas {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-height: 450px; /* Min height so canvas image doesn't get squished */
  object-fit: contain; /* Scale-up to fill the browser space without getting trimmed */
}

.photo-frame img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame.has-photo img {
  display: block;
}

.photo-frame.has-photo span {
  display: none;
}

.style-card {
  color: var(--ink);
}

.style-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.style-card div {
  padding: 14px;
}

.state-tools {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.state-tools input {
  max-width: 430px;
}

.state-tools span {
  color: var(--muted);
  font-weight: 800;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.state-card {
  padding: 14px;
}

.state-card h3 {
  margin: 8px 0 4px;
  font-size: 20px;
}

.state-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.sample-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sample-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #f8e0ef;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #5c1e4f;
  background: #ffe7f1;
  font-size: 12px;
  font-weight: 800;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.admin-form,
.admin-output {
  padding: 18px;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-output pre {
  min-height: 190px;
  margin: 18px 0 0;
  padding: 16px;
  white-space: pre-wrap;
  border-radius: var(--radius);
  background: #241326;
  color: #ffe9bd;
  overflow: auto;
}

.cloud-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
}

.cloud-band div {
  max-width: 900px;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: flex-end;
  background: rgba(33, 20, 35, 0.34);
}

.cart-drawer.open {
  display: flex;
}

.cart-panel {
  width: min(430px, 100%);
  height: 100%;
  padding: 22px;
  border-radius: 0;
  overflow: auto;
}

.cart-head,
.cart-total {
  justify-content: space-between;
}

.icon-button {
  width: 38px;
  min-height: 38px;
  color: #fff;
  background: var(--ink);
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-line img {
  width: 64px;
  height: 76px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-line h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.cart-line p,
.checkout-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.cart-total {
  margin: 20px 0;
  font-size: 20px;
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .product-grid,
  .state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .shop-layout,
  .tryon-band,
  .tryon-preview,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: auto;
  }

  .hero-stage img {
    height: 520px;
  }

  .filter-panel {
    position: static;
  }

  .state-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .state-tools input {
    max-width: none;
  }
}

/* Price range dual slider */
#priceRangeWrap { margin: -2px 0 4px; }
#priceRangeLabels { display: flex; justify-content: space-between; font-size: 12px; color: var(--peacock); font-weight: 700; margin-bottom: 4px; }
#priceSliderTrack { position: relative; height: 4px; background: var(--border); border-radius: 2px; margin: 10px 2px; }
#priceSliderFill { position: absolute; height: 100%; background: var(--peacock); border-radius: 2px; left: 0; right: 0; }
#priceSliderTrack input[type=range] { position: absolute; top: -9px; width: 100%; height: 22px; background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none; margin: 0; padding: 0; }
#priceSliderTrack input[type=range]::-webkit-slider-thumb { pointer-events: all; -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--lotus); cursor: pointer; border: 2px solid white; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
#priceSliderTrack input[type=range]::-moz-range-thumb { pointer-events: all; border: none; width: 14px; height: 14px; border-radius: 50%; background: var(--lotus); cursor: pointer; border: 2px solid white; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
#priceSliderTrack input[type=range]::-webkit-slider-runnable-track { background: transparent; }
#priceSliderTrack input[type=range]::-moz-range-track { background: transparent; }

/* Active occasion nav link highlight */
.desktop-nav a.occasion-nav-active { color: var(--marigold) !important; font-weight: 800 !important; border-bottom: 2px solid var(--marigold) !important; }

@media (max-width: 560px) {
  .product-grid,
  .state-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 32px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .cloud-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ==========================================================================
   ETHNIC DORIYAN: PREMIUM AESTHETIC HIGHLIGHTS (KRISHNA-RADHA DESIGN SYSTEM)
   ========================================================================== */

/* Gold Foiled Borders & Glowing highlights */
.gold-foil-border {
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, #d4af37, #ffe9bd, #f6a916, #ffe9bd, #d4af37) 1;
  box-shadow: 0 8px 32px rgba(246, 169, 22, 0.12);
}

.glow-marigold {
  box-shadow: 0 0 15px rgba(246, 169, 22, 0.4);
}

.glow-peacock {
  box-shadow: 0 0 15px rgba(15, 139, 141, 0.4);
}

/* Saved Looks Gallery Elements */
.saved-look-card {
  position: relative;
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, #d4af37, #f6a916) 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 25px rgba(61,25,58,0.12);
}

.saved-look-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(15,139,141,0.22);
}

.saved-look-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.saved-look-card .look-info {
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--border);
}

.saved-look-card .look-info h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.saved-look-card .look-info p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.saved-look-card .delete-look-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(219, 46, 104, 0.9);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.saved-look-card .delete-look-btn:hover {
  background: #db2e68;
  transform: scale(1.1);
}

/* SSO Custom Profile Menu Dropdown */
.profile-menu-container {
  position: relative;
  display: inline-block;
}

.profile-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 139, 141, 0.08);
  border: 1px solid var(--peacock);
  padding: 4px 12px;
  border-radius: 99px;
  cursor: pointer;
  font-weight: 700;
  color: var(--peacock);
  transition: all 0.2s ease;
  min-height: 38px;
}

.profile-avatar-btn:hover {
  background: rgba(15, 139, 141, 0.15);
  transform: scale(1.02);
}

.profile-avatar-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--peacock), var(--violet));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.profile-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 8px;
  animation: dropdownFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-dropdown-menu.show {
  display: flex;
}

.profile-dropdown-menu h4 {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dropdown-menu p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
}

.profile-dropdown-menu hr {
  margin: 4px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.dropdown-item-btn {
  background: none;
  border: none;
  text-align: left;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item-btn:hover {
  background: rgba(15, 139, 141, 0.08);
  color: var(--peacock);
}

.dropdown-logout-btn {
  color: var(--lotus);
}

.dropdown-logout-btn:hover {
  background: rgba(219, 46, 104, 0.08);
  color: var(--lotus);
}

/* Premium System Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast-card {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-left: 5px solid var(--peacock);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(33, 20, 35, 0.2);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  opacity: 0;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.toast-card.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-card.success {
  border-left-color: var(--peacock);
}

.toast-card.error {
  border-left-color: var(--lotus);
}

.toast-card.info {
  border-left-color: var(--marigold);
}

.toast-icon {
  font-size: 20px;
  line-height: 1;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 800;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 4px;
}

.toast-msg {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.toast-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  padding: 0;
  line-height: 1;
}

.toast-close-btn:hover {
  color: var(--ink);
}

/* Animations */
@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Live comparison table highlights */
#pricingPreviewBody tr {
  transition: background 0.15s ease;
}

#pricingPreviewBody tr:hover {
  background: rgba(15, 139, 141, 0.05);
}

#pricingPreviewBody td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--border);
}

/* Image select shortcuts in states */
.sample-thumb-wrapper {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 6px;
}

.sample-thumb-wrapper img {
  transition: transform 0.3s ease;
}

.sample-thumb-wrapper:hover img {
  transform: scale(1.12);
}

.sample-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 139, 141, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sample-thumb-wrapper:hover .sample-thumb-overlay {
  opacity: 1;
}

/* Mobile responsive fixes for Admin Grid */
@media (max-width: 900px) {
  .admin-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Anonymous Landing Section Styling */
.anonymous-landing {
  padding: clamp(30px, 4vw, 50px) clamp(18px, 5vw, 72px);
  background: transparent; /* Allows the body's soft peacock feather background to shine through */
  border-bottom: 1px solid var(--border);
  min-height: 1200px; /* Uniform stable min-height for clean layout spacing */
  display: flex;
  align-items: center; /* Center the layout card vertically in the viewport space */
  justify-content: center;
  box-sizing: border-box;
}

.anon-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr; /* Row 1 (columns) takes content height, Row 2 (feedback) fills remaining space */
  gap: 24px;
  max-width: 100%;
  width: 100%;
  align-items: stretch; /* Stretch both columns to same height */
}

@media (max-width: 900px) {
  .anon-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto; /* Revert row constraints for vertical stacking on mobile */
    gap: 30px;
  }
}

.anon-login-box {
  background:
    linear-gradient(135deg, rgba(255, 244, 210, 0.88) 0%, rgba(255, 230, 160, 0.92) 100%),
    url('./wheat_crop_sunshine.png') no-repeat center center;
  background-size: cover;
  border: 2px solid var(--marigold);
  box-shadow: var(--shadow), 0 0 30px rgba(246, 169, 22, 0.2);
  border-radius: calc(var(--radius) * 2);
  padding: clamp(30px, 4vw, 50px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.anon-login-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--lotus), var(--marigold), var(--peacock));
}

.brand-mark-large {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--lotus), var(--violet));
  box-shadow: 0 10px 22px rgba(219, 46, 104, 0.32);
  font-weight: 800;
  font-size: 20px;
}

.anon-login-box h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 3.5vw, 44px);
  margin: 0;
  line-height: 1.15;
  color: var(--ink);
}

.anon-login-box p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.anon-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
}

.anon-auth-buttons button {
  min-height: 48px;
  font-size: 15px;
  width: 100%;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  font-weight: 800;
  color: #fff;
  transition: all 0.2s ease;
}

.anon-auth-buttons button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.anon-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  width: 100%;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
}

.benefit-check {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(15, 139, 141, 0.1);
  color: var(--peacock);
  font-weight: 800;
  font-size: 12px;
}

/* Slide Carousel styles */
.anon-carousel-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  height: 100%;
  position: relative;
}

.anon-carousel-container {
  width: 100%;
  flex: 1; /* Stretch to match login-box height exactly */
  min-height: 520px; /* Min height to maintain visual consistency and alignment with login card */
  border-radius: calc(var(--radius) * 2);
  border: 3px solid var(--marigold);
  box-shadow: var(--shadow), 0 0 30px rgba(246, 169, 22, 0.2);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 244, 210, 0.88) 0%, rgba(255, 230, 160, 0.92) 100%),
    url('./wheat_crop_sunshine.png') no-repeat center center;
  background-size: cover;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 800ms ease;
  z-index: 1;
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255, 220, 120, 0.25) 0%, rgba(255, 240, 180, 0.08) 50%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  min-height: 480px; /* Min height so the model catalog photos are fully readable */
  object-fit: contain; /* Contain the image so no beautiful saree borders or details are trimmed */
  background: rgba(33, 20, 35, 0.15); /* Soft backing for transparent overlays */
  display: block;
}

.carousel-caption-card {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(33, 20, 35, 0.95) 0%, rgba(33, 20, 35, 0.7) 70%, transparent 100%);
  padding: 30px 24px 24px;
  color: #fff;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.carousel-caption-card span {
  font-size: 11px;
  color: var(--marigold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.carousel-caption-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  margin: 0;
}

.carousel-caption-card p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.75);
  margin: 4px 0 0 0;
  line-height: 1.5;
}

.anon-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.carousel-control-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
  padding: 0;
}

.carousel-control-btn:hover {
  background: var(--peacock);
  color: #fff;
  border-color: var(--peacock);
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(66, 38, 63, 0.16);
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dot.active {
  background: var(--lotus);
  width: 24px;
  border-radius: 99px;
}

/* Sliding Customer Feedback styling */
.anon-feedback-carousel {
  grid-column: 1 / -1; /* Spans across both columns in .anon-layout grid */
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(230, 245, 235, 0.72) 0%, rgba(200, 235, 215, 0.65) 100%); /* Soothing light green gradient */
  border-radius: var(--radius);
  border: 1px solid rgba(47, 143, 85, 0.22); /* Cohesive soft green border */
  padding: 16px 20px;
  box-shadow: 0 4px 15px rgba(47, 143, 85, 0.06); /* Soft green-tinted shadow */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  flex: 1; /* Stretch vertically in grid row */
  min-height: 120px;
}

.feedback-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.feedback-slide {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 5px;
}

.feedback-text {
  font-style: italic;
  font-size: 13.5px !important;
  color: #4a3e26 !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

.feedback-author {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--peacock);
  align-self: flex-end;
}

.feedback-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.feedback-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15, 139, 141, 0.2);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.feedback-dot.active {
  background: var(--peacock);
  transform: scale(1.2);
}

/* Premium Calligraphic & Cursive Devanagari Font Styles when Hindi is active */
body.lang-hi {
  font-family: "Kalam", cursive, sans-serif !important;
}

body.lang-hi h1,
body.lang-hi h2,
body.lang-hi h3,
body.lang-hi h4,
body.lang-hi .brand span {
  font-family: "Yatra One", "Kalam", cursive, sans-serif !important;
}

/* Ensure buttons, filters, lists, and inputs adopt the festive cursive look */
body.lang-hi button,
body.lang-hi input,
body.lang-hi select,
body.lang-hi textarea,
body.lang-hi label,
body.lang-hi a,
body.lang-hi .cart-button strong,
body.lang-hi .brand-mark,
body.lang-hi span,
body.lang-hi p {
  font-family: "Kalam", cursive, sans-serif !important;
}

/* ==========================================================================
   WHY CHOOSE ETHNIC DORIYAN SECTION (LIGHT GLASSMORPHISM)
   ========================================================================== */

.anon-why-choose {
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(246, 169, 22, 0.22); /* Soft gold foil border */
  border-radius: calc(var(--radius) * 2);
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(61, 25, 58, 0.06), inset 0 0 20px rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.anon-why-choose:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(61, 25, 58, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.6);
}

.anon-why-choose h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  color: var(--violet); /* Premium brand violet */
  margin: 0;
  letter-spacing: -0.2px;
}

/* Calligraphic font override under Devanagari */
body.lang-hi .anon-why-choose h2 {
  font-family: 'Yatra One', cursive !important;
  font-weight: normal !important;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 1200px;
}

@media (max-width: 900px) {
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.why-choose-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(66, 38, 63, 0.08);
  border-radius: var(--radius);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease;
  cursor: default;
}

.why-choose-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(246, 169, 22, 0.35); /* Glow marigold border on hover */
  box-shadow: 0 15px 30px rgba(61, 25, 58, 0.08);
}

.why-choose-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.why-choose-card:hover .why-choose-icon-wrap {
  transform: scale(1.1) rotate(5deg);
}

/* Curated soft background circles matching attached mockup */
.icon-globe {
  background: rgba(92, 45, 145, 0.15); /* Soft violet backing */
  border: 2px solid rgba(92, 45, 145, 0.3);
  box-shadow: 0 4px 12px rgba(92, 45, 145, 0.06);
}

.icon-palette {
  background: rgba(219, 46, 104, 0.15); /* Soft pink backing */
  border: 2px solid rgba(219, 46, 104, 0.3);
  box-shadow: 0 4px 12px rgba(219, 46, 104, 0.06);
}

.icon-sparkles {
  background: rgba(246, 169, 22, 0.15); /* Soft gold backing */
  border: 2px solid rgba(246, 169, 22, 0.3);
  box-shadow: 0 4px 12px rgba(246, 169, 22, 0.06);
}

.why-choose-icon {
  font-size: 28px;
  line-height: 1;
}

.why-choose-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px 0;
  transition: color 0.3s ease;
}

.why-choose-card:hover h3 {
  color: var(--violet);
}

body.lang-hi .why-choose-card h3 {
  font-family: 'Kalam', cursive !important;
  font-size: 21px !important;
}

.why-choose-card p {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

body.lang-hi .why-choose-card p {
  font-family: 'Kalam', cursive !important;
  font-size: 16px !important;
  color: #4a3e26 !important;
}

/* Attire detail modal — stack to single column on mobile */
@media (max-width: 680px) {
  #attireDetailOverlay > div > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  #attireDetailOverlay > div > div[style*="grid-template-columns"] > div:first-child {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding: 16px !important;
  }
  #attireDetailOverlay > div > div[style*="grid-template-columns"] > div:last-child {
    padding: 16px !important;
  }
  #attireDetailOverlay > div {
    max-height: 98vh;
  }
}

/* ============================================================
   MOBILE — Hamburger button
   ============================================================ */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: 4px;
  border-radius: 6px;
  transition: background 0.2s;
  flex-shrink: 0;
  order: -1; /* left of everything in header */
}
.hamburger-btn:hover {
  background: rgba(219,46,104,0.08);
}
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MOBILE — Nav drawer + backdrop
   ============================================================ */
.mobile-nav {
  display: none; /* hidden on desktop */
  position: fixed;
  top: 0;
  left: 0;
  width: min(280px, 80vw);
  height: 100%;
  z-index: 2000;
  background: #fff;
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 24px rgba(61,25,58,0.14);
  flex-direction: column;
  padding: 24px 0 40px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: rgba(61,25,58,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-close {
  align-self: flex-end;
  margin: 0 16px 12px auto;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
}
.mobile-nav-close:hover { color: var(--lotus); }
.mobile-nav-link {
  display: block;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(61,25,58,0.06);
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-link:hover {
  background: rgba(219,46,104,0.06);
  color: var(--lotus);
}

/* ============================================================
   BREAKPOINT ≤1100px  — show hamburger, adjust header
   ============================================================ */
@media (max-width: 1100px) {
  .hamburger-btn { display: flex; }
  .mobile-nav  { display: flex; }
  .mobile-nav-backdrop { display: block; }
  /* Login/auth handled by hamburger nav on mobile — hide header login button */
  #authButtons { display: none !important; }

  .site-header {
    padding: 0 14px;
    gap: 8px;
  }
  /* Brand text truncation */
  .brand > span:last-child {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 38vw;
  }
}

/* ============================================================
   BREAKPOINT ≤820px  — modals full-width, tables scroll
   ============================================================ */
@media (max-width: 820px) {
  /* Dynamic modals (body.appendChild pattern) */
  body > div[style*="position:fixed"] > div,
  body > div[style*="position: fixed"] > div {
    max-width: calc(100vw - 16px) !important;
    width: calc(100vw - 16px) !important;
    margin: 8px !important;
    border-radius: 10px !important;
    max-height: calc(100vh - 16px) !important;
  }

  /* Admin output tables — horizontal scroll */
  .admin-output {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-output table {
    min-width: 520px;
  }

  /* Partner cart table — compact column widths */
  .partner-cart-table {
    font-size: 12px;
  }
  .partner-cart-table th,
  .partner-cart-table td {
    padding: 6px 8px;
  }

  /* Vendor dashboard panels stack */
  .vendor-panel {
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* Filter panel stacks above product grid — already handled by existing 820px rule */
  .filter-panel {
    position: relative;
    top: auto;
    max-height: none;
    overflow-y: visible;
  }
  .filter-panel.mobile-collapsed {
    display: none;
  }
}

/* ============================================================
   BREAKPOINT ≤560px  — 2-col product grid, hide brand text
   ============================================================ */
@media (max-width: 560px) {
  /* 2-col product grid (override existing 1-col rule) */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .product-card {
    font-size: 12px;
  }
  .product-card .product-name {
    font-size: 13px;
  }
  .product-card .product-price {
    font-size: 13px;
  }

  /* Hide brand tagline at very small widths */
  .brand > span:last-child {
    display: none;
  }
  .brand-mark {
    font-size: 20px;
  }

  /* Touch targets — minimum 44px */
  .hamburger-btn {
    padding: 10px;
  }
  .cart-button {
    padding: 8px 12px;
    font-size: 13px;
  }
  .profile-avatar-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* Stack header actions tighter */
  .header-actions {
    gap: 6px;
  }
  #languageSelectorContainer {
    margin-right: 2px !important;
  }

  /* Full-width buttons in modals on tiny screens */
  body > div[style*="position:fixed"] button,
  body > div[style*="position: fixed"] button {
    font-size: 13px;
  }
}


