/* ==========================================================================
   home.css — الصفحة الرئيسية (index.php)
   يعتمد على متغيرات header.php: --accent --text-primary --text-secondary --text-muted (+ Cairo)
   نفس اللغة البصرية لصفحة المتجر (shop.css): بطاقات زجاجية 18px، أزرار 40px، شارات حبّية.
   ========================================================================== */

.home {
    --hm-radius: 18px;
    --hm-surface: rgba(15, 19, 26, 0.62);
    --hm-surface-solid: rgba(15, 19, 26, 0.96);
    --hm-border: rgba(255, 255, 255, 0.07);
    --hm-border-strong: rgba(255, 255, 255, 0.12);
    --hm-accent: var(--accent, #ffcc00);
    --hm-accent-soft: rgba(255, 204, 0, 0.10);
    --hm-accent-line: rgba(255, 204, 0, 0.30);
    --hm-accent-glow: var(--accent-glow, rgba(255, 204, 0, 0.35));
    --hm-danger: #ef4444;
    --hm-muted: var(--text-muted, #64748b);
    --hm-muted-light: #94a3b8;
    --hm-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    --hm-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --hm-gap: 16px;

    max-width: 1280px; margin: 0 auto; padding: 20px 24px 48px; position: relative;
    font-family: 'Cairo', sans-serif; color: var(--text-primary, #f8fafc); box-sizing: border-box;
}
.home *, .home *::before, .home *::after { box-sizing: border-box; }
.home-section { margin: 0 0 44px; }
.home-section:last-child { margin-bottom: 0; }

/* ---------- الهيرو ---------- */
.hero-classic {
    position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center;
    margin: 0 0 24px; padding: 56px 40px 50px; border-radius: 24px;
    background: radial-gradient(circle at 100% 0%, rgba(255, 204, 0, 0.10) 0%, transparent 45%),
                radial-gradient(circle at 0% 100%, rgba(255, 204, 0, 0.04) 0%, transparent 50%),
                linear-gradient(135deg, rgba(15, 19, 26, 0.72) 0%, rgba(8, 11, 17, 0.92) 100%);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--hm-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.hero-classic::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; pointer-events: none;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.018) 0%, transparent 60%);
    animation: hm-rotate 24s linear infinite;
}
@keyframes hm-rotate { to { transform: rotate(360deg); } }
.hero-classic > * { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 16px; margin-bottom: 18px;
    border-radius: 999px; background: var(--hm-accent-soft); border: 1px solid var(--hm-accent-line);
    color: var(--hm-accent); font-size: 13px; font-weight: 800; letter-spacing: 0.2px; white-space: nowrap; max-width: 100%;
}
.hero-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--hm-accent); box-shadow: 0 0 10px var(--hm-accent); flex: 0 0 auto; }
.hero-badge span { overflow: hidden; text-overflow: ellipsis; }
.hero-classic h1, .hero-classic h2 { margin: 0 0 14px; max-width: 820px; color: #fff; font-size: clamp(28px, 4.4vw, 44px); font-weight: 900; line-height: 1.3; letter-spacing: -0.2px; }
.hero-classic .highlight { background: linear-gradient(135deg, var(--hm-accent) 0%, #ffa751 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-classic p { margin: 0 auto 26px; max-width: 640px; color: var(--text-secondary, #cbd5e1); font-size: 16px; line-height: 1.85; }
.hero-buttons { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; width: 100%; }
.hero-buttons .btn-primary, .hero-buttons .btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 26px;
    border-radius: 12px; border: 1px solid transparent; font: 800 15px/1 'Cairo', sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .2s var(--hm-ease), box-shadow .25s var(--hm-ease), background .25s, color .25s, border-color .25s;
}
.hero-buttons .btn-primary { background: linear-gradient(135deg, var(--hm-accent) 0%, #e6b800 100%); color: #0b0f19 !important; box-shadow: 0 8px 20px rgba(255, 204, 0, 0.22); }
.hero-buttons .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 204, 0, 0.34); color: #000 !important; }
.hero-buttons .btn-outline { background: rgba(255, 255, 255, 0.04); color: #fff !important; border-color: var(--hm-border-strong); font-weight: 700; }
.hero-buttons .btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--hm-accent-line); color: var(--hm-accent) !important; transform: translateY(-2px); }
.hero-buttons i { font-size: 13px; }

/* ---------- شريط الثقة ---------- */
.trust-badges-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--hm-gap); margin: 0 0 44px; }
.trust-badge-card {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: start;
    background: var(--hm-surface); border: 1px solid var(--hm-border); border-radius: var(--hm-radius);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--hm-shadow);
    transition: transform .3s var(--hm-ease), border-color .3s, box-shadow .3s var(--hm-ease);
}
.trust-badge-card:hover { transform: translateY(-3px); border-color: var(--hm-accent-line); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 204, 0, 0.08); }
.trust-badge-icon {
    width: 48px; height: 48px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center;
    background: var(--hm-accent-soft); border: 1px solid var(--hm-accent-line); color: var(--hm-accent); font-size: 20px;
    transition: background .25s, color .25s, transform .3s var(--hm-ease), box-shadow .3s;
}
.trust-badge-card:hover .trust-badge-icon { background: var(--hm-accent); color: #000; transform: scale(1.05) rotate(4deg); box-shadow: 0 6px 16px rgba(255, 204, 0, 0.3); }
.trust-badge-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.trust-badge-info h4 { margin: 0; font-size: 15.5px; font-weight: 800; color: #fff; line-height: 1.35; }
.trust-badge-info p { margin: 0; font-size: 12.5px; color: var(--hm-muted-light); line-height: 1.5; }

/* ---------- رؤوس الأقسام ---------- */
.section-header { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0 0 22px; }
.section-header h2 { position: relative; margin: 0 0 12px; padding-bottom: 14px; color: #fff; font-size: clamp(22px, 3.2vw, 28px); font-weight: 900; line-height: 1.3; letter-spacing: -0.2px; }
.section-header h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 64px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--hm-accent) 50%, transparent); }
.section-header p { margin: 0; max-width: 560px; color: var(--hm-muted-light); font-size: 14px; line-height: 1.7; }

/* ---------- شريط الأقسام / الماركات (تمرير أفقي بأزرار) ---------- */
.categories-section { background: transparent; border: none; box-shadow: none; padding: 0; }
.categories-carousel-wrapper { position: relative; padding: 0 30px; }
.categories-carousel {
    display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: var(--hm-gap); align-items: stretch;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 12px 40px 22px; scroll-padding-inline: 40px;
    scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
}
.categories-carousel::-webkit-scrollbar { display: none; }
.categories-carousel.is-centered { justify-content: center; }
/* تلاشٍ ناعم على الحواف عندما يكون الشريط قابلاً للتمرير — الحشوة الجانبية 40px تساوي عرض التلاشي فلا تُغطَّى أول بطاقة */
.categories-carousel:not(.is-centered) {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.category-card-carousel {
    position: relative; overflow: hidden; display: flex; flex-direction: column; flex: 0 0 auto; width: 168px; scroll-snap-align: start;
    padding: 20px 14px 18px; text-align: center;
    background: var(--hm-surface); border: 1px solid var(--hm-border); border-radius: var(--hm-radius);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--hm-shadow);
    transition: transform .35s var(--hm-ease), border-color .3s, box-shadow .35s var(--hm-ease), background .3s;
}
.category-card-carousel::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.08), transparent); transition: left .6s ease;
}
.category-card-carousel:hover::before { left: 100%; }
.category-card-carousel:hover, .category-card-carousel.active {
    transform: translateY(-5px); border-color: rgba(255, 204, 0, 0.35);
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.10) 0%, rgba(15, 19, 26, 0.8) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 204, 0, 0.08);
}
.main-cat-content { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; color: #fff; text-decoration: none; outline: none; }
.main-cat-content:focus-visible .category-icon-wrapper { box-shadow: 0 0 0 3px var(--hm-accent-soft), 0 0 0 1px var(--hm-accent); }
.category-icon-wrapper {
    width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
    background: var(--hm-accent-soft); border: 1px solid var(--hm-accent-line);
    transition: background .3s, transform .35s var(--hm-ease), box-shadow .3s;
}
.category-icon { font-size: 26px; color: var(--hm-accent); transition: color .3s; }
.category-card-carousel:hover .category-icon-wrapper, .category-card-carousel.active .category-icon-wrapper { background: var(--hm-accent); transform: scale(1.06) rotate(4deg); box-shadow: 0 8px 20px rgba(255, 204, 0, 0.3); }
.category-card-carousel:hover .category-icon, .category-card-carousel.active .category-icon { color: #000; }
.category-card-carousel h4 {
    margin: 0; color: #f8fafc; font-size: 14px; font-weight: 800; line-height: 1.4; transition: color .25s;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; width: 100%;
}
.category-card-carousel:hover h4 { color: var(--hm-accent); }
.home-empty { width: 100%; margin: 0; padding: 28px 16px; text-align: center; color: var(--hm-muted-light); font-size: 14px; border: 1px dashed var(--hm-border-strong); border-radius: var(--hm-radius); background: var(--hm-surface); }

/* أزرار التمرير (حاسوب فقط؛ تختفي عند طرف الشريط) */
.cat-nav-btn, .prod-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hm-border-strong); cursor: pointer;
    background: rgba(15, 19, 26, 0.85); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: background .2s, color .2s, border-color .2s, transform .2s var(--hm-ease), opacity .25s, visibility .25s, box-shadow .2s;
}
.cat-nav-btn:hover, .prod-nav-btn:hover { background: var(--hm-accent); color: #000; border-color: var(--hm-accent); transform: translateY(-50%) scale(1.06); box-shadow: 0 0 20px var(--hm-accent-glow); }
.cat-nav-btn:focus-visible, .prod-nav-btn:focus-visible { outline: 2px solid var(--hm-accent); outline-offset: 2px; }
.cat-nav-btn { top: calc(50% - 5px); }
.cat-prev { right: -8px; } .cat-next { left: -8px; }
.cat-nav-btn.is-hidden, .prod-nav-btn.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.prod-nav-btn { top: 42%; }
.prod-prev { right: -18px; } .prod-next { left: -18px; }

/* ---------- كروت المنتجات / المقالات ---------- */
.products-carousel-wrapper { position: relative; padding: 0 12px; }
.products-carousel {
    display: flex; align-items: stretch; gap: var(--hm-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 6px 2px 20px; -ms-overflow-style: none; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.products-carousel::-webkit-scrollbar { display: none; }
.product-card {
    position: relative; display: flex; flex-direction: column; min-width: 0; scroll-snap-align: start;
    flex: 0 0 calc((100% - (var(--hm-gap) * 4)) / 5);
    background: var(--hm-surface); border: 1px solid var(--hm-border); border-radius: var(--hm-radius); overflow: hidden;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transition: transform .35s var(--hm-ease), border-color .3s, box-shadow .35s var(--hm-ease);
}
.product-card:hover { transform: translateY(-5px); border-color: rgba(255, 204, 0, 0.28); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 204, 0, 0.08); }
.products-carousel--posts .product-card { flex-basis: calc((100% - (var(--hm-gap) * 3)) / 4); }

.sale-badge {
    position: absolute; top: 10px; inset-inline-start: 10px; z-index: 3; pointer-events: none;
    display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px;
    background: rgba(239, 68, 68, 0.92); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; white-space: nowrap;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sale-badge i { font-size: 10px; }

.product-img-box { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: rgba(0, 0, 0, 0.25); border-bottom: 1px solid var(--hm-border); }
.product-img-box > a { display: block; width: 100%; height: 100%; }
.product-img-box img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 10px; transition: transform .7s var(--hm-ease); }
.product-card:hover .product-img-box img { transform: scale(1.06); }
.img-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: rgba(255, 255, 255, 0.10); font-size: 42px; }
.post-card .product-img-box { aspect-ratio: 16 / 10; }
.post-card .product-img-box img { object-fit: cover; padding: 0; }

.product-info { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; padding: 12px 14px 14px; }
.product-info > a { color: inherit; text-decoration: none; }
.product-info h3 {
    margin: 0; color: #fff; font-size: 15px; font-weight: 800; line-height: 1.5; min-height: calc(15px * 1.5 * 2); height: auto;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; transition: color .2s;
}
.product-card:hover .product-info h3 { color: var(--hm-accent); }
.product-meta-footer { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: auto; padding-top: 4px; }
.price-container { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; min-height: 28px; }
.product-price { color: #fff; font-size: 18px; font-weight: 800; line-height: 1.3; }
.old-price { order: 2; color: var(--hm-muted-light); font-size: 13px; font-weight: 600; text-decoration: line-through; }
.old-price ~ .product-price { color: var(--hm-accent); }
.price-container.is-na .product-price, .price-container .muted { color: var(--hm-muted); font-size: 14px; font-weight: 700; }
.post-date { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; color: var(--hm-muted-light); font-size: 12.5px; font-weight: 600; }
.post-date i { color: var(--hm-accent); font-size: 12px; }

.btn-order-now, .btn-outline-accent {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 40px; padding: 0 12px;
    border-radius: 12px; border: 1px solid var(--hm-accent-line); background: var(--hm-accent-soft); color: var(--hm-accent) !important;
    font: 700 14px/1 'Cairo', sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: transform .2s var(--hm-ease), box-shadow .25s var(--hm-ease), background .25s, color .25s, border-color .25s;
}
.btn-order-now i, .btn-outline-accent i { font-size: 12px; }
.btn-order-now:hover, .btn-outline-accent:hover { background: linear-gradient(135deg, var(--hm-accent) 0%, #e6b800 100%); border-color: transparent; color: #000 !important; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(255, 204, 0, 0.28); }
.btn-order-now:focus-visible, .btn-outline-accent:focus-visible { outline: 2px solid var(--hm-accent); outline-offset: 2px; }

/* ---------- الاستجابة ---------- */
@media (max-width: 1200px) {
    .home { padding: 18px 20px 44px; }
    .product-card { flex-basis: calc((100% - (var(--hm-gap) * 3)) / 4); }
    .products-carousel--posts .product-card { flex-basis: calc((100% - (var(--hm-gap) * 2)) / 3); }
}
@media (max-width: 992px) {
    .product-card { flex-basis: calc((100% - (var(--hm-gap) * 2)) / 3); }
    .products-carousel--posts .product-card { flex-basis: calc((100% - var(--hm-gap)) / 2); }
}
@media (max-width: 768px) {
    .home { --hm-gap: 12px; padding: 12px 16px 40px; }
    .home-section { margin-bottom: 34px; }
    .hero-classic { margin-bottom: 16px; padding: 38px 20px 30px; border-radius: 20px; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .hero-badge { height: 30px; font-size: 12px; padding: 0 12px 0 14px; margin-bottom: 14px; }
    .hero-classic h1, .hero-classic h2 { font-size: 26px; margin-bottom: 12px; }
    .hero-classic p { font-size: 14.5px; line-height: 1.8; margin-bottom: 20px; }
    .hero-buttons { gap: 10px; }
    .hero-buttons .btn-primary, .hero-buttons .btn-outline { width: 100%; height: 46px; font-size: 14.5px; }
    .trust-badges-bar { grid-template-columns: 1fr; gap: 10px; margin-bottom: 32px; }
    .trust-badge-card { padding: 14px 16px; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--hm-surface-solid); }
    .trust-badge-card:hover { transform: none; }
    .trust-badge-icon { width: 44px; height: 44px; font-size: 18px; }
    .section-header { margin-bottom: 16px; }
    .section-header h2 { padding-bottom: 12px; margin-bottom: 10px; }
    .section-header p { font-size: 13.5px; }

    /* الشرائط: تمرير باللمس، بلا أزرار، تمتد إلى حافة الشاشة */
    .prod-nav-btn, .cat-nav-btn { display: none; }
    .categories-carousel-wrapper { padding: 0; }
    .categories-carousel { margin: 0 -16px; padding: 8px 20px 16px; scroll-padding-inline: 20px; }
    .categories-carousel:not(.is-centered) {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 20px), transparent);
        mask-image: linear-gradient(to right, transparent, #000 20px, #000 calc(100% - 20px), transparent);
    }
    .category-card-carousel { width: 140px; padding: 16px 10px 14px; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--hm-surface-solid); border-radius: 16px; }
    .category-card-carousel:hover { transform: none; }
    .category-icon-wrapper { width: 58px; height: 58px; }
    .category-icon { font-size: 22px; }
    .category-card-carousel h4 { font-size: 13.5px; }

    .products-carousel-wrapper { padding: 0; }
    .products-carousel { padding: 4px 0 14px; }
    .product-card, .products-carousel--posts .product-card { flex-basis: calc((100% - var(--hm-gap)) / 2); border-radius: 14px; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--hm-surface-solid); }
    .product-card:hover { transform: none; }
    .product-info { padding: 10px 10px 12px; gap: 5px; }
    .product-info h3 { font-size: 13.5px; min-height: calc(13.5px * 1.5 * 2); }
    .product-price { font-size: 16px; }
    .old-price { font-size: 12px; }
    .sale-badge { top: 8px; inset-inline-start: 8px; height: 22px; padding: 0 7px; font-size: 10px; }
    .img-placeholder { font-size: 34px; }
    .btn-order-now, .btn-outline-accent { height: 38px; font-size: 13px; padding: 0 8px; }
    .product-meta-footer { gap: 8px; }
}
@media (max-width: 400px) {
    .home { --hm-gap: 10px; padding: 10px 12px 32px; }
    .hero-classic { padding: 32px 16px 26px; }
    .hero-badge { font-size: 11.5px; }
    .categories-carousel { margin: 0 -12px; padding: 8px 16px 14px; scroll-padding-inline: 16px; }
    .categories-carousel:not(.is-centered) {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
        mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    }
    .category-card-carousel { width: 128px; }
    .product-info { padding: 9px 9px 10px; }
    .product-info h3 { font-size: 13px; min-height: calc(13px * 1.5 * 2); }
    .product-price { font-size: 15px; }
    .price-container { min-height: 24px; }
    .btn-order-now, .btn-outline-accent { height: 36px; font-size: 12.5px; }
}
@media (max-width: 340px) {
    .product-card, .products-carousel--posts .product-card { flex-basis: 100%; }
}

/* ---------- تقليل الحركة ---------- */
@media (prefers-reduced-motion: reduce) {
    .home *, .home *::before, .home *::after { transition: none !important; animation: none !important; }
    .categories-carousel, .products-carousel { scroll-behavior: auto; }
}

/* ==========================================================================
   v3 — منشئ الصفحة الرئيسية: بطاقات المتجر داخل الأشرطة + رؤوس أقسام بصف + ضمانات حتى 4
   ========================================================================== */
.home { --shp-header-h: 80px; --shp-r: 18px; --shp-r-sm: 12px; --shp-surface: rgba(15, 19, 26, 0.62); --shp-surface-2: rgba(255, 255, 255, 0.035); --shp-surface-3: rgba(255, 255, 255, 0.07); --shp-border: rgba(255, 255, 255, 0.08); --shp-border-strong: rgba(255, 255, 255, 0.14); --shp-accent: var(--accent, #ffcc00); --shp-accent-soft: rgba(255, 204, 0, 0.10); --shp-accent-line: rgba(255, 204, 0, 0.38); --shp-blue: #38bdf8; --shp-blue-soft: rgba(56, 189, 248, 0.12); --shp-blue-line: rgba(56, 189, 248, 0.4); --shp-green: #10b981; --shp-red: #ef4444; --shp-text: var(--text-primary, #f8fafc); --shp-text-2: var(--text-secondary, #cbd5e1); --shp-muted: var(--text-muted, #7c8798); --shp-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.section-header--row { flex-direction: row; align-items: flex-end; justify-content: space-between; text-align: start; gap: 12px; }
.section-header--row .section-header__text { min-width: 0; }
.section-header--row h2 { padding-bottom: 10px; }
.section-header--row h2::after { left: 0; transform: none; }
.section-header--row p { max-width: none; }
.home-more { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hm-border-strong); color: var(--hm-muted-light); font-size: 13px; font-weight: 700; text-decoration: none; transition: color .2s, border-color .2s, background .2s; margin-bottom: 14px; white-space: nowrap; }
.home-more:hover { color: #000; background: var(--hm-accent); border-color: var(--hm-accent); }
.home-more i { font-size: 11px; }
/* بطاقات المتجر (shp-card) داخل الشريط الأفقي */
.home-cards { padding: 6px 2px 20px; }
.home-cards .shp-card { flex: 0 0 calc((100% - (var(--hm-gap) * 3)) / 4); scroll-snap-align: start; min-width: 0; }
.home-cards .shp-card.shp-reveal { opacity: 1; transform: none; }
.home-cards .shp-card__cat, .home-cards .shp-card__brand { pointer-events: none; }
.home-strip .prod-nav-btn { top: 38%; }
.trust-badges-bar--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trust-badges-bar--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.trust-badges-bar--4 .trust-badge-card { padding: 14px 16px; gap: 12px; }
.trust-badge-icon i.fa-brands { font-size: 22px; }
@media (max-width: 1200px) { .home-cards .shp-card { flex-basis: calc((100% - (var(--hm-gap) * 2)) / 3); } }
@media (max-width: 768px) {
    .home-cards .shp-card { flex-basis: calc((100% - var(--hm-gap)) / 2); }
    .section-header--row { align-items: center; }
    .section-header--row p { display: none; }
    .home-more { padding: 6px 11px; font-size: 12px; margin-bottom: 8px; }
    .trust-badges-bar--4 { grid-template-columns: 1fr 1fr; gap: 10px; }
    .trust-badges-bar--4 .trust-badge-card { flex-direction: column; text-align: center; padding: 12px 10px; }
    .trust-badges-bar--4 .trust-badge-info p { display: none; }
}
@media (max-width: 400px) { .home-cards .shp-card { flex-basis: calc((100% - var(--hm-gap)) / 2); } }
/* ==========================================================================
   v3.1 — صور الأقسام / شعارات الماركات + عدّاد المنتجات، آراء الزبائن، شريط الأرقام، دعوة واتساب
   ========================================================================== */
.category-icon-wrapper--img { overflow: hidden; padding: 0; background: #fff !important; border-color: rgba(255, 255, 255, .18) !important; }
.category-icon-wrapper--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-icon-wrapper--img.is-logo img { object-fit: contain; padding: 6px; }
.category-icon-wrapper--img.is-product img { object-fit: contain; padding: 4px; }
.category-card-carousel:hover .category-icon-wrapper--img { transform: scale(1.04); }
.category-icon-wrapper--letter span { font-size: 24px; font-weight: 900; color: var(--hm-accent); line-height: 1; }
.category-card-carousel:hover .category-icon-wrapper--letter span { color: #000; }
.category-card-carousel .cat-count { display: block; margin-top: 4px; font-size: 11px; color: var(--hm-muted-light); font-weight: 700; }
.category-card-carousel:hover .cat-count { color: #000; }
.category-card-carousel:hover .category-icon-wrapper--img { background: #fff !important; }
.categories-carousel--brands .category-card-carousel h4 { font-size: 13px; }

/* آراء الزبائن */
.products-carousel--reviews { padding: 6px 2px 20px; }
.review-card { flex: 0 0 calc((100% - (var(--hm-gap) * 2)) / 3); scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 14px; background: var(--hm-surface); border: 1px solid var(--hm-border); border-radius: var(--hm-radius); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); position: relative; min-width: 0; }
.review-card::before { content: '\201D'; position: absolute; top: 6px; left: 18px; font-size: 64px; line-height: 1; color: rgba(255, 204, 0, .18); font-family: serif; }
.review-card__stars { color: var(--hm-accent); font-size: 13px; display: flex; gap: 2px; }
.review-card__text { margin: 0; color: var(--text-secondary, #cbd5e1); font-size: 14px; line-height: 1.8; flex: 1; }
.review-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--hm-border); }
.review-card__who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.review-card__who b { display: block; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-card__who small { font-size: 11px; color: var(--hm-muted-light); }
.review-card__avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--hm-accent), #ffa751); color: #000; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.review-card__product { display: inline-flex; align-items: center; gap: 6px; max-width: 46%; min-width: 0; padding: 4px 8px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--hm-border); color: var(--hm-muted-light); font-size: 11px; text-decoration: none; transition: color .2s, border-color .2s; }
.review-card__product:hover { color: #fff; border-color: var(--hm-accent-line); }
.review-card__product img { width: 24px; height: 24px; border-radius: 50%; object-fit: contain; background: #fff; flex-shrink: 0; }
.review-card__product span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 992px) { .review-card { flex-basis: calc((100% - var(--hm-gap)) / 2); } }
@media (max-width: 640px) { .review-card { flex-basis: 86%; } }

/* شريط الأرقام */
.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--hm-gap); }
.stats-strip--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-strip--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 12px; text-align: center; background: linear-gradient(160deg, rgba(255, 204, 0, .08), rgba(15, 19, 26, .6)); border: 1px solid var(--hm-accent-line); border-radius: var(--hm-radius); }
.stat-card__icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 204, 0, .12); color: var(--hm-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 4px; }
.stat-card__value { font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-card__value::after { content: '+'; color: var(--hm-accent); font-size: .7em; margin-inline-start: 2px; }
.stat-card__label { font-size: 13px; color: var(--hm-muted-light); font-weight: 700; }
@media (max-width: 768px) { .stats-strip, .stats-strip--3 { grid-template-columns: 1fr 1fr; gap: 10px; } .stat-card { padding: 14px 8px; } .stat-card__icon { width: 36px; height: 36px; font-size: 15px; } }

/* دعوة واتساب */
.cta-box { display: flex; align-items: center; gap: 18px; padding: 26px 28px; border-radius: var(--hm-radius); background: linear-gradient(135deg, rgba(37, 211, 102, .14), rgba(15, 19, 26, .7)); border: 1px solid rgba(37, 211, 102, .35); box-shadow: var(--hm-shadow); }
.cta-box__icon { width: 64px; height: 64px; border-radius: 18px; background: #25d366; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 34px; flex-shrink: 0; box-shadow: 0 10px 24px rgba(37, 211, 102, .35); }
.cta-box__text { flex: 1; min-width: 0; }
.cta-box__text h2 { margin: 0 0 6px; color: #fff; font-size: clamp(18px, 2.4vw, 24px); font-weight: 900; }
.cta-box__text p { margin: 0; color: var(--text-secondary, #cbd5e1); font-size: 14px; line-height: 1.7; }
.cta-box__btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: #25d366; color: #fff !important; font-weight: 900; font-size: 15px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.cta-box__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 211, 102, .4); }
@media (max-width: 768px) { .cta-box { flex-direction: column; text-align: center; padding: 20px 16px; gap: 12px; } .cta-box__btn { width: 100%; justify-content: center; } }
/* إصلاح: نافذة النظرة السريعة (#shp_qv) ثابتة وتغطي الشاشة — يجب إخفاؤها فعلاً عندما تكون [hidden] خارج صفحة المتجر */
#shp_qv[hidden], #shp_toasts[hidden], .home [hidden] { display: none !important; }