@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Noto+Kufi+Arabic:wght@500;600;700;800&display=swap");

/* Silver DZ — storefront theme (neo-brutalist accents + bleu marque) */
:root {
  --sdz-black: #0f172a;
  --sdz-white: #ffffff;
  --sdz-bg-page: #f4f7fc;
  --sdz-border: #dfe7f2;
  --sdz-muted: #64748b;
  --sdz-gold: #ffc107;
  --sdz-gold-logo: #e6b800;
  --sdz-shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --sdz-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  /* Bleu marque */
  --sdz-brand: #2563eb;
  --sdz-brand-hover: #1d4ed8;
  --sdz-brand-active: #1e40af;
  --sdz-brand-ink: #06235b;
  --sdz-footer-copyright-bg: #020617;
  --sdz-neo-blue: #06235b;
  --sdz-focus-blue: #4da3ff;
  --sdz-focus-ring: rgba(37, 99, 235, 0.25);
  --sdz-radius-lg: 18px;
  --sdz-radius-md: 12px;
  --sdz-radius-sm: 10px;
}

html[dir="rtl"] body {
  font-family: "Noto Kufi Arabic", "Tajawal", system-ui, sans-serif;
  background: var(--sdz-bg-page) !important;
  color: var(--sdz-black);
}

html[dir="rtl"] .h1,
html[dir="rtl"] .h2,
html[dir="rtl"] .h3,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  font-family: "Noto Kufi Arabic", "Tajawal", system-ui, sans-serif;
}

.silverdz-font-en {
  font-family: "Montserrat", "Noto Kufi Arabic", sans-serif;
}

/* ---- Announcement ---- */
.silverdz-announcement {
  background: var(--sdz-brand-ink);
  color: var(--sdz-white);
  text-align: center;
  padding: 10px max(12px, env(safe-area-inset-left)) 10px max(12px, env(safe-area-inset-right));
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.4;
}

.silverdz-announcement svg {
  flex-shrink: 0;
  opacity: 0.95;
}

/* ---- Header / navbar ---- */
html[dir="rtl"] nav.silverdz-main-nav.navbar {
  box-shadow: var(--sdz-shadow-sm) !important;
  background: var(--sdz-white) !important;
  border-bottom: 1px solid var(--sdz-border);
  position: sticky;
  top: 0;
  z-index: 1030;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

html[dir="rtl"] .silverdz-main-nav__container {
  max-width: 1140px;
}

html[dir="rtl"] .silverdz-nav-brand img {
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

html[dir="rtl"] .silverdz-nav-toggler:focus {
  box-shadow: 0 0 0 3px var(--sdz-focus-ring);
}

html[dir="rtl"] .silverdz-nav-link.nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sdz-black) !important;
  border-radius: var(--sdz-radius-sm);
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

html[dir="rtl"] .silverdz-nav-link.nav-link:hover {
  color: var(--sdz-brand) !important;
  background-color: rgba(37, 99, 235, 0.07);
}

html[dir="rtl"] .silverdz-nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--sdz-black);
  border-radius: var(--sdz-radius-sm);
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

html[dir="rtl"] .silverdz-nav-icon-btn:hover {
  color: var(--sdz-brand);
  background-color: rgba(37, 99, 235, 0.08);
}

/* Panier : icône centrée dans la zone tactile ; badge au coin */
html[dir="rtl"] .silverdz-nav-cart {
  position: relative;
}

html[dir="rtl"] .silverdz-nav-cart-icon {
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

html[dir="rtl"] .silverdz-nav-cart .silverdz-cart-badge {
  position: absolute;
  top: -0.2rem;
  inset-inline-end: -0.3rem;
  inset-inline-start: auto;
  transform: none;
  margin: 0;
  background: var(--sdz-brand) !important;
  color: var(--sdz-white) !important;
  font-size: 0.65rem;
  min-width: 1.15rem;
  padding: 0.28em 0.45em;
  font-weight: 800;
  border-radius: 999px;
  line-height: 1;
  text-align: center;
  z-index: 2;
}

@media (min-width: 992px) {
  html[dir="rtl"] #template_main_nav .navbar-nav.silverdz-nav-links {
    max-width: none !important;
  }

  html[dir="rtl"] .silverdz-nav-collapse {
    flex-grow: 1;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
  }

  html[dir="rtl"] .silverdz-nav-links {
    gap: 0.15rem;
  }
}

/* Primary CTAs site-wide — bleu marque */
html[dir="rtl"] .btn-success {
  background-color: var(--sdz-brand) !important;
  border-color: var(--sdz-brand) !important;
  color: var(--sdz-white) !important;
  border-radius: var(--sdz-radius-md);
  font-weight: 700;
}

html[dir="rtl"] .btn-success:hover {
  background-color: var(--sdz-brand-hover) !important;
  border-color: var(--sdz-brand-hover) !important;
  color: var(--sdz-white) !important;
}

html[dir="rtl"] .btn-success:active {
  background-color: var(--sdz-brand-active) !important;
  border-color: var(--sdz-brand-active) !important;
}

/* Success page keeps its green CTAs (custom.css) */
html[dir="rtl"] .silverdz-success-section .btn-success {
  background-color: #16a34a !important;
  border-color: #16a34a !important;
}

html[dir="rtl"] .silverdz-success-section .btn-success:hover,
html[dir="rtl"] .silverdz-success-section .btn-success:focus {
  background-color: #15803d !important;
  border-color: #15803d !important;
  color: #fff !important;
}

html[dir="rtl"] .text-success {
  color: var(--sdz-brand) !important;
}

/* Hero — groupe de boutons (compat tous Bootstrap) */
.silverdz-hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

html[dir="rtl"] .silverdz-btn-outline-brand.btn-outline-success {
  color: var(--sdz-brand) !important;
  border-color: var(--sdz-brand) !important;
}

html[dir="rtl"] .silverdz-btn-outline-brand.btn-outline-success:hover {
  background-color: var(--sdz-brand) !important;
  border-color: var(--sdz-brand) !important;
  color: var(--sdz-white) !important;
}

/* ---- Footer ---- */
#template_footer.silverdz-footer {
  background: var(--sdz-white) !important;
  border-top: 1px solid var(--sdz-border);
  margin-top: auto;
}

#template_footer.silverdz-footer .silverdz-footer-body {
  border-bottom: 1px solid var(--sdz-border);
}

#template_footer.silverdz-footer .text-success {
  color: var(--sdz-brand) !important;
}

#template_footer.silverdz-footer .silverdz-footer-logo {
  width: 104px;
  height: 104px;
  object-fit: contain;
}

#template_footer.silverdz-footer .silverdz-footer-desc {
  color: var(--sdz-muted);
  line-height: 1.75;
  max-width: none;
}

#template_footer.silverdz-footer .silverdz-footer-contact-link {
  font-size: 1.05rem;
}

#template_footer.silverdz-footer .silverdz-footer-heading {
  display: inline-block;
  max-width: 100%;
  font-weight: 800;
  color: var(--sdz-black);
  letter-spacing: 0;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid rgba(37, 99, 235, 0.35);
}

#template_footer.silverdz-footer .silverdz-footer-link {
  color: #475569 !important;
  font-weight: 600;
  transition: color 0.15s ease;
}

#template_footer.silverdz-footer .silverdz-footer-link:hover {
  color: var(--sdz-brand) !important;
}

#template_footer.silverdz-footer .silverdz-footer-contact-icon {
  width: 1.75rem;
  font-size: 1.15rem;
  color: var(--sdz-brand);
  opacity: 0.9;
}

#template_footer.silverdz-footer .silverdz-footer-social {
  width: fit-content;
  max-width: 100%;
}

#template_footer.silverdz-footer .silverdz-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#template_footer.silverdz-footer .silverdz-footer-social-img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

#template_footer.silverdz-footer .silverdz-footer-social-link:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

#template_footer.silverdz-footer .silverdz-footer-social-link:focus-visible {
  outline: 2px solid var(--sdz-brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Bande copyright */
#template_footer.silverdz-footer .bg-black,
#template_footer.silverdz-footer .silverdz-footer-bar {
  background: var(--sdz-footer-copyright-bg) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#template_footer.silverdz-footer .silverdz-footer-copy {
  color: rgba(255, 255, 255, 0.78) !important;
}

#template_footer.silverdz-footer .silverdz-footer-copy-sep {
  opacity: 0.45;
  color: rgba(255, 255, 255, 0.9);
}

#template_footer.silverdz-footer .silverdz-footer-copy a {
  color: #93c5fd !important;
  font-weight: 600;
}

#template_footer.silverdz-footer .silverdz-footer-copy a:hover {
  color: #e0f2fe !important;
}

/* ---- Product detail page ---- */
.silverdz-detail-page {
  padding: clamp(12px, 3vw, 20px) clamp(12px, 4vw, 16px);
  padding-bottom: 0;
}

.silverdz-detail-wrap {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

.silverdz-product-grid {
  display: grid;
  gap: clamp(16px, 4vw, 24px);
  direction: ltr;
  width: 100%;
  min-width: 0;
}

.silverdz-gallery-col,
.silverdz-detail-col {
  direction: rtl;
  min-width: 0;
}

@media (min-width: 992px) {
  .silverdz-product-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 32px;
  }

  .silverdz-product-grid .silverdz-gallery-col {
    order: 2;
  }

  .silverdz-product-grid .silverdz-detail-col {
    order: 1;
  }
}

.silverdz-product-title {
  font-weight: 800;
  font-size: clamp(1.22rem, 3.8vw, 1.48rem);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.35;
}

.silverdz-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  row-gap: 10px;
}

.silverdz-gallery-col .silverdz-title-row {
  margin-bottom: 12px;
}

.silverdz-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sdz-muted);
  direction: ltr;
}

.silverdz-stars {
  color: var(--sdz-gold);
  letter-spacing: 1px;
  font-size: 16px;
}

.silverdz-price-block {
  display: inline-flex;
  direction: ltr;
  text-align: left;
}

.silverdz-price-block .silverdz-price-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.silverdz-price-block .silverdz-price-old {
  order: 1;
}

.silverdz-price-block .silverdz-price-current {
  order: 2;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(1.18rem, 4.5vw, 1.42rem);
  color: var(--sdz-brand);
}

.silverdz-price-block .silverdz-price-old {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sdz-muted);
  text-decoration: line-through;
}

.silverdz-main-photo-wrap {
  position: relative;
}

.silverdz-main-photo {
  width: 100%;
  max-width: 100%;
  border-radius: var(--sdz-radius-lg);
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #eee;
  box-shadow: var(--sdz-shadow-sm);
}

.silverdz-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sdz-text, #1a1a1a);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.silverdz-gallery-nav:hover {
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.silverdz-gallery-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.silverdz-gallery-prev {
  inset-inline-start: 10px;
}

.silverdz-gallery-next {
  inset-inline-end: 10px;
}

.silverdz-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 2px 6px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.silverdz-thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--sdz-radius-sm);
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.silverdz-thumbs img.active {
  border-color: var(--sdz-brand);
}

/* Detail card */
.silverdz-detail-card {
  background: var(--sdz-white);
  border: 1px solid var(--sdz-neo-blue) !important;
  border-radius: 20px !important;
  padding: clamp(14px, 3vw, 18px);
  box-shadow: var(--sdz-shadow-sm);
  min-width: 0;
}

.silverdz-detail-card .silverdz-form-grid {
  display: grid;
  gap: 14px;
}

.silverdz-form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 340px) {
  .silverdz-form-row-2 {
    grid-template-columns: 1fr;
  }
}

.silverdz-field-note .silverdz-input-wrap {
  align-items: flex-start;
}

.silverdz-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--sdz-border);
  border-radius: var(--sdz-radius-md);
  padding: 12px;
  background: var(--sdz-white);
  direction: rtl;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.silverdz-input-wrap:focus-within {
  border-color: var(--sdz-focus-blue);
  box-shadow: 0 0 0 3px var(--sdz-focus-ring);
}

.silverdz-input-wrap svg {
  flex-shrink: 0;
  opacity: 0.45;
}

.silverdz-input-wrap .form-control,
.silverdz-input-wrap .form-select {
  flex: 1;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-weight: 600;
  font-size: 15px;
  text-align: right;
}

.silverdz-section-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--sdz-muted);
  margin-bottom: 10px;
  margin-top: 6px;
  text-align: right;
}

.silverdz-delivery-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  direction: rtl;
}

.silverdz-delivery-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}

.silverdz-pill-dark {
  background: var(--sdz-brand);
  color: var(--sdz-white);
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Sizes */
.silverdz-size-btns {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 10px;
  direction: ltr;
  width: 100%;
}

.silverdz-size-btn {
  flex: 0 0 auto;
  min-width: 3.15rem;
  height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(6, 35, 91, 0.19);
  border-radius: 50px;
  background: var(--sdz-white);
  color: var(--sdz-black);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 6px 0 0 var(--sdz-neo-blue);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.silverdz-size-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 7px 0 0 var(--sdz-neo-blue);
}

.silverdz-size-btn:active {
  transform: translate(4px, 6px);
  box-shadow: none;
}

.silverdz-size-btn.active {
  border-color: var(--sdz-neo-blue);
}

.silverdz-size-btn:focus-visible {
  outline: 3px solid rgba(6, 35, 91, 0.35);
  outline-offset: 2px;
}

/* Colors */
.silverdz-color-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.silverdz-color-opt {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
}

.silverdz-color-opt:focus-visible {
  outline: 3px solid rgba(6, 35, 91, 0.35);
  outline-offset: 4px;
  border-radius: 12px;
}

.silverdz-swatch {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  margin: 0 auto 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom-width: 4px;
  box-sizing: border-box;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
  transition: border-color 0.15s, transform 0.12s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-family: "Montserrat", sans-serif;
  line-height: 1.1;
  overflow: hidden;
  word-break: break-word;
  text-align: center;
}

.silverdz-color-opt.active .silverdz-swatch {
  border-color: var(--sdz-brand);
  border-bottom-color: var(--sdz-brand-active);
}

.silverdz-swatch-beige {
  background: linear-gradient(180deg, #efe6d4 0%, #e8dcc8 55%, #dccfaf 100%);
  color: var(--sdz-black);
  border-bottom-color: #9a8568;
}

.silverdz-swatch-noir {
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 55%, #111 100%);
  color: var(--sdz-white);
  border-bottom-color: #000;
}

.silverdz-swatch-bleu {
  background: linear-gradient(180deg, #2a4a73 0%, #1e3a5f 55%, #152a45 100%);
  color: var(--sdz-white);
  border-bottom-color: #0a1422;
}

.silverdz-swatch-red {
  background: linear-gradient(180deg, #c62828 0%, #8e0000 100%);
  color: var(--sdz-white);
  border-bottom-color: #5c0000;
}

.silverdz-swatch-white {
  background: linear-gradient(180deg, #fff 0%, #e8e8e8 100%);
  color: var(--sdz-black);
  border-bottom-color: #bbb;
}

.silverdz-swatch-turquoise {
  background: linear-gradient(180deg, #4dd0e1 0%, #0097a7 55%, #006064 100%);
  color: var(--sdz-white);
  border-bottom-color: #004d40;
}

.silverdz-swatch-green {
  background: linear-gradient(180deg, #66bb6a 0%, #2e7d32 55%, #1b5e20 100%);
  color: var(--sdz-white);
  border-bottom-color: #0d3b0d;
}

.silverdz-swatch-brown {
  background: linear-gradient(180deg, #a1887f 0%, #6d4c41 55%, #3e2723 100%);
  color: var(--sdz-white);
  border-bottom-color: #1b100a;
}

.silverdz-swatch-gold {
  background: linear-gradient(180deg, #ffe082 0%, #ffc107 55%, #f57c00 100%);
  color: var(--sdz-black);
  border-bottom-color: #e65100;
}

.silverdz-swatch-orange {
  background: linear-gradient(180deg, #ffb74d 0%, #ef6c00 55%, #e65100 100%);
  color: var(--sdz-white);
  border-bottom-color: #bf360c;
}

.silverdz-swatch-purple {
  background: linear-gradient(180deg, #9575cd 0%, #5e35b1 55%, #4527a0 100%);
  color: var(--sdz-white);
  border-bottom-color: #311b92;
}

.silverdz-swatch-pink {
  background: linear-gradient(180deg, #f8bbd9 0%, #ec407a 55%, #ad1457 100%);
  color: var(--sdz-white);
  border-bottom-color: #880e4f;
}

.silverdz-swatch-gray {
  background: linear-gradient(180deg, #e0e0e0 0%, #9e9e9e 55%, #616161 100%);
  color: var(--sdz-black);
  border-bottom-color: #424242;
}

.silverdz-swatch-neutral {
  background: linear-gradient(180deg, #9e9e9e 0%, #616161 55%, #424242 100%);
  color: var(--sdz-white);
  border-bottom-color: #212121;
}

/* CTA */
.silverdz-cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: nowrap;
  direction: rtl;
}

.silverdz-qty-box {
  display: flex;
  align-items: center;
  direction: ltr;
  border: 1px solid var(--sdz-border);
  border-radius: var(--sdz-radius-md);
  background: var(--sdz-white);
  overflow: hidden;
  box-shadow: var(--sdz-shadow-sm);
  flex-shrink: 0;
  height: 50px;
}

.silverdz-qty-box button {
  width: 44px;
  height: 100%;
  border: none;
  background: var(--sdz-white);
  font-size: 20px;
  cursor: pointer;
  color: var(--sdz-black);
}

.silverdz-qty-box .silverdz-qty-value {
  min-width: 40px;
  text-align: center;
  font-weight: 800;
  font-size: 17px;
}

.silverdz-buy-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}

@keyframes silverdz-buy-vibrate {
  0%,
  78%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  81% {
    transform: translate3d(0, -3px, 0);
  }
  84% {
    transform: translate3d(0, 4px, 0);
  }
  87% {
    transform: translate3d(0, -2px, 0);
  }
  90% {
    transform: translate3d(0, 2px, 0);
  }
}

.silverdz-buy-btn {
  width: 100%;
  background: linear-gradient(180deg, var(--sdz-brand) 0%, var(--sdz-brand-hover) 100%);
  color: var(--sdz-white);
  border: none;
  border-radius: 18px;
  padding: 18px 22px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 60px;
  direction: ltr;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: silverdz-buy-vibrate 3.1s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.silverdz-buy-btn:hover {
  animation: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.42);
}

.silverdz-buy-btn:active {
  animation: none;
  transform: translateY(0);
  background: linear-gradient(180deg, var(--sdz-brand-hover) 0%, var(--sdz-brand-active) 100%);
}

.silverdz-buy-btn:focus-visible {
  outline: 3px solid var(--sdz-focus-blue);
  outline-offset: 3px;
}

.silverdz-buy-btn-label {
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
  direction: rtl;
}

.silverdz-price-tag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 10px 14px;
  margin: 0;
  background: var(--sdz-white);
  color: var(--sdz-brand-ink);
  border-radius: 18px 0 14px 0;
  font-size: 14px;
  font-weight: 800;
  font-family: "Montserrat", sans-serif;
  line-height: 1.2;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .silverdz-buy-btn {
    animation: none;
  }

  .silverdz-buy-btn:hover {
    transform: none;
  }

  .silverdz-size-btn:active {
    transform: none;
  }
}

/* Collapsible summary */
.silverdz-summary {
  margin-top: 16px;
  border: 1px solid var(--sdz-border);
  border-radius: var(--sdz-radius-lg);
  background: #f5f5f5;
  overflow: hidden;
}

.silverdz-summary-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px clamp(12px, 3vw, 16px);
  background: transparent;
  border: none;
  font: inherit;
  cursor: pointer;
  text-align: right;
  direction: rtl;
}

.silverdz-summary-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.silverdz-summary-head .silverdz-cart-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sdz-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.silverdz-summary-head .silverdz-cart-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.silverdz-summary-head h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
}

.silverdz-summary-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--sdz-muted);
  margin-top: 2px;
}

.silverdz-chev {
  transition: transform 0.25s;
  color: #555;
}

.silverdz-summary.open .silverdz-chev {
  transform: rotate(180deg);
}

.silverdz-summary-body {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--sdz-border);
}

.silverdz-summary.open .silverdz-summary-body {
  display: block;
}

.silverdz-line-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sdz-border);
}

.silverdz-line-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--sdz-radius-sm);
}

.silverdz-line-meta {
  flex: 1;
  min-width: 0;
}

.silverdz-line-meta .silverdz-line-name {
  font-size: 14px;
  font-weight: 700;
  font-family: "Montserrat", "Noto Kufi Arabic", sans-serif;
  direction: ltr;
  text-align: right;
}

.silverdz-line-price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  direction: ltr;
}

.silverdz-badge-qty {
  background: var(--sdz-brand);
  color: var(--sdz-white);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 800;
}

.silverdz-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  direction: rtl;
}

.silverdz-summary-row.total {
  font-weight: 800;
  font-size: 16px;
  padding-top: 8px;
}

.silverdz-total-pill {
  background: #e8e8e8;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
}

/* Sticky bar mobile */
.silverdz-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--sdz-brand-hover) 0%, var(--sdz-brand-ink) 100%);
  color: var(--sdz-white);
  padding: 12px max(12px, env(safe-area-inset-left)) calc(14px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-right));
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 900;
  box-shadow: 0 -6px 24px rgba(6, 35, 91, 0.35);
  direction: ltr;
  max-width: 100vw;
  box-sizing: border-box;
  transition:
    transform 0.38s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.32s ease;
}

.silverdz-sticky-bar.is-hidden {
  transform: translateY(calc(100% + 16px));
  opacity: 0;
  pointer-events: none;
}

.silverdz-sticky-info {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(58%, calc(100% - 140px));
  text-align: left;
}

.silverdz-sticky-info .silverdz-sticky-price {
  font-size: clamp(1.08rem, 4.2vw, 1.22rem);
  font-weight: 800;
  font-family: "Montserrat", sans-serif;
}

.silverdz-sticky-info .silverdz-sticky-sub {
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 600;
  opacity: 0.95;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.silverdz-sticky-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--sdz-white);
  border: none;
  font-size: clamp(14px, 3.8vw, 16px);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  padding: 8px 4px;
  direction: rtl;
}

@media (min-width: 992px) {
  .silverdz-sticky-bar {
    display: none !important;
  }

  body.silverdz-product-page {
    padding-bottom: 0 !important;
  }
}

body.silverdz-product-page {
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}

body.silverdz-product-page.silverdz-sticky-buy-hidden {
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

/* Related grid */
.silverdz-related-section {
  padding: 2rem 1rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.silverdz-related-section h2 {
  font-weight: 800;
  margin-bottom: 1rem;
}

.silverdz-related-card {
  border-radius: var(--sdz-radius-lg) !important;
  border: 1px solid var(--sdz-border) !important;
  box-shadow: var(--sdz-shadow-sm) !important;
  overflow: hidden;
}

/* Delivery toggles inside detail card */
.silverdz-detail-card .silverdz-delivery-toggle .silverdz-toggle-ui {
  border-radius: 999px;
}

.silverdz-detail-card .silverdz-toggle-input:checked + .silverdz-toggle-ui {
  background: var(--sdz-brand);
  border-color: var(--sdz-brand);
}

/* Shop page — filtres catégorie : espacement régulier (évite list-inline + mr-* en RTL) */
#shop-top-category-menu.shop-top-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1.25rem;
  row-gap: 0.65rem;
  margin-bottom: 0;
  padding-inline-start: 0;
  list-style: none;
}

#shop-top-category-menu.shop-top-menu > li {
  margin: 0 !important;
}

#shop-top-category-menu.shop-top-menu .h3 {
  margin-bottom: 0;
  display: inline-block;
}

/* Shop pagination — espacement régulier (RTL) */
#shop-pagination.pagination {
  gap: 0.35rem;
}

#shop-pagination .page-item {
  margin: 0;
}

#shop-pagination .page-link {
  min-width: 2.75rem;
  text-align: center;
  border-radius: var(--sdz-radius-sm) !important;
}

/* Shop listing cards */
html[dir="rtl"] .product-wap.card {
  border-radius: var(--sdz-radius-lg) !important;
  border: 1px solid var(--sdz-border) !important;
}

html[dir="rtl"] .silverdz-price-line--card .silverdz-price-current {
  color: var(--sdz-brand) !important;
  font-family: "Montserrat", sans-serif;
}

/* Responsive */
@media (max-width: 420px) {
  .silverdz-title-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .silverdz-rating {
    justify-content: center;
  }

  .silverdz-price-block {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 991px) {
  .silverdz-buy-btn {
    font-size: clamp(15px, 4.2vw, 18px);
    border-radius: 16px;
    min-height: 54px;
  }

  .silverdz-price-tag {
    padding: 8px 12px;
    border-radius: 16px 0 12px 0;
    font-size: clamp(12px, 3.2vw, 14px);
  }

  .silverdz-size-btn {
    height: 40px;
    padding: 0 13px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .silverdz-input-wrap .form-control,
  .silverdz-input-wrap .form-select {
    font-size: 17px;
  }
}

/* Contact page — Leaflet container needs explicit height */
.silverdz-contact-map {
  width: 100%;
  height: 300px;
  min-height: 240px;
  z-index: 0;
}

/* ----- Cart page ----- */
.silverdz-cart-empty-icon {
  line-height: 1;
  opacity: 0.42;
}

.silverdz-cart-empty .btn .fas {
  opacity: 0.95;
}

#cart-root .table td.silverdz-cart-product-col {
  min-width: 17rem;
  vertical-align: middle;
  padding-inline-end: 1.125rem;
}

@media (min-width: 768px) {
  #cart-root .table td.silverdz-cart-product-col {
    min-width: 19rem;
    padding-inline-end: 1.35rem;
  }
}

#cart-root .silverdz-cart-product-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  #cart-root .silverdz-cart-product-row:not(.silverdz-cart-product-row--mobile) {
    align-items: center;
    gap: 1rem;
  }
}

#cart-root .silverdz-cart-product-thumb {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: var(--sdz-radius-sm);
  flex-shrink: 0;
}

#cart-root .silverdz-cart-product-thumb--mobile {
  width: 4.5rem;
  height: 4.5rem;
}

#cart-root .silverdz-cart-product-row--mobile {
  align-items: center;
  gap: 0.625rem;
}

#cart-root .silverdz-cart-product-meta .silverdz-cart-product-category {
  margin-top: 0.15rem;
}

#cart-root .silverdz-cart-product-meta .silverdz-cart-product-hint {
  margin-top: 0.35rem;
  line-height: 1.4;
  max-width: 28rem;
}
