/* ===========================================================
   TawfeerOil (Salla) - Dark Theme Custom CSS (v2 + Single Page Text Fix)
   =========================================================== */

/* ---------- Theme Tokens ---------- */
:root{
  --bg: #252525;
  --text: #ffffff;
  --muted: rgba(255,255,255,.75);
  --panel: rgba(0,0,0,.07);

  --card-grad: linear-gradient(45deg, #D9D9D913 0%, #73737313 30%);
  --card-shadow: 0 2px 10.3px 0 #FFFFFF25;

  --cat-bg: url(https://i.ibb.co/35r56pfL/bgCat.png);
  --cat-heading: url(https://i.ibb.co/bj6L2RpS/heading1.png);

  --footer-bg: url(https://i.ibb.co/yBbvz5SG/bgfoot.png);
  --footer-logo: url(https://cdn.salla.sa/cdn-cgi/image/fit=scale-down,width=400,height=400,onerror=redirect,format=auto/ePjexo/q4LWCqKtrPrG3Do6Ermy4n7giD2GmhE8jbrQHo2N.png);

  --cat-slide-desktop: 240px;
  --cat-slide-tablet: 180px;

  --banner-narrow-desktop: 350px;
  --banner-narrow-mobile: 250px;
}

/* ---------- Base ---------- */
html{
  color-scheme: dark;
}

body{
  background: var(--bg);
  color: var(--text);
}

a{
  color: inherit;
}

:focus-visible{
  outline: 2px solid rgba(255,255,255,.65);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===========================================================
   Header / Nav
   =========================================================== */
#mainnav{
  background: transparent;
}

@media only screen and (min-width: 1024px){
  .main-menu li.root-level > a{
    color: var(--text);
  }
  .main-menu li.root-level > a:hover{
    color: rgba(255,255,255,.85);
  }
}

.top-navbar{
  color: var(--text);
}

/* Icons + cart total */
.inner.bg-inherit .header-btn__icon i,
.inner.bg-inherit .sicon-user-circle:before,
.inner.bg-inherit .sicon-shopping-bag:before,
.inner.bg-inherit .s-cart-summary-total{
  color: var(--text);
}

/* ===========================================================
   Fixed Banner (Home)
   =========================================================== */
section.s-block.s-block--fixed-banner.wide-placeholder .container{
  max-width: 100%;
  padding-right: 0;
  padding-left: 0;
}

.s-slider-block__title{
  display: none;
}

section.s-block.s-block--fixed-banner.wide-placeholder img{
  background: transparent;
  border-radius: 0;
}

:nth-child(1 of section.s-block.s-block--fixed-banner.wide-placeholder){
  margin-top: 0;
}

@media (min-width: 992px){
  :nth-child(4 of section.s-block.s-block--fixed-banner.wide-placeholder){
    margin-top: -8rem;
  }
}

:nth-child(2 of section.s-block.s-block--fixed-banner.wide-placeholder){
  display: none;
}
:nth-child(5 of section.s-block.s-block--fixed-banner.wide-placeholder){
  display: none;
}

@media (max-width: 786px){
  :nth-child(2 of section.s-block.s-block--fixed-banner.wide-placeholder){
    display: block;
  }
  :nth-child(3 of section.s-block.s-block--fixed-banner.wide-placeholder){
    display: none;
  }
  :nth-child(4 of section.s-block.s-block--fixed-banner.wide-placeholder){
    display: none;
  }
  :nth-child(5 of section.s-block.s-block--fixed-banner.wide-placeholder){
    display: block;
  }
}

:nth-child(6 of section.s-block.s-block--fixed-banner.wide-placeholder) .container,
:nth-child(9 of section.s-block.s-block--fixed-banner.wide-placeholder) .container{
  max-width: var(--banner-narrow-desktop);
}

@media (max-width: 768px){
  :nth-child(6 of section.s-block.s-block--fixed-banner.wide-placeholder) .container,
  :nth-child(9 of section.s-block.s-block--fixed-banner.wide-placeholder) .container{
    max-width: var(--banner-narrow-mobile);
  }
}

/* Fallbacks */
section.s-block.s-block--fixed-banner.wide-placeholder:nth-of-type(6) .container,
section.s-block.s-block--fixed-banner.wide-placeholder:nth-of-type(9) .container{
  max-width: var(--banner-narrow-desktop);
}
@media (max-width: 768px){
  section.s-block.s-block--fixed-banner.wide-placeholder:nth-of-type(6) .container,
  section.s-block.s-block--fixed-banner.wide-placeholder:nth-of-type(9) .container{
    max-width: var(--banner-narrow-mobile);
  }
}

/* ===========================================================
   Categories Section
   =========================================================== */
.slide--cat-entry h2{
  display: none;
}

section.s-block.s-block--categories{
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  margin-top: 0;
  margin-bottom: 0 !important;
  overflow: hidden;
}

@media (max-width: 768px){
  section.s-block.s-block--categories{
    min-height: 250px;
  }
}

section.s-block.s-block--categories::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cat-bg);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

section.s-block.s-block--categories::after{
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 100%;
  max-width: 400px;
  background: var(--cat-heading) no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}

section.s-block.s-block--categories .container,
section.s-block.s-block--categories .swiper,
section.s-block.s-block--categories .s-slider-wrapper{
  position: relative;
  z-index: 1;
}

.s-slider-controls-outer .s-slider-block__title-nav{
  display: none;
}

section.s-block.s-block--categories .swiper-slide > a{
  background-color: transparent;
  border-width: 0;
  height: 100%;
}

section.s-block.s-block--categories .swiper-wrapper{
  justify-content: space-between;
}

section.s-block.s-block--categories .swiper-slide > a > img{
  width: 100%;
  height: 100%;
  transition: .3s;
}

section.s-block.s-block--categories .rounded-full{
  border-radius: 0;
}

@media (min-width: 1024px){
  section.s-block.s-block--categories .swiper-slide{
    width: var(--cat-slide-desktop);
  }
}
@media (max-width: 1024px){
  section.s-block.s-block--categories .swiper-slide{
    width: var(--cat-slide-tablet);
  }
}

/* Fix: combine transforms */
section.s-block.s-block--categories .swiper-slide > a > img:hover{
  transform: translateY(10px) scale(1.1);
}

@media (min-width: 1024px){
  .swiper-slide.slide--one-sixth:nth-child(2) a.slide--cat-entry{ margin-top: 3rem; }
  .swiper-slide.slide--one-sixth:nth-child(3) a.slide--cat-entry{ margin-top: 7rem; }
  .swiper-slide.slide--one-sixth:nth-child(4) a.slide--cat-entry{ margin-top: 3rem; }
}

/* ===========================================================
   Product Cards
   =========================================================== */
.s-product-card-vertical{
  background: var(--card-grad);
  box-shadow: var(--card-shadow);
  color: var(--text);
}

.s-product-card-content-title a{
  color: var(--text);
}

.s-product-card-vertical .text-gray-500,
.s-product-card-vertical .text-gray-600{
  color: var(--muted) !important;
}

/* ===========================================================
   Footer
   =========================================================== */
.footer-is-light .store-footer{
  background-image: var(--footer-bg);
  background-size: cover;
  background-position: center;
}

footer > .store-footer__inner{
  background-color: transparent !important;
  color: var(--text);
}

footer.store-footer *{
  text-align: center;
}

.s-social-list.hydrated{
  place-content: center;
}

.store-footer__inner .container.grid > div:first-child h3{
  display: none;
}

.store-footer__inner .container.grid > div:first-child > a::after{
  content: "";
  display: block;
  width: 92px;
  height: 76px;
  margin: 10px auto 0;
  background-image: var(--footer-logo);
  background-size: cover;
  background-position: center;
}

@media (min-width: 992px){
  footer.store-footer .container.grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
  }
}

@media (min-width: 1024px){
  .store-footer__inner{
    padding-bottom: 1rem;
  }
}

.store-footer__inner .container.grid > div p{
  margin: 10px auto;
}

.copyright-text p,
.copyright-text a{
  color: var(--text);
}
.copyright-text a:hover{
  color: var(--text);
}

.s-contacts-list.s-contacts-list-vertical{
  flex-direction: row;
  justify-content: center;
}

span.unicode{ display: none; }
.s-contacts-icon:where([dir="rtl"], [dir="rtl"] *){
  margin-left: 0;
}

/* ===========================================================
   Dark Theme (Scoped)
   =========================================================== */
.s-breadcrumb-wrapper *{
  color: var(--text);
  fill: var(--text);
}

.main-content .text-gray-800,
.main-content .product__description,
.main-content h2{
  color: var(--text);
}

.main-content .bg-white,
.main-content .s-comments-product{
  background-color: var(--panel);
}

.main-content .bg-white .text-gray-900,
.main-content .bg-white h2,
.main-content .bg-white .text-gray-500,
.main-content .bg-white b{
  color: var(--text);
}

.content.content--single-page.w-full.lg\:w-10\/12.bg-white.rounded.p-6.lg\:p-8.mt-4.lg\:mt-12,
.content.content--single-page.w-full.lg\:w-10\/12.bg-white.rounded.p-6.lg\:p-8.mt-4.lg\:mt-12 span{
  color: var(--text) !important;
}

/* ✅ Added: force text to show on Single Pages (About/Policies) */
.content--single-page p,
.content--single-page li,
.content--single-page h1,
.content--single-page h2{
  color:#fff !important;
}

.sticky-product-bar__quantity label.form-label.font-bold{
  color: var(--text);
}

.main-content input,
.main-content select,
.main-content textarea{
  background-color: rgba(255,255,255,.06);
  color: var(--text);
  border-color: rgba(255,255,255,.15);
}
.main-content input::placeholder,
.main-content textarea::placeholder{
  color: rgba(255,255,255,.55);
}