/* assets/css/home.css - هوية بصريات أحمدي الطبية الواضحة والفاخرة */

:root {
    --ink-4k: #0F172A;
    --navy-900: #0F172A;
    --navy-800: #1E293B;
    --navy-700: #334155;

    --sky-main: #0284C7;
    --sky-deep: #0369A1;
    --sky-bright: #0EA5E9;
    --sky-block-top: #E0F2FE;
    --sky-block-bottom: #F0F9FF;
    --sky-border: #7DD3FC;

    --mint-main: #16A34A;
    --mint-deep: #15803D;
    --mint-soft: #DCFCE7;
    --mint-border: #86EFAC;

    --gold-main: #D97706;
    --gold-deep: #B45309;
    --gold-soft: #FEF3C7;
    --gold-border: #FCD34D;

    --offer-orange: #EA580C;
    --offer-amber: #F59E0B;
    --offer-cream: #FFFBEB;

    --bg-white: #FFFFFF;
    --bg-slate: #F1F5F9;
    --card-border: #CBD5E1;
    --card-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    --card-shadow-hover: 0 16px 34px rgba(2, 132, 199, 0.14);
    --sale-red: #DC2626;
}

/* ----------------------------------------------------------------
   خطوط حادة ونقية بدون توهج أو تشويش (Luxury Optical Typography)
---------------------------------------------------------------- */
html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
    background-color: var(--bg-white);
    color: var(--navy-900);
}

h1, h2, h3, h4, h5, h6,
.section-title,
.bundle-heading,
.product-card-title,
.bento-title,
.feature-card-heading,
.cat-tile-name,
.product-price-final,
.bundle-price-num {
    color: var(--ink-4k);
    text-shadow: none;
    letter-spacing: -0.01em;
}

.hero-display-title,
.sec-block-navy .section-title {
    text-shadow: none;
}


.tabular-nums {
    font-variant-numeric: tabular-nums;
}

.full-cover-link {
    position: absolute;
    inset: 0;
    z-index: 12;
    border-radius: inherit;
    text-decoration: none;
    cursor: pointer;
}
.full-cover-link:focus-visible {
    outline: 3px solid var(--sky-main);
    outline-offset: 2px;
}

.sec-block-white {
    background-color: var(--bg-white);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}
.sec-block-slate {
    background-color: var(--bg-slate);
}
.sec-block-sky {
    background: linear-gradient(180deg, var(--sky-block-top) 0%, var(--sky-block-bottom) 100%);
    border-top: 2px solid var(--sky-border);
    border-bottom: 2px solid var(--sky-border);
}
/* قسم العروض والباقات الذهبي البرتقالي المميز */
.sec-block-bundle-offer {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 52%, #fffbeb 100%);
    border-top: 2.5px solid #f59e0b;
    border-bottom: 2.5px solid #f59e0b;
}
.sec-block-navy {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    border-top: 3px solid var(--sky-main);
    border-bottom: 3px solid var(--sky-main);
    color: #ffffff;
}
.sec-block-flash {
    background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
    border-top: 2px solid #fecaca;
    border-bottom: 2px solid #fecaca;
}

.section-announcement-strip {
    background-color: var(--sky-main);
    color: #ffffff;
}
.section-announcement-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    color: var(--ink-4k) !important;
    text-shadow: none;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 2px 12px;
    border-radius: 999px;
    text-decoration: none;
}

.perf-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 340px;
}

/* ----------------------------------------------------------------
   شريط المزايا واضح التباين أسفل البانر الرئيسي
---------------------------------------------------------------- */
.editorial-trust-bar {
    background: var(--bg-white);
    border: 1px solid var(--card-border);
    border-top: 3px solid var(--sky-main);
    border-radius: 14px;
    padding: 13px 16px;
    box-shadow: var(--card-shadow);
}
.trust-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--ink-4k);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}
.trust-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    flex-shrink: 0;
    background: #e0f2fe;
    color: var(--sky-deep);
}
.trust-icon-badge.is-mint {
    background: var(--mint-soft);
    color: var(--mint-deep);
}
.trust-icon-badge.is-gold {
    background: var(--gold-soft);
    color: var(--gold-deep);
}
@media (max-width: 767.98px) {
    .editorial-trust-bar {
        padding: 10px 8px;
        border-radius: 12px;
    }
    .trust-cell {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        font-size: 0.72rem;
        line-height: 1.3;
    }
    .trust-icon-badge {
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }
}

/* ----------------------------------------------------------------
   نظام التمرير الأفقي للموبايل (Swipe Mode)
---------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .row.swipe-mobile {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 6px;
        touch-action: pan-x pan-y;
    }
    .row.swipe-mobile::-webkit-scrollbar {
        display: none;
    }
    .row.swipe-mobile > [class*="col-"] {
        flex: 0 0 80%;
        max-width: 80%;
        scroll-snap-align: start;
    }
    .row.swipe-mobile.swipe-splits > [class*="col-"] {
        flex: 0 0 72%;
        max-width: 72%;
    }
    .row.swipe-mobile.swipe-bundles > [class*="col-"] {
        flex: 0 0 75%;
        max-width: 75%;
    }
    .row.swipe-mobile.swipe-cats > [class*="col-"] {
        flex: 0 0 28%;
        max-width: 28%;
        min-width: 86px;
    }
    .row.swipe-mobile.swipe-cards > [class*="col-"] {
        flex: 0 0 72%;
        max-width: 72%;
    }
    .row.swipe-mobile.swipe-brands > [class*="col-"] {
        flex: 0 0 46%;
        max-width: 46%;
    }
    .row.swipe-mobile.swipe-products > [class*="col-"] {
        flex: 0 0 56%;
        max-width: 56%;
    }
}

/* ----------------------------------------------------------------
   1. الواجهة الرئيسية (High-Contrast Navy & Sky Storefront Hero)
---------------------------------------------------------------- */
.hero-editorial-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--navy-900);
    border: 1px solid var(--navy-800);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-editorial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.hero-editorial-card.is-image-only {
    background: var(--bg-white);
    border-color: var(--card-border);
}
.hero-editorial-card.is-image-only img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.hero-photo-stage {
    min-height: 310px;
    display: flex;
    align-items: center;
    position: relative;
}
.hero-photo-stage img {
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-editorial-card:hover .hero-photo-stage img {
    transform: scale(1.02);
}
.hero-photo-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(270deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.55) 55%, rgba(15, 23, 42, 0.1) 100%);
}

.hero-studio-navy {
    background: linear-gradient(135deg, var(--navy-900) 0%, #1e3a5f 100%);
    border-bottom: 4px solid var(--sky-main);
    min-height: 270px;
    display: flex;
    align-items: center;
}

.hero-kicker-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: var(--sky-main);
    padding: 5px 14px;
    border-radius: 999px;
}

.hero-display-title {
    font-weight: 900;
    font-size: clamp(1.4rem, 2.8vw, 2.28rem);
    line-height: 1.32;
    color: #ffffff;
    margin-bottom: 10px;
}

.hero-display-sub {
    font-weight: 500;
    font-size: clamp(0.92rem, 1.35vw, 1.06rem);
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.btn-editorial-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--sky-main);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 11px 26px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 18px rgba(2, 132, 199, 0.35);
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.hero-editorial-card:hover .btn-editorial-primary {
    background: #0ea5e9;
}

.hero-studio-frame {
    width: 245px;
    height: 195px;
    border-radius: 18px;
    background: #ffffff;
    border: 3px solid var(--sky-border);
    padding: 8px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-studio-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

@media (max-width: 767.98px) {
    .hero-editorial-card {
        border-radius: 16px;
    }
    .hero-editorial-card.is-image-only img {
        max-height: 220px;
    }
    .hero-photo-stage {
        min-height: 205px;
    }
    .hero-studio-navy {
        min-height: auto;
    }
    .hero-display-title {
        font-size: 1.28rem;
        margin-bottom: 6px;
    }
    .hero-display-sub {
        font-size: 0.85rem;
        margin-bottom: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .btn-editorial-primary {
        font-size: 0.86rem;
        padding: 9px 20px;
        border-radius: 10px;
    }
}

/* ----------------------------------------------------------------
   2. بطاقات العروض المقسومة (صور كاملة بدون قصّ + تباين واضح)
---------------------------------------------------------------- */
.bento-split-card {
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--card-border);
    border-top: 4px solid var(--sky-main);
    border-radius: 18px;
    padding: 18px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.bento-split-card.accent-mint { border-top-color: var(--mint-main); }
.bento-split-card.accent-gold { border-top-color: var(--gold-main); }
.bento-split-card.accent-navy { border-top-color: var(--navy-900); }

.bento-split-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.bento-split-card.has-photo {
    border: none;
    color: #ffffff;
    min-height: 195px;
}
.bento-split-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.5s ease;
}
.bento-split-card:hover .bento-split-photo {
    transform: scale(1.03);
}
.bento-split-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.88) 100%);
}

.bento-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    min-width: 0;
}

.bento-kicker {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #ffffff;
    background: var(--sky-main);
    padding: 3px 11px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.bento-kicker.is-mint { background: var(--mint-main); }
.bento-kicker.is-gold { background: var(--gold-main); }
.bento-kicker.is-navy { background: var(--navy-900); }

.bento-title {
    font-size: clamp(1.02rem, 1.55vw, 1.24rem);
    font-weight: 900;
    color: var(--ink-4k);
    line-height: 1.38;
    margin-bottom: 6px;
}
.has-photo .bento-title {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 255, 255, 0.3);
}

.bento-sub {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--navy-700);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.has-photo .bento-sub {
    color: rgba(255, 255, 255, 0.94);
}

.bento-cta-pill {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    background: var(--navy-900);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.bento-split-card:hover .bento-cta-pill {
    background: var(--sky-main);
}
.has-photo .bento-cta-pill {
    background: var(--sky-main);
    color: #ffffff;
}

.bento-thumb-box {
    width: 118px;
    height: 118px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    padding: 0;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bento-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bento-thumb-box i {
    font-size: 1.8rem;
    color: var(--sky-main);
}

@media (max-width: 767.98px) {
    .bento-split-card.is-half-col {
        flex-direction: column-reverse;
        align-items: stretch;
        padding: 12px;
        border-radius: 15px;
        gap: 9px;
    }
    .bento-split-card.is-half-col .bento-thumb-box {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        padding: 0;
        border-radius: 12px;
    }
    .bento-split-card.is-half-col .bento-title {
        font-size: 0.94rem;
    }
    .bento-split-card.is-half-col .bento-sub {
        font-size: 0.76rem;
        margin-bottom: 9px;
    }
}

/* ----------------------------------------------------------------
   3. بطاقة الباقة المدمجة عالية التباين (Compact & Crisp Bundle Card)
---------------------------------------------------------------- */
.boutique-bundle-card {
    position: relative;
    background: var(--bg-white);
    border: 2px solid #f59e0b;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.14);
    cursor: pointer;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.boutique-bundle-card:hover {
    border-color: #ea580c;
    box-shadow: 0 16px 32px rgba(234, 88, 12, 0.22);
    transform: translateY(-2px);
}

.bundle-header-bar {
    padding: 8px 13px;
    background: linear-gradient(135deg, #b45309 0%, #ea580c 55%, #f59e0b 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 800;
}

.bundle-offer-badges {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.bundle-discount-badge {
    background: #dc2626;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.bundle-save-tag {
    background: #dcfce7;
    color: #14532d;
    text-shadow: none;
    border: 1px solid #86efac;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 999px;
}

.bundle-gallery-strip {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.bundle-gallery-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bundle-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.boutique-bundle-card:hover .bundle-gallery-thumb img {
    transform: scale(1.04);
}
.bundle-cover-photo {
    width: 100%;
    height: 145px;
    object-fit: cover;
    border-bottom: 1px solid #e2e8f0;
}

.bundle-body-wrap {
    padding: 12px 14px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bundle-offer-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    background: #fffbeb;
    color: #78350f;
    border: 1px solid #fcd34d;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.bundle-heading {
    font-size: 1.04rem;
    font-weight: 900;
    color: var(--ink-4k);
    line-height: 1.35;
    margin-bottom: 4px;
}

.bundle-desc {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy-800);
    line-height: 1.48;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bundle-specs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 0.73rem;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 10px;
}
.bundle-spec-chip {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 2px 8px;
    border-radius: 7px;
}

.bundle-bottom-bar {
    margin-top: auto;
    padding: 9px 11px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.bundle-price-caption {
    display: block;
    font-size: 0.69rem;
    font-weight: 800;
    color: var(--navy-700);
    margin-bottom: 1px;
}

.bundle-price-num {
    font-size: 1.38rem;
    font-weight: 900;
    color: var(--ink-4k);
    line-height: 1.1;
}
.bundle-price-num small {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--navy-800);
}
.bundle-price-strike {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-decoration: line-through;
}

.btn-bundle-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
.boutique-bundle-card:hover .btn-bundle-select {
    filter: brightness(1.06);
}

@media (max-width: 767.98px) {
    .bundle-header-bar {
        padding: 7px 10px;
        font-size: 0.73rem;
    }
    .bundle-body-wrap {
        padding: 10px 12px;
    }
    .bundle-heading {
        font-size: 0.96rem;
    }
    .bundle-price-num {
        font-size: 1.24rem;
    }
    .btn-bundle-select {
        padding: 7px 11px;
        font-size: 0.77rem;
    }
}

/* ----------------------------------------------------------------
   4. أقسام المتجر (High-Contrast Studio Category Tiles)
---------------------------------------------------------------- */
.cat-studio-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 12px 6px;
    border-radius: 16px;
    background: var(--bg-slate);
    border: 1px solid var(--card-border);
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.cat-studio-tile:hover {
    background: #e0f2fe;
    border-color: var(--sky-main);
    box-shadow: 0 8px 18px rgba(2, 132, 199, 0.14);
    transform: translateY(-2px);
}
.cat-thumb-frame {
    width: 82px;
    height: 82px;
    border-radius: 20px;
    border: 1.5px solid var(--card-border);
    background: #ffffff;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 9px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.cat-studio-tile:hover .cat-thumb-frame {
    border-color: var(--sky-main);
}
.cat-thumb-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* ----------------------------------------------------------------
   5. البطاقات المعلوماتية ودليل العدسات وأشكال الإطارات
---------------------------------------------------------------- */
.clean-feature-card {
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--card-border);
    border-top: 4px solid var(--sky-main);
    border-radius: 16px;
    padding: 18px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.clean-feature-card.accent-mint { border-top-color: var(--mint-main); }
.clean-feature-card.accent-gold { border-top-color: var(--gold-main); }
.clean-feature-card.accent-navy { border-top-color: var(--navy-900); }

.clean-feature-card.is-clickable {
    cursor: pointer;
}
.clean-feature-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.solid-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--sky-main);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    margin-bottom: 12px;
}
.solid-icon-badge.is-mint { background: var(--mint-main); }
.solid-icon-badge.is-gold { background: var(--gold-main); }
.solid-icon-badge.is-navy { background: var(--navy-900); }

.feature-card-heading {
    font-size: 0.98rem;
    font-weight: 900;
    color: var(--ink-4k);
    margin-bottom: 6px;
    line-height: 1.4;
}
.feature-card-text {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--navy-700);
    line-height: 1.55;
    margin-bottom: 0;
}
.feature-card-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--sky-deep);
    margin-top: 12px;
}

/* ----------------------------------------------------------------
   5.5 بطاقات ماركات العدسات داخل القسم الكحلي
---------------------------------------------------------------- */
.brand-showcase-card {
    position: relative;
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px 14px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-top: 5px solid var(--sky-main);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.brand-showcase-card.accent-gold { border-top-color: var(--gold-main); }
.brand-showcase-card.accent-mint { border-top-color: var(--mint-main); }
.brand-showcase-card.accent-navy { border-top-color: #38bdf8; }

.brand-showcase-card.is-clickable {
    cursor: pointer;
}
.brand-showcase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
}

.brand-monogram-word {
    font-family: 'Poppins', 'Tajawal', sans-serif;
    font-size: 1.24rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 14px rgba(255, 255, 255, 0.35);
    background: var(--navy-900);
    padding: 7px 18px;
    border-radius: 10px;
    margin-bottom: 12px;
}
.brand-showcase-card.accent-gold .brand-monogram-word {
    background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold-main) 100%);
}
.brand-showcase-card.accent-sky .brand-monogram-word {
    background: linear-gradient(135deg, var(--sky-deep) 0%, var(--sky-main) 100%);
}
.brand-showcase-card.accent-mint .brand-monogram-word {
    background: linear-gradient(135deg, var(--mint-deep) 0%, var(--mint-main) 100%);
}

.brand-logo-clean {
    width: 74px;
    height: 74px;
    object-fit: contain;
    margin-bottom: 10px;
}

.brand-origin-pill {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e0f2fe;
    color: var(--sky-deep);
}
.brand-showcase-card.accent-gold .brand-origin-pill {
    background: var(--gold-soft);
    color: var(--gold-deep);
}
.brand-showcase-card.accent-mint .brand-origin-pill {
    background: var(--mint-soft);
    color: var(--mint-deep);
}

/* ----------------------------------------------------------------
   6. بطاقة المنتج عالية التباين (Crisp Optical Product Card)
---------------------------------------------------------------- */
.product-card {
    position: relative;
    border-radius: 16px;
    background: var(--bg-white);
    border: 1px solid var(--card-border);
    border-top: 3px solid var(--sky-main);
    box-shadow: var(--card-shadow);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.product-card.is-flash-card {
    border-top-color: var(--sale-red);
}
.product-card:hover {
    border-color: var(--sky-main);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.product-img-holder {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    border-bottom: 1px solid var(--card-border);
    padding: 0;
    overflow: hidden;
}
.product-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.badge-sale-pct {
    background: var(--sale-red);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 8px;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.28);
}

.product-card-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--ink-4k);
    line-height: 1.42;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.product-specs-line {
    font-size: 0.77rem;
    font-weight: 700;
    color: var(--navy-700);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-footer-stack {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-price-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}
.product-price-final {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--ink-4k);
    line-height: 1.1;
}
.product-price-final small {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy-700);
}
.product-price-old {
    font-size: 0.8rem;
    color: #64748b;
    text-decoration: line-through;
}

.product-actions-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-card-details {
    flex-grow: 1;
    height: 37px;
    border-radius: 10px;
    background: var(--sky-main);
    color: #ffffff !important;
    font-size: 0.84rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.product-card:hover .btn-card-details {
    background: var(--sky-deep);
}

.btn-card-wa {
    position: relative;
    z-index: 20;
    width: 40px;
    height: 37px;
    border-radius: 10px;
    background: var(--mint-main);
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}
.btn-card-wa:hover {
    background: var(--mint-deep);
    transform: scale(1.03);
}

@media (max-width: 575.98px) {
    .product-card {
        border-radius: 14px;
    }
    .product-card-title {
        font-size: 0.87rem;
    }
    .product-price-final {
        font-size: 1.08rem;
    }
}

.section-heading-wrap {
    margin-bottom: 1.35rem;
}
.section-title-accent {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.section-title-accent::before {
    content: "";
    width: 5px;
    height: 24px;
    border-radius: 4px;
    background: var(--sky-main);
    flex-shrink: 0;
}
.sec-block-navy .section-title-accent::before {
    background: #38bdf8;
}
.sec-block-flash .section-title-accent::before {
    background: var(--sale-red);
}
.section-title {
    font-size: clamp(1.2rem, 2.1vw, 1.52rem);
    font-weight: 900;
    color: var(--ink-4k);
    letter-spacing: -0.01em;
}
.sec-block-navy .section-title {
    color: #ffffff;
}
.section-subtitle-muted {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy-700);
    margin-top: 4px;
}
.sec-block-navy .section-subtitle-muted {
    color: #bae6fd;
}

.countdown-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sale-red);
    color: #ffffff;
    padding: 4px 13px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* تنسيقات إضافية */
html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
}
h1, h2, h3, h4, h5, h6, .fw-black, .fw-bold {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 14px rgba(2, 132, 199, 0.13);
}
.btn-primary, .btn-success, .btn-dark, .btn-warning, .badge, .navbar-dark *, .bg-dark *, .bg-primary * {
    text-shadow: 0 1px 2px rgba(9, 13, 22, 0.34), 0 0 15px rgba(255, 255, 255, 0.35);
}

/* ================================================================
   تحديث التباين العالي والهوية الطبية المشرقة + الباقات الذهبية (v4.0)
================================================================ */

/* 1. خلفيات واضحة ومشرقة تفصل الأقسام بوضوح */
.sec-block-white {
    background: #FFFFFF !important;
    border-top: 1px solid #E2E8F0 !important;
    border-bottom: 1px solid #E2E8F0 !important;
}
.sec-block-slate {
    background: #F1F5F9 !important;
    border-top: 1px solid #CBD5E1 !important;
    border-bottom: 1px solid #CBD5E1 !important;
}
.sec-block-sky {
    background: linear-gradient(180deg, #E0F2FE 0%, #F0F9FF 100%) !important;
    border-top: 2px solid #7DD3FC !important;
    border-bottom: 2px solid #7DD3FC !important;
}
.sec-block-navy {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 65%, #0369A1 100%) !important;
    border-top: 3px solid #0EA5E9 !important;
    border-bottom: 3px solid #0EA5E9 !important;
}
.sec-block-bundle-offer {
    background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 55%, #FFFBEB 100%) !important;
    border-top: 2.5px solid #F59E0B !important;
    border-bottom: 2.5px solid #F59E0B !important;
}

/* 2. الهيرو الرئيسي مشرق وواضح */
.hero-editorial-card {
    border-radius: 22px !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14) !important;
}
.hero-studio-navy {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 55%, #0284C7 100%) !important;
}
.hero-kicker-tag {
    background: #0EA5E9 !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
}
.hero-display-title {
    color: #FFFFFF !important;
    font-weight: 900 !important;
}
.hero-display-sub {
    color: #F1F5F9 !important;
}
.btn-editorial-primary {
    background: linear-gradient(135deg, #0284C7 0%, #0EA5E9 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35) !important;
}
.hero-editorial-card:hover .btn-editorial-primary,
.btn-editorial-primary:hover {
    background: linear-gradient(135deg, #0369A1 0%, #0284C7 100%) !important;
}

/* 3. كروت الباقات الذهبية/العنبر بتأثيرات الخصم الواضحة */
@keyframes bundleShimmer {
    0%   { transform: translateX(120%) skewX(-20deg); }
    45%  { transform: translateX(-160%) skewX(-20deg); }
    100% { transform: translateX(-160%) skewX(-20deg); }
}
@keyframes discountPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50%      { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

.boutique-bundle-card {
    background: #FFFFFF !important;
    border: 2px solid #F59E0B !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 26px rgba(217, 119, 6, 0.15) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}
.boutique-bundle-card:hover {
    transform: translateY(-5px) !important;
    border-color: #EA580C !important;
    box-shadow: 0 18px 36px rgba(234, 88, 12, 0.24) !important;
}
.bundle-header-bar {
    background: linear-gradient(135deg, #B45309 0%, #EA580C 55%, #F59E0B 100%) !important;
    color: #FFFFFF !important;
    position: relative;
    overflow: hidden;
}
.bundle-header-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    animation: bundleShimmer 4s infinite ease-in-out;
    pointer-events: none;
}
.bundle-discount-badge {
    background: #DC2626 !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    animation: discountPulse 2.4s infinite;
}
.bundle-bottom-bar {
    background: #FFFBEB !important;
    border: 1.5px solid #FCD34D !important;
    border-radius: 12px !important;
}
.bundle-price-num {
    color: #B45309 !important;
}
.btn-bundle-select {
    background: linear-gradient(135deg, #EA580C 0%, #F59E0B 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.28) !important;
}
.boutique-bundle-card:hover .btn-bundle-select,
.btn-bundle-select:hover {
    filter: brightness(1.06);
}

/* 4. كروت المنتجات والأزرار واضحة ومشرقة */
.product-card {
    position: relative;
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    border-top: 3px solid #0284C7 !important;
    border-radius: 18px !important;
    box-shadow: var(--card-shadow) !important;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease !important;
}
.product-card:hover {
    transform: translateY(-4px) !important;
    border-color: #0284C7 !important;
    box-shadow: var(--card-shadow-hover) !important;
}
.product-card:hover .product-img-holder img {
    transform: scale(1.04) !important;
}
.btn-card-details {
    background: linear-gradient(135deg, #0284C7 0%, #0EA5E9 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
}
.product-card:hover .btn-card-details,
.btn-card-details:hover {
    background: linear-gradient(135deg, #0369A1 0%, #0284C7 100%) !important;
}
.btn-card-wa {
    position: relative;
    z-index: 20;
    background: #16A34A !important;
    color: #FFFFFF !important;
    border: none !important;
}
.btn-card-wa:hover {
    background: #15803D !important;
}

/* 5. البطاقات المعلوماتية والأقسام وشريط الثقة */
.clean-feature-card {
    position: relative;
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    border-top: 4px solid #0284C7 !important;
    border-radius: 18px !important;
    box-shadow: var(--card-shadow) !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}
.clean-feature-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--card-shadow-hover) !important;
}
.solid-icon-badge {
    background: #0284C7 !important;
    color: #FFFFFF !important;
}
.solid-icon-badge.is-mint { background: #16A34A !important; }
.solid-icon-badge.is-gold { background: #D97706 !important; }
.solid-icon-badge.is-navy { background: #0F172A !important; }

.medical-trust-bar {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-top: 3px solid #0284C7;
    padding: 16px 0;
}
.medical-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
}
.medical-trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #E0F2FE;
    color: #0369A1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    border: 1px solid #BAE6FD;
}
.medical-trust-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 2px;
}
.medical-trust-sub {
    font-size: 0.78rem;
    color: #475569;
    margin: 0;
}

.rx-steps-section {
    background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
    padding: 46px 0;
    border-top: 2px solid #BAE6FD;
    border-bottom: 1px solid #CBD5E1;
}
.rx-step-card {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-top: 4px solid #0284C7;
    border-radius: 18px;
    padding: 24px 20px;
    height: 100%;
    box-shadow: var(--card-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.rx-step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}
.rx-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0284C7;
    color: #FFFFFF;
    font-weight: 900;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.rx-step-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 8px;
}
.rx-step-desc {
    font-size: 0.86rem;
    color: #334155;
    line-height: 1.65;
    margin: 0;
}


/* ================================================================
   ضغط الفراغات وتصغير الكروت وماركات العدسات على الموبايل (v5.0)
================================================================ */
.product-card-title {
    min-height: 0 !important;
    margin-bottom: 3px !important;
}

@media (max-width: 767.98px) {
    /* 1. تقليل فراغات الأقسام والهيرو على الموبايل */
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .hero-studio-navy,
    .hero-photo-stage .p-4 {
        padding: 18px 16px !important;
    }
    section.py-4 {
        padding-top: 1.15rem !important;
        padding-bottom: 1.15rem !important;
    }

    /* 2. ضغط شريط الثقة الطبي (2x2 مدمج بدون فراغات) */
    .medical-trust-bar {
        padding: 8px 6px !important;
        margin-top: 10px !important;
        border-radius: 14px !important;
    }
    .medical-trust-item {
        padding: 4px 4px !important;
        gap: 8px !important;
        align-items: flex-start !important;
    }
    .medical-trust-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.88rem !important;
        border-radius: 9px !important;
    }
    .medical-trust-title {
        font-size: 0.76rem !important;
        line-height: 1.25 !important;
        margin-bottom: 1px !important;
    }
    .medical-trust-sub {
        font-size: 0.67rem !important;
        line-height: 1.3 !important;
    }

    /* 3. منع قص كروت السحب الأفقي بسبب justify-content-center + ضبط عرض ماركات العدسات */
    .row.swipe-mobile {
        justify-content: flex-start !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 4px 2px 8px !important;
        scroll-padding-inline: 6px;
    }
    .row.swipe-mobile.swipe-brands > [class*="col-"] {
        flex: 0 0 46% !important;
        max-width: 46% !important;
    }
    .brand-origin-pill {
        max-width: 100%;
        white-space: normal;
        line-height: 1.3;
    }
    .brand-showcase-card {
        padding: 11px 8px !important;
        border-radius: 14px !important;
    }
    .brand-monogram-word {
        font-size: 0.92rem !important;
        padding: 5px 11px !important;
        margin-bottom: 7px !important;
        border-radius: 8px !important;
    }
    .brand-logo-clean {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 6px !important;
    }
    .brand-showcase-card .feature-card-heading {
        font-size: 0.82rem !important;
        margin-bottom: 4px !important;
    }
    .brand-origin-pill {
        font-size: 0.66rem !important;
        padding: 2px 7px !important;
    }

    /* 4. ضغط كروت المنتجات وإزالة الفراغ أسفل العنوان */
    .product-card .card-body {
        padding: 8px 9px !important;
    }
    .product-card-title {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
    }
    .product-specs-line {
        font-size: 0.7rem !important;
        margin-bottom: 4px !important;
    }
    .product-footer-stack {
        padding-top: 6px !important;
        gap: 6px !important;
    }
    .product-price-final {
        font-size: 1.02rem !important;
    }
    .btn-card-details {
        height: 32px !important;
        font-size: 0.78rem !important;
        border-radius: 8px !important;
    }
    .btn-card-wa {
        width: 34px !important;
        height: 32px !important;
        border-radius: 8px !important;
    }
}


@media (max-width: 767.98px) {
    /* 5. ضغط قسم خطوات الطلب الـ 3 على الموبايل بدون فراغات */
    .rx-steps-section {
        padding: 20px 0 !important;
    }
    .rx-steps-section .text-center.mb-4 {
        margin-bottom: 14px !important;
    }
    .rx-step-card {
        display: grid !important;
        grid-template-columns: 30px 1fr;
        column-gap: 10px;
        row-gap: 2px;
        align-items: start;
        padding: 12px 14px !important;
        border-radius: 14px !important;
    }
    .rx-step-num {
        grid-row: 1 / 3;
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
        margin-bottom: 0 !important;
        margin-top: 2px;
    }
    .rx-step-title {
        font-size: 0.92rem !important;
        margin-bottom: 2px !important;
    }
    .rx-step-desc {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
    }
}
