/* ============================================
   SEXTOYS-PRIVE.COM — Modern Dark Theme
   Mobile-first responsive design
   ============================================ */

/* === CSS Variables === */
:root {
  --sx-bg: #1a1a1e;
  --sx-bg2: #222226;
  --sx-bg3: #2a2a2e;
  --sx-pink: #e6007f;
  --sx-pink-hover: #ff4da6;
  --sx-pink-soft: rgba(230, 0, 127, .12);
  --sx-text: #e8e8ea;
  --sx-text2: #aaa;
  --sx-text-muted: #666;
  --sx-border: #333;
  --sx-border-light: #444;
  --sx-success: #28c76f;
  --sx-danger: #ea5455;
  --sx-warning: #ff9f43;
  --sx-radius: 8px;
  --sx-radius-lg: 12px;
  --sx-shadow: 0 2px 12px rgba(0, 0, 0, .4);
  --sx-shadow-lg: 0 8px 32px rgba(0, 0, 0, .5);
  --sx-transition: .25s ease;
  --sx-max-w: 1400px;
  --sx-font: 'Open Sans', Arial, sans-serif;
  --sx-font-heading: 'Playfair Display', Georgia, serif;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: var(--sx-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--sx-text);
  background: var(--sx-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: left;
}

a { color: var(--sx-pink); text-decoration: none; transition: color var(--sx-transition); }
a:hover { color: var(--sx-pink-hover); }
img { max-width: 100%; height: auto; display: block; }
main { width: 100%; overflow-x: hidden; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--sx-bg); }
::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--sx-pink); }

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--sx-pink);
  outline-offset: 2px;
}

/* Skip Link (accessibility) */
.sx-skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--sx-pink);
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 var(--sx-radius) var(--sx-radius);
  font-weight: 700;
  z-index: 9999;
  transition: top .2s ease;
}
.sx-skip-link:focus {
  top: 0;
  color: #fff;
}


/* ============================================
   HEADER
   ============================================ */
.sx-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--sx-bg2);
  border-bottom: 1px solid var(--sx-border);
}

.sx-header-inner {
  max-width: var(--sx-max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  height: 56px;
}

/* Hamburger */
.sx-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  z-index: 1001;
}

.sx-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sx-text);
  border-radius: 2px;
  transition: var(--sx-transition);
  transform-origin: center;
}

.sx-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.sx-hamburger.active span:nth-child(2) { opacity: 0; }
.sx-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Logo */
.sx-logo { flex-shrink: 0; display: flex; align-items: center; min-width: 0; }
.sx-logo img { height: 28px; width: auto; max-width: 120px; }

/* Search Bar */
.sx-search-bar {
  flex: 1;
  min-width: 0;
  max-width: 400px;
  position: relative;
}

.sx-search-bar input {
  width: 100%;
  padding: 8px 36px 8px 14px;
  border: 1px solid var(--sx-border);
  border-radius: 24px;
  background: var(--sx-bg3);
  color: var(--sx-text);
  font-size: 13px;
  font-family: var(--sx-font);
  transition: border-color var(--sx-transition), box-shadow var(--sx-transition);
}

.sx-search-bar input::placeholder { color: var(--sx-text-muted); }
.sx-search-bar input:focus {
  border-color: var(--sx-pink);
  box-shadow: 0 0 0 3px var(--sx-pink-soft);
  outline: none;
}

.sx-search-bar button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--sx-text2);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
}

.sx-search-bar button:hover { color: var(--sx-pink); }

/* Header Links — hidden on mobile, shown on desktop */
.sx-header-links {
  display: none;
  gap: 14px;
  flex-shrink: 0;
}

.sx-header-links a {
  color: var(--sx-text2);
  font-size: 13px;
  white-space: nowrap;
  transition: color var(--sx-transition);
}

.sx-header-links a:hover { color: var(--sx-pink); }

/* Mini Cart */
.sx-cart-mini {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--sx-text);
  padding: 8px;
  transition: color var(--sx-transition);
}

.sx-cart-mini:hover { color: var(--sx-pink); }

.sx-cart-mini svg {
  width: 22px;
  height: 22px;
}


/* ============================================
   HAMBURGER PANEL (Slide-in)
   ============================================ */
.sx-panel {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  height: 100dvh;
  background: var(--sx-bg2);
  z-index: 2000;
  transition: left .3s ease;
  overflow-y: auto;
  border-right: 1px solid var(--sx-border);
  padding-top: 16px;
  overscroll-behavior: contain;
}

.sx-panel.open { left: 0; }

.sx-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .6);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.sx-overlay.active { opacity: 1; visibility: visible; }

/* Panel close button */
.sx-panel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--sx-text2);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.sx-panel-close:hover { color: var(--sx-pink); }

/* Panel search */
.sx-panel-search {
  padding: 8px 16px 16px;
}

.sx-panel-search input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--sx-border);
  border-radius: 24px;
  background: var(--sx-bg3);
  color: var(--sx-text);
  font-size: 14px;
  font-family: var(--sx-font);
}

.sx-panel-search input:focus {
  border-color: var(--sx-pink);
  outline: none;
}

/* Panel categories */
.sx-panel-cat {
  border-bottom: 1px solid var(--sx-border);
}

.sx-panel-cat-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  color: var(--sx-text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--sx-transition);
  background: none;
  border: none;
  font-family: var(--sx-font);
  text-align: left;
}

.sx-panel-cat-title:hover { background: var(--sx-bg3); }

.sx-panel-cat-title .sx-arrow {
  transition: transform .3s ease;
  color: var(--sx-text2);
  flex-shrink: 0;
}

.sx-panel-cat.open .sx-arrow { transform: rotate(180deg); }

.sx-panel-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  background: var(--sx-bg);
}

.sx-panel-cat.open .sx-panel-sub { max-height: 600px; }

.sx-panel-sub a {
  display: block;
  padding: 10px 20px 10px 36px;
  color: var(--sx-text2);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  transition: background var(--sx-transition), color var(--sx-transition);
}

.sx-panel-sub a:hover {
  background: var(--sx-pink-soft);
  color: var(--sx-pink);
}

/* Panel utility links */
.sx-panel-links {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sx-panel-links a {
  color: var(--sx-text2);
  font-size: 14px;
  padding: 6px 0;
}

.sx-panel-links a:hover { color: var(--sx-pink); }


/* ============================================
   HERO SECTION
   ============================================ */
.sx-hero {
  position: relative;
  text-align: center;
  padding: 30px 12px 28px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(230, 0, 127, .10) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(100, 0, 200, .08) 0%, transparent 50%),
    linear-gradient(180deg, var(--sx-bg2) 0%, var(--sx-bg) 100%);
  overflow: hidden;
  width: 100%;
}

.sx-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2h2v6h-2zM0 20h2v2H0v-2zm4 0h2v2H4v-2zm8 0h2v2h-2v-2zm8 0h2v2h-2v-2z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.sx-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.sx-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(230, 0, 127, .12);
  border: 1px solid rgba(230, 0, 127, .25);
  color: var(--sx-pink-hover);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: .3px;
}

.sx-hero-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.sx-hero h1 {
  font-family: var(--sx-font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  background: linear-gradient(135deg, #fff 0%, #e6007f 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: sx-shine 4s ease-in-out infinite;
}

@keyframes sx-shine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

.sx-hero p {
  color: var(--sx-text2);
  font-size: 13px;
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.6;
  word-wrap: break-word;
}

.sx-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sx-pink);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  padding: 11px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  transition: all .3s ease;
  box-shadow: 0 4px 20px rgba(230, 0, 127, .35);
  max-width: 100%;
  text-align: center;
}

.sx-hero-cta:hover {
  background: var(--sx-pink-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(230, 0, 127, .5);
  color: #fff !important;
}

.sx-cta-arrow { transition: transform .3s ease; }
.sx-hero-cta:hover .sx-cta-arrow { transform: translateX(4px); }


/* ============================================
   REASSURANCE BAR
   ============================================ */
.sx-reassurance {
  background: var(--sx-bg2);
  border-bottom: 1px solid var(--sx-border);
  width: 100%;
}

.sx-reassurance-inner {
  max-width: var(--sx-max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.sx-reassurance-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--sx-border);
  min-width: 0;
}

.sx-reassurance-item:nth-child(odd) {
  border-right: 1px solid var(--sx-border);
}

.sx-reassurance-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.sx-reassurance-icon {
  flex-shrink: 0;
  color: var(--sx-pink);
  width: 24px;
  height: 24px;
}

.sx-reassurance-item div {
  min-width: 0;
}

.sx-reassurance-item strong {
  display: block;
  font-size: 12px;
  color: var(--sx-text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sx-reassurance-item span {
  font-size: 10px;
  color: var(--sx-text-muted);
  line-height: 1.3;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ============================================
   SECTIONS & TITLES
   ============================================ */
.sx-section {
  padding: 0 12px;
  max-width: var(--sx-max-w);
  margin: 0 auto;
  width: 100%;
}

.sx-section-title {
  text-align: center;
  font-family: var(--sx-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sx-text);
  margin: 30px 0 16px;
  position: relative;
  padding-bottom: 12px;
  word-wrap: break-word;
}

.sx-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--sx-pink);
  border-radius: 2px;
}

/* Section CTA */
.sx-section-cta {
  text-align: center;
  margin-top: 24px;
  padding-bottom: 10px;
}

.sx-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: 2px solid var(--sx-pink);
  border-radius: 30px;
  color: var(--sx-pink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  transition: all var(--sx-transition);
  max-width: 100%;
  text-align: center;
}

.sx-btn-outline:hover {
  background: var(--sx-pink);
  color: #fff;
}


/* ============================================
   CATEGORY GRID
   ============================================ */
.sx-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.sx-cat-card {
  position: relative;
  border-radius: var(--sx-radius-lg);
  overflow: hidden;
  background: var(--sx-bg2);
  transition: transform var(--sx-transition), box-shadow var(--sx-transition), border-color var(--sx-transition);
  border: 1px solid var(--sx-border);
}

.sx-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sx-shadow-lg);
  border-color: var(--sx-pink);
}

.sx-cat-card a {
  display: block;
  position: relative;
  text-decoration: none;
}

.sx-cat-card-img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--sx-bg3);
}

.sx-cat-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.sx-cat-card:hover .sx-cat-card-img-wrap img {
  transform: scale(1.06);
}

/* Overlay gradient */
.sx-cat-card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, transparent 100%);
  pointer-events: none;
  transition: height var(--sx-transition);
}

.sx-cat-card:hover .sx-cat-card-img-wrap::after {
  height: 70%;
}

/* Title overlay */
.sx-cat-card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  z-index: 2;
}

.sx-cat-card-title h3 {
  font-family: var(--sx-font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

/* Badge promo */
.sx-cat-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--sx-pink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 3;
  letter-spacing: .3px;
}


/* ============================================
   PRODUCT GRID
   ============================================ */
.sx-prd-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.sx-prd-card {
  position: relative;
  background: var(--sx-bg2);
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius-lg);
  overflow: hidden;
  transition: transform var(--sx-transition), box-shadow var(--sx-transition), border-color var(--sx-transition);
}

.sx-prd-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sx-shadow-lg);
  border-color: var(--sx-pink);
}

.sx-prd-card a { display: block; text-decoration: none; }

.sx-prd-card-img {
  aspect-ratio: 1 / 1.15;
  overflow: hidden;
  background: #fff;
}

.sx-prd-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
}

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

.sx-prd-card-body {
  padding: 10px;
  min-width: 0;
}

.sx-prd-card-body h3 {
  font-family: var(--sx-font);
  font-size: 12px;
  font-weight: 600;
  color: var(--sx-text);
  margin: 0 0 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.sx-prd-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.sx-prd-price-current {
  color: var(--sx-pink);
  font-size: 15px;
  font-weight: 700;
}

.sx-prd-price-old {
  color: var(--sx-text-muted);
  font-size: 11px;
  text-decoration: line-through;
}

/* Badges */
.sx-prd-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--sx-pink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

.sx-prd-badge-new {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--sx-success);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}


/* ============================================
   TAG CLOUD
   ============================================ */
.sx-tags {
  padding: 0 0 20px;
  width: 100%;
}

.sx-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.sx-tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--sx-bg2);
  border: 1px solid var(--sx-border);
  border-radius: 20px;
  color: var(--sx-text2);
  font-size: 12px;
  transition: all var(--sx-transition);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-tag:hover {
  background: var(--sx-pink-soft);
  border-color: var(--sx-pink);
  color: var(--sx-pink);
}

.sx-tag-lg { font-size: 13px; padding: 7px 16px; }
.sx-tag-sm { font-size: 11px; padding: 5px 10px; }


/* ============================================
   SEO TEXT BLOCK
   ============================================ */
.sx-seo-block {
  background: var(--sx-bg2);
  border-top: 1px solid var(--sx-border);
  margin-top: 30px;
  padding: 30px 12px;
  width: 100%;
}

.sx-seo-inner {
  max-width: var(--sx-max-w);
  margin: 0 auto;
}

.sx-seo-block h2 {
  font-family: var(--sx-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sx-text);
  margin: 0 0 20px;
  text-align: center;
}

.sx-seo-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.sx-seo-cols p {
  color: var(--sx-text2);
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 16px;
}

.sx-seo-cols a {
  color: var(--sx-pink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sx-seo-cols a:hover {
  color: var(--sx-pink-hover);
}

.sx-seo-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--sx-border);
}

.sx-seo-links a {
  color: var(--sx-text2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--sx-transition);
}

.sx-seo-links a:hover { color: var(--sx-pink); }


/* ============================================
   FOOTER
   ============================================ */
.sx-footer {
  background: var(--sx-bg2);
  border-top: 1px solid var(--sx-border);
  padding: 30px 12px 20px;
  margin-top: 0;
  width: 100%;
}

.sx-footer-inner {
  max-width: var(--sx-max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  text-align: center;
}

.sx-footer-col h3 {
  font-family: var(--sx-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--sx-text);
  margin: 0 0 12px;
}

.sx-footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sx-footer-col a {
  color: var(--sx-text2);
  font-size: 13px;
  padding: 3px 0;
  transition: color var(--sx-transition);
}

.sx-footer-col a:hover { color: var(--sx-pink); }

.sx-footer-pay {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  margin-top: 28px;
  border-top: 1px solid var(--sx-border);
}

.sx-footer-pay span {
  font-size: 12px;
  color: var(--sx-text-muted);
}

.sx-footer-pay img {
  opacity: .6;
  transition: opacity var(--sx-transition);
  max-width: none;
}

.sx-footer-pay img:hover { opacity: 1; }

/* Payment sprite images */
.sx-footer-pay img.cbcard { width: 35px; height: 26px; background: url(../images/cbs-sprite.png) 0 0; }
.sx-footer-pay img.visa { width: 39px; height: 26px; background: url(../images/cbs-sprite.png) -36px 0; }
.sx-footer-pay img.mastercard { width: 39px; height: 26px; background: url(../images/cbs-sprite.png) -76px 0; }

.sx-footer-copy {
  text-align: center;
  color: var(--sx-text-muted);
  font-size: 12px;
  padding-top: 14px;
}

.sx-footer-copy a { color: var(--sx-text-muted); }
.sx-footer-copy a:hover { color: var(--sx-pink); }


/* ============================================
   ANIMATIONS — Fade-in on scroll
   ============================================ */
.sx-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.sx-fade-in.sx-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay for category grid */
.sx-cat-grid .sx-cat-card:nth-child(1) { transition-delay: 0s; }
.sx-cat-grid .sx-cat-card:nth-child(2) { transition-delay: .06s; }
.sx-cat-grid .sx-cat-card:nth-child(3) { transition-delay: .12s; }
.sx-cat-grid .sx-cat-card:nth-child(4) { transition-delay: .18s; }
.sx-cat-grid .sx-cat-card:nth-child(5) { transition-delay: .24s; }
.sx-cat-grid .sx-cat-card:nth-child(6) { transition-delay: .30s; }
.sx-cat-grid .sx-cat-card:nth-child(7) { transition-delay: .36s; }
.sx-cat-grid .sx-cat-card:nth-child(8) { transition-delay: .42s; }
.sx-cat-grid .sx-cat-card:nth-child(9) { transition-delay: .48s; }
.sx-cat-grid .sx-cat-card:nth-child(10) { transition-delay: .54s; }
.sx-cat-grid .sx-cat-card:nth-child(11) { transition-delay: .60s; }
.sx-cat-grid .sx-cat-card:nth-child(12) { transition-delay: .66s; }

/* Staggered delay for product grid */
.sx-prd-grid .sx-prd-card:nth-child(1) { transition-delay: 0s; }
.sx-prd-grid .sx-prd-card:nth-child(2) { transition-delay: .06s; }
.sx-prd-grid .sx-prd-card:nth-child(3) { transition-delay: .12s; }
.sx-prd-grid .sx-prd-card:nth-child(4) { transition-delay: .18s; }
.sx-prd-grid .sx-prd-card:nth-child(5) { transition-delay: .24s; }
.sx-prd-grid .sx-prd-card:nth-child(6) { transition-delay: .30s; }
.sx-prd-grid .sx-prd-card:nth-child(7) { transition-delay: .36s; }
.sx-prd-grid .sx-prd-card:nth-child(8) { transition-delay: .42s; }


/* ============================================
   RESPONSIVE — Small phones (min 375px)
   ============================================ */
@media (min-width: 375px) {
  .sx-header-inner { gap: 10px; padding: 0 12px; }
  .sx-logo img { height: 30px; max-width: 130px; }
  .sx-hero { padding: 34px 14px 30px; }
  .sx-hero h1 { font-size: 1.5rem; }
  .sx-hero p { font-size: 13px; }
  .sx-section { padding: 0 14px; }
  .sx-reassurance-item { padding: 14px 12px; }
  .sx-reassurance-item strong { font-size: 12px; }

  .sx-detail { padding: 0 14px 24px; }
  .sx-detail-header h1 { font-size: 1.2rem; }
  .sx-detail-thumb { width: 65px; height: 78px; }
}

/* ============================================
   RESPONSIVE — Tablet portrait (min 480px)
   ============================================ */
@media (min-width: 480px) {
  .sx-header-inner { gap: 12px; padding: 0 16px; height: 58px; }
  .sx-logo img { height: 32px; max-width: 140px; }
  .sx-search-bar input { font-size: 14px; padding: 9px 38px 9px 16px; }

  .sx-hero { padding: 40px 20px 35px; }
  .sx-hero h1 { font-size: 1.6rem; }
  .sx-hero p { font-size: 14px; }
  .sx-hero-badge { font-size: 12px; }
  .sx-hero-cta { padding: 12px 26px; font-size: 13px; }

  .sx-section { padding: 0 16px; }
  .sx-section-title { font-size: 1.2rem; margin: 35px 0 18px; }

  .sx-cat-grid { gap: 12px; }
  .sx-cat-card-title h3 { font-size: 13px; }
  .sx-prd-grid { gap: 12px; }
  .sx-prd-card-body h3 { font-size: 13px; }
  .sx-prd-price-current { font-size: 16px; }

  .sx-reassurance-item strong { font-size: 13px; }
  .sx-reassurance-item span { font-size: 11px; }
  .sx-reassurance-icon { width: 28px; height: 28px; }

  .sx-seo-block { padding: 34px 16px; }
  .sx-footer { padding: 34px 16px 20px; }
}

/* ============================================
   RESPONSIVE — Tablet (min 600px)
   ============================================ */
@media (min-width: 600px) {
  .sx-header-inner { height: 62px; gap: 14px; padding: 0 20px; }
  .sx-hamburger span { width: 24px; }
  .sx-logo img { height: 36px; max-width: 150px; }

  .sx-hero { padding: 48px 24px 42px; }
  .sx-hero h1 { font-size: 1.8rem; }
  .sx-hero p { font-size: 15px; line-height: 1.7; }
  .sx-hero-badge { font-size: 13px; padding: 6px 16px; }
  .sx-hero-cta { padding: 13px 30px; font-size: 14px; }

  .sx-section { padding: 0 20px; }
  .sx-section-title { font-size: 1.35rem; margin: 42px 0 22px; }

  .sx-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .sx-cat-card-title h3 { font-size: 14px; }
  .sx-cat-card-badge { font-size: 12px; padding: 4px 10px; top: 10px; left: 10px; }

  .sx-prd-grid { gap: 14px; }
  .sx-prd-card-body { padding: 12px; }
  .sx-prd-card-body h3 { font-size: 14px; }
  .sx-prd-price-current { font-size: 17px; }
  .sx-prd-price-old { font-size: 12px; }

  .sx-seo-cols { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .sx-seo-block h2 { font-size: 1.25rem; }
  .sx-seo-block { padding: 40px 20px; }

  .sx-footer-inner { grid-template-columns: repeat(3, 1fr); text-align: left; }
  .sx-footer { padding: 36px 20px 20px; }

  .sx-tags { padding: 0 0 30px; }
  .sx-tags-wrap { gap: 8px; }
  .sx-tag { padding: 8px 18px; font-size: 13px; }
  .sx-tag-lg { font-size: 15px; padding: 9px 22px; }
  .sx-tag-sm { font-size: 12px; padding: 6px 14px; }
  .sx-btn-outline { padding: 11px 26px; font-size: 14px; }
}

/* ============================================
   RESPONSIVE — Tablet landscape (min 768px)
   ============================================ */
@media (min-width: 768px) {
  .sx-header-inner { height: 64px; gap: 16px; }
  .sx-logo img { height: 38px; max-width: 160px; }
  .sx-search-bar { max-width: 320px; }

  .sx-reassurance-inner { grid-template-columns: repeat(4, 1fr); }
  .sx-reassurance-item {
    border-bottom: none;
    border-right: 1px solid var(--sx-border);
    padding: 18px 14px;
  }
  .sx-reassurance-item:nth-child(odd) { border-right: 1px solid var(--sx-border); }
  .sx-reassurance-item:last-child { border-right: none; }
  .sx-reassurance-icon { width: 30px; height: 30px; }
  .sx-reassurance-item strong { font-size: 13px; white-space: normal; }
  .sx-reassurance-item span { font-size: 11px; white-space: normal; }

  .sx-prd-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .sx-hero h1 { font-size: 2rem; }
  .sx-hero p { font-size: 15px; }
}

/* ============================================
   RESPONSIVE — Desktop (min 1024px)
   ============================================ */
@media (min-width: 1024px) {
  .sx-header-links { display: flex; }
  .sx-search-bar { max-width: 380px; }

  .sx-hero { padding: 56px 24px 48px; }
  .sx-hero h1 { font-size: 2.3rem; }
  .sx-hero p { font-size: 16px; margin-bottom: 26px; }
  .sx-hero-cta { padding: 14px 32px; font-size: 15px; }

  .sx-section-title { font-size: 1.5rem; margin: 48px 0 28px; }

  .sx-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .sx-cat-card-title h3 { font-size: 15px; }
  .sx-cat-card-title { padding: 16px; }

  .sx-prd-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .sx-prd-card-body h3 { font-size: 14px; }
  .sx-prd-price-current { font-size: 18px; }

  .sx-reassurance-item { padding: 20px 16px; }
  .sx-reassurance-icon { width: 32px; height: 32px; }

  .sx-seo-block { padding: 48px 24px; }
  .sx-seo-block h2 { font-size: 1.4rem; }

  .sx-tags { padding: 0 0 40px; }
  .sx-btn-outline { padding: 12px 28px; font-size: 14px; }
}

/* ============================================
   RESPONSIVE — Large desktop (min 1200px)
   ============================================ */
@media (min-width: 1200px) {
  .sx-search-bar { max-width: 420px; }
  .sx-logo img { height: 40px; max-width: 170px; }
  .sx-hero h1 { font-size: 2.5rem; }
  .sx-section-title { font-size: 1.6rem; margin: 50px 0 30px; }
}


/* ============================================
   LEGACY OVERRIDES (for pages still using
   old includes)
   ============================================ */
.chemin, .recherche, .textePanier, .texteHome, .space,
.box-produit-home, .btnHome, .reductionHome, .btnDetailHome,
.nuage, .nuageLeft,
.boxMenu, .box, .onglet,
.cb, .bottom, .colissimo, .lienInterne, .lienExterne,
#top .menu, #top .menuCompte, #top .menuHome,
#top .logo,
#left, #right {
  display: none !important;
}

#main { width: 100%; max-width: var(--sx-max-w); margin: 0 auto; }
#top { position: relative; z-index: 2000; }
#container { width: 100% !important; height: auto !important; background: none !important; padding: 0; }
#bottom { width: 100%; }


/* ============================================
   BREADCRUMBS
   ============================================ */
.sx-breadcrumb {
  padding: 10px 12px;
  max-width: var(--sx-max-w);
  margin: 0 auto;
  width: 100%;
}

.sx-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.sx-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--sx-text-muted);
}

.sx-breadcrumb li a {
  color: var(--sx-text2);
  transition: color var(--sx-transition);
}

.sx-breadcrumb li a:hover { color: var(--sx-pink); }

.sx-breadcrumb li:last-child a { color: var(--sx-text); font-weight: 600; }

.sx-breadcrumb .sx-bc-sep {
  color: var(--sx-text-muted);
  font-size: 11px;
}


/* ============================================
   LISTING PAGE — Category Header
   ============================================ */
.sx-listing-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 20px;
  background: var(--sx-bg2);
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius-lg);
  margin: 0 16px 20px;
  max-width: var(--sx-max-w);
}

.sx-listing-header-img {
  flex-shrink: 0;
  width: 90px;
  height: 115px;
  border-radius: var(--sx-radius);
  overflow: hidden;
  background: var(--sx-bg3);
}

.sx-listing-header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sx-listing-header-info { flex: 1; min-width: 0; }

.sx-listing-header-info h1 {
  font-family: var(--sx-font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sx-text);
  margin: 0 0 8px;
  line-height: 1.3;
}

.sx-listing-header-info p {
  color: var(--sx-text2);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sx-listing-count {
  font-size: 12px;
  color: var(--sx-text-muted);
  margin-top: 6px;
}

.sx-listing-count strong { color: var(--sx-pink); }

/* Search result header */
.sx-search-header h1 { font-size: 1.2rem; }
.sx-search-header .sx-search-term { color: var(--sx-pink); font-weight: 700; }


/* ============================================
   LISTING PAGE — Sort & Toolbar
   ============================================ */
.sx-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  max-width: var(--sx-max-w);
  margin: 0 auto 16px;
  gap: 12px;
}

.sx-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sx-sort label {
  font-size: 13px;
  color: var(--sx-text2);
  white-space: nowrap;
}

.sx-sort select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius);
  background: var(--sx-bg2);
  color: var(--sx-text);
  font-size: 13px;
  font-family: var(--sx-font);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23aaa' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 120px;
}

.sx-sort select:focus {
  border-color: var(--sx-pink);
  outline: none;
  box-shadow: 0 0 0 3px var(--sx-pink-soft);
}


/* ============================================
   LISTING PAGE — Subcategories Grid
   ============================================ */
.sx-subcat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 16px;
  max-width: var(--sx-max-w);
  margin: 0 auto 24px;
}

.sx-subcat-card {
  background: var(--sx-bg2);
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius-lg);
  overflow: hidden;
  transition: transform var(--sx-transition), border-color var(--sx-transition);
}

.sx-subcat-card:hover {
  transform: translateY(-3px);
  border-color: var(--sx-pink);
}

.sx-subcat-card a { display: block; text-decoration: none; }

.sx-subcat-card-img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--sx-bg3);
}

.sx-subcat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.sx-subcat-card:hover .sx-subcat-card-img img { transform: scale(1.05); }

.sx-subcat-card-body {
  padding: 10px;
  text-align: center;
}

.sx-subcat-card-body h2 {
  font-family: var(--sx-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--sx-text);
  margin: 0 0 4px;
}

.sx-subcat-card .sx-cat-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
}


/* ============================================
   LISTING PAGE — Product Grid Wrapper
   ============================================ */
.sx-listing-grid {
  padding: 0 16px;
  max-width: var(--sx-max-w);
  margin: 0 auto;
}

.sx-no-results {
  text-align: center;
  padding: 48px 20px;
  color: var(--sx-text2);
  font-size: 15px;
}

.sx-no-results svg {
  display: block;
  margin: 0 auto 16px;
  color: var(--sx-text-muted);
}


/* ============================================
   PAGINATION
   ============================================ */
.sx-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 24px 16px;
  flex-wrap: wrap;
}

.sx-pagination a, .sx-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--sx-radius);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--sx-transition);
  color: var(--sx-text2);
  border: 1px solid var(--sx-border);
  background: var(--sx-bg2);
}

.sx-pagination a:hover {
  border-color: var(--sx-pink);
  color: var(--sx-pink);
  background: var(--sx-pink-soft);
}

.sx-pagination .sx-page-active {
  background: var(--sx-pink);
  color: #fff;
  border-color: var(--sx-pink);
}

.sx-pagination .sx-page-prev,
.sx-pagination .sx-page-next {
  font-size: 18px;
  font-weight: 400;
}

.sx-pagination .sx-page-disabled {
  opacity: .3;
  pointer-events: none;
}


/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.sx-detail {
  max-width: var(--sx-max-w);
  margin: 0 auto;
  padding: 0 12px 24px;
}

/* Title + price bar */
.sx-detail-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--sx-border);
  margin-bottom: 20px;
}

.sx-detail-header h1 {
  font-family: var(--sx-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sx-text);
  margin: 0;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.sx-detail-main-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sx-pink);
  white-space: nowrap;
}

/* 2-column layout */
.sx-detail-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Gallery */
.sx-detail-gallery {
  position: relative;
}

.sx-detail-main-img {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  border-radius: var(--sx-radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.sx-detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sx-detail-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.sx-detail-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 72px;
  border-radius: var(--sx-radius);
  overflow: hidden;
  border: 2px solid var(--sx-border);
  cursor: pointer;
  transition: border-color var(--sx-transition);
  background: #fff;
}

.sx-detail-thumb:hover,
.sx-detail-thumb.active {
  border-color: var(--sx-pink);
}

.sx-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Lightbox */
.sx-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, .92);
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.sx-lightbox.open { display: flex; }

.sx-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  z-index: 5001;
  padding: 8px;
  line-height: 1;
}

.sx-lightbox-close:hover { color: var(--sx-pink); }

.sx-lightbox-img {
  max-width: min(90vw, 100%);
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--sx-radius);
}

.sx-lightbox-prev,
.sx-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .15);
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 14px 12px;
  border-radius: var(--sx-radius);
  transition: background var(--sx-transition);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sx-lightbox-prev:hover,
.sx-lightbox-next:hover { background: var(--sx-pink); }

.sx-lightbox-prev { left: 8px; }
.sx-lightbox-next { right: 8px; }

/* Detail Info Panel */
.sx-detail-info { min-width: 0; }

.sx-detail-info-table {
  width: 100%;
  background: var(--sx-bg2);
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.sx-detail-row {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--sx-border);
  gap: 10px;
}

.sx-detail-row:last-child { border-bottom: none; }

.sx-detail-row-label {
  flex: 1;
  font-size: 13px;
  color: var(--sx-text2);
}

.sx-detail-row-value {
  font-size: 13px;
  color: var(--sx-pink);
  font-weight: 600;
  text-align: right;
}

/* Promo badge in detail */
.sx-detail-promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--sx-pink-soft);
  border-bottom: 1px solid var(--sx-border);
  width: 100%;
}

.sx-detail-promo-pct {
  background: var(--sx-pink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.sx-detail-promo-old {
  font-size: 14px;
  color: var(--sx-text-muted);
  text-decoration: line-through;
}

/* Stars (CSS-only) */
.sx-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--sx-warning);
}

.sx-stars svg {
  width: 14px;
  height: 14px;
}

.sx-stars .sx-star-empty { color: var(--sx-text-muted); }

/* Availability */
.sx-stock-ok { color: var(--sx-success); }
.sx-stock-limited { color: var(--sx-warning); }
.sx-stock-deferred { color: var(--sx-text2); }
.sx-stock-out { color: var(--sx-danger); }

/* Description & details */
.sx-detail-desc {
  background: var(--sx-bg2);
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}

.sx-detail-desc-title {
  font-family: var(--sx-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--sx-text);
  margin: 0 0 12px;
}

.sx-detail-desc-text {
  font-size: 14px;
  color: var(--sx-text2);
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow-x: hidden;
}

.sx-detail-desc-text p { margin: 0 0 10px; }
.sx-detail-desc-text a { color: var(--sx-pink); }
.sx-detail-desc-text ul { padding-left: 20px; }
.sx-detail-desc-text img { border-radius: var(--sx-radius); margin: 8px 0; max-width: 100% !important; height: auto !important; }
.sx-detail-desc-text table { width: 100% !important; max-width: 100% !important; table-layout: fixed; border-collapse: collapse; }
.sx-detail-desc-text td, .sx-detail-desc-text th { word-break: break-word; overflow-wrap: break-word; }
.sx-detail-desc-text iframe, .sx-detail-desc-text embed, .sx-detail-desc-text object { max-width: 100%; }
.sx-detail-desc-text font { font-size: inherit !important; color: inherit !important; font-family: inherit !important; }


/* ============================================
   ADD TO CART FORM
   ============================================ */
.sx-cart-form {
  background: var(--sx-bg2);
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

.sx-cart-form-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--sx-text);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sx-border);
}

.sx-form-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 12px;
}

.sx-form-row label {
  font-size: 13px;
  color: var(--sx-text2);
}

.sx-form-row select,
.sx-form-row input[type="text"] {
  padding: 8px 12px;
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius);
  background: var(--sx-bg3);
  color: var(--sx-text);
  font-size: 13px;
  font-family: var(--sx-font);
  min-width: 0;
  width: 100%;
}

.sx-form-row select:focus,
.sx-form-row input[type="text"]:focus {
  border-color: var(--sx-pink);
  outline: none;
  box-shadow: 0 0 0 3px var(--sx-pink-soft);
}

.sx-form-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23aaa' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
}

/* Personalization fields */
.sx-perso-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--sx-border);
}

.sx-perso-section p {
  font-size: 12px;
  color: var(--sx-text2);
  margin: 0 0 12px;
  line-height: 1.5;
}

.sx-perso-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 8px;
}

.sx-perso-row label {
  font-size: 12px;
  color: var(--sx-text2);
}

.sx-perso-row input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius);
  background: var(--sx-bg3);
  color: var(--sx-text);
  font-size: 13px;
  font-family: var(--sx-font);
}

.sx-perso-row input:focus {
  border-color: var(--sx-pink);
  outline: none;
}

/* Add to cart button */
.sx-btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: var(--sx-pink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  letter-spacing: .3px;
  text-transform: uppercase;
  transition: all .3s ease;
  box-shadow: 0 4px 20px rgba(230, 0, 127, .35);
  margin-top: 16px;
  font-family: var(--sx-font);
}

.sx-btn-cart:hover {
  background: var(--sx-pink-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(230, 0, 127, .5);
}

.sx-btn-cart:disabled,
.sx-btn-cart.sx-btn-disabled {
  background: var(--sx-text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.sx-btn-cart svg {
  width: 20px;
  height: 20px;
}

.sx-btn-rupture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  background: var(--sx-bg3);
  color: var(--sx-danger);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--sx-danger);
  border-radius: 30px;
  margin-top: 16px;
  cursor: default;
}

/* Loader */
.sx-cart-loader {
  display: none;
  text-align: center;
  padding: 10px;
}

.sx-cart-loader img {
  width: 32px;
  height: 32px;
  display: inline-block;
}


/* ============================================
   REVIEWS SECTION
   ============================================ */
.sx-reviews {
  background: var(--sx-bg2);
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
}

.sx-reviews-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  color: var(--sx-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sx-font);
  text-align: left;
  transition: background var(--sx-transition);
}

.sx-reviews-toggle:hover { background: var(--sx-bg3); }

.sx-reviews-toggle .sx-arrow {
  transition: transform .3s ease;
  color: var(--sx-text2);
}

.sx-reviews.open .sx-reviews-toggle .sx-arrow { transform: rotate(180deg); }

.sx-reviews-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.sx-reviews.open .sx-reviews-body { max-height: 2000px; }

.sx-reviews-content {
  padding: 0 16px 16px;
}

.sx-review-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--sx-border);
}

.sx-review-item:last-child { border-bottom: none; }

.sx-review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.sx-review-meta .sx-stars { margin-right: 4px; }

.sx-review-author {
  font-size: 12px;
  color: var(--sx-pink);
  font-weight: 600;
}

.sx-review-date {
  font-size: 11px;
  color: var(--sx-text-muted);
}

.sx-review-verified {
  font-size: 10px;
  color: var(--sx-success);
  font-weight: 600;
}

.sx-review-text {
  font-size: 13px;
  color: var(--sx-text2);
  line-height: 1.6;
  font-style: italic;
}

/* Review form */
.sx-review-form {
  padding: 16px;
  border-top: 1px solid var(--sx-border);
  background: var(--sx-bg3);
}

.sx-review-form h4 {
  font-size: 13px;
  color: var(--sx-pink);
  margin: 0 0 12px;
  line-height: 1.5;
}

.sx-review-form .sx-form-row { margin-bottom: 10px; }

.sx-review-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius);
  background: var(--sx-bg2);
  color: var(--sx-text);
  font-size: 13px;
  font-family: var(--sx-font);
  resize: vertical;
}

.sx-review-form textarea:focus {
  border-color: var(--sx-pink);
  outline: none;
}

.sx-review-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.sx-btn-sm {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--sx-transition);
  font-family: var(--sx-font);
  border: 1px solid var(--sx-border);
}

.sx-btn-sm-primary {
  background: var(--sx-pink);
  color: #fff;
  border-color: var(--sx-pink);
}

.sx-btn-sm-primary:hover { background: var(--sx-pink-hover); }

.sx-btn-sm-secondary {
  background: var(--sx-bg2);
  color: var(--sx-text2);
}

.sx-btn-sm-secondary:hover { background: var(--sx-bg3); }


/* ============================================
   RELATED PRODUCTS
   ============================================ */
.sx-related {
  max-width: var(--sx-max-w);
  margin: 0 auto;
  padding: 0 16px 32px;
}

.sx-related-title {
  font-family: var(--sx-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sx-text);
  text-align: center;
  margin: 0 0 16px;
  padding-bottom: 10px;
  position: relative;
}

.sx-related-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--sx-pink);
  border-radius: 2px;
}

.sx-related-title a {
  color: var(--sx-text);
  transition: color var(--sx-transition);
}

.sx-related-title a:hover { color: var(--sx-pink); }

.sx-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}


/* ============================================
   CART POPUP (modern overlay)
   ============================================ */
.sx-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgba(0, 0, 0, .7);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sx-popup-overlay.active { display: flex; }

.sx-popup-box {
  background: var(--sx-bg2);
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius-lg);
  padding: 28px 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: sx-popup-in .3s ease;
}

@keyframes sx-popup-in {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}

.sx-popup-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(40, 199, 111, .15);
  margin: 0 auto 16px;
}

.sx-popup-icon svg {
  width: 28px;
  height: 28px;
  color: var(--sx-success);
}

.sx-popup-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--sx-text);
  margin: 0 0 8px;
}

.sx-popup-box p {
  font-size: 13px;
  color: var(--sx-text2);
  margin: 0 0 20px;
}

.sx-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sx-popup-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 2px solid var(--sx-pink);
  border-radius: 30px;
  color: var(--sx-pink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--sx-transition);
  background: none;
  font-family: var(--sx-font);
}

.sx-popup-continue:hover {
  background: var(--sx-pink);
  color: #fff;
}

.sx-popup-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--sx-pink);
  border: 2px solid var(--sx-pink);
  border-radius: 30px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--sx-transition);
  text-decoration: none;
  font-family: var(--sx-font);
}

.sx-popup-cart:hover {
  background: var(--sx-pink-hover);
  border-color: var(--sx-pink-hover);
  color: #fff;
}


/* ============================================
   RESPONSIVE — Detail page (480px)
   ============================================ */
@media (min-width: 480px) {
  .sx-listing-header { flex-direction: row; text-align: left; align-items: center; margin: 0 16px 20px; }
  .sx-listing-header-img { width: 110px; height: 140px; }
  .sx-listing-header-info h1 { font-size: 1.4rem; }

  .sx-detail-header { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
  .sx-detail-header h1 { font-size: 1.4rem; }
  .sx-detail-main-price { font-size: 1.8rem; }

  .sx-detail-thumb { width: 80px; height: 95px; }

  .sx-form-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .sx-form-row select, .sx-form-row input[type="text"] { width: auto; flex: 1; max-width: 240px; }

  .sx-perso-row { flex-direction: row; align-items: center; gap: 10px; }
  .sx-perso-row label { min-width: 80px; }

  .sx-cart-form { padding: 20px; }
  .sx-detail-desc { padding: 20px; }

  .sx-popup-actions { flex-direction: row; justify-content: center; }
}

/* ============================================
   RESPONSIVE — Detail page (600px)
   ============================================ */
@media (min-width: 600px) {
  .sx-listing-header { margin: 0 20px 24px; gap: 24px; }
  .sx-listing-header-img { width: 120px; height: 155px; }
  .sx-listing-header-info h1 { font-size: 1.5rem; }
  .sx-listing-header-info p { -webkit-line-clamp: none; overflow: visible; }

  .sx-listing-grid { padding: 0 20px; }
  .sx-toolbar { padding: 10px 20px; }
  .sx-subcat-grid { grid-template-columns: repeat(3, 1fr); padding: 0 20px; }
  .sx-related-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .sx-related { padding: 0 20px 32px; }

  .sx-detail { padding: 0 20px 24px; }
  .sx-detail-header h1 { font-size: 1.5rem; }
  .sx-detail-main-img { aspect-ratio: 1 / 1.08; }

  .sx-detail-thumb { width: 80px; height: 96px; }
  .sx-lightbox { padding: 20px; }
  .sx-lightbox-prev { left: 12px; }
  .sx-lightbox-next { right: 12px; }
}

/* ============================================
   RESPONSIVE — Detail page (768px)
   ============================================ */
@media (min-width: 768px) {
  .sx-detail-body {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .sx-detail-header h1 { font-size: 1.6rem; }
  .sx-detail-main-price { font-size: 2rem; }
  .sx-detail-main-img { aspect-ratio: 1 / 1.15; }

  .sx-listing-header-info h1 { font-size: 1.6rem; }
  .sx-listing-header-img { width: 130px; height: 170px; }

  .sx-subcat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .sx-related-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* ============================================
   RESPONSIVE — Detail page (1024px)
   ============================================ */
@media (min-width: 1024px) {
  .sx-detail-body {
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
  }

  .sx-detail-header h1 { font-size: 1.7rem; }
  .sx-detail-main-price { font-size: 2.2rem; }

  .sx-listing-header { margin: 0 auto 28px; max-width: calc(var(--sx-max-w) - 48px); gap: 28px; padding: 24px; }
  .sx-listing-header-info h1 { font-size: 1.8rem; }
  .sx-listing-header-img { width: 150px; height: 200px; }
  .sx-listing-grid { max-width: var(--sx-max-w); }

  .sx-subcat-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: var(--sx-max-w); }
  .sx-related-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .sx-related-title { font-size: 1.3rem; }

  .sx-detail-thumb { width: 100px; height: 120px; }
}
