/* ============================
   Promo Bar
   ============================ */
.promo-bar { background: var(--off); padding: 12px 20px 0; }
.promo-bar-inner { max-width: 1320px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; background: #111; border-radius: var(--r); border-bottom: 2px solid rgba(232,80,10,0.5); }
.promo-bar-text { font-size: 15px; font-weight: 800; color: #fff; }
.promo-bar-btn { padding: 5px 16px; border-radius: 20px; color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; transition: opacity .2s; }
.promo-bar-btn:hover { opacity: .85; }
.promo-bar-img-wrap { display: block; max-width: 1320px; margin: 0 auto; }
.promo-bar-img { width: 100%; height: auto; display: block; border-radius: var(--r); }

/* ============================
   Container
   ============================ */
.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* ============================
   Section Base
   ============================ */
.section { padding: 40px 0 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 900; color: var(--navy); }
.section-title::before { content: ''; width: 4px; height: 22px; background: var(--orange); border-radius: 2px; display: block; }
.section-more { color: var(--orange); font-size: 13px; font-weight: 700; transition: color .2s; }
.section-more:hover { color: var(--navy); }
.section-cats { padding: 4px 0 0; }

/* ============================
   Hero Section
   ============================ */
.hero-section { background: var(--off); padding: 6px 20px 6px; }
.hero-slider { position: relative; overflow: hidden; width: 100%; max-width: 1320px; margin: 0 auto; height: 230px; border-radius: 12px; }
.hero-slide { display: none; background-size: cover; background-position: center; height: 230px; position: relative; }
.hero-slide.active { display: flex; align-items: center; }
.hero-default { background: linear-gradient(135deg, var(--navy) 0%, var(--navy3) 100%) !important; }
.slide-content { position: relative; z-index: 1; padding: 0 60px; max-width: 1320px; margin: 0 auto; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(232,80,10,0.15); color: var(--orange2); padding: 5px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 700; margin-bottom: 16px; border: 1px solid rgba(232,80,10,0.25); }
.slide-content h1 { font-size: 42px; font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 12px; max-width: 600px; }
.slide-content h1 span { color: var(--orange); }
.slide-content p { color: rgba(255,255,255,0.7); font-size: 15px; line-height: 1.8; margin-bottom: 24px; max-width: 500px; }
.hero-btns { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.btn-hero-primary { background: var(--orange); color: #fff; padding: 13px 28px; border-radius: var(--r); font-size: 14px; font-weight: 800; transition: all .2s; }
.btn-hero-primary:hover { background: #d44509; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,80,10,0.35); }
.btn-hero-secondary { background: rgba(255,255,255,0.1); color: #fff; padding: 13px 28px; border-radius: var(--r); font-size: 14px; font-weight: 700; border: 1.5px solid rgba(255,255,255,0.2); transition: all .2s; }
.btn-hero-secondary:hover { background: rgba(255,255,255,0.18); }
.hero-stats { display: flex; align-items: center; gap: 24px; }
.hero-stat .num { font-size: 22px; font-weight: 900; color: var(--orange2); }
.hero-stat .lbl { font-size: 11.5px; color: rgba(255,255,255,0.5); }
.hero-stat-sep { width: 1px; height: 36px; background: rgba(255,255,255,0.1); }
.slider-prev, .slider-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: none; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; display: flex; align-items: center; justify-content: center; transition: background .2s; z-index: 10; cursor: pointer; }
.slider-prev { right: 20px; }
.slider-next { left: 20px; }
.slider-prev:hover, .slider-next:hover { background: var(--orange); }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all .2s; }
.dot.active { background: var(--orange); width: 20px; border-radius: 4px; }

/* ============================
   Promo Section
   ============================ */
.promo-section { padding: 24px 0 0; }
.promo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.promo-card { border-radius: var(--rl); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.promo-card.green { background: linear-gradient(135deg,#16A34A,#22c55e); }
.promo-card.orange { background: linear-gradient(135deg,var(--orange),#f97316); }
.promo-card.navy { background: linear-gradient(135deg,var(--navy),var(--navy3)); }
.picon { font-size: 36px; opacity: .9; }
.ptext { flex: 1; }
.ptext h3 { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.ptext p { font-size: 12px; color: rgba(255,255,255,0.75); }
.pbtn { background: rgba(255,255,255,0.2); color: #fff; padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid rgba(255,255,255,0.3); transition: background .2s; }
.pbtn:hover { background: rgba(255,255,255,0.35); }

/* ============================
   Categories — دوائر بحواف gradient
   ============================ */
.cats-scroll { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.cats-scroll::-webkit-scrollbar { display: none; }

.cat-pill { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }

/* الحاوية الخارجية — gradient ring */
.cat-pill-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #f97316, #e8500a, #9333ea);
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* الدايرة الداخلية — تفصل الصورة عن الـ gradient */
.cat-pill-img-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-pill-img-inner img { width: 100%; height: 100%; object-fit: cover; }
.cat-pill-img-inner span { font-size: 36px; }

/* hover — gradient ملون */
.cat-pill:hover .cat-pill-img {
    background: linear-gradient(135deg, #9333ea, #e8500a, #f97316);
    transform: translateY(-3px);
}

.cat-pill-name { font-size: 13px; font-weight: 700; color: var(--text2); text-align: center; white-space: nowrap; transition: color .2s; }

.cat-pill:hover .cat-pill-name { color: var(--orange); }


/* Responsive */
@media (max-width: 768px) {
    .cat-pill-img { width: 68px; height: 68px; }
}
@media (max-width: 480px) {
    .cat-pill-img { width: 60px; height: 60px; }
}
/* ============================
   Products Grid
   ============================ */
/* ============================
   Scroll Section — أفقي مع أزرار
   ============================ */
.scroll-wrap {
    position: relative;
}
.products-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 16px;
    scrollbar-width: none;
    padding-bottom: 8px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}
.products-grid::-webkit-scrollbar { display: none; }
.products-grid > * {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 220px;
}
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1.5px solid var(--gray);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all .2s;
    color: var(--navy);
}
.scroll-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.scroll-btn.left  { left: -20px; }
.scroll-btn.right { right: -20px; }
.featured-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ============================
   Why Section
   ============================ */
.why-section { background: var(--navy); padding: 40px 0; margin-top: 40px; }
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.why-card { display: flex; align-items: center; gap: 14px; padding: 20px; background: rgba(255,255,255,0.05); border-radius: var(--rl); border: 1px solid rgba(255,255,255,0.08); transition: all .2s; }
.why-card:hover { background: rgba(232,80,10,0.12); border-color: rgba(232,80,10,0.3); }
.why-icon { width: 48px; height: 48px; background: var(--orange); border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.why-text h4 { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.why-text p { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.5; }
/* ============================
   الأقسام الديناميكية
   ============================ */
.dynamic-banner {
    display: block;
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 16px;
}
.dynamic-banner img {
    width: 100%;
    height: auto;
    display: block;
}
.dynamic-strip {
    border-radius: var(--r);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.dynamic-strip-text h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}
.dynamic-strip-text p {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    margin-top: 2px;
}
.dynamic-strip-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--r);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.dynamic-strip-btn:hover {
    background: rgba(255,255,255,0.3);
}
/* ============================
   قسم البراندات
   ============================ */
.brands-section { padding: 24px 0; }

.brands-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.brands-row::-webkit-scrollbar { display: none; }

.brand-card {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform .2s;
}
.brand-card:hover { transform: translateY(-3px); }

.brand-shine {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    background: rgba(255,255,255,0.15);
    border-radius: 10px 10px 50% 50%;
}

.brand-logo-img {
    max-height: 50px;
    max-width: 90px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

.brand-logo-text {
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
/* ============================
   الروبي ستور — home.css
   Mobile Responsive v3 — إضافة في نهاية الملف
   (احذف النسخة القديمة من home-mobile.css وحط دي بدلها)
   ============================ */

@media (max-width: 768px) {

    /* --- Container --- */
    .container { padding: 0 12px; }

    /* --- Section --- */
    .section { padding: 24px 0 0; }
    .section-title { font-size: 15px; }

    /* --- Hero --- */
    .hero-section { padding: 6px 12px; }
    .hero-slider { height: 190px; border-radius: 10px; }
    .hero-slide { height: 190px; }
    .slide-content { padding: 0 20px; }
    .hero-tag { font-size: 11px; padding: 4px 10px; margin-bottom: 8px; }
    .slide-content h1 { font-size: 20px; margin-bottom: 8px; }
    .slide-content p { display: none; }
    .hero-btns { margin-bottom: 0; gap: 8px; }
    .btn-hero-primary { padding: 9px 16px; font-size: 12px; }
    .btn-hero-secondary { display: none; }
    .hero-stats { display: none; }
    .slider-prev, .slider-next { width: 34px; height: 34px; font-size: 18px; }
    .slider-prev { right: 10px; }
    .slider-next { left: 10px; }

    /* --- Promo Cards --- */
    .promo-section { padding: 16px 0 0; }
    .promo-grid { grid-template-columns: 1fr; gap: 10px; }
    .promo-card { padding: 14px 16px; border-radius: var(--r); }
    .picon { font-size: 26px; }
    .ptext h3 { font-size: 14px; }
    .ptext p { font-size: 12px; }
    .pbtn { padding: 6px 12px; font-size: 11.5px; }

    /* --- Categories --- */
    .cats-scroll { gap: 12px; }
    .cat-pill-img { width: 68px; height: 68px; }
    .cat-pill-name { font-size: 12px; }

    /* ============================
       Products — Horizontal Scroll
       كل صف منتجات بيتسحب أفقياً
       ============================ */
    .products-grid,
    .featured-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 8px;
        scrollbar-width: none;
        /* نمسح الـ grid columns */
        grid-template-columns: unset;
    }

    .products-grid::-webkit-scrollbar,
    .featured-grid::-webkit-scrollbar { display: none; }

/* كل كارت منتج — عرض ثابت */
.products-grid > *,
.featured-grid > * {
    flex-shrink: 0;
    width: 175px;
}

    /* --- Dynamic Banner بين الأقسام --- */
    .dynamic-banner {
        margin: 16px 0 0;
        border-radius: var(--r);
        overflow: hidden;
        display: block;
    }
    .dynamic-banner img { width: 100%; display: block; }

    /* --- Dynamic Strip --- */
    .dynamic-strip {
        border-radius: var(--r);
        padding: 14px 16px;
        margin-bottom: 12px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .dynamic-strip-text h3 { font-size: 14px; }
    .dynamic-strip-text p { font-size: 12px; }
    .dynamic-strip-btn { font-size: 12px; padding: 6px 12px; white-space: nowrap; }

    /* --- Why Section --- */
    .why-section { padding: 24px 0; margin-top: 24px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .why-card { padding: 12px; gap: 10px; }
    .why-icon { width: 38px; height: 38px; font-size: 17px; }
    .why-text h4 { font-size: 13px; }
    .why-text p { font-size: 11px; }

    /* --- Brands --- */
    .brand-card { width: 95px; height: 62px; }
    .brand-logo-img { max-height: 38px; max-width: 70px; }
    .brand-logo-text { font-size: 12px; }
}

/* ============================
   Mobile صغير — 480px فأقل
   ============================ */
@media (max-width: 480px) {

    /* Hero أصغر */
    .hero-slider { height: 165px; }
    .hero-slide { height: 165px; }
    .slide-content h1 { font-size: 17px; }
    .btn-hero-primary { padding: 8px 14px; font-size: 11.5px; }

    /* كارت المنتج أصغر شوية */
    .products-grid > *,
    .featured-grid > * { width: 158px; }

    /* Why — عمود واحد */
    .why-grid { grid-template-columns: 1fr; }

    /* Promo */
    .promo-grid { gap: 8px; }

    /* Categories */
    .cat-pill-img { width: 60px; height: 60px; }
    .cat-pill-name { font-size: 11px; }
}
/* ============================
   Collections Grid — بطاقات الكوليكشن
   ============================ */
.section-collections { padding: 24px 0 0; }

/* Grid عادي — كل البطاقات متساوية */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Masonry — كبير وصغير زي الغزاوي */
.collections-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* البطاقة العريضة — تمتد عمودين */
/* wide بيشتغل في الاتنين */
.collections-grid .coll-card-wide,
.collections-masonry .coll-card-wide {
    grid-column: span 2;
}

/* ============================
   البطاقة نفسها
   ============================ */
.coll-card {
    position: relative;
    border-radius: var(--rl);
    overflow: hidden;
    aspect-ratio: 3/4;
    display: block;
    background: var(--gray);
    text-decoration: none;
}

.collections-masonry .coll-card-wide {
    aspect-ratio: 2/1;
}

.coll-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}

.coll-card:hover img {
    transform: scale(1.06);
}

/* ============================
   Overlay — النص فوق الصورة
   ============================ */
.coll-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
}

.coll-name {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}
/* ============================
   البطاقة الملونة — بدون صورة
   ============================ */
.coll-overlay-colored {
    background: none;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.coll-overlay-colored .coll-name {
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.25);
    padding: 8px 16px;
    border-radius: 8px;
}
/* ============================
   Responsive — تابلت
   ============================ */
@media (max-width: 1024px) {
    .collections-grid,
    .collections-masonry {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================
   Responsive — موبايل
   ============================ */
@media (max-width: 768px) {
    .collections-grid,
    .collections-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .collections-grid .coll-card-wide,
    .collections-masonry .coll-card-wide {
        grid-column: span 1;
    }

    .coll-card {
        aspect-ratio: 4/3;
    }
}