/* Segadty bridge — restyles shared chrome (.ab-* / .az-* / .cd-* hooks kept for JS + TC cases)
   to the confirmed Segadty kit. Token-only: every color is a --sg-* var defined in layout.jinja
   from Theme Editor settings. No light/dark switching. */

html, body, .app-content {
  background: var(--sg-page) !important;
  color: var(--sg-ink);
  font-family: var(--sg-font);
  font-weight: 500;
}
h1, h2, h3, h4, h5, .ab-cat-hero h1, .product-card-title { font-family: var(--sg-font); }
a { color: inherit; }
.ab-wrap { width: min(100% - 30px, var(--sg-max)) !important; margin-inline: auto; }

/* ---------- A1 buttons ---------- */
.ab-btn, .cd-btn, .ui-btn, .az-btn, .az-btn--atc, .az-btn--buy, .az-btn--outline,
.btn-add-to-cart, .btn-buy-now, .btn-cart-continue, .ab-filter-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  min-height: 35px !important;
  height: auto !important;
  padding: 8px 16px !important;
  font-family: var(--sg-font) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  border-radius: var(--sg-radius-control) !important;
  border: 1px solid var(--sg-primary) !important;
  background: var(--sg-primary) !important;
  color: var(--sg-on-primary) !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background var(--sg-duration) var(--sg-ease), color var(--sg-duration) var(--sg-ease), border-color var(--sg-duration) var(--sg-ease);
}
.ab-btn:hover, .ui-btn:hover, .az-btn:hover, .btn-add-to-cart:hover:not(:disabled), .btn-buy-now:hover:not(:disabled), .ab-filter-btn:hover {
  background: var(--sg-primary-hover) !important;
  border-color: var(--sg-primary-hover) !important;
  color: var(--sg-on-primary) !important;
}
.ab-btn--outline, .cd-btn--outline, .cd-btn--gold, .az-btn--outline, .az-btn--gold-outline,
.btn-buy-now, .btn-cart-continue, .ab-cart .btn-cart-continue, #side-cart .ab-btn--outline, .sg-card-cta--outline {
  background: var(--sg-page) !important;
  color: var(--sg-primary) !important;
  border-color: var(--sg-primary) !important;
}
.ab-btn--outline:hover, .cd-btn--gold:hover, .az-btn--outline:hover, .btn-buy-now:hover:not(:disabled),
.btn-cart-continue:hover, #side-cart .ab-btn--outline:hover, .sg-card-cta--outline:hover {
  background: var(--sg-primary) !important;
  color: var(--sg-on-primary) !important;
}
.ab-btn--block, .cd-btn--block { width: 100% !important; }
.ab-pdp .btn-add-to-cart, .ab-pdp .btn-buy-now, .ab-pdp [data-in-stock-form] .az-btn,
.ab-pdp .sticky-cart .btn-add-to-cart, #side-cart-checkout-btn, .ab-cart [data-cart-primary-checkout] a,
.ab-cart [data-cart-primary-checkout] .ab-btn, .ab-cart [data-cart-primary-checkout] .az-btn {
  min-height: 45px !important;
  font-size: 18px !important;
  border-radius: var(--sg-radius-btn-lg) !important;
}
.ab-btn:disabled, .ui-btn:disabled, .az-btn:disabled, .btn-add-to-cart:disabled, .cd-btn.is-closed, .ab-btn.is-closed {
  background: var(--sg-muted) !important;
  border-color: var(--sg-muted) !important;
  color: var(--sg-on-primary) !important;
  cursor: not-allowed !important;
}
input, select, textarea { border-radius: var(--sg-radius-btn-lg); }
input:focus, select:focus, textarea:focus { border-color: var(--sg-primary) !important; outline: none; }

/* ---------- A7 stars · A3 save chip ---------- */
.cd-stars, .ab-card .cd-stars { display: inline-flex; gap: 1px; color: var(--sg-star); font-size: 13px; line-height: 1; }
.cd-stars .off { color: var(--sg-star-off); }
.sg-save {
  display: inline-block;
  background: var(--sg-sale-tint);
  color: var(--sg-sale);
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--sg-radius-xs);
  padding: 0 3px 2px;
  line-height: 1.5;
}

/* ---------- O5 product card ---------- */
.ab-card, .product-cart.ab-card, .as-card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  background: var(--sg-card) !important;
  border: 0 !important;
  border-radius: var(--sg-radius-card) !important;
  box-shadow: none !important;
  overflow: hidden !important;
  text-align: start !important;
  padding: 0 !important;
  height: 100%;
}
.ab-card .media, .ab-card .az-card__media {
  position: relative !important;
  aspect-ratio: 1;
  background: var(--sg-page) !important;
  border-radius: var(--sg-radius-card) !important;
  overflow: hidden;
}
.ab-card .media img, .ab-card .az-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  padding: 0 !important;
  transition: transform .3s var(--sg-ease), opacity .3s var(--sg-ease);
}
.ab-card .media img.secondary-image { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) {
  .ab-card:hover .media img.primary-image { transform: scale(1.03); }
  .ab-card:hover .media img.secondary-image { opacity: 1; }
}
.ab-card-body, .sg-card__body {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  flex: 1;
  padding: 12px 12px 12px !important;
  background: var(--sg-card);
  text-align: start !important;
}
.ab-card .product-card-title, .ab-card h3 {
  margin: 0 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
  color: var(--sg-title) !important;
  text-align: start !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}
.ab-card .product-card-title a { color: inherit; text-decoration: none; transition: color var(--sg-duration) var(--sg-ease); }
.ab-card:hover .product-card-title a { color: var(--sg-primary); }
.ab-card-meta { display: flex !important; align-items: center !important; gap: 5px; width: 100%; margin: 0 !important; }
.ab-card .price, .ab-card .tp-price-product {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start !important;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--sg-title) !important;
}
.ab-card .price b { font-weight: 500; }
.ab-card .price.is-sale b { color: var(--sg-sale); }
/* strike = short diagonal stroke over the old price (reference del.old::before) */
.ab-card .price s {
  position: relative; display: inline-block; margin: 0;
  color: var(--sg-muted); font-size: 10px; font-weight: 500; text-decoration: none;
}
.ab-card .price s::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 25px; height: 1.4px;
  background: var(--sg-muted); transform: translate(-50%, -50%) rotate(-40deg); pointer-events: none;
}
.ab-card .sg-save {
  font-size: 10px; font-weight: 600; line-height: 1.5; padding: 0 3px 2px;
  border-radius: var(--sg-radius-xs); background: var(--sg-sale-tint); color: var(--sg-sale);
}
.sg-card__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.sg-card__rate { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sg-card__rate .cd-stars { font-size: 15px; }
.sg-card__count { font-size: 11px; color: var(--sg-muted); }
.sg-card-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 8px 0 14px !important;
  border: 1px solid var(--sg-primary);
  border-radius: var(--sg-radius-btn-lg);
  background: var(--sg-primary);
  color: var(--sg-on-primary) !important;
  font: 600 15px/1 var(--sg-font);
  white-space: nowrap;
  text-decoration: none !important;
  cursor: pointer;
  flex: none;
  transition: background var(--sg-duration) var(--sg-ease);
}
.sg-card-cta:hover { background: var(--sg-primary-hover); border-color: var(--sg-primary-hover); }
.sg-card-cta__ico {
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  border-radius: var(--sg-radius-chip); background: var(--sg-on-primary); color: var(--sg-primary); line-height: 0;
}
.sg-card-cta__ico svg { display: block; flex: none; }
.sg-card-cta--outline .sg-card-cta__ico { background: var(--sg-primary); color: var(--sg-on-primary); }
@media (max-width: 420px) { .sg-card-cta { height: 34px; font-size: 13px; padding: 0 6px 0 10px !important; gap: 6px; } }
.ab-card-acts {
  position: absolute !important;
  top: 8px !important;
  inset-inline-end: 8px !important;
  inset-inline-start: auto !important;
  left: auto; right: auto;
  bottom: auto !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 5;
}
[dir="rtl"] .ab-card-acts { right: 8px !important; left: auto !important; }
[dir="ltr"] .ab-card-acts { left: 8px !important; right: auto !important; }
.ab-card-acts button, .ab-card-acts a, .ab-card-acts .add-to-wishlist > button, .ab-card-acts .product-quick-view-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 50% !important;
  border: 0 !important;
  background: var(--sg-page) !important;
  color: var(--sg-primary) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  box-shadow: none !important;
}
@media (hover: hover) {
  .ab-card-acts .product-quick-view-btn, .ab-card-acts [data-quick-view] { opacity: 0; transition: opacity var(--sg-duration) var(--sg-ease); }
  .ab-card:hover .ab-card-acts .product-quick-view-btn, .ab-card:hover .ab-card-acts [data-quick-view] { opacity: 1; }
}
@media (hover: none) { .ab-card-acts .product-quick-view-btn, .ab-card-acts [data-quick-view], .az-qv-bar { display: none !important; } }
.ab-card-sale, .ab-card-new, .ab-card-oos {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  inset-inline-start: auto;
  z-index: 4;
  border-radius: var(--sg-radius-btn-lg) !important;
  background: var(--sg-primary) !important;
  color: var(--sg-on-primary) !important;
  font-size: 13px !important;
  font-weight: 600;
  padding: 4px 12px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
/* card: discount badge hidden (design request); other top badges = button colour (--sg-primary, store branding) */
.ab-card .ab-card-sale { display: none !important; }
.ab-card .ab-card-preorder .preorder-badge { background-color: var(--sg-primary) !important; color: var(--sg-on-primary) !important; }
.ab-card-oos {
  top: auto; bottom: 0; inset-inline: 0;
  border-radius: 0 !important;
  text-align: center;
  background: color-mix(in srgb, var(--sg-ink) 60%, transparent) !important;
}
.ab-card-way, .ab-card-sws { display: none !important; }

/* grids */
.ab-listing-grid, .cd-grid3 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 15px !important;
}
@media (min-width: 768px) { .ab-listing-grid, .cd-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (min-width: 1024px) { .ab-listing-grid, .cd-grid3 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (min-width: 1200px) { .ab-listing-grid.sg-grid5 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } }

/* ---------- listing ---------- */
.ab-cat { background: var(--sg-page) !important; padding: 16px 0 48px; }
.ab-cat-hero { background: transparent !important; border-radius: 0 !important; min-height: 0 !important; margin-bottom: 8px !important; text-align: center; }
.ab-cat-hero-copy { padding: 8px 0 !important; }
.ab-cat-hero h1 { font-size: 20px !important; font-weight: 600 !important; color: var(--sg-primary) !important; }
.ab-cat-hero p { color: var(--sg-muted); font-size: 13px; }
.ab-crumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--sg-muted); margin: 12px 0; }
.ab-crumb a { color: var(--sg-muted); text-decoration: none; }
.ab-crumb a:hover { color: var(--sg-primary); }
.ab-crumb > :last-child { color: var(--sg-primary); }
.ab-list-layout { display: flex; gap: 24px; align-items: flex-start; }
.ab-list-main { flex: 1; min-width: 0; }
.cd-filter-col { flex: 0 0 250px; width: 250px; position: sticky; top: 120px; align-self: flex-start; margin-bottom: 24px; }
.cd-filter-panel { background: var(--sg-page); border: 1px solid var(--sg-border); border-radius: var(--sg-radius-card); overflow: hidden; }
.cd-filter-panel__hd { padding: 12px 14px; border-bottom: 1px solid var(--sg-border); font-size: 14px; font-weight: 600; color: var(--sg-primary); text-transform: none; letter-spacing: 0; }
.cd-filter-panel__bd { padding: 8px 14px; max-height: none !important; overflow: visible !important; }
.cd-filter-panel__ft { padding: 12px 14px 16px !important; border-top: 1px solid var(--sg-border); display: flex; flex-direction: column; gap: 8px; }
.cd-fg { border: 0; border-bottom: 1px solid var(--sg-border); padding: 0 !important; margin: 0; }
.cd-fg:last-child { border-bottom: 0; }
.cd-fg__sum, .cd-fg > summary.cd-fg__sum, .cd-fg > summary.ab-fg-title {
  list-style: none; cursor: pointer; display: flex !important; align-items: center !important; justify-content: space-between !important;
  gap: 10px; padding: 12px 0 !important; margin: 0 !important; font-size: 13px; font-weight: 600; color: var(--sg-primary); user-select: none;
}
.cd-fg__sum::-webkit-details-marker, .cd-fg > summary::-webkit-details-marker { display: none; }
.cd-fg > summary.ab-fg-title::after, .cd-fg__sum.ab-fg-title::after, .cd-fg__sum::after {
  content: '+' !important; display: block !important; width: auto !important; height: auto !important;
  border: 0 !important; background: none !important; transform: none !important; font-size: 16px; line-height: 1;
}
.cd-fg[open] > .cd-fg__sum::after, .cd-fg[open] > summary.ab-fg-title::after, .cd-fg[open] > summary.cd-fg__sum::after { content: '−' !important; transform: none !important; }
.cd-fg__body { padding: 0 0 12px !important; font-size: 13px; }
.cd-fg__body input[type="checkbox"], .cd-fg__body input[type="radio"], .ab-drawer input[type="checkbox"] { accent-color: var(--sg-primary); }
.ab-drawer .bd, #products-filter-drawer .bd { max-height: none !important; overflow: visible !important; padding-bottom: 28px !important; }
.ab-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 0 16px; margin-bottom: 16px; border-bottom: 0; }
.ab-toolbar select, .ab-sort select {
  height: 32px; padding: 0 28px 0 10px; border: 1px solid var(--sg-primary); border-radius: var(--sg-radius-control);
  background-color: var(--sg-primary); color: var(--sg-on-primary); font: 500 12px var(--sg-font);
}
.ab-filter-btn { min-height: 32px !important; font-size: 11px !important; padding: 6px 14px !important; }
@media (max-width: 900px) {
  .ab-list-layout { flex-direction: column !important; }
  .cd-filter-col { display: none !important; }
  .ab-filter-btn.cd-filter-mobile-btn, .cd-filter-mobile-btn { display: inline-flex !important; }
}
.pagination a, .pagination span, .ab-pagination a, .ab-pagination span {
  min-width: 32px; height: 32px; border-radius: var(--sg-radius-control); border: 1px solid var(--sg-border);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: var(--sg-ink); text-decoration: none;
}
.pagination .active a, .pagination a.active, .pagination [aria-current="page"], .ab-pagination .is-active {
  background: var(--sg-primary) !important; border-color: var(--sg-primary) !important; color: var(--sg-on-primary) !important;
}

/* nav "more" dropdown */
.cd-nav-links { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 8px 22px; }
.cd-nav-more { position: relative; display: inline-flex; align-items: center; }
.cd-nav-more-btn { background: none; border: 0; cursor: pointer; font: inherit; gap: 2px; padding: 0; color: var(--sg-menu-on); }
.cd-nav-drop {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 220px; max-width: min(280px, 70vw);
  max-height: min(52vh, 360px); overflow: auto; margin: 0; padding: 6px 0; list-style: none;
  background: var(--sg-page); border-radius: var(--sg-radius-card); box-shadow: var(--sg-shadow); z-index: 60;
}
.cd-nav-drop a { display: block; padding: 8px 16px; text-decoration: none; color: var(--sg-ink); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-nav-drop a:hover, .cd-nav-drop a.sale { color: var(--sg-primary); background: var(--sg-primary-tint); }
.cd-nav-drop-sub { list-style: none; margin: 0; padding: 0 0 4px; }
.cd-nav-drop-sub a { padding-inline-start: 28px; font-size: 12px; color: var(--sg-muted); }

/* ---------- PDP ---------- */
.ab-pdp { background: var(--sg-page); }
.ab-pdp .ttl, .ab-pdp .title-product { color: var(--sg-primary) !important; font-size: 25px !important; font-weight: 500 !important; line-height: 1.45 !important; }
@media (max-width: 640px) { .ab-pdp .ttl, .ab-pdp .title-product { font-size: 20px !important; } }
.ab-pdp [data-product-discount-badge] {
  background: var(--sg-sale-tint) !important; color: var(--sg-sale) !important; border-radius: var(--sg-radius-xs) !important;
  font-size: 12px !important; font-weight: 600 !important; padding: 1px 6px !important;
}
.ab-pdp .product-gallery-main, .ab-pdp .ab-gallery-main, .ab-pdp .swiper.product-gallery-main { border-radius: var(--sg-radius-card); overflow: hidden; background: var(--sg-card); }
.ab-pdp .product-gallery-thumbs .swiper-slide, .ab-pdp [data-gallery-thumb] { border-radius: 8px; overflow: hidden; border: 2px solid transparent; }
.ab-pdp .product-gallery-thumbs .swiper-slide-thumb-active, .ab-pdp [data-gallery-thumb].is-active { border-color: var(--sg-primary); }
.ab-pdp [data-quantity-counter], .ab-pdp .ab-qty, .ab-pdp .product-quantity-wrap {
  border-radius: var(--sg-radius-btn-lg) !important; border-color: var(--sg-border) !important;
}
.ab-pdp [data-quantity-counter] button, .ab-pdp .ab-qty button { color: var(--sg-primary) !important; }
.cd-pdp-tabs-root {
  margin-top: 28px;
  background: var(--sg-panel);
  border-radius: var(--sg-radius-card) var(--sg-radius-card) 0 0;
  padding: 0 16px 16px;
}
.cd-pdp-tabs-nav { display: flex; width: 100%; gap: 4px; border-bottom: 1px solid var(--sg-border-strong); margin: 0; overflow-x: auto; scrollbar-width: none; }
.cd-pdp-tabs-nav .pdp-tab {
  flex: 0 0 auto; padding: 14px 12px; background: none; border: 0; border-bottom: 2px solid transparent;
  font: 600 14px var(--sg-font); letter-spacing: 0; text-transform: none; color: var(--sg-ink-soft); cursor: pointer; border-radius: 0 !important;
}
.cd-pdp-tabs-nav .pdp-tab.is-active, .cd-pdp-tabs-nav .pdp-tab:hover { color: var(--sg-primary); border-bottom-color: var(--sg-primary); }
.cd-pdp-pane { display: none; padding: 16px 4px 0; font-weight: 500; color: var(--sg-ink); line-height: 1.8; font-size: 14px; }
.cd-pdp-pane.is-active { display: block; }
.ab-acc .ab-acc-icon { display: none !important; }
.ab-acc .it { border: 0 !important; }
.ab-acc .it .bd { display: none !important; }
.ab-acc.cd-pdp-tabs-root .it { display: contents; }

/* A11 variant chips — maroon, idle .35 opacity */
[data-variant-choice], .cd-chip {
  border-radius: var(--sg-radius-chip) !important;
  background: var(--sg-primary) !important;
  border: 1px solid var(--sg-primary) !important;
  color: var(--sg-on-primary) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 5px 10px !important;
  min-height: 30px;
  opacity: .35;
  transition: opacity var(--sg-duration) var(--sg-ease);
}
[data-variant-choice][aria-pressed="true"], [data-variant-choice].is-selected, [data-variant-choice].active, .cd-chip.is-on {
  opacity: 1;
  font-size: 15px !important;
  font-weight: 600 !important;
}
[data-variant-choice]:hover { opacity: .7; }
[data-variant-choice][data-swatch], [data-variant-choice].is-swatch, [data-variant-choice].ab-swatch {
  background: transparent !important; opacity: 1; border-radius: 50% !important; border: 2px solid var(--sg-page) !important;
  outline: 1px solid var(--sg-border); padding: 0 !important;
}
[data-variant-choice][data-swatch][aria-pressed="true"], [data-variant-choice].is-swatch[aria-pressed="true"] { outline: 2px solid var(--sg-primary); }

/* colour options ([data-variant-kind="color"]): fixed round dot painted from --sw-color (choices_metadata hex / name map);
   bordered so white shows; selected = ring, never a filled background */
[data-variant-choice][data-variant-kind="color"] {
  flex: none; width: 35px !important; height: 35px !important; min-width: 35px !important; min-height: 35px !important;
  aspect-ratio: 1; box-sizing: border-box; overflow: hidden; padding: 0 !important; opacity: 1;
  border-radius: 50% !important; border: 1px solid var(--sg-border-strong) !important; outline: 0;
  background: var(--sw-color, var(--sg-border)) !important; font-size: 0 !important;
}
[data-variant-choice][data-variant-kind="color"] img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
[data-variant-choice][data-variant-kind="color"]:hover { opacity: 1; box-shadow: 0 0 0 2px var(--sg-page), 0 0 0 3px var(--sg-border-strong); }
[data-variant-choice][data-variant-kind="color"][aria-pressed="true"], [data-variant-choice][data-variant-kind="color"].on {
  box-shadow: 0 0 0 2px var(--sg-page), 0 0 0 4px var(--sg-primary);
}
.ab-pdp .ab-swatches { gap: 12px !important; padding: 4px; }

/* ---------- cart / side cart ---------- */
.ab-line, .az-cartline { border-radius: 0 !important; }
.ab-cart .ab-line img, #side-cart .ab-line img { background: var(--sg-card); border-radius: 8px; }
.ab-side-cart, #side-cart { border-radius: 0 var(--sg-radius-card) 0 0 !important; }
.ab-drawer { border-radius: var(--sg-radius-card) 0 var(--sg-radius-card) var(--sg-radius-card) !important; }
.az-cartsum__box, .ab-cart .ab-sum, .ab-cart aside .box { background: var(--sg-panel) !important; border: 0 !important; border-radius: var(--sg-radius-card) !important; }
.ab-cart-payicons img, .paygrid i { border-radius: var(--sg-radius-chip) !important; }

/* ---------- footer social (white squares, brand glyph) ---------- */
.sg-ftr .footer-social-section { align-items: center; margin: 0 0 8px; }
.sg-ftr .footer-social-section > div { justify-content: center; gap: 4px !important; }
.sg-ftr .social-btn {
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: var(--sg-radius-chip) !important;
  background: var(--footer-text-color-primary-bg) !important;
  color: var(--footer-primary-color) !important;
}
.sg-ftr .social-btn:hover { opacity: .85; background: var(--footer-text-color-primary-bg) !important; color: var(--footer-primary-color) !important; }
.sg-ftr .footer-payment img, .sg-ftr [data-footer-payment] img { background: var(--sg-page); border-radius: var(--sg-radius-chip); padding: 3px 5px; }

/* toasts — physical top-right */
.ab-toast-stack { position: fixed; top: 16px; right: 16px; left: auto; z-index: 1000001; }
.ab-toast { border-radius: var(--sg-radius-btn-lg) !important; box-shadow: var(--sg-shadow) !important; }
.ab-toast--error { background: var(--sg-error) !important; color: var(--sg-on-primary) !important; }
.ab-toast--success { background: var(--sg-success) !important; color: var(--sg-on-primary) !important; }

/* ---------- M4 section heading (home sections) ---------- */
.sg-head { text-align: center; margin: 0 0 20px; }
.sg-head__title { color: var(--sg-primary); font-size: 15px; font-weight: 600; margin: 0; line-height: 1.5; }
.sg-head__sub { color: var(--sg-muted); font-size: 12px; font-weight: 500; margin: 4px 0 0; }
.sg-more { display: block; width: max-content; margin: 14px auto 0; color: var(--sg-primary); font-size: 13px; font-weight: 600; text-decoration: none; }
.sg-more:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sg-accent); }
.sg-section { padding: 20px 0; }
.sg-container { width: min(100% - 30px, var(--sg-max)); margin-inline: auto; }

/* slider dots + rail arrows (home sections) */
.sg-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; position: static !important; }
.sg-dots .swiper-pagination-bullet { width: 6px; height: 6px; margin: 0 !important; opacity: 1; background: var(--sg-border-strong); }
.sg-dots .swiper-pagination-bullet-active { background: var(--sg-primary); }
.sg-rail__wrap { position: relative; }
.sg-rail__arrow {
  position: absolute; top: 38%; z-index: 3; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--sg-primary); background: var(--sg-page); color: var(--sg-primary);
  display: none; align-items: center; justify-content: center; cursor: pointer;
  transition: background var(--sg-duration) var(--sg-ease), color var(--sg-duration) var(--sg-ease);
}
@media (min-width: 1024px) { .sg-rail__arrow { display: inline-flex; } }
.sg-rail__arrow:hover { background: var(--sg-primary); color: var(--sg-on-primary); }
.sg-rail__arrow.swiper-button-disabled { opacity: .3; pointer-events: none; }
.sg-rail__arrow--prev { inset-inline-start: -14px; }
.sg-rail__arrow--next { inset-inline-end: -14px; }

/* M16 sub-category tiles (category page) */
.sg-tiles { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 8px; scrollbar-width: none; }
.sg-tiles::-webkit-scrollbar { display: none; }
.sg-tile { flex: 0 0 110px; display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; }
.sg-tile__well {
  width: 110px; height: 110px; display: grid; place-items: center; overflow: hidden;
  border-radius: var(--sg-radius-tile); background: var(--sg-sand); border: 2px solid var(--sg-accent);
}
.sg-tile__well img { width: 100%; height: 100%; object-fit: cover; }
.sg-tile__ini { color: var(--sg-wine); font-size: 32px; font-weight: 700; }
.sg-tile__name { color: var(--sg-wine); font-size: 13px; font-weight: 700; text-align: center; line-height: 1.35; }

/* PDP layout (O7) — 6/6, gallery on the physical left, buy box on the right (RTL start) */
@media (min-width: 901px) {
  .ab-pdp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 30px !important; }
  [dir="rtl"] .ab-pdp-grid > .ab-buybox { order: -1; }
}
.ab-buybox { gap: 14px; }
.ab-buybox .pr, .ab-pdp [data-product-info] .pr {
  font-size: 17px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--sg-primary); gap: 8px;
}
.ab-buybox .pr s, .ab-pdp [data-product-sale-price] { color: var(--sg-muted); font-size: 15px; font-weight: 500; }
.ab-buybox .pr .sale, .ab-pdp [data-product-price].sale { color: var(--sg-sale); }
.ab-buybox .desc, .ab-pdp .short-description { font-size: 12px; line-height: 1.8; color: var(--sg-ink); }
.ab-pdp .product-sku, .ab-pdp [data-product-sku] { font-size: 10px; color: var(--sg-muted); }
.ab-pdp legend, .ab-pdp [data-variant-option-group] > legend, .ab-pdp .variant-label { font-size: 15px; font-weight: 500; color: var(--sg-ink); }
.ab-pdp [data-variant-option-group] select, .ab-pdp .custom-field select {
  border: 1px solid var(--sg-primary); border-radius: var(--sg-radius-btn-lg); min-height: 35px;
}
.ab-pdp [data-out-of-stock-form] { background: var(--sg-panel); border-radius: var(--sg-radius-card); padding: 16px; }
.ab-pdp [data-out-of-stock-form] h3, .ab-pdp [data-out-of-stock-form] h4 { color: var(--sg-primary); font-size: 15px; font-weight: 600; }
.ab-pdp .product-stock-status--available { color: var(--sg-success); }
.ab-pdp .product-stock-status--unavailable { color: var(--sg-sale); }
.ab-pdp .ab-pdp-payw, .ab-pdp [data-pdp-pay-widgets] { gap: 8px; }
.ab-pdp .ab-bundle-chip { border-radius: var(--sg-radius-chip); background: var(--sg-primary-tint); color: var(--sg-primary); }
.ab-pdp .product-social a { border-radius: 50%; color: var(--sg-primary); }
.ab-pdp .card-question, .ab-pdp .ab-qa-item { background: var(--sg-page); border-radius: var(--sg-radius-card); padding: 20px; }

/* Cart (rules 27–29) */
.ab-cart { background: var(--sg-page); }
.ab-cart h1, .ab-cart .page-title { color: var(--sg-primary); font-size: 20px; font-weight: 600; }
.ab-cart [data-free-shipping-meter], .ab-cart .progressive-discount { background: var(--sg-panel); border-radius: var(--sg-radius-card); }
.ab-cart .ab-line .price, .ab-cart [data-cart-line-price] { color: var(--sg-primary); font-weight: 600; }
.ab-cart .coupon-applied-section { background: var(--sg-primary-tint); border-radius: var(--sg-radius-btn-lg); color: var(--sg-primary); }
.ab-cart .az-cart-oos, .ab-cart [data-cart-line-oos], #side-cart [data-cart-line-oos] { color: var(--sg-error); }
#side-cart { width: min(100%, 353px); }
#side-cart .ab-side-cart__title, #side-cart h4 { color: var(--sg-primary); font-size: 14px; font-weight: 600; }

/* M11 listing toolbar — two primary buttons: filter (start) · sort (end) */
.sg-toolbar { justify-content: space-between !important; padding: 8px 0 18px !important; }
.sg-toolbar__btn {
  min-height: 34px !important; padding: 0 14px !important; gap: 8px !important;
  border-radius: var(--sg-radius-btn-lg) !important; font-size: 12px !important; font-weight: 600 !important;
}
.sg-toolbar__btn .material-symbols-outlined { font-size: 18px; }
.sg-sort { position: relative; }
.sg-sort__menu {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 60; min-width: 200px;
  margin: 0; padding: 6px 0; list-style: none; background: var(--sg-page);
  border-radius: var(--sg-radius-card); box-shadow: var(--sg-shadow);
}
.sg-sort__menu[hidden] { display: none; }
.sg-sort__menu a { display: block; padding: 9px 16px; font-size: 13px; color: var(--sg-ink); text-decoration: none; }
.sg-sort__menu a:hover, .sg-sort__menu a.is-on { color: var(--sg-primary); background: var(--sg-primary-tint); font-weight: 600; }

/* drawers always paint the page color (filter drawer · side cart · mobile menu) */
#products-filter-drawer, .ab-drawer, #side-cart, .block-side-cart, .block-side-cart .offcanvas-body, .kl-drawer { background: var(--sg-page) !important; }
#products-filter-drawer .hd { border-bottom: 1px solid var(--sg-border); }
#products-filter-drawer .hd h2 { color: var(--sg-primary); font-size: 15px; font-weight: 600; }

/* PDP details — stacked sections (reference): accordions + always-open reviews; tab nav kept only for hooks */
.cd-pdp-tabs-root { padding: 0; background: transparent; border-radius: 0; display: grid; gap: 14px; }
.cd-pdp-tabs-nav { display: none !important; }
.cd-pdp-tabs-root .sg-pdp-acc, .cd-pdp-tabs-root .sg-pdp-reviews { display: block !important; padding: 0; }
.cd-pdp-tabs-root:has([data-pdp-specs-tab][hidden]) [data-pdp-panel="specs"] { display: none !important; }
.sg-pdp-acc { background: var(--sg-panel); border-radius: var(--sg-radius-card); overflow: hidden; }
.sg-pdp-acc__head {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 20px; cursor: pointer; color: var(--sg-primary); font-size: 14px; font-weight: 600;
}
.sg-pdp-acc__head::-webkit-details-marker { display: none; }
.sg-pdp-acc__head::after { content: "+"; font-size: 18px; line-height: 1; }
.sg-pdp-acc[open] > .sg-pdp-acc__head::after { content: "−"; }
.sg-pdp-acc__body { padding: 0 20px 18px; font-size: 14px; line-height: 1.8; color: var(--sg-ink); }
.sg-pdp-acc__body img { max-width: 100%; height: auto; border-radius: var(--sg-radius-card); }
.sg-pdp-reviews { background: var(--sg-page); border: 1px solid var(--sg-border); border-radius: var(--sg-radius-card); padding: 16px 20px 24px !important; }
.sg-pdp-reviews h2 { color: var(--sg-primary) !important; font-size: 14px !important; font-weight: 600 !important; }
.az-qa .card-question, .az-qa [data-question-item], .az-qa article {
  background: var(--sg-page); border-radius: var(--sg-radius-card); padding: 16px 20px; margin-bottom: 8px;
}
.sg-pdp-ask, .ab-pdp .add-review-btn {
  min-height: 40px !important; padding: 0 18px !important; font-size: 15px !important;
  border-radius: 8px !important; background: var(--sg-primary) !important; color: var(--sg-on-primary) !important;
}
.sg-pdp-ask:hover, .ab-pdp .add-review-btn:hover { background: var(--sg-primary-hover) !important; }

/* ---------- O8 side cart (Segadty reference) ---------- */
#side-cart.block-side-cart { width: min(100%, 420px) !important; background: var(--sg-page) !important; }
#side-cart .offcanvas-header {
  position: relative; justify-content: center !important; padding: 26px 16px 14px !important;
  border: 0 !important; background: var(--sg-page) !important;
}
#side-cart .offcanvas-title { margin: 0; color: var(--sg-primary) !important; font-size: 15px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; }
#side-cart .offcanvas-header .btn-close {
  position: absolute; top: 20px; inset-inline-end: 14px; width: 28px; height: 28px; border-radius: var(--sg-radius-chip);
  display: grid; place-items: center; color: var(--sg-muted); font-size: 22px; line-height: 1;
}
#side-cart .offcanvas-header .btn-close:hover { color: var(--sg-primary); background: var(--sg-primary-tint); }
#side-cart .offcanvas-body { display: flex; flex-direction: column; padding: 0 !important; background: var(--sg-page) !important; }
#side-cart .cart-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 16px; scrollbar-width: thin; scrollbar-color: var(--sg-muted) transparent; }

/* one product per row — centered stack, trash at the top end */
#side-cart .ab-line.compact {
  position: relative; display: flex !important; flex-direction: column !important; align-items: center !important;
  gap: 8px !important; padding: 14px 36px 16px !important; text-align: center;
  border: 0 !important; border-bottom: 1px solid var(--sg-border) !important; background: transparent !important; grid-template-columns: none !important;
}
#side-cart .ab-line.compact:last-child { border-bottom: 0 !important; }
#side-cart .ab-line.compact .prod { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 8px !important; width: 100%; }
#side-cart .ab-line.compact .th { width: 96px !important; height: 96px !important; flex: none; border-radius: 8px; overflow: hidden; background: var(--sg-page); }
#side-cart .ab-line.compact .th img { width: 100% !important; height: 100% !important; object-fit: contain !important; background: transparent !important; }
#side-cart .ab-line.compact .info { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; width: 100%; }
#side-cart .ab-line.compact h5 { margin: 0; font-size: 13px !important; font-weight: 500 !important; line-height: 1.5; }
#side-cart .ab-line.compact .az-cartline__title {
  color: var(--sg-ink) !important; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
#side-cart .ab-line.compact .info p { margin: 0; font-size: 11px; color: var(--sg-muted); }
#side-cart .sg-scart__price { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
#side-cart .sg-scart__price s { color: var(--sg-muted); font-size: 12px; }
#side-cart .sg-scart__price .price { color: var(--sg-sale) !important; font-size: 13px !important; font-weight: 600 !important; }
#side-cart .ab-line.compact .az-qty-cell { display: flex; flex-direction: column; align-items: center; }
#side-cart .ab-line.compact .az-qty {
  display: inline-flex !important; align-items: center; justify-content: space-between;
  width: 140px !important; height: 32px !important; padding: 0 4px; border: 0 !important;
  border-radius: var(--sg-radius-btn-lg) !important; background: var(--sg-panel) !important;
}
#side-cart .ab-line.compact .az-qty button {
  width: 30px; height: 30px; border: 0 !important; background: transparent !important;
  color: var(--sg-primary) !important; font-size: 18px; font-weight: 600; cursor: pointer;
}
#side-cart .ab-line.compact .az-qty .val { color: var(--sg-ink); font-size: 13px; font-weight: 600; }
#side-cart .ab-line.compact .az-cartline__act {
  position: absolute !important; top: 14px; inset-inline-end: 0; width: 28px !important; height: 28px !important;
  border: 0 !important; background: transparent !important; color: var(--sg-muted) !important; display: grid; place-items: center;
}
#side-cart .ab-line.compact .az-cartline__act .material-symbols-outlined { font-size: 20px; }
#side-cart .ab-line.compact .az-cartline__act:hover { color: var(--sg-error) !important; }
#side-cart .az-cart-oos { color: var(--sg-error) !important; font-size: 11px !important; }

/* footer: coupon · totals · checkout */
#side-cart .side-cart-footer { display: grid; gap: 16px; padding: 18px 16px 20px !important; background: var(--sg-page) !important; border-top: 0 !important; box-shadow: none !important; }
#side-cart .az-coupon label { display: none !important; }
#side-cart .send-coupon-form .row { display: flex !important; flex-wrap: nowrap !important; margin: 0 !important; gap: 0 !important; }
#side-cart .send-coupon {
  flex: 1 1 auto; min-width: 0; height: 44px !important; padding: 0 14px !important;
  border: 0 !important; border-radius: 0 var(--sg-radius-btn-lg) var(--sg-radius-btn-lg) 0 !important;
  background: var(--sg-panel) !important; color: var(--sg-ink); font: 500 13px var(--sg-font);
}
[dir="ltr"] #side-cart .send-coupon { border-radius: var(--sg-radius-btn-lg) 0 0 var(--sg-radius-btn-lg) !important; }
#side-cart .send-coupon::placeholder { color: var(--sg-ink-soft); }
#side-cart .send-coupon-button {
  flex: none; min-width: 96px; height: 44px !important; min-height: 44px !important;
  border-radius: var(--sg-radius-btn-lg) 0 0 var(--sg-radius-btn-lg) !important; font-size: 13px !important; font-weight: 600 !important;
}
[dir="ltr"] #side-cart .send-coupon-button { border-radius: 0 var(--sg-radius-btn-lg) var(--sg-radius-btn-lg) 0 !important; }
#side-cart .coupon-applied-section > div { border-radius: var(--sg-radius-btn-lg); background: var(--sg-primary-tint) !important; border: 0 !important; }
#side-cart [data-cart-totals-body] { display: grid; gap: 10px; }
#side-cart [data-cart-total-row] { font-size: 12px !important; color: var(--sg-ink-soft) !important; }
#side-cart [data-cart-total-row] [data-cart-total-value] { color: var(--sg-ink-soft) !important; font-weight: 500 !important; }
#side-cart [data-cart-total-row="total"] { margin-top: 6px; color: var(--sg-primary) !important; font-size: 15px !important; font-weight: 700 !important; }
#side-cart [data-cart-total-row="total"] [data-cart-total-value] { color: var(--sg-sale) !important; font-weight: 700 !important; font-size: 15px; }
#side-cart [data-cart-total-row="total"] + div { margin-top: -8px; text-align: start !important; color: var(--sg-primary) !important; font-size: 11px !important; font-weight: 600; }
#side-cart .sg-scart__checkout {
  position: relative; min-height: 58px !important; gap: 10px !important; border-radius: 8px !important;
  font-size: 15px !important; font-weight: 600 !important;
}
#side-cart .sg-scart__checkout-ico {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor;
  display: inline-grid; place-items: center; font-size: 16px !important;
}
#side-cart .ab-empty-cart { padding: 40px 10px; text-align: center; }
#side-cart .ab-empty-cart .empty-cart-title { color: var(--sg-ink); font-size: 15px; font-weight: 600; }

/* ---------- listing filter popup (Segadty) — centered, scale + fade ---------- */
.sg-fmodal__scrim { z-index: 99998 !important; }
.sg-fmodal {
  position: fixed; top: 50%; left: 50%; z-index: 99999;
  width: min(100% - 32px, 500px); max-height: min(86vh, 640px);
  display: flex; flex-direction: column;
  background: var(--sg-page) !important; border-radius: var(--sg-radius-card);
  box-shadow: 0 20px 50px var(--sg-shadow-color);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(-50%, -46%) scale(.94);
  transition: opacity .25s var(--sg-ease), transform .3s cubic-bezier(.2, .9, .3, 1.2), visibility 0s linear .3s;
}
.sg-fmodal.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity .25s var(--sg-ease), transform .3s cubic-bezier(.2, .9, .3, 1.2), visibility 0s;
}
@media (prefers-reduced-motion: reduce) { .sg-fmodal, .sg-fmodal.is-open { transition: none; } }
.sg-fmodal__close {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2;
  width: 30px; height: 30px; border: 0; border-radius: var(--sg-radius-chip);
  background: transparent; color: var(--sg-muted); display: grid; place-items: center; cursor: pointer;
}
.sg-fmodal__close:hover { color: var(--sg-primary); background: var(--sg-primary-tint); }
.sg-fmodal__body { overflow-y: auto; padding: 40px 30px 26px; scrollbar-width: thin; }
.sg-fprice__title { margin: 0 0 14px; color: var(--sg-ink); font-size: 15px; font-weight: 700; }
.sg-fprice__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
.sg-fprice__field { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--sg-ink); font-size: 13px; font-weight: 600; }
.sg-fprice__field input {
  width: 100%; height: 44px; padding: 0 14px; border: 0 !important; border-radius: var(--sg-radius-btn-lg);
  background: var(--sg-panel); color: var(--sg-ink); font: 500 14px var(--sg-font); text-align: start;
}
.sg-fprice__field input::placeholder { color: var(--sg-ink-soft); }
.sg-fprice__sale {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 24px 0 6px;
  color: var(--sg-ink); font-size: 13px; cursor: pointer;
}
.sg-fprice__sale input { width: 18px; height: 18px; accent-color: var(--sg-primary); }
.sg-fmodal .cd-fg { margin-top: 14px; border-top: 1px solid var(--sg-border); border-bottom: 0; }
.sg-fmodal__actions { display: flex; justify-content: center; gap: 22px; margin-top: 28px; }
.sg-fmodal__actions .ab-btn { min-width: 96px; min-height: 40px !important; padding: 0 22px !important; border-radius: var(--sg-radius-btn-lg) !important; font-size: 13px !important; font-weight: 600 !important; }

/* side cart checkout — tighter, rounder */
#side-cart .sg-scart__checkout { min-height: 46px !important; padding: 0 18px !important; border-radius: var(--sg-radius-card) !important; }

/* ---------- PDP top (segadty.com measurements) ---------- */
.ab-buybox [data-product-info] { gap: 0 !important; }
.sg-pdp-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 0 0 22px; }
.sg-pdp-rating { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.sg-pdp-rating__star { color: var(--sg-star); font-size: 20px; line-height: 1; }
.sg-pdp-rating__avg { color: var(--sg-primary); font-size: 13px; font-weight: 800; }
.sg-pdp-rating__count { color: color-mix(in srgb, var(--sg-muted) 85%, var(--sg-ink)); font-size: 10px; font-weight: 600; }
.sg-pdp-rec { display: inline-flex; align-items: center; gap: 5px; color: color-mix(in srgb, var(--sg-muted) 85%, var(--sg-ink)); font-size: 10px; font-weight: 600; }
.sg-pdp-rec b { color: var(--sg-primary); font-size: 13px; font-weight: 800; }
.sg-pdp-rec__ico { font-size: 15px; }
.sg-pdp-stock { margin-inline-start: auto; }
.sg-pdp-stock .product-stock-status { padding: 3px 8px; font-size: 12px; font-weight: 500; color: var(--sg-primary) !important; background: transparent; }
.sg-pdp-stock .product-stock-status--unavailable { color: var(--sg-sale) !important; }

.ab-pdp .ab-buybox .ttl, .ab-pdp h1.title-product {
  margin: 0 0 10px !important; color: var(--sg-primary) !important;
  font-size: 25px !important; font-weight: 500 !important; line-height: 1.5 !important;
}
@media (max-width: 640px) { .ab-pdp .ab-buybox .ttl, .ab-pdp h1.title-product { font-size: 20px !important; } }
.ab-pdp .sg-pdp-desc { margin: 5px 0 15px; font-size: 12px; font-weight: 500; line-height: 18px; color: var(--sg-ink); }
.ab-pdp .sg-pdp-desc p { margin: 6px 0; }
.ab-pdp .sg-pdp-desc strong, .ab-pdp .sg-pdp-desc b { font-weight: 700; }

.ab-buybox .pr, .ab-pdp [data-product-info] .pr { margin: 0 0 6px !important; gap: 8px !important; align-items: center; }
.ab-buybox .pr s, .ab-pdp [data-product-sale-price] {
  color: var(--sg-muted) !important; font-size: 15px !important; font-weight: 500 !important;
  text-decoration: line-through; text-decoration-color: var(--sg-muted);
}
.ab-buybox .pr b, .ab-pdp [data-product-price] { font-size: 16px !important; font-weight: 500 !important; color: var(--sg-primary); }
.ab-buybox .pr .sale, .ab-pdp [data-product-price].sale { color: var(--sg-sale) !important; }
.ab-pdp .ab-pdp-disc[data-product-discount-badge] {
  background: color-mix(in srgb, var(--sg-sale) 5%, transparent) !important; color: var(--sg-sale) !important;
  border-radius: var(--sg-radius-chip) !important; padding: 2px 6px !important; font-size: 12px !important; font-weight: 600 !important;
}
.ab-pdp .ab-pdp-disc.hidden { display: none !important; }

.sg-pdp-sold {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 3px; margin: 14px 0 10px; padding: 4px 6px;
  border: 1px dashed var(--sg-success); border-radius: var(--sg-radius-control); background: var(--sg-page);
  color: var(--sg-success); font-size: 14px; font-weight: 500; line-height: 1.5;
}
.sg-pdp-sold b { font-weight: 800; }
.sg-pdp-sold__ico { display: inline-flex; }

/* options */
.ab-pdp [data-variant-option-group] > legend, .ab-pdp legend, .ab-pdp .variant-label { font-size: 17px !important; font-weight: 500 !important; color: var(--sg-ink) !important; margin-bottom: 10px; }
.ab-pdp [data-variant-selection-container] { margin-top: 20px; }

/* main ATC = filled (reference) */
.ab-pdp [data-in-stock-form] .btn-add-to-cart { background: var(--sg-primary) !important; color: var(--sg-on-primary) !important; border-color: var(--sg-primary) !important; }
.ab-pdp [data-in-stock-form] .btn-add-to-cart:hover { background: var(--sg-primary-hover) !important; }

/* sticky bar — all breakpoints */
.ab-pdp .sticky-cart.sg-sticky, .sticky-cart.sg-sticky {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 900; display: none !important;
  padding: 10px 10px 20px; background: var(--sg-page); border: 0;
  border-radius: var(--sg-radius-card) var(--sg-radius-card) 0 0;
  box-shadow: 0 -4px 20px var(--sg-shadow-color);
}
.ab-pdp .sticky-cart.sg-sticky.is-visible, .sticky-cart.sg-sticky.is-visible { display: block !important; }
.sg-sticky__in { display: flex; align-items: center; gap: 10px; max-width: var(--sg-max); margin: 0 auto; }
.sg-sticky__price { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 50px; color: var(--sg-primary); font-size: 17px; font-weight: 500; }
.sg-sticky .sticky-cart__btn { flex: 1 1 0; width: auto !important; min-height: 50px !important; border-radius: var(--sg-radius-btn-lg) !important; font-size: 18px !important; font-weight: 500 !important; }
.sg-sticky .btn-add-to-cart { background: var(--sg-primary) !important; color: var(--sg-on-primary) !important; border-color: var(--sg-primary) !important; }
.sg-sticky__in:not(.only-btn) .sg-sticky__price { flex: 0 0 auto; padding-inline: 8px; }
body.has-sg-sticky { padding-bottom: 80px; }
body.has-sg-sticky .ftr-backtop { inset-block-end: 100px; }

/* ---------- PDP lower half (Segadty reference) ---------- */
/* option labels: name only; unavailable choice = faded + X */
.ab-pdp .ab-vlabel { font-size: 17px; font-weight: 500; color: var(--sg-ink); }
.ab-pdp .ab-vlabel span { display: none; }
.ab-pdp .ab-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-pdp [data-variant-choice].is-oos { position: relative; overflow: hidden; opacity: .15 !important; }
.ab-pdp [data-variant-choice].is-oos::before, .ab-pdp [data-variant-choice].is-oos::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 1.5px; background: var(--sg-on-primary);
  transform: translate(-50%, -50%) rotate(35deg); pointer-events: none;
}
.ab-pdp [data-variant-choice].is-oos::after { transform: translate(-50%, -50%) rotate(-35deg); }
.ab-pdp [data-variant-choice].is-oos[aria-pressed="true"] { opacity: .45 !important; }

/* loyalty row + Tabby / Tamara cards */
.ab-pdp .ab-pdp-payw {
  display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0 6px; width: 100%;
}
.ab-pdp .ab-pdp-payw .loyalty-points-payment {
  grid-column: 1 / -1; display: flex !important; align-items: center; justify-content: space-between; width: 100% !important;
  min-height: 52px; padding: 0 0 0 0 !important; padding-inline-start: 14px !important; overflow: hidden;
  border: 0 !important; border-radius: var(--sg-radius-card) !important; background: var(--sg-panel) !important;
  color: var(--sg-ink) !important; font-size: 13px;
}
.ab-pdp .ab-pdp-payw .loyalty-points-payment .ab-pdp-payw__lead {
  order: 2; align-self: stretch; display: inline-flex; flex-direction: row; align-items: center; gap: 8px; padding-inline: 10px;
  color: var(--sg-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px;
}
.ab-pdp .ab-pdp-payw .loyalty-points-payment .ab-pdp-payw__lead img {
  width: 46px; height: 52px; padding: 13px; margin-inline-end: -10px; order: 2; background: var(--sg-primary); box-sizing: border-box;
}
.ab-pdp .ab-pdp-payw .loyalty-points-payment .ab-pdp-payw__chev { display: none; }
.ab-pdp .ab-pdp-payw .tabby-payment, .ab-pdp .ab-pdp-payw .tamara-payment {
  display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100% !important; min-height: 64px;
  border: 1px solid var(--sg-border-strong) !important; border-radius: var(--sg-radius-control) !important; background: var(--sg-page) !important;
}
.ab-pdp .ab-pdp-payw__logo { height: 22px; width: auto; }

/* qty + add to cart */
.ab-pdp [data-in-stock-form] .az-qty, .ab-pdp [data-in-stock-form] [data-quantity-counter] {
  display: flex !important; align-items: center; justify-content: space-between; width: 100% !important; height: 45px !important;
  border: 0 !important; border-radius: var(--sg-radius-btn-lg) !important; background: var(--sg-page) !important;
}
.ab-pdp [data-in-stock-form] .az-qty-cell { width: 100%; }
.ab-pdp [data-in-stock-form] [data-quantity-counter] button { width: 40px; height: 45px; border: 0 !important; background: transparent !important; color: var(--sg-primary) !important; font-size: 22px; }
.ab-pdp [data-in-stock-form] [data-quantity-counter] [data-quantity-value], .ab-pdp #product-quantity { color: var(--sg-primary); font-size: 15px; font-weight: 500; }
.ab-pdp [data-in-stock-form] .btn-add-to-cart { width: 100% !important; min-height: 46px !important; font-size: 18px !important; font-weight: 600 !important; border-radius: var(--sg-radius-btn-lg) !important; }

/* details block full width */
.sg-pdp-details { width: 100%; max-width: 920px; margin: 32px auto 0; }
.sg-pdp-details .cd-pdp-tabs-root { margin-top: 0; }
.sg-pdp-acc[data-pdp-panel="description"] .sg-pdp-acc__body { color: var(--sg-ink-soft); font-size: 14px; line-height: 1.9; }
.sg-pdp-acc[data-pdp-panel="description"] .sg-pdp-acc__body strong, .sg-pdp-acc[data-pdp-panel="description"] .sg-pdp-acc__body b { color: var(--sg-ink); }
.sg-pdp-acc[data-pdp-panel="description"] .sg-pdp-acc__head { padding: 24px 30px 14px; }
.sg-pdp-acc[data-pdp-panel="description"] .sg-pdp-acc__body { padding: 0 30px 26px; }

/* questions: plain section, centered empty + CTA */
.sg-pdp-acc[data-pdp-panel="questions"] { background: transparent; border-radius: 0; }
.sg-pdp-acc[data-pdp-panel="questions"] .sg-pdp-acc__head { padding: 12px 0; }
.sg-pdp-acc[data-pdp-panel="questions"] .sg-pdp-acc__body { padding: 0; }
.sg-q__empty { padding: 24px 0 10px; text-align: center; color: var(--sg-ink); font-size: 14px; }
.sg-q__ask { display: flex; justify-content: center; margin: 26px 0 8px; }
.sg-pdp-ask { min-height: 44px !important; padding: 0 22px !important; font-size: 16px !important; font-weight: 700 !important; border-radius: 8px !important; }

/* reviews summary */
.sg-pdp-reviews { border: 0 !important; padding: 0 !important; background: transparent !important; }
.sg-rev { display: block !important; }
.sg-rev__title { margin: 24px 0 30px !important; text-align: center; color: var(--sg-primary) !important; font-size: 14px !important; font-weight: 700 !important; }
.sg-rev__aside { display: flex !important; flex-wrap: wrap; align-items: center; gap: 20px 48px; }
.sg-rev__score { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; min-width: 120px; }
.sg-rev__avg { color: var(--sg-primary); font-size: 48px; font-weight: 800; line-height: 1; }
.sg-rev__based { color: var(--sg-muted); font-size: 10px; font-weight: 600; }
.sg-rev__aside .az-hist { flex: 1 1 320px; display: grid !important; gap: 10px; }
.sg-hist-row { display: grid !important; grid-template-columns: 14px minmax(0, 1fr) 56px; align-items: center; gap: 10px; }
.sg-hist-row__n { color: var(--sg-ink); font-size: 14px; text-align: center; }
.sg-hist-row .track { display: block; height: 9px; border-radius: var(--sg-radius-pill); background: color-mix(in srgb, var(--sg-star) 16%, var(--sg-page)); overflow: hidden; width: 100% !important; }
.sg-hist-row .fill { display: block; height: 100%; border-radius: var(--sg-radius-pill); background: var(--sg-star); }
.sg-hist-row__c { color: var(--sg-primary); font-size: 10px; white-space: nowrap; }
.sg-hist-row__c b { font-weight: 700; }
.sg-rev__write { flex: 1 0 100%; display: flex; justify-content: center; padding-top: 6px; border: 0 !important; }
.sg-rev__write .add-review-btn { width: auto !important; }
.sg-rev__list-title { margin: 34px 0 16px; text-align: center; color: var(--sg-primary); font-size: 14px; font-weight: 700; }
.sg-rev #reviews-list { width: 100%; }

/* review cards */
.sg-rev .az-rev, .sg-rev .card-review {
  margin: 0 0 8px; padding: 14px 20px 16px; border: 0 !important; border-radius: var(--sg-radius-card);
  background: var(--sg-panel); box-shadow: none;
}
.sg-rcard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.sg-rcard__name { display: inline-flex; align-items: center; gap: 5px; color: var(--sg-ink); font-size: 12px; font-weight: 700; }
.sg-rcard__ok { color: var(--sg-success); flex: none; }
.sg-rcard__date { color: var(--sg-muted); font-size: 10px; white-space: nowrap; }
.sg-rev .card-review .user-review-text { margin-top: 8px; color: var(--sg-ink-soft); font-size: 12px; line-height: 1.8; }
.sg-rev .card-review .review-images-container img { width: 52px !important; height: 52px !important; border-radius: var(--sg-radius-chip) !important; border: 0 !important; }
.sg-rev .review-reply-card { background: var(--sg-page) !important; border-radius: var(--sg-radius-btn-lg) !important; }
.sg-rev .ab-pdp-reviews-more { width: auto !important; margin: 6px auto 0; display: flex !important; }

/* review dialog = reference «أضف تقييمك» panel */
.add-review-modal-overlay .az-dialog { background: var(--sg-panel) !important; border-radius: var(--sg-radius-card) !important; max-width: 760px !important; width: min(100% - 32px, 760px) !important; }
.add-review-modal-overlay .az-dialog__head { justify-content: center; border: 0 !important; position: relative; }
.add-review-modal-overlay .az-dialog__title { color: var(--sg-primary) !important; font-size: 14px !important; font-weight: 700 !important; text-align: center; }
.add-review-modal-overlay .az-dialog__close { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); }
.add-review-modal-overlay .az-dialog__body { align-items: center; text-align: center; gap: 16px; padding-inline: 40px; }
.add-review-modal-overlay .az-field__label { display: none; }
.add-review-modal-overlay .rating-stars-group { justify-content: center !important; }
.add-review-modal-overlay .rating-stars-group span { font-size: 34px !important; }
.add-review-modal-overlay textarea {
  width: 100%; min-height: 96px; border: 0 !important; border-radius: 8px !important; padding: 10px 12px !important;
  background: color-mix(in srgb, var(--sg-page) 60%, var(--sg-panel)) !important; font-size: 13px;
}
.add-review-modal-overlay .az-field { width: 100%; }
.add-review-modal-overlay .az-dialog__foot { justify-content: center; border: 0 !important; }
.add-review-modal-overlay .az-dialog__foot label[for="add-review-modal"] { display: none !important; }
.add-review-modal-overlay [data-review-submit] { flex: none !important; min-width: 80px; min-height: 36px !important; padding: 0 18px !important; border-radius: var(--sg-radius-control) !important; background: var(--sg-primary) !important; color: var(--sg-on-primary) !important; font-size: 13px !important; }

/* PDP meta (reference): stacked rating + recommend · stock with status dot · share on the image */
.sg-pdp-meta { align-items: flex-start; }
.sg-pdp-score { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sg-pdp-rec__ico { color: var(--sg-success); flex: none; }
.sg-pdp-stock { align-self: center; }
.sg-pdp-stock .product-stock-status {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px !important;
  color: var(--sg-ink) !important; font-size: 12px !important; font-weight: 500 !important;
}
.sg-pdp-stock .product-stock-status::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--sg-success);
}
.sg-pdp-stock .product-stock-status--unavailable::before { background: var(--sg-sale); }
.sg-pdp-stock .product-stock-status--preorder::before { background: var(--sg-star); }

.ab-pdp-grid > .min-w-0:first-child { position: relative; }
.sg-share { position: absolute; top: 0; inset-inline-start: 0; z-index: 6; }
.sg-share__btn {
  width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--sg-radius-control);
  background: transparent; color: var(--sg-ink); cursor: pointer; transition: background var(--sg-duration) var(--sg-ease);
}
.sg-share__btn:hover, .sg-share__btn[aria-expanded="true"] { background: var(--sg-primary-tint); color: var(--sg-primary); }
.sg-share__pop {
  position: absolute; top: 46px; inset-inline-start: 0; display: flex !important; align-items: center; gap: 8px;
  padding: 10px 12px; background: var(--sg-page); border-radius: var(--sg-radius-card); box-shadow: var(--sg-shadow); white-space: nowrap;
}
.sg-share__pop[hidden] { display: none !important; }
.sg-share__pop .ab-pdp-share__label { color: var(--sg-ink); font-size: 12px; font-weight: 600; margin-inline-end: 4px; }
.sg-share__pop .ab-pdp-share__btn {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: var(--sg-primary-tint); color: var(--sg-primary); text-decoration: none;
}
.sg-share__pop .ab-pdp-share__btn:hover { background: var(--sg-primary); color: var(--sg-on-primary); }
.sg-share__pop.ab-pdp-share { margin: 0 !important; flex-wrap: nowrap !important; }

/* stock status (reference): primary text + pulsing status dot with a soft halo */
.sg-pdp-stock .product-stock-status { color: var(--sg-primary) !important; font-weight: 600 !important; gap: 8px; }
.sg-pdp-stock .product-stock-status::before {
  --sg-dot: var(--sg-success);
  width: 10px; height: 10px; background: var(--sg-dot);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sg-dot) 30%, transparent);
  animation: sg-dot-pulse 1.6s ease-out infinite;
}
.sg-pdp-stock .product-stock-status--unavailable::before { --sg-dot: var(--sg-sale); animation: none; }
.sg-pdp-stock .product-stock-status--preorder::before { --sg-dot: var(--sg-star); }
@keyframes sg-dot-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sg-dot) 55%, transparent); }
  70% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--sg-dot) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sg-dot) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .sg-pdp-stock .product-stock-status::before { animation: none; } }

/* sticky ATC above gallery / related rails (Swiper slides create their own stacking) */
.ab-pdp .sticky-cart.sg-sticky, .sticky-cart.sg-sticky { z-index: 9000 !important; isolation: isolate; }

/* loyalty row (reference): «+ N احصل على نقاط ولاء مع هذا الشراء» · «المكافآت» + primary tile */
.ab-pdp .ab-pdp-payw .sg-loyalty {
  grid-column: 1 / -1; display: flex; align-items: stretch; justify-content: space-between; gap: 10px;
  min-height: 52px; overflow: hidden; border-radius: var(--sg-radius-card); background: var(--sg-panel);
}
.ab-pdp .sg-loyalty .ab-pdp-loyalty-src, .ab-pdp .sg-loyalty .ab-pdp-loyalty-src > *:not(.loyalty-rewards-popup) {
  position: static; width: auto; height: auto; overflow: visible; clip: auto;
}
.ab-pdp .sg-loyalty__info { display: flex; align-items: center; min-width: 0; padding-inline-start: 14px; }
.ab-pdp .sg-loyalty .loyalty-points-products-section { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--sg-ink); font-size: 12px; font-weight: 500; }
.ab-pdp .sg-loyalty .loyalty-points-products-section > p { margin: 0; }
.ab-pdp .sg-loyalty .loyalty-points__points-text { font-size: 13px; font-weight: 700; color: var(--sg-ink); }
.ab-pdp .sg-loyalty .loyalty-points-products-section .loyalty-points-rewards { display: none !important; }
.ab-pdp .ab-pdp-payw .sg-loyalty .sg-loyalty__btn {
  grid-column: auto; flex: none; display: flex !important; align-items: center; gap: 12px; width: auto !important; min-height: 0;
  padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; cursor: pointer;
}
.ab-pdp .sg-loyalty__label { color: var(--sg-ink); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.ab-pdp .sg-loyalty__tile { align-self: stretch; width: 46px; display: grid; place-items: center; background: var(--sg-primary); }

/* in-stock dot uses its own token (Theme Editor «لون نقطة المنتج متوفر», default #28a745) */
.sg-pdp-stock .product-stock-status--available:not(.product-stock-status--preorder)::before { --sg-dot: var(--sg-stock); }
.sg-pdp-norev { color: var(--sg-ink); font-size: 12px; font-weight: 500; align-self: center; }

/* PDP: discount badges hidden (design request) — price chip + gallery sale badge */
.ab-pdp .ab-pdp-disc, .ab-pdp .ab-pdp-badge--sale { display: none !important; }

/* inline «أضف تقييمك» (reference) */
.sg-rev__write { display: block !important; }
.sg-rform {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  width: 100%; max-width: 920px; margin: 10px auto 0; padding: 26px 24px 28px;
  background: var(--sg-panel); border-radius: var(--sg-radius-card); box-shadow: none;
}
.sg-rform__title { margin: 0; color: var(--sg-primary); font-size: 14px; font-weight: 700; }
.sg-rform__stars { display: flex; flex-direction: row-reverse; justify-content: center; gap: 6px; }
[dir="ltr"] .sg-rform__stars { flex-direction: row-reverse; }
.sg-rform__star { display: block; font-size: 32px; line-height: 1; color: var(--sg-star-off); transition: color var(--sg-duration) var(--sg-ease); }
.sg-rform__stars label:hover .sg-rform__star, .sg-rform__stars label:hover ~ label .sg-rform__star,
.sg-rform__stars label:has(.rating-star-radio:checked) .sg-rform__star,
.sg-rform__stars label:has(.rating-star-radio:checked) ~ label .sg-rform__star { color: var(--sg-star); }
.sg-rform__anon { display: inline-flex; align-items: center; gap: 8px; color: var(--sg-muted); font-size: 11px; cursor: pointer; }
.sg-rform__anon input { width: 16px; height: 16px; accent-color: var(--sg-primary); }
.sg-rform__text {
  width: 100%; max-width: 710px; min-height: 96px; padding: 12px 14px; resize: vertical;
  border: 0 !important; border-radius: 8px; background: color-mix(in srgb, var(--sg-panel) 25%, var(--sg-page));
  color: var(--sg-ink); font: 500 13px var(--sg-font);
}
.sg-rform__text::placeholder { color: var(--sg-ink-soft); }
.sg-rform__attach { border: 0; background: transparent; padding: 0; color: var(--sg-primary); font: 500 14px var(--sg-font); cursor: pointer; }
.sg-rform__attach:hover { text-decoration: underline; text-underline-offset: 4px; }
.sg-rform__imgs { display: flex; justify-content: center; gap: 10px; }
.sg-rform__imgs[hidden] { display: none !important; }
.sg-rform__slot { position: relative; width: 76px; height: 76px; }
.sg-rform__slot-in {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; cursor: pointer;
  border: 1px dashed var(--sg-border-strong); border-radius: var(--sg-radius-btn-lg); background: var(--sg-panel); color: var(--sg-muted);
}
.sg-rform__slot-in input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sg-rform__slot-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sg-rform__rm {
  position: absolute; top: -6px; inset-inline-end: -6px; width: 20px; height: 20px; border: 0; border-radius: 50%;
  background: var(--sg-sale); color: var(--sg-on-primary); font-size: 13px; line-height: 1; cursor: pointer;
}
.sg-rform__msg { margin: 0; color: var(--sg-sale); font-size: 12px; font-weight: 600; }
.sg-rform__msg:empty { display: none; }
.sg-rform__send {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
  min-width: 80px; min-height: 36px !important; padding: 0 20px !important; border: 0 !important;
  border-radius: var(--sg-radius-control) !important; background: var(--sg-primary) !important; color: var(--sg-on-primary) !important;
  font-size: 13px !important; font-weight: 700 !important; cursor: pointer;
}
.sg-rform__send:hover { background: var(--sg-primary-hover) !important; }

/* every rating star uses the fixed star color */
.az-stars .az-star--full, .az-stars .on, .az-star:not(.az-star--empty) path[fill="currentColor"],
.cd-stars > span:not(.off), .ab-card .cd-stars > span:not(.off) { color: var(--sg-star); }
.az-stars .az-star--empty, .az-stars .off, .cd-stars > .off { color: var(--sg-star-off); }

/* recommend row: thumbs-up = star size (20px), same column so it sits right under the star */
.sg-pdp-rating, .sg-pdp-rec { gap: 6px; }
.sg-pdp-rating__star { width: 20px; height: 20px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.sg-pdp-rec__ico { width: 20px; height: 20px; flex: none; color: var(--sg-rec) !important; }

/* review cards — segadty.com measurements (.card-review) */
.sg-rev__list-title { display: flex; align-items: center; justify-content: center; gap: 8px; }
.sg-rev__list-ico { color: var(--sg-ink); flex: none; }
.sg-rev .az-rev, .sg-rev .card-review { margin: 8px 0 !important; padding: 15px !important; border-radius: 8px !important; background: var(--sg-panel) !important; }
.sg-rcard__head { margin-bottom: 0; }
.sg-rcard__name { gap: 5px; margin: 0 2px 5px; color: color-mix(in srgb, var(--sg-ink) 80%, var(--sg-page)); font-size: 11px; font-weight: 500; }
.sg-rcard__ok { width: 14px; height: 14px; color: var(--sg-rec); }
.sg-rcard__date { margin: 2px 0 0 6px; color: color-mix(in srgb, var(--sg-muted) 65%, var(--sg-page)); font-size: 9px; font-weight: 500; }
.sg-rev .card-review .az-stars { display: inline-flex; gap: 2px; margin-inline-start: 2px; }
.sg-rev .card-review .az-stars .az-star { width: 12px !important; height: 12px !important; flex-basis: 12px !important; max-width: 12px !important; }
.sg-rev .card-review .user-review-text { margin: 16px 5px 0 0 !important; color: var(--sg-muted) !important; font-size: 11px !important; line-height: 1.5 !important; text-align: justify; }

/* variant chips — reference sizes; unavailable ([data-variant-oos]) = pale chip + grey X */
.ab-pdp .ab-sizes { gap: 10px !important; align-items: center; }
.ab-pdp [data-variant-choice][data-variant-kind="text"] {
  height: auto !important; min-height: 30px !important; min-width: 0 !important; padding: 5px 10px !important;
  border: 0 !important; border-radius: var(--sg-radius-chip) !important;
  background: var(--sg-primary) !important; color: var(--sg-on-primary) !important;
  font-size: 13px !important; font-weight: 600 !important; line-height: 1.5 !important; letter-spacing: 0 !important;
  opacity: .35;
}
.ab-pdp [data-variant-choice][data-variant-kind="text"][aria-pressed="true"],
.ab-pdp [data-variant-choice][data-variant-kind="text"].on {
  min-height: 38px !important; padding: 8px 12px !important; font-size: 15px !important; font-weight: 700 !important; opacity: 1;
}
.ab-pdp [data-variant-choice][data-variant-oos] {
  position: relative; overflow: hidden; opacity: 1 !important;
  background: color-mix(in srgb, var(--sg-primary) 9%, var(--sg-page)) !important; color: var(--sg-page) !important;
}
.ab-pdp [data-variant-choice][data-variant-oos]::before, .ab-pdp [data-variant-choice][data-variant-oos]::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 26px; height: 1.5px; pointer-events: none;
  background: color-mix(in srgb, var(--sg-muted) 75%, var(--sg-page)); transform: translate(-50%, -50%) rotate(40deg);
}
.ab-pdp [data-variant-choice][data-variant-oos]::after { transform: translate(-50%, -50%) rotate(-40deg); }
.ab-pdp [data-variant-choice][data-variant-oos][aria-pressed="true"] { background: color-mix(in srgb, var(--sg-primary) 22%, var(--sg-page)) !important; }

/* reviews list = same width as the «أضف تقييمك» box */
.ab-pdp .az-reviews.sg-rev > #reviews-list, .sg-rev #reviews-list, .sg-rev__list-title { width: 100% !important; max-width: 920px !important; margin-inline: auto !important; }

/* ---------- PDP gallery slider (2+ media): one image at a time, dots below (reference) ---------- */
.ab-pdp-gal.sg-gal--slider .product-gallery-main { overflow: hidden !important; border-radius: var(--sg-radius-card); }
.ab-pdp-gal.sg-gal--slider .product-gallery-main .swiper-wrapper {
  display: flex !important; grid-template-columns: none; gap: 0 !important; height: auto !important;
}
.ab-pdp-gal.sg-gal--slider .product-gallery-main .swiper-slide { flex-shrink: 0; width: 100% !important; }
.ab-pdp-gal.sg-gal--slider .product-gallery-main a,
.ab-pdp-gal.sg-gal--slider .product-gallery-main [data-video-slide-container] { aspect-ratio: 1; min-height: 0; border-radius: var(--sg-radius-card); }
.ab-pdp-gal.sg-gal--slider .product-gallery-main img { object-fit: contain; }
.sg-gal__dots {
  position: static !important; display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100% !important; margin-top: 16px; min-height: 12px;
}
.sg-gal__dots .swiper-pagination-bullet {
  width: 4px; height: 4px; margin: 0 !important; opacity: 1; border-radius: 50%;
  background: var(--sg-border-strong); transition: width var(--sg-duration) var(--sg-ease), height var(--sg-duration) var(--sg-ease), background var(--sg-duration) var(--sg-ease);
}
.sg-gal__dots .swiper-pagination-bullet-active { width: 8px; height: 8px; background: var(--sg-primary); }

/* regular (no discount) price = fixed #ff5f5f on the PDP and the card (design request); sale prices keep --sg-sale */
:root { --sg-price-regular: #ff5f5f; }
.ab-buybox .pr b:not(.sale), .ab-pdp [data-product-price]:not(.sale) { color: var(--sg-price-regular) !important; }
.ab-card .price:not(.is-sale) b { color: var(--sg-price-regular) !important; }

/* ---------- PhotoSwipe lightbox (reference): white page, photo centered, prev · close · next as black circles at the bottom ---------- */
.pswp { --pswp-bg: var(--sg-page); --pswp-icon-color: var(--sg-on-primary); --pswp-icon-color-secondary: transparent; }
.pswp__bg { opacity: 1 !important; }
.pswp__counter, .pswp__button--zoom { display: none !important; }
.pswp__button--close, .pswp__button--arrow {
  position: fixed !important; top: auto !important; bottom: 44px; margin: 0 !important;
  display: grid !important; place-items: center; visibility: visible !important; opacity: 1 !important;
  width: 42px !important; height: 42px !important; padding: 0 !important; border-radius: 50%;
  background: var(--sg-ink) !important; color: var(--sg-on-primary); cursor: pointer;
  transition: transform var(--sg-duration) var(--sg-ease);
}
.pswp__button--close { width: 52px !important; height: 52px !important; bottom: 39px; left: 50% !important; right: auto !important; transform: translateX(-50%); }
.pswp__button--arrow--prev { left: calc(50% - 82px) !important; right: auto !important; }
.pswp__button--arrow--next { left: calc(50% + 40px) !important; right: auto !important; }
.pswp__button--close:hover { transform: translateX(-50%) scale(1.06); }
.pswp__button--arrow:hover { transform: scale(1.08); }
.pswp__button--close .pswp__icn, .pswp__button--arrow .pswp__icn {
  position: static !important; inset: auto !important; transform: none !important; margin: 0 !important;
  width: 18px; height: 18px; color: var(--sg-on-primary);
}
.pswp__button--close .pswp__icn { width: 20px; height: 20px; }
.pswp--one-slide .pswp__button--arrow { display: none !important; }
.pswp__button--arrow:disabled { opacity: .35 !important; cursor: default; }
/* lightbox hard overrides: PhotoSwipe's own .pswp__icn fill/stroke would turn the stroke icons into blobs; backdrop always white */
.pswp .pswp__bg { background: #fff !important; opacity: 1 !important; }
.pswp .pswp__button .pswp__icn { fill: none !important; stroke: none !important; overflow: visible !important; }
.pswp .pswp__button .pswp__icn path { fill: none !important; stroke: #fff !important; }
.pswp .pswp__button--close, .pswp .pswp__button--arrow { background: #111 !important; }
.pswp .pswp__button .pswp__icn-shadow { display: none !important; }
.pswp .pswp__preloader { display: none !important; }
/* lightbox icons drawn by the theme (masked ::before) — PhotoSwipe's own .pswp__icn sizing/offsets kept breaking them */
.pswp .pswp__button .pswp__icn { display: none !important; }
.pswp .pswp__button--close::before, .pswp .pswp__button--arrow::before {
  content: ""; display: block; width: 16px; height: 16px; background: #fff;
  -webkit-mask: var(--sg-pswp-ico) center / contain no-repeat; mask: var(--sg-pswp-ico) center / contain no-repeat;
}
.pswp .pswp__button--close::before { width: 18px; height: 18px; }
.pswp .pswp__button--arrow--prev { --sg-pswp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 4l-8 8 8 8' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pswp .pswp__button--arrow--next { --sg-pswp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4l8 8-8 8' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.pswp .pswp__button--close { --sg-pswp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5l14 14M19 5L5 19' fill='none' stroke='%23000' stroke-width='3.6' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* ---------- categories page (reference): 2 tiles per row, square rounded image, name below; subcategory dropdown ---------- */
.sg-cats__title { margin: 8px 0 26px; text-align: center; color: var(--sg-muted); font-size: 15px; font-weight: 700; }
.sg-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; padding-bottom: 40px; }
.sg-cat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.sg-cat__media {
  display: block; width: 100%; max-width: 272px; aspect-ratio: 1; overflow: hidden;
  border-radius: 24px; background: var(--sg-primary);
}
.sg-cat__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--sg-ease); }
.sg-cat__media:hover img { transform: scale(1.04); }
.sg-cat__name {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 0; border: 0; background: transparent;
  color: var(--sg-primary); font: 600 13px var(--sg-font); text-align: center; text-decoration: none; cursor: pointer;
}
.sg-cat__name:hover { text-decoration: underline; text-underline-offset: 4px; }
.sg-cat__chev { flex: none; transition: transform var(--sg-duration) var(--sg-ease); }
.sg-cat__toggle[aria-expanded="true"] .sg-cat__chev { transform: rotate(180deg); }
/* dropdown — basic shell until the subcategory design arrives */
.sg-cat__subs {
  position: absolute; top: 100%; z-index: 20; width: min(100%, 272px); margin: 6px 0 0; padding: 8px 0; list-style: none;
  background: var(--sg-page); border-radius: var(--sg-radius-card); box-shadow: 0 8px 24px color-mix(in srgb, var(--sg-ink) 14%, transparent);
}
.sg-cat__subs[hidden] { display: none !important; }
.sg-cat__subs a { display: block; padding: 8px 16px; color: var(--sg-ink); font-size: 13px; font-weight: 500; text-decoration: none; }
.sg-cat__subs a:hover { background: var(--sg-panel); color: var(--sg-primary); }
@media (max-width: 640px) {
  .sg-cats { gap: 20px 12px; }
  .sg-cat__media { border-radius: 16px; }
  .sg-cat__name { font-size: 12px; }
}

/* ---------- category page: subcategory tiles (reference) — centered grid, up to 8 per row ---------- */
.sg-tiles.sg-tiles--grid {
  display: grid; grid-template-columns: repeat(auto-fit, 115px); justify-content: center; gap: 22px 16px;
  max-width: calc(8 * 115px + 7 * 16px); margin: 8px auto 26px; padding: 4px 0; overflow: visible;
}
.sg-tiles--grid .sg-tile { flex: none; width: 115px; gap: 8px; }
.sg-tiles--grid .sg-tile__well {
  width: 115px; height: 115px; border-radius: 16px; border: 2px solid var(--sg-accent);
  background: var(--sg-primary); transition: transform var(--sg-duration) var(--sg-ease), box-shadow var(--sg-duration) var(--sg-ease);
}
.sg-tiles--grid .sg-tile:hover .sg-tile__well { transform: translateY(-2px); box-shadow: 0 6px 16px color-mix(in srgb, var(--sg-ink) 14%, transparent); }
.sg-tiles--grid .sg-tile__ini { color: var(--sg-on-primary); }
.sg-tiles--grid .sg-tile__name { color: var(--sg-primary); font-size: 13px; font-weight: 700; line-height: 1.45; }
@media (max-width: 640px) {
  .sg-tiles.sg-tiles--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 10px; max-width: none; }
  .sg-tiles--grid .sg-tile { width: auto; min-width: 0; }
  .sg-tiles--grid .sg-tile__well { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; }
  .sg-tiles--grid .sg-tile__name { font-size: 11px; }
}

/* ---------- category page head (reference): no banner/breadcrumb — centered grey title + description ---------- */
.sg-cat-head { margin: 6px auto 26px; max-width: 1240px; text-align: center; }
.sg-cat-head__title { margin: 0 0 14px; color: var(--sg-muted); font-size: 20px; font-weight: 600; line-height: 1.5; }
.sg-cat-head__desc { margin: 0; color: var(--sg-ink); font-size: 14px; font-weight: 600; line-height: 2; }
@media (max-width: 640px) {
  .sg-cat-head__title { font-size: 17px; margin-bottom: 10px; }
  .sg-cat-head__desc { font-size: 12.5px; line-height: 1.9; }
}

/* burger (header · dock): on hover the three lines grow to the same length (22 / 27 / 17 → 27) */
.burger path { transform-box: fill-box; transform-origin: left center; transition: transform var(--sg-duration) var(--sg-ease); }
:hover > .burger path:nth-child(1), :hover > * > .burger path:nth-child(1), .burger:hover path:nth-child(1) { transform: scaleX(1.2273); }
:hover > .burger path:nth-child(3), :hover > * > .burger path:nth-child(3), .burger:hover path:nth-child(3) { transform: scaleX(1.5882); }
.sg-bag { display: block; flex: none; }
.mobile-nav-item .burger { width: 24px; height: 15px; }
.mobile-nav-item .sg-bag { width: 21px; height: 25px; }
.sg-mdrawer__ico .sg-bag { width: 20px; height: 23px; }

/* ---------- listing «عرض المزيد» (replaces numbered pagination) ---------- */
.sg-loadmore { display: flex; justify-content: center; margin: 28px 0 8px; }
.sg-loadmore__btn {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  min-width: 160px; height: 44px; padding: 0 26px !important; border: 0 !important; border-radius: var(--sg-radius-btn-lg) !important;
  background: var(--sg-primary) !important; color: var(--sg-on-primary) !important;
  font-size: 14px !important; font-weight: 700 !important; text-decoration: none !important; cursor: pointer;
  transition: background var(--sg-duration) var(--sg-ease), opacity var(--sg-duration) var(--sg-ease);
}
.sg-loadmore__btn:hover { background: var(--sg-primary-hover) !important; }
.sg-loadmore__spin {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--sg-on-primary) 35%, transparent); border-top-color: var(--sg-on-primary);
  animation: sg-spin .7s linear infinite;
}
.sg-loadmore__btn.is-loading { pointer-events: none; opacity: .85; }
.sg-loadmore__btn.is-loading .sg-loadmore__spin { display: inline-block; }
@keyframes sg-spin { to { transform: rotate(360deg); } }

/* ---------- side cart (reference) ---------- */
/* coupon: one rounded field «أضف الكوبون» with the «تطبيق» button inside at the end */
#side-cart .send-coupon-form .row {
  position: relative; display: flex !important; align-items: center; height: 50px; padding: 4px !important;
  border-radius: 10px; background: var(--sg-panel);
}
#side-cart .send-coupon-form .send-coupon {
  flex: 1 1 auto; height: 100% !important; padding: 0 12px !important; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important; outline: 0; color: var(--sg-ink); font: 600 13px var(--sg-font);
}
#side-cart .send-coupon-form .row:focus-within { box-shadow: 0 0 0 1.5px var(--sg-primary); }
#side-cart .send-coupon-form .send-coupon-button {
  flex: none; min-width: 84px; height: 42px !important; min-height: 42px !important; padding: 0 18px !important;
  border: 0 !important; border-radius: 8px !important; background: var(--sg-primary) !important; color: var(--sg-on-primary) !important;
  font-size: 13px !important; font-weight: 700 !important;
}
#side-cart .send-coupon-form .send-coupon-button:hover { background: var(--sg-primary-hover) !important; }
#side-cart .coupon-applied-section > div { min-height: 50px; border-radius: 10px !important; }

/* checkout: rounded, label at the start, arrow icon at the end (left in RTL) */
#side-cart #side-cart-checkout-btn.sg-scart__checkout {
  display: flex !important; align-items: center; justify-content: space-between !important;
  min-height: 52px !important; padding: 0 18px !important; border-radius: 12px !important;
}

/* remove line item: outline trash icon */
#side-cart .ab-line.compact .az-cartline__act .sg-remove-ico { width: 18px; height: 18px; display: block; }
/* coupon wrapper: no box (global.css .az-coupon paints bg + border + padding); button flush with the field, full height */
#side-cart .az-coupon.ab-coupon { background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; box-shadow: none !important; }
#side-cart .send-coupon-form .row { padding: 0 !important; overflow: hidden; }
#side-cart .send-coupon-form .send-coupon-button { align-self: stretch; height: auto !important; min-height: 100% !important; margin: 0 !important; border-radius: 0 !important; }

/* home «قائمة التصنيفات» section — reuses the categories-page tiles; 2 or 3 per row */
.sg-catlist .sg-cats { padding-bottom: 0; }
.sg-cats.sg-cats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .sg-cats.sg-cats--3 { gap: 16px 8px; }
  .sg-cats--3 .sg-cat__media { border-radius: 12px; }
  .sg-cats--3 .sg-cat__name { font-size: 11px; }
}

/* home «قائمة تصنيفات أيقونية» — slider of small colour tiles with an icon, name below */
.sg-icats__slide { display: flex; justify-content: center; height: auto; }
.sg-icat { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 120px; text-decoration: none; }
.sg-icat__tile {
  display: grid; place-items: center; width: 55px; height: 55px; flex: none; overflow: hidden;
  border-radius: 6px; background: var(--sg-icat-bg, var(--sg-primary));
  transition: transform var(--sg-duration) var(--sg-ease), box-shadow var(--sg-duration) var(--sg-ease);
}
.sg-icat__tile img { width: 100%; height: 100%; padding: 10px; object-fit: contain; }
.sg-icat__ini { color: var(--sg-on-primary); font-size: 20px; font-weight: 700; }
.sg-icat:hover .sg-icat__tile { transform: translateY(-2px); box-shadow: 0 6px 14px color-mix(in srgb, var(--sg-ink) 14%, transparent); }
.sg-icat__name {
  color: var(--sg-ink-soft); font-size: 10px; font-weight: 600; line-height: 1.5; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sg-icat:hover .sg-icat__name { color: var(--sg-primary); }

/* product rail — optional title banner under the heading (قائمة منتجات متحركة صغيرة) */
.sg-rail__banner { display: block; margin: 0 0 18px; overflow: hidden; border-radius: var(--sg-radius-card); }
.sg-rail__banner img { display: block; width: 100%; height: auto; transition: transform .4s var(--sg-ease); }
a.sg-rail__banner:hover img { transform: scale(1.015); }

/* home «معرض صور» — grid (1–4 per row) or slider; rounded image, optional caption below */
.sg-gal-sec__grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sg-gal-sec__grid--1 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .sg-gal-sec__grid { gap: 16px; }
  .sg-gal-sec__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-gal-sec__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sg-gal-sec__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.sg-gal-item { height: auto; }
.sg-gal-item__link { display: flex; flex-direction: column; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.sg-gal-item__media { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: var(--sg-radius-card); background: var(--sg-panel); }
.sg-gal-sec__grid--1 .sg-gal-item__media { aspect-ratio: 16 / 7; }
.sg-gal-item__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--sg-ease); }
a.sg-gal-item__link:hover .sg-gal-item__media img { transform: scale(1.04); }
.sg-gal-item__text { color: var(--sg-primary); font-size: 13px; font-weight: 600; line-height: 1.5; text-align: center; }
.sg-gal-sec__dots { margin-top: 16px; }

/* home «شعارات» — rounded colour tile with the logo centred, text below (reference) */
.sg-logos__slide { display: flex; justify-content: center; height: auto; }
.sg-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 160px; color: inherit; text-decoration: none; }
.sg-logo__tile {
  display: grid; place-items: center; width: 100%; aspect-ratio: 8 / 5; overflow: hidden;
  border-radius: 8px; background: var(--sg-logo-bg, transparent);
  transition: transform var(--sg-duration) var(--sg-ease), box-shadow var(--sg-duration) var(--sg-ease);
}
.sg-logo__tile img { width: 60px; height: 60px; object-fit: contain; display: block; }
a.sg-logo:hover .sg-logo__tile { transform: translateY(-2px); box-shadow: 0 6px 16px color-mix(in srgb, var(--sg-ink) 14%, transparent); }
.sg-logo__text { color: var(--sg-primary); font-size: 12px; font-weight: 700; line-height: 1.5; text-align: center; }

/* home «صور متحركة» — banner slider (moved from the section's inline <style>) + per-slide countdown */
.sg-banner { border-radius: var(--sg-radius-card); overflow: hidden; background: var(--sg-card); }
.sg-banner__slide { position: relative; display: block; aspect-ratio: 4 / 3; color: inherit; text-decoration: none; }
@media (min-width: 768px) { .sg-banner__slide { aspect-ratio: 990 / 424; } }
.sg-banner__img, .sg-banner__slide picture { display: block; width: 100%; height: 100%; }
.sg-banner__img { object-fit: cover; }
.sg-banner__copy {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: min(100%, 560px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 24px 28px;
  color: var(--sg-on-primary); text-align: start;
}
.sg-banner__title { font-size: clamp(20px, 3vw, 36px); font-weight: 700; line-height: 1.3; }
.sg-banner__btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border-radius: var(--sg-radius-btn-lg);
  background: var(--sg-primary); color: var(--sg-on-primary); font-size: 14px; font-weight: 700;
  transition: background var(--sg-duration) var(--sg-ease);
}
.sg-banner__slide:hover .sg-banner__btn { background: var(--sg-primary-hover); }

.sg-cd {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px;
  background: var(--sg-cd-bg, var(--sg-page)); color: var(--sg-cd-on, var(--sg-primary));
}
.sg-cd--after { flex-direction: row-reverse; }
.sg-cd--top { flex-direction: column; align-items: stretch; text-align: center; }
.sg-cd__text { font-size: 13px; font-weight: 700; }
.sg-cd__units { display: inline-flex; gap: 6px; }
.sg-cd__units[hidden] { display: none; }
.sg-cd__u { display: flex; flex-direction: column; align-items: center; min-width: 40px; line-height: 1.1; }
.sg-cd__u b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sg-cd__u small { margin-top: 2px; font-size: 10px; font-weight: 600; opacity: .85; }
.sg-cd__done { font-size: 14px; font-weight: 700; }
@media (max-width: 640px) {
  .sg-banner__copy { gap: 10px; padding: 16px; }
  .sg-cd { gap: 6px; padding: 6px 8px; }
  .sg-cd__u { min-width: 30px; }
  .sg-cd__u b { font-size: 16px; }
}

/* home «قائمة منتجات شبكية مفردة» — 2 / 4 / 6 grid (moved from the section's inline <style>) + latest-products skeleton */
.sg-grid__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
@media (min-width: 768px) { .sg-grid__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .sg-grid__list { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.sg-grid__cell { min-width: 0; }
.sg-grid__skel { aspect-ratio: 3 / 4.6; border-radius: var(--sg-radius-card); background: var(--sg-panel); animation: sg-skel 1.2s ease-in-out infinite alternate; }
@keyframes sg-skel { to { opacity: .5; } }

/* «أحدث المنتجات» — before Swiper starts, size the placeholder slides like the 2 / 4 / 5 / 6 breakpoints */
.sg-latest .swiper:not(.swiper-initialized) .swiper-wrapper { gap: 15px; overflow: hidden; }
.sg-latest .swiper:not(.swiper-initialized) .swiper-slide { width: calc((100% - 15px) / 2); }
@media (min-width: 768px) { .sg-latest .swiper:not(.swiper-initialized) .swiper-slide { width: calc((100% - 45px) / 4); } }
@media (min-width: 1024px) { .sg-latest .swiper:not(.swiper-initialized) .swiper-slide { width: calc((100% - 60px) / 5); } }
@media (min-width: 1200px) { .sg-latest .swiper:not(.swiper-initialized) .swiper-slide { width: calc((100% - 75px) / 6); } }

/* home «مساحة فارغة» — reverse keeps the next section above the previous one where they overlap */
.sg-spacer { display: block; width: 100%; pointer-events: none; }
.sg-spacer.is-reverse + * { position: relative; z-index: 1; }

/* home «آراء المتسوقين» — rounded review cards on the merchant colour (moved from the section's inline <style>) */
.sg-testi .swiper-slide { display: flex; }
.sg-testi__item {
  display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 24px 20px;
  border-radius: var(--sg-radius-card); background: var(--sg-testi-bg, var(--sg-panel)); text-align: center;
}
.sg-testi__avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; background: var(--sg-page); }
.sg-testi__avatar--ph { display: grid; place-items: center; color: var(--sg-primary); font-size: 20px; font-weight: 700; }
.sg-testi__quote {
  margin: 0; color: var(--sg-ink); font-size: 13px; line-height: 1.9;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.sg-testi__name { margin-top: auto; color: var(--sg-primary); font-size: 13px; font-weight: 700; }

/* home «محتوى نصي متحرك» — seamless marquee (two identical tracks, -100% shift; mirrored for RTL) */
.sg-marquee { overflow: hidden; background: var(--sg-mq-bg, var(--sg-primary)); color: var(--sg-mq-on, var(--sg-on-primary)); }
.sg-marquee__link { display: flex; width: max-content; color: inherit; text-decoration: none; }
.sg-marquee__track { display: flex; flex: none; animation: sg-marquee var(--sg-mq-dur, 10s) linear infinite; }
[dir="rtl"] .sg-marquee__track { animation-name: sg-marquee-rtl; }
.sg-marquee:hover .sg-marquee__track { animation-play-state: paused; }
.sg-marquee__item {
  padding: .35em 1.2em; white-space: nowrap; line-height: 1.5;
  font-size: var(--sg-mq-fs, 30px); font-weight: var(--sg-mq-fw, 700);
}
.sg-marquee__item::after { content: "•"; margin-inline-start: 1.2em; opacity: .6; }
@keyframes sg-marquee { to { transform: translateX(-100%); } }
@keyframes sg-marquee-rtl { to { transform: translateX(100%); } }
@media (max-width: 640px) { .sg-marquee__item { font-size: calc(var(--sg-mq-fs, 30px) * .65); } }
@media (prefers-reduced-motion: reduce) { .sg-marquee__track { animation: none; } }

/* home «قائمة منتجات متحركة كبيرة» — same card, larger type; pre-init skeleton widths for 1.3 / 2.5 / 3 / 4 per view */
.sg-rail--lg .ab-card .product-card-title, .sg-rail--lg .ab-card h3 { font-size: 13px !important; }
.sg-rail--lg .ab-card .price, .sg-rail--lg .ab-card .tp-price-product { font-size: 13px; }
.sg-rail--lg .ab-card-body { padding: 14px 14px 14px !important; gap: 10px !important; }
.sg-rail--lg .sg-dots { margin-top: 16px; }
.sg-latest.sg-rail--lg .swiper:not(.swiper-initialized) .swiper-wrapper { gap: 14px; }
.sg-latest.sg-rail--lg .swiper:not(.swiper-initialized) .swiper-slide { width: calc((100% - 14px) / 1.3); }
@media (min-width: 640px) { .sg-latest.sg-rail--lg .swiper:not(.swiper-initialized) .swiper-slide { width: calc((100% - 32px) / 2.5); } }
@media (min-width: 1024px) { .sg-latest.sg-rail--lg .swiper:not(.swiper-initialized) .swiper-slide { width: calc((100% - 36px) / 3); } }
@media (min-width: 1200px) { .sg-latest.sg-rail--lg .swiper:not(.swiper-initialized) .swiper-slide { width: calc((100% - 60px) / 4); } }

/* «آراء المتسوقين» — reference layout: start-aligned heading + dots on one row; centred cards on the customizer colour */
.sg-testi__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.sg-testi__title { margin: 0; color: var(--sg-primary); font-size: 15px; font-weight: 700; line-height: 1.5; }
.sg-testi__sub { margin: 2px 0 0; color: var(--sg-muted); font-size: 12px; font-weight: 500; }
.sg-testi__dots { position: static !important; width: auto !important; margin: 8px 0 0 !important; flex: none; }
.sg-testi .swiper-wrapper { align-items: center; }
.sg-testi .swiper-slide { height: auto; }
.sg-testi__item { gap: 10px; min-height: 110px; padding: 18px 20px; border-radius: 10px; justify-content: center; }
.sg-testi__avatar { width: 44px; height: 44px; background: transparent; }
.sg-testi__avatar--ph { color: color-mix(in srgb, var(--sg-ink) 45%, transparent); }
.sg-testi__avatar--ph svg { display: block; width: 44px; height: 44px; }
.sg-testi__quote { color: var(--sg-ink); font-size: 13px; font-weight: 700; -webkit-line-clamp: 4; }
.sg-testi__name { margin-top: 0; color: var(--sg-muted); font-size: 11px; font-weight: 600; }

/* product sliders — swipe hint replaces prev/next arrows; sits at the end of the heading row */
.sg-rail__head { position: relative; display: flex; align-items: center; justify-content: flex-end; min-height: 28px; margin-bottom: 6px; }
.sg-rail__head > .sg-head { flex: 1 1 auto; margin-bottom: 14px; padding-inline: 40px; }
.sg-rail__head > .sg-swipe { position: absolute; inset-inline-end: 0; top: 0; }
.sg-swipe { display: inline-grid; place-items: center; width: 32px; height: 32px; color: var(--sg-primary); }
.sg-swipe svg { width: 24px; height: 24px; animation: sg-swipe-hint 2.4s var(--sg-ease) infinite; }
[dir="rtl"] .sg-swipe svg { transform: scaleX(-1); animation-name: sg-swipe-hint-rtl; }
@keyframes sg-swipe-hint { 0%, 60%, 100% { transform: translateX(0); } 30% { transform: translateX(-5px); } }
@keyframes sg-swipe-hint-rtl { 0%, 60%, 100% { transform: scaleX(-1) translateX(0); } 30% { transform: scaleX(-1) translateX(-5px); } }
@media (prefers-reduced-motion: reduce) { .sg-swipe svg { animation: none; } }
.sg-rail .swiper { cursor: grab; }
/* «قائمة تصنيفات أيقونية» — bigger tiles (55 → 84px, 68px on phones); grid icon when no image */
.sg-icat { max-width: 140px; gap: 10px; }
.sg-icat__tile { width: 84px; height: 84px; border-radius: 10px; }
.sg-icat__tile img { padding: 14px; }
.sg-icat__ph { color: var(--sg-on-primary); opacity: .9; }
.sg-icat__name { font-size: 12px; }
@media (max-width: 640px) {
  .sg-icat__tile { width: 68px; height: 68px; border-radius: 8px; }
  .sg-icat__tile img { padding: 11px; }
  .sg-icat__ph { width: 28px; height: 28px; }
  .sg-icat__name { font-size: 11px; }
}

/* section buttons («المزيد» · slide button): store background + store primary colour; fills on hover */
.sg-more, .sg-banner__btn {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 22px !important; border: 1.5px solid var(--sg-primary) !important;
  border-radius: var(--sg-radius-btn-lg) !important; background: var(--sg-page) !important; color: var(--sg-primary) !important;
  font-size: 13px !important; font-weight: 700 !important; text-decoration: none !important;
  transition: background var(--sg-duration) var(--sg-ease), color var(--sg-duration) var(--sg-ease);
}
.sg-more { margin: 18px auto 0 !important; }
.sg-more:hover, .sg-banner__slide:hover .sg-banner__btn { background: var(--sg-primary) !important; color: var(--sg-page) !important; text-decoration: none !important; }
/* «المزيد» — centred under the section, filled with the store primary colour */
.sg-section .sg-more {
  display: flex !important; width: max-content; max-width: 100%; margin: 22px auto 0 !important;
  background: var(--sg-primary) !important; color: var(--sg-on-primary) !important; border-color: var(--sg-primary) !important;
}
.sg-section .sg-more:hover { background: var(--sg-primary-hover) !important; border-color: var(--sg-primary-hover) !important; color: var(--sg-on-primary) !important; }
.sg-pick-empty { width: 100%; margin: 0; padding: 28px 12px; text-align: center; color: var(--sg-muted); font-size: 13px; font-weight: 600; }
/* swipe hint — beside the slider where the arrows were, physical right side only, #ddd */
.sg-rail__wrap { position: relative; }
.sg-rail__wrap > .sg-swipe {
  position: absolute; top: 38%; right: -14px; left: auto; z-index: 4; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; background: var(--sg-page);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--sg-ink) 10%, transparent);
  color: #ddd; pointer-events: none;
}
.sg-rail__wrap > .sg-swipe svg { width: 22px; height: 22px; }
@media (max-width: 1023px) { .sg-rail__wrap > .sg-swipe { right: 4px; } }

/* «الاعدادات الأساسية» — logo in the sticky header (only when basic_sticky_logo is set) */
.sg-logo-link .sg-logo-sticky { display: none; }
.hdr-shell.is-scrolled .sg-logo-link.has-sticky img:not(.sg-logo-sticky) { display: none !important; }
.hdr-shell.is-scrolled .sg-logo-link.has-sticky .sg-logo-sticky { display: block; }

/* sticky add-to-cart bar — Apple Pay proxy button (gear › «صفحة المنتج») */
.sg-sticky__applepay { display: inline-flex; align-items: center; justify-content: center; gap: 4px; background: #000 !important; color: #fff !important; border: 0 !important; font-weight: 700; }
.sg-sticky__applepay[hidden] { display: none !important; }

/* card CTA icons (segadty.com card-options-icon): the glyph is a white rounded square with the symbol cut out,
   drawn straight on the button — no separate icon box. Sold out = same filled button «نفدت» + ✕. */
.sg-card-cta .sg-card-cta__ico { width: 15px; height: 15px; border-radius: 0; background: transparent !important; color: var(--sg-on-primary) !important; }
.sg-card-cta .sg-card-cta__ico svg { width: 15px; height: 15px; }
.sg-card-cta.is-oos { background: var(--sg-primary) !important; border-color: var(--sg-primary) !important; color: var(--sg-on-primary) !important; }

/* «معرض صور» — one image centred (natural ratio, capped width); two+ images two per row */
.sg-gal-sec__grid.is-single { grid-template-columns: 1fr; justify-items: center; }
.sg-gal-sec__grid.is-single .sg-gal-item { width: 100%; max-width: 760px; }
.sg-gal-sec__grid.is-single .sg-gal-item__media { aspect-ratio: auto; }
.sg-gal-sec__grid.is-single .sg-gal-item__media img { height: auto; max-height: 520px; object-fit: contain; }
.sg-gal-sec__grid.is-pairs { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
@media (min-width: 768px) { .sg-gal-sec__grid.is-pairs { gap: 18px; } }
.sg-gal-sec__grid.is-pairs .sg-gal-item__media { aspect-ratio: 4 / 3; }

/* «قائمة منتجات شبكية مفردة» — grid, five cards per row on desktop */
@media (min-width: 1200px) { .sg-grid .sg-grid__list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- side cart — reference layout (image 2) ---------- */
/* line item: bigger photo, muted one-line name, sale + strike, compact light stepper, trash at the top end */
#side-cart .ab-line.compact { padding: 18px 40px 20px !important; gap: 10px !important; }
#side-cart .ab-line.compact .th { width: 120px !important; height: 120px !important; background: transparent; }
#side-cart .ab-line.compact .az-cartline__title { color: var(--sg-ink-soft) !important; font-size: 13px !important; font-weight: 500 !important; max-width: 100%; }
#side-cart .sg-scart__price { gap: 8px; }
#side-cart .sg-scart__price .price { font-size: 13px !important; font-weight: 700 !important; }
#side-cart .sg-scart__price s { font-size: 12px; text-decoration: line-through; }
#side-cart .ab-line.compact .az-qty { width: 130px !important; height: 28px !important; padding: 0 6px; border-radius: 3px !important; background: color-mix(in srgb, var(--sg-ink) 4%, var(--sg-page)) !important; }
#side-cart .ab-line.compact .az-qty button { width: 26px; height: 26px; color: var(--sg-ink) !important; font-size: 16px; font-weight: 500; }
#side-cart .ab-line.compact .az-qty .val, #side-cart .ab-line.compact .az-qty input { color: var(--sg-ink-soft) !important; font-size: 12px !important; font-weight: 500 !important; }
#side-cart .ab-line.compact .az-cartline__act { top: 16px !important; inset-inline-end: 8px !important; color: color-mix(in srgb, var(--sg-ink) 35%, var(--sg-page)) !important; display: grid !important; }

/* coupon: lighter field, button with the field's rounded outer corners */
#side-cart .send-coupon-form .row { height: 46px; border-radius: 6px !important; background: color-mix(in srgb, var(--sg-ink) 3%, var(--sg-page)) !important; }
#side-cart .send-coupon-form .send-coupon { font-size: 13px !important; font-weight: 500 !important; color: var(--sg-ink) !important; }
#side-cart .send-coupon-form .send-coupon-button { min-width: 98px; font-size: 13px !important; font-weight: 600 !important; }

/* totals: muted rows; «المجموع» label + value in the store primary colour (not the sale colour), tax note under it */
#side-cart [data-cart-totals-body] { gap: 12px; }
#side-cart [data-cart-total-row] { font-size: 12px !important; color: var(--sg-ink-soft) !important; }
#side-cart [data-cart-total-row] [data-cart-total-value] { color: var(--sg-ink-soft) !important; font-weight: 600 !important; }
#side-cart [data-cart-total-row="total"] { margin-top: 10px; color: var(--sg-primary) !important; font-size: 15px !important; font-weight: 700 !important; }
#side-cart [data-cart-total-row="total"] [data-cart-total-value] { color: var(--sg-primary) !important; font-size: 15px !important; font-weight: 800 !important; }
#side-cart [data-cart-total-row="total"] + div { margin-top: -10px; color: var(--sg-primary) !important; font-size: 11px !important; font-weight: 700 !important; }

/* checkout: label + circled chevron centred together, icon on the left (RTL) */
#side-cart #side-cart-checkout-btn.sg-scart__checkout {
  justify-content: center !important; gap: 10px !important; min-height: 52px !important; border-radius: 8px !important;
  font-size: 14px !important; font-weight: 700 !important;
}
#side-cart .sg-scart__checkout-ico { width: 20px !important; height: 20px !important; font-size: 15px !important; border-width: 1.5px; }
/* side cart — smaller coupon field; tighter totals rows */
#side-cart .send-coupon-form .row { height: 38px !important; }
#side-cart .send-coupon-form .send-coupon { font-size: 12px !important; padding: 0 10px !important; }
#side-cart .send-coupon-form .send-coupon-button { min-width: 80px !important; font-size: 12px !important; padding: 0 14px !important; }
#side-cart [data-cart-totals-body] { gap: 4px !important; }
#side-cart [data-cart-total-row] { min-height: 0 !important; padding-block: 2px !important; margin-block: 0 !important; line-height: 1.6 !important; }
#side-cart [data-cart-total-row="total"] { margin-top: 8px !important; }
#side-cart .side-cart-footer { gap: 12px !important; }

/* product card — title (segadty .block-product h3) */
.ab-card .product-card-title, .ab-card h3.az-card__title {
  display: flex !important; justify-content: start; align-items: center;
  font-size: 18px !important; line-height: 1.7 !important; min-height: 0 !important;
  -webkit-line-clamp: unset !important; overflow: visible !important;
}
.ab-card .product-card-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* product card — segadty rating stars: grey row + yellow row clipped to --rating-percentage (13px star-icon.svg) */
.sg-stars { position: relative; display: inline-flex; width: max-content; line-height: 0; }
.sg-stars .stars { display: inline-flex; gap: 0; }
.sg-stars .stars-active { position: absolute; top: 0; inset-inline-start: 0; width: var(--rating-percentage, 0%); overflow: hidden; white-space: nowrap; }
.sg-stars .star-icon {
  display: inline-block; flex: none; width: 13px; height: 13px; background: #F1F1F1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='m29.889 12.472c-.245-.729-.857-1.252-1.6-1.366l-7.187-1.103-3.221-6.834c-.336-.721-1.029-1.168-1.807-1.168-.778 0-1.471.448-1.807 1.166l-3.222 6.837-7.187 1.103c-.742.114-1.355.638-1.6 1.366-.252.751-.069 1.568.477 2.13l5.23 5.382-1.236 7.612c-.13.802.194 1.584.847 2.043.34.239.734.36 1.13.36.327 0 .654-.083.955-.249l6.396-3.568 6.431 3.568c.664.369 1.463.326 2.084-.111.653-.458.977-1.241.847-2.042l-1.236-7.612 5.23-5.382c.546-.562.729-1.378.477-2.13z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='m29.889 12.472c-.245-.729-.857-1.252-1.6-1.366l-7.187-1.103-3.221-6.834c-.336-.721-1.029-1.168-1.807-1.168-.778 0-1.471.448-1.807 1.166l-3.222 6.837-7.187 1.103c-.742.114-1.355.638-1.6 1.366-.252.751-.069 1.568.477 2.13l5.23 5.382-1.236 7.612c-.13.802.194 1.584.847 2.043.34.239.734.36 1.13.36.327 0 .654-.083.955-.249l6.396-3.568 6.431 3.568c.664.369 1.463.326 2.084-.111.653-.458.977-1.241.847-2.042l-1.236-7.612 5.23-5.382c.546-.562.729-1.378.477-2.13z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sg-stars .star-icon.active { background: #FFCB2B; }
/* product card title — a touch smaller (was 18px) */
.ab-card .product-card-title, .ab-card h3.az-card__title { font-size: 15px !important; }
@media (max-width: 640px) { .ab-card .product-card-title, .ab-card h3.az-card__title { font-size: 13px !important; } }
/* listing toolbar («تصفية النتائج» · «ترتيب حسب») — spread with space-around (design request) */
.ab-toolbar.cd-toolbar.sg-toolbar { justify-content: space-around !important; }
/* product card title — smaller again (was 15px / 13px) */
.ab-card .product-card-title, .ab-card h3.az-card__title { font-size: 13px !important; }
@media (max-width: 640px) { .ab-card .product-card-title, .ab-card h3.az-card__title { font-size: 12px !important; } }

/* side cart + its backdrop above the PDP sticky add-to-cart bar (9000) and Zid widgets */
#side-cart, #side-cart.offcanvas { z-index: 2147483001 !important; }
#side-cart-backdrop, .offcanvas-backdrop.show { z-index: 2147483000 !important; }

/* toasts (window.showPrettyToast — also behind zid.toaster.*): wide light card across the content width near the top,
   filled ✕ / ✓ circle at the start, bold message, close × at the end (reference) */
.ab-toast-stack {
  top: 24px !important; left: 50% !important; right: auto !important; transform: translateX(-50%);
  width: min(100% - 2 * var(--sg-gutter, 15px), var(--sg-max, 1200px)) !important; max-width: none !important;
  align-items: stretch !important; z-index: 2147483600 !important;
}
.ab-toast {
  align-items: center !important; gap: 12px !important; width: 100% !important; min-height: 64px;
  padding: 18px 22px !important; border: 0 !important; border-radius: 8px !important; box-shadow: none !important;
  font: 700 14px/1.6 var(--sg-font) !important;
}
.ab-toast--error { background: #FFE8EA !important; color: #FF5F5F !important; }
.ab-toast--success { background: #E7F7E4 !important; color: #3E9F2C !important; }
.ab-toast__icon { width: 24px !important; height: 24px !important; flex: none; color: currentColor !important; }
.ab-toast__msg { flex: 1 1 auto; color: inherit !important; font-weight: 700 !important; }
.ab-toast__close {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center; margin-inline-start: auto;
  border: 0 !important; background: transparent !important; color: currentColor !important; cursor: pointer; opacity: .9;
}
.ab-toast__close:hover { opacity: 1; }
@media (max-width: 640px) { .ab-toast-stack { top: 12px !important; } .ab-toast { min-height: 52px; padding: 12px 14px !important; font-size: 13px !important; } }

/* PDP sticky add-to-cart bar sits just under the header layer (.header is sticky z 1000 and holds the menu drawer),
   so the opened menu / drawer always covers it */
.ab-pdp .sticky-cart.sg-sticky, .sticky-cart.sg-sticky { z-index: 999 !important; }

/* segadty .svg-icon.star-icon — masked star-icon.svg; active = #FFCB2B (PDP rating summary: 20px, margin-top -4px) */
.svg-icon.star-icon {
  display: inline-block; flex: none; width: 20px; height: 20px; background-color: #F1F1F1;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='m29.889 12.472c-.245-.729-.857-1.252-1.6-1.366l-7.187-1.103-3.221-6.834c-.336-.721-1.029-1.168-1.807-1.168-.778 0-1.471.448-1.807 1.166l-3.222 6.837-7.187 1.103c-.742.114-1.355.638-1.6 1.366-.252.751-.069 1.568.477 2.13l5.23 5.382-1.236 7.612c-.13.802.194 1.584.847 2.043.34.239.734.36 1.13.36.327 0 .654-.083.955-.249l6.396-3.568 6.431 3.568c.664.369 1.463.326 2.084-.111.653-.458.977-1.241.847-2.042l-1.236-7.612 5.23-5.382c.546-.562.729-1.378.477-2.13z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='m29.889 12.472c-.245-.729-.857-1.252-1.6-1.366l-7.187-1.103-3.221-6.834c-.336-.721-1.029-1.168-1.807-1.168-.778 0-1.471.448-1.807 1.166l-3.222 6.837-7.187 1.103c-.742.114-1.355.638-1.6 1.366-.252.751-.069 1.568.477 2.13l5.23 5.382-1.236 7.612c-.13.802.194 1.584.847 2.043.34.239.734.36 1.13.36.327 0 .654-.083.955-.249l6.396-3.568 6.431 3.568c.664.369 1.463.326 2.084-.111.653-.458.977-1.241.847-2.042l-1.236-7.612 5.23-5.382c.546-.562.729-1.378.477-2.13z'/%3E%3C/svg%3E");
  -webkit-mask-size: cover; mask-size: cover; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.svg-icon.star-icon.active { background-color: rgb(255, 203, 43); }
.sg-pdp-rating .star-icon { margin-top: -4px; font-size: 0 !important; color: transparent !important; }
/* product cards keep their 13px stars */
.sg-stars .svg-icon.star-icon { width: 13px; height: 13px; }

/* «أضف تقييمك» — segadty star-icon (25px); selected star and the ones before it = rgb(241,199,39) */
.sg-rform__stars .svg-icon.star-icon.sg-rform__star { width: 25px; height: 25px; font-size: 0; color: transparent; background-color: #F1F1F1; transition: background-color var(--sg-duration) var(--sg-ease); }
.sg-rform__stars label:hover .star-icon, .sg-rform__stars label:hover ~ label .star-icon,
.sg-rform__stars label:has(.rating-star-radio:checked) .star-icon,
.sg-rform__stars label:has(.rating-star-radio:checked) ~ label .star-icon { background-color: rgb(241, 199, 39) !important; }
.sg-rform__stars { gap: 4px; }

/* PDP Tabby / Tamara — official widgets side by side, equal width (segadty.com .block-payments-widget) */
.ab-pdp .ab-pdp-payw .block-payments-widget.sg-bnpl { grid-column: 1 / -1; }
.block-payments-widget.sg-bnpl { display: flex; flex-direction: row; align-items: stretch; gap: 10px; width: 100%; margin: 4px 0 0; }
.block-payments-widget.sg-bnpl > tamara-widget, .block-payments-widget.sg-bnpl > .tabby-product-widget { flex: 1 1 0; min-width: 0; margin: 0 !important; }
@media (max-width: 380px) { .block-payments-widget.sg-bnpl { flex-direction: column; } }
/* segadty.com host styling: bordered white cards, position:relative + top padding so each provider's logo sits on the top border */
.block-payments-widget.sg-bnpl { margin-top: 22px; }
.block-payments-widget.sg-bnpl > tamara-widget, .block-payments-widget.sg-bnpl > .tabby-product-widget {
  position: relative; background: #fff; border-radius: 6px; font-size: 12px; line-height: 1.6;
}
.block-payments-widget.sg-bnpl > tamara-widget { display: block; padding: 20px 10px 10px; border: 1px solid #DE9681; }
.block-payments-widget.sg-bnpl > .tabby-product-widget { display: flex; flex-direction: column; justify-content: center; padding: 20px 10px 15px; border: 1px solid #3BFFC4; }
/* Tabby draws its own bordered card (layout set by the merchant's Tabby account) — no second frame around it */
.block-payments-widget.sg-bnpl > .tabby-product-widget { padding: 0 !important; border: 0 !important; background: transparent !important; justify-content: stretch; }

/* PDP «إضافة سؤال» — inline dropdown panel under the button (was a popup) */
.sg-qform { width: 100%; max-width: 920px; margin: 18px auto 6px; animation: sg-qform-in .25s var(--sg-ease); }
@keyframes sg-qform-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sg-qform__body { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.sg-qform__field { display: block; margin: 0; }
.sg-qform__input {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid transparent !important; border-radius: 6px;
  background: color-mix(in srgb, var(--sg-ink) 4%, var(--sg-page)); color: var(--sg-ink); font: 500 13px var(--sg-font); outline: 0;
  transition: border-color var(--sg-duration) var(--sg-ease), background var(--sg-duration) var(--sg-ease);
}
.sg-qform__input::placeholder { color: var(--sg-muted); }
.sg-qform__input:focus { border-color: var(--sg-primary) !important; background: var(--sg-page); }
.sg-qform__text { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.sg-qform__input.border-danger, .sg-qform__input.is-invalid { border-color: #d94141 !important; }
.sg-qform__anon { display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: center; color: var(--sg-ink-soft); font-size: 12px; font-weight: 600; cursor: pointer; }
.sg-qform__anon input { width: 16px; height: 16px; accent-color: var(--sg-primary); }
.sg-qform__send {
  align-self: center; display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
  min-width: 80px; min-height: 42px; padding: 0 22px !important; border: 0 !important; border-radius: 8px !important;
  background: var(--sg-primary) !important; color: var(--sg-on-primary) !important; font-size: 15px !important; font-weight: 700 !important; cursor: pointer;
}
.sg-qform__send:hover { background: var(--sg-primary-hover) !important; }

/* Cart page — sticky «المتابعة للتوصيل والدفع» bar · «متابعة التسوق» outline · centred «سلة الشراء» title (no breadcrumb) */
.ab-cart .sg-cart-title { text-align: center !important; width: 100%; }
.ab-cart-bottom:has(.sg-cart-bar) { margin-bottom: 96px; }
.sg-cartfoot__continue { display: flex; align-items: center; justify-content: center; gap: 6px; width: min(100%, 584px); min-height: 44px; margin: 16px auto 0; border: 1px solid var(--sg-primary); border-radius: 6px; background: transparent !important; color: var(--sg-primary) !important; font-size: 13px; font-weight: 700; text-decoration: none !important; transition: background var(--sg-duration) var(--sg-ease), color var(--sg-duration) var(--sg-ease); }
.sg-cartfoot__continue:hover { background: var(--sg-primary) !important; color: var(--sg-on-primary) !important; }
html[dir='ltr'] .sg-cartfoot__continue svg { transform: scaleX(-1); }
.sg-cart-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 900; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); background: var(--sg-page); border-radius: 12px 12px 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,.06); }
.sg-cart-bar__btn { display: flex !important; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 62px; border: 0 !important; border-radius: 8px !important; background: var(--sg-primary) !important; color: var(--sg-on-primary) !important; font-size: 16px !important; font-weight: 700 !important; text-decoration: none !important; cursor: pointer; }
.sg-cart-bar__btn:hover { background: var(--sg-primary-hover) !important; }
.sg-cart-bar__btn[disabled] { opacity: .55; cursor: not-allowed; }
html[dir='ltr'] .sg-cart-bar__btn svg { transform: scaleX(-1); }
body[data-template="cart_page"]:has(.sg-cart-bar) .sg-wa-float { bottom: calc(var(--sg-wa-pos, 8vh) + 84px) !important; }
body[data-template="cart_page"]:has(.ab-cart-bottom[hidden]) .sg-wa-float { bottom: var(--sg-wa-pos, 8vh) !important; }
@media (max-width: 767px) { .sg-cart-bar__btn { min-height: 54px; font-size: 15px !important; } }

/* product sliders — swipe hint shows only when the row overflows and the slider can move */
.sg-rail__wrap:not(.is-scrollable) > .sg-swipe { display: none !important; }

/* «الصور المتحركة» (main-slider) — a little wider, smaller side gutters (hero feel). Height is pinned to what the
   old container width gave (same ratios), so only the width grows; images keep object-fit: cover. */
.sg-banner-sec > .sg-container { width: min(100% - 16px, calc(var(--sg-max) + 160px)); }
.sg-banner-sec .sg-banner__slide { aspect-ratio: auto; height: calc((100vw - 30px) * 3 / 4); }
@media (min-width: 768px) {
  .sg-banner-sec .sg-banner__slide { height: calc(min(100vw - 30px, var(--sg-max)) * 424 / 990); }
}

/* section headings — clear gap between the title and its subtitle (all sections with title + subtitle) */
.sg-head__sub, .sg-testi__sub { margin: 8px 0 0 !important; line-height: 1.7; }
.sg-head:has(.sg-head__sub) { margin-bottom: 24px; }
.sg-rail__head > .sg-head:has(.sg-head__sub) { margin-bottom: 18px; }

/* categories page — subcategory dropdown opens in place under the name (Segadty): centred maroon links, no box */
.sg-cat__subs {
  position: static !important; width: 100% !important; max-width: 272px; margin: 2px auto 0 !important; padding: 0 !important;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: transparent !important; border-radius: 0 !important; box-shadow: none !important;
  animation: sg-subs-in .22s var(--sg-ease);
}
@keyframes sg-subs-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sg-cat__subs a { padding: 6px 8px !important; background: transparent !important; color: var(--sg-primary) !important; font-size: 13px !important; font-weight: 600 !important; text-align: center; line-height: 1.5; }
.sg-cat__subs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sg-cat__toggle { font-weight: 700; }
@media (max-width: 640px) { .sg-cat__subs a { font-size: 12px !important; } }

/* «الصور المتحركة» on phones (segadty.com): ~10px side margins, the slide follows the image's own ratio — the whole
   banner shows, no forced 4:3 crop. Desktop keeps the pinned height above. */
@media (max-width: 767px) {
  .sg-banner-sec { padding-inline: 0 !important; }
  .sg-banner-sec > .sg-container { width: calc(100% - 20px) !important; }
  .sg-banner-sec .sg-banner__slide { height: auto !important; aspect-ratio: auto !important; }
  .sg-banner-sec .sg-banner__slide picture { height: auto; }
  .sg-banner-sec .sg-banner__img { height: auto !important; object-fit: contain; }
}

/* product cards — equal heights in every row / slider, and on phones the stars + CTA share the bottom row without overlap */
.swiper-slide > .product-cart, .sg-grid__cell > .product-cart, #products-list .product-cart { height: 100%; display: flex; flex-direction: column; }
.swiper-slide > .product-cart .sg-card__body, .sg-grid__cell > .product-cart .sg-card__body, #products-list .product-cart .sg-card__body { flex: 1 1 auto; }
.sg-card__rate { flex: 1 1 auto; min-width: 0; overflow: hidden; }
@media (max-width: 767px) {
  .ab-card-body, .sg-card__body { padding: 10px !important; gap: 6px !important; }
  /* title always reserves exactly two lines so a short name doesn't make a shorter card */
  .sg-card__bottom { gap: 6px; }
  .sg-card__rate .svg-icon.star-icon { width: 12px !important; height: 12px !important; }
  .sg-card__count { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sg-card-cta { height: 32px; font-size: 12px; padding: 0 5px 0 9px !important; gap: 5px; }
  .sg-card-cta__ico { width: 20px; height: 20px; }
}

/* card title always reserves two lines (beats the earlier `.ab-card h3.az-card__title { min-height: 0 !important }`),
   text pinned to the top; slider slides stretch to the tallest card in the row */
.ab-card h3.az-card__title, .ab-card .product-card-title.az-card__title { min-height: calc(2 * 1.7em) !important; align-items: flex-start !important; }
.swiper-wrapper:has(> .swiper-slide > .product-cart) { align-items: stretch; }

/* «المزيد» as the small slider's last slide — centred dark button beside the cards; spinner while the next batch loads */
.sg-rail__more, .swiper-slide.sg-rail__more { display: flex !important; align-items: center; justify-content: center; align-self: stretch; height: auto; }
.sg-rail__more-btn {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; position: relative;
  width: min(100%, 172px); min-height: 34px; padding: 0 16px !important; border: 0 !important; border-radius: 4px !important;
  background: var(--sg-primary) !important; color: var(--sg-on-primary) !important; font: 700 13px/1 var(--sg-font) !important; cursor: pointer;
  transition: background var(--sg-duration) var(--sg-ease), opacity var(--sg-duration) var(--sg-ease);
}
.sg-rail__more-btn:hover { background: var(--sg-primary-hover) !important; }
.sg-rail__more-spin { display: none; width: 14px; height: 14px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: sg-spin .7s linear infinite; }
.sg-rail__more-btn.is-loading { opacity: .85; pointer-events: none; }
.sg-rail__more-btn.is-loading .sg-rail__more-spin { display: inline-block; }

/* blog index (Segadty) — centred muted title, centred category buttons, light bordered cards: inset rounded image ·
   primary title · muted excerpt · small outlined category chip · date + «اقرأ المزيد ›» footer */
.sg-blogs__head { display: flex !important; justify-content: center !important; margin: 12px 0 26px !important; }
.sg-blogs__title { margin: 0 !important; text-align: center; color: var(--sg-muted) !important; font-size: 26px !important; font-weight: 700 !important; }
.sg-blogs__cats { display: flex !important; flex-wrap: wrap; justify-content: center !important; gap: 10px !important; margin: 0 0 34px !important; border: 0 !important; padding: 0 !important; }
.sg-blogs__cats .ab-blogs__cat {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 18px !important; border: 1px solid var(--sg-primary) !important;
  border-radius: 6px !important; background: transparent !important; color: var(--sg-primary) !important;
  font-size: 12px !important; font-weight: 700 !important; text-decoration: none !important;
}
.sg-blogs__cats .ab-blogs__cat.is-active, .sg-blogs__cats .ab-blogs__cat:hover { background: var(--sg-primary) !important; color: var(--sg-on-primary) !important; }

.ab-blogs__grid { gap: 28px !important; }
.ab-bcard {
  padding: 14px; gap: 0; background: color-mix(in srgb, var(--sg-ink) 3%, var(--sg-page)) !important;
  border: 1px solid color-mix(in srgb, var(--sg-ink) 10%, transparent) !important; border-radius: 8px !important; box-shadow: none !important;
}
.ab-bcard:hover { box-shadow: 0 6px 20px color-mix(in srgb, var(--sg-ink) 8%, transparent) !important; }
.ab-bcard__media { aspect-ratio: 4 / 3 !important; border-radius: 8px; background: var(--sg-panel) !important; }
.ab-bcard__body { gap: 0 !important; padding: 18px 0 0 !important; }
.ab-bcard__title { margin: 0 0 14px !important; color: var(--sg-primary) !important; font-family: var(--sg-font) !important; font-size: 17px !important; font-weight: 700 !important; line-height: 1.75 !important; }
.ab-bcard__desc { margin: 0 0 16px !important; color: var(--sg-muted) !important; font-size: 13px !important; line-height: 1.9 !important; -webkit-line-clamp: 4 !important; }
.ab-bcard__badges { justify-content: flex-end; gap: 6px; margin: 0 0 22px; }
.ab-bcard__badge, .ab-bcard__badge.is-cat {
  padding: 4px 9px !important; border: 1px solid color-mix(in srgb, var(--sg-ink) 18%, transparent); border-radius: 3px !important;
  background: var(--sg-page) !important; color: var(--sg-ink) !important; font-size: 10px !important; font-weight: 700 !important; line-height: 1.4;
}
.ab-bcard__foot { padding-top: 0 !important; border-top: 0 !important; font-size: 12px !important; }
.ab-bcard__date { color: var(--sg-muted); font-weight: 500; }
.ab-bcard__more { color: var(--sg-primary) !important; font-size: 12px; font-weight: 700 !important; }
@media (max-width: 1023px) { .ab-blogs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 18px !important; } }
@media (max-width: 640px) {
  .ab-blogs__grid { grid-template-columns: 1fr !important; }
  .sg-blogs__title { font-size: 22px !important; }
}

/* blog post head (Segadty) — rounded wide cover, category chip + share icon row, primary title, muted date */
.sg-bpost { padding-top: 6px !important; }
.sg-bpost__cover { overflow: hidden; border-radius: 8px; background: var(--sg-panel); aspect-ratio: 850 / 385; }
.sg-bpost__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sg-bpost__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 14px; }
.sg-bpost__cat {
  display: inline-flex; align-items: center; min-height: 22px; padding: 2px 8px; border-radius: 4px;
  background: var(--sg-primary); color: var(--sg-on-primary) !important; font-size: 12px; font-weight: 700; line-height: 1.5; text-decoration: none !important;
}
.sg-bpost__share { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--sg-ink); cursor: pointer; transition: background var(--sg-duration) var(--sg-ease); }
.sg-bpost__share:hover, .sg-bpost__share.is-copied { background: var(--sg-panel); color: var(--sg-primary); }
.sg-bpost__title { margin: 0 0 12px !important; text-align: start !important; color: var(--sg-primary) !important; font-size: 20px !important; font-weight: 700 !important; line-height: 1.6 !important; }
.sg-bpost__date { display: block; margin: 0 0 26px; color: var(--sg-muted); font-size: 12px; font-weight: 600; }
.sg-bpost .ab-bpost__content { margin-top: 0 !important; }
@media (max-width: 640px) {
  .sg-bpost__cover { aspect-ratio: 16 / 10; }
  .sg-bpost__title { font-size: 17px !important; }
}

/* product-card badge — capped width; long text scrolls inside it like the announcement marquee (sgFitBadges) */
.ab-card-new { max-width: 70%; overflow: hidden; white-space: nowrap; }
.ab-card-new__track { display: inline-flex; gap: 24px; }
.ab-card-new.is-marquee { text-align: start; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%); }
.ab-card-new.is-marquee .ab-card-new__track { animation: sg-badge-marquee var(--sg-badge-dur, 6s) linear infinite; }
[dir="rtl"] .ab-card-new.is-marquee .ab-card-new__track { animation-name: sg-badge-marquee-rtl; }
@keyframes sg-badge-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 12px)); } }
@keyframes sg-badge-marquee-rtl { from { transform: translateX(0); } to { transform: translateX(calc(50% + 12px)); } }
.ab-card:hover .ab-card-new.is-marquee .ab-card-new__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ab-card-new.is-marquee .ab-card-new__track { animation: none; } .ab-card-new { text-overflow: ellipsis; } }

/* PDP — «المواصفات» hidden; «خيارات المنتج» list under the description (segadty.com options-table):
   per variant a row of [image · option name/value pairs · price] */
.sg-pdp-acc--specs, [data-pdp-specs-tab] { display: none !important; }
.sg-vtable { display: flex; flex-direction: column; gap: 22px; padding: 4px 0 8px; }
.sg-vtable__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 12px; }
.sg-vtable__media { width: 50px; height: 50px; overflow: hidden; border-radius: 6px; background: var(--sg-page); }
.sg-vtable__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sg-vtable__attrs { display: flex; flex-direction: column; gap: 14px; }
.sg-vtable__item, .sg-vtable__price { display: flex; flex-direction: column; gap: 10px; }
.sg-vtable__name { color: var(--sg-ink-soft); font-size: 11px; font-weight: 700; }
.sg-vtable__val { color: var(--sg-muted); font-size: 11px; font-weight: 600; }
.sg-vtable__amount { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.sg-vtable__amount s { color: var(--sg-muted); font-size: 10px; font-weight: 600; }
.sg-vtable__amount b { color: var(--sg-ink); font-weight: 700; }
.sg-vtable__amount b.is-sale { color: var(--sg-sale, #ff5f5f); }
@media (max-width: 640px) { .sg-vtable__row { grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1fr); } }
/* variant image — centred vertically against its option rows, bigger, fills its rounded box */
.sg-vtable__row { align-items: center; }
.sg-vtable__media { width: 76px; height: 76px; border-radius: 8px; align-self: center; }
.sg-vtable__media img { object-fit: cover; }
.sg-vtable__price { align-self: start; }
@media (max-width: 640px) { .sg-vtable__row { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); } .sg-vtable__media { width: 64px; height: 64px; } }
/* variant image shown as the original photo — natural ratio, no square crop / white card box */
.sg-vtable__media { width: 84px !important; height: auto !important; border-radius: 0 !important; background: transparent !important; overflow: visible !important; }
.sg-vtable__media img { width: 100% !important; height: auto !important; max-height: 110px; object-fit: contain !important; border-radius: 6px; }
@media (max-width: 640px) { .sg-vtable__row { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr) !important; } .sg-vtable__media { width: 72px !important; } }

/* PDP related products — centred «ربما يعجبك أيضًا» title with the 3×3 grid icon */
.ab-related .sg-related__title { display: flex !important; align-items: center; justify-content: center !important; gap: 10px; text-align: center !important; margin: 0 0 24px !important; color: var(--sg-ink-soft) !important; font-size: 15px !important; font-weight: 700 !important; }
.sg-related__ico { flex: none; color: var(--sg-primary); }

/* product-card badge — smaller fixed pill, text always scrolling (shift = one copy, set by sgFitBadges) */
.ab-card-new { width: min(86px, 70%); max-width: none; padding: 3px 0 !important; font-size: 11px !important; line-height: 1.4; text-align: start; }
.ab-card-new__track { gap: 16px; padding-inline: 8px; }
.ab-card-new.is-marquee .ab-card-new__track { animation: sg-badge-loop var(--sg-badge-dur, 5s) linear infinite !important; }
[dir="rtl"] .ab-card-new.is-marquee .ab-card-new__track { animation-name: sg-badge-loop-rtl !important; }
@keyframes sg-badge-loop { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--sg-badge-shift, 60px))); } }
@keyframes sg-badge-loop-rtl { from { transform: translateX(0); } to { transform: translateX(var(--sg-badge-shift, 60px)); } }
@media (max-width: 640px) { .ab-card-new { width: min(74px, 70%); font-size: 10px !important; top: 8px !important; inset-inline-end: 8px !important; } }
/* badge marquee without the edge fade — plain pill, text simply clipped by its rounded edges */
.ab-card-new, .ab-card-new.is-marquee { -webkit-mask-image: none !important; mask-image: none !important; }

/* footer social — segadty .svg-icon.icon-instagram / .icon-tiktok (masked 512 artwork, takes the button colour) */
.svg-icon.icon-instagram, .svg-icon.icon-tiktok {
  display: inline-block; flex: none; width: 30px; height: 30px; background-color: currentColor;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.svg-icon.icon-instagram { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M361,116H151c-19.8,0-35,15.2-35,35V361c0,19.7,15.2,35,35,35H361c19.7,0,35-15.2,35-35V151C396,131.3,380.7,116,361,116L361,116z M256.2,201c31,0,56.2,24.4,56.2,54.5c0,30.1-25.2,54.5-56.2,54.5c-31,0-56.2-24.4-56.2-54.5C200,225.4,225.2,201,256.2,201z M361,352.2c0,6.1-2.6,8.8-8.8,8.8H159.8c-6.1,0-8.8-2.6-8.8-8.8V229.8l21.8,4.7c-2.3,7.6-3.6,15.7-3.6,24c0,46.5,39,84.3,87,84.3c48,0,87-37.7,87-84.3c0-8.4-1.3-16.4-3.6-24l21.4-4.7L361,352.2L361,352.2z M361,194.8c0,4.8-3.9,8.8-8.8,8.8h-35c-4.8,0-8.8-3.9-8.8-8.8v-35c0-4.8,3.9-8.8,8.8-8.8h35c4.8,0,8.8,3.9,8.8,8.8V194.8z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M361,116H151c-19.8,0-35,15.2-35,35V361c0,19.7,15.2,35,35,35H361c19.7,0,35-15.2,35-35V151C396,131.3,380.7,116,361,116L361,116z M256.2,201c31,0,56.2,24.4,56.2,54.5c0,30.1-25.2,54.5-56.2,54.5c-31,0-56.2-24.4-56.2-54.5C200,225.4,225.2,201,256.2,201z M361,352.2c0,6.1-2.6,8.8-8.8,8.8H159.8c-6.1,0-8.8-2.6-8.8-8.8V229.8l21.8,4.7c-2.3,7.6-3.6,15.7-3.6,24c0,46.5,39,84.3,87,84.3c48,0,87-37.7,87-84.3c0-8.4-1.3-16.4-3.6-24l21.4-4.7L361,352.2L361,352.2z M361,194.8c0,4.8-3.9,8.8-8.8,8.8h-35c-4.8,0-8.8-3.9-8.8-8.8v-35c0-4.8,3.9-8.8,8.8-8.8h35c4.8,0,8.8,3.9,8.8,8.8V194.8z'/%3E%3C/svg%3E"); }
.svg-icon.icon-tiktok { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M394.2,177.4c-18,0-34.6-6-47.9-16C331,149.9,320,133,316.1,113.5c-1-4.8-1.5-9.8-1.5-14.9h-51.4V239l-0.1,77c0,20.6-13.4,38-32,44.2c-5.4,1.8-11.2,2.6-17.3,2.3c-7.7-0.4-15-2.8-21.3-6.5c-13.4-8-22.5-22.6-22.8-39.2c-0.4-26,20.6-47.2,46.6-47.2c5.1,0,10.1,0.8,14.7,2.4v-38.4v-13.8c-4.9-0.7-9.8-1.1-14.8-1.1c-28.5,0-55.1,11.8-74.1,33.1c-14.4,16.1-23,36.6-24.3,58.2c-1.7,28.3,8.6,55.2,28.7,75.1c3,2.9,6,5.6,9.3,8.1c17.2,13.3,38.3,20.4,60.4,20.4c5,0,10-0.4,14.8-1.1c20.7-3.1,39.8-12.5,54.9-27.5c18.5-18.3,28.8-42.6,28.9-68.5l-0.3-114.9c8.8,6.8,18.5,12.5,28.9,16.8c16.1,6.8,33.2,10.3,50.8,10.3v-37.3L394.2,177.4C394.4,177.4,394.2,177.4,394.2,177.4L394.2,177.4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M394.2,177.4c-18,0-34.6-6-47.9-16C331,149.9,320,133,316.1,113.5c-1-4.8-1.5-9.8-1.5-14.9h-51.4V239l-0.1,77c0,20.6-13.4,38-32,44.2c-5.4,1.8-11.2,2.6-17.3,2.3c-7.7-0.4-15-2.8-21.3-6.5c-13.4-8-22.5-22.6-22.8-39.2c-0.4-26,20.6-47.2,46.6-47.2c5.1,0,10.1,0.8,14.7,2.4v-38.4v-13.8c-4.9-0.7-9.8-1.1-14.8-1.1c-28.5,0-55.1,11.8-74.1,33.1c-14.4,16.1-23,36.6-24.3,58.2c-1.7,28.3,8.6,55.2,28.7,75.1c3,2.9,6,5.6,9.3,8.1c17.2,13.3,38.3,20.4,60.4,20.4c5,0,10-0.4,14.8-1.1c20.7-3.1,39.8-12.5,54.9-27.5c18.5-18.3,28.8-42.6,28.9-68.5l-0.3-114.9c8.8,6.8,18.5,12.5,28.9,16.8c16.1,6.8,33.2,10.3,50.8,10.3v-37.3L394.2,177.4C394.4,177.4,394.2,177.4,394.2,177.4L394.2,177.4z'/%3E%3C/svg%3E"); }

/* cart page — segadty .svg-icon.icon-delete (trash, masked, muted grey → error on hover) */
.svg-icon.icon-delete {
  display: inline-block; flex: none; width: 24px; height: 24px; background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 3.5H2.5H10.5' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 3.5V2.5C4 2.23478 4.10536 1.98043 4.29289 1.79289C4.48043 1.60536 4.73478 1.5 5 1.5H7C7.26522 1.5 7.51957 1.60536 7.70711 1.79289C7.89464 1.98043 8 2.23478 8 2.5V3.5M9.5 3.5V10.5C9.5 10.7652 9.39464 11.0196 9.20711 11.2071C9.01957 11.3946 8.76522 11.5 8.5 11.5H3.5C3.23478 11.5 2.98043 11.3946 2.79289 11.2071C2.60536 11.0196 2.5 10.7652 2.5 10.5V3.5H9.5Z' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 3.5H2.5H10.5' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 3.5V2.5C4 2.23478 4.10536 1.98043 4.29289 1.79289C4.48043 1.60536 4.73478 1.5 5 1.5H7C7.26522 1.5 7.51957 1.60536 7.70711 1.79289C7.89464 1.98043 8 2.23478 8 2.5V3.5M9.5 3.5V10.5C9.5 10.7652 9.39464 11.0196 9.20711 11.2071C9.01957 11.3946 8.76522 11.5 8.5 11.5H3.5C3.23478 11.5 2.98043 11.3946 2.79289 11.2071C2.60536 11.0196 2.5 10.7652 2.5 10.5V3.5H9.5Z' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
}
.ab-cart .ab-line:not(.compact) .az-cartline__act { color: #8A8A8A !important; background: transparent !important; border: 0 !important; }
.ab-cart .ab-line:not(.compact) .az-cartline__act:hover { color: var(--sg-error, #d94141) !important; }

/* cart page quantity stepper — same as the side cart: light grey pill-less bar, frameless − / + */
.ab-cart .ab-line:not(.compact) .az-qty {
  display: inline-flex !important; align-items: center; justify-content: space-between;
  width: 130px !important; height: 28px !important; padding: 0 6px; border: 0 !important; border-radius: 3px !important;
  background: color-mix(in srgb, var(--sg-ink) 4%, var(--sg-page)) !important;
}
.ab-cart .ab-line:not(.compact) .az-qty button {
  width: 26px; height: 26px; border: 0 !important; background: transparent !important;
  color: var(--sg-ink) !important; font-size: 16px; font-weight: 500; cursor: pointer;
}
.ab-cart .ab-line:not(.compact) .az-qty .val, .ab-cart .ab-line:not(.compact) .az-qty input { color: var(--sg-ink-soft) !important; font-size: 12px !important; font-weight: 500 !important; }

/* cart page bottom — single column: [gift + links] · [coupon] · [«تفاصيل الفاتورة» box], each a full-width row */
.ab-cart .ab-cart-bottom { display: flex !important; flex-direction: column; gap: 18px; grid-template-columns: none !important; direction: inherit !important; }
.ab-cart .ab-cart-bottom[hidden] { display: none !important; }
.ab-cart .ab-cart-extras, .ab-cart .ab-cart-sum { width: 100% !important; max-width: none !important; justify-self: stretch; }
.ab-cart .ab-cart-extras:not(:has(> *:not(.az-cartlinks))) { padding-block: 0 !important; }
.sg-cart-sum__title { margin: 0 0 18px; color: var(--sg-ink); font-size: 16px; font-weight: 700; text-align: start; }

/* cart page coupon = side-cart coupon: one light rounded bar, frameless input, «تطبيق» flush at the end, full height */
.sg-cart-coupon { padding: 0 !important; background: transparent !important; }
.sg-cart-coupon .az-coupon.ab-coupon { background: transparent !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; box-shadow: none !important; }
.sg-cart-coupon .az-coupon label { display: none !important; }
.sg-cart-coupon .send-coupon-form .row {
  display: flex !important; flex-wrap: nowrap !important; align-items: stretch; gap: 0 !important; margin: 0 !important; padding: 0 !important;
  height: 46px; overflow: hidden; border-radius: 6px !important; background: color-mix(in srgb, var(--sg-ink) 3%, var(--sg-page)) !important;
}
.sg-cart-coupon .send-coupon-form .row:focus-within { box-shadow: 0 0 0 1.5px var(--sg-primary); }
.sg-cart-coupon .send-coupon {
  flex: 1 1 auto; width: auto !important; min-width: 0; height: 100% !important; padding: 0 14px !important; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important; outline: 0; color: var(--sg-ink) !important; font: 500 13px var(--sg-font) !important;
}
.sg-cart-coupon .send-coupon::placeholder { color: var(--sg-ink-soft); }
.sg-cart-coupon .send-coupon-button {
  flex: none; align-self: stretch; min-width: 110px; height: auto !important; min-height: 100% !important; margin: 0 !important; padding: 0 18px !important;
  border: 0 !important; border-radius: 0 !important; background: var(--sg-primary) !important; color: var(--sg-on-primary) !important;
  font-size: 13px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important;
}
.sg-cart-coupon .send-coupon-button:hover { background: var(--sg-primary-hover) !important; }
.sg-cart-coupon .coupon-applied-section > div { min-height: 46px; border-radius: 6px !important; border: 0 !important; background: var(--sg-primary-tint) !important; }
/* cart page — coupon bar centred, wider, a bit shorter; payment icons centred under «متابعة التسوق» */
.sg-cart-coupon { width: min(100%, 680px); margin-inline: auto; }
.sg-cart-coupon .send-coupon-form .row { height: 40px; }
.sg-cart-coupon .send-coupon { padding: 0 12px !important; }
.sg-cart-coupon .send-coupon-button { min-width: 100px; padding: 0 16px !important; }
.sg-cart-coupon .coupon-applied-section > div { min-height: 40px; }
.ab-cart .ab-cart-extras:empty, .ab-cart .ab-cart-extras:not(:has(*)) { display: none !important; }
.ab-cart .ab-cart-payicons { justify-content: center !important; }

/* cart page sticky checkout bar — reserve its height at the end of the page so the footer (copyright) isn't covered */
body[data-template="cart_page"]:has(.ab-cart-bottom:not([hidden]) .sg-cart-bar) { padding-bottom: 86px; }
@media (max-width: 767px) { body[data-template="cart_page"]:has(.ab-cart-bottom:not([hidden]) .sg-cart-bar) { padding-bottom: 78px; } }
/* the summary column was `position: sticky` (a stacking context) — that trapped the fixed checkout bar under the footer.
   It is a full-width row now, so no sticky; the bar sits above the page content (still under drawers / side cart) */
.ab-cart .ab-cart-sum, .ab-cart .az-cartsum.ab-cart-sum { position: static !important; top: auto !important; }
.sg-cart-bar { z-index: 1500 !important; }
/* cart page: the room for the sticky checkout bar lives inside the footer (its colour runs under the bar) — no white strip */
body[data-template="cart_page"]:has(.ab-cart-bottom:not([hidden]) .sg-cart-bar) { padding-bottom: 0 !important; }
body[data-template="cart_page"]:has(.ab-cart-bottom:not([hidden]) .sg-cart-bar) footer.sg-ftr { padding-bottom: 98px !important; }
@media (max-width: 767px) { body[data-template="cart_page"]:has(.ab-cart-bottom:not([hidden]) .sg-cart-bar) footer.sg-ftr { padding-bottom: 90px !important; } }

/* product card image (segadty .thumb .card-bg) — a card-colour band behind the lower 35% of the image, rounded top
   corners, melting into the card body; transparent product photos sit half on white, half on the band */
.ab-card .media::before, .ab-card .az-card__media::before {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 35%; z-index: 0; pointer-events: none;
  background: var(--sg-card, #f6f6f6); border-radius: var(--sg-radius-card, 10px) var(--sg-radius-card, 10px) 0 0;
}
.ab-card .media > a, .ab-card .az-card__media > a { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.ab-card .media img, .ab-card .az-card__media img { position: relative; z-index: 1; background: transparent !important; }
.ab-card .media img.secondary-image { position: absolute; }

/* product card title — smaller (12px desktop · 11px phones; large slider 12px) */
.ab-card .product-card-title, .ab-card h3.az-card__title { font-size: 12px !important; }
.sg-rail--lg .ab-card .product-card-title, .sg-rail--lg .ab-card h3.az-card__title { font-size: 12px !important; }
@media (max-width: 640px) { .ab-card .product-card-title, .ab-card h3.az-card__title { font-size: 11px !important; } }
/* product card title — smaller again (11px desktop · 10px phones) */
.ab-card .product-card-title, .ab-card h3.az-card__title, .sg-rail--lg .ab-card .product-card-title, .sg-rail--lg .ab-card h3.az-card__title { font-size: 11px !important; }
@media (max-width: 640px) { .ab-card .product-card-title, .ab-card h3.az-card__title { font-size: 10px !important; } }

/* product card — smaller CTA (desktop 32px / 12px, phones 28px / 11px) and title (10px desktop · 9.5px phones) */
.ab-card .sg-card-cta { height: 32px !important; gap: 6px !important; padding: 0 6px 0 10px !important; font-size: 12px !important; }
.ab-card .sg-card-cta__ico { width: 18px !important; height: 18px !important; }
.ab-card .sg-card-cta__ico svg { width: 12px; height: 12px; }
.ab-card .product-card-title, .ab-card h3.az-card__title, .sg-rail--lg .ab-card .product-card-title, .sg-rail--lg .ab-card h3.az-card__title { font-size: 10px !important; }
@media (max-width: 640px) {
  .ab-card .sg-card-cta { height: 28px !important; gap: 5px !important; padding: 0 5px 0 8px !important; font-size: 11px !important; }
  .ab-card .sg-card-cta__ico { width: 16px !important; height: 16px !important; }
  .ab-card .sg-card-cta__ico svg { width: 11px; height: 11px; }
  .ab-card .product-card-title, .ab-card h3.az-card__title { font-size: 9.5px !important; }
}
/* product card title — 1px larger and heavier (11px desktop · 10.5px phones, bold) */
.ab-card .product-card-title, .ab-card h3.az-card__title, .sg-rail--lg .ab-card .product-card-title, .sg-rail--lg .ab-card h3.az-card__title { font-size: 11px !important; font-weight: 700 !important; }
.ab-card .product-card-title a { font-weight: inherit !important; }
@media (max-width: 640px) { .ab-card .product-card-title, .ab-card h3.az-card__title { font-size: 10.5px !important; } }

/* PDP — heavier product name; option chips / colour swatches a little smaller */
.ab-pdp .ab-buybox .ttl, .ab-pdp h1.title-product, .ab-pdp .ttl, .ab-pdp .title-product { font-weight: 700 !important; }
.ab-pdp .ab-sizes { gap: 8px !important; }
.ab-pdp [data-variant-choice][data-variant-kind="text"] { min-height: 26px !important; padding: 4px 9px !important; font-size: 12px !important; }
.ab-pdp [data-variant-choice][data-variant-kind="text"][aria-pressed="true"],
.ab-pdp [data-variant-choice][data-variant-kind="text"].on { min-height: 32px !important; padding: 6px 10px !important; font-size: 13px !important; }
.ab-pdp [data-variant-choice][data-variant-kind="color"] { width: 30px !important; height: 30px !important; min-width: 30px !important; min-height: 30px !important; }
/* PDP text options — chips size to their label on one line (was a 4-col / 3-col grid that wrapped long labels) */
.ab-pdp .ab-sizes, .ab-pdp [data-variant-option-group]:has([data-variant-kind="text"]) {
  display: flex !important; flex-wrap: wrap; align-items: center; grid-template-columns: none !important;
}
.ab-pdp [data-variant-choice][data-variant-kind="text"] { flex: none; width: auto !important; max-width: 100%; white-space: nowrap; }

/* side cart — starts 32px below the top of the screen with rounded top corners (segadty), page dimmed behind it */
#side-cart, #side-cart.offcanvas, #side-cart.offcanvas.offcanvas-end {
  top: 32px !important; bottom: 0 !important; height: auto !important; max-height: calc(100% - 32px) !important;
  border-radius: 16px 16px 0 0 !important; overflow: hidden;
}

/* mobile drawer — starts 32px below the top (like the side cart); top-corner home link = segadty .svg-icon.home-icon */
.kl-drawer.sg-mdrawer, #mobile-drawer { top: 32px !important; bottom: 0 !important; height: auto !important; }
.svg-icon.home-icon {
  display: inline-block; flex: none; width: 20px; height: 20px; background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.0002 5H8.2002C7.08009 5 6.51962 5 6.0918 5.21799C5.71547 5.40973 5.40973 5.71547 5.21799 6.0918C5 6.51962 5 7.08009 5 8.2002V15.8002C5 16.9203 5 17.4801 5.21799 17.9079C5.40973 18.2842 5.71547 18.5905 6.0918 18.7822C6.5192 19 7.07899 19 8.19691 19H15.8031C16.921 19 17.48 19 17.9074 18.7822C18.2837 18.5905 18.5905 18.2839 18.7822 17.9076C19 17.4802 19 16.921 19 15.8031V14M20 9V4M20 4H15M20 4L13 11' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.0002 5H8.2002C7.08009 5 6.51962 5 6.0918 5.21799C5.71547 5.40973 5.40973 5.71547 5.21799 6.0918C5 6.51962 5 7.08009 5 8.2002V15.8002C5 16.9203 5 17.4801 5.21799 17.9079C5.40973 18.2842 5.71547 18.5905 6.0918 18.7822C6.5192 19 7.07899 19 8.19691 19H15.8031C16.921 19 17.48 19 17.9074 18.7822C18.2837 18.5905 18.5905 18.2839 18.7822 17.9076C19 17.4802 19 16.921 19 15.8031V14M20 9V4M20 4H15M20 4L13 11' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
}
.sg-mdrawer__home { display: inline-grid !important; place-items: center; width: 25px !important; height: 25px !important; border-radius: 4px !important; color: var(--sg-on-primary) !important; text-decoration: none !important; }
/* header burger — no hover colour / background (the three lines still even out on hover) */
.hdr-menu-btn:hover, .hdr-menu-btn:focus-visible, .hdr-menu-btn:active { background: transparent !important; color: var(--sg-header-on) !important; }
.hdr-menu-btn:hover .sg-burger { color: var(--sg-header-on) !important; }

/* header icon row = segadty.com measurements: full-width row, icons 15px from the screen edges;
   burger / cart buttons 36×34 with 22px artwork; search 20px glyph 5px after the cart; logo 40px tall, centred */
.sg-hdr .sg-hdr__row { max-width: none !important; padding-inline: 15px !important; }
.sg-hdr .sg-hdr__start, .sg-hdr .sg-hdr__end { gap: 5px !important; }
.sg-hdr .hdr-menu-btn { width: 36px !important; height: 34px !important; padding: 6px 7.2px !important; }
.sg-hdr .sg-burger { width: 22px !important; height: 22px !important; }
.sg-hdr a.hdr-icon-btn.sg-hdr-cart { width: 36px !important; height: 34px !important; padding: 6px 7.2px !important; }
.sg-hdr .sg-hdr-cart .sg-hdr-cart__ico, .sg-hdr .sg-hdr-cart .sg-hdr-cart__ico svg { width: 22px !important; height: 22px !important; }
.sg-hdr .sg-hdr-cart .count-holder { top: 7px !important; }
.sg-hdr .sg-hdr__search { width: 20px !important; height: 34px !important; padding: 0 !important; }
.sg-hdr .sg-hdr__search svg { width: 20px !important; height: 20px !important; }
.sg-hdr .sg-hdr__search:hover { background: transparent !important; }

/* «الصور المتحركة» — dots over the image like segadty.com: 10px above the bottom edge, 6px bullets 8px apart,
   inactive = ink at 20%, active = primary */
.sg-banner-sec .sg-container { position: relative; }
.sg-banner-sec .sg-dots {
  position: absolute !important; inset-inline: 0; bottom: 10px; z-index: 3; margin: 0 !important; gap: 0 !important; pointer-events: none;
}
.sg-banner-sec .sg-dots .swiper-pagination-bullet {
  width: 6px; height: 6px; margin: 0 4px !important; border-radius: 50%; background: #000 !important; opacity: .2 !important; pointer-events: auto;
}
.sg-banner-sec .sg-dots .swiper-pagination-bullet-active { background: var(--sg-primary) !important; opacity: 1 !important; }

/* product sliders with fewer cards than the row holds (Swiper locks itself) — cards centred in the section */
/* (Swiper 12 reports isLocked without a class — the theme's own .is-scrollable flag on .sg-rail__wrap is the signal) */
.sg-rail .sg-rail__wrap:not(.is-scrollable) .swiper > .swiper-wrapper { justify-content: center; }
.sg-rail .sg-rail__wrap:not(.is-scrollable) .swiper > .swiper-wrapper > .swiper-slide:last-child { margin-left: 0 !important; margin-right: 0 !important; }

/* ===== product card = segadty.com metrics (measured live, 400px and 1352px) =====
   small sliders: card 180px (phones) / 223px (≥768px), 10px apart · image square, 10px radius · body 0 10px 10px on
   #f6f6f6 · title 11px/500 black, 2 lines (31px) right under the image · price row 9px below · bottom row 15px below:
   stars 13px + count 10px · CTA 30px tall, 5px 8px padding, 5px radius, 12px/500, 15px icon */
.sg-rail:not(.sg-rail--lg) .swiper-slide { width: 180px !important; }
@media (min-width: 768px) { .sg-rail:not(.sg-rail--lg) .swiper-slide { width: 223px !important; } }
.ab-card .sg-card__body, .ab-card-body.sg-card__body { padding: 0 10px 10px !important; gap: 0 !important; }
.ab-card h3.az-card__title, .ab-card .product-card-title, .ab-card .product-card-title.az-card__title, .sg-rail--lg .ab-card h3.az-card__title {
  display: -webkit-box !important; -webkit-box-orient: vertical !important; -webkit-line-clamp: 2 !important; overflow: hidden !important;
  height: calc(2 * 1.4em) !important; min-height: calc(2 * 1.4em) !important; max-height: none !important; margin: 0 !important;
  font-size: 11px !important; font-weight: 500 !important; line-height: 1.4 !important; color: #000 !important; align-items: initial !important;
}
.ab-card .product-card-title a { display: inline !important; font-weight: 500 !important; line-height: inherit !important; -webkit-line-clamp: unset !important; }
.ab-card .ab-card-meta { margin: 9px 0 0 !important; min-height: 19px; }
.ab-card .sg-card__bottom { margin-top: 23px !important; padding-top: 0 !important; align-items: flex-start !important; gap: 6px !important; }
.ab-card .sg-card__rate .svg-icon.star-icon, .ab-card .sg-stars .svg-icon.star-icon { width: 13px !important; height: 13px !important; }
.ab-card .sg-card__count { font-size: 10px !important; font-weight: 500 !important; color: #999 !important; }
.ab-card .sg-card-cta {
  height: 30px !important; min-height: 30px !important; padding: 5px 8px !important; gap: 7px !important; border-radius: 5px !important;
  font-size: 12px !important; font-weight: 500 !important; line-height: 1 !important;
}
.ab-card .sg-card-cta__ico { width: 15px !important; height: 15px !important; }
.ab-card .sg-card-cta__ico svg { width: 15px !important; height: 15px !important; }

/* «الصور المتحركة» = segadty.com: full width minus 10px each side at every size, height follows the image ratio */
.sg-banner-sec { padding-inline: 0 !important; }
.sg-banner-sec > .sg-container { width: calc(100% - 20px) !important; max-width: none !important; }
.sg-banner-sec .sg-banner__slide { height: auto !important; aspect-ratio: auto !important; }
.sg-banner-sec .sg-banner__slide picture { height: auto; }
.sg-banner-sec .sg-banner__img { height: auto !important; object-fit: contain; aspect-ratio: auto 990 / 424; }
/* categories section — tile name like segadty.com: 12px / 500, primary */
.sg-catlist .sg-cat__name, .sg-catlist .sg-cats--3 .sg-cat__name { font-size: 12px !important; font-weight: 500 !important; }
/* product card — breathing room between the image and the product name (design request) */
.ab-card .sg-card__body, .ab-card-body.sg-card__body { padding-top: 10px !important; }

/* header nav — category icon (from «تصنيفات القائمة») beside the link */
.hdr-nav .nav-link.has-ico { gap: 6px; }
.sg-nav-ico { width: 20px; height: 20px; flex: none; object-fit: contain; border-radius: 3px; }

/* mobile drawer — cart / account / language rows follow the categories in the same scroll (not pinned to the bottom),
   same inline padding as the list; icon tiles #f9f9f9; square drawer corners */
.kl-drawer.sg-mdrawer, #mobile-drawer { border-radius: 0 !important; overflow-y: auto !important; overflow-x: hidden !important; }
#mobile-drawer .sg-mdrawer__list { flex: none !important; overflow: visible !important; padding-bottom: 0 !important; }
#mobile-drawer .sg-mdrawer__foot { padding: 0 16px 24px !important; gap: 0 !important; }
#mobile-drawer .sg-mdrawer__util { min-height: 46px; }
#mobile-drawer .sg-mdrawer__ico { background: #f9f9f9 !important; }

/* mobile drawer — more room above the logo row (spacing below unchanged) */
#mobile-drawer .sg-mdrawer__top { padding-top: 34px !important; }

/* product sliders on phones — exactly two cards per row, 10px apart */
@media (max-width: 767px) {
  .sg-rail:not(.sg-rail--lg) .swiper-slide { width: calc((100% - 10px) / 2) !important; }
}

/* «الصور المتحركة» — no empty band under the slider (the dots sit on the image now); image stays whole */
.sg-banner-sec { padding-bottom: 12px !important; }

/* section heading — small gap between the title and its subtitle (matches «شوفها على الطبيعة») */
.sg-head__sub, .sg-testi__sub { margin-top: 8px !important; }

/* product sliders — swipe hint in its own gutter on the right (physical), beside the cards, not over them */
.sg-rail__wrap.is-scrollable { padding-right: 40px; }
.sg-rail__wrap > .sg-swipe {
  right: 4px !important; left: auto !important; top: 40% !important; width: 32px !important; height: 32px !important;
  background: transparent !important; box-shadow: none !important; border-radius: 0 !important; color: #cfcfcf !important;
}
.sg-rail__wrap > .sg-swipe svg { width: 26px !important; height: 26px !important; }
@media (max-width: 767px) {
  .sg-rail__wrap.is-scrollable { padding-right: 30px; }
  .sg-rail__wrap > .sg-swipe { right: 0 !important; width: 28px !important; }
  .sg-rail__wrap > .sg-swipe svg { width: 22px !important; height: 22px !important; }
}

/* product sliders on desktop = segadty.com row: full page width, 223px cards 10px apart (≈5.5 visible at 1352px),
   55px start gutter on the right holding the swipe hint; the section clips the overflow */
@media (min-width: 768px) {
  .sg-rail:not(.sg-rail--lg) { overflow-x: clip; }
  .sg-rail:not(.sg-rail--lg) .sg-rail__wrap {
    margin-left: calc(50% - 50vw + var(--sg-sbw, 0px) / 2); margin-right: calc(50% - 50vw + var(--sg-sbw, 0px) / 2);
  }
  .sg-rail:not(.sg-rail--lg) .sg-rail__wrap.is-scrollable { padding-right: 55px; }
  .sg-rail:not(.sg-rail--lg) .sg-rail__wrap > .sg-swipe { right: 12px !important; }
}

/* «فروعنا» (segadty.com branches block): 48px / 700 muted title · centred pill buttons 50px (12px 32px, 16px / 700,
   1px primary border; active = filled) · map 20px radius with soft shadow · popup 420px card, 20px radius */
.sg-branches { text-align: center; }
.sg-branches__title { margin: 0 0 12px; color: #777; font-size: 48px; font-weight: 700; line-height: 1.5; }
.sg-branches__sub { margin: 0 0 12px; color: var(--sg-muted); font-size: 14px; }
.sg-branches__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 0 0 34px; }
.sg-branches__btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 32px;
  border: 1px solid var(--sg-primary); border-radius: 999px; background: var(--sg-page); color: var(--sg-primary);
  font: 700 16px/1.6 var(--sg-font); cursor: pointer; transition: background var(--sg-duration) var(--sg-ease), color var(--sg-duration) var(--sg-ease);
}
.sg-branches__btn:hover, .sg-branches__btn.is-active { background: var(--sg-primary); color: var(--sg-on-primary); }
.sg-branches__map { height: var(--sg-map-h, 520px); overflow: hidden; border-radius: 20px; background: var(--sg-panel); box-shadow: 0 12px 30px rgba(0, 0, 0, .08); }
.sg-branches__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.sg-branches__modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .5); }
.sg-branches__modal[hidden] { display: none !important; }
.sg-branches__dialog { position: relative; width: min(100%, 420px); padding: 38px 30px 32px; border-radius: 20px; background: var(--sg-page); box-shadow: 0 12px 30px rgba(0, 0, 0, .15); text-align: center; }
.sg-branches__dialog strong { display: block; margin: 0 0 12px; color: var(--sg-primary); font-size: 26px; font-weight: 700; line-height: 1.5; }
.sg-branches__dialog p { margin: 0; color: #666; font-size: 17px; font-weight: 500; line-height: 1.8; }
.sg-branches__close { position: absolute; top: 8px; inset-inline-start: 14px; padding: 0; border: 0; background: transparent; color: var(--sg-primary); font-size: 24px; line-height: 1; cursor: pointer; }
@media (max-width: 767px) {
  .sg-branches__title { font-size: 30px; }
  .sg-branches__tabs { gap: 10px; margin-bottom: 22px; }
  .sg-branches__btn { min-height: 42px; padding: 8px 20px; font-size: 14px; }
  .sg-branches__map { height: min(var(--sg-map-h, 520px), 360px); border-radius: 16px; }
  .sg-branches__dialog strong { font-size: 22px; }
  .sg-branches__dialog p { font-size: 15px; }
}
/* آراء المتسوقين — tighter title → subtitle gap */
.sg-testi__sub { margin-top: 10px !important; }

/* product card image spinner — while the photo loads the image box stays plain white with a thin grey ring in the
   middle (no card band, no image); the img onload/onerror drops .is-loading */
@keyframes sg-card-spin { to { transform: rotate(360deg); } }
.ab-card .az-card__media.is-loading::before { opacity: 0; }
.ab-card .az-card__media.is-loading img { opacity: 0; }
.ab-card .az-card__media.is-loading::after {
  content: ""; position: absolute; top: 50%; left: 50%; z-index: 2; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 2px solid #e6e6e6; border-top-color: #9b9b9b; border-radius: 50%; pointer-events: none;
  animation: sg-card-spin .8s linear infinite;
}

/* card icons as CSS masks (one rule each) instead of an inline <svg> repeated in every card — lighter pages */
.sg-ico { display: inline-block; width: 15px; height: 15px; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.sg-ico--cal { width: 14px; height: 14px; }
.ab-card-bundle__icon .sg-ico { width: 16px; height: 16px; }
.sg-ico--list { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 512 512%22 fill=%22%23000%22%3E%3Cpath fill-rule=%22evenodd%22 clip-rule=%22evenodd%22 d=%22M478.9,33.1c-21.2-21.2-50-33.1-80-33.1H113.1c-30,0-58.8,11.9-80,33.1S0,83.1,0,113.1v285.8c0,30,11.9,58.8,33.1,80c21.2,21.2,50,33.1,80,33.1h285.8c30,0,58.8-11.9,80-33.1c21.2-21.2,33.1-50,33.1-80V113.1C512,83.1,500.1,54.3,478.9,33.1z M184.9,165.1h177.9c9.8,0,17.8,8,17.8,17.8s-8,17.8-17.8,17.8H184.9c-9.8,0-17.8-8-17.8-17.8S175.1,165.1,184.9,165.1z M131.6,165.1c9.8,0,17.8,8,17.8,17.8s-8,17.8-17.8,17.8s-17.8-8-17.8-17.8S121.8,165.1,131.6,165.1z M131.6,325.2c9.8,0,17.8,8,17.8,17.8s-8,17.8-17.8,17.8s-17.8-8-17.8-17.8S121.8,325.2,131.6,325.2z M131.6,245.1c9.8,0,17.8,8,17.8,17.8s-8,17.8-17.8,17.8s-17.8-8-17.8-17.8S121.8,245.1,131.6,245.1z M300.5,360.8H184.9c-9.8,0-17.8-8-17.8-17.8s8-17.8,17.8-17.8h115.6c9.8,0,17.8,8,17.8,17.8S310.3,360.8,300.5,360.8z M380.5,280.7H184.9c-9.8,0-17.8-8-17.8-17.8s8-17.8,17.8-17.8h195.6c9.8,0,17.8,8,17.8,17.8S390.4,280.7,380.5,280.7z%22/%3E%3C/svg%3E"); }
.sg-ico--plus { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22%23000%22%3E%3Cpath fill-rule=%22evenodd%22 clip-rule=%22evenodd%22 d=%22M5.4 0h13.2A5.4 5.4 0 0 1 24 5.4v13.2a5.4 5.4 0 0 1-5.4 5.4H5.4A5.4 5.4 0 0 1 0 18.6V5.4A5.4 5.4 0 0 1 5.4 0z M11 6h2v5h5v2h-5v5h-2v-5H6v-2h5z%22/%3E%3C/svg%3E"); }
.sg-ico--x { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22%23000%22%3E%3Cpath fill-rule=%22evenodd%22 clip-rule=%22evenodd%22 d=%22M5.4 0h13.2A5.4 5.4 0 0 1 24 5.4v13.2a5.4 5.4 0 0 1-5.4 5.4H5.4A5.4 5.4 0 0 1 0 18.6V5.4A5.4 5.4 0 0 1 5.4 0z M7.76 6.35 12 10.59l4.24-4.24 1.41 1.41L13.41 12l4.24 4.24-1.41 1.41L12 13.41l-4.24 4.24-1.41-1.41L10.59 12 6.35 7.76z%22/%3E%3C/svg%3E"); }
.sg-ico--cal { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222.4%22 stroke-linecap=%22round%22%3E%3Crect x=%224%22 y=%225%22 rx=%222%22/%3E%3Cpath d=%22M8 3v4M16 3v4M4 10h16%22/%3E%3C/svg%3E"); }
.sg-ico--gift { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 23 22%22%3E%3Cpath d=%22M20.366 13.169c.137-.267.23-.557.273-.864.104-.728-.082-1.452-.522-2.04C19.207 9.054 17.48 8.806 16.267 9.716c-.465.348-.823.777-1.1 1.224-.277-.446-.635-.876-1.1-1.224-.588-.44-1.312-.626-2.039-.523-.727.104-1.37.484-1.812 1.073-.44.587-.626 1.311-.522 2.039.044.306.137.596.273.864C8.709 13.75 7.833 15.024 7.833 16.5V18.333c0 .668.18 1.294.493 1.834H5.083C3.567 20.167 2.333 18.933 2.333 17.417V8.25C2.333 6.734 3.567 5.5 5.083 5.5h5.5c1.256 0 2.35.848 2.664 2.062.127.49.624.784 1.117.66.49-.127.784-.627.659-1.117C14.502 5.08 12.676 3.667 10.584 3.667h-.537l1.185-1.186c.359-.358.359-.937 0-1.296-.358-.358-.937-.358-1.296 0L8.751 2.37V.917C8.751.41 8.34 0 7.834 0S6.918.41 6.918.917V2.37L5.732 1.185c-.358-.358-.938-.358-1.296 0-.358.359-.358.938 0 1.296L5.621 3.667h-.537C2.556 3.667.5 5.723.5 8.25v9.167C.5 19.944 2.556 22 5.083 22H18.833C20.856 22 22.5 20.356 22.5 18.333V16.5c0-1.475-.875-2.749-2.134-3.331Z%22 fill=%22%23000%22/%3E%3C/svg%3E"); }
/* Saudi riyal sign (theme-drawn, same glyph Zid injects) */
.sg-sar { display: inline-block; width: .895em; height: 1em; vertical-align: -.125em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1124.14 1256.39%22%3E%3Cpath fill=%22%23000%22 d=%22M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z%22/%3E%3Cpath fill=%22%23000%22 d=%22M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.670,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.05v170.26l-358.3,76.14c-20.06,44.47-33.32,92.750-38.4,143.37l375.04-79.7c30.530-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.98l132.25-28.11v270.4l424.53-90.28Z%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1124.14 1256.39%22%3E%3Cpath fill=%22%23000%22 d=%22M699.62,1113.02h0c-20.06,44.48-33.32,92.75-38.4,143.37l424.51-90.24c20.06-44.47,33.31-92.75,38.4-143.37l-424.51,90.24Z%22/%3E%3Cpath fill=%22%23000%22 d=%22M1085.73,895.8c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.33v-135.2l292.27-62.11c20.06-44.47,33.32-92.75,38.4-143.37l-330.68,70.27V66.13c-50.67,28.45-95.670,66.32-132.25,110.99v403.35l-132.25,28.11V0c-50.67,28.44-95.67,66.32-132.25,110.99v525.69l-295.91,62.88c-20.06,44.47-33.33,92.75-38.42,143.37l334.33-71.05v170.26l-358.3,76.14c-20.06,44.47-33.32,92.750-38.4,143.37l375.04-79.7c30.530-6.35,56.77-24.4,73.83-49.24l68.78-101.97v-.02c7.14-10.55,11.3-23.27,11.3-36.97v-149.98l132.25-28.11v270.4l424.53-90.28Z%22/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- category page: subcategory tiles as a one-row slider (9 per view, 4 on phones) + round arrows ---------- */
.sg-subslider { display: flex; align-items: center; gap: 10px; max-width: calc(9 * 115px + 8 * 16px + 2 * 40px); margin: 8px auto 26px; }
.sg-subslider .sg-tiles.sg-tiles--grid.sg-subslider__track {
  flex: 1 1 auto; min-width: 0; max-width: none; margin: 0; display: flex; flex-wrap: nowrap; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 2px;
  justify-content: flex-start;
}
.sg-subslider .sg-subslider__track::-webkit-scrollbar { display: none; }
.sg-subslider.is-static .sg-tiles.sg-tiles--grid.sg-subslider__track { justify-content: center; }
.sg-subslider .sg-tiles--grid .sg-tile { flex: 0 0 calc((100% - 8 * 16px) / 9); width: auto; min-width: 0; scroll-snap-align: start; }
.sg-subslider .sg-tiles--grid .sg-tile__well { width: 100%; height: auto; aspect-ratio: 1; }
.sg-subslider .sg-tiles--grid .sg-tile:hover .sg-tile__well { transform: none; }
.sg-subslider__arrow {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 50%; background: var(--sg-primary); color: var(--sg-on-primary, #fff); cursor: pointer;
  transition: opacity var(--sg-duration, .3s) var(--sg-ease, ease);
}
.sg-subslider__arrow[hidden] { display: none; }
.sg-subslider__arrow:disabled { opacity: .3; cursor: default; }
/* RTL: «prev» sits on the right and points right, «next» on the left and points left */
[dir="rtl"] .sg-subslider__arrow--next svg, .sg-subslider__arrow--prev svg { transform: scaleX(-1); }
[dir="rtl"] .sg-subslider__arrow--prev svg { transform: none; }
@media (max-width: 640px) {
  .sg-subslider { gap: 6px; margin-bottom: 20px; }
  .sg-subslider .sg-tiles.sg-tiles--grid.sg-subslider__track { gap: 10px; }
  .sg-subslider .sg-tiles--grid .sg-tile { flex-basis: calc((100% - 3 * 10px) / 4); }
  .sg-subslider__arrow { width: 26px; height: 26px; }
  .sg-subslider__arrow svg { width: 12px; height: 12px; }
}

/* drawer: sign-out (logged-in only) + language & currency glyphs — segadty .svg-icon.logout-icon / globe */
.svg-icon.logout-icon, .svg-icon.globe-icon {
  display: inline-block; flex: none; width: 20px; height: 20px; background-color: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.svg-icon.logout-icon { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 2.5v8.5'/%3E%3Cpath d='M6.8 5.6a8.5 8.5 0 1 0 10.4 0'/%3E%3C/svg%3E"); }
.svg-icon.globe-icon { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12,0C5.383,0,0,5.383,0,12s5.383,12,12,12c6.617,0,12-5.383,12-12S18.617,0,12,0z M12,2v4.395c0,0.67-0.333,1.292-0.891,1.664l-0.996,0.664C9.416,9.188,9,9.965,9,10.803V11.5C9,11.775,8.776,12,8.5,12H7c-0.551,0-1-0.448-1-1v-0.758c0-1.054-0.427-2.084-1.172-2.828L3.760,6.346C5.565,3.724,8.584,2,12,2z M2,12c0-1.354,0.273-2.644,0.763-3.823l0.651,0.651C3.787,9.2,4,9.716,4,10.242V11c0,1.654,1.346,3,3,3h1.5c1.378,0,2.5-1.121,2.5-2.5v-0.697c0-0.168,0.083-0.323,0.223-0.416l0.996-0.664C13.334,8.979,14,7.734,14,6.395V2.202c4.559,0.929,8,4.970,8,9.798c0,1.990-0.591,3.841-1.597,5.4l-0.958-0.638C19.166,16.576,19,16.265,19,15.930V15.5c0-1.379-1.121-2.5-2.5-2.5h-1c-1.930,0-3.5,1.570-3.5,3.5V22C6.486,22,2,17.514,2,12z M14,21.798V16.5c0-0.827,0.673-1.5,1.5-1.5h1c0.275,0,0.5,0.225,0.5,0.5v0.43c0,1.005,0.499,1.938,1.336,2.496l0.819,0.546C17.781,20.381,16,21.391,14,21.798z'/%3E%3C/svg%3E"); width: 19px; height: 19px; }

/* review form — photo drop-down (reference): white rounded zone like the comment box, dark-red picture icon + label */
.sg-rform__drop { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 710px; }
.sg-rform__drop[hidden], .sg-rform__attach[hidden] { display: none !important; }
.sg-rform__zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 135px;
  padding: 22px 16px; border-radius: 8px; background: color-mix(in srgb, var(--sg-panel) 25%, var(--sg-page)); cursor: pointer;
  color: var(--sg-primary); font: 500 13px/1.6 var(--sg-font); text-align: center; transition: box-shadow var(--sg-duration) var(--sg-ease);
}
.sg-rform__zone.is-over { box-shadow: inset 0 0 0 2px var(--sg-primary); }
.sg-rform__zone-ico { display: block; width: 50px; height: 38px; color: var(--sg-primary); }
.sg-rform__drop .sg-rform__imgs { flex-wrap: wrap; }
.sg-rform__drop .sg-rform__slot:has(img.d-none), .sg-rform__drop .sg-rform__slot:has(img.hidden) { display: none; }
.sg-rform__drop .sg-rform__slot-in { border-style: solid; pointer-events: none; }

/* listing grid with fewer cards than the row holds → same card width, centred (segadty.com) */
@media (max-width: 767px) { .ab-listing-grid.sg-grid--n1 { grid-template-columns: repeat(1, calc((100% - 1 * 15px) / 2)) !important; justify-content: center; } }
@media (min-width: 768px) and (max-width: 1023px) { .ab-listing-grid.sg-grid--n1 { grid-template-columns: repeat(1, calc((100% - 2 * 15px) / 3)) !important; justify-content: center; } .ab-listing-grid.sg-grid--n2 { grid-template-columns: repeat(2, calc((100% - 2 * 15px) / 3)) !important; justify-content: center; } }
@media (min-width: 1024px) and (max-width: 1199px) { .ab-listing-grid.sg-grid--n1 { grid-template-columns: repeat(1, calc((100% - 3 * 15px) / 4)) !important; justify-content: center; } .ab-listing-grid.sg-grid--n2 { grid-template-columns: repeat(2, calc((100% - 3 * 15px) / 4)) !important; justify-content: center; } .ab-listing-grid.sg-grid--n3 { grid-template-columns: repeat(3, calc((100% - 3 * 15px) / 4)) !important; justify-content: center; } }
@media (min-width: 1200px) { .ab-listing-grid.sg-grid--n1 { grid-template-columns: repeat(1, calc((100% - 4 * 15px) / 5)) !important; justify-content: center; } .ab-listing-grid.sg-grid--n2 { grid-template-columns: repeat(2, calc((100% - 4 * 15px) / 5)) !important; justify-content: center; } .ab-listing-grid.sg-grid--n3 { grid-template-columns: repeat(3, calc((100% - 4 * 15px) / 5)) !important; justify-content: center; } .ab-listing-grid.sg-grid--n4 { grid-template-columns: repeat(4, calc((100% - 4 * 15px) / 5)) !important; justify-content: center; } }

/* category tiles — desktop: no slider, 9 per row, wrapping, centred (phones keep the one-row slider) */
@media (min-width: 1024px) {
  .sg-subslider .sg-tiles.sg-tiles--grid.sg-subslider__track { flex-wrap: wrap; justify-content: center; row-gap: 22px; overflow: visible; scroll-snap-type: none; }
  .sg-subslider .sg-subslider__arrow { display: none !important; }
  .sg-subslider { max-width: calc(9 * 115px + 8 * 16px); }
}
/* a category without an image: a «no photo» glyph (no letter, no category icon) */
.sg-tile__noimg { font-size: 34px; line-height: 1; color: var(--sg-on-primary, #fff); opacity: .75; }
@media (max-width: 640px) { .sg-tile__noimg { font-size: 26px; } }
.sg-subslider .sg-tile__well { position: relative; }
.sg-subslider .sg-tile__well img { position: absolute; inset: 0; z-index: 1; background: var(--sg-primary); }

/* header nav (segadty): chevron on categories with sub-categories + one shared hover drop-down (fixed, on <body>) */
.hdr-nav .nav-link .sg-nav-chev { flex: none; opacity: .75; transition: transform var(--sg-duration) var(--sg-ease); }
.hdr-nav .nav-link.is-open .sg-nav-chev { transform: rotate(180deg); }
.sg-nav-drop {
  position: fixed; z-index: 1600; min-width: 210px; max-width: 280px; max-height: 60vh; overflow-y: auto;
  padding: 6px; border-radius: 8px; background: var(--sg-page, #fff); box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
  display: flex; flex-direction: column;
}
.sg-nav-drop[hidden] { display: none; }
.sg-nav-drop a {
  display: block; padding: 8px 12px; border-radius: 6px; color: var(--sg-ink); font-size: 13px; font-weight: 500;
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sg-nav-drop a:hover { background: color-mix(in srgb, var(--sg-primary) 8%, transparent); color: var(--sg-primary); }
@media (max-width: 1023px) { .sg-nav-drop { display: none !important; } }

/* «الصور المتحركة» desktop = segadty.com .main-slider: every slide is the same 1200×514 box (width × 0.4283) with the
   image contained in it — a slide whose photo has another shape no longer makes the whole slider taller.
   1366 → 577px · 1440 → 608px · 1920 → 814px · 2560 → 1088px */
@media (min-width: 768px) {
  .sg-banner-sec .sg-banner__img { aspect-ratio: 1200 / 514 !important; height: auto !important; object-fit: contain; }
}

/* product sections with a title banner — square banner corners (design request) */
.sg-rail__banner, .sg-rail__banner img { border-radius: 0 !important; }
/* «فروعنا» — the map box has square corners (the buttons keep theirs) */
.sg-branches__map { border-radius: 0 !important; }

/* home «التصنيفات» (3 columns) = segadty.com .home-categories-slider, measured:
   desktop — 20px top padding · title → images 45px · 3 equal columns over the page width minus 20px a side · image
   260×260 (8px radius, no backdrop) centred in its column · name 15px under the image (12px/500, 18px line) · rows 318px apart
   phone   — 10px top padding · title → images 5px · 110×110 images, 10px apart, centred · same name spacing · rows 168px apart */
.sg-catlist { padding: 20px 0 40px !important; }
.sg-catlist > .sg-container { width: calc(100% - 40px) !important; max-width: none !important; padding-inline: 0 !important; }
.sg-catlist .sg-head { margin-bottom: 45px !important; }
.sg-catlist .sg-cats.sg-cats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px 0 !important; padding-bottom: 0; }
.sg-catlist .sg-cat { gap: 15px !important; }
.sg-catlist .sg-cat__media { width: 260px !important; max-width: 100% !important; border-radius: 8px !important; background: transparent !important; }
.sg-catlist .sg-cat__name { line-height: 18px !important; }
@media (max-width: 767px) {
  .sg-catlist { padding: 10px 0 54px !important; }
  .sg-catlist > .sg-container { width: 100% !important; }
  .sg-catlist .sg-head { margin-bottom: 5px !important; }
  .sg-catlist .sg-cats.sg-cats--3 { grid-template-columns: repeat(3, 110px); justify-content: center; gap: 25px 10px !important; }
  .sg-catlist .sg-cat__media { width: 110px !important; border-radius: 8px !important; }
}

/* «آراء المتسوقين» = segadty.com .section-testimonials, measured at 1366 / 400:
   20px top/bottom (10px phones) · centred title 15px/600 · subtitle 12px #999 5px under it · dots at the top-left corner ·
   cards 10px below · 3 slides over the page width minus 15px a side, each card 10px in from its slide (phones: 1 slide,
   20px in) · card: white, 10px radius, 20px padding · 50px round photo · quote 16px under it 12px/500 · 18px lines ·
   name 10px under the quote 10px/500 #727272 */
.sg-testi { padding: 20px 0 !important; }
.sg-testi > .sg-container { width: calc(100% - 30px) !important; max-width: none !important; padding-inline: 0 !important; }
.sg-testi .sg-testi__head { position: relative; display: block; margin: 0 0 10px; text-align: center; }
.sg-testi .sg-testi__title { font-size: 15px; font-weight: 600; line-height: 23px; }
.sg-testi .sg-testi__sub { margin: 5px 0 0 !important; color: #999; font-size: 12px; font-weight: 400; line-height: 18px; }
.sg-testi .sg-testi__head .sg-testi__dots { position: absolute !important; top: 26px !important; left: 10px !important; right: auto !important; bottom: auto !important; margin: 0 !important; width: auto !important; }
.sg-testi .swiper-slide { padding: 0 10px; }
.sg-testi .sg-testi__item { gap: 0; min-height: 0; padding: 20px; border-radius: 10px; background: var(--sg-testi-bg, #fff); }
.sg-testi .sg-testi__avatar, .sg-testi .sg-testi__avatar--ph svg { width: 50px; height: 50px; }
.sg-testi .sg-testi__quote { margin: 16px 0 0; color: #4b4b4b; font-size: 12px; font-weight: 500; line-height: 18px; -webkit-line-clamp: unset; display: block; overflow: visible; }
.sg-testi .sg-testi__name { margin: 10px 0 0; color: #727272; font-size: 10px; font-weight: 500; line-height: 15px; }
@media (max-width: 767px) {
  .sg-testi { padding: 10px 0 !important; }
  .sg-testi > .sg-container { width: 100% !important; }
  .sg-testi .swiper-slide { padding: 0 20px; }
}

/* «عملائنا المميزين» = segadty.com .section-logos: a hand-scrolled row (no slider / autoplay) that starts with the swipe
   icon (25px, in a 55px column) · logo boxes 228×89 (100×89 phones), 10px apart, logo 80px wide · 20px top padding
   (10px phones) · title → logos 45px (25px phones) · 24px under the row */
.sg-logos { padding: 20px 0 !important; }
.sg-logos > .sg-container { width: 100% !important; max-width: none !important; padding-inline: 0 !important; }
.sg-logos .sg-head { margin-bottom: 45px !important; }
.sg-logos__row {
  display: flex; align-items: flex-start; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; padding-bottom: 24px; -webkit-overflow-scrolling: touch;
}
.sg-logos__row::-webkit-scrollbar { display: none; }
.sg-logos__move { flex: 0 0 55px; height: 89px; margin-inline-end: -10px; display: grid; place-items: center; color: var(--sg-muted); }
.sg-logos__move .sg-swipe svg { width: 25px; height: 25px; display: block; }
.sg-logos__item { flex: 0 0 228px; }
.sg-logos .sg-logo { max-width: none; }
.sg-logos .sg-logo__tile { width: 228px; height: 89px; aspect-ratio: auto; border-radius: 7px; background: var(--sg-logo-bg, #fff); }
.sg-logos .sg-logo__tile img { width: 80px; height: 89px; object-fit: contain; }
@media (max-width: 767px) {
  .sg-logos { padding: 10px 0 !important; }
  .sg-logos .sg-head { margin-bottom: 25px !important; }
  .sg-logos__item { flex-basis: 100px; }
  .sg-logos .sg-logo__tile { width: 100px; }
}

/* «فروعنا» map — square box, no soft shadow (the blur read as rounded corners) */
.sg-branches__map, .sg-branches__map iframe { border-radius: 0 !important; box-shadow: none !important; }

/* product sections with a banner = segadty.com .section-banner: the banner spans the full page width (edge to edge),
   height follows the image (2048×877 → 585px at 1366, 171px at 400), no corners */
.sg-section:has(.sg-rail__banner) { overflow-x: clip; }
.sg-rail__banner {
  margin-left: calc(50% - 50vw + var(--sg-sbw, 0px) / 2) !important;
  margin-right: calc(50% - 50vw + var(--sg-sbw, 0px) / 2) !important;
  width: auto !important; max-width: none !important;
}
.sg-rail__banner img { width: 100% !important; max-width: none !important; height: auto !important; }

/* «آراء العملاء» — title + subtitle on the right (start), dots stay top-left */
.sg-testi .sg-testi__head { text-align: start !important; }
.sg-testi .sg-testi__head-copy { padding-inline: 10px; }

/* «عملائنا المميزين» desktop — 5½ logo boxes per row after the swipe icon; icon colour = product sliders' hint */
.sg-logos__move .sg-swipe { color: #cfcfcf !important; width: 32px; height: 32px; }
.sg-logos__move .sg-swipe svg { width: 26px; height: 26px; }
@media (min-width: 768px) {
  .sg-logos__item { flex: 0 0 calc((100% - 105px) / 5.5); }
  .sg-logos .sg-logo__tile { width: 100%; }
}
@media (max-width: 767px) { .sg-testi .sg-testi__head-copy { padding-inline: 20px; } }

/* footer = segadty.com .footer, measured at 1366 / 400 (DIN Next LT W23 throughout):
   40px top/bottom padding · 1140 container (15px gutters) · logo 37px high, 24px above/below · title 24px/500 (36 line),
   10px under · about 11px/500 (16.5 line) · 16px → social boxes 34×34 (2px pad, 4px radius, 8px apart) · 16px → links
   12px/500 (15 line) in 29px rows · badges 15px below, 5px pad, 4px radius, 10px labels · payment boxes 40×22 (3px radius,
   3px margin) 16px below · copyright 10px/500, 24px below */
.sg-ftr { padding: 40px 0 !important; margin-top: 20px !important; font-family: var(--sg-font, "DINNextLTW23"), sans-serif; }
.sg-ftr > div { max-width: 1140px !important; }
.sg-ftr .sg-ftr__logo { display: inline-block; margin: 24px 0 0 !important; line-height: 0; }
.sg-ftr .sg-ftr__logo img { height: 37px !important; width: auto !important; max-width: 220px; }
.sg-ftr .sg-ftr__title { margin: 24px 0 10px !important; font-size: 24px !important; font-weight: 500 !important; line-height: 36px !important; }
.sg-ftr .sg-ftr__about { margin: 0 0 16px !important; }
.sg-ftr .sg-ftr__about, .sg-ftr .sg-ftr__about * { font-size: 11px !important; font-weight: 500 !important; line-height: 16.5px !important; }
.sg-ftr .sg-ftr__about p { margin: 0 0 6px !important; }
.sg-ftr .footer-social-section { margin: 0 0 16px !important; gap: 0 !important; }
.sg-ftr .footer-social-section > div { gap: 8px !important; }
.sg-ftr .social-btn { width: 34px !important; height: 34px !important; padding: 2px !important; border: 0 !important; border-radius: 4px !important; }
.sg-ftr .sg-ftr__links { margin: 0 !important; }
.sg-ftr .sg-ftr__link { padding: 7px 0 !important; font-size: 12px !important; font-weight: 500 !important; line-height: 15px !important; }
.sg-ftr .sg-ftr__col-title { font-size: 12px !important; line-height: 15px !important; padding: 7px 0; margin: 0 !important; }
.sg-ftr .sg-ftr__trust { flex-direction: column !important; align-items: center !important; gap: 0 !important; margin: 0 !important; padding: 15px 0 10px; }
.sg-ftr .sg-ftr__trust-item { min-width: 134px; justify-content: center; padding: 5px !important; gap: 5px !important; margin: 0 0 5px !important; border-radius: 4px !important; }
.sg-ftr .sg-ftr__trust-item img { width: 20px !important; height: auto !important; max-height: 25px; }
.sg-ftr .sg-ftr__trust-item span span { font-size: 10px !important; font-weight: 500 !important; line-height: 12px !important; color: #414141 !important; }
.sg-ftr .sg-ftr__trust-item b { font-size: 10px !important; font-weight: 600 !important; line-height: 12px !important; color: #000 !important; }
.sg-ftr .sg-ftr__cr { margin: 15px 0 0 !important; font-size: 12px !important; font-weight: 500 !important; line-height: 18px !important; }
.sg-ftr .sg-ftr__cr b { font-weight: 500 !important; }
.sg-ftr .sg-ftr__pay { margin: 16px 0 0 !important; }
.sg-ftr .sg-ftr__pay > div, .sg-ftr .sg-ftr__pay > div > div { margin: 0 !important; padding: 0 !important; gap: 0 !important; border: 0 !important; }
.sg-ftr .sg-ftr__pay a { width: 40px !important; height: 22px !important; padding: 0 !important; margin: 3px !important; border-radius: 3px !important; background: #fff !important; }
.sg-ftr .sg-ftr__pay img { width: 37px !important; height: 22px !important; padding: 0 !important; object-fit: contain; }
.sg-ftr .sg-ftr__copy { margin: 24px 0 0 !important; padding: 0 !important; font-size: 10px !important; font-weight: 500 !important; line-height: 15px !important; }
.sg-ftr .sg-ftr__copy * { font-size: 10px !important; font-weight: 500 !important; line-height: 15px !important; }
.sg-ftr .sg-ftr__logo { display: block !important; width: fit-content; margin: 24px auto 0 !important; }
.sg-ftr .sg-ftr__links { margin: 0 auto !important; }
.sg-ftr .sg-ftr__about { padding-inline: 10px; }
@media (max-width: 767px) { .sg-ftr .sg-ftr__about { padding-inline: 6px 5px; } }
.sg-ftr .footer-social-section a.social-btn { box-sizing: border-box !important; width: 34px !important; height: 34px !important; border: 0 !important; border-radius: 4px !important; }
.sg-ftr .sg-ftr__about p { margin: 0 !important; }
.sg-ftr .sg-ftr__about > :not(:last-child) { margin-bottom: 6px !important; }
.sg-ftr .sg-ftr__trust a.sg-ftr__trust-item, .sg-ftr .sg-ftr__trust div.sg-ftr__trust-item { box-sizing: border-box; height: 34px; align-items: center; }
.sg-ftr .sg-ftr__pay a > img { width: 37px !important; height: 22px !important; max-height: none !important; padding: 0 !important; }

/* PDP = segadty.com product page, measured at 1366 / 400:
   sticky bar — button 50px high (8px 16px padding, 18px/500 text, 27px line, 6px radius); bar spans the page (10px sides),
   button = half the bar · main image box 550×550 (380×380 phones, 10px from the edges) ·
   «وصف المنتج» → «الأسئلة» boxes span the 1140 container (full width on phones); «تقييم المنتج / آراء العملاء» stay 920 */
.sticky-cart.sg-sticky .sg-sticky__in { max-width: none !important; }
.ab-pdp .sticky-cart.sg-sticky .sticky-cart__btn, .sticky-cart.sg-sticky .sticky-cart__btn {
  height: 50px !important; min-height: 50px !important; padding: 8px 16px !important;
  font-size: 18px !important; font-weight: 500 !important; line-height: 27px !important; border-radius: 6px !important;
}
@media (min-width: 768px) {
  .ab-pdp .ab-pdp-gal.sg-gal--slider { width: 550px; max-width: 100%; }
  .ab-pdp .ab-pdp-gal.sg-gal--slider .product-gallery-main { width: 550px; max-width: 100%; }
  .sg-pdp-details { max-width: 1140px !important; }
  .sg-pdp-details .sg-pdp-reviews { max-width: 920px; margin-inline: auto; }
}
@media (max-width: 767px) {
  .ab-pdp .ab-pdp-gal.sg-gal--slider .product-gallery-main { width: calc(100% + 10px) !important; max-width: none; margin-inline: -5px; }
  .sg-pdp-details .cd-pdp-pane.sg-pdp-acc { margin-inline: -15px; border-radius: 0 !important; }
}
.sg-pdp-details .cd-pdp-pane.sg-pdp-acc .sg-pdp-acc__body { padding-inline: 20px !important; }
.sg-pdp-details .sg-pdp-reviews { width: 100%; }
.sticky-cart.sg-sticky .sg-sticky__in:not(:has(.btn-buy-now)) { gap: 0 !important; }
.sticky-cart.sg-sticky .sg-sticky__in:not(:has(.btn-buy-now)) > .sg-sticky__price,
.sticky-cart.sg-sticky .sg-sticky__in:not(:has(.btn-buy-now)) > .btn-add-to-cart { flex: 1 1 0 !important; }
.sticky-cart.sg-sticky .sg-sticky__in:not(:has(.btn-buy-now)) > .sg-sticky__price,
.sticky-cart.sg-sticky .sg-sticky__in:not(:has(.btn-buy-now)) > .btn-add-to-cart { flex: 0 0 50% !important; max-width: 50%; box-sizing: border-box; }

/* PDP buy box = segadty.com order: options → rewards → Tabby / Tamara cards → qty + add to cart.
   Tabby / Tamara cards: white, 1px border (Tamara #DE9681 · Tabby #3BFFC4), 6px radius, 20px 10px 10–15px padding, 12px text,
   provider logo lifted onto the top border at the card's left corner (inner widget frames reset — pdp-pay-widgets.jinja) */
.ab-pdp .ab-pdp-payw { margin: 30px 0 0 !important; }
.ab-pdp .block-payments-widget.sg-bnpl { margin-top: 26px !important; gap: 10px !important; }
.ab-pdp .block-payments-widget.sg-bnpl > .tabby-product-widget {
  display: block !important; padding: 20px 10px 15px !important; border: 1px solid #3BFFC4 !important; background: #fff !important; border-radius: 6px !important;
}
.ab-pdp .block-payments-widget.sg-bnpl > tamara-widget { padding: 20px 10px 10px !important; }
/* add to cart → «وصف المنتج» box = 55px (segadty) */
.sg-pdp-details { margin-top: 19px !important; }
/* add to cart → «وصف المنتج» grey box = 20px, title 35px into the box (segadty.com, measured 1366 / 400) */
.sg-pdp-details { margin-top: -16px !important; }
.sg-pdp-details .cd-pdp-pane.sg-pdp-acc.is-active > .sg-pdp-acc__head, .sg-pdp-details .cd-pdp-pane.sg-pdp-acc[open] > .sg-pdp-acc__head { padding-top: 35px !important; }
/* the grey description box is pulled up under the buy box — paint it above the buy box's white bottom padding */
.sg-pdp-details { position: relative; z-index: 1; }

/* ===== side menu + side cart = segadty.com .c-offcanvas / .block-side-cart, measured at 1366 / 400 =====
   scrim rgba(0,0,0,.23) · both panels 30px below the top, white, DIN Next */
.kl-drawer-overlay, .offcanvas-backdrop, .offcanvas-backdrop.show { background: rgba(0, 0, 0, .23) !important; opacity: 1; }

/* side menu — 289px · corners 10 0 10 10 · logo row 50px down (24px 16px padding, 30px under it) · rows 46px, 14px/500,
   31px from the right edge · whole panel scrolls, 50px bottom padding · utility rows 42px (32px #f9f9f9 tiles, 4px radius,
   14px/600 labels, 8px gap) 60px under the list, 30px in from both sides */
.kl-drawer.sg-mdrawer, #mobile-drawer.sg-mdrawer {
  top: 30px !important; width: 289px !important; max-width: 88vw; border-radius: 10px 0 10px 10px !important;
  display: block !important; overflow-y: auto !important; padding-bottom: 50px !important;
}
#mobile-drawer.sg-mdrawer .sg-mdrawer__top { margin: 50px 0 30px !important; padding: 24px 20px 24px 16px !important; height: 80px; box-sizing: border-box; }
#mobile-drawer.sg-mdrawer .sg-mdrawer__list { flex: none !important; overflow: visible !important; padding: 0 !important; padding-inline: 31px 16px !important; }
#mobile-drawer.sg-mdrawer .sg-mdrawer__link span { line-height: 16px; }
#mobile-drawer.sg-mdrawer .sg-mdrawer__chev { font-size: 20px; }
#mobile-drawer.sg-mdrawer .sg-mdrawer__foot { gap: 0 !important; margin: 60px 30px 0 !important; padding: 0 !important; }
#mobile-drawer.sg-mdrawer .sg-mdrawer__util { min-height: 42px !important; gap: 8px !important; font-size: 14px !important; font-weight: 600 !important; line-height: 21px; }
#mobile-drawer.sg-mdrawer .sg-mdrawer__ico { width: 32px !important; height: 32px !important; margin: 5px 0; border-radius: 4px !important; background: #f9f9f9 !important; }
#mobile-drawer.sg-mdrawer .sg-mdrawer__ico svg, #mobile-drawer.sg-mdrawer .sg-mdrawer__ico .svg-icon { width: 20px !important; height: 20px !important; }
#mobile-drawer.sg-mdrawer .sg-mdrawer__ico .material-symbols-outlined { font-size: 20px !important; }

/* side cart — 478px (289px on phones) · corners 0 10 0 0 · title 40px down, 14px/600, 15px under it ·
   line: 80×80 image (6px radius) · name 12px/500 #777 · price 11px/500 · qty 159×26 (#fafafa, 3px radius) · bin 16px #ccc ·
   footer: coupon 40px (button 96px, 81px phones) · totals 12px/500 #888, 10px apart · total 15px/500 · checkout 50px, 6px radius, 14px/500 */
#side-cart.block-side-cart.offcanvas.offcanvas-end {
  top: 30px !important; height: auto !important; bottom: 0 !important; width: 430px !important; max-width: 100vw;
  border-radius: 0 10px 0 0 !important;
}
@media (max-width: 767px) { #side-cart.block-side-cart.offcanvas.offcanvas-end { width: 289px !important; } }
#side-cart.block-side-cart .offcanvas-header { padding: 40px 16px 15px !important; }
#side-cart.block-side-cart .offcanvas-title { font-size: 14px !important; font-weight: 600 !important; line-height: 21px !important; }
#side-cart.block-side-cart .ab-line.az-cartline { padding: 10px 40px 10px !important; }
#side-cart.block-side-cart .ab-line .prod .th { width: 80px !important; height: 80px !important; border-radius: 6px !important; margin-bottom: 10px; }
#side-cart.block-side-cart .ab-line .prod .th img { border-radius: 6px !important; }
#side-cart.block-side-cart .ab-line .az-cartline__title { margin: 0 !important; font-size: 12px !important; font-weight: 500 !important; line-height: 18px !important; color: #777 !important; }
#side-cart.block-side-cart .ab-line .info { gap: 5px !important; }
#side-cart.block-side-cart .ab-line .sg-scart__price, #side-cart.block-side-cart .ab-line .sg-scart__price * { font-size: 11px !important; font-weight: 500 !important; line-height: 16.5px !important; }
#side-cart.block-side-cart .ab-line .az-qty-cell { margin-top: 5px; }
#side-cart.block-side-cart .ab-line .az-qty.az-qty--sm { width: 159px !important; height: 26px !important; padding: 0 !important; border-radius: 3px !important; background: #fafafa !important; }
#side-cart.block-side-cart .ab-line .az-qty.az-qty--sm button { width: 40px !important; height: 26px !important; color: #969696 !important; }
#side-cart.block-side-cart .ab-line .az-qty.az-qty--sm .val { font-size: 12px !important; }
#side-cart.block-side-cart .ab-line .az-cartline__act { color: #ccc !important; }
#side-cart.block-side-cart .ab-line .az-cartline__act svg { width: 16px !important; height: 16px !important; }
#side-cart.block-side-cart .footer-side-cart { padding: 10px 15px 20px !important; }
#side-cart.block-side-cart .az-coupon .row, #side-cart.block-side-cart .send-coupon-form .row { height: 40px !important; border-radius: 5px !important; background: #fafafa !important; overflow: hidden; }
#side-cart.block-side-cart .send-coupon { height: 40px !important; padding: 10px 15px !important; font-size: 12px !important; }
#side-cart.block-side-cart .send-coupon-button { width: 96px !important; height: 40px !important; flex: 0 0 96px !important; font-size: 12px !important; font-weight: 500 !important; border-radius: 0 !important; }
@media (max-width: 767px) { #side-cart.block-side-cart .send-coupon-button { width: 81px !important; flex-basis: 81px !important; } }
#side-cart.block-side-cart .side-cart-footer__summary { margin-top: 24px !important; padding-inline: 11px !important; }
#side-cart.block-side-cart .side-cart-footer__summary .space-y-2 > * + * { margin-top: 10px !important; }
#side-cart.block-side-cart .side-cart-footer__summary > .space-y-2 > div:not(:last-child) span { font-size: 12px !important; font-weight: 500 !important; line-height: 18px !important; color: #888 !important; }
#side-cart.block-side-cart .side-cart-footer__summary > .space-y-2 > div:last-child span { font-size: 15px !important; font-weight: 500 !important; line-height: 22.5px !important; }
#side-cart.block-side-cart .side-cart-footer__actions { margin-top: 16px !important; padding-inline: 1px; }
#side-cart.block-side-cart .sg-scart__checkout { height: 50px !important; min-height: 50px !important; border-radius: 6px !important; font-size: 14px !important; font-weight: 500 !important; }
#side-cart.block-side-cart .sg-scart__checkout-ico { width: 20px !important; height: 20px !important; font-size: 14px !important; }
#side-cart #side-cart-checkout-btn.sg-scart__checkout { height: 50px !important; min-height: 50px !important; border-radius: 6px !important; font-size: 14px !important; font-weight: 500 !important; }

/* ===== cart page = segadty.com /cart, measured at 1366 / 400 =====
   1140 container · title «سلة الشراء» 15px/500 #777, 50px down, 20px under · each product = grey card (#f0f0f0, 7px radius,
   10px 5px padding, 10px margin): image 200×200 (70×70 phones, 7px radius) at the start · name 12px/500 primary ·
   unit price 10px #aaa + «للواحد» · line price 11px/500 #ff5f5f · bin 18px #ccc top-end · qty 80×26 under it */
.ab-cart .ab-wrap { width: min(100% - 30px, 1110px) !important; }
.ab-cart .ab-cart-title.sg-cart-title { margin: 50px 0 20px !important; font-size: 15px !important; font-weight: 500 !important; line-height: 22.5px !important; color: #777 !important; }
.ab-cart .ab-cart-head { display: none !important; }
.ab-cart .ab-cart-lines .ab-line.az-cartline:not(.compact) {
  display: grid !important; grid-template-columns: 216px minmax(0, 1fr) 270px; grid-template-rows: auto 1fr auto auto auto 1fr;
  grid-template-areas: "img . act" "img . ." "img name ." "img unit ." "img tot qty" "img . .";
  column-gap: 0; align-items: center; margin: 10px !important; padding: 10px 5px !important; border: 0 !important;
  border-radius: 7px !important; background: var(--sg-cart-items, #f0f0f0) !important;
}
.ab-cart .ab-cart-lines .ab-line:not(.compact) .prod { display: contents !important; }
.ab-cart .ab-cart-lines .ab-line:not(.compact) .prod .th {
  grid-area: img; justify-self: center; width: 200px !important; height: 200px !important; border-radius: 7px !important; background: #fff !important; overflow: hidden;
}
.ab-cart .ab-cart-lines .ab-line:not(.compact) .prod .th img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px !important; background: #fff !important; }
.ab-cart .ab-cart-lines .ab-line:not(.compact) .info { grid-area: name; padding-inline-start: 5px; min-width: 0; }
.ab-cart .ab-cart-lines .ab-line:not(.compact) .info h5 { margin: 0 0 5px !important; }
.ab-cart .ab-cart-lines .ab-line:not(.compact) .az-cartline__title { margin: 0 !important; font-size: 12px !important; font-weight: 500 !important; line-height: 18px !important; color: var(--sg-primary) !important; }
.ab-cart .ab-cart-lines .ab-line:not(.compact) .info .az-badge { display: none; }
.ab-cart .ab-cart-lines .ab-line:not(.compact) .unit { grid-area: unit; padding-inline-start: 5px; margin-bottom: 5px; text-align: start; font-size: 10px !important; font-weight: 500 !important; line-height: 15px !important; color: #aaa !important; }
html[lang="ar"] .ab-cart .ab-cart-lines .ab-line:not(.compact) .unit::after { content: " للواحد"; }
html:not([lang="ar"]) .ab-cart .ab-cart-lines .ab-line:not(.compact) .unit::after { content: " each"; }
.ab-cart .ab-cart-lines .ab-line:not(.compact) .tot { grid-area: tot; padding-inline-start: 5px; text-align: start; font-size: 11px !important; font-weight: 500 !important; line-height: 16.5px !important; color: #ff5f5f !important; }
.ab-cart .ab-cart-lines .ab-line:not(.compact) .az-qty-cell { grid-area: qty; justify-self: end; margin: 0 2px; }
.ab-cart .ab-cart-lines .ab-line:not(.compact) .az-qty { width: 80px !important; height: 26px !important; padding: 0 !important; border-radius: 3px !important; background: #fafafa !important; }
.ab-cart .ab-cart-lines .ab-line:not(.compact) .az-qty button { width: 28px !important; height: 26px !important; color: var(--sg-primary) !important; font-size: 14px; }
.ab-cart .ab-cart-lines .ab-line:not(.compact) .az-qty .val { font-size: 12px !important; }
.ab-cart .ab-cart-lines .ab-line:not(.compact) .az-cartline__act { grid-area: act; justify-self: end; align-self: start; width: 24px !important; height: 24px !important; margin-inline-end: 4px; color: #ccc !important; }
.ab-cart .ab-cart-lines .ab-line:not(.compact) .az-cartline__act .icon-delete { width: 18px !important; height: 18px !important; background-color: #ccc !important; }
@media (max-width: 767px) {
  .ab-cart .ab-cart-lines .ab-line.az-cartline:not(.compact) {
    grid-template-columns: 85px minmax(0, 1fr) 85px; grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "img name act" "img unit ." "img tot qty" "img . ."; align-items: start;
  }
  .ab-cart .ab-cart-lines .ab-line:not(.compact) .prod .th { width: 70px !important; height: 70px !important; }
}

/* coupon 42px on #f0f0f0 (5px radius), 50px in from both sides · «تفاصيل الفاتورة» 14px/500 primary, centred, 50px down ·
   totals in a #f0f0f0 box (8px radius, 20px padding, 20px in from the sides): rows 14px/400 #777 (5px padding), total row
   14px/500 primary over a 1px #eee rule · loyalty box #f0f0f0 (10px radius, 15px padding) 25px down · «متابعة التسوق» outline
   button half the width, 42px, 48px down · no payment-icon strip */
.ab-cart .ab-cart-bottom { margin-top: 40px !important; }
.ab-cart .sg-cart-coupon { width: calc(100% - 100px) !important; max-width: none !important; margin: 8px 50px !important; }
.ab-cart .sg-cart-coupon .send-coupon-form, .ab-cart .sg-cart-coupon .az-coupon { width: 100% !important; }
.ab-cart .sg-cart-coupon .send-coupon-form .row { height: 42px !important; border-radius: 5px !important; background: var(--sg-cart-items, #f0f0f0) !important; overflow: hidden; }
.ab-cart .sg-cart-coupon .send-coupon { height: 42px !important; padding: 10px 15px !important; background: transparent !important; font-size: 14px !important; }
.ab-cart .sg-cart-coupon .send-coupon-button { width: 111px !important; flex: 0 0 111px !important; height: 42px !important; border-radius: 0 !important; font-size: 14px !important; font-weight: 500 !important; }
@media (max-width: 767px) { .ab-cart .sg-cart-coupon .send-coupon-button { width: 85px !important; min-width: 0 !important; flex-basis: 85px !important; } }
.ab-cart .ab-cart-sum.az-cartsum { display: flex !important; flex-direction: column; padding: 0 !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; background: transparent !important; }
.ab-cart .ab-cart-sum .sg-cart-sum__title { order: 1; margin: 50px 0 10px !important; text-align: center; font-size: 14px !important; font-weight: 500 !important; line-height: 21px !important; color: var(--sg-primary) !important; }
.ab-cart .ab-cart-sum .az-cartsum__box { order: 2; margin: 0 20px 20px !important; padding: 20px !important; border: 0 !important; border-radius: 8px !important; background: var(--sg-cart-items, #f0f0f0) !important; }
.ab-cart .ab-cart-sum .az-cartsum__box .space-y-2 > .flex.justify-between { margin: 0 !important; padding: 5px 0 !important; }
.ab-cart .ab-cart-sum .az-cartsum__box .space-y-2 > .flex.justify-between span { font-size: 14px !important; font-weight: 400 !important; line-height: 21px !important; color: #777 !important; }
.ab-cart .ab-cart-sum .az-cartsum__box .space-y-2 > .flex.justify-between.items-baseline { margin-top: 10px !important; border-top: 1px solid #eee; }
.ab-cart .ab-cart-sum .az-cartsum__box .space-y-2 > .flex.justify-between.items-baseline span { font-weight: 500 !important; color: var(--sg-primary) !important; }
.ab-cart .ab-cart-sum > .mt-3 { order: 3; margin: 25px 55px 0 !important; }
.ab-cart .ab-cart-sum .loyalty-points-section { margin: 0 !important; padding: 15px !important; border: 0 !important; border-radius: 10px !important; background: var(--sg-cart-items, #f0f0f0) !important; }
.ab-cart .ab-cart-sum .sg-cartfoot__continue {
  order: 4; width: 50% !important; min-height: 42px !important; height: 42px; margin: 48px auto 0 !important; border-radius: 5.5px !important;
  font-size: 14px !important; font-weight: 500 !important;
}
.ab-cart .ab-cart-sum .ab-cart-payicons { display: none !important; }
@media (max-width: 767px) {
  .ab-cart .ab-cart-sum > .mt-3 { margin: 25px 18px 0 !important; }
  .ab-cart .ab-cart-sum .sg-cartfoot__continue { width: 100% !important; }
}

/* sticky «المتابعة للتوصيل والدفع» = segadty .sticky-cart: 10px 10px 20px padding, top corners 10px, no shadow,
   button 60px high, 8px radius, 18px/500 */
body .ab-cart [data-cart-primary-checkout] .sg-cart-bar, .sg-cart-bar { padding: 10px 10px calc(20px + env(safe-area-inset-bottom)) !important; border-radius: 10px 10px 0 0 !important; box-shadow: none !important; }
body .ab-cart [data-cart-primary-checkout] .sg-cart-bar .sg-cart-bar__btn, .sg-cart-bar .sg-cart-bar__btn { min-height: 60px !important; height: 60px; padding: 0 30px !important; border-radius: 8px !important; font-size: 18px !important; font-weight: 500 !important; }

/* cart «النقاط المكتسبة» box = segadty .cart-page .loyalty-points-section: 15px padding, 10px radius, cart-items colour ·
   title 16px/600 at the start, «N نقطة» 16px/700 primary at the end · balance + redeem text 13px, 35px above the form ·
   white «اختر» select (11px) beside the primary «إستخدم» button (15px between), both 38px high */
.ab-cart .loyalty-points-section { margin: 0 !important; padding: 15px !important; border: 0 !important; border-radius: 10px !important; background: var(--sg-cart-items, #f0f0f0) !important; font-size: 13px !important; color: #4b4b4b; }
.ab-cart .loyalty-points-section .loyalty-points-expected-section { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; padding: 0 !important; font-size: 16px; font-weight: 600; line-height: 24px; }
.ab-cart .loyalty-points-section .loyalty-points-expected-section > div:last-child { width: auto !important; text-align: end; color: var(--sg-primary) !important; font-weight: 700; white-space: nowrap; }
.ab-cart .loyalty-points-section .loyalty-points__info { margin: 15px 0 35px !important; }
.ab-cart .loyalty-points-section .loyalty-points__info p { margin: 0 !important; font-size: 13px; font-weight: 500; line-height: 22px; }
.ab-cart .loyalty-points-section .loyalty-points__points-text { color: var(--sg-primary) !important; font-weight: 700; }
.ab-cart .loyalty-points-section .loyalty-points-redemption-form .form-group { margin: 0 !important; }
.ab-cart .loyalty-points-section .loyalty-points-redemption-form .d-flex { align-items: stretch; }
.ab-cart .loyalty-points-section .loyalty-points-redemption-form select {
  flex: 1 1 auto; min-width: 0; height: 38px !important; padding: 0 12px !important; border: 0 !important; border-radius: 0 !important;
  background-color: #fff !important; color: #4b4b4b; font: 500 11px var(--sg-font);
}
.ab-cart .loyalty-points-section .loyalty-points-redemption-form button {
  min-width: 85px !important; height: 38px !important; margin: 0 !important; margin-inline-start: 15px !important; padding: 0 14px !important;
  border: 0 !important; border-radius: 2px !important; background: var(--sg-primary) !important; color: #fff !important; font: 700 15px var(--sg-font);
}
.ab-cart .loyalty-points-section .loyalty-points-redemption-form button[disabled] { opacity: .65; cursor: not-allowed; }
.ab-cart .loyalty-points-section .loyalty-points-login { display: inline-block; margin-top: 10px; color: var(--sg-primary) !important; font-size: 13px; }
.ab-cart .loyalty-points-section .loyalty-points-method-applied-row button { background: var(--sg-primary) !important; color: #fff !important; border-radius: 5px !important; text-decoration: none !important; }
/* rewards form: the «اختر» select takes the row, «إستخدم» stays a fixed 85px button */
.ab-cart .loyalty-points-section .loyalty-points-redemption-form .d-flex { display: flex !important; flex-wrap: nowrap !important; width: 100%; }
.ab-cart .loyalty-points-section .loyalty-points-redemption-form select { flex: 1 1 0% !important; width: auto !important; max-width: none !important; }
.ab-cart .loyalty-points-section .loyalty-points-redemption-form button { flex: 0 0 85px !important; width: 85px !important; min-width: 0 !important; max-width: 85px !important; }
/* «متابعة التسوق» → footer = 40px (segadty cart page): no extra bottom gap, the sticky bar overlays the footer's own bottom padding */
.ab-cart { padding-bottom: 20px !important; }
.ab-cart .ab-cart-bottom, .ab-cart-bottom:has(.sg-cart-bar) { margin-bottom: 0 !important; }
body[data-template="cart_page"]:has(.ab-cart) footer.sg-ftr { margin-top: 20px !important; }

/* empty cart page = segadty .cart-empty: 48px under the title · 90px two-tone cart #4b4b4b · «السلة فارغة» 40px/500 #777
   (16px gap) · outline «متابعة التسوق» 42px, 5.5px radius, 14px/500 primary (16px gap, 40px under it) */
.ab-cart .cart-empty { padding: 48px 0 0 !important; }
.sg-cart-empty { display: flex; flex-direction: column; align-items: center; padding: 0 !important; margin: 0 0 40px; text-align: center; }
.sg-cart-empty__ico { width: 90px; height: 90px; color: #4b4b4b; }
.sg-cart-empty .sg-cart-empty__title { margin: 16px 0 0 !important; font-size: 40px !important; font-weight: 500 !important; line-height: 60px !important; color: #777 !important; }
.sg-cart-empty__btn {
  display: inline-flex; align-items: center; justify-content: center; height: 42px; margin-top: 16px; padding: 8px 16px;
  border: 1px solid var(--sg-primary); border-radius: 5.5px; background: transparent; color: var(--sg-primary) !important;
  font-size: 14px; font-weight: 500; line-height: 21px; text-decoration: none !important; transition: background-color .2s, color .2s;
}
.sg-cart-empty__btn:hover { background: var(--sg-primary); color: var(--sg-on-primary, #fff) !important; }

/* empty side cart = segadty: only «سلة التسوق فارغة» (14px/500 #4b4b4b), centred, one panel-width below the title — no buttons */
#side-cart .ab-empty-cart.empty-cart-box { padding: 0 !important; text-align: center; }
#side-cart .ab-empty-cart .empty-cart-title { margin: calc(100% - 15px) 0 0 !important; font-size: 14px !important; font-weight: 500 !important; line-height: 21px !important; color: #4b4b4b !important; }
#side-cart .ab-empty-cart .ab-empty-ctas { display: none !important; }

/* home product sliders — card width = segadty.com (.product-item-slide col-6 col-md-3 col-lg-2), measured:
   below 992px every card is 180px · from 992px a card is one sixth of the page width (1024 → 171 · 1366 → 228 · 1920 → 320),
   10px apart; the card height follows the square image */
html body .sg-rail:not(.sg-rail--lg) .swiper > .swiper-wrapper > .swiper-slide { width: 180px !important; }
@media (min-width: 992px) {
  html body .sg-rail:not(.sg-rail--lg) .swiper > .swiper-wrapper > .swiper-slide { width: calc((100vw - var(--sg-sbw, 0px)) / 6) !important; }
}
/* phones: first card 55px from the right edge, same as segadty */
@media (max-width: 767px) { html body .sg-rail:not(.sg-rail--lg) .sg-rail__wrap.is-scrollable { padding-right: 24px !important; } }

/* «الصور المتحركة» section = exactly the slide height (segadty .main-slider): no bottom padding, and on phones too every
   slide is the same 1200×514 box with the photo contained in it (400 → 163px), so a taller photo can't stretch the slider */
.sg-section.sg-banner-sec { padding-bottom: 0 !important; }
.sg-banner-sec .sg-banner__img { aspect-ratio: 1200 / 514 !important; height: auto !important; object-fit: contain; }

/* home category cards — no hover animation (no zoom / lift / shadow) */
.sg-cat__media img, .sg-cat__media:hover img { transition: none !important; transform: none !important; }
.sg-icat .sg-icat__tile, .sg-icat:hover .sg-icat__tile { transition: none !important; transform: none !important; box-shadow: none !important; }

/* «فروعنا» — the map itself gets rounded corners again (design request) */
.sg-branches__map, .sg-branches__map iframe { border-radius: 10px !important; }
.sg-branches__map { overflow: hidden !important; }

/* PDP sticky add-to-cart — slides down out of view (segadty: translateY 80px) instead of popping; shown with .is-visible */
.ab-pdp .sticky-cart.sg-sticky, .sticky-cart.sg-sticky { display: block !important; transform: translateY(110%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
.ab-pdp .sticky-cart.sg-sticky.is-visible, .sticky-cart.sg-sticky.is-visible { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s; }
/* out of stock (segadty .sticky-notification-block): the bar shows one full-width faded «نفذت الكمية» button, 50px, 8px radius,
   18px text — tapping it scrolls to the Notify-Me form; it follows the buy box's in-stock / out-of-stock state */
.sticky-cart.sg-sticky .sg-sticky__oos { display: none; }
body[data-template="product_details"]:has([data-pdp-buybox] [data-out-of-stock-form]:not(.hidden)) .sticky-cart.sg-sticky .sg-sticky__in { display: none !important; }
body[data-template="product_details"]:has([data-pdp-buybox] [data-out-of-stock-form]:not(.hidden)) .sticky-cart.sg-sticky .sg-sticky__oos { display: flex; }
.sg-sticky__oos .sg-sticky__oos-btn {
  width: 100%; height: 50px; margin: 0; border: 0 !important; border-radius: 8px !important; opacity: .5;
  background: var(--sg-primary) !important; color: var(--sg-on-primary, #fff) !important; font-size: 18px !important; font-weight: 500 !important; cursor: pointer;
}

/* 404 = segadty.com: centred, 48px above / between / below */
.sg-404 { width: min(100% - 30px, 1110px); margin: 48px auto; text-align: center; }
.sg-404__code { margin: 0 0 48px; color: #777; font-size: 80px; font-weight: 500; line-height: 120px; }
.sg-404__title { margin: 0; color: #777; font-size: 32px; font-weight: 500; line-height: 48px; }

/* PDP «نبهني عند توفر المنتج» = segadty .notify-form (measured 1366 / 400): 20px under the buy box · centred title 16px/500
   primary with a bell, 18px under it · white fields 41px (10px 15px, 6px radius, 14px #777), 10px apart · phone row 44px with the
   country code (80px, 13px) at the end · «إرسال» 40px, 6px radius, 16px/500 */
.ab-pdp [data-out-of-stock-form] { margin-top: 20px; }
.ab-pdp .sg-notify__title { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 18px; color: var(--sg-primary); font-size: 16px; font-weight: 500; line-height: 24px; }
.ab-pdp .ab-notify.sg-notify { display: flex !important; flex-direction: column; gap: 10px !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
.ab-pdp .sg-notify .sg-notify__field, .ab-pdp .sg-notify .sg-notify__tel {
  height: 41px !important; padding: 10px 15px !important; border: 0 !important; border-radius: 6px !important; box-shadow: none !important;
  background: #fff !important; color: #777 !important; font-size: 14px !important; font-weight: 500 !important;
}
.ab-pdp .sg-notify .sg-notify__field::placeholder, .ab-pdp .sg-notify .sg-notify__tel::placeholder { color: #777; opacity: 1; }
.ab-pdp .sg-notify__phone { display: flex; align-items: stretch; height: 44px; border-radius: 6px; background: #fff; }
.ab-pdp .sg-notify .sg-notify__tel { height: 44px !important; border-radius: 0 !important; background: transparent !important; text-align: right; }
.ab-pdp .sg-notify__code { flex: 0 0 80px; }
.ab-pdp .sg-notify__code-btn { display: flex; align-items: center; gap: 6px; width: 100%; height: 100%; padding: 0 10px; border: 0; background: transparent; color: #4b4b4b; font-size: 13px; font-weight: 500; cursor: pointer; }
.ab-pdp .sg-notify__code-btn .material-symbols-outlined { font-size: 18px; }
.ab-pdp .sg-notify .sg-notify__send { height: 40px !important; min-height: 40px !important; padding: 8px 16px !important; border-radius: 6px !important; font-size: 16px !important; font-weight: 500 !important; }
/* notify form: no field borders (beats .ab-pdp [data-out-of-stock-form] input) · «إرسال» filled with the store primary */
.ab-pdp [data-out-of-stock-form] .sg-notify input.sg-notify__field:not([type="hidden"]),
.ab-pdp [data-out-of-stock-form] .sg-notify input.sg-notify__tel:not([type="hidden"]) { border: 0 !important; box-shadow: none !important; outline: 0; }
.ab-pdp [data-out-of-stock-form] .sg-notify__phone { border: 0 !important; }
.ab-pdp [data-out-of-stock-form] .sg-notify button.sg-notify__send.ui-btn {
  border: 0 !important; background: var(--sg-primary) !important; color: var(--sg-on-primary, #fff) !important;
}
.ab-pdp [data-out-of-stock-form] .sg-notify button.sg-notify__send.ui-btn:hover { background: var(--sg-primary-hover, var(--sg-primary)) !important; }

/* ===== «شوفها على الطبيعة» — TikTok product videos (sections/tiktok-videos.jinja) = segadty design (1440 desktop file) =====
   #F6F6F6 band, 50px / 40px padding, 30px above · 1250px row · heading centred (15px/600 primary + 12px #999) with the black
   TikTok pill + 34px round arrows at the end · cards 238px, 15px apart: 9:16 video box (10px radius) + white product strip */
.sg-tt { margin-top: 30px; padding: 50px 0 40px !important; background: var(--sg-tt-bg, #F6F6F6); }
.sg-tt__head, .sg-tt__track { width: min(1250px, 100% - 30px); margin-inline: auto; }
.sg-tt__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 28px; }
.sg-tt__heading { text-align: center; }
.sg-tt__title { margin: 0; color: var(--sg-primary); font-size: 15px; font-weight: 600; line-height: 1.5; }
.sg-tt__sub { margin: 8px 0 0; color: #999; font-size: 12px; line-height: 1.5; }
.sg-tt__tools { justify-self: end; display: flex; align-items: center; gap: 8px; }
.sg-tt__account { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: #000; color: #fff !important; font-size: 12px; font-weight: 600; text-decoration: none !important; }
.sg-tt__account svg { flex: none; fill: #fff; }
.sg-tt__arrow { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #DADADA; border-radius: 50%; background: #fff; cursor: pointer; transition: opacity .2s; }
.sg-tt__arrow svg { fill: none; stroke: #4B4B4B; stroke-width: 2.6; }
.sg-tt__arrow:disabled { opacity: .4; cursor: default; }
.sg-tt.is-static .sg-tt__arrow { display: none; }
html[dir="ltr"] .sg-tt__arrow svg { transform: scaleX(-1); }

.sg-tt__track { display: flex; gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sg-tt__track::-webkit-scrollbar { display: none; }
.sg-tt__card { flex: 0 0 238px; display: flex; flex-direction: column; gap: 10px; min-width: 0; scroll-snap-align: start; }

.sg-tt__media { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #2F2624; cursor: pointer; transition: box-shadow .2s; }
.sg-tt__card.is-playing .sg-tt__media { box-shadow: 0 0 0 2px var(--sg-primary); }
.sg-tt__player, .sg-tt__player iframe, .sg-tt__poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sg-tt__poster { display: block; object-fit: cover; background: center / cover no-repeat; }
.sg-tt__player iframe { z-index: 1; background: #000; }
/* TikTok's own overlay (like / comment / share column, author line) sits on the player's edges — the iframe is scaled up
   inside the card's clipped box so only the video shows; clicks go to the theme's own controls */
.sg-tt__player iframe { top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%) scale(1.55); transform-origin: center; pointer-events: none; }
.sg-tt__media::after { content: ""; position: absolute; inset: auto 0 0; z-index: 2; height: 45%; pointer-events: none; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent); }
.sg-tt__bars { position: absolute; top: 10px; right: 10px; left: 10px; z-index: 3; display: flex; gap: 3px; }
.sg-tt__bars span { flex: 1; height: 3px; overflow: hidden; border-radius: 9px; background: rgba(255, 255, 255, .3); }
.sg-tt__bars i { display: block; width: 0; height: 100%; background: #fff; transition: width .25s linear; }
.sg-tt__brand { position: absolute; top: 22px; right: 10px; z-index: 3; display: flex; align-items: center; gap: 6px; color: #fff; font-size: 11px; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
html[dir="ltr"] .sg-tt__brand { right: auto; left: 10px; }
.sg-tt__avatar { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; overflow: hidden; border-radius: 50%; background: #FFD200; color: var(--sg-primary); font-size: 11px; font-weight: 800; }
.sg-tt__avatar img { width: 100%; height: 100%; padding: 3px; object-fit: contain; background: #fff; }
.sg-tt__avatar:has(img) { background: #fff; }
.sg-tt__mute { position: absolute; top: 20px; left: 10px; z-index: 3; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .4); cursor: pointer; }
html[dir="ltr"] .sg-tt__mute { left: auto; right: 10px; }
.sg-tt__mute svg { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.sg-tt__mute .sg-tt__ico-sound { display: none; }
.sg-tt__card.is-playing:not(.is-muted) .sg-tt__mute .sg-tt__ico-muted { display: none; }
.sg-tt__card.is-playing:not(.is-muted) .sg-tt__mute .sg-tt__ico-sound { display: block; }
.sg-tt__play { position: absolute; top: 41%; left: 50%; z-index: 3; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; transform: translateX(-50%); border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; background: rgba(0, 0, 0, .25); cursor: pointer; }
.sg-tt__play svg { fill: #fff; }
.sg-tt__card.is-playing:not(.is-paused) .sg-tt__play, .sg-tt__card.is-auto:not(.is-playing) .sg-tt__play { display: none; }
.sg-tt__caption { position: absolute; right: 12px; bottom: 12px; left: 12px; z-index: 3; display: flex; flex-direction: column; gap: 4px; color: #fff; pointer-events: none; }
.sg-tt__cap { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 600; line-height: 18px; }
.sg-tt__meta { display: flex; align-items: center; gap: 4px; font-size: 10px; opacity: .75; }
.sg-tt__meta[hidden] { display: none; }
.sg-tt__meta svg { fill: none; stroke: #fff; stroke-width: 2; }

/* in-card options sheet */
.sg-tt__sheet { position: absolute; right: 0; bottom: 0; left: 0; z-index: 5; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 10px 10px 0 0; background: #fff; cursor: default; transform: translateY(105%); transition: transform .3s ease; }
.sg-tt__card.has-sheet .sg-tt__sheet { transform: none; }
.sg-tt__sheet[hidden] { display: none; }
@keyframes sg-tt-sheet { from { transform: translateY(100%); } to { transform: none; } }
.sg-tt__sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sg-tt__sheet-head strong { color: #000; font-size: 12px; font-weight: 700; }
.sg-tt__sheet-close { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: #F6F6F6; cursor: pointer; }
.sg-tt__sheet-close svg { stroke: #4B4B4B; stroke-width: 3; stroke-linecap: round; }
.sg-tt__groups { display: flex; flex-direction: column; gap: 8px; max-height: 150px; overflow-y: auto; }
.sg-tt__grp-name { display: block; margin-bottom: 6px; color: #000; font-size: 11px; font-weight: 600; }
.sg-tt__opts { display: flex; flex-wrap: wrap; gap: 7px; }
/* room for the selected swatch ring (2px + 3.5px) so the scrolling list doesn't clip it */
.sg-tt__opts.is-swatch { gap: 10px; padding: 5px; }
.sg-tt__groups { padding: 2px; }
.sg-tt__sw { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); cursor: pointer; }
.sg-tt__sw.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--sg-primary); }
.sg-tt__chip { height: 28px; padding: 0 10px; border: 1px solid #DADADA; border-radius: 5px; background: #fff; color: #4B4B4B; font: 500 11px var(--sg-font); cursor: pointer; }
.sg-tt__chip.is-on { border-color: var(--sg-primary); background: var(--sg-primary); color: #fff; }
.sg-tt__picked { min-height: 16px; color: #767676; font-size: 11px; }
.sg-tt__sheet-add { height: 36px; border: 0; border-radius: 5px; background: var(--sg-primary); color: #fff; font: 600 12px var(--sg-font); cursor: pointer; }
.sg-tt__sheet-add:disabled { opacity: .55; cursor: not-allowed; }
.sg-tt__spin { width: 22px; height: 22px; margin: 6px auto; border: 2px solid #eee; border-top-color: var(--sg-primary); border-radius: 50%; animation: sg-card-spin .8s linear infinite; }

/* product strip */
.sg-tt__prod { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; background: #fff; }
.sg-tt__thumb { flex: none; width: 44px; height: 44px; overflow: hidden; border-radius: 6px; background: #F6F6F6; }
.sg-tt__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-tt__info { flex: 1; min-width: 0; }
.sg-tt__name { display: -webkit-box; height: 31px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #000 !important; font-size: 11px; line-height: 1.4; text-decoration: none !important; }
.sg-tt__price { color: #FF5F5F; font-size: 11px; font-weight: 600; }
.sg-tt__price s { color: #999; font-size: 10px; font-weight: 500; }
.sg-tt__btn { flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--sg-primary); cursor: pointer; transition: opacity .2s; }
.sg-tt__btn svg { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.sg-tt__btn.is-busy { opacity: .6; }

@media (max-width: 767px) {
  .sg-tt { padding: 30px 0 !important; }
  .sg-tt__head { grid-template-columns: 1fr; margin-bottom: 18px; }
  .sg-tt__head > span:first-child { display: none; }
  .sg-tt__tools { justify-self: center; }
  .sg-tt__track { width: 100%; padding-inline: 15px; scroll-padding-inline: 15px; }
  .sg-tt__card { flex-basis: 180px; }
}

/* TikTok card cover = the paused video (no uploaded image): keep the play button, show the frame */
.sg-tt__card.is-cover .sg-tt__play { display: flex !important; }
.sg-tt__card.is-cover .sg-tt__player iframe { background: transparent; }

/* paused TikTok player draws its own play icon in the middle of the video: our play button sits exactly on that spot
   (dead centre, a bit larger) and blurs what is under it, so only the theme's icon shows */
.sg-tt__card.is-cover .sg-tt__play, .sg-tt__card.is-paused .sg-tt__play {
  top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}

/* ===== «تجارب عملائنا تتكلم عنّا» — voice reviews (sections/voice-reviews.jinja) = segadty design (1440 desktop file) =====
   30px padding · centred heading (15px/600 primary + 12px #999, 28px under) · 1250px grid: featured card | 440px list, 15px gap */
.sg-vr { padding: 30px 0 !important; background: var(--sg-vr-bg, transparent); }
.sg-vr__head { margin-bottom: 28px; text-align: center; }
.sg-vr__title { margin: 0; color: var(--sg-primary); font-size: 15px; font-weight: 600; line-height: 1.5; }
.sg-vr__sub { margin: 8px 0 0; color: #999; font-size: 12px; line-height: 1.5; }
.sg-vr__grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 15px; width: min(1250px, 100% - 30px); margin: 0 auto; align-items: stretch; }
/* the featured card is as tall as the recordings list next to it (segadty) */

/* featured card */
.sg-vr__feat { position: relative; display: flex; flex-direction: column; gap: 22px; overflow: hidden; padding: 32px; border-radius: 10px; background: var(--sg-primary); color: #fff; }
.sg-vr__quote-ico { position: absolute; top: 18px; left: 24px; fill: none; stroke: rgba(255, 210, 0, .18); stroke-width: 1.4; pointer-events: none; }
html[dir="ltr"] .sg-vr__quote-ico { left: auto; right: 24px; }
.sg-vr__who { position: relative; display: flex; align-items: center; gap: 14px; }
.sg-vr__avatar { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; overflow: hidden; border-radius: 50%; background: #FFD200; color: var(--sg-primary); font-size: 22px; font-weight: 800; }
.sg-vr__avatar img { width: 100%; height: 100%; object-fit: cover; }
.sg-vr__name { font-size: 17px; font-weight: 700; line-height: 1.4; }
.sg-vr__stars { display: flex; gap: 2px; margin-top: 4px; }
.sg-vr__stars svg { fill: rgba(255, 255, 255, .25); }
.sg-vr__stars svg.is-on { fill: #FFD200; }
.sg-vr__badge { display: flex; align-items: center; gap: 6px; height: 28px; margin-inline-start: auto; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 11px; white-space: nowrap; }
.sg-vr__badge svg { fill: none; stroke: #FFD200; stroke-width: 2.2; }
.sg-vr__text { position: relative; max-width: 640px; margin: 0; font-size: 17px; line-height: 1.9; }
.sg-vr__text[hidden] { display: none; }
.sg-vr__player { position: relative; display: flex; align-items: center; gap: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(0, 0, 0, .18); }
.sg-vr__play { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: #FFD200; cursor: pointer; transition: transform .2s; }
.sg-vr__play:active { transform: scale(.96); }
.sg-vr__play svg, .sg-vr__item-play svg { fill: currentColor; }
.sg-vr__play { color: var(--sg-primary); }
.sg-vr__i-pause { display: none; }
.sg-vr.is-playing .sg-vr__play .sg-vr__i-play, .sg-vr__item.is-playing .sg-vr__i-play { display: none; }
.sg-vr.is-playing .sg-vr__play .sg-vr__i-pause, .sg-vr__item.is-playing .sg-vr__i-pause { display: block; }
.sg-vr__wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 44px; min-width: 0; cursor: pointer; }
.sg-vr__wave span { flex: 1; min-width: 1px; border-radius: 2px; background: rgba(255, 255, 255, .35); transition: background-color .15s; }
.sg-vr__wave span.is-played { background: #FFD200; }
.sg-vr__time { font-size: 12px; white-space: nowrap; opacity: .9; }
.sg-vr__prod { position: relative; display: flex; align-items: center; gap: 10px; align-self: flex-start; max-width: 100%; padding: 6px 14px 6px 6px; border-radius: 10px; background: #fff; color: #000 !important; text-decoration: none !important; }
html[dir="ltr"] .sg-vr__prod { padding: 6px 6px 6px 14px; }
.sg-vr__prod[hidden] { display: none; }
.sg-vr__prod-img { flex: none; width: 40px; height: 40px; overflow: hidden; border-radius: 6px; background: #F6F6F6; }
.sg-vr__prod-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-vr__prod-txt { min-width: 0; overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.sg-vr__prod-cta { flex: none; color: var(--sg-primary); font-size: 12px; font-weight: 600; }

/* recordings list */
.sg-vr__list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sg-vr__list-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 4px; }
.sg-vr__list-head strong { color: #000; font-size: 13px; }
.sg-vr__list-head span { color: #999; font-size: 11px; }
.sg-vr__item { display: flex; align-items: center; gap: 12px; width: 100%; height: 76px; padding: 0 12px; border: 1px solid #EEE; border-radius: 10px; background: #fff; color: #4B4B4B; font-family: inherit; text-align: start; cursor: pointer; transition: border-color .2s, background-color .2s; }
.sg-vr__item:hover { border-color: color-mix(in srgb, var(--sg-primary) 40%, #EEE); }
.sg-vr__item.is-active { border-color: var(--sg-primary); background: #F6F6F6; }
.sg-vr__item-play { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1.5px solid var(--sg-primary); border-radius: 50%; background: #fff; color: var(--sg-primary); }
.sg-vr__item.is-active .sg-vr__item-play { background: var(--sg-primary); color: #fff; }
.sg-vr__item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sg-vr__item-name { color: #000; font-size: 13px; font-weight: 600; }
.sg-vr__item-quote { overflow: hidden; color: #999; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.sg-vr__item-wave { flex: none; display: flex; align-items: center; gap: 2px; width: 54px; height: 22px; }
.sg-vr__item-wave span { flex: 1; border-radius: 2px; background: #D9CFCF; }
.sg-vr__item.is-active .sg-vr__item-wave span { background: color-mix(in srgb, var(--sg-primary) 45%, #fff); }
.sg-vr__item.is-active .sg-vr__item-wave span.is-played, .sg-vr__item.is-active:not(.is-playing) .sg-vr__item-wave span:not(.is-played) { background: var(--sg-primary); }
.sg-vr__item.is-playing .sg-vr__item-wave span:not(.is-played) { background: color-mix(in srgb, var(--sg-primary) 35%, #fff); }
.sg-vr__item-dur { flex: none; width: 34px; color: #767676; font-size: 11px; }

@media (max-width: 991px) {
  .sg-vr__grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .sg-vr__feat { gap: 16px; padding: 20px 16px; }
  .sg-vr__quote-ico { width: 80px; height: 80px; }
  .sg-vr__who { flex-wrap: wrap; }
  .sg-vr__avatar { width: 48px; height: 48px; font-size: 19px; }
  .sg-vr__name { font-size: 15px; }
  .sg-vr__badge { margin-inline-start: 0; }
  .sg-vr__text { font-size: 14px; line-height: 1.8; }
  .sg-vr__player { gap: 10px; padding: 10px; }
  .sg-vr__play { width: 46px; height: 46px; }
  .sg-vr__wave { gap: 2px; height: 36px; }
  .sg-vr__wave span:nth-child(2n) { display: none; }
  .sg-vr__time { font-size: 11px; }
  .sg-vr__item { height: 70px; gap: 10px; }
  .sg-vr__item-wave { display: none; }
}

/* ===== pop-ups & upselling (components/organisms/promo-popups.jinja) = segadty «العروض المنبثقة والبيع الإضافي» =====
   scrim rgba(75,75,75,.6) (.45 behind the drawer) · A: 560px card, 14px radius, image 220px, body 28px, title 26px/800 primary,
   dashed code box + «نسخ الكود», 50px CTA · B: 420px drawer (bottom sheet on phones) · C: 380px offer card */
body.sg-pp-lock { overflow: hidden; }
.sg-pp__modal, .sg-pp__drawer-wrap { position: fixed; inset: 0; z-index: 2147483100; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .25s ease; }
.sg-pp__modal[hidden], .sg-pp__drawer-wrap[hidden] { display: none; }
.sg-pp__modal.is-open, .sg-pp__drawer-wrap.is-open { opacity: 1; }
.sg-pp__scrim { position: absolute; inset: 0; background: rgba(75, 75, 75, .6); }
.sg-pp__drawer-wrap .sg-pp__scrim { background: rgba(75, 75, 75, .45); }

.sg-pp__box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 14px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); transform: translateY(16px) scale(.98); transition: transform .25s ease; }
.is-open > .sg-pp__box { transform: none; }
.sg-pp__x { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 99px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); cursor: pointer; }
html[dir="ltr"] .sg-pp__x { left: auto; right: 12px; }
.sg-pp__x svg, .sg-pp__dx svg { stroke: #4B4B4B; stroke-width: 2.4; stroke-linecap: round; }
.sg-pp__media { height: 220px; background: #EFEDEA; }
.sg-pp__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sg-pp__body { display: flex; flex-direction: column; gap: 14px; padding: 28px; text-align: center; color: #4B4B4B; }
.sg-pp__title { margin: 0; color: var(--sg-primary); font-size: 26px; font-weight: 800; line-height: 1.35; }
.sg-pp__text { margin: 0; font-size: 15px; line-height: 1.7; }
.sg-pp__code { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px 8px 8px; border: 1.5px dashed var(--sg-primary); border-radius: 10px; background: #FFFBEA; }
html[dir="ltr"] .sg-pp__code { padding: 8px 8px 8px 16px; }
.sg-pp__code-val { padding-inline-start: 8px; color: var(--sg-primary); font-size: 22px; font-weight: 800; letter-spacing: 1px; word-break: break-all; text-align: start; }
.sg-pp__code-btn { flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--sg-primary); color: #fff; font: 700 14px var(--sg-font); cursor: pointer; }
.sg-pp__code-btn.is-done { background: #1E7B34; }
.sg-pp__cta { display: flex; align-items: center; justify-content: center; height: 50px; border-radius: 6px; background: var(--sg-primary); color: #fff !important; font-size: 16px; font-weight: 800; text-decoration: none !important; }
.sg-pp__skip { min-height: 32px; border: 0; background: transparent; color: #6B6B6B; font: 13px var(--sg-font); text-decoration: underline; cursor: pointer; }
.sg-pp__skip--dark { min-height: 40px; color: #4B4B4B; font-size: 14px; }

/* B — upsell drawer */
.sg-pp__drawer-wrap { padding: 0; justify-content: flex-end; }
html[dir="rtl"] .sg-pp__drawer-wrap { justify-content: flex-end; }
.sg-pp__drawer { position: absolute; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; width: min(420px, 100%); background: #fff; transform: translateX(-100%); transition: transform .3s ease; }
html[dir="ltr"] .sg-pp__drawer { left: auto; right: 0; transform: translateX(100%); }
.is-open > .sg-pp__drawer { transform: none; }
.sg-pp__grip { display: none; }
.sg-pp__dhead { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #EEE; }
.sg-pp__ok { display: flex; align-items: center; gap: 8px; color: #1E7B34; font-size: 16px; }
.sg-pp__ok svg { flex: none; fill: none; stroke: #1E7B34; stroke-width: 2.6; }
.sg-pp__dx { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.sg-pp__added { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #F3F3F3; }
.sg-pp__added[hidden] { display: none; }
.sg-pp__aimg { flex: none; width: 64px; height: 64px; overflow: hidden; border-radius: 8px; background: #F6F6F6; }
.sg-pp__aimg img, .sg-pp__simg img, .sg-pp__pimg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sg-pp__ainfo { flex: 1; min-width: 0; }
.sg-pp__aname { overflow: hidden; color: #000; font-size: 14px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.sg-pp__ameta { color: #4B4B4B; font-size: 12px; }
.sg-pp__aprice { flex: none; color: var(--sg-primary); font-size: 14px; }
.sg-pp__sugg { display: flex; flex: 1; flex-direction: column; gap: 12px; min-height: 0; padding: 16px 20px; overflow-y: auto; }
.sg-pp__stitle { margin: 0; color: var(--sg-primary); font-size: 17px; font-weight: 800; }
.sg-pp__slist { display: flex; flex-direction: column; gap: 12px; }
.sg-pp__sitem { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; background: #F6F6F6; }
.sg-pp__sitem[hidden] { display: none; }
.sg-pp__simg { flex: none; width: 64px; height: 64px; overflow: hidden; border-radius: 8px; background: #fff; }
.sg-pp__sinfo { flex: 1; min-width: 0; }
.sg-pp__sname { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #000 !important; font-size: 13px; font-weight: 700; line-height: 1.4; text-decoration: none !important; }
.sg-pp__sprice { font-size: 13px; }
.sg-pp__sprice strong, .sg-pp__pprice strong { color: var(--sg-primary); }
.sg-pp__sprice s, .sg-pp__pprice s { color: #767676; font-size: 12px; }
.sg-pp__sadd { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 12px; border: 0; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--sg-primary); color: var(--sg-primary) !important; font: 700 13px var(--sg-font); white-space: nowrap; text-decoration: none !important; cursor: pointer; }
.sg-pp__sadd.is-busy { opacity: .6; }
.sg-pp__sadd.is-done { background: var(--sg-primary); color: #fff !important; }
.sg-pp__dfoot { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; border-top: 1px solid #EEE; }
.sg-pp__btn { display: flex; align-items: center; justify-content: center; height: 48px; border: 0; border-radius: 6px; background: var(--sg-primary); color: #fff !important; font: 800 15px var(--sg-font); text-decoration: none !important; cursor: pointer; }
.sg-pp__btn:disabled { opacity: .6; }
.sg-pp__btn--line { height: 44px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--sg-primary); color: var(--sg-primary) !important; font-weight: 700; }

/* C — pre-checkout offer */
.sg-pp__box--sm { display: flex; flex-direction: column; gap: 12px; width: min(380px, 100%); padding: 20px; color: #4B4B4B; }
.sg-pp__tag { align-self: flex-start; padding: 4px 8px; border-radius: 4px; background: #FFD200; color: var(--sg-primary); font-size: 11px; font-weight: 800; }
.sg-pp__ptitle { margin: 0; color: #000; font-size: 19px; font-weight: 800; line-height: 1.4; }
.sg-pp__prow { display: flex; align-items: center; gap: 12px; }
.sg-pp__pimg { flex: none; width: 80px; height: 80px; overflow: hidden; border-radius: 8px; background: #F6F6F6; }
.sg-pp__ptext { color: #000; font-size: 14px; }
.sg-pp__pprice strong { font-size: 20px; }

@media (max-width: 767px) {
  .sg-pp__modal { align-items: flex-start; padding: 70px 16px 16px; }
  .sg-pp__x { top: 10px; left: 10px; box-shadow: none; }
  .sg-pp__media { height: 170px; }
  .sg-pp__body { gap: 12px; padding: 20px; }
  .sg-pp__title { font-size: 21px; }
  .sg-pp__text { font-size: 14px; }
  .sg-pp__code { padding: 6px 12px 6px 6px; }
  .sg-pp__code-val { font-size: 19px; }
  .sg-pp__code-btn { padding: 0 14px; font-size: 13px; }
  .sg-pp__cta { height: 48px; font-size: 15px; }
  .sg-pp__pre { align-items: center; padding: 16px; }
  /* B — bottom sheet */
  .sg-pp__drawer { top: auto; right: 0; left: 0; width: 100%; max-height: 85vh; padding: 10px 16px 20px; gap: 12px; border-radius: 14px 14px 0 0; transform: translateY(100%); }
  html[dir="ltr"] .sg-pp__drawer { transform: translateY(100%); }
  .sg-pp__grip { display: block; align-self: center; width: 40px; height: 4px; border-radius: 9px; background: #D9D9D9; }
  .sg-pp__dhead { padding: 0; border: 0; }
  .sg-pp__ok { font-size: 15px; }
  .sg-pp__dx { width: 36px; height: 36px; }
  .sg-pp__added { display: none !important; }
  .sg-pp__sugg { flex: none; padding: 0; overflow: visible; }
  .sg-pp__stitle { font-size: 16px; }
  .sg-pp__slist { flex-direction: row; gap: 10px; overflow-x: auto; scrollbar-width: none; }
  .sg-pp__slist::-webkit-scrollbar { display: none; }
  .sg-pp__sitem { flex: none; flex-direction: column; align-items: stretch; gap: 6px; width: 160px; padding: 8px; }
  .sg-pp__simg { width: 100%; height: 100px; }
  .sg-pp__simg img { object-fit: contain; }
  .sg-pp__sname { height: 32px; font-size: 12px; line-height: 1.35; }
  .sg-pp__sprice { font-size: 14px; }
  .sg-pp__sprice s { display: none; }
  .sg-pp__dfoot { flex-direction: row; padding: 0; border: 0; }
  .sg-pp__dfoot .sg-pp__btn { flex: 1; height: 48px; }
}

/* cart «لا تدع هذه الفرصة تفوتك» rail: listing cards, all the same height */
.ab-cart-upsell { margin-top: 30px; }
.ab-cart-upsell .swiper-wrapper { align-items: stretch; }
.ab-cart-upsell .swiper-slide { height: auto !important; }
.ab-cart-upsell .swiper-slide > .product-cart { height: 100%; }
.ab-cart-upsell .swiper-slide > .product-cart .sg-card__body { flex: 1 1 auto; }

/* upsell suggestions inside the side cart — a compact horizontal rail UNDER the cart lines (or the empty-cart message).
   With the rail present the whole side-cart body scrolls, so the cart lines keep their full size and come first. */
#side-cart .offcanvas-body:has(> .sg-pp__sugg--cart:not([hidden])) { overflow-y: auto; scrollbar-width: thin; }
#side-cart .offcanvas-body:has(> .sg-pp__sugg--cart:not([hidden])) > .cart-list { flex: none; overflow: visible; }
#side-cart .sg-pp__sugg--cart { flex: none; display: flex; flex-direction: column; gap: 8px; margin: 6px 16px 14px; padding: 12px 0 0; overflow: visible; border-top: 1px solid #EEE; }
#side-cart .sg-pp__sugg--cart[hidden] { display: none; }
#side-cart .sg-pp__sugg--cart .sg-pp__stitle { color: var(--sg-primary); font-size: 13px; font-weight: 700; text-align: start; }
#side-cart .sg-pp__sugg--cart .sg-pp__slist { flex-direction: row; gap: 8px; padding-bottom: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
#side-cart .sg-pp__sugg--cart .sg-pp__slist::-webkit-scrollbar { display: none; }
#side-cart .sg-pp__sugg--cart .sg-pp__sitem { flex: 0 0 132px; flex-direction: column; align-items: stretch; gap: 5px; width: 132px; padding: 6px; border-radius: 8px; scroll-snap-align: start; }
#side-cart .sg-pp__sugg--cart .sg-pp__simg { width: 100%; height: 84px; border-radius: 6px; }
#side-cart .sg-pp__sugg--cart .sg-pp__simg img { object-fit: contain; }
#side-cart .sg-pp__sugg--cart .sg-pp__sinfo { min-height: 0; }
#side-cart .sg-pp__sugg--cart .sg-pp__sname { height: 31px; font-size: 11px; font-weight: 600; line-height: 1.4; }
#side-cart .sg-pp__sugg--cart .sg-pp__sprice { font-size: 11px; line-height: 1.5; }
#side-cart .sg-pp__sugg--cart .sg-pp__sprice s { display: inline; font-size: 10px; }
#side-cart .sg-pp__sugg--cart .sg-pp__sadd { width: 100%; height: 30px; padding: 0 8px; font-size: 11px; }
/* empty cart + rail: «سلة التسوق فارغة» moves up (it normally sits a panel-width down) so the rail is visible under it */
#side-cart .offcanvas-body:has(> .sg-pp__sugg--cart:not([hidden])) .ab-empty-cart .empty-cart-title { margin: 40px 0 24px !important; }

/* promo sticky tab — left edge, mid-screen (physical left in RTL and LTR). The tab is a normal horizontal button turned
   90° (so Arabic text stays joined), pinned to the edge; hidden it slides out to the left */
.sg-pp__tab { position: fixed; top: 50%; left: 0; z-index: 2147483000; display: flex; align-items: center; gap: 8px; height: 38px;
  padding: 0 16px; border: 0; border-radius: 10px 10px 0 0; background: var(--sg-primary); color: #fff; font: 700 13px var(--sg-font);
  white-space: nowrap; box-shadow: 0 -4px 14px rgba(0, 0, 0, .16); cursor: pointer;
  transform-origin: 0 0; transform: rotate(90deg) translate(-50%, 0); transition: transform .3s ease; }
.sg-pp__tab.is-in { transform: rotate(90deg) translate(-50%, -100%); }
.sg-pp__tab.is-in.is-hidden { transform: rotate(90deg) translate(-50%, 0); }
.sg-pp__tab svg { flex: none; fill: none; stroke: #FFD200; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-90deg); }
@media (max-width: 767px) { .sg-pp__tab { height: 34px; padding: 0 12px; font-size: 12px; } }

/* side-cart suggestions slider: stays inside the panel width; swipe hint (home sliders' icon) at the end of the title row */
#side-cart .offcanvas-body { overflow-x: hidden; }
#side-cart .sg-pp__sugg--cart { min-width: 0; max-width: calc(100% - 32px); }
#side-cart .sg-pp__shead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#side-cart .sg-pp__shead .sg-swipe { flex: none; width: 26px; height: 26px; color: #cfcfcf; }
#side-cart .sg-pp__shead .sg-swipe svg { width: 22px; height: 22px; }
#side-cart .sg-pp__sugg--cart.is-static .sg-pp__shead .sg-swipe { display: none; }
#side-cart .sg-pp__swiper { width: 100%; min-width: 0; overflow: hidden; }
#side-cart .sg-pp__swiper .sg-pp__slist { flex-direction: row; gap: 0; overflow: visible; padding-bottom: 2px; scroll-snap-type: none; }
#side-cart .sg-pp__swiper .sg-pp__sitem { width: 132px !important; flex: 0 0 132px; height: auto; }
#side-cart .sg-pp__swiper .sg-pp__sitem[hidden] { display: none !important; }

/* TikTok play icon: TikTok draws its own icon whenever its player is not running (loading / paused / autoplay blocked).
   The theme's play button now covers that spot in every one of those states and hides only while the video really plays
   (.is-live, set from the player's time updates) — so TikTok's own icon never shows. */
.sg-tt__card.is-playing:not(.is-paused) .sg-tt__play, .sg-tt__card.is-auto:not(.is-playing) .sg-tt__play {
  display: flex; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.sg-tt__card.is-live:not(.is-paused):not(.is-cover) .sg-tt__play { display: none !important; }

/* TikTok cards: no theme play button — TikTok's own play icon shows on a paused video; a tap on the video plays it */
.sg-tt__card .sg-tt__play { display: none !important; }

/* pop-ups: the dialog box takes focus on open — no focus ring on it */
.sg-pp [role="dialog"]:focus { outline: none; }

/* voice reviews: the list holds 5 recordings; more → vertical slider inside the same height (scroll-snap + ↑/↓ arrows) */
.sg-vr__list-tools { display: flex; align-items: center; gap: 6px; }
.sg-vr__vbtn { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid #DADADA; border-radius: 50%; background: #fff; cursor: pointer; transition: opacity .2s, border-color .2s; }
.sg-vr__vbtn svg { fill: none; stroke: #000; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sg-vr__vbtn:hover:not(:disabled) { border-color: var(--sg-primary); }
.sg-vr__vbtn:disabled { opacity: .35; cursor: default; }
.sg-vr__scroll { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sg-vr__scroll.is-slider { max-height: calc(5 * 76px + 4 * 8px); overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--sg-primary) 35%, #fff) transparent; padding-inline-end: 4px; }
.sg-vr__scroll.is-slider::-webkit-scrollbar { width: 4px; }
.sg-vr__scroll.is-slider::-webkit-scrollbar-thumb { border-radius: 4px; background: color-mix(in srgb, var(--sg-primary) 35%, #fff); }
.sg-vr__scroll .sg-vr__item { flex: none; scroll-snap-align: start; }
@media (max-width: 767px) { .sg-vr__scroll.is-slider { max-height: calc(5 * 70px + 4 * 8px); } }

/* side-cart suggestions = the product card look: grey card (#F6F6F6, radius 10) · white square image (radius 10) ·
   11px/500 black name · price row (strike #999 10px then the price, red when on sale) · 30px primary «أضف/خيارات» + icon */
#side-cart .sg-pp__sugg--cart .sg-pp__sitem { gap: 0; padding: 0; border: 0; border-radius: 10px; background: #F6F6F6; box-shadow: none; overflow: hidden; }
#side-cart .sg-pp__swiper .sg-pp__sitem { width: 140px !important; flex: 0 0 140px; }
#side-cart .sg-pp__sugg--cart .sg-pp__simg { width: 100%; height: auto; aspect-ratio: 1; border-radius: 10px; background: #fff; }
#side-cart .sg-pp__sugg--cart .sg-pp__simg img { width: 100%; height: 100%; object-fit: contain; }
#side-cart .sg-pp__sugg--cart .sg-pp__sinfo { display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 0; }
#side-cart .sg-pp__sugg--cart .sg-pp__sname { display: -webkit-box; height: 31px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #000 !important; font-size: 11px; font-weight: 500; line-height: 1.4; text-decoration: none !important; }
#side-cart .sg-pp__sugg--cart .sg-pp__sprice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #000; font-size: 11px; font-weight: 500; line-height: 1.5; }
#side-cart .sg-pp__sugg--cart .sg-pp__sprice strong { font-weight: 500; }
#side-cart .sg-pp__sugg--cart .sg-pp__sprice:has(s) strong { color: #FF5F5F; }
#side-cart .sg-pp__sugg--cart .sg-pp__sprice s { order: -1; color: #999; font-size: 10px; }
#side-cart .sg-pp__sugg--cart .sg-pp__sadd.sg-card-cta { align-self: flex-start; width: auto; height: 30px; margin: 8px; padding: 5px 5px 5px 8px !important; gap: 6px; border-radius: 5px; background: var(--sg-primary); box-shadow: none; color: #fff !important; font-size: 12px; font-weight: 500; }
#side-cart .sg-pp__sugg--cart .sg-pp__sadd.sg-card-cta:hover { background: var(--sg-primary-hover); }
#side-cart .sg-pp__sugg--cart .sg-pp__sadd .sg-card-cta__ico { width: 18px; height: 18px; }

/* voice reviews (desktop, two columns): the featured box is always as tall as the list with 5 recordings
   (list head 30 + gap 8 + 5×76 + 4×8 = 450px) — even with 1–4 recordings */
.sg-vr__list-head { box-sizing: border-box; min-height: 30px; }
@media (min-width: 992px) {
  .sg-vr__feat { min-height: calc(30px + 8px + 5 * 76px + 4 * 8px); }
}

/* TikTok on phones: the card is 180px wide, and TikTok lays out its player for that small size (count numbers / icons
   bigger and closer to the centre), so the 1.55 crop no longer hid them. The player is now always laid out at the
   desktop card size (238×423) and scaled so it covers the small card with an even deeper crop. */
@media (max-width: 767px) {
  .sg-tt__player iframe { width: 238px; height: 423px; transform: translate(-50%, -50%) scale(1.35); }
}

/* TikTok cards all the same height (phones especially, where the price + old price wrap on some cards only):
   the cards stretch to the tallest one in the row and the product strip fills the rest of its card */
.sg-tt__track { align-items: stretch; }
.sg-tt__card { height: auto; }
.sg-tt__prod { flex: 1 1 auto; }
@media (max-width: 767px) {
  .sg-tt__price { min-height: 32px; }   /* room for price + old price on two lines on every card */
}

/* home product cards — in-card options sheet (scripts/sg-card-options.js), same look as the TikTok section's sheet */
.product-cart { position: relative; }
.product-cart:has(> .sg-co) { overflow: hidden; }
.sg-co { position: absolute; right: 0; bottom: 0; left: 0; z-index: 6; display: flex; flex-direction: column; gap: 10px; max-height: 100%; padding: 12px; border-radius: 10px 10px 0 0; background: #fff; box-shadow: 0 -6px 18px rgba(0, 0, 0, .08); cursor: default; transform: translateY(105%); transition: transform .3s ease; }
.product-cart.has-co .sg-co { transform: none; }
.sg-co[hidden] { display: none; }
.sg-co__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sg-co__head strong { color: #000; font-size: 12px; font-weight: 700; }
.sg-co__close { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: #F6F6F6; cursor: pointer; }
.sg-co__close svg { stroke: #4B4B4B; stroke-width: 3; stroke-linecap: round; }
.sg-co__groups { display: flex; flex-direction: column; gap: 8px; max-height: 150px; padding: 2px; overflow-y: auto; }
.sg-co__grp-name { display: block; margin-bottom: 6px; color: #000; font-size: 11px; font-weight: 600; }
.sg-co__opts { display: flex; flex-wrap: wrap; gap: 7px; }
.sg-co__opts.is-swatch { gap: 10px; padding: 5px; }
.sg-co__sw { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); cursor: pointer; }
.sg-co__sw.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--sg-primary); }
.sg-co__chip { min-height: 28px; padding: 3px 10px; border: 1px solid #DADADA; border-radius: 5px; background: #fff; color: #4B4B4B; font: 500 11px/1.3 var(--sg-font); cursor: pointer; }
.sg-co__chip.is-on { border-color: var(--sg-primary); background: var(--sg-primary); color: #fff; }
.sg-co__picked { min-height: 16px; color: #767676; font-size: 11px; }
.sg-co__add { display: flex; align-items: center; justify-content: center; gap: 2px; height: 36px; border: 0; border-radius: 5px; background: var(--sg-primary); color: #fff !important; font: 600 12px var(--sg-font); cursor: pointer; }
.sg-co__add:disabled { opacity: .55; cursor: not-allowed; }
.sg-co__add.is-busy { opacity: .6; }
.sg-co__spin { width: 22px; height: 22px; margin: 6px auto; border: 2px solid #eee; border-top-color: var(--sg-primary); border-radius: 50%; animation: sg-card-spin .8s linear infinite; }
@media (max-width: 767px) { .sg-co { padding: 10px; gap: 8px; } .sg-co__groups { max-height: 120px; } }

/* «خيارات» while the product loads (before deciding sheet vs product page): the icon becomes a small spinner */
.sg-card-cta.is-co-busy { pointer-events: none; opacity: .85; }
.sg-card-cta.is-co-busy .sg-card-cta__ico i { visibility: hidden; }
.sg-card-cta.is-co-busy .sg-card-cta__ico { position: relative; }
.sg-card-cta.is-co-busy .sg-card-cta__ico::after { content: ""; position: absolute; inset: 3px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: sg-card-spin .7s linear infinite; }

/* «الصور المتحركة» video slides — same 1200×514 box as the images (the video is contained in it) */
.sg-banner-sec .sg-banner__video { display: block; width: 100%; background: var(--sg-card); pointer-events: none; }

/* TikTok videos on the product page (sg-tt-pdp.js): same section, only the video cards — no product strip under them */
.sg-tt-pdp { display: block; min-height: 1px; }   /* an empty 1px spot (not hidden) so it can be watched for scrolling */
.sg-tt--pdp .sg-tt__prod { display: none !important; }
.sg-tt--pdp .sg-tt__card { gap: 0; }
/* few videos on the product page → centred (auto margins keep the row scrollable when it overflows) */
.sg-tt--pdp .sg-tt__card:first-child { margin-inline-start: auto; }
.sg-tt--pdp .sg-tt__card:last-child { margin-inline-end: auto; }

/* TikTok cards: room above/below the row so the playing card's 2px ring and its rounded top corners are not clipped
   by the scrolling row (product page + home) */
.sg-tt__track { padding-block: 3px; }
/* product page: the sticky add-to-cart bar hides while the TikTok videos are on screen */
body.sg-tt-pdp-in .sticky-cart.sg-sticky.is-visible { transform: translateY(110%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }

/* product page TikTok section = the description box's width and shape, and a shorter block:
   desktop 1140px wide, centred, radius 10 · phones full-bleed like the description panel (−15px, square) ·
   padding 50/40 → 24 (phones 30 → 20), heading gap 28 → 16 */
.sg-tt-pdp { width: 100%; max-width: 1140px; margin-inline: auto; }
.sg-tt--pdp.sg-tt { margin-top: 32px; padding: 24px 0 !important; border-radius: var(--sg-radius-card, 10px); }
.sg-tt--pdp .sg-tt__head { margin-bottom: 16px; }
.sg-tt--pdp .sg-tt__head, .sg-tt--pdp .sg-tt__track { width: calc(100% - 40px); }
@media (max-width: 767px) {
  .sg-tt-pdp { width: auto; margin-inline: -15px; }
  .sg-tt--pdp.sg-tt { margin-top: 24px; padding: 20px 0 !important; border-radius: 0; }
  .sg-tt--pdp .sg-tt__head { margin-bottom: 12px; }
  .sg-tt--pdp .sg-tt__head, .sg-tt--pdp .sg-tt__track { width: 100%; }
}
/* product page: gap above the description box (it pulls itself up 16px) + smaller video cards for a shorter section */
.sg-tt-pdp.is-on { margin-bottom: 36px; }
.sg-tt--pdp .sg-tt__card { flex-basis: 210px; }
@media (max-width: 767px) {
  .sg-tt-pdp.is-on { margin-bottom: 32px; }
  .sg-tt--pdp .sg-tt__card { flex-basis: 160px; }
}

/* reviews added from the theme settings: «عبر المتجر» next to the reviewer name — small, muted */
.sg-rcard__via { color: var(--sg-muted, #999); font-size: 10px; font-weight: 400; }

/* ===== «جهّز بكجك» — sections/bundle-builder.jinja (design: Builder.dc.html) =====
   desktop: 45/40 padding · 1250px · 617px cards (220px picture | options) in a scrolling row, 16px gap
   phones (< 768px): 28/24 padding · 318px cards, picture on top (150px), 12px gap, 16px side padding */
.sg-bb { padding: 45px 0 40px !important; background: var(--sg-bb-bg, #FFFFFF); color: #4B4B4B; font-weight: 500; }
.sg-bb__in { width: min(1250px, 100% - 30px); margin: 0 auto; }
.sg-bb__head { margin-bottom: 24px; text-align: center; }
.sg-bb__title { margin: 0; color: var(--sg-primary, #7E0202); font-size: 15px; font-weight: 600; line-height: 1.5; }
.sg-bb__sub { margin: 8px 0 0; color: #999; font-size: 12px; line-height: 1.5; }
.sg-bb__row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sg-bb__row::-webkit-scrollbar { display: none; }
.sg-bb__card { flex: none; display: flex; flex-direction: row; gap: 18px; box-sizing: border-box; width: 617px; max-width: 100%; padding: 16px; border-radius: 10px; background: #F6F6F6; scroll-snap-align: start; }
.sg-bb__media { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 220px; min-height: 280px; overflow: hidden; border-radius: 8px; background: #FFFFFF; }
.sg-bb__media img { display: block; width: 100%; height: 100%; max-height: 100%; object-fit: contain; transition: opacity .2s; }
.sg-bb__off { position: absolute; top: 8px; right: 8px; z-index: 1; padding: 3px 10px; border-radius: 6px; background: var(--sg-primary, #7E0202); color: #FFFFFF; font-size: 12px; font-weight: 600; line-height: 1.4; }
html[dir="ltr"] .sg-bb__off { right: auto; left: 8px; }
.sg-bb__off[hidden] { display: none; }
.sg-bb__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sg-bb__name { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.45; }
.sg-bb__name a { color: #000 !important; text-decoration: none !important; }
.sg-bb__meta { margin-top: 2px; color: #767676; font-size: 11px; }
.sg-bb__meta[hidden] { display: none; }
.sg-bb__rows { display: flex; flex-direction: column; gap: 12px; }
.sg-bb__lbl { margin-bottom: 6px; color: #767676; font-size: 12px; }
.sg-bb__lbl strong { color: #000; font-weight: 600; }
.sg-bb__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.sg-bb__opts.is-sw { gap: 4px; }
.sg-bb__sw { flex: none; width: 24px; height: 24px; margin: 2px; padding: 0; border: 1px solid rgba(0, 0, 0, .12); border-radius: 50%; cursor: pointer; }
.sg-bb__sw.is-on { box-shadow: 0 0 0 2px #F6F6F6, 0 0 0 4px var(--sg-primary, #7E0202); }
.sg-bb__sw.is-dis { position: relative; opacity: .4; cursor: not-allowed; }
.sg-bb__sw.is-dis::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, transparent 46%, #FFFFFF 46%, #FFFFFF 54%, transparent 54%); }
.sg-bb__opt { display: flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border: 1px solid #DADADA; border-radius: 5px; background: #FFFFFF; color: #4B4B4B; font: 500 12px var(--sg-font, inherit); white-space: nowrap; cursor: pointer; transition: border-color .2s, background-color .2s; }
.sg-bb__opt:hover:not(.is-dis):not(.is-on) { border-color: #B5B5B5; }
.sg-bb__opt.is-on { border-color: var(--sg-primary, #7E0202); background: var(--sg-primary, #7E0202); color: #FFFFFF; font-weight: 600; }
.sg-bb__opt.is-add.is-on { background: rgba(126, 2, 2, .06); color: var(--sg-primary, #7E0202); }
.sg-bb__opt.is-dis { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.sg-bb__opt b { font-weight: 700; }
.sg-bb__opt small { color: #2E7D1F; font-size: 11px; }
.sg-bb__note { margin-top: 6px; color: #8A5A00; font-size: 11px; }
.sg-bb__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid #E6E6E6; }
.sg-bb__prices { display: flex; align-items: baseline; gap: 8px; }
.sg-bb__price { color: #FF5F5F; font-size: 19px; font-weight: 700; white-space: nowrap; }
.sg-bb__list { color: #999; font-size: 12px; }
.sg-bb__sum { color: #767676; font-size: 11px; }
.sg-bb__add { flex: none; height: 40px; padding: 0 18px; border: 0; border-radius: 5px; background: var(--sg-primary, #7E0202); color: #FFFFFF !important; font: 600 14px var(--sg-font, inherit); cursor: pointer; }
.sg-bb__add:disabled { opacity: .55; cursor: not-allowed; }
.sg-bb__add.is-busy { opacity: .6; }
.sg-bb__add[hidden], .sg-bb__done[hidden] { display: none; }
.sg-bb__done { flex: none; display: flex; align-items: center; gap: 6px; }
.sg-bb__ok { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 5px; background: #2E7D1F; color: #FFFFFF; font-size: 13px; font-weight: 600; }
.sg-bb__ok svg { fill: none; stroke: #FFFFFF; stroke-width: 3; }
.sg-bb__view { color: var(--sg-primary, #7E0202) !important; font-size: 12px; font-weight: 600; }
/* loading placeholders until the bundle's options arrive */
.sg-bb__skel { display: block; height: 32px; border-radius: 5px; background: linear-gradient(90deg, #EEE 25%, #F8F8F8 50%, #EEE 75%); background-size: 200% 100%; animation: sg-bb-skel 1.2s linear infinite; }
.sg-bb__skel.is-short { width: 60%; }
@keyframes sg-bb-skel { to { background-position: -200% 0; } }
@media (max-width: 767px) {
  .sg-bb { padding: 28px 0 24px !important; }
  .sg-bb__in { width: 100%; }
  .sg-bb__head { margin-bottom: 16px; padding: 0 16px; }
  .sg-bb__row { gap: 12px; padding: 0 16px; scroll-padding-inline: 16px; }
  .sg-bb__card { flex-direction: column; gap: 12px; width: 318px; padding: 12px; }
  .sg-bb__media { width: 100%; height: 150px; min-height: 150px; }
  .sg-bb__done { flex-direction: column; }
}

/* «جهّز بكجك» merchant picture: fills the picture box (440×560 desktop · 600×300 phone) */
.sg-bb__media picture { display: block; width: 100%; height: 100%; }
.sg-bb__media.has-own img { object-fit: cover; }
.sg-bb__media.has-own { align-self: stretch; }

/* «جهّز بكجك» slider (Swiper): equal-height cards, dots under the row, hint + dots hidden when every card fits */
.sg-bb__row.swiper { overflow: hidden; gap: 0; padding: 0 !important; scroll-snap-type: none; }
.sg-bb__row .swiper-wrapper { align-items: stretch; }
.sg-bb__row .sg-bb__card.swiper-slide { height: auto; flex-shrink: 0; }
.sg-bb__dots { margin-top: 16px; }
.sg-bb__dots[hidden] { display: none; }
.sg-bb__wrap > .sg-swipe { top: 50%; }
@media (max-width: 767px) { .sg-bb__dots { margin-top: 12px; } }

/* «جهّز بكجك»: every card keeps the 4-row design height (count · pattern · size · add-ons) — more options scroll
   inside the card between the name and the price row (desktop 500px · phones 600px) */
.sg-bb__row .sg-bb__card.swiper-slide { height: 500px; }
.sg-bb__body { min-height: 0; }
.sg-bb__rows { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-inline-end: 4px; scrollbar-width: thin; scrollbar-color: #CFCFCF transparent; }
.sg-bb__rows::-webkit-scrollbar { width: 4px; }
.sg-bb__rows::-webkit-scrollbar-thumb { border-radius: 4px; background: #CFCFCF; }
.sg-bb__foot { flex: none; }
.sg-bb__media { align-self: stretch; min-height: 0; }
@media (max-width: 767px) {
  .sg-bb__row .sg-bb__card.swiper-slide { height: 600px; }
  .sg-bb__media { flex: none; align-self: auto; }
}
/* «جهّز بكجك»: room for the selected swatch ring (2px gap + 2px ring) inside the scrolling options area, so it isn't clipped */
.sg-bb__opts.is-sw { padding: 3px; }
.sg-bb__rows { padding-inline-start: 2px; }

/* header cart = segadty.com (style.css «header .count-holder»): an 18px-high window (overflow hidden) over the bag, the
   number 10px/600 lifted 4px inside it; on hover the number rolls up and back in from below («scroll-in», 0.2s);
   the icon itself does not change on hover (no fade) */
.sg-hdr .sg-hdr-cart .count-holder { top: 7px !important; height: 18px !important; width: 22px; left: 0 !important; right: auto !important; inset-inline: auto; padding-right: 1px; box-sizing: border-box; overflow: hidden; align-items: center !important; justify-content: center !important; line-height: 1; }
.sg-hdr .sg-hdr-cart .cart-count.cart-badge { position: relative !important; top: -4px; left: auto !important; right: auto !important; inset-inline-end: auto !important; font-size: 10px !important; font-weight: 600 !important; line-height: 1 !important; height: auto !important; text-align: center; transition: top .15s linear; animation-duration: .3s; }
.sg-hdr a.hdr-icon-btn.sg-hdr-cart:hover .count-holder .cart-count.cart-badge { animation-name: sg-cart-scroll-in; animation-duration: .2s; }
@keyframes sg-cart-scroll-in { 0% { top: 0; } 49% { top: -10px; } 50% { top: 15px; } 100% { top: 0; } }
@media (prefers-reduced-motion: reduce) { .sg-hdr a.hdr-icon-btn.sg-hdr-cart:hover .count-holder .cart-count.cart-badge { animation: none; } }
.sg-hdr a.hdr-icon-btn.sg-hdr-cart:hover { opacity: 1 !important; }

/* product-card moving badge (.ab-card-new): fixed 50px wide on every screen, corners 3px */
.ab-card .ab-card-new, .product-cart .ab-card-new { width: 50px !important; max-width: none; border-radius: 3px !important; }
.ab-card .ab-card-new__track, .product-cart .ab-card-new__track { padding-inline: 6px; gap: 14px; }
@media (max-width: 640px) { .ab-card .ab-card-new, .product-cart .ab-card-new { width: 50px !important; } }

/* «معرض صور»: grid = two per row on every screen (one image keeps the same half-width cell, centred); slider = 3 per view
   (ggallery.jinja). Every image sits in the same fixed 4:3 box and is shown whole (contain — never cropped) */
.sg-gal-sec__grid.is-pairs, .sg-gal-sec__grid.is-single { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; justify-items: stretch; }
.sg-gal-sec__grid.is-single { grid-template-columns: minmax(0, calc(50% - 6px)) !important; justify-content: center; }
.sg-gal-sec__grid.is-single .sg-gal-item { max-width: none; }
@media (min-width: 768px) { .sg-gal-sec__grid.is-pairs { gap: 18px; } .sg-gal-sec__grid.is-single { grid-template-columns: minmax(0, calc(50% - 9px)) !important; } }
.sg-gal-sec .sg-gal-item__media, .sg-gal-sec__grid.is-single .sg-gal-item__media, .sg-gal-sec__grid.is-pairs .sg-gal-item__media { aspect-ratio: 4 / 3 !important; }
.sg-gal-sec .sg-gal-item__media img, .sg-gal-sec__grid.is-single .sg-gal-item__media img { width: 100%; height: 100% !important; max-height: none !important; object-fit: contain !important; }
.sg-gal-sec__swiper .swiper-slide { height: auto; }
/* «معرض صور»: no background behind the image inside its box */
.sg-gal-sec .sg-gal-item__media { background: transparent !important; }

/* ===== «اختر عرض الكمية» (beta — scripts/product/sg-qty-offers.js; design ProductQtyOffers.dc.html) ===== */
.sg-qty-src { display: none !important; }
.sg-qty { display: flex; flex-direction: column; gap: 12px; }
.sg-qty__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sg-qty__title { color: var(--sg-ink, #4B4B4B); font-size: 17px; }
.sg-qty__note { color: #767676; font-size: 11px; }
.sg-qty__tabs { display: flex; overflow: hidden; border: 1px solid var(--sg-primary, #7E0202); border-radius: 6px; }
.sg-qty__tab { flex: 1; height: 38px; border: 0; background: #FFFFFF; color: var(--sg-primary, #7E0202); font: 600 13px var(--sg-font, inherit); cursor: pointer; }
.sg-qty__tab.is-on { background: var(--sg-primary, #7E0202); color: #FFFFFF; }
.sg-qty__list { display: flex; flex-direction: column; gap: 8px; }
.sg-qty__card { position: relative; display: flex; align-items: center; gap: 12px; box-sizing: border-box; width: 100%; padding: 12px 14px; border: 1px solid #DADADA; border-radius: 8px; background: #FFFFFF; font-family: inherit; text-align: start; cursor: pointer; transition: border-color .2s, background-color .2s; }
.sg-qty__card:hover:not(.is-dis):not(.is-on) { border-color: #B5B5B5; }
.sg-qty__card.is-on { border: 2px solid var(--sg-primary, #7E0202); padding: 11px 13px; background: rgba(126, 2, 2, .04); }
.sg-qty__card.is-dis { opacity: .5; cursor: not-allowed; }
.sg-qty__badge { position: absolute; top: -9px; left: 12px; padding: 2px 8px; border-radius: 99px; background: #FFD200; color: var(--sg-primary, #7E0202); font-size: 10px; font-weight: 700; line-height: 1.4; }
html[dir="ltr"] .sg-qty__badge { left: auto; right: 12px; }
.sg-qty__dot { flex: none; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 18px; height: 18px; border: 2px solid #BDBDBD; border-radius: 50%; }
.sg-qty__card.is-on .sg-qty__dot { border-color: var(--sg-primary, #7E0202); }
.sg-qty__card.is-on .sg-qty__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sg-primary, #7E0202); }
.sg-qty__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sg-qty__txt strong { color: #000; font-size: 15px; font-weight: 600; line-height: 1.4; }
.sg-qty__txt span { color: #767676; font-size: 12px; }
.sg-qty__prices { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.sg-qty__row { display: flex; align-items: baseline; gap: 6px; }
.sg-qty__row s { color: #999; font-size: 12px; }
.sg-qty__row b { color: #FF5F5F; font-size: 16px; font-weight: 700; white-space: nowrap; }
.sg-qty__save { padding: 1px 6px; border-radius: 4px; background: rgba(85, 198, 58, .12); color: #2E7D1F; font-size: 11px; font-weight: 600; }
@media (max-width: 480px) { .sg-qty__card { gap: 10px; padding: 10px 12px; } .sg-qty__card.is-on { padding: 9px 11px; } .sg-qty__txt strong { font-size: 14px; } .sg-qty__row b { font-size: 15px; } }

/* voice recordings on the product page (sg-vr-pdp.js): under the reviews, same section, inside the details width */
.sg-vr-pdp { display: block; min-height: 1px; }
.sg-vr-pdp.is-on { margin-top: 24px; }
.sg-vr--pdp.sg-vr { padding: 24px 0 !important; border-radius: var(--sg-radius-card, 10px); }
.sg-vr--pdp .sg-vr__grid { width: calc(100% - 40px); }
@media (max-width: 991px) { .sg-vr--pdp .sg-vr__grid { width: 100%; } }

/* voice recordings as review cards on the product page (sg-vr-pdp.js) — same card as the customer reviews, a player in
   place of the review text */
.sg-vrev__tag { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 6px; padding: 1px 7px; border-radius: 99px; background: color-mix(in srgb, var(--sg-primary, #7E0202) 8%, transparent); color: var(--sg-primary, #7E0202); font-size: 10px; font-weight: 600; }
.sg-vrev__tag svg { fill: none; stroke: currentColor; stroke-width: 2; }
.sg-vrev__player { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.sg-vrev__play { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--sg-primary, #7E0202); color: #fff; cursor: pointer; }
.sg-vrev__play svg { fill: currentColor; }
.sg-vrev__i-pause, .sg-vrev.is-playing .sg-vrev__i-play { display: none; }
.sg-vrev.is-playing .sg-vrev__i-pause { display: block; }
.sg-vrev__wave { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; height: 20px; max-width: 260px; cursor: pointer; }
.sg-vrev__wave span { flex: 1; min-width: 2px; border-radius: 2px; background: color-mix(in srgb, var(--sg-primary, #7E0202) 25%, #fff); }
.sg-vrev__wave span.is-played { background: var(--sg-primary, #7E0202); }
.sg-vrev__time { flex: none; color: #767676; font-size: 11px; }
.sg-vr-pdp.is-on { margin-top: 0; }

/* PDP: sub-image thumbnails under the main image (replace the dots) */
.sg-gal__thumbs { display: flex; gap: 10px; justify-content: safe center; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.sg-gal__thumbs::-webkit-scrollbar { display: none; }
.sg-gal__thumb { position: relative; flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid var(--sg-border, #e5e5e5); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; opacity: .7; transition: border-color var(--sg-duration, .3s) var(--sg-ease, ease), opacity var(--sg-duration, .3s) var(--sg-ease, ease); }
.sg-gal__thumb:hover { opacity: 1; }
.sg-gal__thumb.is-active { border-color: var(--sg-primary); opacity: 1; }
.sg-gal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-gal__thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.25); }
@media (max-width: 767px) { .sg-gal__thumbs { justify-content: flex-start; gap: 8px; } .sg-gal__thumb { width: 60px; height: 60px; } }

/* PDP spacing tightened (design request): price → options, options → rewards → Tabby/Tamara, «خيارات المنتج» → «أسئلة» → reviews */
.ab-pdp .ab-preorder-countdown:not(:has(*)) { display: none; margin: 0; }
.ab-pdp .ab-buybox [data-variant-selection-container] { margin-top: 4px !important; }
.ab-pdp .ab-pdp-payw { margin: 12px 0 0 !important; }
.ab-pdp .block-payments-widget.sg-bnpl { margin-top: 8px !important; }
/* shorter Tabby / Tamara cards — same frame, logo on the top border */
.ab-pdp .block-payments-widget.sg-bnpl > .tabby-product-widget { padding: 12px 10px 6px !important; }
.ab-pdp .block-payments-widget.sg-bnpl > tamara-widget { padding: 12px 10px 4px !important; }
.ab-pdp .block-payments-widget.sg-bnpl > * { line-height: 1.45; }
.sg-pdp-details .cd-pdp-pane.sg-pdp-acc[data-pdp-panel="questions"] > .sg-pdp-acc__head { padding-top: 6px !important; }
.sg-q__ask { margin: 16px 0 0; }
/* «أسئلة» title lines up with the «خيارات المنتج» box title (20px in) */
.sg-pdp-details .cd-pdp-pane.sg-pdp-acc[data-pdp-panel="questions"] > .sg-pdp-acc__head { padding-inline: 20px !important; }

/* PERFORMANCE: home sections below the first screen are not styled / laid out / painted until they come near it
   (the home page has ~9.5k elements; every slider start or class change re-measured all of them). Same look once
   reached; «auto» keeps each section's real height after it has been shown once. */
.home-sections > section:nth-child(n+4) { content-visibility: auto; contain-intrinsic-size: auto 500px; }
/* badge scroll driven by sgFitBadges (Web Animation, compositor) — the CSS keyframe version stays as the fallback */
.ab-card-new.is-marquee.is-waapi .ab-card-new__track { animation: none !important; }

/* PDP thumbnails = slider, 6 per row (images.jinja) — square tiles sized by the row, arrows on the sides when there are more */
.sg-gal__thumbs-wrap { position: relative; margin-top: 14px; }
.sg-gal__thumbs-wrap .sg-gal__thumbs { display: block; margin: 0; overflow: hidden; padding: 2px; justify-content: initial; }
.sg-gal__thumbs-wrap .sg-gal__thumbs .swiper-wrapper { display: flex; }
.sg-gal__thumbs-wrap .sg-gal__thumb { width: auto; height: auto; aspect-ratio: 1; flex-shrink: 0; }
@media (max-width: 767px) { .sg-gal__thumbs-wrap .sg-gal__thumb { width: auto; height: auto; } }
.sg-gal__tnav { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -14px; padding: 0; border: 1px solid var(--sg-border, #e5e5e5); border-radius: 50%; background: #fff; color: var(--sg-primary); box-shadow: 0 2px 8px rgba(0,0,0,.08); cursor: pointer; transition: opacity var(--sg-duration, .3s) var(--sg-ease, ease); }
.sg-gal__tnav--prev { inset-inline-start: -10px; }
.sg-gal__tnav--next { inset-inline-end: -10px; }
[dir="rtl"] .sg-gal__tnav svg { transform: scaleX(-1); }
.sg-gal__tnav.swiper-button-disabled { opacity: 0; pointer-events: none; }
.sg-gal__thumbs-wrap:not(.has-more) .sg-gal__tnav, .sg-gal__thumbs-wrap.is-locked .sg-gal__tnav { display: none; }
@media (max-width: 767px) { .sg-gal__tnav { width: 24px; height: 24px; margin-top: -12px; } .sg-gal__tnav--prev { inset-inline-start: -4px; } .sg-gal__tnav--next { inset-inline-end: -4px; } }

/* TikTok player refused («Unable to load player»): picture + the theme play button (tap = retry, then open on TikTok) */
.sg-tt__card.is-failed .sg-tt__player { background: #111; }
.sg-tt__card.is-failed .sg-tt__play { display: flex !important; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* TikTok cards with an uploaded MP4 (native <video>, sections/tiktok-videos.jinja): fills the 9:16 box like the player;
   the theme play button shows while the video is not running (no TikTok icon here) */
.sg-tt__player .sg-tt__vid { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; background: #000; }
.sg-tt__card.is-file:not(.is-live) .sg-tt__play { display: flex !important; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* ===== Home product-card sections: «طريقة العرض» grid | slider · «حجم الكروت» s | m | l (CardSection.dc.html) =====
   desktop (1250 container, 15px gap): s 6 · m 5 · l 4 per row (≈195 / 238 / 301px)
   phones: grid s 3 · m 2 · l 1 (8px gap, 6 / 4 / 2 cards shown) · slider s 2 · m 2 · l 1 (10px gap)
   grid cards are square, slider cards 3:4; slider = arrows (desktop) + dots, no swipe hint, not full bleed */
.sg-cards { --cards-pv: 2; --cards-gap: 10px; }
.sg-cards--s { --cards-pv: 2; } .sg-cards--m { --cards-pv: 2; } .sg-cards--l { --cards-pv: 1; }
@media (max-width: 767px) { .sg-cards--slider.sg-cards--s { --cards-pv: 2.5; } }
@media (min-width: 768px) { .sg-cards--s { --cards-pv: 4.5; } .sg-cards--m { --cards-pv: 3.2; } .sg-cards--l { --cards-pv: 2.3; } }
@media (min-width: 1024px) { .sg-cards { --cards-gap: 15px; } }
@media (min-width: 1024px) { .sg-cards--s { --cards-pv: 6; } .sg-cards--m { --cards-pv: 5; } .sg-cards--l { --cards-pv: 4; } }

/* slider */
html body .sg-rail.sg-cards { overflow-x: visible; }
html body .sg-rail.sg-cards .sg-rail__wrap { margin-left: 0 !important; margin-right: 0 !important; padding: 4px 0 !important; }
/* swipe hand in its own gutter on the right while the row overflows (as before) */
html body .sg-rail.sg-cards .sg-rail__wrap.is-scrollable { padding: 4px 40px 4px 0 !important; }
@media (max-width: 767px) { html body .sg-rail.sg-cards .sg-rail__wrap.is-scrollable { padding: 4px 30px 4px 0 !important; } }
html body .sg-rail.sg-cards .swiper > .swiper-wrapper > .swiper-slide { width: calc((100% - (var(--cards-pv) - 1) * var(--cards-gap)) / var(--cards-pv)) !important; }
.sg-cards--slider .ab-card .az-card__media, .sg-cards--slider .ab-card .media { aspect-ratio: 3 / 4 !important; }
.sg-cards__arrow { position: absolute; top: 40%; z-index: 5; display: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 1px solid #E6E6E6; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); cursor: pointer; transition: opacity var(--sg-duration, .3s) var(--sg-ease, ease); }
.sg-cards__arrow svg { fill: none; stroke: var(--sg-primary, #7E0202); stroke-width: 2.6; }
.sg-cards__arrow--prev { right: -20px; } .sg-cards__arrow--next { left: -20px; }
@media (min-width: 1024px) { .sg-cards__arrow { display: flex; } }
@media (min-width: 1380px) { .sg-cards__arrow--prev { right: -54px; } .sg-cards__arrow--next { left: -54px; } }
.sg-cards__arrow.swiper-button-disabled { opacity: .35; cursor: default; }
.sg-rail__wrap:not(.is-scrollable) > .sg-cards__arrow { display: none; }
.sg-cards__dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.sg-cards__dots:empty { display: none; }
.sg-cards__dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 9px; background: #D6D6D6; cursor: pointer; transition: width .25s ease, background .25s ease; }
.sg-cards__dots button.is-on { width: 18px; background: var(--sg-primary, #7E0202); }

/* grid — rows grow with the products; an incomplete last row sits in the middle */
.sg-cards--grid { --cards-cols: 2; --cards-gx: 15px; }
/* phones: small and medium = two cards a row (as before), large = one */
.sg-cards--grid.sg-cards--s { --cards-cols: 2; } .sg-cards--grid.sg-cards--m { --cards-cols: 2; } .sg-cards--grid.sg-cards--l { --cards-cols: 1; }
@media (min-width: 768px) { .sg-cards--grid.sg-cards--s { --cards-cols: 4; } .sg-cards--grid.sg-cards--m { --cards-cols: 3; } .sg-cards--grid.sg-cards--l { --cards-cols: 2; } }
@media (min-width: 1024px) { .sg-cards--grid { --cards-gx: 15px; } .sg-cards--grid.sg-cards--s { --cards-cols: 6; } .sg-cards--grid.sg-cards--m { --cards-cols: 5; } .sg-cards--grid.sg-cards--l { --cards-cols: 4; } }
html body .sg-cards--grid .sg-grid__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px var(--cards-gx); }
@media (min-width: 1024px) { html body .sg-cards--grid .sg-grid__list { row-gap: 20px; } }
html body .sg-cards--grid .sg-grid__list > .sg-grid__cell { flex: none; width: calc((100% - (var(--cards-cols) - 1) * var(--cards-gx)) / var(--cards-cols)); }
.sg-cards--grid .ab-card .az-card__media, .sg-cards--grid .ab-card .media { aspect-ratio: 1 / 1 !important; }
.sg-cards__all { display: flex; align-items: center; width: max-content; height: 38px; margin: 22px auto 0; padding: 0 22px; border: 1px solid var(--sg-primary, #7E0202); border-radius: 5px; color: var(--sg-primary, #7E0202); font-size: 13px; font-weight: 600; text-decoration: none; transition: background var(--sg-duration, .3s) var(--sg-ease, ease), color var(--sg-duration, .3s) var(--sg-ease, ease); }
.sg-cards__all:hover { background: var(--sg-primary, #7E0202); color: #fff; }
/* phones: card sections use nearly the full width (10px sides) and 10px between cards — wider cards (≈180px at 390) */
@media (max-width: 767px) {
  html body section.sg-cards { padding-inline: 10px !important; }
  html body .sg-cards > .sg-container { width: auto !important; max-width: none !important; margin-inline: 0 !important; padding-inline: 0 !important; }
  html body .sg-cards--grid { --cards-gx: 10px; }
  html body .sg-cards--grid .sg-grid__list { row-gap: 12px; }
}
/* phones, grid «كبير»: one card a row but the same card size as the two-a-row cards, centred */
@media (max-width: 767px) {
  html body .sg-cards--grid.sg-cards--l .sg-grid__list { flex-direction: column; align-items: center; }
  html body .sg-cards--grid.sg-cards--l .sg-grid__list > .sg-grid__cell { width: min(280px, 100%); }
  /* slider «كبير» on phones: a 240px card, the next one peeking in */
  html body .sg-rail.sg-cards--l .swiper > .swiper-wrapper > .swiper-slide { width: 240px !important; }
}

/* phones, slider «صغير» (2.5 cards): a smaller swipe hand in a narrower gutter and 8px between cards, so the cards stay wide */
@media (max-width: 767px) {
  html body .sg-rail.sg-cards--s { --cards-gap: 8px; }
  html body .sg-rail.sg-cards--s .sg-rail__wrap.is-scrollable { padding: 4px 18px 4px 0 !important; }
  html body .sg-rail.sg-cards--s .sg-rail__wrap > .sg-swipe { right: -2px !important; width: 18px !important; height: 18px !important; }
  html body .sg-rail.sg-cards--s .sg-rail__wrap > .sg-swipe svg { width: 16px !important; height: 16px !important; }
}
/* equal-height cards: the rating + «خيارات / أضف» row always sits at the bottom of the card, aligned across the row */
html body .sg-cards .product-cart .sg-card__body { display: flex !important; flex-direction: column !important; flex: 1 1 auto !important; }
html body .sg-cards .product-cart .sg-card__bottom { margin-top: auto !important; }
html body .sg-cards .product-cart > .media, html body .sg-cards .product-cart > .az-card__media { flex: none !important; height: auto !important; }

/* phones: Tabby / Tamara cards about half as tall — smaller text (shadow CSS in pdp-pay-widgets.jinja) and tighter padding */
@media (max-width: 767px) {
  .ab-pdp .block-payments-widget.sg-bnpl { gap: 8px !important; }
  .ab-pdp .block-payments-widget.sg-bnpl > .tabby-product-widget { padding: 11px 6px 3px !important; }
  .ab-pdp .block-payments-widget.sg-bnpl > tamara-widget { padding: 11px 6px 2px !important; font-size: 11px; }
}

/* ── Category page banner (customizer › «بنرات صفحة التصنيف») — first on the category page ─────
   1250×300 (mobile 180h) · side: text + image box 520 wide · full: image covers the banner */
.sg-cb { --cb-bg: linear-gradient(90deg, #EFEDEA, #E4DED6); position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 360px; padding: 0 48px; margin: 16px 0 18px; box-sizing: border-box; overflow: hidden; border-radius: 12px;
  background: var(--cb-bg); color: var(--color-primary, #7E0202); text-decoration: none; isolation: isolate; }
.sg-cb__body { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; max-width: 520px; position: relative; }
.sg-cb__badge { align-self: flex-start; height: 22px; padding: 0 9px; border-radius: 99px; background: var(--color-primary, #7E0202);
  color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; }
.sg-cb__title { font-size: 30px; font-weight: 800; line-height: 1.3; }
.sg-cb__sub { font-size: 14px; color: #4B4B4B; }
.sg-cb__cta { align-self: flex-start; margin-top: 6px; height: 40px; padding: 0 16px; border-radius: 5px; background: var(--color-primary, #7E0202);
  color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; }
/* side: image box beside the text (design) */
.sg-cb--side .sg-cb__media { flex: 0 1 640px; min-width: 0; height: 90%; border-radius: 10px; overflow: hidden; }
.sg-cb--side .sg-cb__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* full: image covers the whole banner, text on top */
.sg-cb--full .sg-cb__media { position: absolute; inset: 0; z-index: -1; }
.sg-cb--full .sg-cb__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-cb--img { height: auto; padding: 0; aspect-ratio: 1250 / 360; }

@media (max-width: 1024px) {
  .sg-cb { height: 240px; padding: 0 28px; }
  .sg-cb__title { font-size: 24px; }
}
@media (max-width: 767px) {
  /* phone: side layout stacks — image on top at full width (its own ratio), text under it */
  .sg-cb { height: auto; padding: 0; gap: 0; margin-top: 12px; }
  .sg-cb--side { flex-direction: column-reverse; align-items: stretch; }
  .sg-cb--side .sg-cb__media { flex: none; width: 100%; height: auto; border-radius: 0; }
  .sg-cb--side .sg-cb__media img { height: auto; aspect-ratio: auto; }
  .sg-cb--side .sg-cb__body, .sg-cb--full .sg-cb__body { max-width: none; padding: 14px 16px 16px; }
  .sg-cb--full:not(.sg-cb--img) { min-height: 180px; }
  .sg-cb--full .sg-cb__body { max-width: 65%; }
  .sg-cb__title { font-size: 18px; }
  .sg-cb__sub { font-size: 12px; }
  .sg-cb__cta { height: 34px; }
  .sg-cb--img { aspect-ratio: 358 / 180; }
  /* phone: content centred */
  .sg-cb__body { align-items: center; text-align: center; margin: 0 auto; }
  .sg-cb__badge, .sg-cb__cta { align-self: center; }
  .sg-cb--full .sg-cb__body { max-width: 85%; }
}

/* ── Banner category strip («تصنيفات البنر») — main slider + products sections with a banner ─────────
   Desktop: white card (shadow) with the title on the side + mini cards 200 wide (image 52).
   Slider on desktop: the card rides up 52px over the banner's bottom (design) and the dots sit inside the banner. */
.sg-bc { position: relative; z-index: 2; background: #fff; border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.12);
  padding: 14px 18px; box-sizing: border-box; display: flex; align-items: center; gap: 18px; margin: 14px 0 0; }
.sg-bc[hidden] { display: none; }
.sg-bc__head { flex: none; width: 150px; padding-inline-end: 14px; border-inline-end: 1px solid #EEEEEE; }
.sg-bc__lead { font-size: 11px; color: #999999; }
.sg-bc__title { font-size: 15px; font-weight: 700; color: var(--color-primary, #7E0202); margin-top: 2px; }
.sg-bc__row { flex: 1; min-width: 0; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sg-bc__row::-webkit-scrollbar { display: none; }
.sg-bc__item { flex: none; width: 200px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px;
  background: #F6F6F6; text-decoration: none; color: #000; box-sizing: border-box; }
.sg-bc__img { width: 52px; height: 52px; flex: none; border-radius: 50%; background: #fff; border: 2px solid #EEEEEE; overflow: hidden; box-sizing: border-box; }
.sg-bc__item.is-first .sg-bc__img { border-color: var(--sg-accent, #FFD200); }
.sg-bc__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-bc__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: start; }
.sg-bc__name { font-size: 13px; font-weight: 600; line-height: 1.35; }
.sg-bc__shop { font-size: 11px; color: var(--color-primary, #7E0202); }
@media (min-width: 768px) {
  .sg-banner-sec > .sg-container { position: relative; }
  .sg-banner-sec .sg-bc { margin: -52px auto 0; width: min(1250px, calc(100% - 40px)); }
}
@media (max-width: 767px) {
  /* phone: same look as desktop, compact — white card + shadow, title row on top, grey mini cards (image + name + «تسوق») in a swipe row */
  .sg-bc { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; margin: 10px 0 0; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.10); }
  .sg-bc__head { width: auto; padding: 0 0 8px; border: 0; border-bottom: 1px solid #EEEEEE; display: flex; align-items: baseline; gap: 8px; }
  .sg-bc__title { margin-top: 0; font-size: 14px; }
  .sg-bc__row { gap: 8px; }
  .sg-bc__item { width: 158px; gap: 8px; padding: 6px 8px; border-radius: 10px; }
  .sg-bc__img { width: 42px; height: 42px; }
  .sg-bc__name { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sg-bc__shop { font-size: 10px; }
}

/* slider dots inside the banner when the category strip is on (design: white dots, active = dark pill 22px) */
.sg-banner .sg-dots--in { position: absolute !important; left: 0; right: 0; bottom: 72px; z-index: 3; margin: 0; gap: 6px; }
.sg-banner .sg-dots--in .swiper-pagination-bullet { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.9); transition: width .25s; }
.sg-banner .sg-dots--in .swiper-pagination-bullet-active { width: 22px; background: var(--color-primary, #7E0202); }
@media (max-width: 767px) { .sg-banner .sg-dots--in { bottom: 10px; } }

/* ── عداد العروض التنازلي (sections/countdown-timer) — HomeAdds design ─────────────────────────────── */
.sg-cdt { padding: 40px 0 30px; }
.sg-cdt[hidden] { display: none; }
.sg-cdt__bar { border-radius: 14px; overflow: hidden; background: var(--cdt-bg, var(--sg-primary, #7E0202)); color: #fff; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; padding: 26px 34px; box-sizing: border-box; }
.sg-cdt.is-soon .sg-cdt__bar { background: linear-gradient(90deg, #5C0101, #A30A0A); }
.sg-cdt.is-ended .sg-cdt__bar { background: #6B6B6B; }
.sg-cdt__copy { text-align: start; }
.sg-cdt__tag { display: inline-flex; height: 24px; padding: 0 10px; border-radius: 99px; background: rgba(255,255,255,.16); color: #fff;
  font-size: 12px; font-weight: 700; align-items: center; }
.sg-cdt.is-soon .sg-cdt__tag { background: var(--sg-accent, #FFD200); color: var(--sg-primary, #7E0202); }
.sg-cdt__title { margin: 10px 0 0; font-size: 24px; font-weight: 800; line-height: 1.35; color: inherit; }
.sg-cdt__text { font-size: 13px; margin-top: 6px; opacity: .9; }
.sg-cdt .sg-cdt__text b { display: inline !important; color: var(--sg-accent, #FFD200) !important; font-weight: 800; letter-spacing: .5px; }
.sg-cdt__timer { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sg-cdt__timer[hidden], .sg-cdt__ended[hidden] { display: none; }
.sg-cdt__lead { font-size: 12px; opacity: .85; }
.sg-cdt__units { display: flex; gap: 10px; direction: rtl; }
.sg-cdt__u { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sg-cdt__u span { width: 64px; height: 64px; border-radius: 10px; background: #fff; color: var(--sg-primary, #7E0202); font-size: 28px;
  font-weight: 800; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.sg-cdt.is-soon .sg-cdt__u span { background: var(--sg-accent, #FFD200); }
.sg-cdt__u small { font-size: 11px; opacity: .85; }
.sg-cdt__ended { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.sg-cdt__ended-title { font-size: 18px; font-weight: 800; }
.sg-cdt__ended-text { font-size: 12px; opacity: .85; }
.sg-cdt .sg-cdt__btn { flex: none; visibility: visible; opacity: 1; height: 44px; padding: 0 22px; border-radius: 6px; background: var(--sg-accent, #FFD200); color: var(--sg-primary, #7E0202);
  font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.sg-cdt.is-ended .sg-cdt__btn { background: #fff; }
.sg-cdt__products { margin-top: 18px; }
.sg-cdt__products[hidden] { display: none; }
.sg-cdt__products > .sg-section { padding-top: 0 !important; }
@media (max-width: 767px) {
  .sg-cdt { padding: 24px 0 20px; }
  .sg-cdt__bar { flex-direction: column; gap: 16px; padding: 20px 16px; }
  .sg-cdt__copy { text-align: center; }
  .sg-cdt__title { font-size: 20px; }
  .sg-cdt__units { gap: 8px; }
  .sg-cdt__u span { width: 62px; height: 56px; font-size: 24px; }
  .sg-cdt__btn { width: 100%; }
}

/* ── Colour options as text chips (PDP + card options sheet) — design: selected = primary, others = faded primary,
   white text, 5px radius ─────────────────────────────────────────────────────────────────────────────── */
.ab-pdp .ab-size.ab-size--color, .sg-co__opts.is-color .sg-co__chip, .sg-bb__opt.is-color {
  flex: none; width: auto !important; min-width: 0; height: 34px; min-height: 0; padding: 0 12px; border: 0 !important; border-radius: 5px;
  background: var(--sg-primary, #7E0202) !important; color: #fff !important; font-size: 13px; font-weight: 700; white-space: nowrap;
  opacity: .35; box-shadow: none !important; outline: 0 !important; transition: opacity .18s;
}
.ab-pdp .ab-size.ab-size--color:hover, .sg-co__opts.is-color .sg-co__chip:hover, .sg-bb__opt.is-color:hover { opacity: .6; }
.sg-bb__opt.is-color.is-on { opacity: 1; }
.sg-bb__opt.is-color.is-dis { opacity: .2; text-decoration: line-through; }
.ab-pdp .ab-size.ab-size--color.on, .ab-pdp .ab-size.ab-size--color[aria-pressed="true"],
.sg-co__opts.is-color .sg-co__chip.is-on { opacity: 1; }
.ab-pdp .ab-size.ab-size--color.is-oos { text-decoration: line-through; }

/* ── تبويبات التصنيفات (sections/category-tabs) — HomeAdds design ─────────────────────────────────── */
.sg-ct { padding: 45px 0 40px; }
.sg-ct .sg-head { margin-bottom: 18px; }
.sg-ct__bar { position: relative; }
.sg-ct__scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding-bottom: 8px; cursor: grab; }
.sg-ct__scroll::-webkit-scrollbar { display: none; }
.sg-ct__scroll.is-drag { cursor: grabbing; user-select: none; }
.sg-ct__tabs { display: flex; width: max-content; gap: 8px; padding: 2px; }
.sg-ct__tab { flex: none; height: 40px; padding: 0 8px 0 16px; padding-inline: 8px 16px; border-radius: 99px; border: 1px solid #E2E2E2; background: #fff;
  color: #4B4B4B; font: 500 13px var(--sg-font, inherit); display: flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s; }
.sg-ct__tab:hover { border-color: var(--sg-primary, #7E0202); }
.sg-ct__tab.is-on { background: var(--sg-primary, #7E0202); border-color: var(--sg-primary, #7E0202); color: #fff; font-weight: 700; }
.sg-ct__img { width: 24px; height: 24px; flex: none; border-radius: 50%; background: #F2F2F2; overflow: hidden; }
.sg-ct__tab.is-on .sg-ct__img { background: #fff; }
.sg-ct__img img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.sg-ct__fade, .sg-ct__more { display: none; }
.sg-ct__panel { margin-top: 14px; }
.sg-ct__panel[hidden] { display: none; }
.sg-ct__panel > .sg-section { padding-top: 0 !important; padding-bottom: 0 !important; }
.sg-ct__all { text-align: center; margin-top: 18px; }
.sg-ct__all a { transition: background-color .25s ease, color .25s ease, border-color .25s ease; display: inline-flex; align-items: center; height: 38px; padding: 0 20px; border-radius: 5px; border: 1px solid var(--sg-primary, #7E0202);
  color: var(--sg-primary, #7E0202); font-size: 13px; font-weight: 600; text-decoration: none; }
.sg-ct__all a:hover { background: var(--sg-primary, #7E0202); color: #fff; }
@media (min-width: 768px) {
  .sg-ct__bar.has-more .sg-ct__fade { display: block; position: absolute; top: 0; inset-inline-end: 0; width: 90px; height: 44px; pointer-events: none;
    background: linear-gradient(to left, #fff 40%, rgba(255,255,255,0)); }
  [dir="rtl"] .sg-ct__bar.has-more .sg-ct__fade { background: linear-gradient(to right, #fff 40%, rgba(255,255,255,0)); }
  .sg-ct__bar.has-prev .sg-ct__fade--start { display: block; position: absolute; top: 0; inset-inline-start: 0; inset-inline-end: auto; width: 70px; height: 44px; pointer-events: none;
    background: linear-gradient(to right, #fff 40%, rgba(255,255,255,0)); }
  [dir="rtl"] .sg-ct__bar.has-prev .sg-ct__fade--start { background: linear-gradient(to left, #fff 40%, rgba(255,255,255,0)); }
  .sg-ct__more--start:not([hidden]) { inset-inline-end: auto !important; inset-inline-start: 0; }
  [dir="ltr"] .sg-ct__more--start svg { transform: scaleX(-1); }
  .sg-ct__more:not([hidden]) { display: flex; position: absolute; top: 6px; inset-inline-end: 0; width: 32px; height: 32px; border-radius: 50%; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.08);
    border: 1px solid #E6E6E6; background: #fff; color: var(--sg-primary, #7E0202); align-items: center; justify-content: center; cursor: pointer; }
  [dir="ltr"] .sg-ct__more svg { transform: scaleX(-1); }
}
@media (max-width: 767px) {
  .sg-ct { padding: 28px 0 24px; }
}
/* «جهّز بكجك»: a card whose product could not load stops showing the loading bars */
.sg-bb__card.is-failed .sg-bb__skel { display: none; }
