/* ============================================================================
 * Soligol v3.0 — Modern, clean, standalone Drupal 10 theme
 * No Bootstrap. No jQuery. Mobile-first. RTL Persian.
 * ========================================================================== */

/* === Design Tokens === */
:root {
  /* Brand */
  --c-primary:        #e84a7f;
  --c-primary-dark:   #c93568;
  --c-primary-light:  #fce8f0;
  --c-primary-pale:   #fdf4f8;

  --c-secondary:      #2d6a4f;
  --c-secondary-dark: #1b4332;
  --c-secondary-light:#52b788;
  --c-secondary-pale: #d8f3dc;

  --c-accent:         #c9a961;

  /* Neutrals */
  --c-bg:             #fafafa;
  --c-bg-alt:         #f4f4f6;
  --c-surface:        #ffffff;
  --c-text:           #1f1f2c;
  --c-text-soft:      #5d5d6e;
  --c-text-muted:     #9a9aab;
  --c-border:         #ececf1;
  --c-border-strong:  #d8d8e0;

  /* Status */
  --c-success:        #16a34a;
  --c-success-soft:   #e8f7ee;
  --c-danger:         #dc2626;
  --c-danger-soft:    #fdecec;
  --c-warning:        #f59e0b;
  --c-warning-soft:   #fef3c7;

  /* Typography */
  --font-base:        'Vazirmatn','IRANSans','Tahoma','Segoe UI',sans-serif;
  --fs-xs: .75rem;  --fs-sm: .875rem;  --fs-base: 1rem;  --fs-md: 1.125rem;
  --fs-lg: 1.25rem; --fs-xl: 1.5rem;   --fs-2xl: 1.875rem; --fs-3xl: 2.25rem;

  /* Spacing scale */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  /* Radius */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;  --r-xl: 24px;  --r-pill: 999px;

  /* Shadow */
  --sh-xs: 0 1px 2px rgba(31,31,44,.04);
  --sh-sm: 0 2px 8px rgba(31,31,44,.06);
  --sh-md: 0 8px 24px rgba(31,31,44,.08);
  --sh-lg: 0 16px 40px rgba(31,31,44,.12);
  --sh-pink: 0 10px 30px rgba(232,74,127,.25);

  /* Layout */
  --container: 1280px;
  --header-h: 76px;
  --sidebar-w: 280px;

  /* Motion */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;
}

/* Dark mode */
[data-theme="dark"] {
  --c-bg: #1a1a24;
  --c-bg-alt: #242432;
  --c-surface: #2a2a38;
  --c-text: #f5f5fa;
  --c-text-soft: #c5c5d0;
  --c-text-muted: #8585a0;
  --c-border: #3a3a4a;
  --c-border-strong: #4a4a5a;
  --c-primary-light: #3a1f2a;
  --c-primary-pale: #2a1a20;
  --c-secondary-pale: #1a2820;
  --sh-sm: 0 2px 8px rgba(0,0,0,.3);
  --sh-md: 0 8px 24px rgba(0,0,0,.4);
  --sh-lg: 0 16px 40px rgba(0,0,0,.5);
}


/* === Reset === */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
img,svg,video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-dark); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-primary); }
ul,ol { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 var(--sp-4); font-weight: 700; line-height: 1.3; color: var(--c-text); }
h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 var(--sp-4); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input,select,textarea { font-family: inherit; font-size: inherit; }
img { border-style: none; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

::selection { background: var(--c-primary-light); color: var(--c-text); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--c-border-strong); border-radius: var(--r-pill); }


/* === Layout primitives === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-4); }
@media (min-width: 768px) { .container { padding: 0 var(--sp-6); } }

.layout-container { display: flex; flex-direction: column; min-height: 100vh; }
.main-content { flex: 1 0 auto; padding: var(--sp-6) 0; }
.section { padding: var(--sp-8) 0; }

.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(3,1fr);} .grid-3 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 640px)  { .grid-4,.grid-3,.grid-2 { grid-template-columns: 1fr; } }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }

.text-center { text-align: center; }
.text-muted { color: var(--c-text-muted); }
.text-soft { color: var(--c-text-soft); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }


/* === Header top bar === */
.header-top {
  background: var(--c-secondary-dark);
  color: #fff;
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
}
.header-top .container { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.header-top a, .header-top span { color: #fff; display: inline-flex; align-items: center; gap: var(--sp-2); opacity: .95; }
.header-top a:hover { color: var(--c-primary-light); }
.header-top i { color: var(--c-primary-light); }
.header-top-social { display: flex; gap: var(--sp-3); }
.header-top-social a {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); transition: all var(--t-fast);
}
.header-top-social a:hover { background: var(--c-primary); transform: translateY(-2px); }
@media (max-width: 640px) { .header-top { display: none; } }


/* === Header === */
.site-header {
  background: var(--c-surface);
  box-shadow: var(--sh-sm);
  position: sticky; top: 0; z-index: 100;
  transition: box-shadow var(--t-base);
}
.site-header.scrolled { box-shadow: var(--sh-md); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  min-height: var(--header-h);
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img {
  max-height: 52px; width: auto;
  border-radius: var(--r-sm);
  transition: transform var(--t-base);
}
.site-logo:hover img { transform: scale(1.03); }

.header-search { flex: 1; max-width: 560px; }
.header-search-form {
  display: flex; align-items: center;
  background: var(--c-bg-alt);
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  padding: var(--sp-2) var(--sp-4);
  transition: all var(--t-base);
}
.header-search-form:focus-within {
  background: var(--c-surface);
  border-color: var(--c-primary);
  box-shadow: var(--sh-pink);
}
.header-search-form input {
  flex: 1; border: none; background: transparent;
  padding: var(--sp-2); font-size: var(--fs-sm);
  color: var(--c-text); outline: none;
}
.header-search-form button {
  color: var(--c-text-muted); padding: var(--sp-2);
  font-size: var(--fs-md); transition: color var(--t-fast);
}
.header-search-form button:hover { color: var(--c-primary); }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); }
.header-action {
  position: relative; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-bg-alt); color: var(--c-text);
  border-radius: var(--r-md); font-size: var(--fs-lg);
  transition: all var(--t-base);
}
.header-action:hover {
  background: var(--c-primary); color: #fff;
  transform: translateY(-2px); box-shadow: var(--sh-pink);
}
.header-action-badge {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--c-primary); color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--c-surface);
}
.header-action-badge:empty { display: none; }

.theme-toggle {
  width: 44px; height: 44px;
  background: var(--c-bg-alt); color: var(--c-text);
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-lg); transition: all var(--t-base);
}
.theme-toggle:hover { background: var(--c-primary); color: #fff; transform: translateY(-2px); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.mobile-menu-btn {
  display: none; width: 44px; height: 44px;
  background: var(--c-primary); color: #fff;
  border-radius: var(--r-md);
  align-items: center; justify-content: center;
  font-size: var(--fs-xl);
}
@media (max-width: 992px) {
  .header-search { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .site-header .container { gap: var(--sp-3); min-height: 60px; }
  .site-logo img { max-height: 42px; }
}


/* === Main navigation === */
.main-nav {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  position: sticky; top: var(--header-h); z-index: 99;
  box-shadow: var(--sh-xs);
}
@media (max-width: 992px) { .main-nav { top: 60px; } }
.main-menu {
  display: flex; gap: var(--sp-1);
  overflow-x: auto; scrollbar-width: none;
}
.main-menu::-webkit-scrollbar { display: none; }
.main-menu > li { position: relative; }
.main-menu > li > a {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  color: var(--c-text); font-size: var(--fs-sm);
  font-weight: 600; white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px; transition: all var(--t-fast);
}
.main-menu > li > a:hover,
.main-menu > li > a.is-active {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}


/* === Breadcrumb === */
.breadcrumb {
  background: var(--c-bg-alt);
  padding: var(--sp-3) 0;
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
}
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center;
}
.breadcrumb li {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: var(--c-text-muted);
}
.breadcrumb li:not(:last-child)::after { content: '/'; color: var(--c-text-muted); }
.breadcrumb a { color: var(--c-text-soft); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb li:last-child { color: var(--c-primary); font-weight: 600; }


/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  font-family: inherit; font-size: var(--fs-sm); font-weight: 600;
  border: 2px solid transparent; border-radius: var(--r-md);
  cursor: pointer; transition: all var(--t-base);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff; border-color: var(--c-primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--sh-pink); color: #fff; }
.btn-secondary {
  background: linear-gradient(135deg, var(--c-secondary), var(--c-secondary-dark));
  color: #fff; border-color: var(--c-secondary);
}
.btn-secondary:hover { transform: translateY(-2px); color: #fff; }
.btn-outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn-ghost { background: var(--c-surface); color: var(--c-text); border-color: var(--c-border); }
.btn-ghost:hover { background: var(--c-bg-alt); }
.btn-light { background: #fff; color: var(--c-primary); border-color: #fff; }
.btn-lg { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-md); border-radius: var(--r-lg); }
.btn-sm { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn-icon { width: 44px; height: 44px; padding: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-add-to-cart {
  width: 100%; padding: var(--sp-4);
  font-size: var(--fs-md); font-weight: 700;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff; border: none; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  cursor: pointer; transition: all var(--t-base);
}
.btn-add-to-cart:hover { transform: translateY(-2px); box-shadow: var(--sh-pink); }


/* === Badges === */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; font-size: var(--fs-xs); font-weight: 700;
  border-radius: var(--r-pill);
}
.badge-success { background: var(--c-success-soft); color: var(--c-success); }
.badge-danger  { background: var(--c-danger-soft);  color: var(--c-danger); }
.badge-gold    { background: linear-gradient(135deg, var(--c-accent), #b8941f); color: #fff; }
.badge-warning { background: var(--c-warning-soft); color: #92400e; }

.discount-tag {
  position: absolute; top: var(--sp-3); inset-inline-end: var(--sp-3);
  z-index: 2; width: 48px; height: 48px;
  background: var(--c-danger); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; font-weight: 700;
  box-shadow: var(--sh-md);
}
.discount-tag .pct { font-size: var(--fs-md); line-height: 1; }
.discount-tag .lbl { font-size: 9px; margin-top: 2px; }


/* === Product card === */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5);
}
@media (max-width: 1199px) { .product-grid { grid-template-columns: repeat(3,1fr);} }
@media (max-width: 768px)  { .product-grid { grid-template-columns: repeat(2,1fr); gap: var(--sp-3);} }
@media (max-width: 480px)  { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  position: relative; background: var(--c-surface);
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--c-border);
  transition: all var(--t-base);
  display: flex; flex-direction: column; height: 100%;
}
.product-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
  border-color: var(--c-primary-light);
}
.product-card__image {
  position: relative; aspect-ratio: 1;
  background: var(--c-bg-alt); overflow: hidden;
}
.product-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow);
}
.product-card:hover .product-card__image img { transform: scale(1.08); }
.product-card__actions {
  position: absolute; top: var(--sp-3); inset-inline-end: var(--sp-3);
  display: flex; flex-direction: column; gap: var(--sp-2);
  opacity: 0; transform: translateX(-10px); transition: all var(--t-base); z-index: 3;
}
[dir="rtl"] .product-card__actions { transform: translateX(10px); }
.product-card:hover .product-card__actions { opacity: 1; transform: translateX(0); }
.product-card__action {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--c-text);
  border-radius: 50%; border: 1px solid var(--c-border);
  font-size: var(--fs-sm); transition: all var(--t-fast);
}
.product-card__action:hover {
  background: var(--c-primary); color: #fff;
  border-color: var(--c-primary); transform: scale(1.1);
}
.product-card__body { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1; }
.product-card__brand { font-size: var(--fs-xs); color: var(--c-text-muted); margin-bottom: var(--sp-1); }
.product-card__title {
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--c-text); margin: 0 0 var(--sp-2);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.8em;
}
.product-card__title a { color: inherit; }
.product-card__title a:hover { color: var(--c-primary); }
.product-card__rating {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-bottom: var(--sp-2); font-size: var(--fs-xs);
  color: var(--c-warning);
}
.product-card__price {
  margin-top: auto; padding-top: var(--sp-3);
  border-top: 1px dashed var(--c-border);
}
.product-card__price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--sp-2); flex-wrap: wrap;
}
.product-card__price-current {
  font-size: var(--fs-lg); font-weight: 800;
  color: var(--c-primary);
  display: flex; align-items: baseline; gap: 4px;
}
.product-card__price-current .cur {
  font-size: var(--fs-xs); font-weight: 500; color: var(--c-text-soft);
}
.product-card__price-old {
  font-size: var(--fs-sm); color: var(--c-text-muted); text-decoration: line-through;
}
.product-card__add {
  margin-top: var(--sp-3); width: 100%; padding: var(--sp-3);
  background: var(--c-bg-alt); color: var(--c-text);
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  font-weight: 600; font-size: var(--fs-sm);
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  transition: all var(--t-base);
}
a.product-card__add { text-decoration: none; }
.product-card__add:hover {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff; border-color: var(--c-primary);
  box-shadow: var(--sh-pink); transform: translateY(-2px);
}
.product-card.is-out-of-stock .product-card__image { opacity: .5; filter: grayscale(.5); }
.product-card.is-out-of-stock .product-card__add { background: var(--c-bg-alt); color: var(--c-text-muted); cursor: not-allowed; }


/* === Section title === */
.section-title {
  position: relative; display: flex; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  font-size: var(--fs-2xl); font-weight: 700;
}
.section-title::before {
  content: ''; width: 6px; height: 28px;
  background: linear-gradient(180deg, var(--c-primary), var(--c-secondary));
  border-radius: var(--r-pill);
}
.section-title--center { justify-content: center; text-align: center; }
.section-subtitle {
  font-size: var(--fs-md); color: var(--c-text-soft);
  margin-bottom: var(--sp-6); text-align: center;
}


/* === Hero slider === */
.hero {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  margin-bottom: var(--sp-6);
  background: linear-gradient(135deg, var(--c-primary-pale), var(--c-secondary-pale));
  scroll-snap-type: x mandatory;
  display: flex; overflow-x: auto;
  scrollbar-width: none;
}
.hero::-webkit-scrollbar { display: none; }
.hero-slide {
  flex: 0 0 100%; scroll-snap-align: start;
  aspect-ratio: 21/7; position: relative;
  display: flex; align-items: center;
  padding: 0 var(--sp-8);
}
.hero-slide__content {
  position: relative; z-index: 2;
  max-width: 500px; color: var(--c-text);
}
.hero-slide__title { font-size: var(--fs-3xl); font-weight: 800; margin-bottom: var(--sp-2); }
.hero-slide__subtitle { font-size: var(--fs-md); margin-bottom: var(--sp-4); color: var(--c-text-soft); }
@media (max-width: 768px) {
  .hero-slide { aspect-ratio: 4/3; padding: 0 var(--sp-4); }
  .hero-slide__title { font-size: var(--fs-xl); }
}


/* === Category tiles === */
.cat-tiles {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--sp-4);
}
@media (max-width: 1200px) { .cat-tiles { grid-template-columns: repeat(4,1fr);} }
@media (max-width: 1024px) { .cat-tiles { grid-template-columns: repeat(4,1fr);} }
@media (max-width: 640px)  { .cat-tiles { grid-template-columns: repeat(2,1fr);} }

.cat-tile {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--sp-5); background: var(--c-surface);
  border-radius: var(--r-lg); text-decoration: none; color: var(--c-text);
  border: 1px solid var(--c-border); transition: all var(--t-base);
  text-align: center;
}
.cat-tile:hover {
  background: linear-gradient(135deg, var(--c-primary-pale), var(--c-secondary-pale));
  transform: translateY(-4px); box-shadow: var(--sh-md);
  border-color: var(--c-primary-light); color: var(--c-primary-dark);
}
.cat-tile__icon {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-primary-pale), var(--c-secondary-pale));
  border-radius: var(--r-lg); font-size: 1.75rem;
  color: var(--c-primary); margin-bottom: var(--sp-3);
  transition: all var(--t-base);
}
.cat-tile:hover .cat-tile__icon {
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  color: #fff; transform: scale(1.1);
}
.cat-tile__name { font-size: var(--fs-sm); font-weight: 600; }


/* === Special offer banner === */
.offer-banner {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff; border-radius: var(--r-xl); padding: var(--sp-8);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6);
  align-items: center; margin-bottom: var(--sp-6);
  position: relative; overflow: hidden;
}
@media (max-width: 768px) { .offer-banner { grid-template-columns: 1fr; text-align: center; padding: var(--sp-6);} }
.offer-banner__title { font-size: var(--fs-3xl); font-weight: 800; margin-bottom: var(--sp-2); }
.offer-banner__text { font-size: var(--fs-md); opacity: .95; margin-bottom: var(--sp-4); }
.countdown { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-4); }
@media (min-width: 769px) { .countdown { justify-content: flex-start; } }
.countdown__box {
  background: rgba(0,0,0,.2); padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md); text-align: center; min-width: 56px;
}
.countdown__num { font-size: var(--fs-xl); font-weight: 700; display: block; line-height: 1; }
.countdown__lbl { font-size: var(--fs-xs); opacity: .8; margin-top: 4px; display: block; }


/* === Why-us features === */
.features-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-5); }
@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 640px)  { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--c-surface); border-radius: var(--r-lg);
  padding: var(--sp-5); text-align: center;
  border: 1px solid var(--c-border); transition: all var(--t-base);
}
.feature-card:hover { border-color: var(--c-primary); box-shadow: var(--sh-md); transform: translateY(-2px); }
.feature-card__icon {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-primary-pale), var(--c-secondary-pale));
  border-radius: var(--r-lg); font-size: 1.75rem;
  color: var(--c-primary); margin-bottom: var(--sp-3);
}
.feature-card__title { font-size: var(--fs-md); font-weight: 700; margin-bottom: var(--sp-2); }
.feature-card__text { font-size: var(--fs-sm); color: var(--c-text-soft); }


/* === Footer === */
.site-footer {
  background: linear-gradient(135deg, var(--c-secondary-dark), #0f1f18);
  color: rgba(255,255,255,.85);
  margin-top: var(--sp-10);
  position: relative;
}
.site-footer::before {
  content: ''; position: absolute; top: 0; inset-inline: 0; height: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary), var(--c-accent));
}
.footer-main { padding: var(--sp-10) 0; }
.footer-main .container {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-8);
}
@media (max-width: 992px) { .footer-main .container { grid-template-columns: 1fr 1fr; gap: var(--sp-6);} }
@media (max-width: 640px) { .footer-main .container { grid-template-columns: 1fr; gap: var(--sp-5);} }
.footer-logo img {
  max-height: 64px; width: auto;
  filter: brightness(0) invert(1); opacity: .95;
  margin-bottom: var(--sp-3);
}
.footer-desc { color: rgba(255,255,255,.7); font-size: var(--fs-sm); }
.footer-contact-list { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-3); }
.footer-contact-item {
  display: flex; align-items: center; gap: var(--sp-3);
  color: rgba(255,255,255,.85); font-size: var(--fs-sm); text-decoration: none;
}
.footer-contact-item:hover { color: var(--c-primary-light); }
.footer-contact-item i {
  width: 32px; height: 32px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); border-radius: 50%;
  color: var(--c-primary-light);
}
.footer-title {
  font-size: var(--fs-md); font-weight: 700; color: #fff;
  margin-bottom: var(--sp-4); position: relative; padding-bottom: var(--sp-2);
}
.footer-title::after {
  content: ''; position: absolute; bottom: 0; inset-inline-start: 0;
  width: 30px; height: 2px; background: var(--c-primary); border-radius: var(--r-pill);
}
.footer-links { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-links a {
  color: rgba(255,255,255,.75); font-size: var(--fs-sm);
  padding: 4px 0; transition: all var(--t-fast);
  display: inline-flex; align-items: center; gap: var(--sp-2);
}
.footer-links a::before {
  content: '\f104'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  color: var(--c-primary); font-size: var(--fs-xs);
}
.footer-links a:hover { color: #fff; padding-inline-start: var(--sp-2); }
.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.9);
  font-size: var(--fs-md); transition: all var(--t-base);
}
.footer-social a:hover { background: var(--c-primary); color: #fff; transform: translateY(-3px); }

.footer-trust { background: rgba(0,0,0,.2); padding: var(--sp-5) 0; border-top: 1px solid rgba(255,255,255,.1); }
.footer-trust .container { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: var(--sp-6); }
.footer-trust-item { display: flex; align-items: center; gap: var(--sp-3); color: rgba(255,255,255,.85); font-size: var(--fs-sm); }
.footer-trust-item i { font-size: var(--fs-2xl); color: var(--c-secondary-light); }
.footer-bottom { background: rgba(0,0,0,.3); padding: var(--sp-4) 0; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-3); }
.footer-copyright { color: rgba(255,255,255,.7); font-size: var(--fs-sm); }
.footer-bottom-links { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,.7); font-size: var(--fs-sm); }
.footer-bottom-links a:hover { color: #fff; }


/* === Mobile bottom bar === */
.mobile-bar {
  display: none; position: fixed; bottom: 0; inset-inline: 0;
  background: var(--c-surface); border-top: 1px solid var(--c-border);
  padding: var(--sp-2); z-index: 1090;
  box-shadow: 0 -2px 10px rgba(0,0,0,.05);
  justify-content: space-around; align-items: center;
}
@media (max-width: 768px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 70px; }
}
.mobile-bar__item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--c-text-muted); text-decoration: none;
  padding: var(--sp-1) var(--sp-3); font-size: var(--fs-xs);
  font-weight: 500; transition: color var(--t-fast); position: relative;
}
.mobile-bar__item.is-active, .mobile-bar__item:hover { color: var(--c-primary); }
.mobile-bar__item i { font-size: var(--fs-lg); }
.mobile-bar__badge {
  position: absolute; top: -2px; inset-inline-end: 6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--c-primary); color: #fff;
  font-size: 9px; font-weight: 700;
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--c-surface);
}


/* === Forms === */
.form-item, .form-group { margin-bottom: var(--sp-4); }
.form-item label, .form-group > label {
  display: block; margin-bottom: var(--sp-2);
  font-size: var(--fs-sm); font-weight: 600; color: var(--c-text);
}
input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="tel"], input[type="number"],
textarea, select {
  width: 100%; padding: var(--sp-3) var(--sp-4);
  font-family: inherit; font-size: var(--fs-sm);
  color: var(--c-text); background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  transition: all var(--t-fast); outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-light);
}
textarea { min-height: 120px; resize: vertical; }
input[type="checkbox"], input[type="radio"] {
  width: 18px; height: 18px; accent-color: var(--c-primary); cursor: pointer;
}

/* Drupal defaults */
.form-submit, .button--primary {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5); font-family: inherit;
  font-size: var(--fs-sm); font-weight: 600;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff; border: none; border-radius: var(--r-md);
  cursor: pointer; transition: all var(--t-base);
}
.form-submit:hover, .button--primary:hover { transform: translateY(-2px); box-shadow: var(--sh-pink); }


/* === Tabs (Drupal local tasks) === */
.tabs ul.tabs {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  border-bottom: 2px solid var(--c-border);
  padding-bottom: var(--sp-2); margin: var(--sp-4) 0;
}
.tabs ul.tabs li a {
  display: block; padding: var(--sp-2) var(--sp-4);
  background: var(--c-bg-alt); color: var(--c-text-soft);
  border-radius: var(--r-sm); font-weight: 600; font-size: var(--fs-sm);
  transition: all var(--t-fast);
}
.tabs ul.tabs li.is-active a,
.tabs ul.tabs li a:hover {
  background: var(--c-primary); color: #fff;
}

/* === Drupal messages — status / warning / error (rendered top of content) === */
.messages-area { margin: var(--sp-2) 0; }
.messages-area:empty { display: none; }

.messages {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5); margin: var(--sp-4) 0;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border-strong);
  border-inline-start: 4px solid var(--c-border-strong);
  background: var(--c-surface);
  font-size: var(--fs-sm); line-height: 1.9; color: var(--c-text);
  box-shadow: var(--sh-xs);
  animation: msg-in .35s ease both;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.messages::before {
  font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: var(--fs-md); line-height: 1.6; flex-shrink: 0; margin-top: 2px;
}
.messages *:last-child { margin-bottom: 0; }
.messages a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.messages--status {
  background: var(--c-success-soft); border-color: var(--c-success);
  color: var(--c-secondary-dark);
}
.messages--status::before { content: '\f058'; color: var(--c-success); }

.messages--warning {
  background: var(--c-warning-soft); border-color: var(--c-warning);
  color: #92400e;
}
.messages--warning::before { content: '\f071'; color: var(--c-warning); }

.messages--error {
  background: var(--c-danger-soft); border-color: var(--c-danger);
  color: var(--c-danger);
}
.messages--error::before { content: '\f06a'; }
.messages--error a { color: var(--c-danger); }

.messages--info {
  background: var(--c-primary-light); border-color: var(--c-primary);
  color: var(--c-primary-dark);
}
.messages--info::before { content: '\f05a'; color: var(--c-primary); }

.messages .messages__list { margin: 0; padding: 0; list-style: none; }
.messages .messages__item + .messages__item { margin-top: var(--sp-1); }

/* Validation error accents (error states live in section 10) */
.form-item--error label, .form-item.error label { color: var(--c-danger); }
input.error:focus, select.error:focus, textarea.error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

/* === Front slider region (above categories) === */
.section--front-slider { padding-top: var(--sp-6); }
.front-slider { position: relative; }
.front-slider img {
  width: 100%; height: auto; border-radius: var(--r-lg);
  box-shadow: var(--sh-md); object-fit: cover;
}
.front-slider a { display: block; line-height: 0; border-radius: var(--r-lg); overflow: hidden; }

/* Auto-converted block slider (JS wraps slides + generates dots) */
.hero-wrap { position: relative; margin-bottom: var(--sp-6); }
.hero-wrap .hero { margin-bottom: 0; }
.hero--auto .hero-slide { padding: 0; }
.hero--auto .hero-slide > * { width: 100%; }
.hero--auto .hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 0; box-shadow: none;
}


/* === Pagination === */
.pagination-list, .soligol-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: var(--sp-2); margin: var(--sp-6) 0;
}
.pagination-list li, .soligol-pagination li { list-style: none; }
.pagination-list a, .pagination-list span,
.soligol-pagination a, .soligol-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 var(--sp-3);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); color: var(--c-text);
  font-weight: 600; font-size: var(--fs-sm);
  text-decoration: none; transition: all var(--t-fast);
}
.pagination-list a:hover, .soligol-pagination a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination-list .is-active span, .pagination-list .is-active a,
.soligol-pagination .is-active span, .soligol-pagination .is-active a {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff; border-color: var(--c-primary);
}


/* === Mobile menu drawer === */
.mobile-drawer {
  position: fixed; top: 0; inset-inline-start: -100%;
  width: 320px; max-width: 85vw; height: 100vh;
  background: var(--c-surface);
  z-index: 1000; overflow-y: auto;
  transition: inset-inline-start var(--t-base);
  box-shadow: var(--sh-lg); padding: var(--sp-5);
}
[dir="rtl"] .mobile-drawer { inset-inline-start: auto; inset-inline-end: -100%; }
[dir="rtl"] .mobile-drawer.is-open { inset-inline-end: 0; }
.mobile-drawer.is-open { inset-inline-start: 0; }
.mobile-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 999; opacity: 0; visibility: hidden;
  transition: all var(--t-base);
}
.mobile-overlay.is-active { opacity: 1; visibility: visible; }
.mobile-drawer__close {
  position: absolute; top: var(--sp-3); inset-inline-end: var(--sp-3);
  width: 36px; height: 36px;
  background: var(--c-bg-alt); border-radius: var(--r-md);
  color: var(--c-text); font-size: var(--fs-md);
}
.mobile-drawer__list { display: flex; flex-direction: column; gap: 2px; margin-top: var(--sp-6); }
.mobile-drawer__link {
  display: block; padding: var(--sp-3) var(--sp-4);
  color: var(--c-text); font-size: var(--fs-sm); font-weight: 600;
  border-radius: var(--r-md); transition: all var(--t-fast);
}
.mobile-drawer__link:hover, .mobile-drawer__link.is-active {
  background: var(--c-primary-light); color: var(--c-primary-dark);
}
.mobile-drawer__contact { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--c-border); }
.mobile-drawer__contact-item {
  display: flex; align-items: center; gap: var(--sp-2);
  color: var(--c-text-soft); font-size: var(--fs-sm);
  text-decoration: none; padding: var(--sp-2) 0;
}
.mobile-drawer__contact-item i { color: var(--c-primary); width: 20px; }


/* ============================================================================
 *  PRODUCT DETAIL PAGE  —  sg-pdp-* design system (modern, clean)
 * ========================================================================== */
.sg-pdp {
  font-family: var(--font-base); color: var(--c-text);
  background: var(--c-bg); line-height: 1.7; font-size: 15px;
  max-width: 1280px; margin: 0 auto;
  padding: var(--sp-5) var(--sp-4);
  direction: rtl;
}
.sg-pdp__breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-5);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); font-size: 13px; color: var(--c-text-soft);
  box-shadow: var(--sh-xs);
}
.sg-pdp__breadcrumb a { color: var(--c-text-soft); font-weight: 500; }
.sg-pdp__breadcrumb a:hover { color: var(--c-primary); }
.sg-pdp__breadcrumb-sep { font-size: 10px; color: var(--c-text-muted); }

.sg-pdp__grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: var(--sp-6); align-items: start;
}
@media (max-width: 1024px) { .sg-pdp__grid { grid-template-columns: 1fr; gap: var(--sp-4); } }

/* Gallery */
.sg-pdp__gallery { position: sticky; top: calc(var(--header-h) + var(--sp-4)); }
@media (max-width: 1024px) { .sg-pdp__gallery { position: static; } }
.sg-pdp__gallery-stage {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-4);
  box-shadow: var(--sh-sm); overflow: hidden;
}
.sg-pdp__gallery-stage .field--name-field-cover.field--items {
  display: grid; grid-template-columns: repeat(4,1fr);
  grid-auto-rows: 1fr; gap: 8px;
}
.sg-pdp__gallery-stage .field--name-field-cover .field--item {
  aspect-ratio: 1/1; border-radius: var(--r-sm); overflow: hidden;
}
.sg-pdp__gallery-stage .field--name-field-cover .field--item:first-child {
  grid-column: span 2; grid-row: span 2; border-radius: var(--r-md);
}
.sg-pdp__gallery-stage .field--name-field-cover .field--item a {
  display: block; width: 100%; height: 100%;
}
.sg-pdp__gallery-stage .field--name-field-cover .field--item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-fast);
}
.sg-pdp__gallery-stage .field--name-field-cover .field--item a:hover img { transform: scale(1.04); }
@media (max-width: 768px) {
  .sg-pdp__gallery-stage .field--name-field-cover.field--items { grid-template-columns: repeat(3,1fr); gap: 6px; }
}

/* Info column */
.sg-pdp__info {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-6);
  box-shadow: var(--sh-sm);
}
.sg-pdp__head {
  padding-bottom: var(--sp-5); margin-bottom: var(--sp-5);
  border-bottom: 1px dashed var(--c-border-strong);
}
.sg-pdp__brand-row { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); flex-wrap: wrap; }
.sg-pdp__brand-chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 4px 12px; background: var(--c-primary-light);
  color: var(--c-primary-dark); border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600;
}
.sg-pdp__title {
  font-size: 1.5rem; font-weight: 800; margin: 0 0 var(--sp-2);
  color: var(--c-text); line-height: 1.3;
}
.sg-pdp__meta-row {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  font-size: var(--fs-xs); color: var(--c-text-muted);
}
.sg-pdp__rating { color: var(--c-warning); display: inline-flex; }
.sg-pdp__sku {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--c-bg-alt); padding: 4px 10px;
  border-radius: var(--r-pill); font-size: var(--fs-xs);
}
.sg-pdp__sku strong { color: var(--c-primary); font-weight: 700; }

/* Short description */
.sg-pdp__short-desc {
  display: flex; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4);
  background: var(--c-bg-alt); border-radius: var(--r-md);
  margin-bottom: var(--sp-5);
  border-inline-start: 3px solid var(--c-primary);
}
.sg-pdp__short-desc p { margin: 0; font-size: var(--fs-sm); color: var(--c-text-soft); }
.sg-pdp__short-desc i { color: var(--c-primary); flex-shrink: 0; }

/* Buy card */
.sg-pdp__buy-card {
  background: linear-gradient(135deg, var(--c-primary-pale), var(--c-bg-alt));
  padding: var(--sp-5); border-radius: var(--r-lg); margin-bottom: var(--sp-5);
}
.sg-pdp__price-block { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.sg-pdp__price-prev { font-size: var(--fs-md); color: var(--c-text-muted); text-decoration: line-through; }
.sg-pdp__price-main { display: flex; align-items: baseline; gap: 4px; }
.sg-pdp__price-value { font-size: 1.75rem; font-weight: 800; color: var(--c-primary); }
.sg-pdp__price-unit { font-size: var(--fs-sm); color: var(--c-text-soft); }

.sg-pdp__engagement { margin-bottom: var(--sp-4); }
.sg-pdp__engagement .form-submit, .sg-pdp__engagement input[type="submit"] {
  width: 100%; padding: var(--sp-4); font-size: var(--fs-md); font-weight: 700;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff; border: none; border-radius: var(--r-lg); cursor: pointer;
}
.sg-pdp__engagement .form-item { margin-bottom: var(--sp-3); }
.sg-pdp__stock-pill.is-out { background: var(--c-bg-alt); color: var(--c-text-muted); }
.sg-pdp__stock-pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 6px 14px; background: var(--c-success-soft);
  color: var(--c-success); border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--sp-4);
}

/* Spec rows */
.sg-pdp__spec-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-sm);
}
.sg-pdp__spec-row:last-child { border-bottom: none; }
.sg-pdp__spec-label {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  color: var(--c-text-soft);
}
.sg-pdp__spec-label i { color: var(--c-primary); }
.sg-pdp__spec-value { font-weight: 600; color: var(--c-text); }

/* Tabs (description / specs / reviews) */
.sg-pdp__tabs-nav {
  display: flex; border-bottom: 2px solid var(--c-border);
  margin-bottom: var(--sp-5); gap: var(--sp-1); overflow-x: auto;
  scrollbar-width: none;
}
.sg-pdp__tabs-nav::-webkit-scrollbar { display: none; }
.sg-pdp__tab {
  padding: var(--sp-3) var(--sp-5); background: transparent;
  color: var(--c-text-soft); border: none;
  border-bottom: 3px solid transparent;
  font-size: var(--fs-sm); font-weight: 600;
  cursor: pointer; transition: all var(--t-fast);
  white-space: nowrap; margin-bottom: -2px;
}
.sg-pdp__tab.is-active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.sg-pdp__tab-content { display: none; padding: var(--sp-4) 0; line-height: 1.8; }
.sg-pdp__tab-content.is-active { display: block; }

/* Spec table */
.spec-table {
  width: 100%; border-collapse: collapse;
  background: var(--c-surface); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-sm);
}
.spec-table tr { border-bottom: 1px solid var(--c-border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); }
.spec-table td:first-child {
  background: var(--c-bg-alt); font-weight: 700; color: var(--c-text); width: 35%;
}
.spec-table td:last-child { color: var(--c-text-soft); }

/* Trust badges */
.sg-pdp__trust {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3);
  margin-top: var(--sp-5); padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
  list-style: none;
}
.sg-pdp__trust li {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--fs-sm); color: var(--c-text-soft);
}
.sg-pdp__trust i { color: var(--c-success); font-size: var(--fs-md); }
@media (max-width: 640px) { .sg-pdp__trust { grid-template-columns: 1fr; } }

/* Notice */
.sg-pdp__notice {
  display: flex; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4);
  background: var(--c-warning-soft); border-radius: var(--r-md);
  margin-top: var(--sp-4); font-size: var(--fs-xs); color: #92400e;
}
.sg-pdp__notice i { color: var(--c-warning); flex-shrink: 0; }


/* === Cart layout === */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--sp-5); align-items: start; }
@media (max-width: 992px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-items, .cart-summary {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-5);
}
.cart-summary { position: sticky; top: calc(var(--header-h) + var(--sp-4)); }
.cart-summary__title {
  font-size: var(--fs-md); font-weight: 700; margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3); border-bottom: 2px solid var(--c-border);
  display: flex; align-items: center; gap: var(--sp-2);
}
.cart-summary__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-3) 0; font-size: var(--fs-sm);
  color: var(--c-text-soft); border-bottom: 1px dashed var(--c-border);
}
.cart-summary__row:last-of-type { border-bottom: none; }
.cart-summary__row--total {
  padding-top: var(--sp-4); margin-top: var(--sp-2);
  border-top: 2px solid var(--c-border); border-bottom: none;
  font-size: var(--fs-md); font-weight: 700; color: var(--c-text);
}
.cart-summary__row--total .val { color: var(--c-primary); font-size: var(--fs-xl); }


/* === Checkout steps === */
.checkout-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: var(--sp-8); padding: var(--sp-5);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); flex-wrap: wrap;
}
.checkout-step {
  display: flex; align-items: center; gap: var(--sp-3);
  color: var(--c-text-muted); font-size: var(--fs-sm); font-weight: 600;
  padding: 0 var(--sp-3); flex-direction: column; text-align: center;
}
.checkout-step__num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-bg-alt); color: var(--c-text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--fs-md);
  border: 2px solid var(--c-border); position: relative; z-index: 2;
  transition: all var(--t-base);
}
.checkout-step.is-active .checkout-step__num {
  background: var(--c-primary); color: #fff;
  border-color: var(--c-primary); box-shadow: var(--sh-pink);
  transform: scale(1.1);
}
.checkout-step.is-complete .checkout-step__num {
  background: var(--c-success); color: #fff; border-color: var(--c-success);
}
.checkout-step.is-complete .checkout-step__num::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
}
.checkout-step.is-complete .checkout-step__num-text { display: none; }
.checkout-step-divider { width: 60px; height: 2px; background: var(--c-border); margin: 0 var(--sp-2); position: relative; top: -10px; }
@media (max-width: 768px) { .checkout-step-divider { display: none; } .checkout-steps { gap: var(--sp-4); } }


/* === User dashboard === */
.dashboard-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--sp-5); align-items: start; }
@media (max-width: 992px) { .dashboard-layout { grid-template-columns: 1fr; } }
.dashboard-sidebar {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); overflow: hidden;
  position: sticky; top: calc(var(--header-h) + var(--sp-4));
}
@media (max-width: 992px) { .dashboard-sidebar { position: static; } }
.dashboard-user-card {
  padding: var(--sp-5); text-align: center;
  background: linear-gradient(135deg, var(--c-primary-pale), var(--c-secondary-pale));
  border-bottom: 1px solid var(--c-border);
}
.dashboard-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-2xl); font-weight: 700; margin-bottom: var(--sp-3);
  border: 4px solid var(--c-surface); box-shadow: var(--sh-md);
}
.dashboard-menu { padding: var(--sp-2); }
.dashboard-menu a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); color: var(--c-text-soft);
  text-decoration: none; border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 500; transition: all var(--t-fast);
}
.dashboard-menu a:hover, .dashboard-menu a.is-active {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff; box-shadow: var(--sh-pink);
}
.dashboard-menu a i { width: 20px; text-align: center; }

.dashboard-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-4); margin-bottom: var(--sp-5); }
@media (max-width: 992px) { .dashboard-stats { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .dashboard-stats { grid-template-columns: 1fr; } }
.dashboard-stat {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-4);
  display: flex; align-items: center; gap: var(--sp-3); transition: all var(--t-base);
}
.dashboard-stat:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.dashboard-stat__icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-xl); flex-shrink: 0;
}
.dashboard-stat__icon--primary { background: var(--c-primary-light); color: var(--c-primary); }
.dashboard-stat__icon--secondary { background: var(--c-secondary-pale); color: var(--c-secondary); }
.dashboard-stat__icon--gold { background: linear-gradient(135deg, var(--c-accent), #b8941f); color: #fff; }
.dashboard-stat__icon--success { background: var(--c-success-soft); color: var(--c-success); }
.dashboard-stat__value { font-size: var(--fs-xl); font-weight: 700; line-height: 1; }
.dashboard-stat__label { font-size: var(--fs-xs); color: var(--c-text-muted); margin-top: 4px; }

.dashboard-section {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-5); margin-bottom: var(--sp-4);
}
.dashboard-section__title {
  font-size: var(--fs-md); font-weight: 700; margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3); border-bottom: 2px solid var(--c-border);
  display: flex; align-items: center; gap: var(--sp-3);
}
.dashboard-section__title i { color: var(--c-primary); }


/* === Toast === */
.toast-container {
  position: fixed; bottom: var(--sp-5); inset-inline-end: var(--sp-5);
  z-index: 9999; display: flex; flex-direction: column; gap: var(--sp-2);
  pointer-events: none;
}
.toast {
  background: var(--c-surface); border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: var(--sp-3);
  min-width: 280px; max-width: 400px; pointer-events: auto;
  border-inline-start: 4px solid var(--c-primary);
  animation: toast-in .3s ease-out;
}
.toast--success { border-inline-start-color: var(--c-success); }
.toast--error   { border-inline-start-color: var(--c-danger); }
.toast--warning { border-inline-start-color: var(--c-warning); }
.toast__icon { font-size: var(--fs-lg); }
.toast--success .toast__icon { color: var(--c-success); }
.toast--error .toast__icon { color: var(--c-danger); }
.toast--warning .toast__icon { color: var(--c-warning); }
.toast__content { flex: 1; font-size: var(--fs-sm); color: var(--c-text); }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }


/* === Visually hidden (Drupal-style) === */
.visually-hidden {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  overflow: hidden; height: 1px; width: 1px;
  word-wrap: normal;
}
.skip-link {
  position: absolute; top: -40px; inset-inline-end: 0;
  background: var(--c-primary); color: #fff;
  padding: 8px 16px; z-index: 9999;
  border-radius: 0 0 0 var(--r-sm);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }


/* === Dark mode overrides (for elements that need them) === */
[data-theme="dark"] .header-search-form { background: var(--c-surface); }
[data-theme="dark"] .btn-ghost { background: var(--c-bg-alt); }
[data-theme="dark"] .product-card__add { background: var(--c-bg-alt); }
[data-theme="dark"] .discount-tag { background: var(--c-danger); color: #fff; }
[data-theme="dark"] .site-footer { background: linear-gradient(135deg, #0f1f18, #0a1410); }


/* === Responsive tweaks === */
@media (max-width: 640px) {
  .sg-pdp { padding: var(--sp-3); }
  .sg-pdp__info, .sg-pdp__buy-card { padding: var(--sp-4); }
  .sg-pdp__title { font-size: 1.125rem; }
  .sg-pdp__price-value { font-size: 1.5rem; }
}

.cart-layout--empty { display: block; }

.cat-tile__icon .cat-icon { width: 34px; height: 34px; display: block; }
.sg-pdp__engagement label.form-check-label .out-of-stock,
.sg-pdp__engagement .out-of-stock {
  position: relative; overflow: hidden; cursor: not-allowed;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-bg-alt); color: var(--c-text-muted);
  text-decoration: line-through; padding: 4px; margin: 3px;
}
.sg-pdp__engagement .in-stock { padding: 4px; margin: 3px; }
.sg-pdp__engagement .form-check { display: flex; align-items: center; gap: var(--sp-2); }

.cart-form .item-list ul { list-style: none; padding: 0; margin: 0; }
.cart-form .item-list li { padding: var(--sp-4) 0; border-bottom: 1px solid var(--c-border); }
.cart-form .item-list li:last-child { border-bottom: none; }
.cart-form .item-list li > div > span { display: flex; gap: var(--sp-4); align-items: flex-start; }
.c-cart-thumb { flex: 0 0 96px; }
.c-cart-thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--c-border); }
.c-cart-data { flex: 1; display: grid; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--c-text-soft); min-width: 0; }
.c-cart-data > .c-cart-item_title:first-child { font-weight: 700; color: var(--c-text); font-size: var(--fs-md); }
.c-cart-data i, .c-cart-data .fa { margin-inline-end: var(--sp-2); color: var(--c-primary); }
.c-cart-item_quant { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.c-cart-item_quant .form-item { width: 90px; margin: 0; }
.c-cart-item_quant .c-cart-item_title { font-weight: 400; }
.cart-form .delete-order-item {
  background: var(--c-danger-soft); color: var(--c-danger);
  padding: var(--sp-2) var(--sp-4); border: 1px solid transparent;
}
.cart-form .delete-order-item:hover { box-shadow: none; border-color: var(--c-danger); }
.cart-form .form-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-4); }
.cart-form .form-actions #edit-submit { background: var(--c-bg-alt); color: var(--c-text); border: 1px solid var(--c-border); }
.cart-form [data-drupal-selector="order-total-summary"] { display: none; }
.js .cart-layout:not(.cart-layout--empty) .cart-form #edit-checkout { display: none; }
.cart-layout > div:first-child { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--sp-5); }
.cart-layout--empty > div:first-child { padding: var(--sp-6); text-align: center; }
@media (max-width: 640px) { .c-cart-thumb, .c-cart-thumb img { flex-basis: 72px; width: 72px; height: 72px; } }

.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4);
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
}
.auth-card {
  width: 100%; max-width: 440px; background: var(--c-surface);
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}
.auth-card__head { padding: var(--sp-6) var(--sp-5) var(--sp-4); text-align: center; border-bottom: 1px solid var(--c-border); }
.auth-card__logo img { max-height: 64px; width: auto; margin: 0 auto var(--sp-3); display: block; }
.auth-card__title { font-size: var(--fs-xl); font-weight: 800; margin: 0; color: var(--c-text); }
.auth-card__body { padding: var(--sp-6) var(--sp-5); }
.auth-card__body label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
.auth-card__body input[name="mobile_number"] { direction: ltr; text-align: left; font-size: var(--fs-md); letter-spacing: 1px; }
.auth-card__body .form-submit, .auth-card__body button[type="submit"] { width: 100%; padding: var(--sp-4); font-size: var(--fs-md); margin-top: var(--sp-2); }
.auth-card__body #edit-back {
  background: none; border: none; color: var(--c-primary); font-weight: 600;
  cursor: pointer; padding: var(--sp-3) 0; font-family: inherit; box-shadow: none;
}
.auth-card__terms {
  margin: 0; padding: var(--sp-4) var(--sp-5) var(--sp-5); text-align: center;
  font-size: var(--fs-xs); line-height: 1.9; color: var(--c-text-muted); border-top: 1px solid var(--c-border);
}
.auth-card__terms a { color: var(--c-primary); font-weight: 600; }
.otp-inputs-wrapper { display: flex; gap: var(--sp-3); justify-content: center; margin: var(--sp-5) 0 var(--sp-3); direction: ltr; flex-wrap: wrap; }
.otp-digit-input {
  width: 50px; height: 58px; padding: 0; text-align: center;
  font-size: 1.5rem; font-weight: 700; border-radius: var(--r-md);
  border: 2px solid var(--c-border); background: var(--c-surface); color: var(--c-text);
}
.otp-digit-input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-light); }
.otp-digit-input.error { border-color: var(--c-danger); }
.otp-error-msg { color: var(--c-danger); font-size: var(--fs-xs); text-align: center; margin-top: var(--sp-2); }
.otp-timer-container { text-align: center; margin: var(--sp-4) 0; font-size: var(--fs-sm); color: var(--c-text-soft); }
.otp-timer-display { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); font-weight: 700; color: var(--c-primary); font-variant-numeric: tabular-nums; }
.otp-resend-btn { background: none; border: none; color: var(--c-primary); font-weight: 600; text-decoration: underline; cursor: pointer; font-family: inherit; padding: 0; }
@media (max-width: 380px) { .otp-digit-input { width: 42px; height: 50px; font-size: 1.25rem; } .otp-inputs-wrapper { gap: var(--sp-2); } }

.product-listing .item-list > ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--sp-4);
}
@media (max-width: 640px) { .product-listing .item-list > ul { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); } }
.product-listing .item-list > ul > li {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-content: start;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  overflow: hidden; transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.product-listing .item-list > ul > li:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--c-primary-light); }
.product-listing .views-field { min-width: 0; }
.product-listing .views-field-field-cover { grid-column: 1 / -1; background: var(--c-bg-alt); }
.product-listing .views-field-field-cover a { display: block; }
.product-listing .views-field-field-cover picture, .product-listing .views-field-field-cover img { display: block; width: 100%; }
.product-listing .views-field-field-cover img { aspect-ratio: 1 / 1; height: auto; object-fit: cover; transition: transform var(--t-slow, .4s); }
.product-listing .item-list > ul > li:hover .views-field-field-cover img { transform: scale(1.05); }
.product-listing .views-field-title { grid-column: 1 / -1; padding: var(--sp-3) var(--sp-3) var(--sp-2); }
.product-listing .views-field-title a {
  color: var(--c-text); font-weight: 600; font-size: var(--fs-sm); line-height: 1.7; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.4em;
}
.product-listing .views-field-title a:hover { color: var(--c-primary); }
.product-listing .views-field-variations-10 { padding: 0 var(--sp-3) var(--sp-3); align-self: end; }
.product-listing .views-field-variations-10 .field-content > div > div:has(~ div .price) { display: none; }
.product-listing .price-with-discount { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); }
.product-listing .price-with-discount .original-price { color: var(--c-text-muted); font-size: var(--fs-xs); }
.product-listing .price-with-discount .discount-percentage {
  background: var(--c-danger); color: #fff; font-size: var(--fs-xs); font-weight: 700;
  padding: 1px var(--sp-2); border-radius: var(--r-pill); direction: ltr;
}
.product-listing .price-with-discount .final-price { flex-basis: 100%; color: var(--c-primary); font-weight: 800; font-size: var(--fs-lg, 1.125rem); }
.product-listing .views-field-nothing.toman { align-self: end; padding: 0 0 var(--sp-3); color: var(--c-text-muted); font-size: var(--fs-xs); }
.product-listing .views-field-views-conditional-field:has(.field-content:empty) { display: none; }
.product-listing .views-field-views-conditional-field {
  position: absolute; top: var(--sp-3); inset-inline-start: var(--sp-3); z-index: 2;
  background: var(--c-text); color: var(--c-surface); font-size: var(--fs-xs); font-weight: 700;
  padding: 2px var(--sp-3); border-radius: var(--r-pill);
}
.product-listing .item-list > ul > li:has(.views-field-views-conditional-field .field-content:not(:empty)) .views-field-field-cover img { opacity: .5; filter: grayscale(.6); }
.product-listing .item-list > ul > li:has(.views-field-views-conditional-field .field-content:not(:empty)) .final-price { color: var(--c-text-muted); }
.pager { margin: var(--sp-8) 0 var(--sp-6); }
.pager__items { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); padding: 0; margin: 0; }
.pager__item a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding: 0 var(--sp-3); border-radius: var(--r-md); border: 1px solid var(--c-border);
  background: var(--c-surface); color: var(--c-text); font-weight: 600; font-size: var(--fs-sm); text-decoration: none;
  transition: all var(--t-fast);
}
.pager__item a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pager__item.is-active a { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.view-description_term_block {
  margin-top: var(--sp-8); padding: var(--sp-6); background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: var(--r-lg); line-height: 2; color: var(--c-text-soft);
}
.view-description_term_block h1 { font-size: var(--fs-2xl, 1.5rem); font-weight: 800; margin: 0 0 var(--sp-4); }
.view-description_term_block h1 a { color: var(--c-text); text-decoration: none; }
.view-description_term_block p { margin: 0 0 var(--sp-3); }
/* ============================================================================
 * Soligol — Professional integration layer (v8)
 * Drupal core + Commerce + Views markup that had no styles before.
 * Uses the existing Design Tokens — RTL-first, dark-mode aware.
 * ========================================================================== */


/* =========================================================
 * 1. BUTTONS (Drupal .button base + variants)
 * ======================================================= */
.button:not(.form-submit):not(.button--primary):not(.button--danger):not(.delete-order-item):not(.btn) {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 10px 20px; font-family: inherit; font-size: var(--fs-sm); font-weight: 600;
  background: var(--c-surface); color: var(--c-text);
  border: 1px solid var(--c-border-strong); border-radius: var(--r-md);
  cursor: pointer; transition: all var(--t-fast); white-space: nowrap;
}
.button:not(.form-submit):not(.button--primary):not(.button--danger):not(.delete-order-item):not(.btn):hover {
  border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-pale);
}
.button--primary {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5); font-family: inherit; font-size: var(--fs-sm); font-weight: 600;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: #fff; border: none; border-radius: var(--r-md); cursor: pointer; transition: all var(--t-base);
}
.button--primary:hover { transform: translateY(-2px); box-shadow: var(--sh-pink); color: #fff; }
.form-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; margin-top: var(--sp-4); }
.form-actions .form-submit, .form-actions .button { margin: 0; }

/* =========================================================
 * 2. FORM ELEMENTS — professional polish
 * ======================================================= */
/* Required marker (was invisible) */
.form-required::after {
  content: '*'; color: var(--c-danger);
  margin-inline-start: 4px; font-weight: 700;
}

/* Field description / helper text */
.form-item__description, .description {
  font-size: var(--fs-xs); color: var(--c-text-muted);
  margin-top: var(--sp-2); line-height: 1.9;
}

/* Error state */
.form-item--error input, .form-item--error textarea, .form-item--error select,
.form-item.error input, .form-item.error textarea,
input.error, textarea.error, select.error {
  border-color: var(--c-danger) !important;
  background: var(--c-danger-soft);
}
.form-item__error-message, .form-item--error .form-item__description,
.error .form-item__description {
  color: var(--c-danger); font-size: var(--fs-xs);
  margin-top: var(--sp-2); display: flex; align-items: center; gap: 6px;
}

/* Inline checkbox / radio rows (was stacking vertically, broken) */
.form-check,
.form-type-boolean, .form-item--boolean {
  display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-3);
}
.form-check input[type="checkbox"], .form-check input[type="radio"],
.form-type-boolean input, .form-item--boolean input {
  width: 18px; height: 18px; flex-shrink: 0; margin: 0; accent-color: var(--c-primary); cursor: pointer;
}
.form-check label, .form-check .form-check-label,
.form-type-boolean label, .form-item--boolean label,
label.option {
  display: inline-flex; align-items: center; margin: 0; cursor: pointer;
  font-size: var(--fs-sm); font-weight: 500; color: var(--c-text);
}

/* Number inputs: remove spinners, center digits */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Fieldset */
fieldset {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4);
  margin: 0 0 var(--sp-4);
}
fieldset legend {
  font-weight: 700; font-size: var(--fs-sm);
  padding: 0 var(--sp-2); color: var(--c-text);
}

/* Ajax throbber */
.ajax-progress-throbber, .ajax-progress {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); color: var(--c-primary); vertical-align: middle;
}
.ajax-progress-throbber .throbber, .ajax-progress .throbber {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--c-primary-light); border-top-color: var(--c-primary);
  animation: spin .7s linear infinite;
}


/* =========================================================
 * 3. DETAILS / SUMMARY — accordions & coupon boxes
 * ======================================================= */
details {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); margin-bottom: var(--sp-2); overflow: hidden;
  transition: box-shadow var(--t-fast);
}
details[open] { box-shadow: var(--sh-xs); }
details summary {
  cursor: pointer; padding: 14px 18px;
  font-size: var(--fs-sm); font-weight: 700; color: var(--c-text);
  display: flex; align-items: center; gap: var(--sp-2);
  list-style: none; user-select: none; transition: color var(--t-fast);
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: 11px; color: var(--c-text-muted);
  margin-inline-start: auto; transition: transform var(--t-base), color var(--t-fast);
}
details summary:hover { color: var(--c-primary); }
details[open] > summary { color: var(--c-primary); border-bottom: 1px solid var(--c-border); }
details[open] > summary::after { transform: rotate(180deg); color: var(--c-primary); }
details > .details-content, details > div:not(.coupon-form) { padding: var(--sp-4); font-size: var(--fs-sm); color: var(--c-text-soft); line-height: 1.9; }

/* Coupon redemption box */
details.coupon-redemption { border-style: dashed; border-color: var(--c-border-strong); background: var(--c-primary-pale); }
details.coupon-redemption summary { color: var(--c-primary-dark); }
details.coupon-redemption summary i { color: var(--c-primary); }
.coupon-form { display: flex; gap: var(--sp-2); padding: var(--sp-4); flex-wrap: wrap; }
.coupon-form .form-item { flex: 1 1 180px; margin: 0; }

/* FAQ items (JS: .faq-item / .faq-item__q / .faq-item__a) */
.faq-item, details.sg-faq-item {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); margin-bottom: var(--sp-2); overflow: hidden;
}
.faq-item__q {
  width: 100%; text-align: start; cursor: pointer;
  padding: 14px 18px; font-size: var(--fs-sm); font-weight: 700; color: var(--c-text);
  display: flex; align-items: center; gap: var(--sp-2); transition: color var(--t-fast);
  position: relative;
}
.faq-item__q::after {
  content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: 11px; color: var(--c-text-muted); margin-inline-start: auto;
  transition: transform var(--t-base);
}
.faq-item__q:hover { color: var(--c-primary); }
.faq-item.is-active .faq-item__q { color: var(--c-primary); }
.faq-item.is-active .faq-item__q::after { transform: rotate(180deg); color: var(--c-primary); }
.faq-item__a, .sg-faq-item__body {
  padding: 0 18px 16px; font-size: var(--fs-sm); color: var(--c-text-soft); line-height: 2;
  border-top: 1px solid var(--c-border); padding-top: var(--sp-3);
  margin-top: 0;
}
.faq-item__a { display: none; }
.faq-item.is-active .faq-item__a { display: block; animation: toast-in .25s ease-out; }
details.sg-faq-item[open] .sg-faq-item__body { border-top: 1px solid var(--c-border); padding-top: var(--sp-3); }


/* =========================================================
 * 4. GENERIC TABLES (orders, dashboard, views tables…)
 * ======================================================= */
table:not(.spec-table):not(.order-total-summary) {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-xs);
}
table:not(.spec-table):not(.order-total-summary) th {
  background: var(--c-bg-alt); padding: 12px 16px;
  font-size: var(--fs-xs); font-weight: 700; color: var(--c-text-soft);
  text-align: start; white-space: nowrap; letter-spacing: .2px;
}
table:not(.spec-table):not(.order-total-summary) td {
  padding: 14px 16px; border-top: 1px solid var(--c-border);
  vertical-align: middle; font-size: var(--fs-sm); color: var(--c-text);
}
table:not(.spec-table):not(.order-total-summary) tbody tr { transition: background var(--t-fast); }
table:not(.spec-table):not(.order-total-summary) tbody tr:hover { background: var(--c-primary-pale); }
table:not(.spec-table) thead th:first-child { border-start-start-radius: var(--r-lg); }
table:not(.spec-table) thead th:last-child { border-start-end-radius: var(--r-lg); }

/* Horizontal scroll for wide tables on mobile */
@media (max-width: 768px) {
  .cart-form, .view-commerce-user-orders,
  .dashboard-section > .view, .view-content {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .cart-form table { min-width: 680px; }
  table.views-table { min-width: 560px; }
}


/* =========================================================
 * 5. CART PAGE — commerce cart form table
 * ======================================================= */
.cart-form { overflow-x: auto; }
.cart-form table { min-width: 680px; }
.cart-form th { font-size: var(--fs-xs); }

/* Product cell: thumbnail + data side by side inside the td */
.cart-form td.cart-product-cell { min-width: 280px; }
.cart-form .c-cart-thumb {
  flex: none; display: inline-block; vertical-align: middle;
  width: 72px; margin-inline-end: var(--sp-3);
}
.cart-form .c-cart-thumb img {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: var(--r-md); border: 1px solid var(--c-border);
  background: var(--c-bg-alt);
}
.cart-form .c-cart-data {
  display: inline-block; vertical-align: middle; max-width: calc(100% - 92px);
}
.cart-form .c-cart-item_title { display: block; }
.cart-form .c-cart-data > span { display: flex; align-items: center; font-size: var(--fs-xs); color: var(--c-text-muted); margin-top: 2px; }

/* Price columns */
.cart-form td.cart-product-unit-price,
.cart-form td.cart-product-total-price { white-space: nowrap; font-weight: 700; }
.cart-form td.cart-product-total-price { color: var(--c-primary); }
.cart-form td small, .cart-form .cart-product-unit-price small { color: var(--c-text-muted); font-weight: 400; font-size: var(--fs-xs); }

/* Quantity */
.cart-form td.cart-product-quantity { min-width: 130px; }
.cart-form .c-cart-item_quant .form-item { width: 80px; margin: 0; }
.cart-form input[type="number"] {
  width: 80px; text-align: center; font-weight: 700;
  border-radius: var(--r-sm); padding: 8px 6px;
}

/* Remove button */
.cart-form .delete-order-item {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-danger-soft); color: var(--c-danger);
  padding: 8px 14px; border: 1px solid transparent;
  border-radius: var(--r-sm); font-size: var(--fs-xs); font-weight: 600;
  cursor: pointer; transition: all var(--t-fast);
}
.cart-form .delete-order-item:hover { background: var(--c-danger); color: #fff; border-color: var(--c-danger); box-shadow: none; transform: none; }

/* Cart form footer buttons */
.cart-form .form-actions {
  border-top: 2px solid var(--c-border);
  padding-top: var(--sp-4); margin-top: var(--sp-2);
}
.cart-form .form-actions #edit-submit {
  background: var(--c-bg-alt); color: var(--c-text);
  border: 1px solid var(--c-border); box-shadow: none;
}
.cart-form .form-actions #edit-submit:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-pale); }

/* Legacy item-list cart markup (if view renders list mode) */
.cart-form .item-list ul { list-style: none; padding: 0; margin: 0; }
.cart-form .item-list li { padding: var(--sp-4) 0; border-bottom: 1px solid var(--c-border); }


/* =========================================================
 * 6. CHECKOUT — commerce multistep layout
 * ======================================================= */
.commerce-checkout-flow {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--sp-5); align-items: start;
}
@media (max-width: 992px) {
  .commerce-checkout-flow { grid-template-columns: 1fr; }
  .layout-region-checkout-secondary { order: -1; }
}

/* Panes as cards */
.checkout-pane {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-5);
  margin-bottom: var(--sp-4); box-shadow: var(--sh-xs);
}
.checkout-pane .checkout-pane-title,
.checkout-pane > h2, .checkout-pane > legend {
  font-size: var(--fs-md); font-weight: 800; color: var(--c-text);
  display: flex; align-items: center; gap: var(--sp-2);
  padding-bottom: var(--sp-3); margin-bottom: var(--sp-4);
  border-bottom: 2px solid var(--c-border);
}
.checkout-pane .checkout-pane-title::before,
.checkout-pane > h2::before {
  content: ''; width: 4px; height: 18px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--c-primary), var(--c-secondary));
  border-radius: var(--r-pill);
}
.checkout-pane fieldset { background: var(--c-bg-alt); border-color: var(--c-border); }
.checkout-pane .form-item__description { margin-top: 6px; }

/* Footer buttons */
.layout-region-checkout-footer {
  display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center;
  padding-top: var(--sp-2);
}
.layout-region-checkout-footer .button--back {
  background: var(--c-surface); color: var(--c-text);
  border: 1px solid var(--c-border-strong);
}
.layout-region-checkout-footer .button--back:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* Order summary sidebar */
.layout-region-checkout-secondary { min-width: 0; }
.checkout-order-summary {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--sh-xs);
  position: sticky; top: calc(var(--header-h) + var(--sp-4));
}
@media (max-width: 992px) { .checkout-order-summary { position: static; } }
.checkout-order-summary__title {
  font-size: var(--fs-md); font-weight: 700;
  display: flex; align-items: center; gap: var(--sp-2);
  padding-bottom: var(--sp-3); margin-bottom: var(--sp-2);
  border-bottom: 2px solid var(--c-border);
}
.checkout-order-summary__title i { color: var(--c-primary); }
.checkout-order-summary details.coupon-redemption { margin: var(--sp-4) 0 0; }

/* Order totals table */
.order-total-summary {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: transparent; border: none; box-shadow: none;
}
.order-total-summary td {
  padding: 12px 4px; border: none;
  border-bottom: 1px dashed var(--c-border);
  font-size: var(--fs-sm); color: var(--c-text-soft); vertical-align: middle;
}
.order-total-summary tr:last-child td { border-bottom: none; }
.order-total-line-value { text-align: end; white-space: nowrap; font-weight: 700; color: var(--c-text); }
.order-total-line--total td {
  background: var(--c-primary-pale); color: var(--c-primary-dark);
  font-weight: 800; font-size: var(--fs-md);
  border-bottom: none; border-radius: var(--r-md); padding: 14px;
}
.order-total-line--total .order-total-line-value { color: var(--c-primary); }

/* Shipping / payment method option cards */
.shipping-methods, .form-radios, .payment-method-wrapper { border: none !important; padding: 0 !important; margin: 0 !important; background: transparent !important; }
.shipping-method-option, .payment-method-option {
  display: flex; align-items: center; gap: var(--sp-3);
  border: 2px solid var(--c-border); border-radius: var(--r-md);
  padding: 14px 16px; margin-bottom: var(--sp-2); cursor: pointer;
  transition: all var(--t-fast); background: var(--c-surface);
}
.shipping-method-option:hover, .payment-method-option:hover { border-color: var(--c-primary-light); }
.shipping-method-option.is-selected, .shipping-method-option:has(input:checked),
.payment-method-option.is-selected, .payment-method-option:has(input:checked) {
  border-color: var(--c-primary); background: var(--c-primary-pale);
  box-shadow: 0 0 0 3px var(--c-primary-light);
}
.shipping-method-option input, .payment-method-option input {
  width: 18px; height: 18px; accent-color: var(--c-primary); flex-shrink: 0; margin: 0; cursor: pointer;
}
.shipping-method-option__body, .payment-method-option__body {
  flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.shipping-method-option__body strong, .payment-method-option__body strong { font-size: var(--fs-sm); color: var(--c-text); }
.shipping-method-option__body small, .payment-method-option__body small { color: var(--c-text-muted); font-size: var(--fs-xs); }
.shipping-method-option__price, .payment-method-option__price {
  font-weight: 800; color: var(--c-primary); white-space: nowrap; font-size: var(--fs-sm);
}

/* Generic radio option cards inside checkout panes (fallback) */
.checkout-pane .form-item.form-type-radio > label,
.checkout-pane .form-radios .form-item > label {
  display: flex; align-items: center; gap: var(--sp-3);
  border: 2px solid var(--c-border); border-radius: var(--r-md);
  padding: 12px 16px; margin-bottom: var(--sp-2); cursor: pointer;
  transition: all var(--t-fast); font-weight: 600; font-size: var(--fs-sm);
}
.checkout-pane .form-item.form-type-radio > label:hover,
.checkout-pane .form-radios .form-item > label:hover { border-color: var(--c-primary-light); }
.checkout-pane .form-item.form-type-radio > label:has(input:checked),
.checkout-pane .form-radios .form-item > label:has(input:checked) {
  border-color: var(--c-primary); background: var(--c-primary-pale);
  box-shadow: 0 0 0 3px var(--c-primary-light);
}

/* Address fields — two-column grid */
.address-container, .layout-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-4);
}
.address-container .form-item--full,
.address-container .form-item:has(textarea),
.address-container .form-item--address-line1,
.address-container .form-item--address-line2,
.layout-form .form-item--full {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .address-container, .layout-form { grid-template-columns: 1fr; }
}


/* =========================================================
 * 7. PRODUCT PAGE — variation chips + qty selector
 * ======================================================= */
.sg-pdp__engagement .form-type-radio { display: inline-block; margin: 0 0 10px; }
.sg-pdp__engagement .form-type-radio > label { display: block; cursor: pointer; margin: 0; }
.sg-pdp__engagement .form-type-radio input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px;
}

/* Chip — in stock */
.sg-pdp__engagement .in-stock {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 84px; padding: 9px 18px; margin: 0;
  background: var(--c-surface); border: 2px solid var(--c-border);
  border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: 600;
  color: var(--c-text); cursor: pointer; transition: all var(--t-fast);
}
.sg-pdp__engagement .in-stock:hover { border-color: var(--c-primary); color: var(--c-primary); }
.sg-pdp__engagement .form-type-radio input:checked + .in-stock,
.sg-pdp__engagement label.is-active .in-stock,
.sg-pdp__engagement .form-check-label.is-active .in-stock {
  border-color: var(--c-primary); background: var(--c-primary-pale);
  color: var(--c-primary-dark); font-weight: 700;
  box-shadow: 0 0 0 3px var(--c-primary-light);
}

/* Chip — out of stock */
.sg-pdp__engagement label.form-check-label .out-of-stock,
.sg-pdp__engagement .out-of-stock {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 84px; padding: 9px 18px; margin: 0; position: static;
  background: var(--c-bg-alt); border: 2px dashed var(--c-border-strong);
  border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: 600;
  color: var(--c-text-muted); text-decoration: line-through;
  cursor: not-allowed;
}
.sg-pdp__engagement .out-of-stock i { color: var(--c-text-muted); }

/* Quantity stepper */
.qty-selector, [data-qty] {
  display: inline-flex; align-items: stretch;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); overflow: hidden; max-width: 170px;
}
.qty-selector button, [data-qty] button {
  width: 42px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-bg-alt); color: var(--c-primary);
  font-size: var(--fs-xs); transition: all var(--t-fast);
}
.qty-selector button:hover, [data-qty] button:hover { background: var(--c-primary); color: #fff; }
.qty-selector input, [data-qty] input {
  width: 58px; border: none; border-radius: 0; background: transparent;
  text-align: center; font-weight: 700; padding: 10px 4px; box-shadow: none;
}
.qty-selector input:focus, [data-qty] input:focus { box-shadow: none; }
.sg-pdp__engagement .form-type-number, .sg-pdp__engagement .form-item:has(.qty-selector) { display: flex; align-items: center; gap: var(--sp-3); }
.sg-pdp__engagement .form-type-number label { margin: 0; }

/* Reviews */
.review-item {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: var(--sp-4); margin-bottom: var(--sp-3);
}
.review-item__head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); margin-bottom: 6px; flex-wrap: wrap; }
.review-item__head strong { font-size: var(--fs-sm); }
.review-item__stars { color: var(--c-warning); font-size: var(--fs-xs); letter-spacing: 2px; }
.review-item p { margin: 0; font-size: var(--fs-sm); color: var(--c-text-soft); line-height: 1.9; }


/* =========================================================
 * 8. VIEWS — exposed filters & listing polish
 * ======================================================= */
.views-exposed-form {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-5); box-shadow: var(--sh-xs);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4); align-items: flex-end;
}
.views-exposed-form .form-item { flex: 1 1 190px; margin: 0; min-width: 170px; }
.views-exposed-form .form-item label {
  font-size: var(--fs-xs); font-weight: 600; color: var(--c-text-muted);
  margin-bottom: 6px; display: block;
}
.views-exposed-form .form-actions { margin: 0; flex: 0 0 auto; }

.product-listing-results { min-width: 0; }
.product-listing .item-list > ul > li { align-content: start; height: 100%; }
.product-listing .item-list > ul { align-items: stretch; }
.product-listing .views-field-nothing.toman .field-content:empty,
.product-listing .views-field-nothing.toman:has(.field-content:empty) { display: none; }


/* =========================================================
 * 9. DASHBOARD — addresses
 * ======================================================= */
.address-card {
  background: var(--c-bg-alt); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: var(--sp-4); margin-bottom: var(--sp-3);
  transition: all var(--t-fast);
}
.address-card:hover { border-color: var(--c-primary-light); box-shadow: var(--sh-xs); }
.address-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: 8px; }
.address-card__head strong { font-size: var(--fs-sm); }
.address-card__body { margin: 0 0 12px; font-size: var(--fs-sm); color: var(--c-text-soft); line-height: 2; }
.address-card__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* Views badges inside tables */
.views-table .badge { white-space: nowrap; }


/* =========================================================
 * 10. SEARCH RESULTS
 * ======================================================= */
.search-results { display: flex; flex-direction: column; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.search-result {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5);
  transition: all var(--t-fast);
}
.search-result:hover { border-color: var(--c-primary-light); box-shadow: var(--sh-sm); }
.search-result__title { margin: 0 0 6px; font-size: var(--fs-md); }
.search-result__title a { color: var(--c-text); font-weight: 700; }
.search-result__title a:hover { color: var(--c-primary); }
.search-result__snippet { margin: 0; font-size: var(--fs-sm); color: var(--c-text-soft); line-height: 2; }
.search-result__snippet p { margin: 0; }
mark { background: var(--c-warning-soft); color: inherit; padding: 0 3px; border-radius: 3px; }

.search-no-result {
  text-align: center; padding: var(--sp-10) var(--sp-5);
  background: var(--c-surface); border: 1px dashed var(--c-border-strong);
  border-radius: var(--r-lg);
}
.search-no-result i { font-size: 3.5rem; color: var(--c-primary-light); margin-bottom: var(--sp-3); display: block; }
.search-no-result h3 { margin-bottom: var(--sp-2); }
.search-no-result p { color: var(--c-text-muted); font-size: var(--fs-sm); margin: 0; }


/* =========================================================
 * 11. WISHLIST — empty state
 * ======================================================= */
.wishlist-empty {
  text-align: center; padding: var(--sp-10) var(--sp-5);
  background: var(--c-surface); border: 1px dashed var(--c-border-strong);
  border-radius: var(--r-lg);
}
.wishlist-empty i { font-size: 3.5rem; color: var(--c-primary-light); margin-bottom: var(--sp-3); display: block; }
.wishlist-empty h3 { margin-bottom: var(--sp-2); }
.wishlist-empty p { color: var(--c-text-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }

/* Flag links */
.flag-wishlist-link, a.flag-wishlist {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--c-danger); font-size: var(--fs-sm); font-weight: 600;
}
.flag-wishlist-link .fa-heart { color: var(--c-danger); }



/* =========================================================
 * 13. PRE-FOOTER (trust strip above footer)
 * ======================================================= */
.pre-footer {
  margin-top: var(--sp-10);
  padding: var(--sp-8) 0;
  background: linear-gradient(135deg, var(--c-primary-pale), var(--c-secondary-pale));
}
.pre-footer__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 992px) { .pre-footer__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.pre-footer__item {
  display: flex; align-items: center; gap: var(--sp-4);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--sh-xs); transition: all var(--t-base);
}
.pre-footer__item:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--c-primary-light); }
.pre-footer__item i {
  width: 52px; height: 52px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-primary-pale), var(--c-secondary-pale));
  border-radius: var(--r-md); font-size: var(--fs-xl); color: var(--c-primary);
  transition: all var(--t-base);
}
.pre-footer__item:hover i {
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  color: #fff; transform: scale(1.06);
}
.pre-footer__item strong { display: block; font-size: var(--fs-sm); margin-bottom: 2px; }
.pre-footer__item p { margin: 0; font-size: var(--fs-xs); color: var(--c-text-muted); line-height: 1.8; }


/* =========================================================
 * 14. HERO SLIDER DOTS
 * ======================================================= */
.hero-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: var(--r-pill);
  background: rgba(0,0,0,.22); cursor: pointer;
  transition: all var(--t-base); border: none; padding: 0;
}
.hero-dot.is-active { width: 26px; background: var(--c-primary); box-shadow: var(--sh-pink); }


/* =========================================================
 * 15. ARTICLE & COMMENTS
 * ======================================================= */
.article-detail { display: block; }
.article-body h2, .article-body h3 {
  position: relative; margin-top: var(--sp-8); margin-bottom: var(--sp-3);
  padding-inline-start: 14px;
}
.article-body h2::before, .article-body h3::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .35em;
  width: 4px; height: 1em; border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--c-primary), var(--c-secondary));
}
.article-body img { border-radius: var(--r-lg); margin: var(--sp-4) 0; }
.article-body blockquote {
  margin: var(--sp-5) 0; padding: var(--sp-4) var(--sp-5);
  background: var(--c-primary-pale); border-inline-start: 4px solid var(--c-primary);
  border-radius: var(--r-md); color: var(--c-text-soft); font-size: var(--fs-sm);
}

.comments { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.comment {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-4);
}
.comment--child { margin-top: var(--sp-3); margin-inline-start: 52px; background: var(--c-bg-alt); }
.comment__avatar {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm);
}
.comment__content { flex: 1; min-width: 0; }
.comment__meta { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: 4px; }
.comment__author { font-size: var(--fs-sm); color: var(--c-text); }
.comment__time { font-size: var(--fs-xs); color: var(--c-text-muted); }
.comment__body p { margin: 0; font-size: var(--fs-sm); color: var(--c-text-soft); line-height: 2; }
.comment__links { margin-top: 6px; }
.comment__links a { font-size: var(--fs-xs); font-weight: 600; color: var(--c-primary); display: inline-flex; align-items: center; gap: 4px; }

.comment-form-wrapper {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-5);
}
.comment-form-wrapper h3 {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-md); margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3); border-bottom: 2px solid var(--c-border);
}
.comment-form-wrapper h3 i { color: var(--c-primary); }


/* =========================================================
 * 16. DARK MODE REFINEMENTS for the new layer
 * ======================================================= */
[data-theme="dark"] table:not(.spec-table):not(.order-total-summary) tbody tr:hover { background: rgba(232, 74, 127, .08); }
[data-theme="dark"] .shipping-method-option.is-selected,
[data-theme="dark"] .shipping-method-option:has(input:checked),
[data-theme="dark"] .payment-method-option.is-selected,
[data-theme="dark"] .payment-method-option:has(input:checked),
[data-theme="dark"] .checkout-pane .form-item.form-type-radio > label:has(input:checked),
[data-theme="dark"] .checkout-pane .form-radios .form-item > label:has(input:checked) {
  background: var(--c-primary-pale);
}
[data-theme="dark"] details.coupon-redemption { background: var(--c-primary-pale); }
[data-theme="dark"] .address-card { background: var(--c-bg); }
[data-theme="dark"] .comment--child { background: var(--c-bg); }
[data-theme="dark"] mark { background: rgba(245, 158, 11, .25); }
[data-theme="dark"] .qty-selector button, [data-theme="dark"] [data-qty] button { background: var(--c-bg-alt); }
[data-theme="dark"] .hero-dot { background: rgba(255,255,255,.25); }


/* =========================================================
 * 17. SMALL SCREEN REFINEMENTS
 * ======================================================= */
@media (max-width: 640px) {
  .checkout-pane { padding: var(--sp-4); }
  .checkout-order-summary { padding: var(--sp-4); }
  .comment { padding: var(--sp-3); }
  .comment--child { margin-inline-start: 20px; }
  .views-exposed-form { padding: var(--sp-4); }
  .views-exposed-form .form-item { flex: 1 1 100%; }
  .views-exposed-form .form-actions { flex: 1 1 100%; }
  .views-exposed-form .form-actions .form-submit { width: 100%; }
  .table-wrap-scroll { overflow-x: auto; }
}


/* =========================================================
 * 18. BUILT-IN DEFAULT FRONT SLIDER + REGION HINTS (ADMIN ONLY)
 * ======================================================= */
.hero--default { margin-bottom: 0; }
.hero--default .hero-slide { min-height: 340px; }
.hero-slide--rose { background: linear-gradient(120deg, #e84a7f 0%, #f472b6 55%, #fb923c 130%); }
.hero-slide--gold { background: linear-gradient(120deg, #f59e0b 0%, #fbbf24 60%, #fde68a 135%); }
.hero-slide--teal { background: linear-gradient(120deg, #0d9488 0%, #14b8a6 55%, #34d399 135%); }

.hero--default .hero-slide__content { color: #fff; }
.hero--default .hero-slide__title { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .14); }
.hero--default .hero-slide__subtitle { color: rgba(255, 255, 255, .9); max-width: 46ch; }
.hero--default .badge {
  background: rgba(255, 255, 255, .22); color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(4px); margin-bottom: var(--sp-3);
}
.hero--default .btn-light { box-shadow: 0 10px 26px rgba(0, 0, 0, .2); }
.hero--default .btn-light:hover { transform: translateY(-2px); }

/* Decorative oversized icon on the far side of each slide */
.hero-slide__art {
  position: absolute; inset-inline-end: var(--sp-8); top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  font-size: 10rem; line-height: 1; color: rgba(255, 255, 255, .26);
  pointer-events: none; user-select: none; z-index: 1;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .16));
}
@media (max-width: 768px) {
  .hero--default .hero-slide { aspect-ratio: auto; min-height: 300px; padding: var(--sp-6) var(--sp-5); }
  .hero-slide__art { font-size: 4.5rem; inset-inline-end: var(--sp-2); }
}

/* Admin-only placement hints shown for empty front-page regions */
.region-hint {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  border: 2px dashed rgba(232, 74, 127, .55);
  background: var(--c-primary-pale);
  color: var(--c-text-soft);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm); line-height: 1.9;
  margin-bottom: var(--sp-4);
}
.region-hint i { color: var(--c-primary); font-size: var(--fs-lg); margin-top: 4px; }
.region-hint a { color: var(--c-primary); font-weight: 700; text-decoration: underline; }
.region-hint strong { color: var(--c-text); }
.region-hint--slider { margin-bottom: var(--sp-3); }
[data-theme="dark"] .region-hint {
  border-color: rgba(232, 74, 127, .5);
  background: rgba(232, 74, 127, .08);
}
[data-theme="dark"] .region-hint strong { color: var(--c-text); }


/* =========================================================
 * 19. PDP PRODUCT GALLERY (main stage + clickable thumbnails)
 * ========================================================= */
.sg-pdp__gallery-main {
  display: block; width: 100%;
  aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--r-md);
}
.sg-pdp__thumbs {
  display: flex; gap: var(--sp-2);
  margin-top: var(--sp-3);
  overflow-x: auto; padding-bottom: var(--sp-1);
  scrollbar-width: thin;
}
.sg-pdp__thumb {
  flex: 0 0 auto; width: 72px; height: 72px;
  padding: 0; cursor: pointer;
  border: 2px solid var(--c-border); border-radius: var(--r-sm);
  overflow: hidden; background: var(--c-surface);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.sg-pdp__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sg-pdp__thumb:hover { border-color: var(--c-primary-light); transform: translateY(-2px); }
.sg-pdp__thumb.is-active {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 2px var(--c-primary-light);
}
.sg-pdp__thumb:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
@media (max-width: 768px) { .sg-pdp__thumb { width: 60px; height: 60px; } }

[data-theme="dark"] .sg-pdp__thumb { background: var(--c-surface); border-color: var(--c-border); }
[data-theme="dark"] .sg-pdp__thumb:hover { border-color: var(--c-primary-light); }
