﻿/* ========================================
   Junk to Gem — Design System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Sans:wght@400;500;700&display=swap');

/* --- Tokens --- */
:root {
  --brand-black: #0c0c14;
  --brand-dark: #1a1a2e;
  --brand-red: #c41230;
  --brand-red-dark: #9e0f28;
  --brand-gold: #c9a13b;
  --brand-gold-light: #e0c36a;
  --surface-white: #ffffff;
  --surface-light: #f7f7f9;
  --surface-muted: #eeeef2;
  --text-primary: #0c0c14;
  --text-secondary: #555568;
  --text-muted: #8a8a9e;
  --text-inverse: #ffffff;
  --border-light: #e2e2ea;
  --border-medium: #d0d0dc;
  --shadow-sm: 0 1px 3px rgba(12,12,20,.06);
  --shadow-md: 0 4px 16px rgba(12,12,20,.08);
  --shadow-lg: 0 8px 32px rgba(12,12,20,.12);
  --shadow-xl: 0 16px 48px rgba(12,12,20,.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --container: 1280px;
}

/* --- 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-primary); background: var(--surface-white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* --- Utilities --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { color: var(--text-secondary); }
.label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-red); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  padding: 12px 28px; border-radius: var(--radius-sm); transition: var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--brand-red); color: #fff; }
.btn--primary:hover { background: var(--brand-red-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--secondary { background: var(--brand-black); color: #fff; }
.btn--secondary:hover { background: var(--brand-dark); }
.btn--outline { border: 2px solid var(--border-medium); color: var(--text-primary); background: transparent; }
.btn--outline:hover { border-color: var(--brand-red); color: var(--brand-red); }
.btn--ghost { color: var(--text-secondary); padding: 8px 16px; }
.btn--ghost:hover { color: var(--brand-red); }
.btn--sm { padding: 8px 18px; font-size: 0.8rem; }
.btn--lg { padding: 16px 36px; font-size: 1rem; }
.btn--icon { width: 44px; height: 44px; padding: 0; border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; }
.btn--gold { background: var(--brand-gold); color: #fff; }
.btn--gold:hover { background: var(--brand-gold-light); }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-top {
  background: var(--brand-black); color: var(--text-inverse); font-size: 0.8rem;
  padding: 8px 0; text-align: center;
}
.header-top a { color: var(--brand-gold); margin-left: 4px; }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 50px; width: auto; display: block; object-fit: contain; }
.nav-desktop { display: flex; gap: 32px; align-items: center; }
.nav-desktop a {
  font-family: var(--font-display); font-weight: 500; font-size: 0.9rem;
  color: var(--text-secondary); transition: var(--transition); position: relative;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--brand-red); }
.nav-desktop a.active::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: var(--brand-red); border-radius: 1px;
}
.nav-dropdown { position: relative; }
.nav-dropdown__menu {
  display: none; position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%); min-width: 160px;
  background: var(--surface-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  z-index: 200; padding: 6px 0;
}
.nav-dropdown:hover .nav-dropdown__menu { display: block; }
.nav-dropdown__menu a {
  display: block; padding: 9px 18px; font-size: 0.88rem;
  color: var(--text-secondary); white-space: nowrap;
  transition: var(--transition);
}
.nav-dropdown__menu a:hover { color: var(--brand-red); background: var(--surface-light); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn--icon { color: var(--text-secondary); }
.header-actions .btn--icon:hover { color: var(--brand-red); background: var(--surface-light); }
.cart-badge {
  position: relative;
}
.cart-badge span {
  position: absolute; top: -4px; right: -4px; width: 18px; height: 18px;
  background: var(--brand-red); color: #fff; font-size: 0.65rem; font-weight: 700;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.mobile-toggle { display: none; }

/* --- Search Bar --- */
.search-bar {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(.4,0,.2,1), border-color 0.25s;
  border-top: 0px solid var(--border-light);
  background: var(--surface-white);
}
.site-header.search-open .search-bar {
  max-height: 72px;
  border-top-width: 1px;
}
.search-bar__form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}
.search-bar__icon {
  font-size: 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-bar__input {
  flex: 1;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--surface-light);
}
.search-bar__input:focus {
  border-color: var(--brand-red);
  background: var(--surface-white);
  box-shadow: 0 0 0 3px rgba(196,18,48,.1);
}
.search-bar__submit {
  flex-shrink: 0;
}
.search-close {
  color: var(--text-muted);
  flex-shrink: 0;
}
.search-close:hover {
  color: var(--brand-red);
  background: var(--surface-light);
}
/* Highlight the search toggle button while bar is open */
.site-header.search-open .search-toggle {
  color: var(--brand-red);
  background: var(--surface-light);
}

/* --- Hero Slider --- */
.hero-slider {
  position: relative; overflow: hidden;
  background: var(--brand-black); color: var(--text-inverse);
  min-height: 560px;
}
.hero-slide {
  display: none; position: relative; align-items: center;
  min-height: 560px; background-size: cover; background-position: center;
  background-color: var(--brand-black);
}
.hero-slide.is-active { display: flex; animation: slideIn .6s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
.hero-slide__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(12,12,20,.92) 0%, rgba(12,12,20,.55) 60%, rgba(196,18,48,.15) 100%);
}
/* Arrows */
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: rgba(255,255,255,.12); border: none; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
  cursor: pointer; transition: background var(--transition); display: flex;
  align-items: center; justify-content: center;
}
.slider-arrow:hover { background: var(--brand-red); }
.slider-arrow--prev { left: 20px; }
.slider-arrow--next { right: 20px; }
/* Dots */
.slider-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 8px;
}
.slider-dot {
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6);
  background: transparent; cursor: pointer; transition: var(--transition); padding: 0;
}
.slider-dot.is-active { background: #fff; border-color: #fff; transform: scale(1.25); }
/* --- Hero (kept for content inside slides) --- */
.hero {
  position: relative; background: var(--brand-black); color: var(--text-inverse);
  min-height: 560px; display: flex; align-items: center; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(12,12,20,.9) 0%, rgba(12,12,20,.5) 60%, rgba(196,18,48,.15) 100%);
  z-index: 1;
}
.hero__content { position: relative; z-index: 2; max-width: 600px; }
.hero__content .label { color: var(--brand-gold); margin-bottom: 16px; display: block; }
.hero__content h1 { color: #fff; margin-bottom: 20px; }
.hero__content p { color: rgba(255,255,255,.75); font-size: 1.1rem; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__image {
  position: absolute; right: 0; top: 0; bottom: 0; width: 50%;
  background: linear-gradient(135deg, #1a1a2e, #2d1f3d);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; opacity: .3;
}

/* --- Vehicle Finder --- */
.vehicle-finder {
  background: var(--surface-light); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 32px; margin-top: -48px;
  position: relative; z-index: 10; box-shadow: var(--shadow-lg);
}
.vehicle-finder h3 { margin-bottom: 20px; }
.finder-grid { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.form-group select, .form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); font-size: 0.9rem; background: #fff;
  transition: var(--transition); font-family: inherit;
}
.form-group select:focus, .form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--brand-red); box-shadow: 0 0 0 3px rgba(196,18,48,.1); }
.form-group textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

/* --- Category Cards --- */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.category-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--brand-dark); height: 320px; display: flex; align-items: flex-end;
  transition: var(--transition); cursor: pointer;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.category-card__image {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; opacity: .25;
}
.category-card__content {
  position: relative; z-index: 1; padding: 28px; width: 100%;
  background: linear-gradient(transparent, rgba(12,12,20,.9));
}
.category-card__content h3 { color: #fff; margin-bottom: 4px; }
.category-card__content p { color: rgba(255,255,255,.65); font-size: 0.85rem; }
.category-card__arrow {
  width: 36px; height: 36px; background: var(--brand-red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff;
  position: absolute; top: 20px; right: 20px; opacity: 0; transform: translateX(-8px);
  transition: var(--transition);
}
.category-card:hover .category-card__arrow { opacity: 1; transform: translateX(0); }
.category-card__bg-image {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .75; transition: opacity .3s, transform .4s;
}
.category-card:hover .category-card__bg-image { opacity: .9; transform: scale(1.04); }

/* --- Product Cards --- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card {
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md);
  overflow: hidden; transition: var(--transition); position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: transparent; }
.product-card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.product-card__badge--sale { background: var(--brand-red); color: #fff; }
.product-card__badge--new { background: var(--brand-gold); color: #fff; }
.product-card__badge--hot { background: #e67e22; color: #fff; }
.product-card__wishlist {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; background: rgba(255,255,255,.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--text-muted);
  transition: var(--transition); opacity: 0;
}
.product-card:hover .product-card__wishlist { opacity: 1; }
.product-card__wishlist:hover { color: var(--brand-red); background: #fff; }
.product-card__wishlist.active {
  opacity: 1;
  color: var(--brand-red);
  background: #fff0f3;
  box-shadow: 0 0 0 2px var(--brand-red);
}
.product-card__image {
  height: 220px; background: var(--surface-light); display: flex; align-items: center;
  justify-content: center; font-size: 3rem; color: var(--text-muted); overflow: hidden;
}
.product-card__body { padding: 20px; }
.product-card__category { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.product-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-bottom: 8px; line-height: 1.3; }
.product-card__title a:hover { color: var(--brand-red); }
.product-card__rating { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.product-card__stars { color: var(--brand-gold); font-size: 0.85rem; }
.product-card__reviews { font-size: 0.8rem; color: var(--text-muted); }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; }
.product-card__price { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--brand-red); }
.product-card__price .original { text-decoration: line-through; color: var(--text-muted); font-size: 0.85rem; font-weight: 400; margin-left: 6px; }
.product-card__add-btn {
  width: 40px; height: 40px; background: var(--surface-light); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.product-card__add-btn:hover { background: var(--brand-red); color: #fff; }

/* --- Cart Stepper --- */
.cart-stepper {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--surface-light); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 3px;
}
.cart-stepper__btn {
  width: 28px; height: 28px; border-radius: 4px; font-size: 1rem; font-weight: 700;
  background: var(--surface-white); border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); line-height: 1;
}
.cart-stepper__btn:hover { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }
.cart-stepper__qty {
  min-width: 28px; text-align: center; font-weight: 700; font-size: 0.875rem; padding: 0 4px;
}
.cart-stepper__remove {
  width: 28px; height: 28px; border-radius: 4px; margin-left: 4px;
  background: #fee2e2; border: 1px solid #fecaca; color: var(--brand-red);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.8rem; transition: var(--transition);
}
.cart-stepper__remove:hover { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }
.cart-stepper--lg .cart-stepper__btn { width: 38px; height: 38px; font-size: 1.2rem; }
.cart-stepper--lg .cart-stepper__qty { min-width: 38px; font-size: 1rem; }

/* --- Features Bar --- */
.features-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 16px; padding: 24px;
  background: var(--surface-light); border-radius: var(--radius-md);
}
.feature-icon {
  width: 48px; height: 48px; background: var(--brand-red); color: #fff;
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.feature-item h4 { margin-bottom: 4px; font-size: 0.95rem; }
.feature-item p { font-size: 0.8rem; color: var(--text-muted); }

/* --- Testimonials --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md);
  padding: 32px; transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-card__stars { color: var(--brand-gold); margin-bottom: 16px; font-size: 1rem; }
.testimonial-card__text { font-style: italic; margin-bottom: 20px; font-size: 0.95rem; line-height: 1.7; }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar {
  width: 44px; height: 44px; background: var(--surface-muted); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-muted);
}
.testimonial-card__name { font-weight: 600; font-size: 0.9rem; }
.testimonial-card__vehicle { font-size: 0.8rem; color: var(--text-muted); }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-black) 0%, var(--brand-dark) 50%, var(--brand-red-dark) 100%);
  border-radius: var(--radius-xl); padding: 64px; color: #fff; text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.7); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* --- Footer --- */
.site-footer { background: var(--brand-black); color: rgba(255,255,255,.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 16px; display: inline-flex; }
.footer-brand .logo img { height: 48px; width: auto; }
.footer-brand p { font-size: 0.9rem; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.footer-social a:hover { border-color: var(--brand-red); background: var(--brand-red); color: #fff; }
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col a { display: block; font-size: 0.85rem; padding: 6px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--brand-red); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem;
}
.footer-payments { display: flex; gap: 8px; }
.footer-payments span {
  padding: 4px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 4px; font-size: 0.7rem;
}

/* --- Breadcrumbs --- */
.breadcrumbs { padding: 16px 0; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-secondary); transition: var(--transition); }
.breadcrumbs a:hover { color: var(--brand-red); }
.breadcrumbs .separator { margin: 0 8px; }

/* --- Shop Page --- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filter-sidebar { position: sticky; top: 100px; }
.filter-group { margin-bottom: 28px; }
.filter-group h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border-light); }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.9rem; cursor: pointer; }
.filter-option input[type="checkbox"] { accent-color: var(--brand-red); width: 16px; height: 16px; }
.filter-option .count { margin-left: auto; color: var(--text-muted); font-size: 0.8rem; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 100%; padding: 8px 12px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.shop-toolbar__count { font-size: 0.9rem; color: var(--text-secondary); }
.shop-toolbar__sort select { padding: 8px 12px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 40px; }
.pagination a, .pagination span {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; transition: var(--transition);
}
.pagination a:hover { background: var(--surface-light); }
.pagination .active { background: var(--brand-red); color: #fff; }

/* --- Product Detail --- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery { position: sticky; top: 100px; }
.gallery-main {
  width: 100%; height: 480px; background: #f5f5f5; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; font-size: 5rem;
  color: var(--text-muted); margin-bottom: 12px;
  border: 1.5px solid #e0e0e0;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-lg) - 2px); cursor: zoom-in; transition: transform 0.4s ease; }
.gallery-main img:hover { transform: scale(1.04); }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 80px; height: 80px; background: #f5f5f5; border-radius: var(--radius-sm);
  border: 1.5px solid #e0e0e0; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--text-muted); transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--brand-red); box-shadow: 0 0 0 2px rgba(220,38,38,.15); }
.product-info .label { margin-bottom: 8px; display: block; }
.product-info h1 { margin-bottom: 12px; }
.product-info__rating { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.product-info__price { font-size: 2rem; font-weight: 800; color: var(--brand-red); margin-bottom: 20px; font-family: var(--font-display); }
.product-info__price .original { text-decoration: line-through; color: var(--text-muted); font-size: 1.2rem; font-weight: 400; margin-left: 12px; }
.product-info__desc { margin-bottom: 28px; line-height: 1.8; }
.product-options { margin-bottom: 28px; }
.product-options h4 { margin-bottom: 12px; }
.color-swatches { display: flex; gap: 8px; }
.color-swatch {
  width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent;
  cursor: pointer; transition: var(--transition);
}
.color-swatch.active, .color-swatch:hover { border-color: var(--brand-red); transform: scale(1.1); }
.quantity-selector { display: flex; align-items: center; border: 1px solid var(--border-light); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; }
.quantity-selector button { width: 44px; height: 44px; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.quantity-selector button:hover { background: var(--surface-light); }
.quantity-selector input { width: 60px; text-align: center; border: none; border-left: 1px solid var(--border-light); border-right: 1px solid var(--border-light); font-weight: 600; }
.product-actions { display: flex; gap: 12px; margin-top: 28px; }
.product-meta { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border-light); }
.product-meta p { font-size: 0.85rem; margin-bottom: 6px; }
.product-meta strong { color: var(--text-primary); }

/* --- Tabs --- */
.tabs { border-bottom: 1px solid var(--border-light); display: flex; gap: 0; }
.tabs button {
  padding: 16px 24px; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  color: var(--text-muted); border-bottom: 2px solid transparent; transition: var(--transition);
}
.tabs button.active, .tabs button:hover { color: var(--brand-red); border-bottom-color: var(--brand-red); }
.tab-panel { padding: 32px 0; display: none; }
.tab-panel.active { display: block; }

/* --- Cart --- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); padding: 12px 16px; border-bottom: 2px solid var(--border-light); }
.cart-table td { padding: 20px 16px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.cart-item__product { display: flex; align-items: center; gap: 16px; }
.cart-item__image { width: 80px; height: 80px; background: var(--surface-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--text-muted); flex-shrink: 0; overflow: hidden; }
.cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-weight: 600; margin-bottom: 2px; }
.cart-item__variant { font-size: 0.8rem; color: var(--text-muted); }
.cart-item__remove { color: var(--text-muted); font-size: 0.8rem; }
.cart-item__remove:hover { color: var(--brand-red); }
.cart-summary {
  background: var(--surface-light); border-radius: var(--radius-lg); padding: 32px;
  position: sticky; top: 100px;
}
.cart-summary h3 { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.cart-summary__row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.9rem; }
.cart-summary__total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; padding-top: 16px; border-top: 2px solid var(--border-light); margin-top: 16px; }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }

/* --- Checkout --- */
.checkout-layout { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start; }
.checkout-steps { display: flex; gap: 0; margin-bottom: 40px; }
.checkout-step {
  flex: 1; text-align: center; padding: 16px; position: relative;
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
}
.checkout-step.active { color: var(--brand-red); }
.checkout-step.completed { color: var(--brand-black); }
.checkout-step::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--border-light); border-radius: 2px;
}
.checkout-step.active::after, .checkout-step.completed::after { background: var(--brand-red); }
.checkout-step span { display: block; font-size: 0.75rem; font-weight: 400; color: var(--text-muted); margin-top: 2px; }

/* --- Forms --- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row--single { grid-template-columns: 1fr; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); font-size: 0.9rem; transition: var(--transition);
  background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--brand-red); box-shadow: 0 0 0 3px rgba(196,18,48,.1); }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field .error { border-color: var(--brand-red); }
.form-error { font-size: 0.75rem; color: var(--brand-red); margin-top: 4px; }

/* --- Auth Pages --- */
.auth-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.auth-card h2 { text-align: center; margin-bottom: 8px; }
.auth-card > p { text-align: center; margin-bottom: 28px; }
.auth-divider { text-align: center; margin: 24px 0; position: relative; color: var(--text-muted); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border-light); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.85rem; color: var(--text-muted); }
.auth-footer a { color: var(--brand-red); font-weight: 600; }

/* --- Dashboard --- */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.dashboard-sidebar {
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 24px; position: sticky; top: 100px;
}
.dashboard-user { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); margin-bottom: 20px; }
.dashboard-avatar {
  width: 72px; height: 72px; background: var(--surface-muted); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
  font-size: 1.5rem; font-weight: 700; color: var(--text-muted);
}
.dashboard-user h4 { margin-bottom: 4px; }
.dashboard-user p { font-size: 0.8rem; }
.dashboard-nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text-secondary);
  transition: var(--transition); margin-bottom: 2px;
}
.dashboard-nav a:hover { background: var(--surface-light); color: var(--brand-red); }
.dashboard-nav a.active { background: rgba(196,18,48,.08); color: var(--brand-red); font-weight: 600; }
.dashboard-content { min-height: 400px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md);
  padding: 24px; transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card__icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 12px; }
.stat-card__icon--red { background: rgba(196,18,48,.1); color: var(--brand-red); }
.stat-card__icon--gold { background: rgba(201,161,59,.1); color: var(--brand-gold); }
.stat-card__icon--dark { background: rgba(12,12,20,.08); color: var(--brand-black); }
.stat-card__value { font-size: 1.5rem; font-weight: 800; font-family: var(--font-display); margin-bottom: 4px; }
.stat-card__label { font-size: 0.8rem; color: var(--text-muted); }

/* --- Tables --- */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); overflow: hidden; }
.data-table th {
  text-align: left; padding: 14px 16px; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); background: var(--surface-light);
  border-bottom: 1px solid var(--border-light); font-weight: 600;
}
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); font-size: 0.9rem; }
.data-table tr:hover td { background: rgba(247,247,249,.5); }
.status-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}
.status-badge--success { background: #e8f5e9; color: #2e7d32; }
.status-badge--warning { background: #fff8e1; color: #f57f17; }
.status-badge--danger { background: #ffebee; color: #c62828; }
.status-badge--info { background: #e3f2fd; color: #1565c0; }
.status-badge--neutral { background: var(--surface-muted); color: var(--text-muted); }

/* --- Admin --- */
.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--brand-black); color: var(--text-inverse); padding: 24px 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .logo { padding: 0 24px; margin-bottom: 32px; color: #fff; }
.admin-nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 24px;
  font-size: 0.85rem; color: rgba(255,255,255,.6); transition: var(--transition);
}
.admin-nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.admin-nav a.active { color: #fff; background: rgba(196,18,48,.3); border-left: 3px solid var(--brand-red); }
.admin-main { background: var(--surface-light); }
.admin-header {
  background: #fff; border-bottom: 1px solid var(--border-light); padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-body { padding: 32px; }
.admin-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 24px; margin-bottom: 24px; }
.admin-card h3 { margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }

/* --- Toast animation --- */
@keyframes slideIn {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateX(100%); }
}

/* --- Alerts --- */
.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.9rem; display: flex; align-items: center; gap: 12px; }
.alert--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert--warning { background: #fff8e1; color: #f57f17; border: 1px solid #ffecb3; }
.alert--danger { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.alert--info { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }

/* --- Empty States --- */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-state__icon { font-size: 3rem; margin-bottom: 16px; opacity: .4; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { margin-bottom: 24px; }

/* --- Back to Top --- */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
  background: var(--brand-red); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
  transition: var(--transition); z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-2px); background: var(--brand-red-dark); }

/* --- Newsletter --- */
.newsletter { background: var(--surface-light); border-radius: var(--radius-lg); padding: 48px; text-align: center; }
.newsletter h3 { margin-bottom: 8px; }
.newsletter p { margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.newsletter-form input { flex: 1; }

/* --- Mobile Navigation --- */
.mobile-nav {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999;
  background: rgba(12,12,20,.8); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: var(--transition);
  display: none; /* Hide on desktop */
}
@media (max-width: 768px) {
  .mobile-nav { display: block; } /* Show only on mobile */
}
.mobile-nav.open {
  opacity: 1; visibility: visible;
}
.mobile-nav__panel {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #fff; z-index: 1000; padding: 20px;
  display: flex; flex-direction: column;
  transform: translateX(-100%); transition: var(--transition);
  max-width: 80vw;
}
.mobile-nav.open .mobile-nav__panel {
  transform: translateX(0);
}
.mobile-nav__close {
  align-self: flex-end; margin-bottom: 20px; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--text-secondary);
}
.mobile-nav__close:hover { color: var(--brand-red); background: var(--surface-light); }
.mobile-nav__links {
  display: flex; flex-direction: column; gap: 0;
}
.mobile-nav__link {
  padding: 16px 0; border-bottom: 1px solid var(--border-light);
  font-family: var(--font-display); font-weight: 500; font-size: 1rem;
  color: var(--text-secondary); transition: var(--transition);
}
.mobile-nav__link:hover { color: var(--brand-red); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-slider, .hero-slide { min-height: 420px; }
  .hero { min-height: 420px; }
  .hero__image { display: none; }
  .slider-arrow { width: 38px; height: 38px; font-size: 1.4rem; }
  .features-bar { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .product-detail { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .finder-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .features-bar { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .finder-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero { min-height: 360px; }
  .mobile-toggle { display: flex; }
  .nav-desktop { display: none; }
  .header-actions .btn--icon:not(.cart-badge):not(.mobile-toggle):not(.search-toggle) { display: none; }
  .checkout-steps { flex-direction: column; }
}
