/* =====================================================
   Glowra Beauty - Main Stylesheet
   ecom.comavisualstudio.com
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary: #e8174a;
  --primary-dark: #c0133d;
  --primary-light: #ff4d75;
  --accent: #f5a623;
  --gold: #c9a84c;
  --dark: #1a1a2e;
  --dark2: #2d2d44;
  --text: #333344;
  --text-light: #666677;
  --border: #e8e8f0;
  --bg: #fdf8f6;
  --bg2: #fff5f7;
  --white: #ffffff;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', serif; line-height: 1.3; color: var(--dark); }
.display-font { font-family: 'Playfair Display', serif; }

/* ===== LAYOUT ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.col { padding: 0 12px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-size: 14px;
  font-weight: 600; transition: var(--transition); cursor: pointer;
  letter-spacing: 0.3px;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,23,74,0.35); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark2); }
.btn-white { background: var(--white); color: var(--dark); }
.btn-white:hover { background: var(--bg); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { padding: 10px; border-radius: 50%; width: 44px; height: 44px; justify-content: center; }

/* ===== HEADER ===== */
#top-bar {
  background: var(--dark);
  color: #ccc;
  font-size: 12px;
  padding: 8px 0;
  text-align: center;
}
#top-bar a { color: var(--accent); }

#header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 1000;
  transition: var(--transition);
}
#header.scrolled { box-shadow: var(--shadow); }

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

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700; color: var(--primary);
  flex-shrink: 0;
}
.logo span { color: var(--dark); }
.logo-icon { width: 38px; height: 38px; }

.search-bar {
  flex: 1; display: flex; align-items: center;
  border: 2px solid var(--border); border-radius: 50px;
  overflow: hidden; transition: var(--transition);
  max-width: 600px;
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,23,74,0.1); }
.search-bar input {
  flex: 1; padding: 10px 20px; border: none; outline: none;
  font-size: 14px; background: transparent;
}
.search-bar button {
  background: var(--primary); color: var(--white);
  padding: 10px 20px; font-size: 16px;
}
.search-bar button:hover { background: var(--primary-dark); }

.header-actions {
  display: flex; align-items: center; gap: 4px;
}
.header-action {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 11px; color: var(--text-light); gap: 2px;
  position: relative; transition: var(--transition);
}
.header-action:hover { color: var(--primary); background: var(--bg2); }
.header-action i { font-size: 18px; }
.badge {
  position: absolute; top: 4px; right: 6px;
  background: var(--primary); color: var(--white);
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 10px; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ===== NAV ===== */
#nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 0;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 14px 16px; font-size: 13.5px; font-weight: 500;
  color: var(--text); white-space: nowrap; transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2px; background: var(--primary); transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { left: 10px; right: 10px; }

.nav-dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 200px;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: var(--transition);
  z-index: 999; padding: 8px 0;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block; padding: 9px 20px; font-size: 13.5px;
  color: var(--text); transition: var(--transition);
}
.nav-dropdown a:hover { color: var(--primary); background: var(--bg2); padding-left: 24px; }

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative; overflow: hidden;
  height: 520px;
}
.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.7s ease;
  background-size: cover; background-position: center;
}
.slide.active { opacity: 1; }
.slide-content {
  position: absolute; top: 50%; transform: translateY(-50%);
  left: 8%; max-width: 500px;
}
.slide-tag {
  background: var(--accent); color: var(--dark);
  display: inline-block; padding: 4px 16px; border-radius: 50px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 16px;
}
.slide h1 {
  font-size: 52px; line-height: 1.15; color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3); margin-bottom: 16px;
}
.slide p { color: rgba(255,255,255,0.9); font-size: 17px; margin-bottom: 28px; }
.slide-nav {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.slide-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer; transition: var(--transition);
}
.slide-dot.active { background: var(--white); width: 24px; border-radius: 4px; }
.slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.9); color: var(--dark);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; transition: var(--transition);
  box-shadow: var(--shadow);
}
.slide-btn:hover { background: var(--primary); color: var(--white); }
.slide-btn.prev { left: 20px; }
.slide-btn.next { right: 20px; }

/* ===== CATEGORY PILLS ===== */
.cat-grid {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px;
  scrollbar-width: none;
}
.cat-grid::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 16px; min-width: 100px;
  border-radius: var(--radius); background: var(--bg2);
  transition: var(--transition); cursor: pointer; border: 2px solid transparent;
}
.cat-pill:hover, .cat-pill.active {
  border-color: var(--primary); background: var(--white);
  box-shadow: var(--shadow);
}
.cat-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #ffeef2, #ffd0dc);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; transition: var(--transition);
}
.cat-pill:hover .cat-icon { transform: scale(1.1); }
.cat-name { font-size: 12px; font-weight: 600; text-align: center; color: var(--text); }

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.section-title { font-size: 28px; font-weight: 700; }
.section-title span { color: var(--primary); }
.view-all {
  color: var(--primary); font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.view-all:hover { gap: 8px; }

/* ===== PRODUCT CARD ===== */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: var(--transition); position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.product-img-wrap {
  position: relative; overflow: hidden; aspect-ratio: 1;
  background: var(--bg);
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-badges {
  position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px;
}
.badge-pill {
  background: var(--primary); color: var(--white);
  font-size: 10px; font-weight: 700; padding: 3px 10px;
  border-radius: 50px; letter-spacing: 0.5px;
}
.badge-pill.gold { background: var(--gold); }
.badge-pill.dark { background: var(--dark); }

.product-actions {
  position: absolute; right: 10px; top: 10px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateX(10px); transition: var(--transition);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
/* Product Detail Page - Actions visible */
.product-detail .product-actions {
  position: static;
  opacity: 1;
  transform: none;
  flex-direction: row;
  margin: 1.5rem 0;
}

.action-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text); transition: var(--transition);
}
.action-btn:hover { background: var(--primary); color: var(--white); }
.action-btn.active { background: var(--primary); color: var(--white); }

.product-info { padding: 14px 16px 16px; }
.product-brand { font-size: 11px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.product-name { font-size: 14px; font-weight: 600; color: #1a1a2e; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; font-size: 12px; color: #666; }
.stars { color: var(--accent); font-size: 11px; }
.rating-count { color: var(--text-light); }
.product-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.price-now { font-size: 18px; font-weight: 800; color: #1a1a2e; }
.price-mrp { font-size: 13px; color: #aaa; text-decoration: line-through; font-weight: 400; }
.price-off { font-size: 12px; font-weight: 700; color: #16a34a; background:#dcfce7; padding:2px 7px; border-radius:5px; }
.product-add-btn {
  width: 100%; padding: 10px;
  background: #fff; border: 1.5px solid var(--primary);
  color: var(--primary); border-radius: 8px; font-size: 13px;
  font-weight: 600; transition: var(--transition); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.product-add-btn:hover { background: var(--primary); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(232,23,74,0.25); }

/* ===== OFFER BANNERS ===== */
.offer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.offer-card {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; height: 220px; cursor: pointer;
}
.offer-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.offer-card:hover img { transform: scale(1.04); }
.offer-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.5), transparent);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
}
.offer-overlay h3 { color: var(--white); font-size: 22px; margin-bottom: 4px; }
.offer-overlay p { color: rgba(255,255,255,0.85); font-size: 13px; }

/* ===== BRANDS STRIP ===== */
.brands-strip {
  display: flex; gap: 24px; overflow-x: auto; padding: 8px 0;
  align-items: center; scrollbar-width: none;
}
.brands-strip::-webkit-scrollbar { display: none; }
.brand-logo {
  flex-shrink: 0; width: 120px; height: 60px;
  object-fit: contain; filter: grayscale(1); opacity: 0.6;
  transition: var(--transition); cursor: pointer;
}
.brand-logo:hover { filter: grayscale(0); opacity: 1; transform: scale(1.05); }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.testimonial-card {
  background: var(--bg2); border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--border);
}
.test-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.test-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.test-name { font-weight: 600; font-size: 14px; }
.test-stars { color: var(--accent); font-size: 12px; }
.test-body { font-size: 14px; color: var(--text-light); line-height: 1.7; font-style: italic; }
.test-body::before { content: '"'; font-size: 40px; color: var(--primary); font-family: Georgia; line-height: 0; vertical-align: -12px; margin-right: 2px; }

/* ===== NEWSLETTER ===== */
.newsletter {
  background: linear-gradient(135deg, var(--dark), var(--dark2));
  border-radius: var(--radius-lg); padding: 60px; text-align: center; color: var(--white);
}
.newsletter h2 { font-size: 36px; color: var(--white); margin-bottom: 12px; }
.newsletter p { color: rgba(255,255,255,0.7); margin-bottom: 32px; font-size: 16px; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; padding: 14px 24px; border-radius: 50px; border: none; outline: none;
  font-size: 14px;
}

/* ===== FOOTER ===== */
#footer {
  background: var(--dark); color: rgba(255,255,255,0.75); padding-top: 60px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px; padding-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-desc { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); display: flex;
  align-items: center; justify-content: center; font-size: 15px;
  color: rgba(255,255,255,0.7); transition: var(--transition);
}
.social-btn:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.footer-title { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 20px; font-family: 'DM Sans',sans-serif; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; gap: 10px; font-size: 13.5px; }
.contact-item i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; display: flex; align-items: center;
  justify-content: space-between; font-size: 13px;
}
.payment-icons { display: flex; gap: 8px; align-items: center; }
.payment-icon {
  background: rgba(255,255,255,0.1); padding: 4px 10px;
  border-radius: 4px; font-size: 11px; color: var(--white); font-weight: 600;
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 2000; opacity: 0; visibility: hidden; transition: var(--transition);
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 400px; background: var(--white);
  transform: translateX(100%); transition: 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; z-index: 2001;
}
.cart-sidebar.open { transform: translateX(0); }
.cart-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-header h3 { font-size: 20px; }
.cart-close { font-size: 22px; color: var(--text-light); cursor: pointer; }
.cart-close:hover { color: var(--primary); }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-item-img { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13.5px; font-weight: 500; margin-bottom: 4px; }
.cart-item-variant { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.cart-item-actions { display: flex; align-items: center; gap: 10px; }
.qty-control { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 50px; overflow: hidden; }
.qty-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 14px; background: var(--bg); cursor: pointer; transition: var(--transition); }
.qty-btn:hover { background: var(--primary); color: var(--white); }
.qty-val { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--primary); align-self: center; }
.cart-remove { font-size: 13px; color: var(--text-light); cursor: pointer; }
.cart-remove:hover { color: var(--error); }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.cart-actions { display: flex; flex-direction: column; gap: 10px; }
.empty-cart { text-align: center; padding: 60px 20px; }
.empty-cart i { font-size: 64px; color: var(--border); margin-bottom: 16px; }
.empty-cart p { color: var(--text-light); margin-bottom: 20px; }

/* ===== PRODUCT DETAIL ===== */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery { position: sticky; top: 100px; }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px; aspect-ratio: 1; background: var(--bg); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; }
.gallery-thumb { width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info .brand-link { color: var(--primary); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.product-detail-info h1 { font-size: 28px; margin: 10px 0; }
.product-rating-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rating-badge { background: var(--success); color: var(--white); padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.price-main { font-size: 32px; font-weight: 700; color: var(--dark); }
.price-old { font-size: 18px; color: var(--text-light); text-decoration: line-through; }
.price-save { font-size: 14px; font-weight: 700; color: var(--success); background: #f0fdf4; padding: 3px 10px; border-radius: 50px; }

.variant-section { margin-bottom: 20px; }
.variant-label { font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--text-light); }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-opt {
  padding: 6px 16px; border-radius: 50px; border: 1.5px solid var(--border);
  font-size: 13px; cursor: pointer; transition: var(--transition);
}
.variant-opt:hover, .variant-opt.active { border-color: var(--primary); color: var(--primary); background: var(--bg2); }
.variant-color { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; position: relative; }
.variant-color.active::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: white; text-shadow: 0 0 4px rgba(0,0,0,0.5); }

.add-to-cart-section { display: flex; gap: 12px; margin-bottom: 24px; }
.qty-large { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--border); border-radius: 50px; overflow: hidden; }
.qty-large button { width: 44px; height: 46px; font-size: 18px; font-weight: 700; background: var(--bg); transition: var(--transition); }
.qty-large button:hover { background: var(--primary); color: var(--white); }
.qty-large input { width: 50px; text-align: center; border: none; outline: none; font-size: 16px; font-weight: 600; }

/* ===== PAGE LAYOUTS ===== */
.page-hero {
  background: linear-gradient(135deg, var(--bg2), var(--bg));
  padding: 40px 0; margin-bottom: 40px;
}
.page-hero h1 { font-size: 36px; margin-bottom: 8px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { font-size: 10px; }

/* Sidebar filter */
.products-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
.filter-sidebar { }
.filter-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.filter-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; display: flex; justify-content: space-between; }
.filter-clear { font-size: 12px; color: var(--primary); font-weight: 500; cursor: pointer; }
.filter-check { display: flex; flex-direction: column; gap: 10px; }
.check-item { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; }
.check-item input[type=checkbox] { accent-color: var(--primary); width: 15px; height: 15px; }
.price-range { padding: 8px 0; }
.range-input { width: 100%; accent-color: var(--primary); }
.range-values { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-top: 8px; }

/* Sort bar */
.sort-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; background: var(--bg2); padding: 12px 20px; border-radius: var(--radius-sm); }
.sort-count { font-size: 14px; color: var(--text-light); }
.sort-select { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 14px; font-size: 13.5px; outline: none; background: var(--white); }

/* ===== CHECKOUT ===== */
.checkout-grid { display: grid; grid-template-columns: 1fr 420px; gap: 32px; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.form-card-title { font-size: 18px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-light); }
.form-control {
  width: 100%; padding: 11px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; outline: none;
  transition: var(--transition); background: var(--white); color: var(--text);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,23,74,0.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--error); margin-top: 4px; display: none; }
.form-control.error { border-color: var(--error); }

/* Order summary */
.order-summary { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; }
.summary-title { font-size: 20px; margin-bottom: 20px; }
.summary-items { margin-bottom: 20px; }
.summary-item { display: flex; gap: 12px; margin-bottom: 12px; }
.summary-item-img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.summary-item-name { font-size: 13px; font-weight: 500; flex: 1; }
.summary-item-qty { font-size: 12px; color: var(--text-light); }
.summary-item-price { font-size: 14px; font-weight: 700; align-self: center; }
.summary-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.summary-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--border); }
.coupon-input { display: flex; gap: 8px; margin-bottom: 16px; }
.coupon-input input { flex: 1; }

/* ===== AUTH PAGES ===== */
.auth-wrap { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--bg); }
.auth-card { background: var(--white); border-radius: var(--radius-lg); padding: 48px; max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-title { font-size: 28px; text-align: center; margin-bottom: 8px; }
.auth-sub { font-size: 14px; color: var(--text-light); text-align: center; margin-bottom: 32px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: 12px; color: var(--text-light); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; font-size: 14px; color: var(--text-light); margin-top: 24px; }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--dark); color: var(--white); padding: 14px 20px;
  border-radius: var(--radius); font-size: 14px; min-width: 280px;
  display: flex; align-items: center; gap: 10px;
  animation: slideInRight 0.3s ease forwards;
  box-shadow: var(--shadow-lg);
}
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
.toast.warning { background: var(--warning); }
@keyframes slideInRight { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: var(--radius-lg); max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 32px; position: relative; animation: scaleIn 0.3s ease; }
@keyframes scaleIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close { position: absolute; top: 16px; right: 16px; font-size: 22px; color: var(--text-light); cursor: pointer; }
.modal-close:hover { color: var(--primary); }

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 40px; }
.page-btn { width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; transition: var(--transition); color: var(--text); }
.page-btn:hover, .page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ===== ALERTS ===== */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ===== WISHLIST ===== */
.wishlist-icon.active i { color: var(--primary); }

/* ===== MOBILE ===== */
.mobile-menu-btn { display: none; font-size: 22px; color: var(--text); padding: 6px; }
.mobile-menu { display: none; position: fixed; inset: 0; background: var(--white); z-index: 1500; overflow-y: auto; padding: 20px; }
.mobile-menu.open { display: block; }
.mobile-menu-close { font-size: 24px; margin-bottom: 20px; display: flex; justify-content: flex-end; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-light); }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }
.p-4 { padding: 16px; }
.fw-bold { font-weight: 700; }
.fw-600 { font-weight: 600; }
.fs-sm { font-size: 13px; }
.bg-primary { background: var(--primary); }
.hidden { display: none !important; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail-grid { gap: 28px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .search-bar { order: 3; flex-basis: 100%; max-width: 100%; }
  #nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-slider { height: 300px; }
  .slide h1 { font-size: 28px; }
  .products-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .offer-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .newsletter { padding: 32px 20px; }
  .newsletter-form { flex-direction: column; }
  .cart-sidebar { width: 100%; }
  .section { padding: 40px 0; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .container { padding: 0 14px; }
  .section-title { font-size: 22px; }
}

/* ===================================
   PRODUCT DETAIL PAGE
   =================================== */
.breadcrumb-bar { background: #f8f8f8; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .85rem; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2rem 0; }
.product-gallery { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; }
.gallery-thumbs { display: flex; flex-direction: column; gap: .5rem; }
.thumb { cursor: pointer; border: 2px solid transparent; border-radius: 8px; overflow: hidden; }
.thumb.active, .thumb:hover { border-color: var(--primary); }
.thumb img { width: 72px; height: 72px; object-fit: cover; display: block; }
.gallery-main { position: relative; border-radius: 12px; overflow: hidden; background: #f9f9f9; }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery-zoom { position: absolute; top: 1rem; right: 1rem; background: white; border: 1px solid var(--border); border-radius: 50%; width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gallery-badge { position: absolute; top: 1rem; left: 1rem; }

.product-brand-tag { color: var(--primary); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.product-title { font-size: 1.5rem; margin: .5rem 0 1rem; line-height: 1.3; }
.product-rating-row { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.rating-count { color: var(--text-muted); font-size: .9rem; }

.product-price-block { display: flex; align-items: baseline; gap: .75rem; margin: 1rem 0 .25rem; flex-wrap: wrap; }
.price-now { font-size: 1.75rem; font-weight: 700; color: var(--dark); }
.price-mrp { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; }
.price-save { font-size: .9rem; color: #16a34a; font-weight: 600; }
.tax-note { font-size: .8rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.variant-section { margin: 1.25rem 0; }
.variant-label { font-size: .9rem; color: var(--text-muted); margin-bottom: .5rem; }
.variant-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.variant-btn { padding: .35rem .85rem; border: 2px solid var(--border); border-radius: 6px; font-size: .85rem; cursor: pointer; background: white; transition: var(--transition); }
.variant-btn.active, .variant-btn:hover { border-color: var(--primary); color: var(--primary); }

.product-actions { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; flex-wrap: wrap; }
.detail-qty { display: flex; align-items: center; gap: 0; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; }
.detail-qty .qty-btn { width: 40px; height: 44px; border: none; background: #f5f5f5; font-size: 1.25rem; cursor: pointer; }
.detail-qty input { width: 48px; text-align: center; border: none; font-size: 1rem; font-weight: 600; outline: none; }
.btn-add-cart { flex: 1; padding: .85rem 1.5rem; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .5rem; transition: var(--transition); }
.btn-add-cart:hover { background: var(--primary-dark); }
.btn-wishlist-detail { width: 48px; height: 48px; border: 2px solid var(--border); border-radius: 8px; background: white; cursor: pointer; font-size: 1.25rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.btn-wishlist-detail.active, .btn-wishlist-detail:hover { border-color: var(--primary); color: var(--primary); }

.product-offers { background: #fff8f0; border: 1px solid #ffe0b2; border-radius: 10px; padding: 1rem 1.25rem; margin: 1.25rem 0; }
.product-offers h4 { font-size: .9rem; margin-bottom: .5rem; color: var(--dark); }
.product-offers ul { list-style: none; }
.product-offers li { font-size: .85rem; color: #555; margin-bottom: .3rem; display: flex; align-items: flex-start; gap: .5rem; }
.product-offers li i { color: #16a34a; margin-top: 2px; }

.product-meta { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1rem; }
.meta-item { font-size: .85rem; color: var(--text-muted); margin-bottom: .35rem; }
.meta-item span { font-weight: 600; color: var(--dark); }
.meta-item a { color: var(--primary); text-decoration: none; }
.stock-status.in-stock { color: #16a34a; }
.stock-status.out-stock { color: var(--primary); }

/* Tabs */
.product-tabs { margin: 2rem 0; }
.tab-header { display: flex; border-bottom: 2px solid var(--border); }
.tab-btn { padding: .75rem 1.5rem; border: none; background: none; cursor: pointer; font-weight: 600; color: var(--text-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; padding: 1.5rem 0; }
.tab-content.active { display: block; }
.tab-body { max-width: 720px; line-height: 1.8; color: #444; }

/* Reviews */
.review-summary { display: flex; align-items: center; gap: 2rem; padding: 1.5rem; background: #fafafa; border-radius: 12px; margin-bottom: 1.5rem; }
.avg-score { text-align: center; }
.big-score { font-size: 3rem; font-weight: 700; line-height: 1; }
.reviews-list { display: flex; flex-direction: column; gap: 1rem; }
.review-card { border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; }
.review-top { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: .75rem; }
.reviewer-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.review-date { margin-left: auto; color: var(--text-muted); font-size: .8rem; }
.review-title { font-weight: 600; margin-bottom: .35rem; }
.review-body { color: #555; font-size: .9rem; }
.admin-reply { background: #f0f4ff; border-left: 3px solid var(--primary); padding: .75rem 1rem; margin-top: .75rem; border-radius: 0 8px 8px 0; font-size: .85rem; }
.no-reviews { text-align: center; color: var(--text-muted); padding: 2rem; }
.write-review { border-top: 2px solid var(--border); padding-top: 1.5rem; margin-top: 1.5rem; }
.star-input { display: flex; flex-direction: row-reverse; gap: .25rem; margin: .5rem 0; }
.star-input input { display: none; }
.star-input label { cursor: pointer; font-size: 1.5rem; color: #ddd; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #fbbf24; }
.login-to-review { margin-top: 1rem; color: var(--text-muted); }
.login-to-review a { color: var(--primary); }

/* Zoom Modal */
.zoom-modal { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 9999; display: none; align-items: center; justify-content: center; }
.zoom-modal.open { display: flex; }
.zoom-modal img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.zoom-close { position: absolute; top: 1rem; right: 1rem; background: white; border: none; border-radius: 50%; width: 44px; height: 44px; cursor: pointer; font-size: 1.25rem; }

.related-section { margin: 3rem 0; }

/* ===================================
   CART PAGE
   =================================== */
.cart-page { padding: 2rem 0; }
.checkout-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 2rem; }
.checkout-steps .step { display: flex; align-items: center; gap: .5rem; padding: .75rem 1.5rem; color: var(--text-muted); font-weight: 500; }
.checkout-steps .step.active, .checkout-steps .step.done { color: var(--primary); font-weight: 600; }
.checkout-steps .step span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
.step-line { flex: 1; max-width: 80px; height: 2px; background: var(--border); }
.step-line.active { background: var(--primary); }

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.cart-section-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.25rem; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 1rem; padding: 1.25rem; background: white; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 1rem; }
.cart-item-image img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.cart-item-info h4 { margin: 0 0 .25rem; font-size: .95rem; }
.cart-item-info h4 a { text-decoration: none; color: var(--dark); }
.cart-item-variant { font-size: .8rem; color: var(--text-muted); margin-bottom: .5rem; }
.cart-item-actions { display: flex; align-items: center; gap: 1rem; }
.remove-item-btn { border: none; background: none; color: var(--text-muted); cursor: pointer; font-size: .8rem; display: flex; align-items: center; gap: .3rem; }
.remove-item-btn:hover { color: var(--primary); }
.cart-item-price { text-align: right; }
.item-total { font-size: 1.1rem; font-weight: 700; display: block; }
.item-unit { font-size: .8rem; color: var(--text-muted); }

.cart-summary { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; position: sticky; top: 90px; }
.cart-summary h3 { margin-bottom: 1.25rem; font-size: 1rem; }
.coupon-section { border: 1px dashed var(--border); border-radius: 8px; padding: 1rem; margin-bottom: 1.25rem; }
.coupon-label { font-size: .85rem; font-weight: 600; margin-bottom: .5rem; display: flex; align-items: center; gap: .4rem; }
.coupon-input-row { display: flex; gap: .5rem; }
.coupon-input-row input { flex: 1; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: 6px; font-size: .85rem; text-transform: uppercase; }
.btn-apply { padding: .5rem 1rem; background: var(--dark); color: white; border: none; border-radius: 6px; cursor: pointer; font-size: .85rem; }
.coupon-msg { font-size: .8rem; margin-top: .4rem; }
.coupon-msg.success { color: #16a34a; }
.coupon-msg.error { color: var(--primary); }

.price-breakdown { margin: 1rem 0; }
.price-row { display: flex; justify-content: space-between; font-size: .9rem; padding: .4rem 0; }
.price-row.total-row { border-top: 2px solid var(--border); margin-top: .5rem; padding-top: .75rem; font-weight: 700; font-size: 1rem; }
.price-green { color: #16a34a; font-weight: 600; }
.shipping-note { font-size: .78rem; color: var(--primary); background: #fff0f3; padding: .4rem .6rem; border-radius: 4px; margin: .25rem 0; }
.btn-checkout { display: block; text-align: center; padding: 1rem; background: var(--primary); color: white; text-decoration: none; border-radius: 8px; font-weight: 700; margin-top: 1rem; transition: var(--transition); }
.btn-checkout:hover { background: var(--primary-dark); }
.safe-shopping { display: flex; justify-content: space-between; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.safe-item { font-size: .75rem; color: var(--text-muted); text-align: center; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.safe-item i { font-size: 1.1rem; color: var(--primary); }

.empty-cart { text-align: center; padding: 5rem 2rem; }
.empty-cart-icon { font-size: 5rem; color: var(--border); margin-bottom: 1.5rem; }
.empty-cart h2 { margin-bottom: .75rem; }
.empty-cart p { color: var(--text-muted); margin-bottom: 2rem; }

/* ===================================
   CHECKOUT PAGE
   =================================== */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; padding-bottom: 3rem; }
.checkout-main { display: flex; flex-direction: column; gap: 1.5rem; }
.checkout-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.checkout-card h3 { font-size: 1rem; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .5rem; }
.saved-addresses { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1rem; }
.address-radio { cursor: pointer; }
.address-radio input { display: none; }
.address-card-inner { border: 2px solid var(--border); border-radius: 10px; padding: 1rem; transition: var(--transition); }
.address-radio input:checked + .address-card-inner { border-color: var(--primary); background: #fff8fa; }
.address-label { background: var(--primary); color: white; font-size: .7rem; font-weight: 600; padding: .15rem .5rem; border-radius: 4px; margin-bottom: .4rem; display: inline-block; }
.address-card-inner strong { display: block; margin-bottom: .25rem; }
.address-card-inner p { font-size: .85rem; color: #555; margin: .15rem 0; }

.payment-options { display: flex; flex-direction: column; gap: .75rem; }
.payment-radio { cursor: pointer; }
.payment-radio input { display: none; }
.payment-card-inner { border: 2px solid var(--border); border-radius: 10px; padding: 1rem; display: flex; align-items: center; gap: 1rem; transition: var(--transition); }
.payment-radio input:checked + .payment-card-inner { border-color: var(--primary); background: #fff8fa; }
.payment-card-inner i { font-size: 1.5rem; color: var(--primary); width: 32px; text-align: center; }
.payment-card-inner strong { display: block; }
.payment-card-inner p { font-size: .8rem; color: var(--text-muted); margin: 0; }

.btn-place-order { width: 100%; padding: 1.1rem; background: var(--primary); color: white; border: none; border-radius: 10px; font-size: 1.05rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .5rem; transition: var(--transition); }
.btn-place-order:hover:not(:disabled) { background: var(--primary-dark); }
.btn-place-order:disabled { opacity: .7; cursor: not-allowed; }

.checkout-summary { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; position: sticky; top: 90px; }
.checkout-summary h3 { margin-bottom: 1.25rem; }
.checkout-items { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.checkout-item { display: grid; grid-template-columns: 48px 1fr auto; gap: .75rem; align-items: center; }
.checkout-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.checkout-item-info p { font-size: .85rem; margin: 0; font-weight: 500; }
.checkout-item-info small { color: var(--text-muted); font-size: .75rem; display: block; }
.checkout-item strong { font-size: .9rem; }

/* Success Modal */
.success-modal { text-align: center; max-width: 420px; }
.success-icon { font-size: 4rem; color: #16a34a; margin-bottom: 1rem; }
.success-modal h2 { margin-bottom: .5rem; }
.success-modal p { color: var(--text-muted); margin-bottom: .25rem; }
.success-modal .btn-primary { display: inline-block; margin-top: 1.5rem; padding: .85rem 2rem; background: var(--primary); color: white; text-decoration: none; border-radius: 8px; font-weight: 600; }
.success-modal .btn-link { display: block; margin-top: .75rem; color: var(--primary); text-decoration: none; font-size: .9rem; }

/* ===================================
   ACCOUNT PAGE
   =================================== */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 2rem 0; }
.account-sidebar { position: sticky; top: 90px; align-self: start; }
.account-avatar { text-align: center; padding: 1.5rem; background: white; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 1rem; }
.account-avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: .75rem; }
.account-avatar .avatar-placeholder { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: white; font-size: 1.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; }
.account-avatar h4 { margin: 0 0 .2rem; font-size: 1rem; }
.account-avatar p { color: var(--text-muted); font-size: .8rem; }
.account-nav { background: white; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.account-nav a { display: flex; align-items: center; gap: .75rem; padding: .85rem 1.25rem; text-decoration: none; color: #555; font-size: .9rem; border-bottom: 1px solid var(--border); transition: var(--transition); }
.account-nav a:last-child { border-bottom: none; }
.account-nav a.active, .account-nav a:hover { background: #fff8fa; color: var(--primary); }
.account-nav a i { width: 18px; text-align: center; }
.logout-link { color: var(--text-muted) !important; }

.account-content { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; }
.account-section h2 { margin-bottom: 1.5rem; font-size: 1.25rem; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.account-stat-card { border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; text-align: center; }
.account-stat-card i { font-size: 1.5rem; color: var(--primary); margin-bottom: .5rem; display: block; }
.account-stat-card .stat-num { font-size: 1.4rem; font-weight: 700; display: block; }
.account-stat-card span:last-child { font-size: .8rem; color: var(--text-muted); }

.orders-table-wrap { overflow-x: auto; }
.orders-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.orders-table th { text-align: left; padding: .75rem; background: #f8f8f8; font-weight: 600; border-bottom: 1px solid var(--border); }
.orders-table td { padding: .75rem; border-bottom: 1px solid var(--border); }

.status-badge { display: inline-block; padding: .2rem .6rem; border-radius: 4px; font-size: .75rem; font-weight: 600; text-transform: capitalize; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-shipped { background: #e0e7ff; color: #4338ca; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

.orders-list { display: flex; flex-direction: column; gap: 1rem; }
.order-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.order-card-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; background: #fafafa; border-bottom: 1px solid var(--border); }
.order-date { margin-left: 1rem; color: var(--text-muted); font-size: .8rem; }
.order-card-items { display: flex; gap: .75rem; padding: 1rem 1.25rem; flex-wrap: wrap; }
.order-item-thumb { position: relative; }
.order-item-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.order-item-thumb span { position: absolute; top: -6px; right: -6px; background: var(--primary); color: white; font-size: .65rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.order-more { width: 56px; height: 56px; border: 1px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .8rem; color: var(--text-muted); }
.order-card-footer { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1.25rem; border-top: 1px solid var(--border); font-size: .85rem; }
.payment-method-tag { background: var(--dark); color: white; font-size: .7rem; padding: .15rem .5rem; border-radius: 4px; font-weight: 600; }

.wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.wishlist-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.wishlist-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.wishlist-card-info { padding: .75rem; }
.wishlist-card-info h5 { font-size: .85rem; margin-bottom: .35rem; }
.wishlist-card-info h5 a { text-decoration: none; color: var(--dark); }
.wishlist-price { display: flex; align-items: baseline; gap: .4rem; margin-bottom: .5rem; }
.wishlist-actions { display: flex; gap: .5rem; }
.btn-sm { padding: .3rem .75rem; font-size: .8rem; border-radius: 6px; border: 1px solid var(--primary); color: var(--primary); background: transparent; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-icon-sm { width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; background: white; display: flex; align-items: center; justify-content: center; }

.addresses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.address-card { border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; position: relative; }
.default-tag { position: absolute; top: 1rem; right: 1rem; background: #16a34a; color: white; font-size: .7rem; padding: .15rem .5rem; border-radius: 4px; }
.address-label-tag { display: inline-block; background: var(--primary); color: white; font-size: .7rem; padding: .15rem .5rem; border-radius: 4px; margin-bottom: .5rem; }
.address-card strong { display: block; margin-bottom: .4rem; }
.address-card p { font-size: .85rem; color: #555; margin: .15rem 0; }
.address-card-actions { display: flex; gap: .5rem; margin-top: .75rem; }
.btn-danger { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.add-new-addr { display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); transition: var(--transition); min-height: 120px; }
.add-new-addr i { font-size: 2rem; margin-bottom: .5rem; }
.add-new-addr:hover { border-color: var(--primary); color: var(--primary); }

.profile-form { max-width: 600px; }
.profile-form .form-group { margin-bottom: 1.25rem; }
.profile-form label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .4rem; }
.profile-form .form-input { width: 100%; padding: .65rem .9rem; border: 1px solid var(--border); border-radius: 8px; font-size: .9rem; outline: none; transition: var(--transition); }
.profile-form .form-input:focus { border-color: var(--primary); }
.avatar-upload { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.avatar-preview { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.upload-btn { cursor: pointer; background: #f5f5f5; border: 1px solid var(--border); padding: .5rem 1rem; border-radius: 8px; font-size: .85rem; display: inline-flex; align-items: center; gap: .4rem; }
.alert { padding: .85rem 1.25rem; border-radius: 8px; margin-bottom: 1.25rem; font-size: .9rem; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 1rem; display: block; }
.empty-state a { color: var(--primary); }
.btn-primary { display: inline-block; padding: .75rem 1.5rem; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; text-decoration: none; }

/* Modal Global */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9000; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal { background: white; border-radius: 16px; padding: 2rem; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: #f5f5f5; border: none; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 1rem; }
.modal h3 { margin-bottom: 1.25rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-group { margin-bottom: .75rem; }
.form-group label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .35rem; }
.form-input { width: 100%; padding: .6rem .9rem; border: 1px solid var(--border); border-radius: 8px; font-size: .9rem; outline: none; transition: var(--transition); }
.form-input:focus { border-color: var(--primary); }
.checkbox-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .9rem; }

/* Page Heading */
.page-header-row { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; }
.page-heading { font-size: 1.4rem; }
.page-heading span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.btn-outline { padding: .65rem 1.25rem; border: 2px solid var(--primary); color: var(--primary); border-radius: 8px; background: transparent; cursor: pointer; font-weight: 600; }
.empty-state.large { padding: 6rem 2rem; }

/* ===================================
   STARS
   =================================== */
.stars .star { color: #fbbf24; font-size: .9rem; }
.stars.small .star { font-size: .75rem; }
.stars .star.empty { color: #e5e7eb; }

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .account-stats { grid-template-columns: repeat(2, 1fr); }
  .checkout-steps { gap: 0; }
  .checkout-steps .step { padding: .5rem; font-size: .8rem; }
}


/* Brand + Badges */
.pd-brand-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.pd-brand { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1.5px; text-decoration: none; }
.pd-brand:hover { text-decoration: underline; }
.pd-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.pd-badge.bestseller { background: #fff8e1; color: #f59e0b; border: 1px solid #fde68a; }
.pd-badge.new-badge { background: #e0f7fa; color: #0891b2; border: 1px solid #bae6fd; }

/* Title */
.pd-title { font-size: 26px; font-weight: 700; color: #1a1a2e; line-height: 1.3; margin: 0 0 12px; font-family: 'Playfair Display', serif; }
@media(max-width:480px) { .pd-title { font-size: 20px; } }

/* Rating */
.pd-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.pd-rating .stars { color: #f59e0b; font-size: 14px; }
.pd-rating-count { font-size: 13px; color: var(--primary); text-decoration: underline; cursor: pointer; }
.pd-dot { color: #ccc; }
.pd-stock.instock { font-size: 13px; font-weight: 600; color: #16a34a; }
.pd-stock.outstock { font-size: 13px; font-weight: 600; color: #dc2626; }

/* Price */
.pd-price-block { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.pd-price { font-size: 32px; font-weight: 800; color: #1a1a2e; }
.pd-mrp { font-size: 18px; color: #999; text-decoration: line-through; }
.pd-save { background: #dcfce7; color: #16a34a; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.pd-tax { font-size: 12px; color: #888; margin: 4px 0 0; }

/* Divider */
.pd-divider { height: 1px; background: #f0f0f0; margin: 18px 0; }

/* Variants */
.pd-variants { margin-bottom: 4px; }
.pd-variant-label { font-size: 13px; color: #555; margin-bottom: 10px; }
.pd-variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-variant-btn { padding: 7px 16px; border: 1.5px solid #e0e0e0; border-radius: 8px; background: #fff; font-size: 13px; font-weight: 500; cursor: pointer; transition: .18s; color: #333; }
.pd-variant-btn:hover { border-color: var(--primary); color: var(--primary); }
.pd-variant-btn.active { border-color: var(--primary); background: #fff0f4; color: var(--primary); font-weight: 700; }

/* Actions */
.pd-actions { display: flex; align-items: center; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.pd-qty { display: flex; align-items: center; border: 1.5px solid #e0e0e0; border-radius: 10px; overflow: hidden; }
.pd-qty-btn { width: 38px; height: 46px; background: #f8f8f8; border: none; font-size: 20px; cursor: pointer; color: #333; transition: .15s; }
.pd-qty-btn:hover { background: #f0f0f0; }
.pd-qty input { width: 48px; height: 46px; border: none; text-align: center; font-size: 16px; font-weight: 600; outline: none; }
.pd-add-cart { flex: 1; min-width: 160px; padding: .85rem 1.5rem; background: var(--primary); color: white; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .5rem; transition: var(--transition); }
.pd-add-cart:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,23,74,0.35); }
.pd-add-cart:active { transform: translateY(0); }
.pd-wishlist { width: 48px; height: 48px; border: 1.5px solid #e0e0e0; border-radius: 12px; background: #fff; color: #888; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .2s; }
.pd-wishlist:hover, .pd-wishlist.active { border-color: #e8174a; color: #e8174a; background: #fff0f4; }

/* Offers */
.pd-offers { background: linear-gradient(135deg, #fff8f0, #fff5f8); border: 1px solid #fde8d0; border-radius: 12px; padding: 16px; margin-bottom: 4px; }
.pd-offer-title { font-size: 13px; font-weight: 700; color: #1a1a2e; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.pd-offer-title i { color: var(--primary); }
.pd-offer-item { font-size: 13px; color: #555; margin-bottom: 6px; display: flex; align-items: flex-start; gap: 8px; }
.pd-offer-item:last-child { margin-bottom: 0; }
.pd-offer-item i { color: #16a34a; font-size: 12px; margin-top: 2px; flex-shrink: 0; }

/* Meta */
.pd-meta { display: flex; flex-direction: column; gap: 6px; }
.pd-meta-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; }
.pd-meta-row span { font-weight: 600; color: #1a1a2e; min-width: 80px; }
.pd-meta-row a { color: var(--primary); text-decoration: none; }
.pd-meta-row a:hover { text-decoration: underline; }

/* ======================================
   PRODUCT DETAIL PAGE
   ====================================== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 32px 0 48px; align-items: start; }
@media(max-width:768px) { .product-detail { grid-template-columns:1fr; gap:24px; padding:16px 0 32px; } }

.pd-brand-row { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.pd-brand { font-size:12px; font-weight:700; color:var(--primary); text-transform:uppercase; letter-spacing:1.5px; text-decoration:none; }
.pd-badge { font-size:11px; font-weight:700; padding:2px 10px; border-radius:20px; }
.pd-badge.bestseller { background:#fff8e1; color:#f59e0b; }
.pd-badge.new-badge { background:#e0f7fa; color:#0891b2; }

.pd-title { font-family:'Playfair Display',serif; font-size:28px; font-weight:700; color:#1a1a2e; line-height:1.3; margin:0 0 12px; }
@media(max-width:480px) { .pd-title { font-size:22px; } }

.pd-rating { display:flex; align-items:center; gap:8px; margin-bottom:16px; font-size:13px; flex-wrap:wrap; }
.pd-rating .stars { color:#f59e0b; font-size:14px; }
.pd-rating-count { color:var(--primary); text-decoration:underline; cursor:pointer; }
.pd-dot { color:#ddd; }
.pd-stock.instock { color:#16a34a; font-weight:600; }
.pd-stock.outstock { color:#dc2626; font-weight:600; }

.pd-price-block { display:flex; align-items:center; gap:12px; margin-bottom:4px; flex-wrap:wrap; }
.pd-price { font-size:32px; font-weight:800; color:#1a1a2e; }
.pd-mrp { font-size:18px; color:#bbb; text-decoration:line-through; }
.pd-save { background:#dcfce7; color:#16a34a; font-size:12px; font-weight:700; padding:4px 10px; border-radius:6px; }
.pd-tax { font-size:12px; color:#888; margin:4px 0 0; }

.pd-divider { height:1px; background:#f0f0f0; margin:18px 0; }

.pd-variants { margin-bottom:4px; }
.pd-variant-label { font-size:13px; color:#555; margin-bottom:10px; }
.pd-variant-options { display:flex; flex-wrap:wrap; gap:8px; }
.pd-variant-btn { padding:7px 16px; border:1.5px solid #e0e0e0; border-radius:8px; background:#fff; font-size:13px; font-weight:500; cursor:pointer; color:#333; transition:.15s; }
.pd-variant-btn:hover { border-color:var(--primary); color:var(--primary); }
.pd-variant-btn.active { border-color:var(--primary); background:#fff0f4; color:var(--primary); font-weight:700; }

.pd-actions { display:flex; align-items:center; gap:12px; margin:20px 0; }
.pd-qty { display:flex; align-items:center; border:1.5px solid #e0e0e0; border-radius:8px; overflow:hidden; flex-shrink:0; }
.pd-qty-btn { width:38px; height:44px; background:#f8f8f8; border:none; font-size:20px; cursor:pointer; color:#333; transition:.15s; }
.pd-qty-btn:hover { background:#f0f0f0; }
.pd-qty input { width:44px; height:44px; border:none; text-align:center; font-size:15px; font-weight:600; outline:none; }
.pd-add-cart { flex:1; padding:12px 20px; background:var(--primary); color:#fff; border:none; border-radius:8px; font-size:14px; font-weight:600; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; transition:var(--transition); }
.pd-add-cart:hover { background:var(--primary-dark); transform:translateY(-1px); box-shadow:0 4px 16px rgba(232,23,74,0.35); }
.pd-wishlist { width:46px; height:46px; border:1.5px solid #e0e0e0; border-radius:8px; background:#fff; color:#888; font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:.15s; flex-shrink:0; }
.pd-wishlist:hover,.pd-wishlist.active { border-color:var(--primary); color:var(--primary); background:#fff0f4; }

.pd-offers { background:#fffbf5; border:1px solid #fde8c8; border-radius:10px; padding:14px 16px; margin-bottom:4px; }
.pd-offer-title { font-size:13px; font-weight:700; color:#1a1a2e; margin-bottom:10px; display:flex; align-items:center; gap:6px; }
.pd-offer-title i { color:var(--primary); }
.pd-offer-item { font-size:13px; color:#555; margin-bottom:6px; display:flex; align-items:flex-start; gap:8px; line-height:1.4; }
.pd-offer-item:last-child { margin-bottom:0; }
.pd-offer-item i { color:#16a34a; font-size:12px; margin-top:2px; flex-shrink:0; }

.pd-meta { display:flex; flex-direction:column; gap:6px; }
.pd-meta-row { display:flex; gap:6px; font-size:13px; color:#555; }
.pd-meta-row span { font-weight:600; color:#333; min-width:80px; }
.pd-meta-row a { color:var(--primary); text-decoration:none; }
