/* =========================================================
   CLOUD KEY — WHITE PREMIUM V1
   Clean rebuild for Salla Theme Raed
   ========================================================= */

:root{
  --ck-bg:#f6f8fb;
  --ck-bg-soft:#fbfcfe;
  --ck-white:#ffffff;

  --ck-text:#17243a;
  --ck-text-2:#52647b;
  --ck-muted:#8392a6;

  --ck-blue:#1688f2;
  --ck-blue-dark:#0872d0;
  --ck-blue-soft:#edf7ff;

  --ck-cyan:#15a8f5;
  --ck-green:#22b987;
  --ck-red:#f15b68;
  --ck-gold:#edae35;

  --ck-border:#e4eaf1;
  --ck-border-blue:#cce5fb;

  --ck-shadow:
    0 8px 24px rgba(31,49,74,.065);

  --ck-shadow-hover:
    0 14px 34px rgba(31,49,74,.105);

  --ck-radius:16px;
  --ck-radius-lg:20px;

  --ck-container:1180px;

  --color-primary:#1688f2;
  --color-primary-dark:#0872d0;
  --color-primary-light:#4aa9f7;
  --color-primary-reverse:#fff;
}


/* =========================================================
   01 — GLOBAL
   ========================================================= */

html{
  background:var(--ck-bg) !important;
  scroll-behavior:smooth;
}

body,
body.theme-raed,
body#app{
  min-height:100vh;

  background:
    linear-gradient(
      180deg,
      #ffffff 0,
      var(--ck-bg) 260px,
      var(--ck-bg) 100%
    ) !important;

  color:var(--ck-text) !important;
}

body::before,
body::after{
  display:none !important;
}

body,
button,
input,
select,
textarea{
  font-family:
    var(--font-main),
    "DIN Next Arabic",
    "Tajawal",
    system-ui,
    sans-serif !important;
}

main,
#main-content,
.main-content,
.s-blocks-wrapper{
  background:transparent !important;
}

.container{
  max-width:var(--ck-container) !important;
}

::selection{
  background:rgba(22,136,242,.18);
  color:var(--ck-text);
}

::-webkit-scrollbar{
  width:9px;
}

::-webkit-scrollbar-track{
  background:#f2f5f8;
}

::-webkit-scrollbar-thumb{
  background:#c6d2df;
  border:2px solid #f2f5f8;
  border-radius:99px;
}

::-webkit-scrollbar-thumb:hover{
  background:#9eb2c7;
}


/* =========================================================
   02 — BENEFITS BAR
   ========================================================= */

.ck-benefits{
  position:relative;
  z-index:110;

  background:
    linear-gradient(
      90deg,
      #f2f8ff,
      #eaf5ff,
      #f2f8ff
    );

  border-bottom:
    1px solid #dbeafa;
}

.ck-benefits__inner{
  width:min(calc(100% - 28px),var(--ck-container));

  min-height:36px;

  margin:auto;

  display:grid;

  grid-template-columns:
    repeat(4,minmax(0,1fr));

  align-items:center;
}

.ck-benefit{
  min-height:21px;

  padding:0 16px;

  display:flex;
  align-items:center;
  justify-content:center;

  gap:8px;

  color:#415570;

  font-size:11px;
  font-weight:800;

  white-space:nowrap;

  border-inline-start:
    1px solid #d9e6f3;
}

.ck-benefit:first-child{
  border-inline-start:0;
}

.ck-benefit__icon{
  color:var(--ck-blue);
  font-size:15px;
}


/* =========================================================
   03 — RESET NATIVE HEADER
   ========================================================= */

[data-testid="store-header"]{
  position:relative !important;

  z-index:100;

  background:#fff !important;

  color:var(--ck-text) !important;

  border:0 !important;
}

[data-testid="store-header"] .top-navbar{
  display:none !important;
}

#mainnav,
.main-nav-container{
  min-height:auto !important;

  background:#fff !important;

  border:0 !important;

  box-shadow:none !important;
}

#mainnav > .inner{
  background:#fff !important;
}


/* =========================================================
   04 — NEW MAIN HEADER ROW
   ========================================================= */

.ck-header-main{
  background:
    rgba(255,255,255,.96);

  border-bottom:
    1px solid var(--ck-border);
}

.ck-header-main__inner{
  width:min(calc(100% - 28px),var(--ck-container));

  min-height:82px;

  margin:auto;

  display:grid;

  grid-template-columns:
    minmax(0,1fr)
    auto
    minmax(0,1fr);

  grid-template-areas:
    "actions logo search";

  align-items:center;

  gap:24px;

  direction:ltr;
}


/* =========================================================
   05 — SEARCH — RIGHT
   ========================================================= */

.ck-header-search{
  grid-area:search;

  width:100%;

  max-width:390px;

  justify-self:end;

  direction:rtl;
}

.ck-header-search salla-search{
  display:block !important;

  width:100% !important;

  --salla-search-bg:#f8fafc;
  --color-primary:var(--ck-blue);
}

.ck-header-search
[data-testid="store-header-search"]{
  width:100% !important;
}

.ck-header-search input{
  min-height:44px !important;

  background:#f8fafc !important;

  color:var(--ck-text) !important;

  border:
    1px solid #dfe6ed !important;

  border-radius:
    999px !important;

  box-shadow:none !important;
}

.ck-header-search input::placeholder{
  color:#95a1b0 !important;
}

.ck-header-search input:focus{
  background:#fff !important;

  border-color:#9fd0fa !important;

  box-shadow:
    0 0 0 4px
    rgba(22,136,242,.06) !important;
}


/* =========================================================
   06 — LOGO — TRUE CENTER
   ========================================================= */

.ck-header-logo{
  grid-area:logo;

  justify-self:center;

  direction:rtl;
}

.ck-header-logo
[data-testid="store-header-logo"]{
  display:flex !important;

  align-items:center;
  justify-content:center;

  margin:0 !important;
}

.ck-header-logo
[data-testid="store-header-logo"] img{
  display:block !important;

  width:auto !important;

  max-width:155px !important;
  max-height:60px !important;

  object-fit:contain !important;

  filter:none !important;
}


/* =========================================================
   07 — ACTIONS — LEFT
   ========================================================= */

.ck-header-actions{
  grid-area:actions;

  justify-self:start;

  display:flex;

  direction:ltr;

  align-items:center;

  gap:8px;
}

.ck-header-action{
  width:43px;
  height:43px;

  display:flex;

  align-items:center;
  justify-content:center;

  overflow:visible;

  border:
    1px solid #dfe6ee;

  border-radius:50%;

  background:#fff;

  color:#1e2d42;

  box-shadow:
    0 4px 13px
    rgba(30,47,70,.045);

  transition:
    .2s ease;
}

.ck-header-action--cart{
  width:auto;
  min-width:48px;

  border-radius:13px;

  border-color:#c9e3fb;

  background:#f7fbff;
}

.ck-header-action:hover{
  border-color:#9dcefa;

  background:#f4faff;

  box-shadow:
    0 7px 18px
    rgba(22,136,242,.09);

  transform:translateY(-1px);
}

.ck-header-action
salla-user-menu,

.ck-header-action
salla-cart-summary,

.ck-header-action
salla-wishlist-summary{
  width:100% !important;
  min-height:41px !important;

  margin:0 !important;

  display:flex !important;

  align-items:center !important;
  justify-content:center !important;

  color:var(--ck-text) !important;
}

.ck-header-action
salla-cart-summary{
  padding-inline:7px !important;
}


/* =========================================================
   08 — MOBILE MENU
   ========================================================= */

.ck-mobile-toggle{
  display:none;
}


/* =========================================================
   09 — CATEGORY NAVIGATION
   ========================================================= */

.ck-category-navigation{
  width:100%;

  background:#fff;

  border-bottom:
    1px solid var(--ck-border);

  box-shadow:
    0 4px 14px rgba(25,43,67,.025);
}

.ck-category-navigation__inner{
  width:min(calc(100% - 28px),var(--ck-container));

  min-height:48px;

  margin:auto;

  display:flex;

  align-items:center;
  justify-content:center;
}

.ck-category-navigation
custom-main-menu{
  width:100% !important;
}

.ck-category-navigation
.main-menu{
  width:100% !important;

  margin:0 !important;

  display:flex !important;

  align-items:center !important;
  justify-content:center !important;

  gap:0 !important;
}

.ck-category-navigation
.main-menu > li{
  position:relative;

  flex:1;

  max-width:215px;
}

.ck-category-navigation
.main-menu > li:not(:last-child)::after{
  content:"";

  position:absolute;

  inset-inline-end:0;
  top:50%;

  width:1px;
  height:18px;

  transform:translateY(-50%);

  background:#e2e7ed;
}

.ck-category-navigation
.main-menu > li > a{
  min-height:47px;

  padding:8px 13px !important;

  display:flex !important;

  align-items:center !important;
  justify-content:center !important;

  gap:7px;

  color:#2f4057 !important;

  background:transparent !important;

  border:0 !important;

  border-radius:10px !important;

  font-size:12px !important;
  font-weight:800 !important;

  transition:
    color .18s ease,
    background .18s ease;
}

.ck-category-navigation
.main-menu > li > a:hover{
  color:var(--ck-blue) !important;

  background:var(--ck-blue-soft) !important;
}


/* =========================================================
   10 — STICKY STATE
   ========================================================= */

body.ck-header-scrolled
.ck-header-main{
  box-shadow:
    0 8px 24px
    rgba(30,47,70,.07);
}


/* =========================================================
   11 — HOME SPACING
   ========================================================= */

.s-block{
  margin-top:26px !important;
  margin-bottom:26px !important;
}

#main-content > .s-block:first-child{
  margin-top:18px !important;
}


/* =========================================================
   12 — MAIN SLIDER
   لا صندوق أبيض حول الصورة
   ========================================================= */

.s-slider-block,
.s-block--photos-slider,
.s-block--main-slider,
.s-block--slider,
.enhanced-slider{
  background:transparent !important;

  border:0 !important;

  box-shadow:none !important;
}

.s-slider-block .swiper,
.s-block--photos-slider .swiper,
.s-block--main-slider .swiper,
.s-block--slider .swiper,
.enhanced-slider .swiper{
  background:transparent !important;

  padding:0 !important;

  border:0 !important;

  border-radius:20px !important;

  box-shadow:none !important;
}

.s-slider-block .swiper-slide,
.s-block--photos-slider .swiper-slide,
.s-block--main-slider .swiper-slide{
  background:transparent !important;
}

.s-slider-block img,
.s-block--photos-slider img,
.s-block--main-slider img,
.enhanced-slider img{
  border-radius:20px !important;

  box-shadow:
    0 10px 30px
    rgba(29,47,71,.09) !important;
}

.swiper-button-next,
.swiper-button-prev,
.s-slider-next,
.s-slider-prev{
  width:38px !important;
  height:38px !important;

  background:
    rgba(255,255,255,.94) !important;

  color:#24364d !important;

  border:
    1px solid #dce4ec !important;

  box-shadow:
    0 6px 18px rgba(32,50,72,.10) !important;
}

.swiper-pagination-bullet{
  background:#bec9d5 !important;

  opacity:1 !important;
}

.swiper-pagination-bullet-active{
  width:22px !important;

  border-radius:99px !important;

  background:var(--ck-blue) !important;

  box-shadow:none !important;
}


/* =========================================================
   13 — FIXED SECTION BANNERS
   ========================================================= */

[data-testid="store-home-fixed-banner"]{
  width:min(calc(100% - 28px),var(--ck-container)) !important;

  margin:
    28px auto 16px !important;

  background:transparent !important;
}

[data-testid="store-home-fixed-banner"] > .container{
  width:100% !important;

  max-width:none !important;

  padding:0 !important;
}

[data-testid="store-home-fixed-banner"]
.banner--fixed{
  display:block !important;

  width:100% !important;

  overflow:hidden !important;

  border:0 !important;

  border-radius:18px !important;

  background:transparent !important;

  box-shadow:
    var(--ck-shadow) !important;
}

[data-testid="store-home-fixed-banner"]
.banner--fixed img{
  display:block !important;

  width:100% !important;

  height:auto !important;

  border-radius:18px !important;

  object-fit:cover !important;
}


/* =========================================================
   14 — SQUARE CATEGORIES
   Similar clean hierarchy to Abady
   ========================================================= */

section[data-testid="store-home-square-banners"]{
  width:min(calc(100% - 28px),1080px) !important;

  margin:
    0 auto 38px !important;

  padding:0 !important;

  background:transparent !important;
}

section[data-testid="store-home-square-banners"]
> .grid,
section[data-testid="store-home-square-banners"]
> .grid.two-row{
  width:100% !important;

  display:grid !important;

  grid-template-columns:
    repeat(3,minmax(0,1fr)) !important;

  grid-auto-flow:row !important;
  grid-auto-rows:auto !important;

  gap:16px !important;

  margin:0 !important;
}


/* reset Raed mosaic */

section[data-testid="store-home-square-banners"]
.banner-entry{
  position:relative !important;

  grid-column:auto !important;
  grid-row:auto !important;
  grid-area:auto !important;

  width:100% !important;

  height:auto !important;
  min-height:0 !important;
  max-height:none !important;

  overflow:hidden !important;

  margin:0 !important;

  border:
    1px solid var(--ck-border) !important;

  border-radius:16px !important;

  background-color:#fff !important;

  background-size:cover !important;
  background-position:center top !important;
  background-repeat:no-repeat !important;

  box-shadow:
    var(--ck-shadow) !important;

  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease !important;
}


/* no title: pure square image */

section[data-testid="store-home-square-banners"]
.banner-entry:not(.has-overlay){
  aspect-ratio:1 / 1 !important;
}

section[data-testid="store-home-square-banners"]
.banner-entry:not(.has-overlay)
.banner-entry__text{
  display:none !important;
}


/* title: image + independent white strip */

section[data-testid="store-home-square-banners"]
.banner-entry.has-overlay{
  aspect-ratio:1 / 1.18 !important;

  background-size:
    100% calc(100% - 58px) !important;
}

section[data-testid="store-home-square-banners"]
.banner-entry.has-overlay
.banner-entry__text{
  position:absolute !important;

  right:0 !important;
  left:0 !important;
  bottom:0 !important;

  width:100% !important;

  height:58px !important;
  min-height:58px !important;

  padding:7px 10px !important;

  display:flex !important;

  flex-direction:column !important;

  align-items:center !important;
  justify-content:center !important;

  text-align:center !important;

  opacity:1 !important;
  transform:none !important;

  background:#fff !important;

  border-top:
    1px solid var(--ck-border) !important;
}

section[data-testid="store-home-square-banners"]
.banner-entry::before,
section[data-testid="store-home-square-banners"]
.banner-entry::after{
  display:none !important;
}

section[data-testid="store-home-square-banners"]
.banner__title{
  margin:0 !important;

  color:var(--ck-text) !important;

  font-size:13px !important;
  font-weight:900 !important;

  line-height:1.3 !important;
}

section[data-testid="store-home-square-banners"]
.banner__description{
  margin-top:3px !important;

  color:var(--ck-muted) !important;

  font-size:9px !important;
}


/* 1 */

section[data-testid="store-home-square-banners"]
.grid:has(> .banner-entry:first-child:last-child){
  grid-template-columns:
    minmax(260px,340px) !important;

  justify-content:center !important;
}


/* 2 */

section[data-testid="store-home-square-banners"]
.grid:has(> .banner-entry:nth-child(2):last-child){
  grid-template-columns:
    repeat(2,minmax(260px,340px)) !important;

  justify-content:center !important;
}


/* 4 = 3 + centered last */

section[data-testid="store-home-square-banners"]
.grid:has(> .banner-entry:nth-child(4):last-child)
> .banner-entry:nth-child(4){
  grid-column:2 !important;
}


/* hover */

@media(hover:hover){

  section[data-testid="store-home-square-banners"]
  .banner-entry:hover{
    transform:translateY(-4px) !important;

    border-color:var(--ck-border-blue) !important;

    box-shadow:
      var(--ck-shadow-hover) !important;
  }

}


/* =========================================================
   15 — SECTION TITLES
   ========================================================= */

.s-block__title,
.s-slider-block__title{
  margin-bottom:16px !important;
}

.s-block__title h2,
.s-block__title h3,
.s-slider-block__title h2,
.section-title{
  color:var(--ck-text) !important;

  font-size:
    clamp(21px,2vw,28px) !important;

  font-weight:900 !important;

  line-height:1.4 !important;
}

.s-block__title p,
.s-slider-block__title p{
  color:var(--ck-muted) !important;
}

.s-block__title a,
.s-slider-block__title a,
.display-all-link{
  color:var(--ck-blue) !important;

  font-weight:800 !important;
}


/* =========================================================
   16 — PRODUCT CARDS
   ========================================================= */

.s-product-card-entry,
.product-card,
.product-entry{
  height:100%;

  overflow:hidden !important;

  background:#fff !important;

  border:
    1px solid var(--ck-border) !important;

  border-radius:16px !important;

  box-shadow:
    var(--ck-shadow) !important;

  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease !important;
}

.s-product-card-image,
.product-entry__image{
  overflow:hidden !important;

  background:#f7f9fb !important;
}

.s-product-card-image img,
.product-entry__image img{
  transition:
    transform .3s ease !important;
}

.s-product-card-content{
  padding:11px !important;
}

.s-product-card-content-title,
.s-product-card-content-title a,
.s-product-card-title,
.product-entry__title,
.product-entry__title a{
  color:var(--ck-text) !important;

  font-size:12.5px !important;
  font-weight:800 !important;

  line-height:1.55 !important;
}

.s-product-card-content-title,
.s-product-card-content-title a{
  min-height:39px;

  display:-webkit-box !important;

  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;

  overflow:hidden !important;
}

.s-product-card-content-sub{
  color:var(--ck-muted) !important;
}

.s-product-card-price,
.s-product-card-sale-price,
.product-entry__price{
  color:#0b76d1 !important;

  font-size:16px !important;

  font-weight:900 !important;
}

.s-product-card-regular-price,
.product-entry__old-price,
del,
.line-through{
  color:#96a2b1 !important;
}

.s-product-card-promotion-title{
  background:#fff0f2 !important;

  color:#e64b5a !important;

  border-radius:7px !important;
}

@media(hover:hover){

  .s-product-card-entry:hover,
  .product-card:hover,
  .product-entry:hover{
    transform:translateY(-4px);

    border-color:#cfe2f4 !important;

    box-shadow:
      var(--ck-shadow-hover) !important;
  }

  .s-product-card-entry:hover
  .s-product-card-image img{
    transform:scale(1.025);
  }

}


/* =========================================================
   17 — PRODUCT BUTTONS
   ========================================================= */

.s-product-card-entry
.s-button-element,

.s-product-card-entry
button,

.s-add-product-button-main,

.btn-primary,

.s-button-btn-primary{
  border-radius:9px !important;

  font-weight:800 !important;
}

.s-product-card-entry
.s-button-btn-primary,

.s-add-product-button-main,

.btn-primary,

.s-button-btn-primary{
  background:#fff !important;

  color:var(--ck-blue) !important;

  border:
    1px solid #bcdcf8 !important;

  box-shadow:none !important;
}

.s-product-card-entry
.s-button-btn-primary:hover,

.s-add-product-button-main:hover,

.btn-primary:hover{
  background:var(--ck-blue) !important;

  color:#fff !important;

  border-color:var(--ck-blue) !important;
}


/* =========================================================
   18 — FEATURES
   ========================================================= */

.s-block--features{
  width:min(calc(100% - 28px),var(--ck-container)) !important;

  margin:
    36px auto !important;
}

.s-block--features__item{
  min-height:105px !important;

  padding:18px 15px !important;

  background:#fff !important;

  border:
    1px solid var(--ck-border) !important;

  border-radius:15px !important;

  box-shadow:
    0 5px 18px rgba(31,49,74,.045) !important;
}

.s-block--features__item h2{
  color:var(--ck-text) !important;

  font-size:14px !important;
  font-weight:900 !important;
}

.s-block--features__item p{
  color:var(--ck-muted) !important;

  font-size:11px !important;
}


/* =========================================================
   19 — REVIEWS
   ========================================================= */

[data-testid="store-home-testimonials"]{
  width:min(calc(100% - 28px),var(--ck-container)) !important;

  margin:
    38px auto !important;

  background:transparent !important;
}

.s-reviews-card,
.s-reviews-testimonial,
.s-review-card,
.testimonial,
.review-card{
  background:#fff !important;

  color:var(--ck-text) !important;

  border:
    1px solid var(--ck-border) !important;

  border-radius:16px !important;

  box-shadow:
    var(--ck-shadow) !important;
}

.s-reviews-card p,
.s-reviews-testimonial p,
.s-review-card p,
.testimonial p,
.review-card p{
  color:var(--ck-text-2) !important;
}

.rating-stars,
.stars,
.star-rating{
  color:var(--ck-gold) !important;
}


/* =========================================================
   20 — FAQ
   ========================================================= */

.ck-faq,
.faq-section{
  width:min(calc(100% - 28px),840px);

  margin:
    42px auto !important;
}

.ck-faq details,
.faq-item,
.accordion-item{
  margin-bottom:10px !important;

  overflow:hidden !important;

  background:#fff !important;

  border:
    1px solid var(--ck-border) !important;

  border-radius:14px !important;

  box-shadow:
    0 5px 18px rgba(31,49,74,.045) !important;
}

.ck-faq summary,
.faq-question,
.accordion-header{
  color:var(--ck-text) !important;

  font-weight:800 !important;
}

.ck-faq__answer,
.faq-answer,
.accordion-body{
  color:var(--ck-text-2) !important;
}


/* =========================================================
   21 — PRODUCT PAGE
   ========================================================= */

.container--product-details
.main-content,

.product-form,
.product-actions,
.product-summary,
.purchase-box{
  background:#fff !important;

  color:var(--ck-text) !important;

  border:
    1px solid var(--ck-border) !important;

  border-radius:18px !important;

  box-shadow:
    var(--ck-shadow) !important;
}

.container--product-details
[data-testid="store-product-title"]{
  color:var(--ck-text) !important;

  font-weight:900 !important;
}

.container--product-details
[data-testid="store-product-price"] p{
  color:#0b76d1 !important;

  font-weight:900 !important;
}

.product__description,
.product__description p,
.product__description li{
  color:var(--ck-text-2) !important;

  line-height:1.85 !important;
}

.details-slider,
.image-slider,
.details-slider .swiper-slide{
  overflow:hidden;

  border-radius:18px !important;
}

.details-slider .swiper-slide{
  background:#fff !important;

  border:
    1px solid var(--ck-border);
}


/* =========================================================
   22 — INPUTS
   ========================================================= */

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select{
  background:#fff !important;

  color:var(--ck-text) !important;

  border:
    1px solid #dfe6ed !important;

  border-radius:11px !important;
}

input:focus,
textarea:focus,
select:focus{
  border-color:#a7d2f7 !important;

  box-shadow:
    0 0 0 4px
    rgba(22,136,242,.055) !important;

  outline:0 !important;
}

input::placeholder,
textarea::placeholder{
  color:#99a5b5 !important;
}


/* =========================================================
   23 — CART / ACCOUNT
   ========================================================= */

.cart-item,
.cart-summary,
.cart-box,
.order-card,
.content--single-page,
.list-block,
.user-profile,
.account-sidebar{
  background:#fff !important;

  color:var(--ck-text) !important;

  border:
    1px solid var(--ck-border) !important;

  border-radius:16px !important;

  box-shadow:
    var(--ck-shadow) !important;
}


/* =========================================================
   24 — TAMARA / PAYMENT WIDGETS
   ========================================================= */

.tamara-widget,
.tamara-product-widget,
.tabby-promo,
.payment-widget,
.installment-widget{
  background:#fff !important;

  color:#111827 !important;

  border-radius:13px !important;
}


/* =========================================================
   25 — FOOTER
   ========================================================= */

footer,
.store-footer{
  margin-top:42px !important;

  background:#fff !important;

  color:var(--ck-text-2) !important;

  border-top:
    1px solid var(--ck-border) !important;

  box-shadow:
    0 -5px 18px rgba(31,49,74,.025) !important;
}

footer h3,
footer h4,
.store-footer h3,
.store-footer h4{
  color:var(--ck-text) !important;

  font-weight:900 !important;
}

footer a,
.store-footer a{
  color:#65768c !important;
}

footer a:hover,
.store-footer a:hover{
  color:var(--ck-blue) !important;
}


/* =========================================================
   26 — MOBILE
   ========================================================= */

@media(max-width:900px){

  .ck-benefits__inner{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .ck-benefit{
    min-height:30px;

    font-size:9px;

    border:0;
  }


  .ck-header-main__inner{
    min-height:64px;

    grid-template-columns:
      1fr auto 1fr;

    gap:7px;
  }


  .ck-header-logo
  [data-testid="store-header-logo"] img{
    max-width:100px !important;
    max-height:44px !important;
  }


  .ck-header-search{
    position:absolute;

    top:100%;
    right:9px;
    left:9px;

    max-width:none;

    padding-top:8px;
  }


  .ck-header-main{
    padding-bottom:53px;
  }


  .ck-header-actions{
    gap:5px;
  }


  .ck-header-action{
    width:39px;
    height:39px;
  }


  .ck-header-action--cart{
    min-width:42px;
  }


  .ck-header-action--wishlist{
    display:none;
  }


  .ck-mobile-toggle{
    display:flex;
  }


  .ck-category-navigation{
    display:none;
  }


  section[data-testid="store-home-square-banners"]{
    width:calc(100% - 18px) !important;
  }


  section[data-testid="store-home-square-banners"]
  > .grid,

  section[data-testid="store-home-square-banners"]
  > .grid.two-row{
    grid-template-columns:
      repeat(2,minmax(0,1fr)) !important;

    gap:9px !important;
  }


  section[data-testid="store-home-square-banners"]
  .grid > .banner-entry{
    grid-column:auto !important;
  }


  section[data-testid="store-home-square-banners"]
  .grid > .banner-entry:last-child:nth-child(odd){
    grid-column:1 / -1 !important;

    width:calc(50% - 5px) !important;

    justify-self:center;
  }


  section[data-testid="store-home-square-banners"]
  .banner-entry.has-overlay{
    aspect-ratio:1 / 1.18 !important;

    background-size:
      100% calc(100% - 44px) !important;
  }


  section[data-testid="store-home-square-banners"]
  .banner-entry.has-overlay
  .banner-entry__text{
    height:44px !important;
    min-height:44px !important;

    padding:5px !important;
  }


  section[data-testid="store-home-square-banners"]
  .banner__title{
    font-size:10px !important;
  }


  section[data-testid="store-home-square-banners"]
  .banner__description{
    display:none !important;
  }

}


@media(max-width:480px){

  .ck-benefits__inner{
    width:100%;
  }

  .ck-benefit:nth-child(3),
  .ck-benefit:nth-child(4){
    display:none;
  }

  .ck-benefits__inner{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

}
/* =========================================
   CLOUD KEY — WIDE BANNER FULLER WIDTH
   توسيع البانر وملء الفراغ بالصورة
========================================= */

[data-testid="store-home-fixed-banner"]{
  width:min(calc(100% - 28px),1400px) !important;
  max-width:1400px !important;

  margin:28px auto 18px !important;
  padding:0 !important;
}


[data-testid="store-home-fixed-banner"] > .container{
  width:100% !important;
  max-width:none !important;

  padding:0 !important;
  margin:0 !important;
}


/* الحاوية نفسها */
[data-testid="store-home-fixed-banner"]
.banner--fixed{
  display:block !important;

  width:100% !important;

  overflow:hidden !important;

  border-radius:18px !important;

  background:transparent !important;

  cursor:zoom-in !important;
}


/* الصورة تملأ كل الفراغ */
[data-testid="store-home-fixed-banner"]
.banner--fixed picture{
  display:block !important;

  width:100% !important;
}


[data-testid="store-home-fixed-banner"]
.banner--fixed img{
  display:block !important;

  width:100% !important;

  height:200px !important;

  max-width:none !important;

  object-fit:cover !important;

  object-position:center center !important;

  border-radius:18px !important;

  transform:scale(1);

  transform-origin:center center !important;

  transition:
    transform .45s cubic-bezier(.2,.7,.25,1) !important;
}


/* Zoom من المنتصف */
@media(hover:hover){

  [data-testid="store-home-fixed-banner"]
  .banner--fixed:hover img{
    transform:scale(1.045) !important;
  }

}


/* الجوال */
@media(max-width:767px){

  [data-testid="store-home-fixed-banner"]{
    width:calc(100% - 18px) !important;
  }


  [data-testid="store-home-fixed-banner"]
  .banner--fixed img{
    height:auto !important;
  }

}

/* =========================================================
   CLOUD KEY — CATEGORY SPACING FIX
   ========================================================= */

/* مسافة بين البانر العريض والتصنيفات */
[data-testid="store-home-fixed-banner"]{
  margin-bottom: 26px !important;
}


/* قسم التصنيفات */
section[data-testid="store-home-square-banners"]{
  margin-top: 0 !important;
  margin-bottom: 44px !important;
}


/* تباعد بين بطاقات التصنيفات */
section[data-testid="store-home-square-banners"] > .grid,
section[data-testid="store-home-square-banners"] > .grid.two-row{
  column-gap: 20px !important;
  row-gap: 22px !important;
}


/* الجوال */
@media (max-width: 767px){

  [data-testid="store-home-fixed-banner"]{
    margin-bottom: 16px !important;
  }

  section[data-testid="store-home-square-banners"]{
    margin-bottom: 30px !important;
  }

  section[data-testid="store-home-square-banners"] > .grid,
  section[data-testid="store-home-square-banners"] > .grid.two-row{
    column-gap: 10px !important;
    row-gap: 12px !important;
  }

}



/* =========================================================
   CLOUD KEY — CATEGORY CARDS CLEAN
   لا يلمس background-image نهائياً
   ========================================================= */

section[data-testid="store-home-square-banners"]
.banner-entry{
  position: relative !important;
  overflow: hidden !important;

  /* مهم: لا تستخدم background أو background-color هنا */
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;

  border: 1px solid #e1e8f0 !important;
  border-radius: 16px !important;

  box-shadow:
    0 7px 20px rgba(31,49,74,.08) !important;

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease !important;
}


/* لا نضيف طبقات فوق الصورة */
section[data-testid="store-home-square-banners"]
.banner-entry::before,
section[data-testid="store-home-square-banners"]
.banner-entry::after{
  display: none !important;
}


/* إذا صورك مكتوب عليها اسم التصنيف أصلًا */
section[data-testid="store-home-square-banners"]
.banner-entry__text{
  display: none !important;
}


/* Hover فقط */
@media (hover:hover){

  section[data-testid="store-home-square-banners"]
  .banner-entry:hover{
    transform: translateY(-5px) scale(1.01) !important;

    border-color: #bcd9f1 !important;

    box-shadow:
      0 16px 32px rgba(31,49,74,.12) !important;
  }

}


/* الجوال */
@media (max-width:767px){

  section[data-testid="store-home-square-banners"]
  .banner-entry{
    border-radius: 13px !important;

    box-shadow:
      0 5px 15px rgba(31,49,74,.07) !important;
  }

}


/* =========================================================
   CLOUD KEY — FULL CATEGORY IMAGE FIX
   الصورة كاملة بدون قص
   ========================================================= */

section[data-testid="store-home-square-banners"]
.banner-entry,
section[data-testid="store-home-square-banners"]
.banner-entry.h-banner,
section[data-testid="store-home-square-banners"]
.banner-entry.h-lg-banner,
section[data-testid="store-home-square-banners"]
.banner-entry.has-overlay{

  width:100% !important;

  height:auto !important;
  min-height:0 !important;
  max-height:none !important;

  aspect-ratio:1 / 1 !important;

  /* الصورة كاملة */
  background-size:contain !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;

  border-radius:16px !important;

  overflow:hidden !important;
}


/* إلغاء الشريط الأبيض أسفل الصورة */
section[data-testid="store-home-square-banners"]
.banner-entry__text{
  display:none !important;
}


/* لا يوجد أي Overlay فوق الصورة */
section[data-testid="store-home-square-banners"]
.banner-entry::before,
section[data-testid="store-home-square-banners"]
.banner-entry::after{
  display:none !important;
}


/* =========================================================
   CLOUD KEY — CATEGORY SIZE FIX
   تكبير البطاقات مع الحفاظ على الصور
   ========================================================= */

/* نوسع مساحة التصنيفات */
section[data-testid="store-home-square-banners"]{
  width: min(calc(100% - 28px), 1180px) !important;
  max-width: 1180px !important;

  margin-left: auto !important;
  margin-right: auto !important;
}


/* 3 بطاقات أكبر */
section[data-testid="store-home-square-banners"] > .grid,
section[data-testid="store-home-square-banners"] > .grid.two-row{
  display: grid !important;

  grid-template-columns:
    repeat(3, minmax(0, 1fr)) !important;

  column-gap: 18px !important;
  row-gap: 20px !important;

  width: 100% !important;
  max-width: 1180px !important;

  margin: 0 auto !important;
}


/* البطاقة */
section[data-testid="store-home-square-banners"]
.banner-entry,
section[data-testid="store-home-square-banners"]
.banner-entry.h-banner,
section[data-testid="store-home-square-banners"]
.banner-entry.h-lg-banner{
  width: 100% !important;

  min-width: 0 !important;
  min-height: 0 !important;

  aspect-ratio: 1 / 1 !important;

  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;

  border-radius: 17px !important;
}


/* أربع بطاقات:
   3 فوق والرابعة بالنص */
section[data-testid="store-home-square-banners"]
.grid:has(> .banner-entry:nth-child(4):last-child)
> .banner-entry:nth-child(4){
  grid-column: 2 !important;
}


/* Hover بسيط */
@media (hover:hover){

  section[data-testid="store-home-square-banners"]
  .banner-entry:hover{
    transform: translateY(-5px) scale(1.008) !important;
  }

}


/* Tablet */
@media (max-width: 1000px){

  section[data-testid="store-home-square-banners"]{
    width: calc(100% - 24px) !important;
  }

}


/* Mobile */
@media (max-width: 767px){

  section[data-testid="store-home-square-banners"]{
    width: calc(100% - 18px) !important;
  }

  section[data-testid="store-home-square-banners"] > .grid,
  section[data-testid="store-home-square-banners"] > .grid.two-row{
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;

    column-gap: 10px !important;
    row-gap: 12px !important;
  }

  section[data-testid="store-home-square-banners"]
  .grid > .banner-entry{
    grid-column: auto !important;
  }

}

/* =========================================================
   CLOUD KEY — RESTORE LARGE CATEGORY CARDS
   يرجع حجم التصنيفات الكبير
   ========================================================= */

/* عرض قسم التصنيفات */
section[data-testid="store-home-square-banners"]{
  width:min(calc(100% - 28px),1180px) !important;
  max-width:1180px !important;

  margin-left:auto !important;
  margin-right:auto !important;
}


/* 3 بطاقات كبيرة بالصف */
section[data-testid="store-home-square-banners"] > .grid,
section[data-testid="store-home-square-banners"] > .grid.two-row{
  width:100% !important;
  max-width:1180px !important;

  display:grid !important;

  grid-template-columns:
    repeat(3,minmax(0,1fr)) !important;

  column-gap:20px !important;
  row-gap:20px !important;

  margin:0 auto !important;
}


/* البطاقة نفسها */
section[data-testid="store-home-square-banners"]
.banner-entry{
  width:100% !important;

  min-width:0 !important;
  max-width:none !important;

  aspect-ratio:1 / 1 !important;
}


/* إذا القسم فيه بطاقتين:
   نخليهم أكبر بدل الحجم الصغير الحالي */
section[data-testid="store-home-square-banners"]
.grid:has(> .banner-entry:nth-child(2):last-child){
  grid-template-columns:
    repeat(2,390px) !important;

  max-width:800px !important;

  justify-content:center !important;
}


/* بطاقة واحدة */
section[data-testid="store-home-square-banners"]
.grid:has(> .banner-entry:first-child:last-child){
  grid-template-columns:
    390px !important;

  justify-content:center !important;
}


/* 4 بطاقات:
   3 فوق والرابعة بالنص */
section[data-testid="store-home-square-banners"]
.grid:has(> .banner-entry:nth-child(4):last-child)
> .banner-entry:nth-child(4){
  grid-column:2 !important;
}


/* الجوال */
@media(max-width:767px){

  section[data-testid="store-home-square-banners"]{
    width:calc(100% - 18px) !important;
  }

  section[data-testid="store-home-square-banners"] > .grid,
  section[data-testid="store-home-square-banners"] > .grid.two-row,
  section[data-testid="store-home-square-banners"]
  .grid:has(> .banner-entry:nth-child(2):last-child){

    max-width:none !important;

    grid-template-columns:
      repeat(2,minmax(0,1fr)) !important;

    column-gap:10px !important;
    row-gap:12px !important;
  }

}

/* =========================================================
   CLOUD KEY — WISHLIST CLICK FIX
   ========================================================= */

.ck-header-action--wishlist{
  position:relative !important;

  cursor:pointer !important;

  overflow:visible !important;
}


.ck-header-action--wishlist
salla-wishlist-summary{
  display:flex !important;

  width:100% !important;
  height:100% !important;

  min-width:41px !important;
  min-height:41px !important;

  align-items:center !important;
  justify-content:center !important;

  cursor:pointer !important;

  pointer-events:auto !important;
}


.ck-header-action--wishlist *{
  pointer-events:auto !important;
}

/* ================================================================
   CLOUD KEY — PREMIUM NIGHT V1.3
   Dark-only refinement; original daytime theme remains untouched.
   Keep this block AFTER all existing Salla / Cloud Key CSS.
   ================================================================ */

/* --- Floating toggle. Positioned ABOVE the WhatsApp widget. --- */
.ck-theme-toggle {
  position: fixed;
  inset-inline: auto;
  right: 22px;
  left: auto;
  bottom: 104px;
  z-index: 2147482000;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid #c9dcf1;
  border-radius: 50%;
  background: #fff;
  color: #0872d0;
  box-shadow: 0 10px 26px rgba(12, 29, 51, .2), 0 2px 5px rgba(12, 29, 51, .1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .25s ease;
}
.ck-theme-toggle:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(12,29,51,.25); }
.ck-theme-toggle:active { transform: scale(.96); }
.ck-theme-toggle:focus-visible { outline: 3px solid #70bfff; outline-offset: 3px; }
.ck-theme-toggle__moon { display: block; }
.ck-theme-toggle__sun { display: none; }
html.ck-theme-dark .ck-theme-toggle {
  background: linear-gradient(150deg, #325b83, #203c5b) !important;
  color: #ffd477 !important;
  border-color: #7ca7d0 !important;
  box-shadow: 0 0 0 4px rgba(58,136,205,.14), 0 12px 25px rgba(0,0,0,.4) !important;
}
html.ck-theme-dark .ck-theme-toggle__moon { display: none; }
html.ck-theme-dark .ck-theme-toggle__sun { display: block; }

/* --- Controlled dark palette: greater contrast between layers. --- */
html.ck-theme-dark {
  color-scheme: dark;
  --ck-bg: #0a1220;
  --ck-bg-soft: #101d30;
  --ck-white: #17283d;
  --ck-text: #f5f9ff;
  --ck-text-2: #d0dded;
  --ck-muted: #a9bdd4;
  --ck-blue: #7ec6ff;
  --ck-blue-dark: #52b1fb;
  --ck-blue-soft: #284761;
  --ck-border: #37506c;
  --ck-border-blue: #5d95c9;
  --ck-shadow: 0 9px 25px rgba(0,0,0,.24);
  --ck-shadow-hover: 0 16px 30px rgba(0,0,0,.37);
  --color-primary: #7ec6ff;
  --color-primary-dark: #52b1fb;
  --color-primary-light: #a5d9ff;
  --color-primary-reverse: #0a1220;
  background: #0a1220 !important;
}
html.ck-theme-dark body,
html.ck-theme-dark body.theme-raed,
html.ck-theme-dark body#app {
  background: linear-gradient(180deg, #122238 0, #0b1525 310px, #0a1220 100%) !important;
  color: #f5f9ff !important;
}

/* --- Benefits and native shell: clear separation instead of one dark band. --- */
html.ck-theme-dark .ck-benefits {
  background: linear-gradient(100deg, #1d3853 0%, #254667 55%, #1d3853 100%) !important;
  border-bottom: 1px solid #466381 !important;
}
html.ck-theme-dark .ck-benefits__inner { min-height: 42px; }
html.ck-theme-dark .ck-benefit {
  color: #f0f7ff !important;
  border-inline-start-color: rgba(201,225,249,.23) !important;
  font-size: 12px;
  font-weight: 800;
}
html.ck-theme-dark .ck-benefit__icon { color: #88d5ff !important; font-size: 17px; }
html.ck-theme-dark [data-testid="store-header"],
html.ck-theme-dark #mainnav,
html.ck-theme-dark #mainnav > .inner,
html.ck-theme-dark .main-nav-container {
  background: #17283d !important;
  color: #f5f9ff !important;
  border-color: #354f6c !important;
}
html.ck-theme-dark .ck-header-main {
  background: #17283d !important;
  border-bottom: 1px solid #334a65 !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.15) !important;
}
html.ck-theme-dark .ck-header-main__inner { min-height: 84px; }
html.ck-theme-dark .ck-header-logo [data-testid="store-header-logo"] img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(255,255,255,.12)) !important;
  opacity: 1 !important;
  max-width: 165px !important;
  max-height: 67px !important;
}

/* User, cart and favorite buttons: visible rings and restrained shadows. */
html.ck-theme-dark .ck-header-actions { gap: 10px !important; }
html.ck-theme-dark .ck-header-action {
  background: #243c58 !important;
  color: #eef7ff !important;
  border: 1px solid #567694 !important;
  box-shadow: 0 3px 9px rgba(0,0,0,.14) !important;
}
html.ck-theme-dark .ck-header-action--cart {
  background: #2b4b6b !important;
  border-color: #6e9fc6 !important;
  min-height: 44px !important;
  padding-inline: 7px;
}
html.ck-theme-dark .ck-header-action:hover,
html.ck-theme-dark .ck-header-action:focus-within {
  background: #345b7d !important;
  border-color: #a0d8ff !important;
  box-shadow: 0 5px 15px rgba(0,0,0,.25) !important;
}
html.ck-theme-dark .ck-header-action salla-user-menu,
html.ck-theme-dark .ck-header-action salla-cart-summary,
html.ck-theme-dark .ck-header-action salla-wishlist-summary {
  color: #fff !important;
  --color-primary: #9cd8ff;
  --salla-text-color: #f4f9ff;
}
html.ck-theme-dark .ck-header-action--user [data-testid="store-header-user-menu"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
html.ck-theme-dark .ck-header-action--user img {
  max-width: 30px !important;
  max-height: 30px !important;
  object-fit: contain !important;
  border-radius: 50% !important;
}
html.ck-theme-dark .ck-header-action--user svg { max-width: 27px; max-height: 27px; }

/* Distinct search field and readable prompt / icon. */
html.ck-theme-dark .ck-header-search,
html.ck-theme-dark .ck-header-search [data-testid="store-header-search"] {
  color: #f5f9ff !important;
}
html.ck-theme-dark .ck-header-search salla-search {
  --salla-search-bg: #263f5b;
  --color-primary: #8ad1ff;
  color: #f5f9ff !important;
}
html.ck-theme-dark .ck-header-search input,
html.ck-theme-dark .ck-header-search input:focus {
  min-height: 48px !important;
  background: #273f5a !important;
  color: #f5f9ff !important;
  border: 1px solid #607d9e !important;
  border-radius: 999px !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.16), 0 1px 4px rgba(0,0,0,.1) !important;
}
html.ck-theme-dark .ck-header-search input:focus {
  background: #2e4b69 !important;
  border-color: #94d6ff !important;
  box-shadow: 0 0 0 4px rgba(126,198,255,.18) !important;
}
html.ck-theme-dark .ck-header-search input::placeholder { color: #d1dfef !important; opacity: 1; }
html.ck-theme-dark .ck-header-search svg,
html.ck-theme-dark .ck-header-search button { color: #d7eaff !important; }

/* Avoid the blank horizontal strip if Salla hasn't rendered any categories. */
.ck-category-navigation--empty { display: none !important; }
html.ck-theme-dark .ck-category-navigation {
  background: #1c3048 !important;
  border-bottom: 1px solid #395676 !important;
  box-shadow: 0 5px 12px rgba(0,0,0,.14) !important;
}
html.ck-theme-dark .ck-category-navigation__inner { min-height: 50px; }
html.ck-theme-dark .ck-category-navigation .main-menu > li > a {
  color: #eaf4ff !important;
  font-weight: 800 !important;
  font-size: 13px !important;
}
html.ck-theme-dark .ck-category-navigation .main-menu > li > a:hover,
html.ck-theme-dark .ck-category-navigation .main-menu > li > a:focus-visible {
  background: #2c506e !important;
  color: #a9e0ff !important;
}
html.ck-theme-dark .ck-category-navigation .main-menu > li:not(:last-child)::after { background: #42617f !important; }

/* --- Sections: panels don't fade into the page; banner artwork unfiltered. --- */
html.ck-theme-dark .s-block__title h2,
html.ck-theme-dark .s-block__title h3,
html.ck-theme-dark .s-slider-block__title h2,
html.ck-theme-dark .section-title {
  color: #f7faff !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}
html.ck-theme-dark .s-block__title p,
html.ck-theme-dark .s-slider-block__title p { color: #c2d2e5 !important; }
html.ck-theme-dark .s-block__title a,
html.ck-theme-dark .s-slider-block__title a,
html.ck-theme-dark .display-all-link { color: #97d9ff !important; }
html.ck-theme-dark [data-testid="store-home-fixed-banner"] .banner--fixed,
html.ck-theme-dark section[data-testid="store-home-square-banners"] .banner-entry {
  border-color: #35516d !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.25) !important;
}
html.ck-theme-dark section[data-testid="store-home-square-banners"] .banner-entry {
  background-color: #1a2b40 !important;
}
html.ck-theme-dark section[data-testid="store-home-square-banners"] .banner-entry.has-overlay .banner-entry__text {
  background: #1b2b40 !important;
  border-top-color: #36516b !important;
}
html.ck-theme-dark .swiper-button-next,
html.ck-theme-dark .swiper-button-prev,
html.ck-theme-dark .s-slider-next,
html.ck-theme-dark .s-slider-prev {
  background: #28445f !important;
  color: #fff !important;
  border: 1px solid #6887a8 !important;
  box-shadow: 0 5px 16px rgba(0,0,0,.27) !important;
}
html.ck-theme-dark .swiper-button-next:hover,
html.ck-theme-dark .swiper-button-prev:hover { background: #3a6688 !important; }
html.ck-theme-dark .swiper-pagination-bullet { background: #91a8bd !important; }
html.ck-theme-dark .swiper-pagination-bullet-active { background: #83cdff !important; }

/* --- Product cards. Contrast between image, body, price and CTA. --- */
html.ck-theme-dark .s-product-card-entry,
html.ck-theme-dark .product-card,
html.ck-theme-dark .product-entry,
html.ck-theme-dark .s-block--features__item,
html.ck-theme-dark .s-reviews-card,
html.ck-theme-dark .s-reviews-testimonial,
html.ck-theme-dark .s-review-card,
html.ck-theme-dark .testimonial,
html.ck-theme-dark .review-card,
html.ck-theme-dark .ck-faq details,
html.ck-theme-dark .faq-item,
html.ck-theme-dark .accordion-item {
  background: #192a40 !important;
  border: 1px solid #3b5673 !important;
  color: #f5f9ff !important;
  box-shadow: 0 8px 23px rgba(0,0,0,.25) !important;
}
html.ck-theme-dark .s-product-card-entry:hover,
html.ck-theme-dark .product-card:hover,
html.ck-theme-dark .product-entry:hover {
  border-color: #74b6e9 !important;
  box-shadow: 0 15px 31px rgba(0,0,0,.33) !important;
}
html.ck-theme-dark .s-product-card-image,
html.ck-theme-dark .product-entry__image { background: #233850 !important; }
html.ck-theme-dark .s-product-card-content-title,
html.ck-theme-dark .s-product-card-content-title a,
html.ck-theme-dark .s-product-card-title,
html.ck-theme-dark .product-entry__title,
html.ck-theme-dark .product-entry__title a,
html.ck-theme-dark .s-block--features__item h2,
html.ck-theme-dark .ck-faq summary,
html.ck-theme-dark .faq-question,
html.ck-theme-dark .accordion-header { color: #f7faff !important; }
html.ck-theme-dark .s-product-card-price,
html.ck-theme-dark .s-product-card-sale-price,
html.ck-theme-dark .product-entry__price,
html.ck-theme-dark .container--product-details [data-testid="store-product-price"] p {
  color: #90d3ff !important;
  font-weight: 900 !important;
}
html.ck-theme-dark .s-product-card-content-sub,
html.ck-theme-dark .s-block--features__item p,
html.ck-theme-dark .s-reviews-card p,
html.ck-theme-dark .s-reviews-testimonial p,
html.ck-theme-dark .s-review-card p,
html.ck-theme-dark .testimonial p,
html.ck-theme-dark .review-card p,
html.ck-theme-dark .ck-faq__answer,
html.ck-theme-dark .faq-answer,
html.ck-theme-dark .accordion-body,
html.ck-theme-dark .product__description,
html.ck-theme-dark .product__description p,
html.ck-theme-dark .product__description li { color: #d0dded !important; }
html.ck-theme-dark .s-product-card-entry .s-button-btn-primary,
html.ck-theme-dark .s-add-product-button-main,
html.ck-theme-dark .btn-primary,
html.ck-theme-dark .s-button-btn-primary {
  background: #315a7d !important;
  color: #fff !important;
  border: 1px solid #75b5e4 !important;
  font-weight: 800 !important;
}
html.ck-theme-dark .s-product-card-entry .s-button-btn-primary:hover,
html.ck-theme-dark .s-add-product-button-main:hover,
html.ck-theme-dark .btn-primary:hover,
html.ck-theme-dark .s-button-btn-primary:hover {
  background: #4786b4 !important;
  color: #fff !important;
  border-color: #aedfff !important;
}
html.ck-theme-dark .s-product-card-promotion-title {
  color: #ffd3da !important;
  background: #612e40 !important;
}

/* --- Inner panels: checkout/cart/account remain functional. --- */
html.ck-theme-dark .container--product-details .main-content,
html.ck-theme-dark .product-form,
html.ck-theme-dark .product-actions,
html.ck-theme-dark .product-summary,
html.ck-theme-dark .purchase-box,
html.ck-theme-dark .details-slider .swiper-slide,
html.ck-theme-dark .cart-item,
html.ck-theme-dark .cart-summary,
html.ck-theme-dark .cart-box,
html.ck-theme-dark .order-card,
html.ck-theme-dark .content--single-page,
html.ck-theme-dark .list-block,
html.ck-theme-dark .user-profile,
html.ck-theme-dark .account-sidebar,
html.ck-theme-dark footer,
html.ck-theme-dark .store-footer {
  background: #192a40 !important;
  color: #eef5ff !important;
  border-color: #3b5673 !important;
}
html.ck-theme-dark .container--product-details [data-testid="store-product-title"],
html.ck-theme-dark footer h3,
html.ck-theme-dark footer h4,
html.ck-theme-dark .store-footer h3,
html.ck-theme-dark .store-footer h4 { color: #f5f9ff !important; }
html.ck-theme-dark footer a,
html.ck-theme-dark .store-footer a { color: #d0deef !important; }
html.ck-theme-dark footer a:hover,
html.ck-theme-dark .store-footer a:hover { color: #9cdaff !important; }

/* Branded payment boxes retain readable light backgrounds. No iframes touched. */
html.ck-theme-dark .tamara-widget,
html.ck-theme-dark .tamara-product-widget,
html.ck-theme-dark .tabby-promo,
html.ck-theme-dark .payment-widget,
html.ck-theme-dark .installment-widget {
  background: #f8fafc !important;
  color: #17243a !important;
  border: 1px solid #d4e1ef !important;
  border-radius: 13px !important;
}

/* Inputs outside third-party payment iframes are dark and legible. */
html.ck-theme-dark body input:not([type="checkbox"]):not([type="radio"]),
html.ck-theme-dark body textarea,
html.ck-theme-dark body select {
  background: #243c57 !important;
  color: #f5f9ff !important;
  border: 1px solid #567795 !important;
}
html.ck-theme-dark body input:focus,
html.ck-theme-dark body textarea:focus,
html.ck-theme-dark body select:focus {
  background: #2d4c6a !important;
  border-color: #99d5ff !important;
  box-shadow: 0 0 0 4px rgba(126,198,255,.18) !important;
}
html.ck-theme-dark body input::placeholder,
html.ck-theme-dark body textarea::placeholder { color: #c0d2e4 !important; }
html.ck-theme-dark body label,
html.ck-theme-dark body .text-gray-500,
html.ck-theme-dark body .text-gray-600,
html.ck-theme-dark body .text-gray-700,
html.ck-theme-dark body .text-gray-800 { color: #d3e0f0 !important; }

@media (max-width: 900px) {
  html.ck-theme-dark .ck-benefit { font-size: 10px; }
  html.ck-theme-dark .ck-header-main__inner { min-height: 66px; }
  html.ck-theme-dark .ck-header-search input { min-height: 43px !important; }
  html.ck-theme-dark .ck-header-actions { gap: 5px !important; }
  html.ck-theme-dark .ck-header-logo [data-testid="store-header-logo"] img {
    max-width: 105px !important;
    max-height: 45px !important;
  }
}
@media (max-width: 767px) {
  .ck-theme-toggle {
    right: 14px;
    bottom: calc(139px + env(safe-area-inset-bottom, 0px));
    width: 49px;
    height: 49px;
  }
  html.ck-theme-dark .ck-header-action { border-color: #53728d !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ck-theme-toggle { transition: none !important; }
}