/* ===== VARIABLES ===== */
:root {
  --bordeaux: #330000;
  --bordeaux-deep: #220000;
  --bordeaux-light: #5c1c1c;
  --beige: #f5f5dc;
  --beige-soft: #ece7d0;
  --white: #ffffff;
  --gray: #7d6a5c;
  --font-title: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  --transition: 0.35s ease;
  --banner-height: 40px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--bordeaux);
  background: var(--white);
  font-weight: 300;
  overflow-x: hidden;
  padding-top: var(--banner-height);
}

/* ===== TOP BANNER ===== */
.top-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--banner-height);
  background: var(--bordeaux);
  overflow: hidden;
  z-index: 1100;
  display: flex;
  align-items: center;
}

.top-banner-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: bannerScroll 26s linear infinite;
}

.top-banner-item {
  color: var(--beige);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 10px;
}

.top-banner-sep {
  color: var(--beige);
  opacity: 0.5;
}

@keyframes bannerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 600; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 15px 38px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--bordeaux);
  transition: var(--transition);
  border-radius: 2px;
}

.btn-primary {
  background: var(--beige);
  color: var(--bordeaux);
  border-color: var(--beige);
}
.btn-primary:hover {
  background: transparent;
  color: var(--beige);
}

.btn-outline {
  background: transparent;
  color: var(--bordeaux);
  border-color: var(--bordeaux);
}
.btn-outline:hover {
  background: var(--bordeaux);
  color: var(--beige);
}

.btn-full { width: 100%; text-align: center; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: var(--banner-height); left: 0; right: 0;
  z-index: 1550;
  background: transparent;
  transition: var(--transition);
  padding: 22px 0;
}

.header.scrolled {
  background: rgba(51, 0, 0, 0.95);
  padding: 14px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--beige);
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 100px;
  width: auto;
}

.nav {
  display: flex;
  gap: 42px;
}

.nav-link {
  color: var(--beige);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--beige);
  transition: var(--transition);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--white); }

/* Backdrop behind the mobile slide-in menu, click to close (same pattern as cart/search overlays) */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(51,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1490;
}
.nav-overlay.active { opacity: 1; visibility: visible; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Bigger tap targets for header icon buttons on touch screens, without changing their visual size */
@media (max-width: 768px) {
  .search-btn, .cart-btn, .burger {
    padding: 10px;
    margin: -10px;
  }
}

.search-btn {
  background: none;
  border: none;
  color: var(--beige);
  cursor: pointer;
  display: flex;
  transition: var(--transition);
}
.search-btn:hover { color: var(--white); }

.cart-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--beige);
  cursor: pointer;
  display: flex;
}

.cart-count {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--beige);
  color: var(--bordeaux);
  font-size: 0.65rem;
  font-weight: 600;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  width: 26px; height: 1.5px;
  background: var(--beige);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: calc(100vh - var(--banner-height));
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../images/femme-portrait-bijoux-or-cartier.webp') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(51,0,0,0.6) 0%, rgba(51,0,0,0.4) 50%, rgba(34,0,0,0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--beige);
  padding: 0 20px;
  max-width: 800px;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 36px;
  color: rgba(245, 245, 220, 0.85);
}

.scroll-indicator {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid var(--beige);
  border-radius: 20px;
  z-index: 2;
}
.scroll-indicator span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--beige);
  border-radius: 2px;
  animation: scrollDown 1.6s infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 22px; }
}

/* ===== SECTION HEAD ===== */
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 60px;
}

.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 14px;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.section-title.light { color: var(--beige); }

.section-desc {
  color: var(--gray);
  font-size: 0.98rem;
}

/* ===== COLLECTIONS ===== */
.collections {
  padding: 110px 0;
  background: var(--white);
}

.collection-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 10px 26px;
  border: 1px solid var(--bordeaux);
  background: transparent;
  color: var(--bordeaux);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 30px;
  transition: var(--transition);
}

.filter-btn:hover {
  background: var(--beige-soft);
}

.filter-btn.active {
  background: var(--bordeaux);
  color: var(--beige);
}

/* ===== COLLECTION GALLERY (home) ===== */
.collection-gallery {
  display: flex;
  width: 100%;
  height: 540px;
  margin-top: 30px;
  overflow: hidden;
}

.gallery-panel {
  position: relative;
  flex: 1;
  min-width: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-panel:hover {
  flex: 2.3;
}

.gallery-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(51,0,0,0) 45%, rgba(51,0,0,0.8) 100%);
  transition: var(--transition);
}

.gallery-panel:hover .gallery-panel-overlay {
  background: linear-gradient(180deg, rgba(51,0,0,0.1) 0%, rgba(51,0,0,0.85) 100%);
}

.gallery-panel-label {
  position: relative;
  z-index: 2;
  color: var(--beige);
  font-family: var(--font-title);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 30px 8px;
  white-space: normal;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}

.product-card {
  position: relative;
  cursor: default;
}

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.1;
  background: var(--beige-soft);
  margin-bottom: 18px;
  touch-action: pan-y;
  cursor: grab;
}
.product-image:active { cursor: grabbing; }

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

.product-card:hover .product-image img {
  transform: scale(1.08);
}

/* ===== PRODUCT IMAGE SLIDER (drag with mouse, swipe with finger) ===== */
.product-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}
.product-slider:active { cursor: grabbing; }

.product-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
}

.product-slider-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.product-slider-dots {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
}
.product-slider-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(245,245,220,0.65);
  border: 1px solid rgba(51,0,0,0.25);
  cursor: pointer;
  transition: all 0.2s ease;
}
.product-slider-dots span.active {
  background: var(--bordeaux);
  width: 16px;
  border-radius: 3px;
}

.product-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--bordeaux);
  color: var(--beige);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  z-index: 2;
}

.product-add {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  padding: 12px;
  background: var(--white);
  color: var(--bordeaux);
  border: none;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  touch-action: pan-y;
}

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

.product-add:hover { background: var(--bordeaux); color: var(--beige); }

.product-badge-out {
  background: var(--white);
  color: var(--bordeaux);
  border: 1px solid var(--bordeaux);
}

.product-card-out .product-image img { filter: grayscale(40%); opacity: 0.75; }

.product-add:disabled {
  opacity: 1 !important;
  transform: translateY(0) !important;
  background: var(--beige-soft);
  color: var(--gray);
  cursor: not-allowed;
}
.product-add:disabled:hover { background: var(--beige-soft); color: var(--gray); }

/* Touch devices have no :hover — keep the button always visible instead of stuck at opacity:0 */
@media (hover: none) {
  .product-add {
    opacity: 1;
    transform: translateY(0);
    background: var(--bordeaux);
    color: var(--beige);
  }
}

.product-category {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 6px;
}

.product-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.product-price {
  font-size: 0.95rem;
  color: var(--gray);
}

.product-price-current {
  font-weight: 700;
  margin-right: 8px;
}

.product-price-old {
  text-decoration: line-through;
  color: var(--gray);
  opacity: 0.65;
  font-size: 0.9em;
  font-weight: 400;
}

/* ===== STORY ===== */
.story {
  background: var(--beige-soft);
  padding: 110px 0;
}

.story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.story-image {
  overflow: hidden;
}
.story-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.story-image:hover img { transform: scale(1.05); }

.story-text p {
  color: var(--gray);
  line-height: 1.85;
  margin-bottom: 20px;
  font-size: 0.98rem;
}

.story-text .section-title { text-align: left; }
.story-text .section-kicker { text-align: left; }

/* ===== PERKS ===== */
.perks {
  background: var(--bordeaux);
  padding: 80px 0;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.perk {
  text-align: center;
  color: var(--beige);
}

.perk-icon {
  color: var(--beige);
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
}

.perk h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.perk p {
  font-size: 0.85rem;
  color: rgba(245, 245, 220, 0.65);
}

.perk p a {
  color: var(--beige);
  text-decoration: underline;
  font-weight: 500;
}
.perk p a:hover { color: var(--white); }

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 110px 0;
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.testimonial {
  background: var(--beige-soft);
  padding: 40px 32px;
  text-align: center;
}

.stars {
  color: var(--bordeaux);
  font-size: 1.1rem;
  margin-bottom: 18px;
  letter-spacing: 3px;
}

.testimonial p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #4a3535;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  background: var(--bordeaux);
  padding: 90px 0;
}

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

.newsletter-inner p {
  color: rgba(245, 245, 220, 0.75);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  border: 1px solid rgba(245, 245, 220, 0.35);
  background: transparent;
  color: var(--beige);
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: 2px;
}
.newsletter-form input::placeholder { color: rgba(245, 245, 220, 0.5); }
.newsletter-form input:focus { outline: none; border-color: var(--beige); }

.newsletter-msg {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--beige);
  min-height: 1.2em;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bordeaux-deep);
  color: rgba(245, 245, 220, 0.8);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(245, 245, 220, 0.15);
}

.footer-col .logo { display: inline-block; margin-bottom: 16px; }

.footer-brand {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--beige);
  margin-bottom: 14px;
}

.footer-tagline {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(245, 245, 220, 0.75);
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(245, 245, 220, 0.6);
}

.footer-col h4 {
  color: var(--beige);
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(245, 245, 220, 0.65);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--beige); }

.contact-list li { color: rgba(245, 245, 220, 0.65); font-size: 0.88rem; }

.socials {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}
.socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(245, 245, 220, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--beige);
  transition: var(--transition);
}
.socials a:hover {
  background: var(--beige);
  border-color: var(--beige);
  color: var(--bordeaux);
}

.footer-bottom {
  position: relative;
  text-align: center;
  padding: 26px 0;
  font-size: 0.82rem;
  color: rgba(245, 245, 220, 0.45);
}

.back-to-top {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(245, 245, 220, 0.3);
  background: transparent;
  color: var(--beige);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.back-to-top:hover {
  background: var(--beige);
  color: var(--bordeaux);
  border-color: var(--beige);
}

/* ===== SEARCH PANEL ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(51,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1998;
}
.search-overlay.active { opacity: 1; visibility: visible; }

.search-panel {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--white);
  z-index: 1999;
  padding: 90px 0 40px;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  max-height: 100vh;
  overflow-y: auto;
}
.search-panel.active { transform: translateY(0); }

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid var(--bordeaux);
  padding-bottom: 18px;
  color: var(--bordeaux);
}

.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--bordeaux);
  background: transparent;
}
.search-input-wrap input::placeholder { color: rgba(51,0,0,0.35); }

.search-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--bordeaux);
  cursor: pointer;
}

.search-results {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 10px;
  border-radius: 4px;
  transition: var(--transition);
}
.search-result:hover { background: var(--beige-soft); }

.search-result img {
  width: 56px; height: 56px;
  object-fit: cover;
}

.search-result-name {
  font-family: var(--font-title);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.search-result-price {
  font-size: 0.82rem;
  color: var(--gray);
}

.search-empty,
.search-hint {
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 20px;
  text-align: center;
}

.product-card.highlight .product-image {
  outline: 2px solid var(--bordeaux);
  outline-offset: 4px;
}

/* ===== SHOP BANNER (boutique page) ===== */
.shop-banner {
  background: var(--bordeaux);
  padding: calc(var(--banner-height) + 170px) 0 70px;
  text-align: center;
}

.shop-breadcrumb {
  color: rgba(245, 245, 220, 0.65);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.shop-breadcrumb a { color: var(--beige); }
.shop-breadcrumb a:hover { text-decoration: underline; }

.shop-title {
  color: var(--beige);
  font-size: 2.6rem;
}

/* ===== CART DRAWER ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(51,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1998;
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  z-index: 1999;
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.active { right: 0; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 28px;
  border-bottom: 1px solid #eee;
}
.cart-header h3 { font-size: 1.2rem; }

.cart-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  color: var(--bordeaux);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
}

.cart-empty {
  color: var(--gray);
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
}

.cart-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: center;
}

.cart-item img {
  width: 70px; height: 70px;
  object-fit: cover;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.9rem; font-weight: 500; margin-bottom: 4px; }
.cart-item-color { font-size: 0.78rem; color: var(--gray); margin-bottom: 2px; }
.cart-item-price { font-size: 0.85rem; color: var(--gray); }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.cart-item-qty button {
  width: 22px; height: 22px;
  border: 1px solid #ccc;
  background: none;
  cursor: pointer;
  font-size: 0.85rem;
}
.cart-item-qty button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.cart-item-stock-note {
  font-size: 0.72rem;
  color: var(--bordeaux);
  margin-top: 4px;
}
.cart-item-remove {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 1.2rem;
}

.cart-footer {
  padding: 24px 28px 30px;
  border-top: 1px solid #eee;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-title);
  font-size: 1.1rem;
  margin-bottom: 18px;
}

/* ===== CHECKOUT ===== */
.checkout-section {
  padding: 70px 0 120px;
}

.checkout-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--gray);
}
.checkout-empty p { margin-bottom: 24px; font-size: 1.05rem; }

/* Stepper */
.checkout-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 60px;
}

.checkout-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 26px;
  position: relative;
  color: var(--gray);
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--gray);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-family: var(--font-title);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.checkout-step-indicator:not(:last-child) .step-num::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  width: 60px;
  height: 1px;
  background: #ddd;
  z-index: -1;
}

.step-label {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.checkout-step-indicator.active { color: var(--bordeaux); }
.checkout-step-indicator.active .step-num {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
  color: var(--beige);
}

.checkout-step-indicator.completed { color: var(--bordeaux); }
.checkout-step-indicator.completed .step-num {
  background: var(--beige-soft);
  border-color: var(--bordeaux);
  color: var(--bordeaux);
}
.checkout-step-indicator.completed:not(:last-child) .step-num::after { background: var(--bordeaux); }

/* Layout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 50px;
  align-items: start;
}

.checkout-main { min-height: 480px; }
.checkout-panel { display: none; }
.checkout-panel.active { display: block; }

.checkout-panel h2 {
  font-size: 1.6rem;
  margin-bottom: 30px;
}

/* Forms */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  padding: 13px 16px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--bordeaux);
  background: #fff;
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--bordeaux);
}
.form-group input.invalid,
.form-group select.invalid {
  border-color: #b23a3a;
}

.field-error {
  font-size: 0.78rem;
  color: #b23a3a;
  min-height: 1.1em;
  margin-top: 5px;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

/* Delivery options */
.delivery-option {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 18px 20px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.delivery-option:has(input:checked),
.delivery-option.selected {
  border-color: var(--bordeaux);
  background: var(--beige-soft);
}
.delivery-option input { accent-color: var(--bordeaux); width: 18px; height: 18px; }
.delivery-option-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.delivery-option-info strong { font-size: 0.95rem; }
.delivery-option-info span { font-size: 0.82rem; color: var(--gray); }
.delivery-option-price { font-family: var(--font-title); font-size: 1rem; }

.address-recap {
  margin-top: 26px;
  padding: 18px 20px;
  background: var(--beige-soft);
  border-radius: 4px;
}
.address-recap h4 { font-size: 0.9rem; margin-bottom: 8px; }
.address-recap p { font-size: 0.9rem; color: var(--gray); line-height: 1.6; }

/* Payment option */
.payment-option {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid var(--bordeaux);
  background: var(--beige-soft);
  border-radius: 4px;
  padding: 22px;
}
.payment-option-icon { color: var(--bordeaux); flex-shrink: 0; }
.payment-option-info strong { display: block; margin-bottom: 8px; font-size: 1rem; }
.payment-option-info p { font-size: 0.88rem; color: var(--gray); line-height: 1.6; }

/* Recap */
.recap-block {
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid #eee;
}
.recap-block h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bordeaux);
  margin-bottom: 14px;
}
.recap-block p { font-size: 0.9rem; color: var(--gray); line-height: 1.6; }

.recap-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.recap-item img { width: 56px; height: 56px; object-fit: cover; }
.recap-item-info { flex: 1; }
.recap-item-name { font-size: 0.9rem; margin-bottom: 3px; }
.recap-item-color { font-size: 0.78rem; color: var(--gray); margin-bottom: 2px; }
.recap-item-qty { font-size: 0.8rem; color: var(--gray); }
.recap-item-price { font-family: var(--font-title); font-size: 0.9rem; }

.recap-totals div {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  margin-bottom: 10px;
  color: var(--gray);
}
.recap-total-final {
  font-family: var(--font-title);
  font-size: 1.2rem !important;
  color: var(--bordeaux) !important;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.checkout-error {
  color: #b23a3a;
  font-size: 0.85rem;
  margin-top: 16px;
  text-align: right;
}

/* ===== ORDER TRACKING (suivi.html) ===== */
.tracking-wrap {
  max-width: 620px;
  margin: 0 auto;
}

.tracking-intro {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 34px;
  text-align: center;
}

.tracking-form {
  background: var(--white);
  border: 1px solid #eee;
  padding: 34px;
  margin-bottom: 20px;
}

.tracking-form .btn { margin-top: 6px; width: 100%; }

.tracking-result {
  background: var(--white);
  border: 1px solid #eee;
  padding: 34px;
  margin-top: 34px;
}

.tracking-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid #eee;
}

.tracking-order-number {
  font-size: 0.9rem;
  color: var(--gray);
}

.tracking-status-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.tracking-status-en-attente { background: #fbeacb; color: #8a5a10; }
.tracking-status-en-préparation { background: #dbe6fb; color: #23508a; }
.tracking-status-expédiée { background: #e5dbfb; color: #5a238a; }
.tracking-status-livrée { background: #d7f0dd; color: #1f6b38; }
.tracking-status-annulée { background: #f8d9d9; color: #8a2323; }

@media (max-width: 600px) {
  .tracking-form, .tracking-result { padding: 26px 20px; }
}

/* Sidebar summary */
.checkout-summary {
  position: sticky;
  top: 100px;
  background: var(--beige-soft);
  border-radius: 6px;
  padding: 28px;
}
.checkout-summary h3 {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.summary-item img { width: 46px; height: 46px; object-fit: cover; }
.summary-item-info { flex: 1; }
.summary-item-name { font-size: 0.85rem; }
.summary-item-color { font-size: 0.72rem; color: var(--gray); margin: 2px 0; }
.summary-item-qty { font-size: 0.75rem; color: var(--gray); }
.summary-item-price { font-size: 0.85rem; }

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--gray);
  padding-top: 14px;
  border-top: 1px solid rgba(51,0,0,0.1);
  margin-top: 14px;
}
.summary-total {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--bordeaux);
}

/* Confirmation */
.checkout-confirmation {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0;
}
.confirmation-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bordeaux);
  color: var(--beige);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.checkout-confirmation h2 { font-size: 1.8rem; margin-bottom: 14px; }
.confirmation-order-number {
  font-size: 1rem;
  margin-bottom: 30px;
}
.confirmation-order-number strong { color: var(--bordeaux); }
.confirmation-summary {
  text-align: left;
  background: var(--beige-soft);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
}
.confirmation-note {
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 30px;
}
.confirmation-note a { color: var(--bordeaux); text-decoration: underline; font-weight: 500; }

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; order: -1; }
}

@media (max-width: 600px) {
  .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 0; }
  .checkout-step-indicator { padding: 0 10px; }
  .step-label { display: none; }
  .checkout-step-indicator:not(:last-child) .step-num::after { width: 18px; }
  .form-group input,
  .form-group select { font-size: 16px; }
  .cart-item-qty button { width: 34px; height: 34px; font-size: 1rem; }
  .cart-close, .search-close { padding: 6px; }
  .cart-item-remove { padding: 10px; margin: -10px; font-size: 1.4rem; }
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  background: var(--bordeaux);
  color: var(--beige);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(51,0,0,0.4);
  z-index: 1300;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  animation: whatsappPulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
  background: var(--beige);
  color: var(--bordeaux);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(51,0,0,0.5);
}
@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(51,0,0,0.4), 0 0 0 0 rgba(51,0,0,0.4); }
  50% { box-shadow: 0 4px 16px rgba(51,0,0,0.4), 0 0 0 10px rgba(51,0,0,0); }
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 18px;
    right: 18px;
  }
}

/* ===== FADE IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .story-inner { grid-template-columns: 1fr; }
  .story-image img { height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--bordeaux);
    flex-direction: column;
    padding: 100px 30px;
    gap: 30px;
    transition: right 0.4s ease;
    z-index: 1500;
  }
  .nav.active { right: 0; }
  .burger { display: flex; }

  .hero-title { font-size: 2.6rem; }
  .hero-subtitle { font-size: 0.95rem; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .perks-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .section-title { font-size: 1.9rem; }
  .search-results { grid-template-columns: repeat(2, 1fr); }
  .search-input-wrap input { font-size: 1.2rem; }
  .collection-gallery { flex-direction: column; height: auto; }
  .gallery-panel { flex: none !important; height: 130px; transition: height 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
  .gallery-panel.expanded { height: 300px; }
  .gallery-panel.expanded .gallery-panel-overlay { background: linear-gradient(180deg, rgba(51,0,0,0.1) 0%, rgba(51,0,0,0.85) 100%); }
  .shop-title { font-size: 2rem; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.1rem; }
  .search-results { grid-template-columns: 1fr; }
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-card { cursor: pointer; }

.product-detail-section {
  padding: 70px 0 60px;
  background: var(--white);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.product-detail-gallery .product-image {
  aspect-ratio: 1 / 1;
  margin-bottom: 0;
}

.product-detail-info .product-category { margin-bottom: 10px; }

.product-detail-name {
  font-size: 2rem;
  margin-bottom: 16px;
}

.product-detail-price {
  font-size: 1.3rem;
  margin-bottom: 26px;
}
.product-detail-price .product-price-current { margin-right: 12px; }
.product-detail-price .product-price-old { font-size: 0.75em; }

.product-detail-desc {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 34px;
  white-space: pre-line;
}

.product-color-options {
  margin-bottom: 26px;
}

.product-color-label {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--bordeaux);
}

.product-color-label span { font-weight: 600; }

.product-color-swatches {
  display: flex;
  gap: 10px;
}

.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(51, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-swatch:hover { transform: scale(1.1); }

.color-swatch.active {
  border-color: var(--bordeaux);
  box-shadow: 0 0 0 1px var(--bordeaux);
}

.product-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 380px;
  margin-bottom: 18px;
}

.product-detail-actions .btn {
  text-align: center;
}

.product-detail-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.product-detail-stock-note {
  color: var(--gray);
  font-size: 0.88rem;
}

.related-section .section-head { margin-bottom: 40px; }

@media (max-width: 900px) {
  .product-detail-layout { grid-template-columns: 1fr; gap: 30px; }
  .product-detail-actions { max-width: none; }
}
