/* Maknoon Premium Storefront Polish — 2026-09-29
   Visual-only enhancement layer. It deliberately avoids order/payment/stock logic. */

:root{
  --mk-premium-ink:#201c16;
  --mk-premium-soft:#f7f2e8;
  --mk-premium-line:rgba(163,127,85,.18);
  --mk-premium-gold:#b88b4a;
  --mk-premium-gold-deep:#8f6a36;
  --mk-premium-success:#277b52;
  --mk-premium-danger:#b23a3a;
  --mk-premium-card-shadow:0 12px 34px rgba(64,48,27,.08);
  --mk-premium-card-shadow-hover:0 20px 48px rgba(64,48,27,.14);
}
body.dark-mode{
  --mk-premium-ink:#f7f3eb;
  --mk-premium-soft:#28231d;
  --mk-premium-line:rgba(212,175,55,.18);
  --mk-premium-card-shadow:0 12px 34px rgba(0,0,0,.28);
  --mk-premium-card-shadow-hover:0 20px 48px rgba(0,0,0,.38);
}

html{scroll-behavior:smooth}
body{
  letter-spacing:0;
  text-rendering:optimizeLegibility;
}
button,a,input,select,textarea{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:3px solid rgba(193,154,107,.28);
  outline-offset:3px;
}

/* Header */
body>header{
  min-height:82px;
  padding:10px clamp(12px,3vw,30px);
  border-radius:0;
  border-top:0;
  box-shadow:0 8px 30px rgba(34,28,19,.06);
}
body>header .logo-img{
  height:58px;
  max-width:150px;
}
body>header .header-actions{gap:8px}
body>header .auth-btn{
  min-height:42px;
  padding:8px 15px;
  border-width:1px;
  box-shadow:none;
}
#mk-language-toggle{
  background:rgba(193,154,107,.08);
  border-color:rgba(193,154,107,.22);
}
#theme-toggle{
  width:42px;
  min-width:42px;
  height:42px;
  display:grid;
  place-items:center;
}

/* Store assurance strip */
.mk-assurance-strip{
  max-width:1180px;
  margin:18px auto 10px;
  padding:0 20px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.mk-assurance-item{
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:10px 14px;
  background:color-mix(in srgb,var(--surface) 94%,var(--primary-gold) 6%);
  border:1px solid var(--mk-premium-line);
  border-radius:16px;
  color:var(--text-muted);
  font-size:13px;
  font-weight:700;
  text-align:center;
}
.mk-assurance-icon{
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:rgba(193,154,107,.12);
  color:var(--dark-gold);
  font-size:16px;
}
.mk-lang-en{display:none}
html[data-mk-customer-language="en"] .mk-lang-ar{display:none}
html[data-mk-customer-language="en"] .mk-lang-en{display:inline}

/* Hero */
.hero-slider{
  width:min(1440px,100%);
  height:clamp(250px,34vw,470px);
  margin:12px auto 34px;
  border-radius:0 0 30px 30px;
  box-shadow:none;
  background:var(--surface);
}
.hero-slide{overflow:hidden}
.hero-media{object-fit:cover}
.hero-content{
  width:min(680px,88%);
  padding:28px;
  border-radius:24px;
  background:rgba(20,18,15,.34);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  color:#fff;
  text-align:center;
  text-shadow:0 2px 12px rgba(0,0,0,.35);
  z-index:3;
}
.hero-content h2{
  color:#fff!important;
  margin:0 0 8px!important;
  font-size:clamp(30px,5vw,52px)!important;
  line-height:1.1;
}
.hero-content p{
  margin:0;
  font-size:clamp(15px,2vw,20px);
  font-weight:600;
}

/* Shared section rhythm */
.main-content{
  padding-bottom:120px;
}
.main-content>section,
.main-content>.offers-section,
.main-content>.reviews-section{
  width:min(1400px,calc(100% - 28px));
  margin-left:auto;
  margin-right:auto;
}
#mk-featured{
  padding:26px 0 34px!important;
  border-bottom:0!important;
}
#mk-featured h2,
.offers-header,
.reviews-header{
  position:relative;
  margin:0 0 18px!important;
  padding:0 4px 12px!important;
  color:var(--dark-gray)!important;
  font-size:clamp(22px,3vw,30px)!important;
  font-weight:900!important;
}
#mk-featured h2::after,
.offers-header::after,
.reviews-header::after{
  content:"";
  display:block;
  width:48px;
  height:3px;
  margin-top:9px;
  border-radius:99px;
  background:var(--gold-gradient);
}
html[data-mk-customer-language="en"] #mk-featured h2::after,
html[data-mk-customer-language="en"] .offers-header::after,
html[data-mk-customer-language="en"] .reviews-header::after{
  margin-left:0;
}

/* Search */
.search-container{
  max-width:760px;
  margin:8px auto 20px!important;
  padding:0 16px!important;
}
.search-input{
  min-height:56px;
  padding:14px 22px!important;
  border:1px solid var(--mk-premium-line)!important;
  border-radius:18px!important;
  box-shadow:0 8px 28px rgba(64,48,27,.05)!important;
  background:var(--surface)!important;
  font-size:16px!important;
}
.search-input:focus{
  transform:none!important;
  border-color:rgba(163,127,85,.55)!important;
  box-shadow:0 0 0 4px rgba(193,154,107,.10),0 12px 30px rgba(64,48,27,.07)!important;
}

/* Category filters */
.category-filters{
  width:min(1200px,100%);
  margin:0 auto 28px!important;
  padding:6px 18px 10px!important;
  gap:8px!important;
  scroll-padding-inline:18px;
}
.category-filters .filter-btn{
  min-height:42px;
  padding:9px 16px!important;
  border-radius:14px!important;
  box-shadow:none!important;
  border:1px solid var(--mk-premium-line)!important;
  background:var(--surface)!important;
  color:var(--text-muted)!important;
}
.category-filters .filter-btn.active{
  background:var(--dark-gray)!important;
  color:var(--bg-main)!important;
  border-color:var(--dark-gray)!important;
}
.category-filters .filter-btn:hover{
  transform:translateY(-1px);
  background:rgba(193,154,107,.10)!important;
  color:var(--dark-gray)!important;
}

/* Product grid & cards */
.products-grid{
  grid-template-columns:repeat(auto-fill,minmax(235px,1fr))!important;
  gap:18px!important;
  padding:4px 18px 48px!important;
}
.product-card,
.offer-card{
  overflow:hidden;
  border:1px solid var(--mk-premium-line)!important;
  border-radius:20px!important;
  box-shadow:var(--mk-premium-card-shadow)!important;
  background:var(--surface)!important;
}
.product-card:hover,
.offer-card:hover{
  transform:translateY(-3px)!important;
  box-shadow:var(--mk-premium-card-shadow-hover)!important;
}
.product-card .img-container,
.offer-card .img-container{
  height:auto!important;
  aspect-ratio:1/1;
  border-radius:0!important;
  background:var(--input-bg);
}
.product-card .img-container img,
.offer-card .img-container img{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#fff;
}
.product-info,
.offer-info{
  padding:15px!important;
  gap:4px;
}
.product-title,
.offer-title{
  min-height:48px;
  margin:0 0 6px!important;
  font-size:16px!important;
  line-height:1.5!important;
  font-weight:900!important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product-desc{
  color:var(--text-muted)!important;
  font-size:13px!important;
  line-height:1.6!important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product-card .add-btn,
.offer-card .add-btn{
  min-height:44px;
  padding:10px 13px!important;
  border-radius:13px!important;
  box-shadow:none!important;
  font-size:14px!important;
}
.product-card .filter-btn,
.offer-card .filter-btn{
  min-width:44px;
  min-height:44px;
  border-radius:13px!important;
  box-shadow:none!important;
}
.discount-badge,
.offer-badge{
  top:10px!important;
  right:10px!important;
  padding:5px 9px!important;
  border-radius:10px!important;
  font-size:11px!important;
  box-shadow:none!important;
}

/* Horizontal offer/review collections */
.offers-section,
.reviews-section{
  padding:22px 0 8px!important;
  margin-bottom:22px!important;
}
.offers-scroll-container,
.reviews-scroll-container{
  gap:14px!important;
  padding:5px 2px 18px!important;
}
.offer-card{min-width:230px!important;max-width:230px!important}
.review-card{
  border:1px solid var(--mk-premium-line)!important;
  border-radius:18px!important;
  box-shadow:none!important;
  background:var(--surface)!important;
}

/* Combo storefront — override the injected legacy CSS with stronger selectors */
#mk-combo-section{
  width:min(1400px,calc(100% - 28px));
  margin:22px auto 34px!important;
  padding:24px!important;
  border:1px solid var(--mk-premium-line)!important;
  border-radius:24px!important;
  background:
    radial-gradient(circle at 8% 0%,rgba(212,175,55,.12),transparent 30%),
    var(--surface)!important;
  box-shadow:0 16px 42px rgba(64,48,27,.06);
}
#mk-combo-section .mk-combo-head{
  align-items:center!important;
  margin-bottom:20px!important;
}
#mk-combo-section h2{
  color:var(--dark-gray)!important;
  font-size:clamp(24px,3vw,31px)!important;
  letter-spacing:-.2px;
}
#mk-combo-section .mk-combo-subtitle{
  margin-top:5px!important;
  font-size:14px!important;
}
#mk-combo-section #mk-combo-grid{
  grid-template-columns:repeat(auto-fit,minmax(390px,1fr))!important;
  gap:18px!important;
}
#mk-combo-section .mk-combo-card{
  grid-template-columns:190px minmax(0,1fr)!important;
  border:1px solid var(--mk-premium-line)!important;
  border-radius:20px!important;
  box-shadow:var(--mk-premium-card-shadow)!important;
  transition:transform .2s ease,box-shadow .2s ease;
}
#mk-combo-section .mk-combo-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--mk-premium-card-shadow-hover)!important;
}
#mk-combo-section .mk-combo-media{
  position:relative!important;
  display:block!important;
  min-height:270px!important;
  overflow:hidden!important;
  background:#fff!important;
}
#mk-combo-section .mk-combo-slide{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  background:#fff!important;
  opacity:0!important;
}
#mk-combo-section .mk-combo-slide.is-active{
  opacity:1!important;
}
#mk-combo-section .mk-combo-slide-btn{
  width:40px!important;
  height:40px!important;
  min-height:40px!important;
  padding:0!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.94)!important;
  color:var(--mk-premium-gold-deep)!important;
  border:1px solid rgba(184,139,74,.24)!important;
  box-shadow:0 8px 24px rgba(0,0,0,.13)!important;
}
#mk-combo-section .mk-combo-slide-counter{
  background:rgba(30,27,23,.68)!important;
  color:#fff!important;
}
#mk-combo-section .mk-combo-info{padding:18px!important}
#mk-combo-section .mk-combo-badge{
  border:1px solid rgba(193,154,107,.16);
  background:rgba(193,154,107,.10)!important;
}
#mk-combo-section .mk-combo-saving{
  background:rgba(39,123,82,.10)!important;
  border-color:rgba(39,123,82,.14)!important;
  color:var(--mk-premium-success)!important;
}
#mk-combo-section .mk-combo-name{
  color:var(--dark-gray)!important;
  font-size:19px!important;
}
#mk-combo-section .mk-combo-chip{
  border:1px solid color-mix(in srgb,var(--border-color) 78%,transparent);
  background:var(--input-bg)!important;
}
#mk-combo-section .mk-combo-now{
  color:var(--dark-gray)!important;
  font-size:24px!important;
}
#mk-combo-section .mk-combo-add{
  min-height:46px!important;
  border-radius:13px!important;
  background:var(--dark-gray)!important;
  color:var(--bg-main)!important;
  box-shadow:none!important;
}
#mk-combo-section .mk-combo-add:hover:not(:disabled){opacity:.88}

/* Catalog status/skeleton */
#mk-catalog-status{
  width:min(760px,calc(100% - 32px));
  margin:0 auto 14px;
  color:var(--text-muted);
  text-align:center;
}
.skeleton-grid{gap:18px!important}
.skeleton-card{
  border-radius:20px!important;
  overflow:hidden;
  border:1px solid var(--mk-premium-line);
  box-shadow:none!important;
}

/* Modals and checkout */
.modal-overlay{
  background:rgba(20,18,15,.58)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
}
.custom-modal{
  border:1px solid var(--mk-premium-line)!important;
  box-shadow:0 24px 80px rgba(0,0,0,.20)!important;
}
.custom-modal .close-btn{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
}
.checkout-section{
  border-radius:18px!important;
}
.order-card{
  border:1px solid var(--mk-premium-line)!important;
  border-radius:18px!important;
  background:var(--surface)!important;
}
.whatsapp-checkout-btn{
  min-height:52px;
  border-radius:14px!important;
  box-shadow:none!important;
}

/* Floating actions */
.floating-buttons-container{
  left:18px!important;
  bottom:18px!important;
  gap:10px!important;
}
.float-btn{
  width:54px!important;
  height:54px!important;
  border:1px solid rgba(255,255,255,.25);
  box-shadow:0 10px 26px rgba(0,0,0,.15)!important;
}

/* Keep English alignment coherent */
html[data-mk-customer-language="en"] .offers-header,
html[data-mk-customer-language="en"] .reviews-header{
  text-align:left!important;
  padding-left:4px!important;
  padding-right:4px!important;
}
html[data-mk-customer-language="en"] .mk-assurance-item{direction:ltr}

/* Dark-mode finishing */
body.dark-mode .hero-content{background:rgba(0,0,0,.46)}
body.dark-mode #mk-combo-section{
  background:
    radial-gradient(circle at 8% 0%,rgba(212,175,55,.10),transparent 30%),
    var(--surface)!important;
}

/* Tablet/mobile */
@media(max-width:900px){
  body>header{
    min-height:72px;
    padding:8px 12px;
  }
  body>header .logo-img{height:48px;max-width:115px}
  body>header .header-actions{gap:6px}
  body>header .auth-btn{padding:7px 10px;font-size:12px}
  #mk-language-toggle{font-size:12px!important}
  .mk-assurance-strip{margin-top:12px}
  #mk-combo-section #mk-combo-grid{grid-template-columns:1fr!important}
}

@media(max-width:700px){
  .mk-assurance-strip{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    padding:0 12px 5px;
    gap:8px;
    scrollbar-width:none;
  }
  .mk-assurance-strip::-webkit-scrollbar{display:none}
  .mk-assurance-item{
    flex:0 0 78%;
    min-height:48px;
    justify-content:flex-start;
    text-align:start;
    scroll-snap-align:start;
  }
  .hero-slider{
    margin-top:6px!important;
    margin-bottom:20px!important;
    border-radius:0 0 20px 20px;
    aspect-ratio:16/10!important;
    height:auto!important;
  }
  .hero-content{
    padding:18px;
    border-radius:18px;
  }
  .search-container{margin-bottom:14px!important}
  .category-filters{
    justify-content:flex-start!important;
    margin-bottom:18px!important;
  }
  .products-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    padding:2px 10px 32px!important;
  }
  .product-info,
  .offer-info{padding:11px!important}
  .product-title,
  .offer-title{
    min-height:42px;
    font-size:14px!important;
    line-height:1.45!important;
  }
  .product-desc{
    font-size:12px!important;
    -webkit-line-clamp:2;
  }
  .product-card .add-btn,
  .offer-card .add-btn{
    min-height:42px;
    font-size:12.5px!important;
    padding:8px 9px!important;
  }
  .product-card .filter-btn,
  .offer-card .filter-btn{
    min-width:42px;
    min-height:42px;
  }
  #mk-combo-section{
    width:calc(100% - 20px)!important;
    margin:14px auto 24px!important;
    padding:15px 12px!important;
    border-radius:20px!important;
  }
  #mk-combo-section #mk-combo-grid{
    display:grid!important;
    overflow:visible!important;
    grid-template-columns:1fr!important;
    padding:0!important;
  }
  #mk-combo-section .mk-combo-card{
    width:100%!important;
    flex:initial!important;
    display:flex!important;
    flex-direction:column!important;
    border-radius:18px!important;
  }
  #mk-combo-section .mk-combo-media{
    width:100%!important;
    height:230px!important;
    min-height:230px!important;
    border-bottom:1px solid var(--mk-premium-line)!important;
  }
  #mk-combo-section .mk-combo-slide{
    min-height:0!important;
    object-fit:contain!important;
  }
  #mk-combo-section .mk-combo-info{padding:13px!important}
  #mk-combo-section .mk-combo-name{
    font-size:16px!important;
    margin-bottom:7px!important;
  }
  #mk-combo-section .mk-combo-items{
    display:flex!important;
    gap:4px!important;
    margin-bottom:8px!important;
  }
  #mk-combo-section .mk-combo-chip{
    font-size:10px!important;
    padding:4px 6px!important;
  }
  #mk-combo-section .mk-combo-now{font-size:19px!important}
  #mk-combo-section .mk-combo-add{
    min-height:43px!important;
    font-size:13px!important;
  }
  .custom-modal{
    width:100%!important;
    max-width:none!important;
    max-height:92vh!important;
    border-radius:22px 22px 0 0!important;
    padding:22px 16px calc(18px + env(safe-area-inset-bottom))!important;
  }
  .floating-buttons-container{
    left:12px!important;
    bottom:calc(12px + env(safe-area-inset-bottom))!important;
  }
  .float-btn{width:50px!important;height:50px!important}
}

@media(max-width:390px){
  body>header .logo-img{height:43px;max-width:95px}
  body>header .auth-btn{padding:6px 8px;font-size:11px}
  #theme-toggle{width:38px;min-width:38px;height:38px}
  .products-grid{gap:8px!important;padding-inline:8px!important}
  .product-info,.offer-info{padding:9px!important}
  #mk-combo-section .mk-combo-media{
    width:100%!important;
    height:210px!important;
    min-height:210px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
  }
  .hero-slide.active .hero-media{transform:none!important}
}


/* Progressive rendering */
.product-card,.offer-card,.review-card{
  content-visibility:auto;
  contain-intrinsic-size:420px 280px;
}
#customer-reviews-section,
footer{
  content-visibility:auto;
  contain-intrinsic-size:720px;
}
.mk-catalog-more{
  display:flex;
  justify-content:center;
  padding:8px 16px 28px;
}
.mk-catalog-more .filter-btn{
  min-width:180px;
  min-height:46px;
}
