/* ── Reset & Variables ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary:    #d4a574;
  --bg:         #ffffff;
  --bg-surface: #f8f7f5;
  --bg-card:    #ffffff;
  --text-main:  #2a2a2a;
  --text-soft:  #666666;
  --border:     #eeeeee;
  --primary-dk: #c09660;
  --dark:       #2a2a2a;
  --light-gray: #f5f5f5;
  --text-gray:  #666;
  --white:      #ffffff;
  --error:      #d32f2f;
  --radius:     4px;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; }
button { font-family: inherit; }

/* ── SPA Pages ───────────────────────────────────────────────────────── */
.page { display: none; }
.page.active { display: block; }

/* ══════════════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════════════ */
.header-top {
  background: var(--dark);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.45rem 1.5rem; gap: 1rem; flex-wrap: wrap;
}

.contact-info {
  font-size: 0.82rem; display: flex; gap: 1.2rem; color: rgba(255,255,255,0.75); flex-wrap: wrap;
}
.contact-info i { color: var(--primary); margin-right: 0.3rem; font-size: 0.78rem; }

.header-auth { display: flex; gap: 0.9rem; font-size: 0.82rem; align-items: center; flex-wrap: wrap; }
.header-auth a { color: rgba(255,255,255,0.85); cursor: pointer; transition: color var(--transition); }
.header-auth a:hover { color: var(--primary); }
.header-auth .btn-link { background: none; border: none; color: rgba(255,255,255,0.85); cursor: pointer; font-size: 0.82rem; transition: color var(--transition); padding: 0; }
.header-auth .btn-link:hover { color: var(--primary); }
.auth-logged-in  { display: none; align-items: center; gap: 0.5rem; }
.auth-logged-out { display: flex; align-items: center; gap: 0.5rem; }

/* ── Main Header ─────────────────────────────────────────────────────── */
.main-header {
  background: white; padding: 0.9rem 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 3rem;
  border-bottom: 1px solid #eee; flex-wrap: wrap;
}

.header-nav { display: flex; gap: 1.8rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.header-nav a {
  color: var(--text-gray); font-size: 0.85rem; font-weight: 500;
  transition: color var(--transition); cursor: pointer; letter-spacing: 0.3px;
}
.header-nav a:hover { color: var(--primary); }

/* ── Logo ────────────────────────────────────────────────────────────── */
.logo  { font-weight: 700; color: black; font-size: 1.05rem; border: 2px solid black; padding: 0.28rem 0.65rem; white-space: nowrap; cursor: pointer; display: inline-block; letter-spacing: 2px; transition: all var(--transition); }
.logo:hover { background: black; color: white; }
.logo2 { font-weight: 700; color: var(--primary); font-size: 1rem; border: 2px solid var(--primary); padding: 2px 8px; width: fit-content; letter-spacing: 2px; }
.logo3 { font-weight: 700; color: white; border: 2px solid var(--primary); padding: 2px 8px; width: fit-content; word-break: break-word; letter-spacing: 1px; }

/* ── Secondary Nav Bar ───────────────────────────────────────────────── */
.header-nav-bar {
  background: var(--dark); color: white; padding: 0.65rem 1.5rem;
  display: flex; align-items: center; font-size: 0.82rem; gap: 1rem;
  flex-wrap: wrap; justify-content: space-between;
}

.nav-left   { display: flex; gap: 0.8rem; align-items: center; flex-shrink: 0; }
.nav-center { display: flex; gap: 1.2rem; align-items: center; flex-grow: 1; justify-content: center; flex-wrap: wrap; }
.nav-right  { display: flex; gap: 0.8rem; align-items: center; flex-shrink: 0; }

.nav-center a { color: rgba(255,255,255,0.8); font-size: 0.82rem; transition: color var(--transition); white-space: nowrap; cursor: pointer; }
.nav-center a:hover { color: var(--primary); }

.select {
  background: var(--dark); color: #fff; padding: 0.35rem 1.4rem 0.35rem 0.5rem;
  font-size: 0.8rem; border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius);
  appearance: none; cursor: pointer; min-width: 62px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path fill="white" d="M1 1l4 4 4-4"/></svg>');
  background-repeat: no-repeat; background-position: right 4px center; background-size: 9px;
}

/* ── Search ──────────────────────────────────────────────────────────── */
.search-box-header { display: flex; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.search-box-header input { border: none; outline: none; padding: 0.38rem 0.75rem; width: 140px; font-size: 0.82rem; color: #333; }
.search-box-header button { background: var(--primary); border: none; color: white; padding: 0.38rem 0.75rem; cursor: pointer; font-size: 0.82rem; transition: background var(--transition); }
.search-box-header button:hover { background: var(--primary-dk); }

/* ── Cart Display ────────────────────────────────────────────────────── */
.cart-total-box { display: flex; background: white; border-radius: var(--radius); overflow: hidden; height: 30px; cursor: pointer; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition); }
.cart-total-box:hover { box-shadow: var(--shadow-md); }
.cart-icon-side { background: var(--primary); color: white; width: 44px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.cart-amount    { color: #333; font-weight: 600; font-size: 0.88rem; display: flex; align-items: center; padding: 0 12px; white-space: nowrap; }

/* ── Mobile Header ───────────────────────────────────────────────────── */
.mobile-header {
  display: none; position: fixed; top: 0; left: 0; right: 0;
  height: 58px; background: white; border-bottom: 1px solid #eee;
  align-items: center; justify-content: space-between; z-index: 999; padding: 0 1rem;
  transition: box-shadow var(--transition);
}
.mobile-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.mobile-header .logo { font-size: 1.1rem; }
.mobile-header a { text-decoration: none; }

.mobile-header-right { display: flex; align-items: center; gap: 0.8rem; }
.mobile-icon-btn { background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--dark); position: relative; padding: 0.3rem; }

.cart-badge, .wishlist-badge {
  position: absolute; top: -4px; right: -4px; background: var(--primary); color: white;
  border-radius: 50%; width: 16px; height: 16px; font-size: 0.6rem;
  display: none; align-items: center; justify-content: center; font-weight: 700; line-height: 1;
}

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer; font-size: 1.15rem; color: var(--dark);
  width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.menu-toggle:hover { background: var(--light-gray); }

/* ── Mobile Nav ──────────────────────────────────────────────────────── */
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: var(--dark); z-index: 1000; flex-direction: column;
  padding: 1rem; overflow-y: auto;
}
.mobile-nav.active { display: flex; }

.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav-close { background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer; }

.mobile-nav a, .mobile-nav .mob-link {
  color: rgba(255,255,255,0.85); text-decoration: none; padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 0.95rem; cursor: pointer;
  background: none; border-top: none; border-left: none; border-right: none;
  text-align: left; width: 100%; transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--primary); }
.mobile-nav .nav-divider    { height: 1px; background: rgba(255,255,255,0.1); margin: 0.8rem 0; }
.mobile-nav-section         { color: var(--primary); font-weight: 600; padding: 0.8rem 0 0.4rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.mobile-nav-item            { padding-left: 0.8rem; font-size: 0.9rem; color: rgba(255,255,255,0.7) !important; }

/* ══════════════════════════════════════════════════════════════════════
   CART DRAWER
══════════════════════════════════════════════════════════════════════ */
.cart-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 1500;
  backdrop-filter: blur(2px);
  animation: fadeIn 0.25s ease;
}
.cart-overlay.active { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.cart-drawer {
  position: fixed; top: 0; right: -440px; width: 400px; max-width: 100vw;
  height: 100vh; background: white; z-index: 1600;
  display: flex; flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}
.cart-drawer.open { right: 0; }

.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.3rem; border-bottom: 1px solid #f0f0f0;
  background: white; flex-shrink: 0;
}
.cart-drawer-header h3 { font-size: 1rem; font-weight: 700; color: var(--dark); letter-spacing: 0.3px; }
.cart-drawer-count-badge { color: var(--primary); font-size: 0.88rem; font-weight: 600; }
.drawer-close-btn { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--text-gray); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.drawer-close-btn:hover { background: var(--light-gray); color: var(--dark); }

.cart-drawer-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem; text-align: center; gap: 1rem;
}
.cart-drawer-empty i { font-size: 3.5rem; color: #e0e0e0; }
.cart-drawer-empty p { color: var(--text-gray); font-size: 0.9rem; }
.cart-drawer-empty .browse-btn { padding: 0.6rem 1.4rem; background: var(--dark); color: white; border: none; border-radius: var(--radius); cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: background var(--transition); letter-spacing: 0.5px; }
.cart-drawer-empty .browse-btn:hover { background: var(--primary); }

#cart-drawer-body { flex: 1; overflow-y: auto; padding: 0.5rem 0; }
#cart-drawer-body::-webkit-scrollbar { width: 4px; }
#cart-drawer-body::-webkit-scrollbar-track { background: transparent; }
#cart-drawer-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.drawer-item {
  display: grid; grid-template-columns: 72px 1fr auto;
  gap: 0.9rem; padding: 1rem 1.3rem; border-bottom: 1px solid #f5f5f5;
  align-items: flex-start; transition: background var(--transition);
}
.drawer-item:hover { background: #fafafa; }

.drawer-item-img {
  width: 72px; height: 88px; border-radius: var(--radius);
  background-size: cover; background-position: center; background-color: var(--light-gray);
  flex-shrink: 0;
}

.drawer-item-info { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.drawer-item-name { font-size: 0.85rem; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-item-meta { font-size: 0.75rem; color: #aaa; }
.drawer-item-row  { display: flex; align-items: center; justify-content: space-between; margin-top: 0.4rem; }
.drawer-item-price { font-weight: 700; color: var(--primary); font-size: 0.88rem; }

.drawer-qty { display: flex; align-items: center; gap: 0; border: 1px solid #e0e0e0; border-radius: 20px; overflow: hidden; }
.drawer-qty-btn { background: none; border: none; width: 26px; height: 26px; cursor: pointer; font-size: 1rem; color: var(--dark); display: flex; align-items: center; justify-content: center; transition: background var(--transition); font-weight: 600; }
.drawer-qty-btn:hover { background: var(--light-gray); }
.drawer-qty span { min-width: 24px; text-align: center; font-size: 0.82rem; font-weight: 600; color: var(--dark); }

.drawer-remove { background: none; border: none; cursor: pointer; color: #bbb; font-size: 0.82rem; transition: color var(--transition); padding: 0.2rem; align-self: flex-start; margin-top: 0.1rem; }
.drawer-remove:hover { color: var(--error); }

.cart-drawer-footer {
  border-top: 1px solid #f0f0f0; padding: 1.2rem 1.3rem;
  background: white; flex-shrink: 0;
}
.drawer-summary { margin-bottom: 0.8rem; }
.drawer-summary-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-gray); padding: 0.25rem 0; }
.drawer-total-row   { display: flex; justify-content: space-between; font-size: 0.95rem; font-weight: 700; color: var(--dark); padding: 0.6rem 0 0; border-top: 1px solid #eee; margin-top: 0.3rem; }
.drawer-total-row span:last-child { color: var(--primary); }

.drawer-btn-group { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.9rem; }
.drawer-checkout-btn { width: 100%; padding: 0.8rem; background: var(--dark); color: white; border: none; border-radius: var(--radius); font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: background var(--transition); letter-spacing: 0.8px; }
.drawer-checkout-btn:hover { background: var(--primary); }
.drawer-view-cart-btn { width: 100%; padding: 0.7rem; background: transparent; color: var(--dark); border: 2px solid var(--dark); border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all var(--transition); letter-spacing: 0.5px; }
.drawer-view-cart-btn:hover { background: var(--dark); color: white; }

/* ══════════════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-block; padding: 0.75rem 1.8rem; background: white; color: #000;
  border: 2px solid #c18c4c; cursor: pointer; transition: all var(--transition);
  border-radius: var(--radius); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.5px;
}
.btn:hover { background: var(--dark); color: white; border-color: var(--dark); }
.btn-secondary { background: transparent; color: var(--dark); }
.btn-secondary:hover { background: var(--dark); color: white; }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dk); border-color: var(--primary-dk); }
.btn-dark { background: var(--dark); color: white; border-color: var(--dark); }
.btn-dark:hover { background: var(--primary); border-color: var(--primary); }

/* ══════════════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════════════ */
.hero {
  background: white; padding: 3rem 2rem;
  display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap;
}
.hero-text { flex: 1; max-width: 500px; min-width: 260px; }
.hero-text h1 { color: #b97f4e; font-size: 2.1rem; margin-bottom: 1.2rem; line-height: 1.2; letter-spacing: -0.5px; }
.hero-text p  { color: var(--text-gray); margin-bottom: 2rem; font-size: 0.95rem; line-height: 1.8; }
.hero-image   { flex: 1; min-width: 260px; max-width: 420px; display: flex; justify-content: center; align-items: center; }
.hero-image img { width: 100%; border-radius: 6px; object-fit: cover; max-height: 480px; }

/* ══════════════════════════════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════════════════════════════ */
.popular-now, .from-collection { padding: 3rem 1.5rem; text-align: center; }
.new-collection { padding: 3rem 1.5rem; text-align: center; }
.section-title { color: var(--primary); font-size: 1.55rem; margin-bottom: 0.5rem; font-weight: 700; letter-spacing: -0.3px; }
.section-subtitle { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 2rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.container-gray { background: #f8f7f5; }
.empty-grid-msg { grid-column: 1/-1; text-align: center; color: #aaa; padding: 3rem; font-size: 0.9rem; }

/* ── Tabs ────────────────────────────────────────────────────────────── */
.tabs { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tabs button {
  background: none; border: none; color: var(--text-gray); font-size: 0.88rem; cursor: pointer;
  padding: 0.5rem 1.1rem; border-radius: 20px; transition: all var(--transition); font-weight: 500;
}
.tabs button:hover { color: var(--primary); background: rgba(212,165,116,0.08); }
.tabs button.active { color: var(--primary); background: rgba(212,165,116,0.12); font-weight: 600; }

.collection-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.collection-tab-btn {
  padding: 0.6rem 1.3rem; border: 1.5px solid #d28c5c; background: transparent;
  cursor: pointer; font-weight: 500; font-size: 0.85rem; transition: all var(--transition); border-radius: var(--radius);
}
.collection-tab-btn:hover, .collection-tab-btn.active { background: #d28c5c; color: white; }

/* ══════════════════════════════════════════════════════════════════════
   PRODUCT CARDS
══════════════════════════════════════════════════════════════════════ */
.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; max-width: 1240px; margin: 0 auto 2rem;
}

.product-card {
  background: white; border-radius: 6px; overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  cursor: pointer; position: relative;
  border: 1px solid rgba(0,0,0,0.04);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }

.small-card { transform: scale(0.88); }
.small-card:hover { transform: scale(0.88) translateY(-5px); }

.product-img-wrap { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.product-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img { transform: scale(1.04); }

.product-badge {
  position: absolute; top: 10px; left: 10px; padding: 3px 9px;
  font-size: 0.68rem; font-weight: 700; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-sale { background: #e53935; color: white; }
.badge-new  { background: var(--dark); color: white; }
.badge-best { background: var(--primary); color: white; font-size: 0.75rem; }

.wish-btn {
  position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.92);
  border: none; border-radius: 50%; width: 34px; height: 34px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #bbb; font-size: 0.88rem; transition: all var(--transition); z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.wish-btn:hover, .wish-btn.active { color: #e53935; transform: scale(1.1); }

.card-hover-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(42,42,42,0.92); padding: 0.7rem;
  transform: translateY(100%); transition: transform 0.28s ease;
  display: flex; gap: 0.5rem;
}
.product-card:hover .card-hover-bar { transform: translateY(0); }

.hover-btn {
  flex: 1; padding: 0.45rem; background: transparent; color: white;
  border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius);
  font-size: 0.78rem; font-weight: 500; cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.hover-btn:hover { background: var(--primary); border-color: var(--primary); }

.product-info { padding: 0.85rem 0.95rem 1rem; }
.product-cat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: #bbb; margin-bottom: 0.3rem; font-weight: 500; }
.product-name { font-weight: 600; color: var(--dark); margin-bottom: 0.45rem; font-size: 0.88rem; line-height: 1.3; }
.product-price-row { display: flex; gap: 0.5rem; align-items: center; }
.product-price     { color: var(--primary); font-weight: 700; font-size: 0.92rem; }
.product-old-price { color: #bbb; text-decoration: line-through; font-size: 0.8rem; }

/* ══════════════════════════════════════════════════════════════════════
   SALE BANNER
══════════════════════════════════════════════════════════════════════ */
.sale { background: var(--dark); color: white; text-align: center; padding: 3.5rem 1.5rem; }
.sale h2 { font-size: 1.1rem; margin-bottom: 0.5rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.sale h3 { font-size: 3rem; color: var(--primary); font-weight: 800; letter-spacing: -1px; margin-bottom: 0.5rem; }
.sale p  { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-bottom: 1.5rem; }

/* ══════════════════════════════════════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════════════════════════════════════ */
.newsletter { padding: 2.5rem 1.5rem; background: #f8f7f5; }
.newsletter-inner { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; max-width: 720px; margin: 0 auto; }
.newsletter-text h3 { margin: 0 0 0.2rem; color: var(--dark); font-size: 1rem; font-weight: 700; }
.newsletter-text p  { margin: 0; color: var(--text-gray); font-size: 0.82rem; }
.newsletter-form { display: flex; flex: 1; min-width: 260px; max-width: 380px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); border-radius: var(--radius); overflow: hidden; }
.newsletter-form input  { flex: 1; padding: 0.75rem 1rem; border: none; font-size: 0.88rem; outline: none; }
.newsletter-form button { padding: 0.75rem 1.2rem; background: var(--primary); color: white; border: none; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: background var(--transition); white-space: nowrap; }
.newsletter-form button:hover { background: var(--primary-dk); }

/* ══════════════════════════════════════════════════════════════════════
   COLLECTION SECTION
══════════════════════════════════════════════════════════════════════ */
.collection-section { padding: 2rem 1.5rem 1rem; }
.collection-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; max-width: 1240px; margin: 0 auto 2rem; }
.collection-text { max-width: 520px; }
.collection-text h3 { margin: 0 0 0.8rem; color: #d28c5c; font-size: 1.4rem; font-weight: 700; }
.collection-text p  { margin: 0; color: #777; line-height: 1.7; font-size: 0.9rem; }

/* ══════════════════════════════════════════════════════════════════════
   STORY
══════════════════════════════════════════════════════════════════════ */
.story-behind { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 3rem 2rem; max-width: 1100px; margin: 0 auto; }
.story-image  { width: 100%; aspect-ratio: 1; background: var(--light-gray); border-radius: 8px; overflow: hidden; }
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.story-content h3 { color: var(--primary); margin-bottom: 0.5rem; font-size: 1.3rem; font-weight: 700; }
.story-content p  { margin-bottom: 1rem; line-height: 1.85; font-size: 0.9rem; }

/* ══════════════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════════════ */
footer { background: var(--dark); color: white; padding: 3rem 1.5rem 1.5rem; }
.footer-content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto 2rem; }
.footer-section h4 { margin-bottom: 1rem; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 1.5px; color: white; }
.footer-section p  { font-size: 0.82rem; line-height: 1.85; margin-bottom: 0.5rem; color: rgba(255,255,255,0.55); }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.55rem; }
.footer-section a  { color: rgba(255,255,255,0.55); transition: color var(--transition); font-size: 0.82rem; cursor: pointer; }
.footer-section a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.2rem; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.35); }

.social-icons { display: flex; gap: 0.6rem; margin-top: 1rem; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: rgba(255,255,255,0.07); border-radius: 50%; color: rgba(255,255,255,0.6); transition: all var(--transition); font-size: 0.85rem; }
.social-icons a:hover { background: var(--primary); color: white; transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════════════════════
   MODALS
══════════════════════════════════════════════════════════════════════ */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; align-items: center; justify-content: center; padding: 1rem; overflow-y: auto; backdrop-filter: blur(3px); }
.modal.active { display: flex; }
.modal-content { background: white; padding: 2rem; border-radius: 8px; width: 100%; max-width: 400px; position: relative; margin: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.modal-logo { text-align: center; margin-bottom: 1.5rem; }
.close-btn { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #aaa; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.close-btn:hover { background: var(--light-gray); color: var(--dark); }

/* ── Forms ───────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; color: var(--dark); font-weight: 500; font-size: 0.85rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.65rem 0.9rem; border: 1.5px solid #e5e5e5; border-radius: var(--radius);
  font-size: 0.88rem; outline: none; transition: border-color var(--transition); font-family: inherit; color: #333;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group.error input, .form-group.error textarea { border-color: var(--error); }
.error-message { color: var(--error); font-size: 0.75rem; margin-top: 0.3rem; display: none; }
.form-group.error .error-message { display: block; }
.form-btn { width: 100%; padding: 0.75rem; background: var(--primary); color: white; border: none; border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background var(--transition); letter-spacing: 0.5px; }
.form-btn:hover { background: var(--primary-dk); }
.toggle-form { text-align: center; margin-top: 0.9rem; font-size: 0.82rem; color: var(--text-gray); }
.toggle-form button { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 0.82rem; font-weight: 600; text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE
══════════════════════════════════════════════════════════════════════ */
.breadcrumb { padding: 0.7rem 1.5rem; background: #f8f7f5; border-bottom: 1px solid #eeebe6; font-size: 0.8rem; }
.breadcrumb a { color: var(--primary); cursor: pointer; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #bbb; margin: 0 0.4rem; }

.product-section { padding: 2rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.product-container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 2rem; align-items: start; }

.product-gallery { position: sticky; top: 1rem; }
.main-image-wrap { border-radius: 8px; overflow: hidden; aspect-ratio: 3/4; background: var(--light-gray); margin-bottom: 0.75rem; }
#product-main-img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s ease; }

.thumb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.thumb-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); cursor: pointer; border: 2px solid transparent; transition: border-color var(--transition), opacity var(--transition); opacity: 0.7; }
.thumb-img:hover { opacity: 1; }
.thumb-img.active { border-color: var(--primary); opacity: 1; }

.product-info-panel { display: flex; flex-direction: column; }
.product-title { font-size: 1.6rem; color: var(--dark); margin-bottom: 0.4rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }

.product-price-detail { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 0.5rem; }
.product-price-detail .price-main { color: var(--primary); font-size: 1.4rem; font-weight: 700; }
#product-old-price { color: #bbb; text-decoration: line-through; font-size: 1rem; }

.product-divider { height: 1px; background: #eee; margin: 1.2rem 0; }

.option-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--dark); margin-bottom: 0.5rem; display: block; }

.size-select { width: 100%; padding: 0.65rem 1rem; border: 1.5px solid #e0e0e0; border-radius: var(--radius); font-size: 0.88rem; cursor: pointer; outline: none; color: #333; transition: border-color var(--transition); background: white; }
.size-select:focus { border-color: var(--primary); }

.qty-row { display: flex; align-items: center; gap: 1rem; }
.qty-box { display: flex; align-items: center; border: 1.5px solid #e0e0e0; border-radius: var(--radius); overflow: hidden; }
.qty-box button { background: none; border: none; width: 38px; height: 38px; cursor: pointer; font-size: 1.1rem; color: var(--dark); display: flex; align-items: center; justify-content: center; transition: background var(--transition); font-weight: 600; }
.qty-box button:hover { background: var(--light-gray); }
.qty-box input { width: 44px; text-align: center; border: none; outline: none; font-size: 0.9rem; font-weight: 600; color: var(--dark); }

.color-swatches { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.color-swatch { width: 30px; height: 36px; border: 2.5px solid transparent; border-radius: var(--radius); cursor: pointer; transition: all var(--transition); box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
.color-swatch:hover  { transform: scale(1.15); }
.color-swatch.selected { border-color: var(--dark); transform: scale(1.1); }

.product-actions { display: flex; gap: 0.8rem; margin-top: 1.5rem; }
.add-to-cart-btn { flex: 1; padding: 0.85rem 1rem; background: var(--dark); color: white; border: none; border-radius: var(--radius); font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: background var(--transition); letter-spacing: 0.5px; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.add-to-cart-btn:hover { background: var(--primary); }
.wish-action-btn { width: 50px; height: 50px; border: 1.5px solid #e0e0e0; background: white; border-radius: var(--radius); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #bbb; transition: all var(--transition); flex-shrink: 0; }
.wish-action-btn:hover, .wish-action-btn.active { border-color: #e53935; color: #e53935; }

.accordion-section { border-top: 1px solid #eee; }
.accordion-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; color: var(--dark); font-weight: 600; user-select: none; transition: color var(--transition); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1.2px; padding: 1rem 0; }
.accordion-header:hover { color: var(--primary); }
.accordion-content { display: none; padding-bottom: 1rem; color: var(--text-gray); line-height: 1.85; font-size: 0.88rem; }
.accordion-content.active { display: block; }
.toggle-icon { font-size: 1rem; transition: transform 0.3s; }
.accordion-section.active .toggle-icon { transform: rotate(45deg); }

.similar-section { padding: 2.5rem 1.5rem; background: var(--light-gray); }

/* ══════════════════════════════════════════════════════════════════════
   CART PAGE
══════════════════════════════════════════════════════════════════════ */
.cart-page { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.cart-page h2 { color: var(--dark); font-size: 1.5rem; margin-bottom: 2rem; font-weight: 700; }

.cart-empty { text-align: center; padding: 5rem 1rem; }
.cart-empty i { font-size: 4rem; color: #ddd; margin-bottom: 1.2rem; display: block; }
.cart-empty p { color: var(--text-gray); margin-bottom: 1.5rem; font-size: 0.9rem; }

.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }

.cart-items-header { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 1rem; padding: 0 0 0.8rem; border-bottom: 2px solid #eee; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; color: #aaa; font-weight: 600; }

.cart-item {
  display: grid; grid-template-columns: 90px 1fr auto;
  gap: 1.2rem; padding: 1.3rem 0; border-bottom: 1px solid #f0f0f0; align-items: center;
}

.cart-item-img { width: 90px; height: 110px; border-radius: 6px; overflow: hidden; background: var(--light-gray); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-details { display: flex; flex-direction: column; gap: 0.4rem; }
.cart-item-name { font-weight: 700; color: var(--dark); font-size: 0.9rem; }
.cart-item-name:hover { color: var(--primary); }
.cart-item-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.meta-tag { background: var(--light-gray); color: var(--text-gray); padding: 0.15rem 0.5rem; border-radius: 20px; font-size: 0.72rem; font-weight: 500; }

.cart-item-price-row { display: flex; align-items: center; gap: 1.2rem; margin-top: 0.4rem; }
.cart-item-price { font-weight: 700; color: var(--primary); font-size: 0.92rem; }

.qty-controls { display: flex; align-items: center; border: 1.5px solid #e0e0e0; border-radius: 20px; overflow: hidden; }
.qty-controls button { background: none; border: none; padding: 0.3rem 0.65rem; cursor: pointer; font-size: 1rem; color: var(--dark); transition: background var(--transition); font-weight: 700; }
.qty-controls button:hover { background: var(--light-gray); }
.qty-controls span { min-width: 28px; text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--dark); }

.remove-btn { background: none; border: none; color: #ccc; cursor: pointer; font-size: 0.9rem; transition: color var(--transition); padding: 0.4rem; }
.remove-btn:hover { color: var(--error); }

.cart-summary { background: #f8f7f5; padding: 1.8rem; border-radius: 8px; position: sticky; top: 1rem; }
.cart-summary h3 { font-size: 0.88rem; color: var(--dark); margin-bottom: 1.2rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 0.55rem 0; font-size: 0.85rem; color: var(--text-gray); border-bottom: 1px solid #eeebe6; }
.cart-summary-row:last-of-type { border-bottom: none; }
.cart-total-row { display: flex; justify-content: space-between; padding: 1rem 0 0; font-weight: 700; font-size: 1rem; color: var(--dark); margin-top: 0.3rem; border-top: 2px solid #e0e0e0; }
.cart-total-row span:last-child { color: var(--primary); }

.checkout-btn { width: 100%; padding: 0.9rem; background: var(--dark); color: white; border: none; border-radius: var(--radius); font-size: 0.9rem; font-weight: 700; cursor: pointer; margin-top: 1.2rem; transition: background var(--transition); letter-spacing: 0.8px; }
.checkout-btn:hover { background: var(--primary); }
.clear-cart-btn { width: 100%; padding: 0.6rem; background: transparent; color: #aaa; border: 1px solid #e0e0e0; border-radius: var(--radius); font-size: 0.8rem; cursor: pointer; margin-top: 0.6rem; transition: all var(--transition); }
.clear-cart-btn:hover { border-color: var(--error); color: var(--error); }

.free-shipping-notice { background: rgba(46,125,50,0.08); border: 1px solid rgba(46,125,50,0.2); color: #2e7d32; border-radius: var(--radius); padding: 0.6rem 0.8rem; font-size: 0.78rem; text-align: center; margin-top: 0.8rem; }

/* ══════════════════════════════════════════════════════════════════════
   WISHLIST PAGE
══════════════════════════════════════════════════════════════════════ */
.wishlist-page { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.wishlist-page h2 { color: var(--dark); font-size: 1.5rem; margin-bottom: 2rem; font-weight: 700; }
.wishlist-empty { text-align: center; padding: 5rem 1rem; }
.wishlist-empty i { font-size: 4rem; color: #ddd; margin-bottom: 1.2rem; display: block; }
.wishlist-empty p { color: var(--text-gray); margin-bottom: 1.5rem; font-size: 0.9rem; }

/* ══════════════════════════════════════════════════════════════════════
   SEARCH & CATEGORY PAGES
══════════════════════════════════════════════════════════════════════ */
.search-page, .category-page { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.search-page h2, .category-page h2 { color: var(--dark); font-size: 1.5rem; margin-bottom: 0.5rem; font-weight: 700; }
.search-meta { color: var(--text-gray); font-size: 0.85rem; margin-bottom: 2rem; }

/* ══════════════════════════════════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════════════════════════════════ */
.contact-page { max-width: 920px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.contact-page > h2 { color: var(--dark); font-size: 1.5rem; margin-bottom: 0.4rem; font-weight: 700; }
.contact-page > p  { color: var(--text-gray); margin-bottom: 2.5rem; font-size: 0.9rem; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
.contact-info-block h3 { color: var(--dark); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.5rem; font-weight: 700; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-info-item i { color: var(--primary); font-size: 1rem; margin-top: 0.15rem; width: 18px; }
.contact-info-item strong { display: block; color: var(--dark); font-size: 0.85rem; margin-bottom: 0.15rem; }
.contact-info-item span  { font-size: 0.82rem; color: var(--text-gray); }
.contact-form h3 { color: var(--dark); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.5rem; font-weight: 700; }
.contact-form textarea { height: 130px; resize: vertical; }

/* ══════════════════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════════════════ */
#toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  background: var(--dark); color: white; padding: 0.8rem 1.1rem; border-radius: 6px;
  font-size: 0.85rem; display: flex; align-items: center; gap: 0.6rem;
  opacity: 0; transform: translateX(40px); transition: all 0.3s ease;
  max-width: 280px; box-shadow: 0 4px 16px rgba(0,0,0,0.2); pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(0); pointer-events: auto; }
.toast-success i { color: #66bb6a; }
.toast-error   i { color: #ef5350; }
.toast-warning i { color: #ffa726; }
.toast-info    i { color: #42a5f5; }

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; max-width: 420px; }
}

@media (max-width: 768px) {
  html { font-size: 14px; }
  .header-top, .main-header, .header-nav-bar { display: none; }
  .mobile-header { display: flex; }
  .menu-toggle { display: flex; }
  .hero { flex-direction: column; padding: 80px 1.2rem 2rem; gap: 1.5rem; }
  .hero-text h1 { font-size: 1.7rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }
  .story-behind { grid-template-columns: 1fr; }
  .collection-inner { flex-direction: column; }
  .product-container { grid-template-columns: 1fr; gap: 2rem; }
  .product-gallery { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .cart-drawer { width: 100%; right: -100%; }
  .cart-item { grid-template-columns: 75px 1fr auto; gap: 1rem; }
  .similar-section .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  html { font-size: 13px; }
  .hero { padding: 75px 1rem 1.5rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .sale h3 { font-size: 2.2rem; }
  .newsletter-inner { flex-direction: column; gap: 1rem; }
  .newsletter-form { width: 100%; max-width: 100%; }
  .modal-content { padding: 1.5rem; }
  #toast-container { right: 1rem; left: 1rem; }
  .toast { max-width: 100%; }
  .cart-items-header { display: none; }
  .small-card { transform: scale(1); }
  .small-card:hover { transform: translateY(-5px); }
}

@media (max-width: 360px) {
  html { font-size: 12px; }
  .products-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════
   DARK MODE  (.dark on <html>)
══════════════════════════════════════════════════════════════════════ */
.dark body                 { background: #111111; color: #ccc; }
.dark .header-top          { background: #0a0a0a; }
.dark .main-header         { background: #161616; border-bottom-color: #252525; }
.dark .header-nav a        { color: #aaa; }
.dark .logo                { color: #eee; border-color: #eee; }
.dark .logo:hover          { background: #eee; color: #111; }
.dark .header-nav-bar      { background: #0d0d0d; }
.dark .select              { background: #0d0d0d; border-color: rgba(255,255,255,0.1); }
.dark .search-box-header   { background: #1e1e1e; }
.dark .search-box-header input { background: #1e1e1e; color: #ddd; }
.dark .cart-total-box      { background: #1e1e1e; }
.dark .cart-amount         { color: #ddd; background: #1e1e1e; }
.dark .mobile-header       { background: #161616; border-bottom-color: #252525; }
.dark .hero                { background: #161616; }
.dark .hero-text h1        { color: var(--primary); }
.dark .popular-now, .dark .from-collection { background: #111; }
.dark .container-gray      { background: #181818; }
.dark .new-collection      { background: #181818; }
.dark .product-card        { background: #1e1e1e; border-color: rgba(255,255,255,0.05); }
.dark .product-name        { color: #e0e0e0; }
.dark .product-cat-label   { color: #666; }
.dark .sale                { background: #0a0a0a; }
.dark .newsletter          { background: #181818; }
.dark .newsletter-form input { background: #252525; border: none; color: #ddd; }
.dark .newsletter-text h3  { color: #e0e0e0; }
.dark .newsletter-text p   { color: #888; }
.dark .collection-section  { background: #111; }
.dark .collection-text p   { color: #777; }
.dark .story-behind        { background: #181818; }
.dark .story-content p     { color: #999; }
.dark footer               { background: #0a0a0a; }
.dark .footer-bottom       { border-top-color: rgba(255,255,255,0.05); }
/* Cart Drawer */
.dark .cart-drawer         { background: #1a1a1a; }
.dark .cart-drawer-header  { border-bottom-color: #2a2a2a; }
.dark .cart-drawer-header h3 { color: #e0e0e0; }
.dark .drawer-close-btn    { color: #777; }
.dark .drawer-close-btn:hover { background: #2a2a2a; color: #ddd; }
.dark .drawer-item         { border-bottom-color: #222; }
.dark .drawer-item:hover   { background: #212121; }
.dark .drawer-item-name    { color: #e0e0e0; }
.dark .drawer-item-meta    { color: #666; }
.dark .drawer-qty          { border-color: #333; }
.dark .drawer-qty-btn:hover { background: #2a2a2a; }
.dark .drawer-qty span     { color: #e0e0e0; }
.dark .drawer-remove       { color: #555; }
.dark .cart-drawer-footer  { border-top-color: #2a2a2a; background: #1a1a1a; }
.dark .drawer-summary-row  { color: #888; }
.dark .drawer-total-row    { color: #e0e0e0; border-top-color: #2a2a2a; }
.dark .drawer-view-cart-btn { border-color: #444; color: #aaa; }
.dark .drawer-view-cart-btn:hover { background: #444; color: white; }
/* Modals */
.dark .modal-content      { background: #1a1a1a; }
.dark .modal-content h2   { color: #e0e0e0; }
.dark .close-btn          { color: #666; }
.dark .close-btn:hover    { background: #252525; color: #ddd; }
.dark .form-group label   { color: #ccc; }
.dark .form-group input, .dark .form-group textarea, .dark .form-group select {
  background: #252525; border-color: #333; color: #ddd;
}
.dark .form-group input:focus, .dark .form-group textarea:focus { border-color: var(--primary); }
.dark .toggle-form        { color: #777; }
/* Cart page */
.dark .cart-page h2       { color: #e0e0e0; }
.dark .cart-item          { border-bottom-color: #222; }
.dark .cart-item-name     { color: #e0e0e0; }
.dark .meta-tag           { background: #2a2a2a; color: #888; }
.dark .qty-controls       { border-color: #333; }
.dark .qty-controls span  { color: #e0e0e0; }
.dark .qty-controls button:hover { background: #2a2a2a; }
.dark .cart-summary       { background: #1a1a1a; }
.dark .cart-summary h3    { color: #e0e0e0; }
.dark .cart-summary-row   { color: #888; border-bottom-color: #252525; }
.dark .cart-total-row     { color: #e0e0e0; border-top-color: #333; }
.dark .clear-cart-btn     { border-color: #333; color: #666; }
.dark .free-shipping-notice { background: rgba(46,125,50,0.15); }
/* Product detail */
.dark .breadcrumb         { background: #181818; border-bottom-color: #252525; }
.dark .breadcrumb span    { color: #555; }
.dark .product-title      { color: #e0e0e0; }
.dark .main-image-wrap    { background: #1e1e1e; }
.dark .product-info-panel { background: transparent; }
.dark .option-label       { color: #ccc; }
.dark .size-select        { background: #1e1e1e; border-color: #333; color: #ddd; }
.dark .size-select:focus  { border-color: var(--primary); }
.dark .qty-box            { border-color: #333; }
.dark .qty-box button:hover { background: #2a2a2a; }
.dark .qty-box input      { background: transparent; color: #e0e0e0; }
.dark .wish-action-btn    { border-color: #333; background: #1e1e1e; color: #666; }
.dark .product-divider    { background: #252525; }
.dark .accordion-section  { border-top-color: #252525; }
.dark .accordion-header   { color: #ccc; }
.dark .accordion-content  { color: #888; }
.dark .similar-section    { background: #161616; }
/* Wishlist & Search & Category */
.dark .wishlist-page h2, .dark .search-page h2, .dark .category-page h2 { color: #e0e0e0; }
.dark .wishlist-empty i, .dark .cart-empty i { color: #333; }
/* Contact */
.dark .contact-page > h2   { color: #e0e0e0; }
.dark .contact-page > p    { color: #777; }
.dark .contact-info-item strong { color: #ccc; }
.dark .contact-info-item span   { color: #777; }
.dark .contact-info-block h3, .dark .contact-form h3 { color: #ccc; }

/* ══════════════════════════════════════════════════════════════════════
   RTL SUPPORT  (dir="rtl" on <html>)
══════════════════════════════════════════════════════════════════════ */
[dir="rtl"] body                      { text-align: right; }
[dir="rtl"] .header-top               { flex-direction: row-reverse; }
[dir="rtl"] .contact-info             { flex-direction: row-reverse; }
[dir="rtl"] .header-auth              { flex-direction: row-reverse; }
[dir="rtl"] .main-header              { flex-direction: row-reverse; }
[dir="rtl"] .header-nav               { flex-direction: row-reverse; }
[dir="rtl"] .header-nav-bar           { flex-direction: row-reverse; }
[dir="rtl"] .nav-left                 { flex-direction: row-reverse; }
[dir="rtl"] .nav-center               { flex-direction: row-reverse; }
[dir="rtl"] .nav-right                { flex-direction: row-reverse; }
[dir="rtl"] .mobile-header            { flex-direction: row-reverse; }
[dir="rtl"] .mobile-nav               { text-align: right; }
[dir="rtl"] .mobile-nav-header        { flex-direction: row-reverse; }
[dir="rtl"] .hero                     { flex-direction: row-reverse; }
[dir="rtl"] .hero-text                { text-align: right; }
[dir="rtl"] .newsletter-inner         { flex-direction: row-reverse; }
[dir="rtl"] .collection-inner         { flex-direction: row-reverse; }
[dir="rtl"] .collection-text          { text-align: right; }
[dir="rtl"] .story-behind             { direction: rtl; }
[dir="rtl"] .story-content            { text-align: right; }
[dir="rtl"] .footer-content           { direction: rtl; }
[dir="rtl"] .footer-section           { text-align: right; }
[dir="rtl"] .social-icons             { flex-direction: row-reverse; }
[dir="rtl"] .product-info             { text-align: right; }
[dir="rtl"] .product-price-row        { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .card-hover-bar           { flex-direction: row-reverse; }
/* Cart Drawer RTL — slides from left */
[dir="rtl"] .cart-drawer              { right: auto; left: -440px; transition: left 0.35s cubic-bezier(0.4,0,0.2,1); }
[dir="rtl"] .cart-drawer.open         { right: auto; left: 0; }
[dir="rtl"] .cart-drawer-header       { flex-direction: row-reverse; }
[dir="rtl"] .drawer-item              { direction: rtl; }
[dir="rtl"] .drawer-item-info         { text-align: right; }
[dir="rtl"] .drawer-item-row          { flex-direction: row-reverse; }
[dir="rtl"] .cart-drawer-footer       { direction: rtl; }
[dir="rtl"] .drawer-summary-row       { flex-direction: row-reverse; }
[dir="rtl"] .drawer-total-row         { flex-direction: row-reverse; }
/* Product detail RTL */
[dir="rtl"] .product-container        { direction: rtl; }
[dir="rtl"] .product-info-panel       { text-align: right; }
[dir="rtl"] .product-price-detail     { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .product-actions          { flex-direction: row-reverse; }
[dir="rtl"] .accordion-header         { flex-direction: row-reverse; }
[dir="rtl"] .color-swatches           { flex-direction: row-reverse; }
[dir="rtl"] .qty-row                  { flex-direction: row-reverse; }
[dir="rtl"] .thumb-row                { direction: rtl; }
/* Cart page RTL */
[dir="rtl"] .cart-layout              { direction: rtl; }
[dir="rtl"] .cart-item                { direction: rtl; }
[dir="rtl"] .cart-item-details        { text-align: right; }
[dir="rtl"] .cart-item-price-row      { flex-direction: row-reverse; }
[dir="rtl"] .cart-item-meta           { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .cart-summary-row         { flex-direction: row-reverse; }
[dir="rtl"] .cart-total-row           { flex-direction: row-reverse; }
/* Contact RTL */
[dir="rtl"] .contact-layout           { direction: rtl; }
[dir="rtl"] .contact-info-item        { flex-direction: row-reverse; text-align: right; }
/* Modals RTL */
[dir="rtl"] .modal-content            { text-align: right; direction: rtl; }
[dir="rtl"] .toggle-form              { direction: rtl; }
[dir="rtl"] .checkout-layout          { direction: rtl; }
[dir="rtl"] .co-item                  { direction: rtl; }
[dir="rtl"] .co-totals-row            { flex-direction: row-reverse; }
[dir="rtl"] .co-total-row             { flex-direction: row-reverse; }
/* Mobile RTL — cart drawer width override */
@media (max-width: 768px) {
  [dir="rtl"] .cart-drawer { left: -100%; right: auto; }
  [dir="rtl"] .cart-drawer.open { left: 0; right: auto; }
}

/* ══════════════════════════════════════════════════════════════════════
   DARK MODE TOGGLE BUTTON
══════════════════════════════════════════════════════════════════════ */
.dark-toggle {
  background: none; border: none; cursor: pointer; font-size: 0.95rem;
  color: rgba(255,255,255,0.75); transition: color var(--transition), transform var(--transition);
  padding: 0.2rem 0.3rem; border-radius: 50%;
}
.dark-toggle:hover { color: var(--primary); transform: rotate(20deg); }

/* ══════════════════════════════════════════════════════════════════════
   VALIDATION — shake + error states
══════════════════════════════════════════════════════════════════════ */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-7px); }
  40%     { transform: translateX(7px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}
.shake { animation: shake 0.38s ease; }

.input-error { border-color: #e53935 !important; box-shadow: 0 0 0 3px rgba(229,57,53,0.12) !important; }

.colors-error { outline: 2px solid #e53935; outline-offset: 4px; border-radius: 4px; }

.field-error-msg {
  color: #e53935; font-size: 0.75rem; margin-top: 0.35rem;
  display: flex; align-items: center; gap: 0.3rem;
}
.field-error-msg i { font-size: 0.7rem; }

/* ══════════════════════════════════════════════════════════════════════
   CHECKOUT MODAL
══════════════════════════════════════════════════════════════════════ */
.checkout-modal-content {
  max-width: 780px !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 10px !important;
}

.checkout-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.8rem; border-bottom: 1px solid var(--border, #eee);
  background: var(--bg-surface, #f8f7f5);
}
.checkout-modal-header h2 { font-size: 1rem; font-weight: 700; color: var(--dark); letter-spacing: 0.3px; }
.checkout-close-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #aaa; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all var(--transition, 0.25s); }
.checkout-close-btn:hover { background: #e0e0e0; color: #333; }

.checkout-layout { display: grid; grid-template-columns: 1fr 1.1fr; }

/* Order summary panel */
.checkout-summary { padding: 1.5rem 1.8rem; background: #f8f7f5; border-right: 1px solid #eee; }
.checkout-summary h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--dark); font-weight: 700; margin-bottom: 1.2rem; }

.co-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 0.8rem; padding: 0.7rem 0; border-bottom: 1px solid #eeebe6; align-items: center; }
.co-item:last-of-type { border-bottom: none; }
.co-item-img { width: 52px; height: 64px; border-radius: 4px; background-size: cover; background-position: center; background-color: #e0e0e0; }
.co-item-name { font-size: 0.82rem; font-weight: 600; color: var(--dark); line-height: 1.3; }
.co-item-meta { font-size: 0.72rem; color: #aaa; margin-top: 0.2rem; }
.co-item-price { font-size: 0.85rem; font-weight: 700; color: var(--primary); white-space: nowrap; }

.co-totals { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid #eee; }
.co-totals-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-gray); padding: 0.3rem 0; }
.co-total-row  { display: flex; justify-content: space-between; font-size: 0.95rem; font-weight: 700; color: var(--dark); padding: 0.7rem 0 0; margin-top: 0.3rem; border-top: 2px solid #e0e0e0; }
.co-total-row span:last-child { color: var(--primary); }

/* Form panel */
.checkout-form-panel { padding: 1.5rem 1.8rem; overflow-y: auto; max-height: 80vh; }
.checkout-form-panel h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--dark); font-weight: 700; margin-bottom: 1.2rem; }
.checkout-form-panel .form-group { margin-bottom: 1rem; }
.checkout-form-panel .form-group label { font-size: 0.8rem; color: #555; margin-bottom: 0.3rem; }
.checkout-form-panel .form-group input,
.checkout-form-panel .form-group select,
.checkout-form-panel .form-group textarea {
  padding: 0.6rem 0.85rem; font-size: 0.88rem; border: 1.5px solid #e0e0e0; border-radius: 4px; outline: none;
}
.checkout-form-panel .form-group input:focus,
.checkout-form-panel .form-group select:focus,
.checkout-form-panel .form-group textarea:focus { border-color: var(--primary); }
.checkout-form-panel textarea { height: 80px; resize: vertical; }

.co-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

.place-order-btn {
  width: 100%; padding: 0.9rem; background: var(--dark); color: white;
  border: none; border-radius: 4px; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: background var(--transition, 0.25s);
  letter-spacing: 0.8px; margin-top: 1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.place-order-btn:hover { background: var(--primary); }
.place-order-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.secure-notice { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: #aaa; margin-top: 0.6rem; justify-content: center; }

/* Order Success Modal */
.order-success-content { max-width: 420px !important; text-align: center; padding: 2.5rem 2rem !important; }
.order-success-icon { font-size: 4rem; color: #4caf50; margin-bottom: 1rem; }
.order-success-content h2 { color: var(--dark); font-size: 1.3rem; margin-bottom: 0.8rem; }
.order-success-content p { color: var(--text-gray); font-size: 0.88rem; margin-bottom: 0.5rem; line-height: 1.7; }
.order-id-badge { display: inline-block; background: var(--light-gray); color: var(--dark); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; margin: 0.5rem 0 1.2rem; }
.order-success-btn { padding: 0.75rem 2rem; background: var(--dark); color: white; border: none; border-radius: 4px; font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: background var(--transition, 0.25s); letter-spacing: 0.5px; }
.order-success-btn:hover { background: var(--primary); }

/* Dark mode — checkout */
.dark .checkout-summary         { background: #1a1a1a; border-right-color: #252525; }
.dark .checkout-modal-header    { background: #161616; border-bottom-color: #252525; }
.dark .checkout-modal-header h2 { color: #e0e0e0; }
.dark .checkout-close-btn:hover { background: #2a2a2a; color: #ddd; }
.dark .co-item                  { border-bottom-color: #2a2a2a; }
.dark .co-item-name             { color: #e0e0e0; }
.dark .co-totals                { border-top-color: #2a2a2a; }
.dark .co-totals-row            { color: #888; }
.dark .co-total-row             { color: #e0e0e0; border-top-color: #333; }
.dark .checkout-form-panel h3   { color: #ccc; }
.dark .checkout-form-panel .form-group label { color: #888; }
.dark .checkout-form-panel input,
.dark .checkout-form-panel select,
.dark .checkout-form-panel textarea { background: #1e1e1e; border-color: #333; color: #ddd; }
.dark .order-success-content h2 { color: #e0e0e0; }
.dark .order-id-badge           { background: #2a2a2a; color: #ddd; }

/* Checkout responsive */
@media (max-width: 640px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { border-right: none; border-bottom: 1px solid #eee; max-height: 220px; overflow-y: auto; }
  .checkout-form-panel { max-height: none; }
  .co-form-row { grid-template-columns: 1fr; }
  [dir="rtl"] .checkout-summary { border-right: none; border-bottom: 1px solid #2a2a2a; }
}

/* ══════════════════════════════════════════════════════════════════════
   CART DRAWER — shipping row addition
══════════════════════════════════════════════════════════════════════ */
.drawer-shipping-row { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-gray); padding: 0.2rem 0; }
