/* =========================================================
   Bella Store — Shared Stylesheet
   ========================================================= */
:root {
    --gold: #B5946B;
    --gold-dark: #8F7448;
    --gold-soft: #D4BC93;
    --nude: #E5D6C2;
    --cream: #F3EEE8;
    --cream-alt: #FBF8F5;
    --ink: #3A2A1F;
    --ink-soft: #7A6857;
    --white: #FFFFFF;
    --line: rgba(58, 42, 31, 0.12);
    --shadow: 0 20px 40px -20px rgba(58, 42, 31, 0.30);
    --radius: 14px;
    --font-latin: 'Cormorant Garamond', serif;
    --font-display: 'Amiri', 'Tajawal', serif;
    --font-body: 'Tajawal', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* إخفاء شريط التمرير نهائياً مع إبقاء إمكانية التمرير */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* إخفاء شريط التمرير على كل المتصفحات (Chrome / Safari / Edge) */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.modal-panel::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ===== انتقالات بين الصفحات (Page Transitions) ===== */
/* دعم متقدم للمتصفحات الحديثة (Chrome/Edge) لانتقال سلس بين الصفحات */
@view-transition {
    navigation: auto;
}

/* دعم شامل لكل المتصفحات عبر تلاشي بسيط عند الدخول والخروج من الصفحة.
   ملاحظة مهمة: ما منحط transform هون لأنو أي transform على body
   بيكسر عناصر position:fixed اللي جواتو (شريط الطلب السفلي، نافذة الطلب،
   زر الواتساب) وبيخليها تتصرف بشكل غلط، خصوصاً وقت فتح كيبورد الموبايل. */
body.page-enter {
    opacity: 0;
}

body.page-enter-active {
    opacity: 1;
    transition: opacity .35s ease;
}

body.page-leave {
    opacity: 0;
    transition: opacity .22s ease;
}

@media (prefers-reduced-motion: reduce) {

    body.page-enter,
    body.page-enter-active,
    body.page-leave {
        opacity: 1;
        transition: none;
    }
}

/* ===== ظهور تدريجي للأقسام عند التمرير ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

html,
* {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
header.site {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(243, 238, 232, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

header.site .wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-direction: column;
    gap: 2px;
}

header.site .wrap a {
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-latin);
    font-style: italic;
    font-weight: 700;
    font-size: 2.4rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: .5px;
    line-height: 1;
}

.brand-tag {
    font-size: .65rem;
    letter-spacing: 4px;
    color: var(--ink-soft);
    text-transform: uppercase;
    font-weight: 600;
}

/* ===== Hero ===== */
.hero {
    padding: 56px 0 48px;
}

.hero .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 36px;
}

.hero-visual {
    order: 1;
    width: 100%;
    max-width: 400px;
}

.hero-content {
    order: 2;
    max-width: 580px;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 20px;
    line-height: 1.35;
}

.hero-content p.lead {
    font-size: 1.08rem;
    color: var(--ink-soft);
    max-width: 52ch;
    margin: 0 auto 28px;
}

.price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.price-row .price {
    font-family: var(--font-latin);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.price-row .unit {
    color: var(--ink-soft);
    font-size: .95rem;
}

.cta-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    border: none;
    padding: 16px 44px;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .2s ease;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px -18px rgba(143, 116, 72, 0.45);
}

.hero-note {
    margin-top: 16px;
    color: var(--ink-soft);
    font-size: .92rem;
}

.product-visual-placeholder {
    aspect-ratio: 4/5;
    border-radius: 24px;
    background:
        radial-gradient(circle at 30% 20%, rgba(181, 148, 107, 0.30), transparent 55%),
        linear-gradient(160deg, var(--nude) 0%, var(--gold-soft) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--gold-dark);
    gap: 14px;
    text-align: center;
    padding: 24px;
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.product-visual-placeholder svg {
    width: 72px;
    height: 72px;
    opacity: .7;
}

.product-visual-placeholder span {
    font-size: .9rem;
    opacity: .7;
    max-width: 22ch;
}

.product-visual-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity .8s ease;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

@media (prefers-reduced-motion: no-preference) {

    .hero-visual,
    .hero-content {
        animation: riseIn .7s ease both;
    }

    .hero-content {
        animation-delay: .12s;
    }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Trust bar ===== */
.trust {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.trust .wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 34px 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-item svg {
    width: 30px;
    height: 30px;
    color: var(--gold-dark);
    flex-shrink: 0;
}

.trust-item p {
    margin: 0;
    font-size: .96rem;
    color: var(--ink);
}

.trust-item strong {
    display: block;
    font-size: .98rem;
    color: var(--ink);
    margin-bottom: 2px;
}

/* ===== Section heading ===== */
.section {
    padding: 72px 0;
}

.section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    color: var(--ink);
    text-align: center;
    margin: 0 0 12px;
    font-weight: 700;
    line-height: 1.4;
}

.section .subhead {
    text-align: center;
    color: var(--ink-soft);
    max-width: 56ch;
    margin: 0 auto 48px;
    font-size: 1rem;
}

/* ===== Box contents — مربع واحد كبير للنص ===== */
.contents-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 56px 44px;
    min-height: 200px;
    display: flex;
    align-items: center;
    text-align: right;
    box-shadow: var(--shadow);
}

.contents-box p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.18rem;
    line-height: 2;
    white-space: pre-line;
}

/* ===== Similar Products ===== */
.similar-section {
    background: var(--cream-alt);
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.similar-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .25s ease;
}

.similar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.similar-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    box-shadow: 0 6px 14px -6px rgba(143, 116, 72, 0.6);
}

.similar-image {
    aspect-ratio: 4/3;
    background: linear-gradient(160deg, var(--nude) 0%, var(--gold-soft) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    position: relative;
    overflow: hidden;
}

.similar-image svg {
    width: 56px;
    height: 56px;
    opacity: .55;
}

.similar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.similar-body {
    padding: 16px 18px 20px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.similar-body h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 700;
}

.similar-body .price {
    font-family: var(--font-latin);
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 1.2rem;
}

.similar-body .view-btn {
    margin-top: auto;
    display: inline-block;
    text-align: center;
    background: var(--cream);
    color: var(--ink);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 700;
    border: 1px solid var(--line);
    transition: background .2s ease;
}

.similar-body .view-btn:hover {
    background: var(--nude);
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 740px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 4px;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink);
}

.faq-q svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform .2s ease;
    color: var(--gold-dark);
}

.faq-item.open .faq-q svg {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    color: var(--ink-soft);
    font-size: .95rem;
    padding: 0 4px;
}

.faq-item.open .faq-a {
    padding-bottom: 18px;
}

/* ===== Footer ===== */
footer.site {
    background: var(--ink);
    color: rgba(243, 238, 232, 0.75);
    font-size: .9rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 36px;
    padding: 56px 24px 40px;
    text-align: right;
}

.footer-col h4 {
    margin: 0 0 16px;
    color: var(--gold-soft);
    font-size: 1rem;
    font-weight: 700;
}

.footer-brand .brand-logo {
    color: var(--gold-soft);
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.footer-desc {
    margin: 0 0 18px;
    line-height: 1.8;
    color: rgba(243, 238, 232, 0.65);
    max-width: 34ch;
}

.footer-since {
    margin: -10px 0 18px;
    font-size: .82rem;
    letter-spacing: .5px;
    color: var(--gold-soft);
    opacity: .8;
}

.footer-wa-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6FE3A6;
    font-weight: 700;
    font-size: .88rem;
}

.footer-wa-link svg {
    width: 20px;
    height: 20px;
}

.footer-links,
.footer-info {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(243, 238, 232, 0.75);
    transition: color .2s ease;
}

.footer-links a:hover {
    color: var(--gold-soft);
}

.footer-info li {
    color: rgba(243, 238, 232, 0.65);
    line-height: 1.7;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 24px calc(18px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(243, 238, 232, 0.12);
    font-size: .82rem;
    color: rgba(243, 238, 232, 0.55);
}

/* مسافة إضافية بآخر الفوتر بالموبايل عشان ما ينغطى بشريط "اطلب الآن" الثابت
   حتى قبل ما ينختفي بالكامل (طبقة أمان إضافية على منطق الجافاسكربت) */
@media (max-width: 720px) {
    .footer-bottom {
        padding-bottom: calc(84px + env(safe-area-inset-bottom));
    }
}

/* ===== Sticky mobile CTA bar ===== */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 30px -20px rgba(0, 0, 0, 0.3);
    transform: translateY(120%);
    transition: transform .25s ease;
    z-index: 50;
}

.sticky-bar.show {
    transform: translateY(0);
}

.sticky-bar .sb-price {
    font-weight: 800;
    color: var(--gold-dark);
}

.sticky-bar .cta-primary {
    padding: 12px 26px;
    font-size: .95rem;
}

/* ===== Floating WhatsApp Button ===== */
.wa-float {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom));
    left: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 60;
    color: #fff;
    transition: transform .2s ease, bottom .25s ease;
    animation: waPulse 2.4s ease-in-out infinite;
}

.wa-float:hover {
    transform: scale(1.08);
}

.wa-float svg {
    width: 32px;
    height: 32px;
}

.sticky-bar.show~.wa-float {
    bottom: calc(88px + env(safe-area-inset-bottom));
}

@keyframes waPulse {

    0%,
    100% {
        box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    50% {
        box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 14px rgba(37, 211, 102, 0);
    }
}

@media (max-width:520px) {
    .wa-float {
        width: 54px;
        height: 54px;
        bottom: calc(20px + env(safe-area-inset-bottom));
        left: 20px;
    }

    .wa-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(58, 42, 31, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
    overscroll-behavior: contain;
}

.modal-overlay.open {
    display: flex;
}

.modal-panel {
    background: var(--white);
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4);
    overscroll-behavior: contain;
}

@media (prefers-reduced-motion: no-preference) {
    .modal-panel {
        animation: popIn .2s ease both;
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 18px;
    left: 18px;
    background: none;
    border: none;
    color: var(--ink-soft);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--cream);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-panel h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--ink);
    margin: 0 0 6px;
    font-weight: 700;
}

.modal-summary-line {
    color: var(--ink-soft);
    font-size: .92rem;
    margin: 0 0 22px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.field label .optional-tag {
    font-weight: 400;
    font-size: .8rem;
    color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: .96rem;
    color: var(--ink);
    background: var(--cream-alt);
}

.field textarea {
    min-height: 84px;
    resize: vertical;
}

.field-error {
    color: #B23A3A;
    font-size: .82rem;
    margin-top: 5px;
    display: none;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
    border-color: #B23A3A;
}

.field.invalid .field-error {
    display: block;
}

.phone-row {
    display: flex;
    gap: 8px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.qty-field .modal-qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qty-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--cream-alt);
    color: var(--ink);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}

.qty-btn:hover {
    background: var(--nude);
}

.qty-value {
    font-size: 1.05rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.order-total-box {
    background: var(--cream);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: .95rem;
}

.order-total-box strong {
    color: var(--gold-dark);
    font-size: 1.15rem;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    transition: opacity .2s ease, transform .15s ease;
}

.submit-btn:hover {
    opacity: .94;
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

.form-error-box {
    background: rgba(178, 58, 58, 0.10);
    color: #B23A3A;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: .9rem;
    margin-bottom: 16px;
    display: none;
}

.form-error-box.show {
    display: block;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(181, 148, 107, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--gold-dark);
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.success-summary {
    background: var(--cream);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 20px 0;
    font-size: .92rem;
    text-align: right;
}

.success-summary div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
}

.success-summary div:last-child {
    border-bottom: none;
    font-weight: 800;
    color: var(--gold-dark);
}

.success-summary span:first-child {
    color: var(--ink-soft);
}
/* =========================================================
   Responsive breakpoints — يشتغل ممتاز على كل الأحجام
   شاشات صغيرة، هواتف، تابلت، لابتوب، شاشات كبيرة
   ========================================================= */

/* ===== Tablet / small laptop (≤ 900px) ===== */
@media (max-width: 900px) {
    .section { padding: 56px 0; }
    .hero { padding: 40px 0 40px; }
    .trust .wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 28px 24px;
    }
    .hero-visual { max-width: 340px; }

    .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
}

/* ===== Phones (≤ 640px) ===== */
@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    header.site .wrap { padding-top: 10px; padding-bottom: 10px; }
    .brand-logo { font-size: 2rem; }
    .brand-tag { font-size: .6rem; letter-spacing: 3px; }

    .hero { padding: 28px 0 32px; }
    .hero .wrap { gap: 24px; }
    .hero-visual { max-width: 300px; }
    .hero-content h1 { font-size: 1.75rem; line-height: 1.35; margin-bottom: 14px; }
    .hero-content p.lead { font-size: .98rem; margin-bottom: 20px; }
    .price-row { flex-direction: column; align-items: center; gap: 4px; margin-bottom: 18px; }
    .price-row .price { font-size: 1.9rem; }
    .cta-primary { padding: 14px 34px; font-size: 1rem; }
    .hero-note { font-size: .85rem; }

    .section { padding: 44px 0; }
    .section h2 { font-size: 1.55rem; margin-bottom: 8px; }
    .section .subhead { font-size: .92rem; margin-bottom: 28px; padding: 0 8px; }

    .trust .wrap {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px 20px;
    }
    .trust-item { padding: 6px 0; }

    .contents-box { padding: 32px 22px; min-height: 160px; }
    .contents-box p { font-size: 1.02rem; line-height: 1.85; }

    .similar-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .similar-body { padding: 12px 14px 16px; }
    .similar-body h3 { font-size: .92rem; }
    .similar-body .price { font-size: 1.05rem; }
    .similar-body .view-btn { padding: 8px 10px; font-size: .82rem; }
    .similar-badge { font-size: .65rem; padding: 4px 10px; top: 8px; left: 8px; }

    .faq-q { font-size: .96rem; padding: 16px 2px; }
    .faq-a { font-size: .9rem; }

    footer.site { font-size: .85rem; }
    .footer-top { grid-template-columns: 1fr; gap: 30px; padding: 40px 20px 28px; text-align: center; }
    .footer-brand .brand-logo { justify-content: center; }
    .footer-desc { margin-left: auto; margin-right: auto; }
    .footer-wa-link { justify-content: center; }
    .footer-links, .footer-info { align-items: center; }
    .footer-bottom { flex-direction: column; text-align: center; padding: 16px 20px calc(84px + env(safe-area-inset-bottom)); }

    .sticky-bar { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
    .sticky-bar .cta-primary { padding: 10px 20px; font-size: .9rem; }
    .sticky-bar .sb-price { font-size: .95rem; }

    /* Modal */
    .modal-overlay { padding: 12px; align-items: flex-end; }
    .modal-panel {
        padding: 22px 20px 24px;
        border-radius: 20px 20px 12px 12px;
        max-height: 92vh;
    }
    .modal-panel h3 { font-size: 1.25rem; }
    .modal-close { top: 12px; left: 12px; }
    .field { margin-bottom: 12px; }
    .field label { font-size: .85rem; margin-bottom: 5px; }
    .field input, .field select, .field textarea {
        padding: 11px 12px; font-size: 1rem; /* 1rem = 16px يمنع zoom على iOS */
    }
    .qty-btn { width: 36px; height: 36px; font-size: 1.1rem; }
    .order-total-box { padding: 12px 14px; font-size: .9rem; }
    .order-total-box strong { font-size: 1.05rem; }
    .submit-btn { padding: 14px; font-size: .98rem; }

    .success-icon { width: 56px; height: 56px; margin-bottom: 14px; }
    .success-summary { padding: 14px 16px; font-size: .88rem; margin: 16px 0; }
}

/* ===== Very small phones (≤ 380px) ===== */
@media (max-width: 380px) {
    .wrap { padding: 0 12px; }
    .brand-logo { font-size: 1.8rem; }
    .hero-content h1 { font-size: 1.55rem; }
    .hero-content p.lead { font-size: .92rem; }
    .price-row .price { font-size: 1.7rem; }
    .cta-primary { padding: 12px 28px; font-size: .95rem; }
    .section { padding: 36px 0; }
    .section h2 { font-size: 1.4rem; }
    .contents-box { padding: 26px 18px; min-height: 140px; }
    .similar-grid { grid-template-columns: 1fr; }
    .modal-panel { padding: 20px 16px 22px; }
    .modal-panel h3 { font-size: 1.15rem; }
    .sticky-bar { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
    .sticky-bar .cta-primary { padding: 9px 16px; font-size: .85rem; }
}

/* ===== Large screens (≥ 1400px) — إحكام أفضل ===== */
@media (min-width: 1400px) {
    .wrap { max-width: 1200px; }
}

/* ===== Landscape phones — تقليل padding العلوي ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { padding: 24px 0 28px; }
    .section { padding: 36px 0; }
    .modal-overlay { align-items: center; }
    .modal-panel { max-height: 95vh; }
}

/* ===== Touch device — تكبير مساحات اللمس ===== */
@media (hover: none) and (pointer: coarse) {
    .cta-primary, .submit-btn, .faq-q, .qty-btn, .view-btn {
        min-height: 44px;
    }
    .modal-close { width: 40px; height: 40px; }
}

/* ===== HiDPI images ===== */
@media (min-resolution: 2dppx) {
    .product-visual-placeholder img,
    .similar-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}
