/* =====================================================
   ECOMMERCE V1 — STYLE
   Design boutique premium 2025
   ===================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --bg-elev: #fafafa;
  --bg-beige: #f5f1eb;
  --bg-dark: #0f0f0f;
  --fg: #0f0f0f;
  --fg-muted: #6b6b6b;
  --fg-subtle: #a3a3a3;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --accent: #0f0f0f;
  --accent-bright: #f97316;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

::selection { background: var(--fg); color: var(--bg); }

.container { max-width: 1400px; margin: 0 auto; padding: 0 32px; width: 100%; }

/* ============ TOP BANNER ============ */
.top-banner {
  background: var(--bg-dark);
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ============ NAVBAR ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 72px;
}

.nav-menu-btn {
  display: flex;
  align-items: center;
  color: var(--fg);
}

.nav-menu-btn svg { width: 22px; height: 22px; }

@media (min-width: 1024px) { .nav-menu-btn { display: none; } }

.nav-logo {
  flex-shrink: 0;
}

.logo-mark {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--fg);
}

.nav-links {
  display: none;
  gap: 40px;
  list-style: none;
}

@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover { color: var(--fg); }

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--fg);
  transition: width 0.3s var(--ease);
}

.nav-link:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  transition: background 0.2s ease;
  position: relative;
}

.nav-icon-btn:hover { background: var(--bg-elev); }

.nav-icon-btn svg { width: 20px; height: 20px; }

.nav-cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent-bright);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ HERO ============ */
.hero {
  padding: 80px 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; }
}

.hero-content {
  max-width: 560px;
}

.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--fg);
}

.hero-title em {
  font-style: italic;
  color: var(--accent-bright);
}

.hero-desc {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--bg-dark);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -10px rgba(249, 115, 22, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--bg-elev);
  border-color: var(--fg);
}

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
}

.hero-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-bright);
}

.hero-visual {
  position: relative;
  height: 620px;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  height: 90%;
  border-radius: 16px;
  overflow: hidden;
}

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

.hero-image-small {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 55%;
  height: 50%;
  border-radius: 16px;
  overflow: hidden;
  border: 8px solid white;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.2);
}

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

/* ============ SECTIONS ============ */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
}

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

.section-link:hover {
  gap: 12px;
  color: var(--accent-bright);
  border-color: var(--accent-bright);
}

.section-link svg {
  width: 16px;
  height: 16px;
}

/* ============ CATEGORIES ============ */
.categories { background: var(--bg); }

.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
}

.category-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  display: block;
}

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

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

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: white;
}

.category-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 4px;
}

.category-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.category-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  color: var(--fg);
  padding: 8px;
  align-self: flex-start;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.category-card:hover .category-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============ PRODUCTS ============ */
.featured { background: var(--bg-elev); }

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 24px;
}

@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  position: relative;
  display: block;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-beige);
  margin-bottom: 16px;
}

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

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

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-direction: column;
}

.product-badge {
  padding: 4px 10px;
  background: var(--bg-dark);
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
}

.product-badge-promo {
  background: var(--accent-bright);
}

.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  transition: all 0.2s ease;
  opacity: 0;
  transform: translateY(-8px);
}

.product-card:hover .product-wishlist {
  opacity: 1;
  transform: translateY(0);
}

.product-wishlist:hover {
  background: var(--accent-bright);
  color: white;
}

.product-wishlist svg { width: 18px; height: 18px; }

.product-add {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  padding: 12px;
  background: var(--bg-dark);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s var(--ease);
}

.product-card:hover .product-add {
  opacity: 1;
  transform: translateY(0);
}

.product-add:hover {
  background: var(--accent-bright);
}

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

.product-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-price-current {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}

.product-price-old {
  font-size: 14px;
  color: var(--fg-subtle);
  text-decoration: line-through;
}

/* ============ PROMO BANNER ============ */
.promo-banner {
  padding: 80px 32px;
  background: var(--bg-beige);
}

.promo-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .promo-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}

.promo-image {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
}

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

.promo-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.promo-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 20px;
}

.promo-desc {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

/* ============ NEW ============ */
.new { background: var(--bg); }

.products-grid-4 {
  /* déjà défini par products-grid */
}

/* ============ NEWSLETTER ============ */
.newsletter {
  padding: 100px 32px;
  background: var(--bg-dark);
  color: white;
}

.newsletter-content {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-icon {
  font-size: 40px;
  color: var(--accent-bright);
  margin-bottom: 24px;
}

.newsletter-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: white;
}

.newsletter-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto 16px;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: white;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.newsletter-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-bright);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
  padding: 16px 28px;
  background: var(--accent-bright);
  color: white;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -8px rgba(249, 115, 22, 0.5);
}

.newsletter-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--fg);
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elev);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  transition: all 0.2s ease;
}

.footer-social:hover {
  background: var(--bg-dark);
  color: white;
}

.footer-social svg { width: 18px; height: 18px; }

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-link {
  display: block;
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--fg); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; }
}

.footer-bottom p {
  font-size: 12px;
  color: var(--fg-subtle);
}

.footer-payments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-payment {
  font-size: 10px;
  font-weight: 700;
  padding: 6px 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .nav-inner { padding: 0 20px; height: 64px; gap: 16px; }
  .hero { padding: 60px 20px; }
  .section { padding: 80px 0; }
  .promo-banner { padding: 60px 20px; }
  .newsletter { padding: 80px 20px; }
  .footer { padding: 60px 0 32px; }
  .container { padding: 0 20px; }
  .hero-visual { height: 480px; }
  .hero-image-small { display: none; }
  .hero-image { width: 100%; height: 100%; }
}