/* MAGISTA — custom CSS (clean rebuild) v1
   Palette comes from theme settings; this file only fills gaps.
   Sections: 1 tokens · 2 layout-shift reservations · 3 add-to-cart · 4 weight options · 5 offers · 6 promo banner */

/* 1 ── Tokens (light / dark) */
:root {
  --mg-gold: #c6a87c;
  --mg-gold-2: #e8c97a;
  --mg-navy: #12384d;
  --mg-card: #fff;
  --mg-line: rgb(18 56 77 / .14);
  --mg-text: #11374c;
  --mg-muted: #5d7280;
}
html.dark {
  --mg-card: #12384d;
  --mg-line: rgb(198 168 124 / .22);
  --mg-text: #f1eddf;
  --mg-muted: #b9c3c9;
}

/* 2 ── Reserve space for late-hydrated blocks (prevents layout shift) */
.container--breadcrumbs { min-height: 60px; }
.product-single__info > salla-installment { display: block; min-height: 80px; }
form.form > salla-product-options { display: block; min-height: 87px; margin-bottom: 20px; }
.sticky-product-bar__quantity { min-height: 40px; }
form.product-form salla-add-product-button { display: block; min-height: 90px; }
.s-offers-section, salla-product-offers { display: block; min-height: 318px; }

/* 3 ── Add to cart: no flash before hydration */
form.product-form salla-add-product-button:not(.hydrated) { visibility: hidden; }


/* 4 ── Weight options: open only from the control, not the label */
salla-product-options label { pointer-events: none; }

/* 5 ── Product offers cards */
.s-offer-card,
.s-offer-drawer-card {
  background: var(--mg-card);
  border: 1px solid var(--mg-line);
  border-radius: 14px;
  color: var(--mg-text);
  box-shadow: none;
}
.s-offer-card .s-offer-card-content,
.s-offer-drawer-card .s-offer-card-content { color: var(--mg-muted); line-height: 1.7; }
.s-offer-card-title, .s-offer-card .s-offer-card-name { color: var(--mg-text); font-weight: 700; }
.s-offer-card svg, .s-offer-card i { color: var(--mg-gold); }

/* 6 ── Promo banner · flip animation (markup injected by JS before <header>) */
.app-inner:not(:has(.magista-promo-banner))::before { content: ""; display: block; height: 45px; } /* reserve height until the banner mounts */
.magista-promo-banner {
  --mg-bar-bg: #f1eddf; --mg-bar-text: var(--mg-navy); --mg-dot: rgb(18 56 77 / .3); --mg-dot-on: var(--mg-navy); --mg-shine: rgb(18 56 77 / .4);
  position: relative; z-index: 100; display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 45px; padding: 0 40px; overflow: hidden; perspective: 500px;
  background: var(--mg-bar-bg); color: var(--mg-bar-text);
  border-bottom: 1px solid rgb(198 168 124 / .4);
}
html.dark .magista-promo-banner {
  --mg-bar-text: #f1eddf; --mg-dot: rgb(198 168 124 / .5); --mg-dot-on: var(--mg-gold); --mg-shine: var(--mg-gold);
  background: linear-gradient(90deg, #0a1e2e, #12384d, #0a1e2e) 0 0 / 200% auto;
  border-bottom-color: rgb(198 168 124 / .3);
  animation: mg-bar-bg 6s linear infinite;
}
.magista-promo-banner::before { /* moving gold line */
  content: ""; position: absolute; bottom: 0; left: -100%; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--mg-shine), transparent);
  animation: mg-bar-line 3s linear infinite;
}
.magista-promo-banner a {
  position: relative; max-width: 75%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: inherit; font-size: 13.5px; letter-spacing: .3px; text-decoration: none;
  transform-origin: top center; backface-visibility: hidden;
}
.magista-promo-banner a.flip-out { --mg-r: 90deg; animation: mg-flip .4s ease forwards; }
.magista-promo-banner a.flip-in { --mg-r: -90deg; animation: mg-flip .4s ease reverse; }
.magista-promo-banner .dots { display: inline-flex; gap: 6px; flex-shrink: 0; }
.magista-promo-banner .dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--mg-dot); transition: all .4s ease; }
.magista-promo-banner .dots i.active { background: var(--mg-dot-on); transform: scale(1.4); }
@keyframes mg-flip { from { transform: rotateX(0); opacity: 1; } to { transform: rotateX(var(--mg-r)); opacity: 0; } }
@keyframes mg-bar-bg { to { background-position: 200% center; } }
@keyframes mg-bar-line { to { left: 100%; } }
@media (max-width: 768px) { .magista-promo-banner a { max-width: 85%; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .magista-promo-banner, .magista-promo-banner::before, .magista-promo-banner a { animation: none; } }

/* 7 ── Size & returns notice (box injected by JS on rings / bangles / bands; must be ticked before buying) */
.magista-size-warning {
  --sw-head: var(--mg-navy); --sw-accent: #a8864b; --sw-text: rgb(18 56 77 / .85);
  --sw-bg: linear-gradient(160deg, #f8f5ef, #f1eddf); --sw-line: rgb(198 168 124 / .4);
  position: relative; margin: 1rem 0; padding: 1rem 1.25rem; overflow: hidden;
  background: var(--sw-bg); border: 1px solid var(--sw-line); border-radius: 12px;
  color: var(--sw-text); font-size: .85rem; line-height: 1.6;
}
html.dark .magista-size-warning {
  --sw-head: var(--mg-gold); --sw-accent: var(--mg-gold); --sw-text: rgb(241 237 223 / .85);
  --sw-bg: linear-gradient(160deg, #0a1e2e, #0f2d42); --sw-line: rgb(198 168 124 / .3);
}
.magista-size-warning::before { /* gold top edge */
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, transparent, var(--mg-gold), transparent);
}
.magista-size-warning .head { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; color: var(--sw-head); font-size: .95rem; font-weight: 700; }
.magista-size-warning ul { margin: 0 0 .75rem; padding: 0; list-style: none; }
.magista-size-warning li { position: relative; padding: .25rem 1rem .25rem 0; }
.magista-size-warning li::before { content: "•"; position: absolute; right: 0; color: var(--sw-accent); }
.magista-size-warning a { color: var(--sw-accent); font-weight: 600; text-decoration: underline; }
.magista-size-warning label { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; cursor: pointer; }
.magista-size-warning input {
  appearance: none; display: grid; place-content: center; flex: none; margin: 0;
  width: 20px; height: 20px; border: 2px solid var(--sw-accent); border-radius: 5px;
  background: rgb(198 168 124 / .08); cursor: pointer; transition: background .2s;
}
.magista-size-warning input:checked { background: var(--sw-accent); }
.magista-size-warning input:checked::after { content: "✓"; color: var(--mg-navy); font-size: 14px; font-weight: 900; line-height: 1; }
/* Purchase buttons stay disabled until the notice is ticked */
body.mg-size-locked :is(form.product-form, .sticky-cart-single) :is(salla-add-product-button, salla-quick-buy, salla-mini-checkout-widget, apple-pay-button) { opacity: .5; pointer-events: none; cursor: not-allowed; }

/* 8 ── Payment price cards (markup injected by JS before the product form) */
.mg-prices {
  --pc-bg: #fff; --pc-line: rgb(15 63 89 / .14); --pc-text: #0f3f59;
  display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1rem 0; padding: 0 .35rem;
}
html.dark .mg-prices { --pc-bg: #0d1f2d; --pc-line: rgb(198 168 124 / .3); --pc-text: #f1eddf; }
.mg-prices .price-card {
  position: relative; display: flex; flex-direction: column;
  min-height: 136px; padding: .9rem .85rem; overflow: hidden;
  background: var(--pc-bg); border: 1px solid var(--pc-line); border-radius: 16px;
  box-shadow: 0 10px 24px rgb(10 45 65 / .08); color: var(--pc-text);
}
.mg-prices .price-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--pc-bar); } /* brand colour line */
.mg-prices .mada { --pc-bar: linear-gradient(90deg, #0070ba, #00a551); }
.mg-prices .visa { --pc-bar: linear-gradient(90deg, #1a1f71, #eb001b, #f79e1b); }
.mg-prices .tamara { --pc-bar: linear-gradient(90deg, #8b5fbf, #f4a6c8, #fbd98e, #f6a35e); }
.mg-prices .tabby { --pc-bar: linear-gradient(90deg, #6fe894, #9cfcb0); }
.mg-prices .logo { display: flex; margin-bottom: .5rem; }
html.dark .mg-prices :is(.mada, .visa) img { filter: brightness(0) invert(1); } /* white bank logos on dark cards */
.mg-prices img { width: 76px; height: 32px; object-fit: contain; }
.mg-prices .name { min-height: 26px; font-size: .83rem; font-weight: 700; }
.mg-prices .value { margin-top: auto; padding-top: .85rem; color: #a8864b; font-size: 1.1rem; font-weight: 800; }
.mg-prices .gram { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--pc-text); font-size: .85rem; }
html.dark .mg-prices .logo-light, html:not(.dark) .mg-prices .logo-dark { display: none; } /* Tamara logo per theme */

/* Reserve the cards' height (286px + margins) until JS mounts them; released if the product has no weight */
body:not(.mg-no-prices) .product-single__info:not(:has(.mg-prices)) > salla-installment + form.product-form { margin-top: 318px; }

/* 9 ── Cart note + stats counters */
.cart-payment-note { font-size: 14px; line-height: 1.6; }
.stats-section .stats-number::after { content: "+"; }

/* 10 ── Policy page (classes added by JS) */
body.magista-policy-page { --pp-accent: #a8864b; --pp-text: rgb(18 56 77 / .85); --pp-line: rgb(168 134 75 / .15); --pp-note: rgb(168 134 75 / .05); }
html.dark body.magista-policy-page { --pp-accent: #c6a87c; --pp-text: rgb(241 237 223 / .85); --pp-line: rgb(198 168 124 / .15); --pp-note: rgb(198 168 124 / .06); }
body.magista-policy-page .content--single-page { padding: 2.5rem 2rem; background: #fff; border: 1px solid rgb(198 168 124 / .2); border-radius: 16px; }
html.dark body.magista-policy-page .content--single-page { background: linear-gradient(160deg, #0a1e2e, #0f2d42); border-color: rgb(198 168 124 / .15); }
body.magista-policy-page .content--single-page h1 { margin-bottom: .4rem; color: var(--mg-navy); font-size: 1.6rem; }
html.dark body.magista-policy-page .content--single-page h1 {
  background: linear-gradient(135deg, #c6a87c, #e8c97a); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
body.magista-policy-page .magista-policy__section-title { margin: 2.5rem 0 1.1rem; padding-bottom: 10px; border-bottom: 1px solid var(--pp-line); color: var(--pp-accent) !important; font-size: 1.05rem; font-weight: 700; }
body.magista-policy-page .magista-policy__subtitle { margin: 1rem 0 .5rem; color: var(--pp-accent) !important; font-size: .93rem; font-weight: 600; line-height: 2; }
body.magista-policy-page .magista-policy__text { margin: 0 0 .9rem; color: var(--pp-text) !important; font-size: .92rem; line-height: 2; }
body.magista-policy-page .magista-policy__list { margin: .6rem 0 1.5rem; padding: 0; list-style: none; }
body.magista-policy-page .magista-policy__list li { position: relative; margin-bottom: 4px; padding: 4px 1.2rem 4px 0; color: var(--pp-text) !important; font-size: .92rem; line-height: 1.9; }
body.magista-policy-page .magista-policy__list li::before { content: "•"; position: absolute; top: 4px; right: 0; color: var(--pp-accent); }
body.magista-policy-page .magista-policy__note { margin: 1.2rem 0; padding: 14px 18px; background: var(--pp-note); border: 1px solid var(--pp-line); border-right: 3px solid var(--pp-accent); border-radius: 8px; color: var(--pp-text) !important; font-size: .9rem; line-height: 2; }
body.magista-policy-page .magista-policy__section-title:first-child { margin-top: 1.5rem; }
@media (max-width: 767px) { body.magista-policy-page .content--single-page { padding: 1.5rem 1.25rem; } }

/* Tabby logo is white: make it dark on light cards */
html:not(.dark) .mg-prices .tabby img { filter: brightness(0); }

/* 11 ── Luxury surfaces: one gradient + one gold edge, reused everywhere.
   "body" in selectors lifts specificity above the theme's own rules. */
html.dark {
  --mg-lux: linear-gradient(160deg, #0c2536, #0e2a3d); /* soft, low-contrast panel gradient (was #0a1e2e → #0f2d42 → #0a1e2e, too bright/metallic) */
  --mg-glass: rgb(10 30 46 / .55);
  --mg-gold-line: rgb(198 168 124 / .35);
}
:root { --mg-gold-grad: linear-gradient(135deg, var(--mg-gold), var(--mg-gold-2)); }
html.dark body :is(custom-salla-product-card.product-card, .s-modal-body, .s-search-input) {
  background: var(--mg-lux);
  border: 1px solid rgb(198 168 124 / .2);
}
/* generic luxury panel: anything using the theme's secondary-bg utility (reviews, FAQ, testimonials, selects) */
html.dark body [class*="bg-store-bg-secondary"] {
  background: linear-gradient(145deg, #0a1e2e, #0f2d42) !important;
  border: 1px solid rgb(198 168 124 / .25) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 32px rgb(0 0 0 / .3) !important;
  position: relative;
  overflow: hidden;
  color: var(--mg-text);
  transition: all .4s ease;
}
html.dark body [class*="bg-store-bg-secondary"]::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--mg-gold), transparent);
}
html.dark body [class*="bg-store-bg-secondary"]:hover {
  border-color: rgb(198 168 124 / .5) !important;
  box-shadow: 0 12px 40px rgb(198 168 124 / .12) !important;
  transform: translateY(-3px);
}
html.dark body custom-salla-product-card.product-card {
  border-radius: 20px;
  box-shadow: 0 4px 20px rgb(0 0 0 / .3), inset 0 1px 0 rgb(198 168 124 / .08);
}
html.dark body :is(.s-modal-body, .testimonials-item, .s-cart-coupons-wrapper, .s-search-input) { color: var(--mg-text); }
html.dark body .s-search-input { border-color: rgb(198 168 124 / .3); border-radius: 12px; }
/* dark form fields */
html.dark body :is(.s-form-control, input.form-input, select.flatpickr-monthDropdown-months) {
  background: #0f2d42 !important;
  border: 1px solid rgb(198 168 124 / .3) !important;
  border-radius: 8px;
  color: var(--mg-text);
}
html.dark body :is(.s-form-control, .s-comment-form-input):focus { border-color: var(--mg-gold) !important; outline: none; box-shadow: 0 0 0 2px rgb(198 168 124 / .15); }
html.dark body .s-comment-form-input {
  background: rgb(255 255 255 / .05) !important;
  border: 1px solid rgb(198 168 124 / .4) !important;
  border-radius: 8px;
  color: var(--mg-text);
  -webkit-text-fill-color: var(--mg-text);
}
html.dark body .s-modal-close { color: var(--mg-gold); background: transparent; border-color: var(--mg-gold); }
html.dark body .reviews__read-more { color: var(--mg-gold); }

/* 12 ── Buttons. The theme's utility classes force their own styles on these, so !important is used on purpose. */
/* quick-view / wishlist icon buttons on product cards */
html.dark body .product-card :is(.product-card__actions, .product-card__buttons) .s-button-primary-outline {
  background: var(--mg-glass) !important;
  border: 1px solid var(--mg-gold-line) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgb(198 168 124 / .1);
}
/* add-to-cart button inside product cards */
html.dark body .product-card :is(.product-card__normal-cart__btn, .product-card__enhnaced-mini-cart__btn) button.s-button-outline:not(.s-button-light-outline) {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgb(198 168 124 / .08), rgb(198 168 124 / .03)) !important;
  transition: all .4s cubic-bezier(.16, 1, .3, 1) !important;
  border: 1px solid var(--mg-gold-line) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgb(198 168 124 / .1);
}
html.dark body .product-card .s-button-primary-outline:not(.s-button-light-outline) :is(.s-button-text, .enhanced-label, .sicon-add, .sicon-shopping, .product-card__enhanced-mini-cart__btn--inner) { color: var(--mg-gold) !important; -webkit-text-fill-color: var(--mg-gold); }
/* out-of-stock button: flat, dimmed, cream text */
html.dark body .product-card button.s-button-light-outline { background: transparent !important; box-shadow: none !important; }
html.dark body .product-card button.s-button-light-outline :is(.s-button-text, i) { color: var(--mg-text) !important; }
html.dark body .product-card :is(.sicon-heart, .sicon-eye) { color: #fff !important; font-size: 1.1rem; line-height: 1.1rem;
  transition: color .3s; }
/* gold primary buttons (checkout, drawer submit) */
html.dark body :is(.s-button-solid.s-button-primary, button.cart-drawer-submit):not(.s-cart-coupons-coupon-button-remove) {
  background: var(--mg-gold-grad) !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgb(198 168 124 / .25) !important;
}
html.dark body :is(.s-button-solid.s-button-primary, button.cart-drawer-submit) :is(.s-button-text, span, i, svg) { color: var(--mg-navy) !important; }
/* "view all" outline buttons */
html.dark body a.btn--outline-primary {
  background: linear-gradient(135deg, rgb(198 168 124 / .18), rgb(198 168 124 / .08)) !important;
  border: 1px solid rgb(198 168 124 / .5) !important;
  border-radius: 12px !important;
  padding: .75rem 3rem !important;
  box-shadow: 0 2px 12px rgb(198 168 124 / .15), inset 0 1px 0 rgb(198 168 124 / .2);
}
html.dark body a.btn--outline-primary :is(span, i) { color: var(--mg-gold); font-weight: 600; }
/* hero slider pill button */
html.dark body a.advanced-slider__caption__inner__content__button {
  display: inline-flex;
  background: transparent !important;
  border: 1px solid rgb(198 168 124 / .6) !important;
  border-radius: 50px !important;
  padding: 14px 36px !important;
  color: #f1eddf !important;
  font-weight: 600 !important;
  letter-spacing: 1px;
}

/* 13 ── Prices, stats, titles */
html.dark body .product-card .total-price { color: var(--mg-gold-2); font-weight: 800; }
html.dark body .product-card .before-price { color: var(--mg-text); opacity: .5; }
html.dark body .stats-section .stats-number {
  color: var(--mg-gold) !important;
  background: var(--mg-gold-grad) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
html.dark body .statistics__icon-wrap { background: rgb(198 168 124 / .15) !important; border: 1px solid rgb(198 168 124 / .3) !important; }
html.dark body .statistics__icon-wrap i { color: var(--mg-gold) !important; }
html.dark body .statistics__description { color: rgb(241 237 223 / .6); }
html.dark body .enhanced-title-border { background: var(--mg-gold) !important; border-color: var(--mg-gold) !important; }
html.dark body .flex.items-center.gap-8 span.bg-gray-200 { background: linear-gradient(90deg, transparent, rgb(198 168 124 / .5), transparent) !important; }
.special-cats-with-bg__card-overlay, .special-cats-with-bg .category-name { display: none; }
html.dark body footer nav :is(a, span, i) { color: rgb(241 237 223 / .7); }

/* 14 ── Hover effects (dark): shimmer sweep on "view all", glow + arrow on the hero button */
html.dark body a.btn--outline-primary { position: relative; overflow: hidden; transition: all .4s cubic-bezier(.16, 1, .3, 1) !important; }
html.dark body a.btn--outline-primary::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgb(198 168 124 / .2) 50%, transparent 65%);
  transform: translateX(-140%); transition: transform .6s ease;
}
html.dark body a.btn--outline-primary:hover::before { transform: translateX(140%); }
html.dark body a.btn--outline-primary:hover {
  background: linear-gradient(135deg, rgb(198 168 124 / .28), rgb(198 168 124 / .15)) !important;
  border-color: rgb(198 168 124 / .75) !important;
  box-shadow: 0 4px 20px rgb(198 168 124 / .25), inset 0 1px 0 rgb(198 168 124 / .3) !important;
  transform: translateY(-2px);
}
html.dark body a.btn--outline-primary:hover :is(span, i) { color: var(--mg-gold-2); -webkit-text-fill-color: var(--mg-gold-2); }

html.dark body a.advanced-slider__caption__inner__content__button {
  position: relative; overflow: hidden; align-items: center; gap: 10px;
  backdrop-filter: blur(8px);
  transition: all .5s cubic-bezier(.16, 1, .3, 1) !important;
}
html.dark body a.advanced-slider__caption__inner__content__button::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: linear-gradient(135deg, rgb(198 168 124 / .15), rgb(198 168 124 / .05));
}
html.dark body a.advanced-slider__caption__inner__content__button::after { content: "←"; font-size: 16px; color: var(--mg-gold); transition: transform .3s ease; }
html.dark body a.advanced-slider__caption__inner__content__button:hover {
  border-color: var(--mg-gold) !important;
  color: var(--mg-gold) !important;
  box-shadow: 0 0 30px rgb(198 168 124 / .2), inset 0 0 30px rgb(198 168 124 / .05);
  transform: translateY(-2px);
}
html.dark body a.advanced-slider__caption__inner__content__button:hover::before { opacity: 1; }
html.dark body a.advanced-slider__caption__inner__content__button:hover::after { transform: translateX(-5px); }
html.dark body a.advanced-slider__caption__inner__content__button span { position: relative; z-index: 1; color: inherit; }

/* 15 ── Misc dark details: select options, breadcrumbs, empty-list placeholder */
html.dark body option { background: #0f2d42; }
html.dark body .s-breadcrumb-item { color: rgb(241 237 223 / .5); }
html.dark body .s-products-list-placeholder { padding: 3rem; }
html.dark body .s-products-list-placeholder p { color: var(--mg-gold); letter-spacing: 1px; }
html.dark body .s-products-list-placeholder span {
  filter: sepia(1) saturate(2) hue-rotate(5deg) brightness(.9);
  opacity: .8;
  background: rgb(198 168 124 / .1);
  border-radius: 50%;
}

/* 16 ── Product page panels (dark) */
html.dark body :is(.bg-storeBG.rounded-md, .cart-item.bg-storeBG, salla-bought-together) {
  background: var(--mg-lux) !important;
  border: 1px solid rgb(198 168 124 / .2) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgb(0 0 0 / .2) !important;
}
html.dark body .product-price-bottom.bg-storeBG { background: transparent !important; border: 0 !important; box-shadow: none !important; }
html.dark body salla-bought-together { display: block; padding: 1.25rem; }
salla-bought-together:empty, salla-bought-together.hydrated:not(:has(.s-bought-together-item)) { display: none !important; }
html.dark body .before-price { color: var(--mg-text); opacity: .5; }
html.dark body .sicon-check-circle { color: var(--mg-gold); }
html.dark body .s-add-product-button-mini-checkout-content { color: var(--mg-gold); transition: color .3s ease; }
html.dark body .s-add-product-button-mini-checkout-content:hover { color: var(--mg-gold-2); }

/* 17 ── Cart + gold "primary outline" buttons (dark) */
html.dark body .s-button-primary-outline { background: var(--mg-gold) !important; border-color: var(--mg-gold) !important; transition: all .3s ease; }
html.dark body .s-button-primary-outline :is(.s-button-text, i, svg) { color: var(--mg-navy) !important; fill: var(--mg-navy) !important; }
html.dark body .s-button-primary-outline:hover { background: #f3eddf !important; border-color: #f3eddf !important; }
html.dark body .inventory-content > div:has(.sicon-check-circle) { color: var(--mg-gold) !important; -webkit-text-fill-color: var(--mg-gold) !important; }
html.dark body :is(.cart-submit-wrap, .cart-item) :is(.text-store-text-primary, .text-primary, .item-total, span) { color: var(--mg-text); }
html.dark body .cart-item :is(.item-price, .sicon-sar) { color: var(--mg-gold); }
html.dark body #free-shipping .bg-primary { background: rgb(198 168 124 / .15) !important; color: var(--mg-gold) !important; }
html.dark body #free-shipping-bar { background: rgb(255 255 255 / .08) !important; }
html.dark body #free-shipping .progress-bg { background: linear-gradient(90deg, #a8864b, var(--mg-gold)) !important; }
html.dark body #free-shipping .progress-bg i { color: var(--mg-gold) !important; }

/* 18 ── Account pages + breadcrumbs (dark) */
html.dark body button.s-button-link, html.dark body button.s-button-link :is(.s-button-text, i, span) { color: var(--mg-gold); }
html.dark body .breadcrumbs a { color: var(--mg-text); }

/* 19 ── Wallet (dark) */
html.dark body salla-wallet h2, html.dark body .s-wallet-table-empty-state, html.dark body .s-wallet-table-empty-state .font-bold { color: var(--mg-text); -webkit-text-fill-color: var(--mg-text); }
html.dark body .s-wallet-table-empty-state i { color: var(--mg-gold); }
html.dark body .s-wallet-table-empty-state .text-gray-400 { color: rgb(241 237 223 / .5); -webkit-text-fill-color: rgb(241 237 223 / .5); }

/* 20 ── Logo: inner pages use the light-on-navy logo (the default one is dark and vanishes on the navy header) */
body:not(.home-index) .logo-normal { content: url("https://cdn.files.salla.network/homepage/928803187/1975b5d6-e4a7-4bb9-a4be-4dc4a1b6087e.webp") !important; }

/* 21 ── Hover states (dark). Text always stays readable: navy on gold, gold-2 on glass. */
/* product page / drawer gold buttons */
html.dark body :is(.s-button-solid.s-button-primary, button.cart-drawer-submit):not(.s-cart-coupons-coupon-button-remove):hover {
  background: linear-gradient(135deg, var(--mg-gold-2), var(--mg-gold)) !important;
  box-shadow: 0 6px 25px rgb(198 168 124 / .4) !important;
  transform: translateY(-1px);
}
/* add-to-cart button inside product cards: shimmer sweep + glow */
html.dark body .product-card button.s-button-outline:not(.s-button-light-outline)::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgb(198 168 124 / .15) 50%, transparent 65%);
  transform: translateX(-140%); transition: transform .6s ease;
}
html.dark body .product-card button.s-button-outline:not(.s-button-light-outline):hover::before { transform: translateX(140%); }
html.dark body .product-card :is(.product-card__normal-cart__btn, .product-card__enhnaced-mini-cart__btn) button.s-button-outline:not(.s-button-light-outline):hover {
  background: linear-gradient(135deg, rgb(198 168 124 / .15), rgb(198 168 124 / .08)) !important;
  border-color: rgb(198 168 124 / .6) !important;
  box-shadow: 0 4px 20px rgb(198 168 124 / .15), inset 0 1px 0 rgb(198 168 124 / .2) !important;
  transform: translateY(-1px);
}
html.dark body .product-card button.s-button-outline:not(.s-button-light-outline):hover :is(.s-button-text, .enhanced-label, i, .product-card__enhanced-mini-cart__btn--inner) { color: var(--mg-gold-2) !important; -webkit-text-fill-color: var(--mg-gold-2); }
/* out-of-stock button: match old (dark) */
html.dark body .product-card button.s-button-light-outline { border-color: rgb(198 168 124 / .2) !important; opacity: .7 !important; }
/* quick-view / wishlist hover: deeper glass, brighter border, gold icon */
html.dark body .product-card :is(.product-card__actions, .product-card__buttons) .s-button-primary-outline:hover {
  background: rgb(10 30 46 / .8) !important;
  border-color: rgb(198 168 124 / .6) !important;
  box-shadow: 0 4px 20px rgb(0 0 0 / .4), inset 0 1px 0 rgb(198 168 124 / .2) !important;
  transform: translateY(-1px);
}
html.dark body .product-card :is(.product-card__actions, .product-card__buttons) button.s-button-primary-outline:not(.s-button-light-outline):hover i { color: var(--mg-gold) !important; -webkit-text-fill-color: var(--mg-gold); }
/* thank-you page: support / invoice block */
html.dark body .thankyou-block { background: var(--mg-lux) !important; border: 1px solid rgb(198 168 124 / .2) !important; border-radius: 16px !important; padding: 1.25rem !important; }
html.dark body .thankyou-block .bg-gray-100 { background: rgb(198 168 124 / .15) !important; border: 1px solid rgb(198 168 124 / .3) !important; }
html.dark body .thankyou-block i { color: var(--mg-gold) !important; }
html.dark body .thankyou-block p { color: rgb(241 237 223 / .7) !important; -webkit-text-fill-color: rgb(241 237 223 / .7) !important; }
html.dark body .thankyou-block a { color: var(--mg-text) !important; -webkit-text-fill-color: var(--mg-text) !important; }
html.dark body .thankyou-block a:hover { color: var(--mg-gold) !important; -webkit-text-fill-color: var(--mg-gold) !important; }
html.dark body .thankyou-block .form-input { background: rgb(255 255 255 / .05) !important; border: 1px solid rgb(198 168 124 / .3) !important; border-radius: 0 8px 8px 0 !important; color: var(--mg-text) !important; -webkit-text-fill-color: var(--mg-text) !important; }
html.dark body .thankyou-block .form-input__placeholder { color: rgb(241 237 223 / .4) !important; -webkit-text-fill-color: rgb(241 237 223 / .4) !important; }
html.dark body .thankyou-block button.rtl\:rounded-r-none { border-radius: 8px 0 0 8px !important; }
/* hero banner text (cream title, gold subtitle) */
.magista-hero :is(.advanced-slider__caption__inner__content__heading, h2) { color: #f3eddf !important; }
.magista-hero :is(.advanced-slider__caption__inner__content__text, p) { color: var(--mg-gold) !important; -webkit-text-fill-color: var(--mg-gold) !important; }
/* product card: softer border + depth, as in the old version */
html.dark body custom-salla-product-card.product-card { border-color: rgb(198 168 124 / .15); box-shadow: 0 4px 20px rgb(0 0 0 / .3), inset 0 1px 0 rgb(198 168 124 / .08); }
/* 22 ── Round-up: card text hover, uniform cards, product-page controls, nav hover, payments */
/* product card: title / name stay readable on hover */
html.dark body .product-card :is(.product-card__title a, .product-card__subtitle) { transition: color .2s; }
html.dark body .product-card:hover .product-card__title a { color: var(--mg-text) !important; -webkit-text-fill-color: var(--mg-text) !important; }
html.dark body .product-card :is(.product-card__title a, .product-card__subtitle):hover { color: var(--mg-gold) !important; -webkit-text-fill-color: var(--mg-gold) !important; }
/* uniform cards: equal height, 2-line title, 1-line subtitle, price + button pinned to the bottom */
custom-salla-product-card.product-card { height: 100%; }
.product-card__content, .product-card__content-wrapper { flex: 1; display: flex; flex-direction: column; }
.product-card__title { min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__subtitle { min-height: 1.5em; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__price { margin-top: auto; }
/* size-notice checkbox: gold in every state (theme paints it blue on hover / focus) */
.magista-size-warning input:checked, .magista-size-warning input:checked:is(:hover, :focus) { background: var(--sw-accent); border-color: var(--sw-accent); }
.magista-size-warning input:hover { border-color: var(--mg-gold-2); }
.magista-size-warning input:focus { outline: 0; box-shadow: 0 0 0 3px rgb(198 168 124 / .3); }
/* buy-now (mini checkout) button */
html.dark body .s-add-product-button-mini-checkout { background: linear-gradient(135deg, rgb(198 168 124 / .18), rgb(198 168 124 / .08)) !important; border: 1px solid rgb(198 168 124 / .5) !important; border-radius: 12px !important; box-shadow: inset 0 1px 0 rgb(198 168 124 / .2); transition: background .3s, border-color .3s, transform .3s; }
html.dark body .s-add-product-button-mini-checkout:hover { background: linear-gradient(135deg, rgb(198 168 124 / .3), rgb(198 168 124 / .14)) !important; border-color: var(--mg-gold) !important; transform: translateY(-1px); }
/* attachments: add note / attach file */
button.btn-tab.btn--collapse { border: 1px solid rgb(198 168 124 / .35) !important; border-radius: 12px !important; transition: border-color .3s, color .3s, transform .3s; }
html.dark body button.btn-tab.btn--collapse { background: var(--mg-glass) !important; }
button.btn-tab.btn--collapse:hover { border-color: rgb(198 168 124 / .7) !important; color: var(--mg-gold-2) !important; transform: translateY(-1px); }
/* Apple Pay */
html body apple-pay-button.s-quick-buy-apple-pay { --apple-pay-button-border-radius: 12px; --apple-pay-button-height: 44px; border: 1px solid rgb(198 168 124 / .35); border-radius: 12px; overflow: hidden; transition: border-color .3s, transform .3s; }
html body apple-pay-button.s-quick-buy-apple-pay:hover { border-color: rgb(198 168 124 / .7); transform: translateY(-1px); }
/* hover on top links and breadcrumbs */
.topnav-link-item { transition: color .2s; }
html.dark body :is(.topnav-link-item, .breadcrumbs a, .s-breadcrumb-item a, .main-menu a, .s-menu-listed-item a):hover { color: var(--mg-gold) !important; }
/* payment icons: breathing room; wallet / cash-on-delivery icon hidden (not enabled in the store) */
.s-payments-list { flex-wrap: wrap; justify-content: center; gap: 12px; }
.s-payments-list-item:has(img[alt="customer_wallet"]), .s-payments-list-item:has(img[alt*="cod" i]), .s-payments-list-item:has(img[alt*="cash" i]) { display: none; }
/* Offers + payment cards + select: match the old look */
html.dark body .s-offer-card{background:#0f2d42!important;border:1px solid rgb(198 168 124/.3)!important;border-radius:12px!important;padding:16px!important;color:var(--mg-text)}
html.dark body .s-offer-card-icon{background:rgb(198 168 124/.14)!important;color:var(--mg-gold)!important;border-radius:50%!important}
html.dark body .s-offer-payment-methods-label{color:var(--mg-gold)!important;font-size:12px;font-weight:600;margin-bottom:4px}
html.dark body .s-offer-payment-method-item{background:rgb(198 168 124/.1)!important;border:1px solid rgb(198 168 124/.45)!important;border-radius:999px!important;padding:2px 10px;font-size:12px;color:var(--mg-text)!important}
html.dark body :is(.s-form-control,select){background-color:#0f2d42!important;border:1px solid rgb(198 168 124/.3)!important;border-radius:8px!important;color:var(--mg-text)!important}
.mg-prices .price-card{transition:border-color .35s,box-shadow .35s,filter .35s}
.mg-prices .price-card::after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 35%,rgb(255 255 255/.45) 50%,transparent 65%);transform:translateX(-140%);pointer-events:none}
.mg-prices .price-card:hover{border-color:var(--mg-gold);box-shadow:0 10px 24px rgb(10 45 65/.14),0 0 0 1px rgb(199 168 107/.22);filter:saturate(1.06)}
.mg-prices .price-card:hover::after{animation:mg-shine .85s ease}
@keyframes mg-shine{to{transform:translateX(140%)}}
html.dark .mg-prices .value{background:linear-gradient(135deg,#c6a87c,#e8c97a,#c6a87c);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
/* Account page cover: light logo in dark mode */
html.dark .profile__cover--placeholder img{content:url(https://cdn.files.salla.network/homepage/928803187/1975b5d6-e4a7-4bb9-a4be-4dc4a1b6087e.webp)}salla-payments{display:block;margin-top:2rem!important}
/* 24 ── Order details page: one card per block, even spacing */
main.profile .space-y-4>:is(table,.overflow-hidden,salla-order-totals-card,.rounded-md.p-5){margin:0 0 20px!important}
main.profile .shipping-orders{display:flex;flex-direction:column;gap:12px}
main.profile .shipping-orders>*{margin:0!important}
main.profile .order-item div.text-sm.justify-between{padding:12px 0;border-top:1px solid rgb(198 168 124/.12)}
main.profile .s-order-totals-card-panel{padding:20px}
main.profile .s-order-totals-card-row-inner{display:flex;justify-content:space-between;align-items:center;padding:10px 0}
main.profile .s-order-totals-card-total{margin-top:6px;padding-top:6px}
main.profile .s-order-totals-card-total-label,main.profile .s-order-totals-card-total-value{font-size:1.1rem}
main.profile .s-order-totals-card-heading{display:none}
html.dark body main.profile :is(.space-y-4>table,.shipping-orders>*,.s-order-totals-card-panel,.space-y-4>.rounded-md.p-5){background:var(--mg-lux)!important;border:1px solid rgb(198 168 124/.2)!important;border-radius:16px!important;box-shadow:0 4px 20px rgb(0 0 0/.25),inset 0 1px 0 rgb(198 168 124/.08);overflow:hidden}
html.dark body main.profile :is(.s-order-totals-card-list,.s-order-totals-card-total,.s-order-totals-card-row)>*{border-color:rgb(198 168 124/.15)!important}
html.dark body main.profile .s-order-totals-card-total{border-top:1px solid rgb(198 168 124/.25)!important}
html.dark body main.profile .s-order-totals-card-total-value{color:var(--mg-gold)}html.dark body main.profile :is(.space-y-4>table tr){background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}
html.dark body main.profile :is(.space-y-4>table tr)::before{display:none}
html.dark body main.profile [class*="bg-store-bg-secondary"]:hover{transform:none}
html.dark body main.profile :is(.space-y-4>table,.shipping-orders>*,.s-order-totals-card-panel,.space-y-4>.rounded-md.p-5):hover{border-color:rgb(198 168 124/.2)!important;box-shadow:0 4px 20px rgb(0 0 0/.25)!important}
html.dark body main.profile .order-item a:hover{color:var(--mg-gold)!important} 
/* 25 -- Quantity counter, review card, sticky product bar */
.s-quantity-input-container{display:flex;align-items:center;gap:0;padding:0;overflow:hidden;border:1px solid rgb(198 168 124/.45)!important;border-radius:14px!important;background:var(--mg-card)}
.s-quantity-input-button{display:grid;place-items:center;width:44px!important;height:42px!important;border-radius:0!important;color:var(--mg-gold);transition:background .25s,color .25s,transform .15s}
.s-quantity-input-button:hover{background:rgb(198 168 124/.16);color:var(--mg-gold-2)}
.s-quantity-input-button:active{transform:scale(.9)}
.s-quantity-input-button :is(span,svg){width:16px;height:16px;fill:currentColor;color:inherit}
.s-quantity-input-input{width:46px!important;height:42px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--mg-text)!important;font-size:1rem;font-weight:800;text-align:center}
salla-verified-review{display:block;margin-top:1.5rem}
.sticky-product-bar{background:var(--mg-card)!important;box-shadow:0 8px 30px rgb(0 0 0/.35)!important}
html.dark body .sticky-product-bar{background:var(--mg-lux)!important;backdrop-filter:blur(10px)}
html body .product-single__info form.product-form salla-quantity-input div.s-quantity-input-container{border-radius:14px!important;overflow:hidden}
html body salla-quantity-input .s-quantity-input-input:focus{--tw-ring-color:transparent;box-shadow:none!important;outline:0!important;background:rgb(198 168 124/.08)!important}
/* 26 -- Floating buy card + review card */
.sticky-cart-single{background:var(--mg-card)!important;border:1px solid rgb(198 168 124/.4);border-radius:18px;padding:14px 16px!important;box-shadow:0 14px 40px rgb(0 0 0/.45)!important;overflow:hidden}
html.dark body .sticky-cart-single{background:var(--mg-lux)!important;backdrop-filter:blur(12px)}
.sticky-cart-single::before{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,transparent,var(--mg-gold),transparent)}
.s-verified-review-container{background:var(--mg-card)!important;border:1px solid rgb(198 168 124/.3)!important;border-radius:18px!important;padding:22px!important;gap:18px!important;position:relative;overflow:hidden}
.s-verified-review-glow{background:radial-gradient(circle,rgb(198 168 124/.18),transparent 70%)!important}
.s-verified-review-image{border:1px solid rgb(198 168 124/.4);border-radius:14px!important}
.s-verified-review-title{color:var(--mg-text);font-weight:800;font-size:1rem}
.s-verified-review-subtitle{color:var(--mg-muted);font-size:.85rem}
html body :is(button.s-verified-review-cta,main.profile table button.s-button-outline){background:linear-gradient(135deg,#c6a87c,#e8c97a)!important;color:#12384d!important;border:0!important;border-radius:12px!important;font-weight:800;padding:10px 22px;transition:transform .2s,box-shadow .2s}
html body :is(button.s-verified-review-cta,main.profile table button.s-button-outline):hover{transform:translateY(-1px);box-shadow:0 6px 18px rgb(198 168 124/.3)}
/* Account menu hover */
.s-user-menu-dropdown-item-link:not([href*="logout"]):hover{color:var(--mg-gold-2)!important}
.magista-size-warning.mg-nudge{animation:mg-nudge .6s}
@keyframes mg-nudge{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}

/* 27 ── Quick view modal (eye icon on product cards) */
html body .quickview.show{background:rgb(4 14 22/.72)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html body .quickview__content{border-radius:22px!important;overflow:hidden;background:var(--mg-lux)!important;border:1px solid rgb(198 168 124/.4);box-shadow:0 24px 70px rgb(0 0 0/.6)}
html body .quickview-single-info{background:transparent!important}
html body .quickview__btn-close{width:34px;height:34px;display:grid;place-items:center;background:rgb(10 37 53/.8)!important;color:var(--mg-gold-2)!important;border:1px solid rgb(198 168 124/.55)!important;border-radius:50%!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background .2s,color .2s,transform .2s}
html body .quickview__btn-close :is(svg,i,span){color:inherit;fill:currentColor}
html body .quickview__btn-close:hover{background:var(--mg-gold)!important;color:#12384d!important;transform:rotate(90deg)}
html body .quickview__btn-close::after{content:none!important}
html body .quickview__btn-close::before{content:"✕"!important;position:static!important;display:block;width:auto!important;height:auto!important;background:none!important;transform:none!important;font-size:14px;line-height:1;color:inherit}
html body .content_product_detail::-webkit-scrollbar{width:6px}
html body .content_product_detail::-webkit-scrollbar-button{display:none}
html body .content_product_detail::-webkit-scrollbar-track{background:transparent}
html body .content_product_detail::-webkit-scrollbar-thumb{background:rgb(198 168 124/.6);border-radius:6px}
html body .product-quickview__price .price-container{border:0!important}
html body .quickview__header{margin-bottom:6px}
html body .quickview__header :is(.quickview-actions,.s-social-share-wrapper){display:flex;align-items:center;gap:8px}
html body .quickview__header button{width:38px;height:38px;display:grid;place-items:center;padding:0;background:rgb(255 255 255/.04)!important;color:var(--mg-gold)!important;border:1px solid rgb(198 168 124/.3)!important;border-radius:50%!important;font-size:15px;transition:background .2s,color .2s,border-color .2s}
html body .quickview__header button:hover{background:rgb(198 168 124/.16)!important;color:var(--mg-gold-2)!important;border-color:var(--mg-gold)!important}
html body .content_product_detail>a{display:block;margin:14px 0 6px}
html body .product-quickview_title{font-size:1.25rem;line-height:1.7;font-weight:800;color:var(--mg-text)}
html body .content_product_detail>a:hover .product-quickview_title{color:var(--mg-gold-2)}
html body .product-quickview_sub-title{color:var(--mg-muted)!important;font-size:.95rem}
html body .product-quickview__taxable{color:var(--mg-muted)!important;font-size:.8rem}
html body .product-quickview__price .price-container{display:flex;align-items:baseline;gap:8px;font-size:.95rem}
html body .product-quickview__price :is(.total-price,.text-red-400,.text-red-600){font-size:1.5rem!important;line-height:1}
html body .product-quickview__price{margin:6px 0 14px;padding:10px 0 14px;border-bottom:1px solid rgb(198 168 124/.25)!important;color:var(--mg-muted)}
html body .product-quickview__price :is(.price-container,span,.starting-price-title){color:var(--mg-muted)!important}
html body .product-quickview__price :is(.total-price,.text-red-400,.text-red-600){color:var(--mg-gold-2)!important;font-weight:800}
html body .quickview-description{color:var(--mg-muted)!important;font-size:.92rem;line-height:1.9}
html body .quickview-description :is(a,button,span.more){color:var(--mg-gold)!important}
html body .product-options .details-list{border:1px solid rgb(198 168 124/.3)!important;border-radius:12px;padding:10px 14px;background:rgb(198 168 124/.06)}
@media (max-width:767px){html body .quickview__content{border-radius:18px!important}}
html body .quickview :is(.s-slider-prev,.s-slider-next){width:34px;height:34px;display:grid;place-items:center;background:rgb(10 37 53/.8)!important;color:var(--mg-gold-2)!important;border:1px solid rgb(198 168 124/.55)!important;border-radius:50%!important;transition:background .2s,color .2s}
html body .quickview :is(.s-slider-prev,.s-slider-next):hover{background:var(--mg-gold)!important;color:#12384d!important}
html body .quickview :is(.s-slider-prev,.s-slider-next) :is(svg,i,span){color:inherit;fill:currentColor}
/* 28 ── Infinite-scroll end message ("لا يوجد المزيد لعرضه") */
.s-infinite-scroll-last{display:flex;align-items:center;justify-content:center;gap:14px;margin:28px auto;font-size:.9rem;font-weight:600}
.s-infinite-scroll-last::before,.s-infinite-scroll-last::after{content:"";width:48px;height:1px;background:rgb(198 168 124/.5)}
html.dark body .s-infinite-scroll-last{color:var(--mg-muted)!important}
/* 29 ── Account pages: menu text hover, order filter tabs, order rows */
html body .s-user-menu-dropdown-item-title{transition:color .2s}
html body .s-user-menu-dropdown-item-link:not([href*="logout"]):hover :is(.s-user-menu-dropdown-item-title,.s-user-menu-dropdown-item-pref){color:var(--mg-gold-2)!important}
html.dark body main.profile button.s-button-light-outline{background:transparent!important;color:var(--mg-muted)!important;border:1px solid rgb(198 168 124/.35)!important;border-radius:12px!important;transition:background .2s,color .2s,border-color .2s}
html.dark body main.profile button.s-button-light-outline:hover{background:rgb(198 168 124/.12)!important;color:var(--mg-gold-2)!important;border-color:var(--mg-gold)!important}
html body main.profile button.s-button-primary-outline{border-radius:12px!important;transition:filter .2s,transform .2s}
html body main.profile button.s-button-primary-outline:hover{filter:brightness(1.1);transform:translateY(-1px)}
html.dark body main.profile table:not(.space-y-4>table) tbody tr{transition:background .2s}
html.dark body main.profile table:not(.space-y-4>table) tbody tr:hover{background:rgb(198 168 124/.08)!important}
html.dark body main.profile table:not(.space-y-4>table) tbody tr:hover td:first-child{color:var(--mg-gold-2)}
/* 30 ── Quick view: share / wishlist round buttons (beats the theme's square radius + icon clipping) */
html body .quickview .quickview__header :is(salla-button,salla-social-share){width:38px;height:38px;display:block}
html body .quickview .quickview__header button.s-button-element{width:38px!important;height:38px!important;min-width:0;padding:0!important;display:grid!important;place-items:center;border-radius:50%!important;overflow:visible!important}
html body .quickview .quickview__header button.s-button-element .s-button-text{width:auto!important;height:auto!important;overflow:visible!important;display:grid;place-items:center}
html body .quickview .quickview__header button.s-button-element :is(i,svg){font-size:17px;width:17px;height:17px;line-height:1;overflow:visible}
html body .quickview .quickview__header button.s-button-element:hover{transform:translateY(-1px)}
/* 31 ── Account menu: logout hover (red) */
html body .s-user-menu-dropdown-item-link[href*="logout"]:hover :is(.s-user-menu-dropdown-item-title,.s-user-menu-dropdown-item-prefix){color:#ff6b61!important}
/* 32 ── Category side menu (mmenu): luxury look + hover */
html.dark body .mm-spn{border-inline-start:1px solid rgb(198 168 124/.3);box-shadow:-18px 0 50px rgb(0 0 0/.5)}
html.dark body .mm-spn ul{background:var(--mg-lux)!important}
html.dark body .mm-spn li{background:transparent!important}
html.dark body .mm-spn li::after{border-color:rgb(198 168 124/.18)!important;opacity:1!important}
html.dark body .mm-spn li>:is(a,span){display:flex!important;align-items:center;height:54px;padding:0 22px!important;font-size:.95rem;font-weight:700;color:var(--mg-text);transition:background .2s,color .2s,padding .2s,box-shadow .2s}
html.dark body .mm-spn li>:is(a,span):hover{background:rgb(198 168 124/.1);color:var(--mg-gold-2)!important;padding-inline-start:28px!important;box-shadow:inset -3px 0 0 var(--mg-gold)}
html[dir=ltr].dark body .mm-spn li>:is(a,span):hover{box-shadow:inset 3px 0 0 var(--mg-gold)}
html.dark body .mm-spn li:has(>ul)::before{border-color:var(--mg-gold)!important;opacity:.8}
html.dark body .mm-spn li:not(:has(>ul))::before{display:none!important}
html.dark body .mm-spn--navbar::before{color:var(--mg-gold)!important;font-weight:800;letter-spacing:.02em;background:rgb(198 168 124/.08);border-bottom:1px solid rgb(198 168 124/.3)}
/* 33 ── Category menu: rounded frosted-glass panel */
html.dark body .mm-ocd--right .mm-ocd__content{background:rgb(12 36 54/.68)!important;-webkit-backdrop-filter:blur(12px) saturate(1.1);backdrop-filter:blur(12px) saturate(1.1);border-radius:26px;overflow:hidden;border:1px solid rgb(198 168 124/.4);box-shadow:0 20px 60px rgb(0 0 0/.55),inset 0 1px 0 rgb(255 255 255/.08);inset-block:12px!important;height:auto!important;max-height:calc(100% - 24px);margin-inline-end:12px}
html.dark body .mm-spn{background:transparent!important;overflow:hidden}
html.dark body .mm-spn>ul,html.dark body .mm-spn ul.main-menu{background:transparent!important}
html.dark body .mm-spn ul ul{background:transparent!important}
/* parent level is hidden while a sub-level is open, so the glass shows clean (no list behind) */
html.dark body .mm-spn ul.mm-spn--parent>li>:is(a,span),html.dark body .mm-spn ul.mm-spn--parent>li::before,html.dark body .mm-spn ul.mm-spn--parent>li::after{opacity:0!important;pointer-events:none!important}

/* 34 ── Home promo countdown: brand look, tidy "offer ended" state */
html body .promo_with_countdown .bg-gray-900{background:var(--mg-lux)!important}
html body .promo_with_countdown .promo-countdown__title{color:var(--mg-text)!important;font-weight:800}
html body .promo_with_countdown .promo-countdown__title::after{content:"";display:block;width:56px;height:2px;margin-top:14px;background:var(--mg-gold)}
html body .promo_with_countdown .promo-countdown__description{color:var(--mg-muted)!important;margin-top:16px}
html body .promo_with_countdown .s-count-down-list.s-count-down-ended{display:none!important}
html body .promo_with_countdown salla-count-down{height:auto!important}
html body .promo_with_countdown .s-count-down-end-text{position:static!important;display:flex;align-items:center;width:max-content!important;max-width:100%;height:auto;margin:20px 0 0;padding:7px 20px;font-size:.95rem!important;font-weight:700;color:var(--mg-gold-2)!important;border:1px solid rgb(198 168 124/.5);border-radius:999px;background:rgb(198 168 124/.08)}
html body .promo_with_countdown .s-count-down-item{border:1px solid rgb(198 168 124/.45)!important;color:var(--mg-gold-2)!important}
html body .promo_with_countdown .promo-countdown__content a{background:linear-gradient(135deg,var(--mg-gold),var(--mg-gold-2))!important;color:#0a1e2e!important;border:0!important;border-radius:12px!important;font-weight:800;padding:0 26px;height:44px;display:inline-flex;align-items:center;transition:transform .2s,box-shadow .2s}
html body .promo_with_countdown .promo-countdown__content a:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgb(198 168 124/.35)}
/* 35 ── Sticky header: frosted glass while scrolling */
html.dark body .main-nav-container.fixed-pinned .inner{background:rgb(10 30 46/.55)!important;-webkit-backdrop-filter:blur(18px) saturate(1.5);backdrop-filter:blur(18px) saturate(1.5);border-bottom:1px solid rgb(198 168 124/.22);box-shadow:0 8px 30px rgb(0 0 0/.35)}
/* 36 ── Sliders: keep drag smooth (promote the track, no hover work or text/image drag while the mouse is down) */
html body .swiper .swiper-wrapper{will-change:transform}
html body .swiper{-webkit-user-select:none;user-select:none}
html body .swiper :is(img,a){-webkit-user-drag:none}
html body .swiper:active :is(.product-card,.product-card *){transition:none!important}
/* 37 ── Product page: round glass wishlist / share icons on the image */
html body .product-single__main-media .share-and-wish{gap:8px}
html body .product-single__main-media .share-and-wish :is(salla-button,salla-social-share){width:40px;height:40px;display:block}
html body .product-single__main-media .share-and-wish button.s-button-element{width:40px!important;height:40px!important;min-width:0;padding:0!important;display:grid!important;place-items:center;border-radius:50%!important;background:rgb(10 30 46/.55)!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgb(198 168 124/.5)!important;color:var(--mg-gold-2)!important;box-shadow:0 4px 14px rgb(0 0 0/.35)!important;overflow:visible!important;transition:background .2s,border-color .2s,transform .2s}
html body .product-single__main-media .share-and-wish .s-button-text{width:auto!important;height:auto!important;overflow:visible!important;display:grid;place-items:center}
html body .product-single__main-media .share-and-wish button.s-button-element i{font-size:18px;line-height:1;color:inherit!important}
html body .product-single__main-media .share-and-wish button.s-button-element:hover{background:rgb(10 30 46/.85)!important;border-color:var(--mg-gold)!important;transform:translateY(-2px)}
html body .product-single__main-media .share-and-wish button.btn--wishlist:not(.not-added) i{color:#ff6b61!important}
/* 38 ── Promo title badge on product images (cards + product page): gold-trimmed glass pill */
html body .promotion-title{inset-block-start:12px!important;inset-inline:12px auto!important;padding:5px 14px!important;border-radius:999px!important;background:rgb(10 30 46/.6)!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgb(198 168 124/.55);color:var(--mg-gold-2)!important;font-size:.78rem!important;font-weight:700!important;line-height:1.4;letter-spacing:.01em;box-shadow:0 4px 14px rgb(0 0 0/.3)}
/* 39 ── Product page: calm "out of stock" status instead of theme red */
html body #variant-inventory.out_stock{display:inline-flex;align-items:center;padding:4px 14px;border:1px solid rgb(198 168 124/.35);border-radius:999px;background:rgb(198 168 124/.06);color:var(--mg-muted)!important;font-size:.9rem;font-weight:600}
html body #variant-inventory.out_stock i{color:var(--mg-gold)!important;opacity:.85}
/* 40 ── Category menu header: gem badge + title + short description (main level only) */
html.dark body .mm-spn--main::after{display:flex!important;align-items:flex-start!important;height:80px!important;line-height:1.3!important;padding:16px 66px 0 20px!important;font-size:1.1rem!important;font-weight:800!important;color:#fff!important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='19' fill='rgba(198,168,124,.12)' stroke='%23c6a87c' stroke-opacity='.6'/%3E%3Cpath d='M12 17l4-5h8l4 5-8 11z' fill='none' stroke='%23e8c97a' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M12 17h16M16 12l4 16 4-16' fill='none' stroke='%23e8c97a' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 20px top 18px/38px 38px,linear-gradient(180deg,rgb(198 168 124/.12),transparent)!important;border-bottom:1px solid rgb(198 168 124/.3)!important}
html.dark body .mm-spn--main::before{content:"اكتشف مجوهرات وعود ماجيستا الفاخرة"!important;display:block!important;position:absolute;top:46px;right:66px!important;left:20px!important;width:auto!important;height:auto!important;z-index:2;padding:0!important;margin:0!important;border:0!important;background:none!important;transform:none!important;text-align:right;font-size:.76rem;line-height:1.3;color:var(--mg-gold-2);opacity:.9;pointer-events:none}
html.dark body .mm-spn--main ul{top:80px!important}
/* 41 ── Category menu: help / support links as a separate framed block with its own caption */
html.dark body .mm-spn li.main-menu__side-tab{margin:8px 14px 0!important;border-radius:14px;background:rgb(198 168 124/.07)!important;border:1px solid rgb(198 168 124/.3);transition:border-color .2s,background .2s}
html.dark body .mm-spn li.main-menu__side-tab:hover{border-color:var(--mg-gold);background:rgb(198 168 124/.12)!important}
html.dark body .mm-spn li.main-menu__side-tab::after{display:none!important}
html.dark body .mm-spn li:not(.main-menu__side-tab)+li.main-menu__side-tab{margin-top:34px!important}
html.dark body .mm-spn li:not(.main-menu__side-tab)+li.main-menu__side-tab::after{content:"المساعدة والدعم"!important;display:block!important;position:absolute;top:-24px;right:4px;left:auto;width:auto;border:0!important;font-size:.72rem;font-weight:700;letter-spacing:.04em;color:var(--mg-gold)}
html.dark body .mm-spn li.main-menu__side-tab:last-child{margin-bottom:22px!important}
html.dark body .mm-spn li.main-menu__side-tab .main-menu__parent-label{gap:12px}
html.dark body .mm-spn li.main-menu__side-tab .main-menu__parent-label i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:rgb(198 168 124/.14);color:var(--mg-gold-2);font-size:14px}
 

/* 42. Menu polish: support cards hover, submenu back button, smooth level transitions */
html.dark body .mm-spn li.main-menu__side-tab>:is(a,span):hover{background:transparent!important;box-shadow:none!important;padding-inline-start:22px!important}
html.dark body .mm-spn li.main-menu__side-tab:hover>:is(a,span){color:var(--mg-gold-2)!important}
html.dark body .mm-spn:not(.mm-spn--main)::before{top:8px!important;right:14px!important;left:auto!important;width:34px!important;height:34px!important;box-sizing:border-box;border:1px solid rgb(198 168 124/.55)!important;border-radius:50%!important;background:rgb(198 168 124/.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c97a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/18px no-repeat!important;opacity:1!important;transform:none!important;transition:background-color .2s,border-color .2s,transform .2s}
html.dark body .mm-spn.mg-back-hover:not(.mm-spn--main)::before{background-color:rgb(198 168 124/.25)!important;border-color:var(--mg-gold)!important;transform:scale(1.08)!important}
html.dark body .mm-spn:not(.mm-spn--main)::after{padding:0 64px 0 20px!important}
/* crossfade between menu levels (no slide): incoming content waits .12s, outgoing fades at once */
html.dark body .mm-spn li>:is(a,span),html.dark body .mm-spn li::before,html.dark body .mm-spn li::after{transition:opacity .28s ease,background .2s,color .2s,padding .2s,box-shadow .2s!important}
html.dark body .mm-spn ul.mm-spn--parent>li>:is(a,span),html.dark body .mm-spn ul.mm-spn--parent>li::before,html.dark body .mm-spn ul.mm-spn--parent>li::after{transition:opacity .28s ease!important}
html.dark body .mm-spn ul ul{opacity:0;transform:translateY(10px);transition:opacity .28s ease,transform .32s ease!important}
html.dark body .mm-spn ul ul.mm-spn--open{opacity:1;transform:none;transition:opacity .28s ease,transform .32s ease!important}
/* 43. Same header height and list offset on every menu level (no jump when entering/leaving a submenu) */
html.dark body .mm-spn ul{top:80px!important;transition:none!important}
html.dark body .mm-spn ul::before{display:none!important}
html.dark body .mm-spn:not(.mm-spn--main)::after{height:80px!important;align-items:center!important;padding:0 64px 0 20px!important;white-space:nowrap!important}
html.dark body .mm-spn:not(.mm-spn--main)::before{top:23px!important}
/* 44. Menu header: no animation on the divider line when switching levels; description in regular weight */
html.dark body .mm-spn::after{border-bottom:1px solid rgb(198 168 124/.3)!important;transition:none!important}
html.dark body .mm-spn:not(.mm-spn--main)::after{background:linear-gradient(180deg,rgb(198 168 124/.12),transparent)!important}
html.dark body .mm-spn--main::before{font-weight:400!important;transition:none!important}
/* 45. Submenu: centered gold title + the parent's "view all" row highlighted as the main-category marker */
html.dark body .mm-spn:not(.mm-spn--main)::after{display:flex!important;align-items:center!important;color:var(--mg-gold-2)!important}
html.dark body .mm-spn ul ul>li:first-child>a{margin:10px 14px 6px!important;padding:0 18px!important;height:50px!important;border-radius:14px;background:linear-gradient(270deg,rgb(198 168 124/.18),rgb(198 168 124/.06))!important;border:1px solid rgb(198 168 124/.5);color:var(--mg-gold-2)!important;font-weight:800!important;gap:10px}
html.dark body .mm-spn ul ul>li:first-child>a::before{content:"";flex:none;width:18px;height:18px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c97a' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M6 3h12l4 6-10 12L2 9z'/%3E%3Cpath d='M2 9h20M9 3l3 6 3-6M12 21L9 9m3 12l3-12'/%3E%3C/svg%3E") center/contain no-repeat}
html.dark body .mm-spn ul ul>li:first-child>a:hover{background:linear-gradient(270deg,rgb(198 168 124/.28),rgb(198 168 124/.1))!important;border-color:var(--mg-gold);box-shadow:none!important;padding-inline-start:18px!important}
html.dark body .mm-spn ul ul>li:first-child::after{display:none!important}
/* 46. Light motion: staggered entry of menu rows + soft shine on the main-category row (disabled for reduced motion) */
@keyframes mgRowIn{from{transform:translateY(6px)}to{transform:none}}
@keyframes mgShine{0%,60%{transform:translateX(-130%)}100%{transform:translateX(130%)}}
@media (prefers-reduced-motion:no-preference){
html.dark body .mm-spn ul ul.mm-spn--open>li{animation:mgRowIn .35s ease both}
html.dark body .mm-spn ul ul.mm-spn--open>li:nth-child(2){animation-delay:.03s}
html.dark body .mm-spn ul ul.mm-spn--open>li:nth-child(3){animation-delay:.06s}
html.dark body .mm-spn ul ul.mm-spn--open>li:nth-child(4){animation-delay:.09s}
html.dark body .mm-spn ul ul.mm-spn--open>li:nth-child(5){animation-delay:.12s}
html.dark body .mm-spn ul ul.mm-spn--open>li:nth-child(n+6){animation-delay:.15s}
html.dark body .mm-spn ul ul>li:first-child>a{position:relative;overflow:hidden}
html.dark body .mm-spn ul ul>li:first-child>a::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 35%,rgb(232 201 122/.22) 50%,transparent 65%);animation:mgShine 3.6s ease-in-out 1s infinite}
}
/* 47. Menu header text fades in when the level changes (text only: the divider line stays still) */
@keyframes mgHeadA{from{-webkit-text-fill-color:transparent}}
@keyframes mgHeadB{from{-webkit-text-fill-color:transparent}}
@media (prefers-reduced-motion:no-preference){
html.dark body .mm-spn--main::after,html.dark body .mm-spn--main::before{animation:mgHeadA .35s ease .05s both}
html.dark body .mm-spn:not(.mm-spn--main)::after{animation:mgHeadB .35s ease .05s both}
}
/* 48. Countdown section: the theme centers the "offer ended" label with translate(-50%,-50%); cancel it so the label lines up with the text above and the button */
html body .promo_with_countdown .promo-countdown__timer{display:block!important}
html body .promo_with_countdown .s-count-down-end-text{transform:none!important;margin-block:16px 0!important;margin-inline:0 auto!important}
/* 49. Active offer: "live" badge above the title + glowing countdown (all hidden once the offer has ended) */
@keyframes mgLive{0%{box-shadow:0 0 0 0 rgb(198 168 124/.45)}70%,100%{box-shadow:0 0 0 10px rgb(198 168 124/0)}}
@keyframes mgTick{50%{transform:scale(1.05)}}
html body .promo_with_countdown:not(:has(.s-count-down-ended)) .promo-countdown__title::before{content:"عرض مفعّل الآن";display:block;width:max-content;margin:0 0 14px;padding:5px 30px 5px 16px;border-radius:999px;border:1px solid rgb(198 168 124/.55);background:radial-gradient(circle,var(--mg-gold-2) 0 3.5px,transparent 4px) no-repeat right 12px center/8px 8px,rgb(198 168 124/.12);color:var(--mg-gold-2);font-size:.78rem;font-weight:700;line-height:1.4}
html body .promo_with_countdown .s-count-down-list:not(.s-count-down-ended) .s-count-down-item{border-color:rgb(198 168 124/.8);box-shadow:0 0 22px rgb(198 168 124/.2),inset 0 0 14px rgb(198 168 124/.08)}
@media (prefers-reduced-motion:no-preference){
html body .promo_with_countdown:not(:has(.s-count-down-ended)) .promo-countdown__title::before{animation:mgLive 2s ease-out infinite}
html body .promo_with_countdown .s-count-down-list:not(.s-count-down-ended) .s-count-down-item:first-child{animation:mgTick 1s ease-in-out infinite}
}
/* 50. Product card: discount percentage as a gold pill instead of theme red */
html.dark body .product-card__discount>span{display:inline-flex;align-items:center;padding:2px 12px;border:1px solid rgb(198 168 124/.4);border-radius:999px;background:rgb(198 168 124/.1);color:var(--mg-gold-2)!important;font-size:.82rem!important;font-weight:700}
/* 51. Product subtitle (card + product page): one muted-gold look with a thin gold accent line */
html.dark body :is(.product-card__subtitle,.product-entry__sub-title){color:rgb(214 190 140/.92)!important;font-size:.9rem!important;font-weight:500!important;line-height:1.7!important;letter-spacing:.01em}
html.dark body :is(.product-card__subtitle,.product-entry__sub-title)::before{content:"";display:inline-block;width:16px;height:1px;margin-inline-end:10px;vertical-align:middle;background:linear-gradient(90deg,transparent,var(--mg-gold))}
html.dark body .product-card__subtitle::after{content:"";display:inline-block;width:16px;height:1px;margin-inline-start:10px;vertical-align:middle;background:linear-gradient(270deg,transparent,var(--mg-gold))}


/* 52 — Unified promo badge (card + product page): floating pill, navy icon block + gold text */
html body :is(.product-card__promotion,.promotion-title){display:inline-flex!important;align-items:stretch;padding:5px 12px!important;padding-inline-start:0!important;border:0!important;border-radius:999px!important;background:linear-gradient(135deg,#f3d98a,#c6a87c)!important;-webkit-backdrop-filter:none;backdrop-filter:none;color:#0a1e2e!important;font-size:.8rem!important;font-weight:700!important;line-height:1.4;overflow:hidden;box-shadow:0 4px 12px rgb(0 0 0/.4)}
html body :is(.product-card__promotion,.promotion-title)::before{content:"✦";display:grid;place-items:center;margin-block:-5px;margin-inline:0 10px;padding:0 10px;background:#0a1e2e;color:var(--mg-gold-2);font-size:.7rem}
/* card badge position (page badge keeps its own, section 38) */
/* mobile: stop theme rule from stretching the card badge */
html body .product-card__promotion{top:12px!important;left:12px!important;right:auto!important;bottom:auto!important;width:auto!important;height:auto!important;min-height:0!important;max-width:calc(100% - 24px)}
/* mobile: compact one-line badge so it does not cover the small 2-col card image */
@media(max-width:640px){html body .product-card__promotion{top:8px!important;left:8px!important;max-width:calc(100% - 16px)!important;font-size:.62rem!important;line-height:1.3!important;white-space:nowrap!important;padding-block:3px!important;padding-inline-end:8px!important}html body .product-card__promotion::before{margin-block:-3px!important;margin-inline-end:6px!important;padding:0 7px!important;font-size:.55rem!important}}
/* 53 — Card add-to-cart (mobile): keep label + plus icon together in the centre instead of pushed to opposite edges */
@media(max-width:640px){html body .product-card__enhanced-mini-cart__btn--inner{justify-content:center!important;gap:8px}html body .product-card__enhanced-mini-cart__btn--inner :is(.enhanced-label,.enhanced-icon){margin:0!important}}
/* 54 — Card add-to-cart (mobile only): flush with the card, bottom corners follow the card radius (20px - 1px border). Desktop keeps the original inset button. */
@media(max-width:640px){html.dark body .product-card :is(.product-card__normal-cart__btn,.product-card__enhnaced-mini-cart__btn) button.s-button-outline:not(.s-button-light-outline){border:0!important;border-top:1px solid var(--mg-gold-line)!important;border-radius:0 0 19px 19px!important}html.dark body .product-card :is(.product-card__normal-cart__btn,.product-card__enhnaced-mini-cart__btn) button.s-button-outline:not(.s-button-light-outline):hover{transform:none!important}}
/* 55 — Card subtitle (mobile only): keep the original look (size + gold accent lines) but allow 2 lines (right-side line hidden so it does not wrap to an extra line) so long subtitles are not cut */
@media(max-width:640px){html body .product-card__subtitle{-webkit-line-clamp:2!important;line-clamp:2!important}html.dark body .product-card__subtitle{font-size:.7rem!important;line-height:1.55!important}html body .product-card__subtitle::after{display:none!important}}
/* 56 — Cart coupon: apply button fused with the code input (one joined field). The gold-button rule rounds all 4 corners and adds a glow, which made the two look separate. RTL: input on the right, button on the left. */
html.dark body .s-cart-coupons-coupon-input-container button.s-cart-coupons-coupon-button-apply.s-button-solid.s-button-primary{border-radius:12px 0 0 12px!important;box-shadow:none!important;transform:none!important}
html.dark body .s-cart-coupons-coupon-input-container input.form-input{border-radius:0 12px 12px 0!important}
/* 57 — Cart item: the product-options block kept the theme solid page colour on top of the card, which showed as a mismatched rectangle. Drop the fill and keep only a thin divider so it blends with the card. */
html.dark body .cart-item .s-product-options-wrapper{background:transparent!important;border-radius:0;border-top:1px solid rgb(198 168 124/.15);padding-inline:0}
/* 58 — Empty states (cart, etc.): the theme grey/white pieces clashed with the dark store (white circle, unreadable navy button, off-centre). Dark glass circle + gold icon, readable text, gold primary button, centred. */
html.dark body .main-content:has(.no-content-placeholder){width:100%}
html.dark body .no-content-placeholder{justify-content:center;align-items:center;padding-block:48px}
html.dark body .no-content-placeholder .sicon-shopping-bag{background:rgb(198 168 124/.08)!important;border:1px solid rgb(198 168 124/.35);color:var(--mg-gold)!important;box-shadow:0 0 40px rgb(198 168 124/.08)}
html.dark body .no-content-placeholder p{color:var(--mg-text);opacity:.8;font-size:1.05rem}
html.dark body .no-content-placeholder a.btn{background:var(--mg-gold-grad)!important;color:#0a1e2e!important;border:0!important;border-radius:12px!important;font-weight:700;padding-inline:28px}
/* 59 — Order page: the theme pure red (#ef4444) on the coupon line and the "payment expired" status was harsh on the dark store. Coupon = gold (it is a saving); status = soft rose, with a faint rose tint on the bottom status card. */
html.dark body.customer-orders-single .s-order-totals-card-discount{color:var(--mg-gold)!important}
html.dark body.customer-orders-single .text-red-500{color:#e0959a!important}
html.dark body.customer-orders-single .bg-store-bg-secondary.rounded-md.p-5:has(>.flex-center>.text-red-500){background:linear-gradient(rgb(224 149 154/.06),rgb(224 149 154/.06)),var(--mg-lux)!important;border-color:rgb(224 149 154/.28)!important}
/* 60 — Thank-you page: several pieces used the navy (#12384d) as text/icon colour on the dark page, so they were nearly invisible (item count, reward numbers, check icon, store badge). Give them gold/cream, and make the reward cards read as clickable gold-tinted cards. */
html.dark body .s-thank-you-header-success{background:rgb(198 168 124/.12)!important;color:var(--mg-gold)!important;border:1px solid rgb(198 168 124/.4);box-shadow:0 0 40px rgb(198 168 124/.12)}
html.dark body .s-thank-you-header-store{color:var(--mg-gold)!important;border:1px solid rgb(198 168 124/.4)}
html.dark body :is(.s-order-items-card,.s-order-payment-wrapper){border-color:rgb(198 168 124/.25)!important}
html.dark body .s-order-items-title{color:var(--mg-text)!important}
html.dark body .s-order-items-header :is(i,svg){color:var(--mg-gold)!important}
html.dark body .s-order-rewards-card{background:rgb(198 168 124/.06)!important;border:1px solid rgb(198 168 124/.28)!important;border-radius:14px}
html.dark body .s-order-rewards-card :is(.s-order-rewards-icon,.s-order-rewards-arrow,svg){color:var(--mg-gold)!important;fill:currentColor}
html.dark body .s-order-rewards-card b,html.dark body .s-order-rewards-card b i{color:var(--mg-gold-2)!important;font-weight:700}
html.dark body .s-order-rewards-card .s-order-rewards-copy>span{color:var(--mg-text)!important}
/* 61 — Thank-you page: item quantity badge was black on navy, and the dark bank-transfer logo (png) was lost on the dark card. Gold quantity; logo gets a soft light chip so it stays readable. */
html.dark body .s-order-items-qty{color:var(--mg-gold)!important;border:1px solid rgb(198 168 124/.4)!important;background:rgb(198 168 124/.08)!important}
html.dark body .s-order-payment-logo{background:rgb(241 237 223/.92);border-radius:8px;padding:3px 6px;display:inline-flex;align-items:center}
/* 62 — Thank-you page: contact icons (mail / phone / whatsapp) used navy on navy; make them gold with a gold-tinted frame, brighter on hover. */
html.dark body .s-contacts-icon{color:var(--mg-gold)!important;border-color:rgb(198 168 124/.35)!important;background:rgb(198 168 124/.06)}
html.dark body .s-contacts-icon svg{color:var(--mg-gold)!important}
html.dark body .s-contacts-item:hover .s-contacts-icon{background:rgb(198 168 124/.16);border-color:var(--mg-gold)!important}
/* 63 — Thank-you page: the store logo badge on the check circle squeezed the wide (500x213) logo into a 14px square. Make it a pill sized for the wide logo, cleanly sitting under the circle edge. */
html.dark body .s-thank-you-header-store{width:auto!important;height:auto!important;padding:5px 12px!important;border-radius:999px!important;display:inline-flex;align-items:center;justify-content:center;background:#0a2535!important;border:1px solid rgb(198 168 124/.4)!important}
html.dark body .s-thank-you-header-store img{width:auto!important;height:18px!important;max-width:64px;object-fit:contain}
/* 64 — Thank-you page: the badge used the dark-mode-incompatible logo (same file as the hidden .logo-normal). Swap to the light logo the header uses in dark mode (.logo-dark file) via background, hiding the original img. */
html.dark body .s-thank-you-header-store{width:72px!important;height:30px!important;padding:0!important;background:#0a2535 url("https://cdn.files.salla.network/homepage/928803187/1975b5d6-e4a7-4bb9-a4be-4dc4a1b6087e.webp") center/60% auto no-repeat!important}
html.dark body .s-thank-you-header-store img{display:none!important}
/* 65 — Thank-you page: the logo badge overlapped the check circle. Park it centered just under the circle instead (circle gets bottom margin to make room). */
html.dark body .s-thank-you-header-success{margin-bottom:40px}
html.dark body .s-thank-you-header-store{top:calc(100% + 10px)!important;bottom:auto!important;left:50%!important;right:auto!important;transform:translateX(-50%)}
/* 66 — Thank-you page: unique sub-line. The sub-line is not editable from the dashboard, so hide the default text and show our own via ::after. (Main title is set from the dashboard settings.) */
html body .s-thank-you-header-subtitle{font-size:0!important;line-height:0}
html body .s-thank-you-header-subtitle::after{content:"استلمنا طلبك، وقطعتك بين يدين أمينة. نجهّزها لك بمحبة، وأول بأول نعلمك 🤍";display:block;font-size:.95rem;line-height:1.8}
/* 67 — Login modal: the form itself is an iframe hosted on accounts.salla.com (cross-origin), so only the modal FRAME can be styled from the theme: gold hairline, soft glow, blurred overlay, gold close button. Inner colours come from Salla / the store colour setting. */
html.dark body .s-login-modal .s-modal-overlay{background:rgb(4 16 26/.72)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html.dark body .s-login-modal .s-modal-body{background:var(--mg-lux)!important;border:1px solid rgb(198 168 124/.35)!important;border-radius:22px!important;box-shadow:0 24px 70px rgb(0 0 0/.55),0 0 50px rgb(198 168 124/.08)!important;overflow:hidden}
html.dark body .s-login-modal .s-modal-close{color:var(--mg-gold)!important;z-index:2}
html.dark body .s-login-modal .s-modal-close svg{fill:currentColor;color:var(--mg-gold)!important}
html.dark body .s-login-modal iframe{display:block}
/* 68 — Brand colour split: the store colour (identity setting) is now gold so the hosted login iframe (accounts.salla.com) renders its buttons/text readably on dark. To keep the REST of the storefront exactly as before, pin the theme brand variables back to the original navy values here. (The iframe is a separate document and keeps the gold value.) */
html:root{--color-primary:#12384d;--color-primary-dark:#001227;--color-primary-light:#385e73;--color-primary-reverse:#deffff}
/* 69 — Search modal (dark mode): the panel was a white sheet with grey chips/text. Bring it onto the dark gold system: gradient panel with gold hairline, blurred overlay, gold section titles, gold-tinted chips, readable list items. */
html.dark body .s-search-modal .s-modal-overlay{background:rgb(4 16 26/.72)!important;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html.dark body .s-search-modal .s-modal-body{background:var(--mg-lux)!important;border:1px solid rgb(198 168 124/.3)!important;border-radius:18px!important;box-shadow:0 24px 70px rgb(0 0 0/.55)!important}
html.dark body .s-search-modal .s-search-input{border:1px solid rgb(198 168 124/.28)!important}
html.dark body .s-search-modal :is(.s-search-back-btn,.s-search-icon-wrap,.s-search-icon){color:var(--mg-gold)!important}
html.dark body .s-search-modal .s-search-idle-section-title{color:var(--mg-gold)!important;font-weight:600}
html.dark body .s-search-modal :is(.s-search-history-chip,.s-search-idle-category-chip){background:rgb(198 168 124/.08)!important;border:1px solid rgb(198 168 124/.28);color:var(--mg-text)!important}
html.dark body .s-search-modal :is(.s-search-history-chip-term,.s-search-history-chip-icon,.s-search-history-chip-remove,.s-search-history-chip svg){color:var(--mg-text)!important}
html.dark body .s-search-modal .s-search-idle-category-chip:hover{background:rgb(198 168 124/.18)!important;border-color:var(--mg-gold)}
html.dark body .s-search-modal .s-search-most-searched-item{color:var(--mg-text)!important;opacity:.9}
html.dark body .s-search-modal .s-search-most-searched-item:hover{color:var(--mg-gold)!important;opacity:1}
html.dark body .s-search-modal .s-search-most-searched-icon{color:var(--mg-gold)!important}
/* 70 — Search modal results: product names/sub-text were dark grey on the dark panel and the price was default coral. Cream names, muted gold subtitle, gold price, gold "view all", themed scrollbar and image backdrop. */
html.dark body .s-search-modal .s-search-product-card-content-title{color:var(--mg-text)!important}
html.dark body .s-search-modal .s-search-product-card-content-subtitle{color:rgb(214 190 140/.85)!important}
html.dark body .s-search-modal :is(.s-search-product-card-content-sub,.s-search-product-card-starting-price,.s-search-product-card-starting-price p){color:var(--mg-text)!important;opacity:.75}
html.dark body .s-search-modal .s-search-product-card-starting-price :is(h4,i){color:var(--mg-gold)!important;opacity:1}
html.dark body .s-search-modal .s-search-product-card-image{background:rgb(10 37 53)!important}
html.dark body .s-search-modal :is(.s-search-view-all,.s-search-view-all-icon){color:var(--mg-gold)!important}
html.dark body .s-search-modal .s-search-results-body{scrollbar-width:thin;scrollbar-color:rgb(198 168 124/.5) transparent}
/* 71 — Search results: hover turned the grid item near-white (#f9fafb) making cream text vanish, and the earlier opacity on the price block dimmed the gold price. Gold-tinted hover instead; dim via colour alpha, never opacity, so price stays full gold. */
html.dark body .s-search-modal .s-search-grid-item{border-radius:12px;transition:background-color .2s,box-shadow .2s}
html.dark body .s-search-modal .s-search-grid-item:hover{background:rgb(198 168 124/.1)!important;box-shadow:inset 0 0 0 1px rgb(198 168 124/.3)}
html.dark body .s-search-modal .s-search-product-card-content-title:hover{color:var(--mg-gold)!important}
html.dark body .s-search-modal :is(.s-search-product-card-content-sub,.s-search-product-card-starting-price,.s-search-product-card-starting-price p){opacity:1!important;color:rgb(241 237 223/.85)!important}
html.dark body .s-search-modal .s-search-product-card-starting-price :is(h4,i){color:var(--mg-gold)!important;opacity:1!important}
html.dark body .s-search-modal .s-search-product-card-content-sub :is(span,p,div){color:rgb(241 237 223/.85)}
/* 72 — Mobile menu: the glass (translucent + blur) drawer is distracting over page content on phones. Make it nearly solid dark on mobile only; desktop keeps the glass look from section 33. */
@media(max-width:640px){html.dark body .mm-ocd--right .mm-ocd__content{background:rgb(9 28 43/.97)!important;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}}

/* 73 - Cart related products (salla-basket-gap): gold name on hover, no gift icon on promo badge */
html.dark .s-basket-gap-card-name a:hover, html.dark .s-basket-gap-card-name a:focus { color: #c6a87c !important; -webkit-text-fill-color: #c6a87c !important; }
html:not(.dark) .s-basket-gap-card-name a:hover, html:not(.dark) .s-basket-gap-card-name a:focus { color: #a8864b !important; -webkit-text-fill-color: #a8864b !important; }
.s-basket-gap-card-offer i { display: none !important; }
/* 74 - Mobile bottom nav (.selia-bottom-nav): glass bar, gold hairline, gold icons, gold cart badge. Bar is display:none on desktop, so desktop is untouched. */
.selia-bottom-nav { background: rgba(10,37,53,.94) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgba(198,168,124,.45) !important; border-radius: 20px 20px 0 0; box-shadow: 0 -10px 28px rgba(0,0,0,.4) !important; padding: 10px 8px calc(8px + env(safe-area-inset-bottom)) !important; }
.selia-bottom-nav-button { display: flex; justify-content: center; }
.selia-bottom-nav-icon { gap: 4px; font-size: 11px !important; font-weight: 600; line-height: 1.2; color: rgba(243,237,223,.78) !important; transition: transform .15s, color .15s; }
.selia-bottom-nav-icon i, .selia-bottom-nav-icon svg { font-size: 21px !important; color: #c6a87c !important; }
.selia-bottom-nav-icon:active { transform: scale(.9); }
.selia-bottom-nav-user { flex-direction: column; align-items: center; gap: 4px; }
.selia-bottom-nav-user > span { font-size: 11px !important; font-weight: 600; line-height: 1.2; color: rgba(243,237,223,.78) !important; }
.selia-bottom-nav-cart .s-cart-summary-count { background: #c6a87c !important; color: #0a2535 !important; font-weight: 700; font-size: 10px; min-width: 16px; height: 16px; line-height: 16px; border-radius: 99px; padding: 0 4px; top: -6px !important; }
.selia-bottom-nav-cart .s-cart-summary-total { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; line-height: 1 !important; font-size: 10.5px !important; font-weight: 600; color: rgba(243,237,223,.85) !important; }
.selia-bottom-nav-cart .s-cart-summary-total i { font-size: 10px !important; line-height: 1 !important; display: inline-block !important; position: static !important; color: inherit !important; transform: translateY(-1px); }
html:not(.dark) .selia-bottom-nav { background: rgba(255,255,255,.95) !important; border-top-color: rgba(168,134,75,.45) !important; box-shadow: 0 -8px 24px rgba(18,56,77,.14) !important; }
html:not(.dark) .selia-bottom-nav-icon, html:not(.dark) .selia-bottom-nav-user > span, html:not(.dark) .selia-bottom-nav-cart .s-cart-summary-total { color: #12384d !important; }
html:not(.dark) .selia-bottom-nav-icon i, html:not(.dark) .selia-bottom-nav-icon svg { color: #a8864b !important; }
/* 75 - Language modal (.s-localization-modal): gold title + cream options, gold radios, soft gold highlight on the chosen language. Dark mode only (light keeps default look) except the radio accent. */
.s-localization-modal-input { accent-color: #c6a87c; }
html.dark .s-localization-modal-title { color: #c6a87c !important; font-weight: 700; }
html.dark .s-localization-modal-label, html.dark .s-localization-modal-label span { color: #f1eddf !important; }
html.dark .s-localization-modal-item { border-radius: 10px; padding: 8px 10px; transition: background .15s; }
html.dark .s-localization-modal-item:hover, html.dark .s-localization-modal-item:has(input:checked) { background: rgba(198,168,124,.12); }
html.dark .s-localization-modal-item:has(input:checked) .s-localization-modal-label, html.dark .s-localization-modal-item:has(input:checked) .s-localization-modal-label span { color: #c6a87c !important; }
html.dark .s-localization-modal-input { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(198,168,124,.6); background: transparent; display: grid; place-content: center; cursor: pointer; }
html.dark .s-localization-modal-input::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c6a87c; transform: scale(0); transition: transform .15s; }
html.dark .s-localization-modal-input:checked { border-color: #c6a87c; }
html.dark .s-localization-modal-input:checked::before { transform: scale(1); }
html.dark .s-modal-close svg, html.dark .s-modal-close i { color: #c6a87c !important; fill: currentColor; }
/* 76 - Product description standard (#details_table): card, roomy line-height, lead paragraph, gold bold headings, gold bullets, tidy tables and images. Uses --mg-* tokens so light/dark both work. */
.more-tab-container #details_table { background: var(--mg-card); border: 1px solid var(--mg-line); border-radius: 14px; padding: 20px 22px; color: var(--mg-text); font-size: 15px; line-height: 2; }
.more-tab-container #details_table p { margin: 0 0 .6em; color: inherit; }
.more-tab-container #details_table > p:first-child { font-size: 16px; font-weight: 600; }
.more-tab-container #details_table p:has(> strong:only-child) { margin-top: 1em; padding-bottom: .4em; border-bottom: 1px solid var(--mg-line); }
.more-tab-container #details_table strong, .more-tab-container #details_table b, .more-tab-container #details_table a { color: #a8864b !important; font-weight: 700; }
html.dark .more-tab-container #details_table strong, html.dark .more-tab-container #details_table b, html.dark .more-tab-container #details_table a { color: #c6a87c !important; }
.more-tab-container #details_table :is(h1,h2,h3,h4) { color: var(--mg-text); font-weight: 700; margin: 1.2em 0 .5em; line-height: 1.6; }
.more-tab-container #details_table :is(ul,ol) { margin: 0 0 1em; padding-inline-start: 1.4em; }
.more-tab-container #details_table li { margin-bottom: .3em; }
.more-tab-container #details_table li::marker { color: #c6a87c; }
.more-tab-container #details_table img { max-width: 100%; height: auto; border-radius: 12px; }
.more-tab-container #details_table table { width: 100%; border-collapse: collapse; margin: 0 0 1em; }
.more-tab-container #details_table :is(th,td) { border: 1px solid var(--mg-line); padding: 8px 12px; }
.more-tab-container #details_table th { background: rgba(198,168,124,.12); }