/* ==========================================================================
   MGH Persian Carpets - 2026 Luxury E-Commerce Design
   ========================================================================== */

/* CSS Variables */
:root {
  --black: #0A0B09;
  --charcoal: #1A1B17;
  --gray-dark: #2A2B27;
  --gray: #4A4B47;
  --gray-light: #8A8B87;
  --beige: #F8F6F0;
  --beige-dark: #E8E6E0;
  --white: #FFFFFF;
  --gold: #C9A961;
  --gold-light: #D9B971;
  --gold-dark: #B99951;
  
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-numeric: 'Times New Roman', Times, serif;
  
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-sm: 0 2px 8px rgba(10, 11, 9, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 11, 9, 0.12);
  --shadow-lg: 0 16px 48px rgba(10, 11, 9, 0.16);
}

/* Keep every visible number typographically consistent without changing copy fonts. */
.numeric-font,
input[type="number"],
input[type="tel"],
input[inputmode="numeric"],
input[inputmode="decimal"],
.formatted-number-input {
  font-family: var(--font-numeric) !important;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--beige);
  overflow-x: hidden;
}

/* Membership-driven storefront accents */
body.tier-theme-member { --gold:#B78C35; --gold-light:#E0C675; --gold-dark:#80601F; --tier-rgb:183,140,53; }
body.tier-theme-plus { --gold:#237A8A; --gold-light:#64B6C4; --gold-dark:#145464; --tier-rgb:35,122,138; }
body.tier-theme-elite { --gold:#6B4BA3; --gold-light:#A88ADE; --gold-dark:#452E73; --tier-rgb:107,75,163; }
body.tier-theme-black { --gold:#B3263E; --gold-light:#E46779; --gold-dark:#71172A; --tier-rgb:179,38,62; }
body.has-tier-theme .header-top { border-bottom-color:rgba(var(--tier-rgb),.32); }
body.has-tier-theme .header-label { color:var(--gold-light); }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  color: var(--black);
}

h1 { font-size: clamp(3rem, 8vw, 6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; }
h4 { font-size: 1.25rem; }

p {
  margin: 0 0 1em;
}

::selection {
  background: var(--gold);
  color: var(--white);
}

/* Layout */
.wrap {
  width: min(1440px, calc(100% - 80px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
  border-radius: 4px;
}

.skip-link:focus {
  top: 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-lg);
}

.header-top {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top-inner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  min-height: 38px;
}

.header-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--beige-dark);
  text-align: center;
  width: 100%;
  padding: 0 120px;
}

.header-contact {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 24px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--beige-dark);
}

.contact-link:hover {
  color: var(--gold);
}

.contact-link svg {
  opacity: 0.7;
}

.header-main {
  position: relative;
  z-index: 100;
  background: var(--black);
}

.header-main-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(201, 169, 97, 0.3);
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  transition: all 0.4s var(--ease);
}

.brand-mark span {
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--gold);
  transform: rotate(-45deg);
}

.brand:hover .brand-mark {
  border-color: var(--gold);
  background: var(--gold);
}

.brand:hover .brand-mark span {
  color: var(--black);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.brand-text small {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
}

.main-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--beige-dark);
  padding: 8px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.4s var(--ease);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.mobile-profile-link {
  display: none;
}

.action-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--beige-dark);
}

.action-link:hover {
  color: var(--white);
}

.action-link svg {
  opacity: 0.8;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  transition: all 0.3s var(--ease);
}

.cart-link:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 97, 0.1);
  color: var(--gold);
}

.cart-link:hover .cart-icon {
  stroke: var(--gold);
}

.cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.cart-icon {
  display: block;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--black);
}

.cart-count.is-empty {
  display: none;
}

.logout-link {
  color: var(--gray-light);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s var(--ease);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
  padding: 120px 40px 40px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
  overflow-y: auto;
  z-index: 99;
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav a {
  padding: 20px 0;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--beige-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.3s var(--ease);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--gold);
}

/* Flash Messages */
.flash-container {
  padding: 20px 0;
}

.flash-message {
  padding: 16px 20px;
  margin-bottom: 12px;
  border-left: 3px solid;
  font-size: 14px;
  line-height: 1.5;
}

.flash-success {
  background: #E6F4EA;
  color: #1E6F3F;
  border-color: #34A853;
}

.flash-error {
  background: #FCE8E6;
  color: #8F2727;
  border-color: #EA4335;
}

.flash-warning {
  background: #FEF7E0;
  color: #874D00;
  border-color: #FBBC04;
}

.flash-info {
  background: #E8F0FE;
  color: #174EA6;
  border-color: #4285F4;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.btn-small {
  padding: 10px 20px;
  font-size: 13px;
}

/* Hero Section — homepage two-column layout */
.page-index .hero-section {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  min-height: auto;
  max-height: none;
  height: auto;
  padding: 28px 0 36px;
}

.page-index .hero-container {
  width: min(1440px, calc(100% - 80px));
  margin: 0 auto;
}

.page-index .hero-grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  min-height: 540px;
  max-height: 600px;
}

.page-index .hero-text {
  max-width: none;
  padding-right: 8px;
}

.page-index .hero-label {
  display: inline-block;
  padding: 7px 14px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 97, 0.35);
  margin-bottom: 24px;
}

.page-index .hero-text h1 {
  margin: 0 0 20px;
  color: var(--white);
  line-height: 1.08;
  font-size: clamp(48px, 4.3vw, 74px);
  max-width: 650px;
  text-wrap: balance;
}

.page-index .hero-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--beige-dark);
  margin-bottom: 28px;
  max-width: 560px;
}

.page-index .hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.page-index .hero-visual {
  height: 100%;
  min-height: 520px;
  max-height: 580px;
}

/* Hero before/after product reveal */
.page-index .hero-reveal {
  position: relative;
  height: 100%;
  min-height: 520px;
  max-height: 580px;
  border-radius: 14px;
  overflow: hidden;
  background: #141210;
}

.page-index .hero-reveal-viewport {
  position: relative;
  height: 100%;
  min-height: 520px;
  max-height: 580px;
}

.page-index .hero-reveal-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 480ms ease, visibility 480ms ease;
  pointer-events: none;
}

.page-index .hero-reveal-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-index .hero-reveal-slide.is-entering .hero-reveal-media img {
  animation: heroRevealImageIn 520ms ease forwards;
}

@keyframes heroRevealImageIn {
  from {
    transform: scale(1.035);
    opacity: 0.92;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.page-index .hero-reveal-stage {
  position: relative;
  height: 100%;
  min-height: 520px;
  max-height: 580px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.page-index .hero-reveal-stage.is-dragging {
  cursor: ew-resize;
}

.page-index .hero-reveal-layer {
  position: absolute;
  inset: 0;
}

.page-index .hero-reveal-layer--b {
  z-index: 1;
}

.page-index .hero-reveal-layer--a {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--reveal, 50%)) 0 0);
}

.page-index .hero-reveal-media {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1c1916 0%, #0f0e0c 100%);
}

.page-index .hero-reveal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-index .hero-reveal-media.is-contain img {
  object-fit: contain;
  padding: 10px;
}

.page-index .hero-reveal-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.45);
  z-index: 3;
  pointer-events: none;
}

.page-index .hero-reveal-meta {
  position: absolute;
  bottom: 56px;
  z-index: 3;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(10, 11, 9, 0.76);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: min(44%, 240px);
  pointer-events: none;
}

.page-index .hero-reveal-meta span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.page-index .hero-reveal-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--white);
}

.page-index .hero-reveal-meta--a {
  left: 14px;
}

.page-index .hero-reveal-meta--b {
  right: 14px;
  text-align: right;
}

.page-index .hero-reveal-hint {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(10, 11, 9, 0.7);
  padding: 7px 12px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.page-index .hero-reveal-layer--a .hero-reveal-hint {
  left: 18%;
}

.page-index .hero-reveal-layer--b .hero-reveal-hint {
  right: 18%;
}

.page-index .hero-reveal-stage:hover .hero-reveal-hint {
  opacity: 1;
}

.page-index .hero-reveal-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 48px;
  margin-left: -24px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: ew-resize;
  touch-action: none;
  color: var(--charcoal);
}

.page-index .hero-reveal-handle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.page-index .hero-reveal-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

.page-index .hero-reveal-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  border: 2px solid rgba(201, 169, 97, 0.55);
  pointer-events: none;
}

.page-index .hero-reveal-controls {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(10, 11, 9, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index .hero-reveal-nav {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.page-index .hero-reveal-nav:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 169, 97, 0.08);
}

.page-index .hero-reveal-counter {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--beige-dark);
  min-width: 64px;
  text-align: center;
}

.page-index .hero-single-link {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(10, 11, 9, 0.72);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.page-index .hero-product-image:hover .hero-single-link {
  opacity: 1;
}

.page-index .hero-product-image {
  position: relative;
  height: 100%;
  min-height: 520px;
  max-height: 580px;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #151515;
}

.page-index .hero-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-index .hero-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 11, 9, 0.05) 0%,
    rgba(10, 11, 9, 0.18) 55%,
    rgba(10, 11, 9, 0.72) 100%
  );
  pointer-events: none;
}

.page-index .hero-product-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 28px;
  color: var(--white);
  z-index: 1;
}

.page-index .hero-product-caption span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.page-index .hero-product-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.25;
}

.page-index .hero-product-fallback {
  display: grid;
  place-items: center;
  gap: 12px;
  height: 100%;
  min-height: 520px;
  max-height: 580px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(201, 169, 97, 0.08), rgba(10, 11, 9, 0.9)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 10px);
  color: var(--beige-dark);
  text-align: center;
}

.page-index .hero-product-fallback .mgh-icon {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--gold);
  letter-spacing: 0.2em;
}

.page-index .hero-product-fallback p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.page-index {
  overflow-x: clip;
}

/* Legacy hero selectors kept for safety on other potential pages */
.hero-section {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.hero-container {
  position: relative;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 56px 0;
}

.hero-text {
  max-width: 760px;
}

.hero-label {
  display: inline-block;
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 97, 0.3);
  margin-bottom: 32px;
}

.hero-text h1 {
  margin: 0 0 24px;
  color: var(--white);
  line-height: 1.05;
}

.hero-description {
  font-size: 17px;
  line-height: 1.75;
  color: var(--beige-dark);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Section Base Styles */
section {
  padding: 120px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}

.section-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-label.light {
  color: var(--gold-light);
}

.section-header h2 {
  margin: 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gray-light);
  transition: all 0.3s var(--ease);
}

.link-arrow::after {
  content: '→';
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* Categories Section */
.categories-section {
  background: var(--white);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Collections Editorial Layout */
.collections-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.collections-hero-image {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.collections-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collections-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.collections-hero h1 {
  font-size: clamp(3.5rem, 8vw, 6rem);
  margin: 0 0 24px;
  color: var(--white);
}

.collections-hero p {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

/* Collections Bento Grid */
.collections-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.collection-card {
  position: relative;
  overflow: hidden;
  background: var(--beige);
  border-radius: 16px;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  transition: transform 0.4s var(--ease);
}

.collection-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.collection-card:nth-child(1) {
  grid-column: span 7;
  min-height: 550px;
}

.collection-card:nth-child(2) {
  grid-column: span 5;
  min-height: 550px;
}

.collection-card:nth-child(3) {
  grid-column: span 5;
  min-height: 450px;
}

.collection-card:nth-child(4) {
  grid-column: span 7;
  min-height: 450px;
}

.collection-card:nth-child(n+5) {
  grid-column: span 4;
  min-height: 400px;
}

.collection-card-image {
  position: absolute;
  inset: 0;
}

.collection-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.collection-card:hover .collection-card-image img {
  transform: scale(1.08);
}

.collection-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(10, 11, 9, 0.85) 0%,
    rgba(10, 11, 9, 0.4) 50%,
    transparent 100%
  );
}

.collection-card-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  color: var(--white);
  width: 100%;
}

.collection-card-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
  display: block;
}

.collection-card h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 12px;
  color: var(--white);
}

.collection-card-description {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  max-width: 400px;
}

.collection-card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s var(--ease);
}

.collection-card:hover .collection-card-action {
  opacity: 1;
  transform: translateY(0);
}

.collection-card-action::after {
  content: '→';
  transition: transform 0.3s var(--ease);
}

.collection-card:hover .collection-card-action::after {
  transform: translateX(4px);
}

.category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  display: block;
  transition: transform 0.4s var(--ease);
}

.category-card:hover {
  transform: translateY(-8px);
}

.category-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.category-card:hover .category-image img {
  transform: scale(1.05);
}

.category-placeholder {
  width: 100%;
  height: 100%;
  background: var(--beige-dark);
  display: grid;
  place-items: center;
}

.mgh-icon {
  width: 80px;
  height: 80px;
  border: 2px solid var(--gray-light);
  transform: rotate(45deg);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gray);
}

.mgh-icon span {
  transform: rotate(-45deg);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(10, 11, 9, 0.85) 0%,
    rgba(10, 11, 9, 0.4) 50%,
    transparent 100%
  );
}

.category-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  z-index: 1;
  color: var(--white);
}

.category-info h3 {
  font-size: 28px;
  margin: 0 0 8px;
  color: var(--white);
}

.category-info span {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--beige-dark);
}

/* Featured Section — homepage */
.page-index .featured-section {
  background: var(--beige);
  padding: 60px 0 72px;
}

.page-index .featured-section .section-header {
  margin-bottom: 28px;
  align-items: center;
}

.page-index .featured-carousel {
  overflow: hidden;
  margin: 0;
}

.page-index .featured-carousel .carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.page-index .featured-carousel .carousel-track .product-card {
  flex: 0 0 calc((100% - 72px) / 4);
  min-width: 0;
  scroll-snap-align: start;
}

.page-index .featured-carousel .product-image {
  aspect-ratio: 4 / 5;
  background: #ddd5c8;
}

.page-index .featured-carousel .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-section {
  background: var(--beige);
  padding: 48px 0 80px;
}

.featured-section .section-header {
  margin-bottom: 40px;
}

.carousel-controls {
  display: flex;
  gap: 12px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--gray-light);
  color: var(--charcoal);
  font-size: 20px;
  transition: all 0.3s var(--ease);
}

.carousel-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 169, 97, 0.05);
}

.product-carousel {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track .product-card {
  flex: 0 0 calc(25% - 18px);
  scroll-snap-align: start;
}

.featured-carousel .carousel-track .product-card {
  flex: 0 0 calc(25% - 18px);
}

/* Product Cards */
.product-card {
  transition: transform 0.4s var(--ease);
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-link {
  display: block;
}

.product-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--beige-dark);
  margin-bottom: 20px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--beige-dark);
  color: var(--gray-light);
}

.product-placeholder .mgh-icon {
  width: 60px;
  height: 60px;
  font-size: 14px;
}

.product-placeholder small {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 12px;
  background: var(--white);
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}

.product-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 11, 9, 0.7);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.product-card:hover .product-hover {
  opacity: 1;
}

.view-detail {
  padding: 12px 24px;
  background: var(--white);
  color: var(--black);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transform: translateY(8px);
  transition: transform 0.3s var(--ease);
}

.product-card:hover .view-detail {
  transform: translateY(0);
}

.product-info {
  padding: 0 8px;
}

.product-category {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.product-info h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--black);
}

.product-sku {
  display: block;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--gray-light);
  margin-bottom: 16px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--beige-dark);
}

.product-price {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--black);
}

.stock-badge {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
}

.stock-badge.in-stock {
  background: #E6F4EA;
  color: #1E6F3F;
}

.stock-badge.out-stock {
  background: #FCE8E6;
  color: #8F2727;
}

.price-login {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

.price-login:hover {
  color: var(--gold-dark);
}

/* New Arrivals Section */
.new-arrivals-section {
  background: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* Membership Section */
.membership-section {
  background: var(--black);
  color: var(--white);
}

.membership-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
  padding: 80px;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}

.membership-content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 24px 0 48px;
  color: var(--white);
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.benefits-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

.benefits-list strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
}

.benefits-list p {
  margin: 0;
  color: var(--beige-dark);
  line-height: 1.6;
}

.membership-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.link-light {
  color: var(--beige-dark);
  border-bottom: 1px solid var(--gray);
  padding-bottom: 2px;
  font-size: 14px;
}

.link-light:hover {
  color: var(--white);
  border-color: var(--white);
}

.membership-visual {
  position: relative;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  transform: rotate(12deg);
}

.visual-item {
  aspect-ratio: 1;
  border: 1px solid rgba(201, 169, 97, 0.2);
  background: rgba(201, 169, 97, 0.05);
}

/* Trust Section */
.trust-section {
  background: var(--beige);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.trust-item {
  text-align: center;
}

.trust-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
  display: grid;
  place-items: center;
}

.trust-icon span {
  transform: rotate(-45deg);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--gold);
}

.trust-item h3 {
  font-size: 20px;
  margin: 0 0 12px;
}

.trust-item p {
  margin: 0;
  color: var(--gray);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--beige-dark);
}

.footer-main {
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 60px;
}

.footer-brand {
  max-width: 400px;
}

.footer-brand .brand-mark {
  margin-bottom: 24px;
}

.footer-brand h3 {
  font-size: 24px;
  margin: 0 0 16px;
  color: var(--white);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-light);
  margin-bottom: 32px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--beige-dark);
  transition: all 0.3s var(--ease);
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 169, 97, 0.05);
}

.footer-column h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 24px;
}

.footer-column a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--gray-light);
  transition: color 0.3s var(--ease);
}

.footer-column a:hover {
  color: var(--gold);
}

.footer-contact .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--gray-light);
}

.footer-contact .contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.6;
}

.footer-bottom {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: var(--gray-light);
}

.footer-tagline {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Floating Buttons */
.float-whatsapp {
  position: fixed;
  right: 32px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s var(--ease);
}

.float-whatsapp {
  bottom: 120px;
  background: #25D366;
}

.float-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 20px 60px rgba(37, 211, 102, 0.4);
}

/* Reveal Animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-parallax] {
  will-change: transform;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .wrap {
    width: calc(100% - 60px);
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .collections-bento {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .collection-card:nth-child(1),
  .collection-card:nth-child(2),
  .collection-card:nth-child(3),
  .collection-card:nth-child(4) {
    grid-column: span 6;
  }
  
  .collection-card:nth-child(n+5) {
    grid-column: span 3;
  }
  
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .membership-card {
    gap: 60px;
    padding: 60px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .header-top {
    display: block;
  }

  .header-label {
    padding: 0 16px;
    font-size: 10px;
  }

  .header-contact {
    display: none;
  }
  
  .header-main-inner {
    position: relative;
    justify-content: space-between;
    gap: 8px;
    min-height: 76px;
    padding: 14px 0;
  }

  .header-main-inner .brand {
    position: absolute;
    left: 50%;
    z-index: 1;
    transform: translateX(-50%);
  }

  .header-main-inner .brand-text {
    display: none;
  }

  .mobile-profile-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    transition: border-color 0.2s ease, color 0.2s ease;
  }

  .mobile-profile-link:hover,
  .mobile-profile-link:focus-visible {
    border-color: var(--gold);
    color: var(--gold);
  }

  .header-actions {
    position: relative;
    z-index: 2;
    gap: 8px;
    margin-left: auto;
  }
  
  .main-nav,
  .action-link,
  .logout-link {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  body.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  
  body.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  body.menu-open .mobile-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .page-index .hero-section {
    padding: 24px 0 28px;
  }

  .page-index .hero-grid {
    grid-template-columns: 42fr 58fr;
    gap: 24px;
    min-height: 480px;
    max-height: 560px;
  }

  .page-index .hero-visual,
  .page-index .hero-product-image,
  .page-index .hero-reveal,
  .page-index .hero-reveal-viewport,
  .page-index .hero-reveal-stage {
    min-height: 460px;
    max-height: 520px;
  }

  .page-index .hero-text h1 {
    font-size: clamp(42px, 5vw, 58px);
  }

  .page-index .featured-carousel .carousel-track .product-card {
    flex: 0 0 calc((100% - 48px) / 3);
  }

  .featured-carousel .carousel-track .product-card,
  .carousel-track .product-card {
    flex: 0 0 calc(33.333% - 16px);
  }
  
  section {
    padding: 80px 0;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 48px;
  }
  
  .carousel-track .product-card {
    flex: 0 0 calc(50% - 12px);
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .membership-card {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px;
  }
  
  .membership-visual {
    order: -1;
  }
  
  .trust-grid {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .page-index .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    max-height: none;
    gap: 28px;
  }

  .page-index .hero-text {
    padding-right: 0;
    order: 1;
  }

  .page-index .hero-visual {
    order: 2;
  }

  .page-index .hero-visual,
  .page-index .hero-product-image,
  .page-index .hero-reveal,
  .page-index .hero-reveal-viewport,
  .page-index .hero-reveal-stage {
    min-height: 320px;
    max-height: 420px;
  }

  .page-index .hero-text h1 {
    font-size: clamp(42px, 8vw, 52px);
    max-width: 100%;
  }

  .page-index .featured-section {
    padding-top: 56px;
  }

  .page-index .featured-carousel .carousel-track .product-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }

  .collections-bento {
    grid-template-columns: 1fr;
  }
  
  .collection-card,
  .collection-card:nth-child(1),
  .collection-card:nth-child(2),
  .collection-card:nth-child(3),
  .collection-card:nth-child(4),
  .collection-card:nth-child(n+5) {
    grid-column: span 1;
    min-height: 400px;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .page-index .hero-section {
    padding: 20px 0 24px;
  }

  .page-index .hero-visual,
  .page-index .hero-product-image,
  .page-index .hero-reveal,
  .page-index .hero-reveal-viewport,
  .page-index .hero-reveal-stage {
    min-height: 280px;
    max-height: 360px;
  }

  .page-index .hero-reveal-meta {
    bottom: 48px;
    max-width: 46%;
    padding: 10px 12px;
  }

  .page-index .hero-reveal-handle-knob {
    width: 40px;
    height: 40px;
  }

  .page-index .hero-text h1 {
    font-size: clamp(38px, 10vw, 48px);
  }

  .page-index .hero-actions .btn-primary,
  .page-index .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .page-index .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .page-index .featured-section {
    padding-top: 55px;
    padding-bottom: 64px;
  }

  .page-index .featured-section .section-header {
    margin-bottom: 22px;
  }

  .page-index .featured-carousel .carousel-track .product-card {
    flex: 0 0 82%;
  }

  .featured-carousel .carousel-track .product-card,
  .carousel-track .product-card {
    flex: 0 0 82%;
  }

  .collections-hero h1 {
    font-size: 2.5rem;
    width: 100%;
  }

  body {
    font-size: 15px;
  }

  section {
    padding: 60px 0;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .carousel-track .product-card {
    flex: 0 0 calc(85vw - 16px);
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .membership-card {
    padding: 32px;
  }
  
  .benefits-list {
    gap: 24px;
  }
  
  .benefits-list li {
    gap: 16px;
  }
  
  .benefit-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .benefits-list strong {
    font-size: 16px;
  }
  
  .membership-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .membership-actions .btn-primary {
    width: 100%;
  }
  
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .float-whatsapp {
    right: 16px;
    width: 48px;
    height: 48px;
  }
  
  .float-whatsapp {
    bottom: 100px;
  }
  
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Authentication Pages (Login / Register)
   ========================================================================== */

.auth-page {
  min-height: calc(100vh - 152px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  background: var(--beige);
}

.auth-container {
  width: min(1200px, calc(100% - 60px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border-radius: 16px;
}

/* Left Side - Visual */
.auth-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  padding: 60px;
  min-height: 700px;
}

.auth-visual-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.auth-visual-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 11, 9, 0.92) 0%,
    rgba(10, 11, 9, 0.85) 50%,
    rgba(10, 11, 9, 0.78) 100%
  );
  z-index: 1;
}

.auth-visual-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 420px;
}

.auth-visual-icon {
  width: 72px;
  height: 72px;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
  display: grid;
  place-items: center;
  margin-bottom: 40px;
}

.auth-visual-icon span {
  transform: rotate(-45deg);
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.auth-visual-content h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 20px;
  color: var(--white);
  line-height: 1.2;
}

.auth-visual-content > p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--beige-dark);
  margin-bottom: 40px;
}

.auth-visual-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.visual-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--beige-dark);
  font-size: 15px;
}

.visual-feature svg {
  flex-shrink: 0;
  color: var(--gold);
}

/* Right Side - Form */
.auth-form-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  background: var(--white);
}

.auth-form-container {
  width: 100%;
  max-width: 440px;
}

.auth-header {
  margin-bottom: 40px;
}

.auth-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 12px;
  color: var(--black);
}

.auth-header p {
  font-size: 15px;
  color: var(--gray);
  margin: 0;
  line-height: 1.6;
}

/* Alert Messages */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 32px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid;
}

.alert svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-error {
  background: #FCE8E6;
  color: #8F2727;
  border-color: #EA4335;
}

.alert-error svg {
  stroke: #EA4335;
}

.alert-success {
  background: #E6F4EA;
  color: #1E6F3F;
  border-color: #34A853;
}

.alert-success svg {
  stroke: #34A853;
}

.alert-warning {
  background: #FEF7E0;
  color: #874D00;
  border-color: #FBBC04;
}

.alert-warning svg {
  stroke: #FBBC04;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

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

.input-icon {
  position: absolute;
  left: 18px;
  color: var(--gray-light);
  pointer-events: none;
  z-index: 1;
}

.form-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  font-size: 15px;
  color: var(--charcoal);
  background: var(--white);
  border: 1.5px solid var(--beige-dark);
  border-radius: 14px;
  transition: all 0.3s var(--ease);
  outline: none;
}

.form-input::placeholder {
  color: var(--gray-light);
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-input:hover:not(:focus) {
  border-color: var(--gray-light);
}

.password-toggle {
  position: absolute;
  right: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--gray-light);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s var(--ease);
  z-index: 2;
}

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

.eye-icon.hidden {
  display: none;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--beige-dark);
  border-radius: 6px;
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease);
}

.checkbox-custom::after {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 3px;
  transform: scale(0);
  transition: transform 0.2s var(--ease-spring);
}

.checkbox-input:checked + .checkbox-custom {
  border-color: var(--gold);
}

.checkbox-input:checked + .checkbox-custom::after {
  transform: scale(1);
}

.checkbox-text {
  font-size: 14px;
  color: var(--charcoal);
}

.link-small {
  font-size: 14px;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.link-small:hover {
  color: var(--gold);
}

/* Buttons */
.btn-large {
  padding: 18px 32px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

.btn-primary svg {
  transition: transform 0.3s var(--ease);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

/* Auth Footer */
.auth-footer {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--beige-dark);
  text-align: center;
}

.auth-footer p {
  font-size: 14px;
  color: var(--gray);
  margin: 0 0 16px;
}

.auth-footer .btn-secondary {
  border: 1.5px solid var(--beige-dark);
  color: var(--charcoal);
  background: var(--white);
}

.auth-footer .btn-secondary:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 97, 0.05);
  color: var(--gold);
}

/* Auth Info */
.auth-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  margin-top: 24px;
  background: rgba(201, 169, 97, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 97, 0.2);
}

.auth-info svg {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}

.auth-info span {
  font-size: 13px;
  color: var(--gray-dark);
  line-height: 1.6;
}

/* ==========================================================================
   Shared Components & Utilities
   ========================================================================== */

/* Page Layouts */
.page-container {
  min-height: calc(100vh - 200px);
  padding: 60px 0;
}

.page-header {
  margin-bottom: 48px;
}

.page-header h1 {
  margin: 0 0 12px;
}

.page-header p {
  margin: 0;
  color: var(--gray);
  font-size: 16px;
}

/* Sidebar Layout */
.sidebar-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.sidebar-layout > * {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 120px;
  background: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: 16px;
  padding: 24px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  transition: all 0.3s var(--ease);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(201, 169, 97, 0.08);
  color: var(--gold);
}

.sidebar-nav svg {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.sidebar-nav a:hover svg,
.sidebar-nav a.active svg {
  opacity: 1;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.stat-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: 16px;
  transition: all 0.3s var(--ease);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.stat-card-label {
  display: block;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-card-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 8px;
}

.stat-card-action {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}

/* Content Cards */
.content-card {
  background: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}

.content-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--beige-dark);
}

.content-card-title {
  margin: 0;
  font-size: 24px;
}

.content-card-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

/* Tables */
.table-container {
  background: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: 16px;
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: var(--beige);
}

.data-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  border-bottom: 1px solid var(--beige-dark);
}

.data-table td {
  padding: 20px;
  border-bottom: 1px solid var(--beige-dark);
  font-size: 14px;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr {
  transition: background 0.2s var(--ease);
}

.data-table tbody tr:hover {
  background: rgba(201, 169, 97, 0.03);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* Status Colors */
.status-badge.pending,
.status-badge.payment_pending,
.status-badge.new {
  background: #FEF7E0;
  color: #874D00;
}

.status-badge.pending::before,
.status-badge.payment_pending::before,
.status-badge.new::before {
  background: #FBBC04;
}

.status-badge.approved,
.status-badge.payment_approved,
.status-badge.completed,
.status-badge.delivered {
  background: #E6F4EA;
  color: #1E6F3F;
}

.status-badge.approved::before,
.status-badge.payment_approved::before,
.status-badge.completed::before,
.status-badge.delivered::before {
  background: #34A853;
}

.status-badge.processing,
.status-badge.shipped,
.status-badge.reviewing,
.status-badge.receipt_submitted {
  background: #E8F0FE;
  color: #174EA6;
}

.status-badge.processing::before,
.status-badge.shipped::before,
.status-badge.reviewing::before,
.status-badge.receipt_submitted::before {
  background: #4285F4;
}

.status-badge.rejected,
.status-badge.payment_rejected,
.status-badge.cancelled {
  background: #FCE8E6;
  color: #8F2727;
}

.status-badge.rejected::before,
.status-badge.payment_rejected::before,
.status-badge.cancelled::before {
  background: #EA4335;
}

/* Empty State */
.empty-state {
  padding: 80px 40px;
  text-align: center;
  color: var(--gray);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border: 2px solid var(--beige-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
}

.empty-state-icon svg {
  width: 40px;
  height: 40px;
}

.empty-state h3 {
  margin: 0 0 12px;
  color: var(--charcoal);
}

.empty-state p {
  margin: 0 0 24px;
  font-size: 15px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--beige-dark);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--beige-dark);
  transition: all 0.3s var(--ease);
}

.timeline-item.active::before {
  border-color: var(--gold);
  background: var(--gold);
}

.timeline-item.completed::before {
  border-color: #34A853;
  background: #34A853;
}

.timeline-item-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 4px;
}

.timeline-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 8px;
}

.timeline-item-description {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
  line-height: 1.6;
}

/* Notification Item */
.notification-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: 14px;
  margin-bottom: 12px;
  transition: all 0.3s var(--ease);
}

.notification-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.notification-item.unread {
  background: rgba(201, 169, 97, 0.03);
  border-left: 3px solid var(--gold);
}

.notification-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--beige);
  display: grid;
  place-items: center;
  color: var(--gold);
}

.notification-icon svg {
  width: 22px;
  height: 22px;
}

.notification-content {
  min-width: 0;
}

.notification-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 6px;
}

.notification-message {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
  line-height: 1.6;
}

.notification-time {
  font-size: 12px;
  color: var(--gray-light);
  white-space: nowrap;
}

/* Order Card */
.order-card {
  background: var(--white);
  border: 1px solid var(--beige-dark);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  transition: all 0.3s var(--ease);
}

.order-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--beige-dark);
}

.order-code {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--black);
}

.order-date {
  font-size: 13px;
  color: var(--gray);
}

.order-card-body {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
}

.order-items {
  display: flex;
  gap: 8px;
}

.order-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--beige);
}

.order-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-total {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--black);
}

/* Register Page Specific */
.auth-container-register {
  max-width: 1400px;
}

.auth-form-wide {
  max-width: 640px;
}

.register-form {
  gap: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.required-mark {
  color: var(--gold);
  font-weight: 700;
}

.field-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}

.formatted-number-input { padding-right: 58px; font-variant-numeric: tabular-nums; letter-spacing: .035em; }
.phone-number-input { padding-left: 98px; }
.number-field-prefix {
  position: absolute; left: 50px; z-index: 2; padding-right: 12px;
  border-right: 1px solid var(--beige-dark); color: #8a6420;
  font-size: 13px; font-weight: 800; letter-spacing: .04em; pointer-events: none;
}
.number-field-badge {
  position: absolute; right: 12px; z-index: 2; min-width: 34px; padding: 5px 7px;
  border: 1px solid rgba(201,169,97,.35); border-radius: 8px;
  background: rgba(201,169,97,.09); color: #8a6420;
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-align: center; pointer-events: none;
}
.phone-input-wrapper::after {
  content: ''; position: absolute; inset: -4px; z-index: -1; border-radius: 18px;
  background: linear-gradient(120deg, rgba(201,169,97,.14), transparent 58%);
}
.number-field-hint { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.number-field-hint strong { flex: 0 0 auto; color: #8c8376; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.number-field-hint strong.is-complete { color: #267346; }
.formatted-number-input:valid:not(:placeholder-shown) { border-color: rgba(38,115,70,.48); box-shadow: 0 0 0 3px rgba(38,115,70,.06); }
.formatted-number-input:invalid:not(:placeholder-shown):not(:focus) { border-color: rgba(184,61,48,.55); }

.btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-loading svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

[data-btn-arrow] {
  transition: transform 0.3s var(--ease);
}

.btn-primary:hover [data-btn-arrow] {
  transform: translateX(4px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Responsive */
@media (max-width: 1000px) {
  .auth-container {
    grid-template-columns: 1fr;
  }
  
  .auth-visual {
    min-height: 400px;
    padding: 40px;
  }
  
  .auth-visual-content h2 {
    font-size: 2rem;
  }
  
  .auth-form-wrapper {
    padding: 50px 40px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .sidebar-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  
  .sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
  }
  
  .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .order-card-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .auth-page {
    padding: 40px 0;
  }
  
  .auth-container {
    width: calc(100% - 32px);
    border-radius: 12px;
  }
  
  .auth-visual {
    min-height: 320px;
    padding: 32px 24px;
  }
  
  .auth-visual-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
  }
  
  .auth-visual-icon span {
    font-size: 18px;
  }
  
  .auth-visual-content h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
  }
  
  .auth-visual-content > p {
    font-size: 15px;
    margin-bottom: 32px;
  }
  
  .auth-visual-features {
    gap: 12px;
  }
  
  .visual-feature {
    font-size: 14px;
  }
  
  .auth-form-wrapper {
    padding: 40px 24px;
  }
  
  .auth-header {
    margin-bottom: 32px;
  }
  
  .auth-header h1 {
    font-size: 1.75rem;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .auth-footer {
    margin-top: 32px;
    padding-top: 24px;
  }
  
  .sidebar-nav {
    grid-template-columns: 1fr;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .data-table {
    display: block;
    overflow-x: auto;
  }
  
  .notification-item {
    grid-template-columns: auto 1fr;
  }
  
  .notification-time {
    grid-column: 2;
    margin-top: 8px;
  }
}

@media (max-width: 420px) {
  .header-main-inner.wrap {
    width: calc(100% - 20px);
  }

  .header-main-inner .brand-mark {
    width: 44px;
    height: 44px;
  }

  .mobile-profile-link,
  .header-actions .notif-link,
  .header-actions .cart-link,
  .header-actions .menu-toggle {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .header-actions {
    gap: 4px;
  }

  .number-field-hint span { max-width: 230px; }
  .phone-number-input { padding-left: 94px; }
}

/* Login destination: store / opportunity choice */
.page-portal { background:#0b0c0a; }
.page-portal .site-footer,.page-portal .float-whatsapp { display:none; }
.page-portal #main-content { background:#0b0c0a; }
.portal-choice { min-height:calc(100svh - 112px); padding:24px 0 30px; color:#fff; background:radial-gradient(circle at 85% 0,rgba(var(--tier-rgb),.16),transparent 34%),#0b0c0a; }
.portal-choice-wrap { display:flex; flex-direction:column; gap:16px; }
.portal-choice-intro { display:flex; align-items:end; justify-content:space-between; gap:20px; }
.portal-choice-intro span { color:var(--gold-light); font-size:10px; font-weight:700; letter-spacing:.18em; }
.portal-choice-intro h1 { margin:0; color:#fff; font:500 clamp(1.6rem,3vw,2.65rem)/1 var(--font-serif); }
.portal-choice-grid { display:grid; grid-template-rows:repeat(2,minmax(230px,1fr)); gap:14px; height:clamp(520px,calc(100svh - 255px),760px); }
.portal-choice-card { position:relative; isolation:isolate; min-height:0; overflow:hidden; border:1px solid rgba(var(--tier-rgb),.34); border-radius:18px; background:linear-gradient(135deg,#222,#090a08); color:#fff; box-shadow:0 22px 55px rgba(0,0,0,.24); }
.portal-choice-store { background:radial-gradient(ellipse at 74% 26%,rgba(var(--tier-rgb),.48),transparent 31%),repeating-linear-gradient(135deg,rgba(255,255,255,.025) 0 1px,transparent 1px 44px),linear-gradient(120deg,#24241d,#0a0b09 67%); }
.portal-choice-opportunity { background:radial-gradient(ellipse at 77% 38%,rgba(var(--tier-rgb),.32),transparent 27%),repeating-radial-gradient(circle at 74% 40%,rgba(255,255,255,.035) 0 2px,transparent 2px 31px),linear-gradient(120deg,#1f1715,#080908 70%); }
.portal-choice-card::after { content:""; position:absolute; inset:0; z-index:2; border:1px solid transparent; border-radius:inherit; transition:border-color .3s ease,background .3s ease; }
.portal-choice-card:hover::after,.portal-choice-card:focus-visible::after { border-color:var(--gold-light); background:rgba(var(--tier-rgb),.06); }
.portal-choice-card img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .7s var(--ease); }
.portal-choice-card:hover img { transform:scale(1.035); }
.portal-choice-shade { position:absolute; inset:0; z-index:1; background:linear-gradient(90deg,rgba(5,6,5,.88),rgba(5,6,5,.38) 58%,rgba(5,6,5,.62)),linear-gradient(0deg,rgba(5,6,5,.58),transparent 60%); }
.portal-choice-copy { position:absolute; z-index:3; left:clamp(22px,4vw,58px); top:50%; display:flex; flex-direction:column; transform:translateY(-50%); }
.portal-choice-copy small { color:var(--gold-light); font-size:10px; font-weight:700; letter-spacing:.19em; }
.portal-choice-copy strong { margin:5px 0 10px; color:#fff; font:500 clamp(2.65rem,6vw,5.1rem)/.88 var(--font-serif); letter-spacing:-.035em; }
.portal-choice-copy em { color:rgba(255,255,255,.78); font-size:12px; font-style:normal; letter-spacing:.04em; }
.portal-choice-copy em b { display:inline-grid; place-items:center; width:25px; height:25px; margin-left:7px; border:1px solid rgba(255,255,255,.34); border-radius:50%; color:var(--gold-light); }
.portal-choice-status { position:absolute; right:clamp(18px,3vw,42px); bottom:clamp(16px,3vw,32px); z-index:3; min-width:158px; padding:13px 16px; border:1px solid rgba(255,255,255,.25); border-left:3px solid var(--gold); background:rgba(7,8,7,.72); text-align:right; backdrop-filter:blur(12px); }
.portal-choice-status small,.portal-choice-status strong { display:block; }
.portal-choice-status small { color:rgba(255,255,255,.58); font-size:9px; letter-spacing:.12em; text-transform:uppercase; }
.portal-choice-status strong { margin-top:2px; color:#fff; font:600 1.1rem var(--font-serif); }
.portal-rank-signature { display:flex; align-items:center; justify-content:center; gap:16px; min-height:62px; }
.portal-rank-signature img { width:auto; max-width:130px; height:42px; object-fit:contain; }
.portal-rank-mark { display:grid; place-items:center; width:48px; height:42px; border:1px solid var(--gold); color:var(--gold-light); font:500 12px var(--font-serif); letter-spacing:.08em; }
.portal-rank-signature>span:last-child { display:flex; flex-direction:column; padding-left:16px; border-left:1px solid rgba(255,255,255,.18); }
.portal-rank-signature small { color:rgba(255,255,255,.48); font-size:8px; letter-spacing:.18em; }
.portal-rank-signature strong { color:var(--gold-light); font:600 1.25rem var(--font-serif); }

/* Customer Mill progress stays visible throughout the protected storefront. */
body.has-mill-dock { padding-bottom:82px; }
.mobile-mill-dock { position:fixed; left:50%; bottom:max(8px,env(safe-area-inset-bottom)); z-index:90; display:grid; grid-template-columns:minmax(150px,auto) minmax(120px,1fr) auto; align-items:center; gap:13px; width:min(680px,calc(100% - 24px)); min-height:62px; padding:10px 15px; border:1px solid rgba(var(--tier-rgb),.58); border-radius:15px; background:rgba(10,11,9,.94); color:#fff; box-shadow:0 14px 44px rgba(0,0,0,.32); transform:translateX(-50%); backdrop-filter:blur(16px); transition:opacity .2s ease,transform .2s ease; }
.mobile-mill-dock-copy { min-width:0; line-height:1.15; }
.mobile-mill-dock-copy strong,.mobile-mill-dock-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mobile-mill-dock-copy strong { color:var(--gold-light); font:600 1.25rem var(--font-serif); }
.mobile-mill-dock-copy small { margin-top:3px; color:rgba(255,255,255,.62); font-size:8.5px; }
.mobile-mill-dock-progress { height:7px; overflow:hidden; border-radius:99px; background:rgba(255,255,255,.14); }
.mobile-mill-dock-progress i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--gold-dark),var(--gold-light)); box-shadow:0 0 16px rgba(var(--tier-rgb),.5); }
.mobile-mill-dock-percent { min-width:54px; color:#fff; font-size:10px; font-weight:700; text-align:right; }
body.has-mill-dock .float-whatsapp { bottom:90px; }
body.menu-open .mobile-mill-dock { opacity:0; pointer-events:none; transform:translate(-50%,12px); }

@media (max-width:900px) {
  .mobile-mill-dock { grid-template-columns:minmax(116px,auto) minmax(68px,1fr) auto; gap:11px; width:min(620px,calc(100% - 20px)); padding:10px 13px; }
  .mobile-mill-dock-percent { min-width:42px; }
}

@media (max-width:600px) {
  .page-index .featured-carousel .carousel-track { gap:10px; }
  .page-index .featured-carousel .carousel-track .product-card,
  .featured-carousel .carousel-track .product-card { flex:0 0 calc((100% - 10px)/2); }
  .page-index .products-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 10px; }
  .page-index .product-info { padding:13px 1px; }
  .page-index .product-info h3 { min-height:2.65em; margin:5px 0; font-size:14px; line-height:1.3; }
  .page-index .product-category,.page-index .product-sku { font-size:8px; }
  .page-index .product-footer { align-items:flex-start; flex-direction:column; gap:6px; }
  .page-index .product-price { font-size:14px; }
  .page-index .stock-badge { padding:4px 7px; font-size:8px; }

  .portal-choice { min-height:calc(100svh - 94px); padding:16px 0 90px; }
  .portal-choice-wrap { gap:12px; }
  .portal-choice-intro { display:block; }
  .portal-choice-intro h1 { margin-top:4px; font-size:1.75rem; }
  .portal-choice-grid { grid-template-rows:repeat(2,minmax(205px,1fr)); gap:10px; height:max(430px,calc(100svh - 270px)); max-height:650px; }
  .portal-choice-card { border-radius:13px; }
  .portal-choice-shade { background:linear-gradient(90deg,rgba(5,6,5,.84),rgba(5,6,5,.28)),linear-gradient(0deg,rgba(5,6,5,.66),transparent 55%); }
  .portal-choice-copy { left:18px; top:47%; }
  .portal-choice-copy strong { max-width:220px; font-size:clamp(2.15rem,11vw,3rem); }
  .portal-choice-copy em { display:none; }
  .portal-choice-status { right:12px; bottom:12px; min-width:126px; padding:9px 11px; }
  .portal-choice-status strong { font-size:1rem; }
  .portal-rank-signature { min-height:54px; }
  .portal-rank-signature img { max-width:100px; height:36px; }
}

@media (max-width:380px) {
  .mobile-mill-dock { grid-template-columns:minmax(105px,auto) minmax(54px,1fr) auto; gap:8px; padding-inline:10px; }
  .mobile-mill-dock-copy small { max-width:120px; }
  .portal-choice-copy strong { font-size:2.05rem; }
}

/* Compact storefront header for tablets and narrow laptops */
@media (max-width:1360px) {
  .header-main-inner {
    position:relative;
    justify-content:space-between;
    gap:8px;
    min-height:76px;
    padding:14px 0;
  }

  .header-main-inner .brand {
    position:absolute;
    left:50%;
    z-index:1;
    transform:translateX(-50%);
  }

  .header-main-inner .brand-text,
  .main-nav,
  .header-search,
  .action-link,
  .logout-link {
    display:none;
  }

  .mobile-profile-link {
    position:relative;
    z-index:2;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 40px;
    width:40px;
    height:40px;
    border:1px solid rgba(255,255,255,.15);
    color:var(--white);
  }

  .header-actions {
    position:relative;
    z-index:2;
    gap:8px;
    margin-left:auto;
  }

  .menu-toggle { display:flex; }
  body.menu-open { overflow:hidden; }
  body.menu-open .menu-toggle span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity:0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
}
