/* ==========================================
   INDRANOTEBOOK — Premium Design System
   ========================================== */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* === Design Tokens === */
:root {
  --primary: #084c54;        /* Dark Teal from Logo */
  --primary-light: #0d6d78;
  --primary-lighter: #15919e;
  --accent: #fd7e14;         /* Orange from Logo */
  --accent-light: #ff922b;
  --accent-dark: #e8590c;
  --surface: #fffcf9;
  --surface-alt: #fff5eb;
  --surface-dark: #fde8d4;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --text-light: #444444;
  --text-lighter: #888888;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #c9e0e3;
  --success: #2d8f5e;
  --error: #c7384f;
  --info: #3a7bd5;
  --warning: #e8a83e;
  --border: #f1ebd5;
  --border-light: #f9f3e5;
  --shadow-sm: 0 2px 8px rgba(10,22,40,0.06);
  --shadow-md: 0 4px 20px rgba(10,22,40,0.08);
  --shadow-lg: 0 8px 40px rgba(10,22,40,0.12);
  --shadow-xl: 0 16px 60px rgba(10,22,40,0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
  --header-height: 72px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
input, select, textarea { font-family: var(--font-body); border: none; outline: none; }

/* === Typography === */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { color: var(--text-light); line-height: 1.7; }

/* === Layout === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-dark { background: var(--primary); color: var(--text-on-dark); }
.section-dark h2, .section-dark h3 { color: var(--text-on-dark); }
.section-dark p { color: var(--text-on-dark-muted); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header .accent-line { width: 60px; height: 3px; background: var(--accent); margin: 16px auto; border-radius: 2px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-full); font-weight: 600;
  font-size: 0.95rem; transition: all var(--transition); letter-spacing: 0.3px;
}
.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,169,81,0.3); }
.btn-secondary { background: var(--primary); color: var(--text-on-dark); }
.btn-secondary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { border: 2px solid var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: var(--primary); }
.btn-ghost { color: var(--text); padding: 8px 16px; }
.btn-ghost:hover { color: var(--accent); background: rgba(200,169,81,0.08); }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: var(--radius-full); display: inline-flex; align-items: center; justify-content: center; }
.btn-icon:hover { background: var(--surface-alt); }
.btn-cart { background: var(--accent); color: var(--primary); }
.btn-cart:hover { background: var(--accent-light); }

/* === Header === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-height); background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); background: rgba(255,255,255,0.98); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.logo { display: flex; align-items: center; height: 100%; }
.logo img { height: 45px; width: auto; object-fit: contain; }
@media (max-width: 768px) {
  .logo img { height: 35px; }
}
.logo span { display: none; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; color: var(--text); position: relative; padding: 4px 0; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.header-actions .btn-icon { position: relative; font-size: 1.2rem; width: 40px; height: 40px; color: var(--text); }
.header-actions .btn-icon:hover { color: var(--accent); }
.badge-count {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px;
  background: var(--error); color: #fff; font-size: 0.65rem; font-weight: 700;
  border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* Mobile menu */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--text); transition: all var(--transition); border-radius: 2px; }

/* === Announcement Bar === */
.announcement-bar {
  background: var(--primary); color: var(--text-on-dark); text-align: center;
  padding: 8px 16px; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.5px;
}
.announcement-bar span { color: var(--accent); font-weight: 700; }

/* === Hero === */
.hero {
  min-height: 85vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1a3a5c 100%);
  position: relative; overflow: hidden; margin-top: var(--header-height);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(200,169,81,0.08) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero-content .tag { display: inline-block; padding: 6px 16px; background: rgba(200,169,81,0.15); border: 1px solid rgba(200,169,81,0.3); color: var(--accent-light); border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 500; margin-bottom: 20px; letter-spacing: 1px; text-transform: uppercase; }
.hero-content h1 { color: #fff; font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 20px; }
.hero-content h1 span { color: var(--accent-light); }
.hero-content p { color: var(--text-on-dark-muted); font-size: 1.1rem; margin-bottom: 32px; max-width: 480px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); width: 45%; max-width: 550px; }
.hero-visual .notebook-stack { position: relative; }
.notebook-card {
  width: 280px; height: 380px; border-radius: 12px; position: absolute;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3); transition: all 0.5s ease;
}
.notebook-card:nth-child(1) { background: linear-gradient(145deg, #1a3a5c, #0f2540); top: -20px; left: 0; transform: rotate(-8deg); z-index: 3; }
.notebook-card:nth-child(2) { background: linear-gradient(145deg, #8b2252, #5c1636); top: 20px; left: 60px; transform: rotate(-2deg); z-index: 2; }
.notebook-card:nth-child(3) { background: linear-gradient(145deg, #1a5c3a, #0f4028); top: 60px; left: 120px; transform: rotate(5deg); z-index: 1; }
.notebook-card .nb-lines { position: absolute; top: 50%; left: 15%; right: 15%; }
.notebook-card .nb-lines span { display: block; height: 1px; background: rgba(255,255,255,0.15); margin-bottom: 12px; }
.notebook-card .nb-lines span:last-child { width: 60%; }
.notebook-card .nb-logo { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-family: var(--font-heading); color: rgba(255,255,255,0.3); font-size: 0.8rem; letter-spacing: 2px; }
.hero-float { position: absolute; border-radius: 50%; animation: float 6s ease-in-out infinite; }
.hero-float:nth-child(1) { width: 80px; height: 80px; background: rgba(200,169,81,0.06); top: 15%; right: 10%; animation-delay: 0s; }
.hero-float:nth-child(2) { width: 120px; height: 120px; background: rgba(200,169,81,0.04); bottom: 20%; left: 5%; animation-delay: 2s; }
.hero-float:nth-child(3) { width: 60px; height: 60px; background: rgba(200,169,81,0.08); top: 60%; right: 40%; animation-delay: 4s; }

/* === Product Card === */
.product-card {
  background: var(--card-bg); border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition); border: 1px solid var(--border-light);
  position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card .card-img {
  position: relative; overflow: hidden; aspect-ratio: 1/1.1;
  background: var(--surface-alt); display: flex; align-items: center; justify-content: center;
}
.product-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.product-card:hover .card-img img { transform: scale(1.05); }
.product-card .card-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.product-card .badge { padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.badge-new { background: var(--info); color: #fff; }
.badge-sale { background: var(--error); color: #fff; }
.badge-wholesale { background: var(--primary); color: #fff; }
.badge-best { background: var(--success); color: #fff; }
.product-card .card-actions {
  position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateX(10px); transition: all var(--transition);
}
.product-card:hover .card-actions { opacity: 1; transform: translateX(0); }
.card-actions .action-btn {
  width: 36px; height: 36px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text); transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.card-actions .action-btn:hover { background: var(--accent); color: var(--primary); }
.card-actions .action-btn.wishlisted { color: var(--error); }
.product-card .card-body { padding: 16px 20px 20px; }
.product-card .card-category { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-dark); font-weight: 600; margin-bottom: 6px; }
.product-card .card-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 8px; transition: color var(--transition-fast); }
.product-card .card-title:hover { color: var(--accent-dark); }
.product-card .card-price { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-price .current { font-size: 1.15rem; font-weight: 700; color: var(--primary); }
.card-price .original { font-size: 0.9rem; color: var(--text-lighter); text-decoration: line-through; }
.card-price .discount { font-size: 0.8rem; color: var(--success); font-weight: 600; }
.product-card .card-rating { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; }
.card-rating .stars { color: var(--accent); }
.card-rating .count { color: var(--text-lighter); margin-left: 4px; }
.product-card .quick-add {
  width: 100%; padding: 10px; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff; font-weight: 600;
  font-size: 0.85rem; margin-top: 12px; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.product-card .quick-add:hover { background: var(--accent); color: var(--primary); }

/* === Categories === */
.category-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 1; cursor: pointer; transition: all var(--transition);
}
.category-card:hover { transform: translateY(-4px); }
.category-card .cat-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; transition: transform var(--transition-slow);
}
.category-card:hover .cat-bg { transform: scale(1.08); }
.category-card .cat-overlay {
  position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(10,22,40,0.85));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
}
.category-card .cat-name { font-family: var(--font-heading); font-size: 1.2rem; color: #fff; font-weight: 600; }
.category-card .cat-count { font-size: 0.85rem; color: var(--text-on-dark-muted); }

/* === Features Bar === */
.features-bar { background: var(--card-bg); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); padding: 32px 0; }
.features-bar .grid { gap: 0; }
.feature-item { text-align: center; padding: 16px; border-right: 1px solid var(--border-light); }
.feature-item:last-child { border-right: none; }
.feature-item .icon { font-size: 2rem; margin-bottom: 8px; }
.feature-item h4 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.feature-item p { font-size: 0.8rem; color: var(--text-lighter); }

/* === Wholesale CTA Section === */
.wholesale-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  position: relative; overflow: hidden;
}
.wholesale-cta::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8a951' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.wholesale-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; position: relative; z-index: 1; }
.wholesale-cta h2 { color: #fff; margin-bottom: 16px; }
.wholesale-cta p { color: var(--text-on-dark-muted); max-width: 500px; margin-bottom: 8px; }
.wholesale-perks { display: flex; gap: 24px; margin-top: 20px; flex-wrap: wrap; }
.wholesale-perks .perk { display: flex; align-items: center; gap: 8px; color: var(--accent-light); font-size: 0.9rem; font-weight: 500; }

/* === Footer === */
.site-footer { background: var(--primary); color: var(--text-on-dark); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .footer-col { text-align: center; }
  .social-links { justify-content: center; }
}
.footer-brand .logo { font-size: 1.8rem; margin-bottom: 16px; }
.footer-brand p { color: var(--text-on-dark-muted); font-size: 0.9rem; max-width: 280px; margin-bottom: 20px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; transition: all var(--transition);
}
.social-links a:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.footer-col h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: var(--text-on-dark-muted); font-size: 0.9rem; transition: all var(--transition-fast); }
.footer-col ul a:hover { color: var(--accent-light); padding-left: 4px; }
.footer-newsletter input {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: #fff; margin-bottom: 12px; font-size: 0.9rem;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer-bottom { padding: 24px 0; text-align: center; }
.footer-bottom p { color: var(--text-on-dark-muted); font-size: 0.85rem; }

/* === Shop Page === */
.page-header { padding: 120px 0 40px; padding-top: calc(var(--header-height) + 60px); background: var(--primary); text-align: center; margin-top: 0; }
.page-header h1 { color: #fff; margin-bottom: 8px; }
.page-header .breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.9rem; color: var(--text-on-dark-muted); }
.page-header .breadcrumb a { color: var(--accent-light); }
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 40px 0; }
.shop-sidebar { position: sticky; top: calc(var(--header-height) + 20px); height: fit-content; }
.filter-group { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.filter-group h4 { font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-group label { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 0.9rem; color: var(--text-light); cursor: pointer; }
.filter-group input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 80px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: center; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.shop-toolbar .result-count { font-size: 0.9rem; color: var(--text-light); }
.sort-select { padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; background: var(--card-bg); }

/* === Product Detail === */
.product-detail { padding: 40px 0 80px; margin-top: var(--header-height); }
.product-gallery { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 8px; }
.gallery-thumbs .thumb {
  width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid transparent; cursor: pointer; transition: border-color var(--transition-fast);
  background: var(--surface-alt); display: flex; align-items: center; justify-content: center;
}
.gallery-thumbs .thumb.active { border-color: var(--accent); }
.gallery-main {
  aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-alt); display: flex; align-items: center; justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding-left: 40px; }
.product-info .category-tag { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-dark); font-weight: 600; margin-bottom: 8px; }
.product-info h1 { font-size: 2rem; margin-bottom: 12px; }
.product-info .price-wrap { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.product-info .price-wrap .price { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.product-info .price-wrap .mrp { text-decoration: line-through; color: var(--text-lighter); font-size: 1.1rem; }
.product-info .price-wrap .save { background: rgba(45,143,94,0.1); color: var(--success); padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; }
.product-info .rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.product-info .description { color: var(--text-light); margin-bottom: 24px; line-height: 1.7; }
.variation-group { margin-bottom: 20px; }
.variation-group label { font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; display: block; }
.variation-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variation-options .var-btn {
  padding: 8px 20px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; transition: all var(--transition-fast); cursor: pointer;
  background: var(--card-bg);
}
.variation-options .var-btn:hover { border-color: var(--accent); }
.variation-options .var-btn.selected { border-color: var(--accent); background: rgba(200,169,81,0.08); color: var(--primary); }
.qty-selector { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; }
.qty-selector button { width: 40px; height: 40px; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; background: var(--surface-alt); }
.qty-selector button:hover { background: var(--surface-dark); }
.qty-selector input { width: 50px; height: 40px; text-align: center; font-weight: 600; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.add-actions { display: flex; gap: 12px; margin-top: 24px; }

/* === Cart Page === */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; padding: 40px 0 80px; }
.cart-item {
  display: grid; grid-template-columns: 100px 1fr auto; gap: 20px; align-items: center;
  padding: 20px; border-radius: var(--radius-md); background: var(--card-bg);
  border: 1px solid var(--border-light); margin-bottom: 12px;
}
.cart-item .item-img { width: 100px; height: 100px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-alt); display: flex; align-items: center; justify-content: center; }
.cart-item .item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .item-name { font-weight: 600; margin-bottom: 4px; }
.cart-item .item-variant { font-size: 0.85rem; color: var(--text-lighter); }
.cart-item .item-price { font-weight: 700; color: var(--primary); }
.cart-item .remove-btn { color: var(--text-lighter); font-size: 0.85rem; cursor: pointer; }
.cart-item .remove-btn:hover { color: var(--error); }
.cart-summary {
  background: var(--card-bg); border-radius: var(--radius-lg); padding: 28px;
  border: 1px solid var(--border-light); height: fit-content; position: sticky;
  top: calc(var(--header-height) + 20px);
}
.cart-summary h3 { margin-bottom: 20px; font-size: 1.2rem; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 0.95rem; }
.summary-row.total { border-top: 2px solid var(--border); padding-top: 16px; margin-top: 8px; font-weight: 700; font-size: 1.15rem; }
.cart-summary .btn { width: 100%; margin-top: 16px; }

/* === Checkout === */
.checkout-layout { display: grid; grid-template-columns: 1fr 420px; gap: 32px; padding: 40px 0 80px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.95rem; background: var(--card-bg);
  transition: border-color var(--transition-fast);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* === Wishlist === */
.wishlist-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0 80px; }
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state .icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--text-lighter); margin-bottom: 24px; }

/* === Wholesale Page === */
.wholesale-hero {
  min-height: 50vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--primary), #1a3a5c);
  margin-top: var(--header-height); padding-top: calc(var(--header-height) + 20px); text-align: center;
}
.pricing-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tier-card {
  background: var(--card-bg); border-radius: var(--radius-lg); padding: 32px;
  border: 2px solid var(--border-light); text-align: center; transition: all var(--transition);
}
.tier-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.tier-card.popular { border-color: var(--accent); position: relative; }
.tier-card.popular::before {
  content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--primary); padding: 4px 16px; border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
}
.tier-card h3 { margin-bottom: 8px; }
.tier-card .tier-price { font-size: 2rem; font-weight: 700; color: var(--accent-dark); margin: 16px 0; }
.tier-card .tier-price span { font-size: 0.9rem; color: var(--text-lighter); font-weight: 400; }
.tier-card ul li { padding: 8px 0; font-size: 0.9rem; color: var(--text-light); border-bottom: 1px solid var(--border-light); }

/* === Admin === */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--primary); padding: 24px 0; }
.admin-sidebar .logo { padding: 0 24px; margin-bottom: 32px; }
.admin-sidebar nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: var(--text-on-dark-muted);
  font-size: 0.95rem; transition: all var(--transition-fast); border-left: 3px solid transparent;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,0.05); color: #fff; border-left-color: var(--accent); }
.admin-main { padding: 24px 32px; background: var(--surface); }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--card-bg); padding: 24px; border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.stat-card .label { font-size: 0.85rem; color: var(--text-lighter); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card .value { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-card .change { font-size: 0.85rem; color: var(--success); margin-top: 4px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card-bg); border-radius: var(--radius-md); overflow: hidden; }
.admin-table th { background: var(--surface-alt); padding: 12px 16px; text-align: left; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); font-size: 0.9rem; }
.admin-table tr:hover td { background: var(--surface); }
.status-badge { padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.status-pending { background: #fef3cd; color: #856404; }
.status-completed { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* === Toast === */
.toast-container { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 9999; }
.toast {
  padding: 14px 20px; border-radius: var(--radius-md); background: var(--primary);
  color: #fff; font-size: 0.9rem; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-xl); animation: slideInRight 0.4s ease, fadeOut 0.4s ease 2.6s forwards;
  min-width: 280px;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }
.toast.info { border-left: 4px solid var(--info); }

/* === Modal === */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,22,40,0.6); backdrop-filter: blur(4px);
  z-index: 9998; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--card-bg); border-radius: var(--radius-lg); padding: 32px;
  max-width: 500px; width: 90%; max-height: 85vh; overflow-y: auto;
  transform: translateY(20px); transition: transform var(--transition);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-close { font-size: 1.5rem; cursor: pointer; color: var(--text-lighter); }
.modal-close:hover { color: var(--text); }

/* === Animations === */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(100%); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.animate-in { animation: fadeInUp 0.6s ease forwards; opacity: 0; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* === Responsive === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { display: none; }
  .hero-visual { display: none; }
  .hero { min-height: 60vh; }
  .wholesale-cta .container { flex-direction: column; text-align: center; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .pricing-tiers { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --header-height: 60px; }
  .container { padding: 0 16px; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid { gap: 14px; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }

  /* Header mobile */
  .site-header { height: var(--header-height); }
  .header-inner { padding: 0 12px; }
  .logo { font-size: 1.35rem; }
  .header-actions { gap: 2px; }
  .header-actions .btn-icon { width: 36px; height: 36px; }
  .header-actions .btn-icon svg { width: 18px; height: 18px; }
  .header-search-btn { display: none; }
  .badge-count { top: 0; right: 0; min-width: 16px; height: 16px; font-size: 0.6rem; }

  /* Announcement bar */
  .announcement-bar { font-size: 0.75rem; padding: 6px 12px; }

  /* Hero */
  .hero { min-height: auto; padding: 60px 0 50px; }
  .hero-content { max-width: 100%; }
  .hero-content .tag { font-size: 0.72rem; padding: 5px 12px; margin-bottom: 16px; }
  .hero-content h1 { font-size: 1.75rem; margin-bottom: 14px; }
  .hero-content p { font-size: 0.95rem; margin-bottom: 24px; }
  .hero-buttons { gap: 10px; }
  .hero-buttons .btn { width: 100%; padding: 14px 24px; font-size: 0.95rem; }

  /* Features bar */
  .features-bar .grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item { border-right: none; border-bottom: 1px solid var(--border-light); padding: 14px 8px; }
  .feature-item .icon { font-size: 1.5rem; margin-bottom: 4px; }
  .feature-item h4 { font-size: 0.85rem; }
  .feature-item p { font-size: 0.72rem; }
  .feature-item:nth-child(3), .feature-item:nth-child(4) { border-bottom: none; }
  .feature-item:nth-child(odd) { border-right: 1px solid var(--border-light); }

  /* Category cards */
  .category-card { aspect-ratio: 1.4; }
  .category-card .cat-bg { font-size: 2.5rem; }
  .category-card .cat-overlay { padding: 14px; }
  .category-card .cat-name { font-size: 0.9rem; }
  .category-card .cat-count { font-size: 0.75rem; }

  /* Product cards */
  .product-card .card-img { aspect-ratio: 1; }
  .product-card .card-body { padding: 12px 14px 14px; }
  .product-card .card-category { font-size: 0.68rem; letter-spacing: 0.8px; margin-bottom: 4px; }
  .product-card .card-title { font-size: 0.88rem; line-height: 1.3; margin-bottom: 6px; }
  .product-card .card-price { gap: 5px; margin-bottom: 8px; flex-wrap: wrap; }
  .card-price .current { font-size: 1rem; }
  .card-price .original { font-size: 0.78rem; }
  .card-price .discount { font-size: 0.7rem; }
  .product-card .card-rating { font-size: 0.75rem; }
  .card-rating .stars { font-size: 0.7rem; }
  .product-card .quick-add { padding: 8px; font-size: 0.78rem; margin-top: 8px; }
  .product-card .card-actions { opacity: 1; transform: translateX(0); }
  .card-actions .action-btn { width: 30px; height: 30px; font-size: 0.85rem; }
  .product-card .card-badges { top: 8px; left: 8px; }
  .product-card .badge { padding: 3px 8px; font-size: 0.68rem; }

  /* Page header */
  .page-header { padding: 30px 0; padding-top: calc(var(--header-height) + 30px) !important; }
  .page-header h1 { font-size: 1.6rem; }

  /* Shop toolbar */
  .shop-toolbar { flex-direction: column; gap: 8px; align-items: stretch; padding: 12px 0; }
  .shop-toolbar .result-count { font-size: 0.8rem; text-align: center; }
  .sort-select { font-size: 0.85rem; padding: 8px 12px; }

  /* Product detail */
  .product-gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; order: 2; }
  .product-info { padding-left: 0; padding-top: 24px; }
  .product-info h1 { font-size: 1.5rem; }
  .product-info .price-wrap .price { font-size: 1.5rem; }
  .add-actions { flex-direction: column; }
  .add-actions .btn { width: 100%; }

  /* Cart */
  .cart-item { grid-template-columns: 70px 1fr; gap: 12px; padding: 14px; }
  .cart-item .item-img { width: 70px; height: 70px; }
  .cart-item .item-name { font-size: 0.9rem; }
  .cart-item .item-variant { font-size: 0.78rem; }
  .cart-summary { padding: 20px; border-radius: var(--radius-md); }

  /* Checkout */
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Wishlist */
  .wishlist-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 24px 0 48px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding: 40px 0 0; }
  .footer-brand p { max-width: 100%; }
  .footer-col h4 { margin-bottom: 12px; }
  .footer-col ul li { margin-bottom: 8px; }
  .footer-bottom { padding: 16px 0; }
  .footer-bottom p { font-size: 0.78rem; }
  .footer-newsletter input { padding: 10px 14px; }

  /* Wholesale */
  .wholesale-hero { min-height: auto; padding: 40px 0; }
  .wholesale-perks { flex-direction: column; gap: 8px; }
  .tier-card { padding: 24px; }
  .tier-card .tier-price { font-size: 1.6rem; }

  /* Toast */
  .toast-container { bottom: 12px; right: 12px; left: 12px; }
  .toast { min-width: auto; font-size: 0.8rem; padding: 10px 14px; }

  /* Modal */
  .modal { padding: 24px; width: 95%; }
}

@media (max-width: 420px) {
  .hero-content h1 { font-size: 1.5rem; }
  .hero-content p { font-size: 0.88rem; }
  .product-card .card-title { font-size: 0.82rem; }
  .card-price .current { font-size: 0.92rem; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 16px; }
  .stat-card .value { font-size: 1.4rem; }
  .stat-card .label { font-size: 0.75rem; }
}

/* === Utility === */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* === Mobile Nav === */
.mobile-nav {
  position: fixed; top: 0; left: -320px; width: 300px; height: 100vh;
  background: var(--card-bg); z-index: 10001;
  transition: left var(--transition); box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-nav.active { left: 0; }

.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border-light);
  background: var(--primary); min-height: 60px;
}
.mobile-nav-header .logo { font-size: 1.3rem; color: #fff; }
.mobile-nav-header .logo span { color: var(--accent); }
.mobile-nav-header .close-nav {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full); background: rgba(255,255,255,0.1); color: #fff;
  cursor: pointer; transition: background var(--transition-fast);
}
.mobile-nav-header .close-nav:hover { background: rgba(255,255,255,0.2); }

.mobile-nav-search { padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.mobile-nav-search input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-full); font-size: 0.9rem;
  background: var(--surface); color: var(--text);
}
.mobile-nav-search input::placeholder { color: var(--text-lighter); }

.mobile-nav .nav-list { padding: 8px 0; }
.mobile-nav .nav-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px; font-size: 0.95rem; font-weight: 500;
  color: var(--text); transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}
.mobile-nav .nav-list a:hover,
.mobile-nav .nav-list a.active {
  background: var(--surface); color: var(--accent-dark);
  border-left-color: var(--accent);
}
.mobile-nav .nav-list a svg { flex-shrink: 0; color: var(--text-lighter); }
.mobile-nav .nav-list a:hover svg,
.mobile-nav .nav-list a.active svg { color: var(--accent); }

.mobile-nav-divider {
  height: 1px; background: var(--border-light);
  margin: 4px 20px;
}

.mobile-nav .nav-list-secondary a { color: var(--text-light); }
.mobile-badge {
  background: var(--error); color: #fff; font-size: 0.7rem; font-weight: 700;
  padding: 1px 7px; border-radius: var(--radius-full); margin-left: auto;
}

.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 10000; display: none; }
.mobile-overlay.active { display: block; }

/* Quick View Image Placeholder */
.img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; background: linear-gradient(135deg, var(--surface-alt), var(--surface-dark));
  color: var(--accent); opacity: 0.5;
}

