/* ==============================================================
   1. حل مشكلة خلفية المتجر (Body Background)
   - كتابة الرابط بدون علامات تنصيص لتجنب فلترة لوحة سلة
   - تفعيل خاصية Cover لتمتد الصورة وتظهر بوضوح تام
   ============================================================== */
html,
body,
body#app,
.theme-raed {
    background-color: #f8f8f6 !important;
    background-image: url(https://cdn.files.salla.network/other/679551717/9782fd1c-7e24-4cfc-acdc-58dcefe1cb29-original.png) !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-attachment: fixed !important;
    background-size: cover !important;
}

/* تفريغ خلفيات كافة الحاويات ليظهر الباك جراوند عبر كامل الصفحة */
#app,
.app-inner,
main,
#main-content,
.s-blocks-wrapper {
    background: transparent !important;
    background-color: transparent !important;
}


/* ==============================================================
   2. الفوتر باللون الأزرق الخاص ببراند المتجر (#0c63aa)
   - تغيير خلفية الفوتر والطبقة الداخلية والشريط السفلي للحقوق
   - جعل النصوص والروابط والأيقونات باللون الأبيض والدرجات المضيئة
   ============================================================== */
.store-footer,
.footer-is-light .store-footer,
.store-footer__inner,
.footer-is-light .store-footer .store-footer__inner {
    background-color: #0c63aa !important;
    background: #0c63aa !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* تلوين جميع العناوين والنصوص داخل الفوتر بالأبيض الناصع */
.store-footer h3,
.store-footer p,
.store-footer span,
.store-footer a,
.store-footer .ql-direction-rtl,
.store-footer strong {
    color: #ffffff !important;
}

/* روابط الفوتر وتأثير التحويم (Hover) */
.store-footer a:hover {
    color: #d8ffff !important;
    opacity: 0.9 !important;
}

/* شريط الحقوق السفلي (Copyright) */
.store-footer .copyright-text,
.store-footer .copyright-text p,
.store-footer .copyright-text a {
    color: #e0f2fe !important;
}

/* أيقونات التواصل الاجتماعي داخل الفوتر */
.store-footer .social-link {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}
.store-footer .social-link:hover {
    background-color: #ffffff !important;
    color: #0c63aa !important;
}

/* خط الفصل بين سكشن الفوتر وسكشن الحقوق */
.store-footer__inner {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}


/* ==============================================================
   3. البانر الأول في الواجهة (Full Width بعرض الشاشة بالكامل)
   ============================================================== */
section[component-id="2118223046"],
body.index section[data-testid="store-home-fixed-banner"]:first-of-type {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-top: 0 !important;
}

section[component-id="2118223046"] > .container,
body.index section[data-testid="store-home-fixed-banner"]:first-of-type > .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

section[component-id="2118223046"] .banner,
body.index section[data-testid="store-home-fixed-banner"]:first-of-type .banner {
    border-radius: 0 !important;
    width: 100% !important;
    display: block !important;
}

section[component-id="2118223046"] picture,
section[component-id="2118223046"] img,
body.index section[data-testid="store-home-fixed-banner"]:first-of-type picture,
body.index section[data-testid="store-home-fixed-banner"]:first-of-type img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
}


/* ==============================================================
   4. سكشن التصنيفات (Category / Square Photos)
   - ديسكتوب: 4 بجانب بعض
   - موبايل: 2 وبأسفلهم 2 مع Inset
   ============================================================== */
section[component-id="889670461"],
section[data-testid="store-home-square-photos"] {
    margin-top: 2rem !important;
    margin-bottom: 2.5rem !important;
}

/* ديسكتوب: 4 أعمدة في صف واحد */
@media (min-width: 768px) {
    section[component-id="889670461"] .square-photos-grid,
    section[data-testid="store-home-square-photos"] .square-photos-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 1.5rem !important;
    }
}

/* موبايل: 2x2 */
@media (max-width: 767px) {
    section[component-id="889670461"] .square-photos-grid,
    section[data-testid="store-home-square-photos"] .square-photos-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.85rem !important;
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
    }
}

/* كروت التصنيفات وتأثير Inset */
section[component-id="889670461"] .banner-entry.square-photos,
section[data-testid="store-home-square-photos"] .banner-entry.square-photos {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    position: relative !important;
    background-color: #ffffff !important;
    border: 1.5px solid rgba(12, 99, 170, 0.16) !important;
    box-shadow: inset 0 2px 8px rgba(12, 99, 170, 0.12),
                inset 0 -2px 6px rgba(0, 0, 0, 0.05),
                0 4px 15px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.35s ease, 
                border-color 0.35s ease !important;
}

@media (hover: hover) {
    section[component-id="889670461"] .banner-entry.square-photos:hover,
    section[data-testid="store-home-square-photos"] .banner-entry.square-photos:hover {
        transform: translateY(-5px) scale(1.02) !important;
        border-color: #0c63aa !important;
        box-shadow: inset 0 0 0 2px #0c63aa,
                    0 12px 24px -4px rgba(12, 99, 170, 0.22) !important;
    }
}

section[component-id="889670461"] .banner-entry.square-photos .lazy__bg,
section[data-testid="store-home-square-photos"] .banner-entry.square-photos .lazy__bg {
    background-size: contain !important;
    background-position: center !important;
    transition: transform 0.4s ease !important;
}

section[component-id="889670461"] .banner-entry.square-photos:hover .lazy__bg,
section[data-testid="store-home-square-photos"] .banner-entry.square-photos:hover .lazy__bg {
    transform: scale(1.04) !important;
}


/* ==============================================================
   5. لمسات جمالية إضافية بألوان البراند
   ============================================================== */
::selection {
    background-color: #0c63aa !important;
    color: #ffffff !important;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #0c63aa;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #003d84;
}

salla-product-card,
.product-entry {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    border-radius: 14px !important;
}
salla-product-card:hover,
.product-entry:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 22px -4px rgba(12, 99, 170, 0.14) !important;
}

.s-button-primary,
.btn--primary {
    background: linear-gradient(135deg, #0c63aa 0%, #004b8d 100%) !important;
    box-shadow: 0 4px 14px rgba(12, 99, 170, 0.25) !important;
    border: none !important;
}
/* ===================================================
   توسيع سكشن الفيديو ليأخذ كامل عرض الشاشة (Full Width)
   =================================================== */

/* 1. استهداف السكشن المحدد فقط عبر component-id أو data-testid لمنع التأثير على باقي السكاشن */
section[component-id="1607210184"],
section[data-testid="store-home-youtube"] {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: hidden;
}

/* 2. إزالة قيود العرض والهوامش من حاوية الـ container الداخلية */
section[component-id="1607210184"] .container,
section[data-testid="store-home-youtube"] .container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* 3. جعل مشغل الفيديو و غلاف الفيديو بعرض 100% وبدون حواف دائرية إن وجدت */
section[component-id="1607210184"] .videoWrapper,
section[component-id="1607210184"] lite-youtube {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 0 !important;
}

/* ===================================================
   في حال كان القالب يضع السكشن داخل حاوية رئيسية محددة العرض:
   (كود Breakout لفرض العرض الكامل حتى لو كان محصوراً داخل div رئيسي)
   =================================================== */

#main-content > section.s-block.s-block--bundle-marquee, #main-content > section.s-block.s-block--video.mt-16 {
    margin: 0 !important;
}

/* ===== Whale Roastery - Hero video banner (home) ===== */
body.index #main-content > section.s-block--video.wh-hero{position:relative;display:block;width:100%;max-width:none;margin:0 !important;padding:0 !important;aspect-ratio:800/435;min-height:0;max-height:88vh;overflow:hidden;background:#140c08 center/cover no-repeat}
.wh-hero__v{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.wh-hero__v iframe{position:absolute;top:50%;left:50%;border:0;max-width:none;transform:translate(-50%,-50%) scale(1.2)}
.wh-hero__shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.4),rgba(0,0,0,.28) 45%,rgba(0,0,0,.62))}
.wh-hero__badge{position:absolute;top:4%;left:3.5%;width:clamp(86px,12.5vw,190px);height:auto;filter:brightness(0) invert(1)}
.wh-hero__txt{position:absolute;left:0;right:0;bottom:7%;margin:0;padding:0 20px;text-align:center;color:#fff;font-weight:500;font-size:clamp(17px,2.1vw,32px);line-height:1.6;text-shadow:0 1px 12px rgba(0,0,0,.45)}
/* wh-hero mobile: show the whole video (same ratio as desktop), smaller badge and text */
@media (max-width:767px){
  .wh-hero__badge{width:64px;top:6%;left:4%}
  .wh-hero__txt{font-size:14px;line-height:1.55;bottom:6%;padding:0 12px}
}

/* ===== Whale Roastery - trust features + installments (home) ===== */
#main-content > section.wh-trust{padding:0 !important;margin:26px 0 !important;background:none !important}
.wh-trust .wh-wrap{max-width:1240px;margin:0 auto;padding:0 16px}
.wh-feat{display:grid;grid-template-columns:repeat(5,1fr);background:#fff;border:1px solid rgba(23,52,102,.08);border-radius:22px;box-shadow:0 10px 30px rgba(23,52,102,.06);overflow:hidden}
.wh-feat__i{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:26px 14px;border-inline-start:1px solid rgba(23,52,102,.08)}
.wh-feat__i:first-child{border-inline-start:0}
.wh-feat__ic{width:56px;height:56px;border-radius:50%;background:#eaf1fa;color:#173466;display:flex;align-items:center;justify-content:center;margin-bottom:6px}
.wh-feat__ic svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.wh-feat__t{font-size:17px;font-weight:700;color:#173466;margin:0;line-height:1.4}
.wh-feat__d{font-size:13.5px;color:#5d6b82;margin:0;line-height:1.6}
.wh-pay{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(120deg,#173466 0%,#0c63aa 100%);border-radius:22px;padding:34px 44px;color:#fff;position:relative;overflow:hidden}
.wh-pay:before{content:"";position:absolute;inset-inline-end:-70px;top:-90px;width:270px;height:270px;border-radius:50%;background:rgba(255,255,255,.07)}
.wh-pay__x{position:relative}
.wh-pay__k{font-size:13px;opacity:.8;margin:0 0 6px;color:#fff}
.wh-pay__t{font-size:clamp(24px,3vw,36px);font-weight:700;margin:0;line-height:1.3;color:#fff}
.wh-pay__d{font-size:15px;opacity:.9;margin:8px 0 0;color:#fff}
.wh-pay__l{display:flex;gap:14px;flex-shrink:0;position:relative}
.wh-pay__c{background:#fff;border-radius:14px;height:64px;min-width:132px;padding:10px 20px;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.wh-pay__c img{height:38px;width:auto;max-width:112px;object-fit:contain}
@media (max-width:900px){
  .wh-feat{grid-template-columns:repeat(2,1fr)}
  .wh-feat__i{border-inline-start:0;border-top:1px solid rgba(23,52,102,.08);padding:18px 10px}
  .wh-feat__i:nth-child(-n+2){border-top:0}
  .wh-feat__i:nth-child(even){border-inline-start:1px solid rgba(23,52,102,.08)}
  .wh-feat__i:last-child{grid-column:1/-1}
  .wh-feat__ic{width:48px;height:48px}
  .wh-feat__t{font-size:15.5px}
  .wh-pay{flex-direction:column;text-align:center;padding:26px 18px}
  .wh-pay__c{height:54px;min-width:112px}
  .wh-pay__c img{height:32px}
}