/* ============================
   الروبي ستور — product.css
   صفحة المنتج الكاملة — النسخة النهائية
   ============================ */

/* ============================
   Breadcrumb
   ============================ */
.bc-wrap { background: var(--white); border-bottom: 1px solid var(--gray); padding: 10px 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text3); flex-wrap: wrap; }
.breadcrumb a { color: var(--text2); transition: color .2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* ============================
   Layout — Desktop
   الصورة يمين | المعلومات يسار | التابات تحت بعرض كامل
   ============================ */
.product-layout {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 32px;
    padding: 32px 0 40px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.product-gallery { grid-column: 1; grid-row: 1; }

.product-tabs-wrap {
    grid-column: 1;
    grid-row: 2;
    background: var(--white);
    border-radius: var(--rl);
    border: 1px solid var(--gray);
    overflow: hidden;
    align-self: start;
}
.product-info {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 0;
    align-self: start;
    position: sticky;
    top: 80px;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}
.product-actions,
.guarantees-grid,
.trust-bar {
    width: 93%;
    box-sizing: border-box;
}
/* ============================
   Gallery — الصورة الرئيسية
   max-height عشان متملاش الشاشة
   ============================ */
.main-img-wrap {
    position: relative;
    background: var(--white);
    border-radius: 15px;
    border: 1px solid var(--gray);
    overflow: hidden;
    margin-bottom: 10px;
    aspect-ratio: 1 / 1;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-img { width: 100%; height: 200%; object-fit: contain; transition: transform .4s; }
.main-img-wrap:hover .main-img { transform: scale(1.04); }
.main-img-placeholder { font-size: 80px; }

/* Badges */
.img-badge { position: absolute; top: 14px; right: 14px; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 800; z-index: 2; }
.img-badge.sale { background: var(--red); color: #fff; }
.img-badge.hot  { background: var(--orange); color: #fff; }
.img-badge.new  { background: var(--green); color: #fff; }

/* Wishlist */
.wish-btn { position: absolute; top: 14px; left: 14px; width: 36px; height: 36px; background: #fff; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.1); transition: all .2s; color: var(--text3); z-index: 2; }
.wish-btn:hover, .wish-btn.active { background: var(--red); color: #fff; }
.wish-btn svg { width: 18px; height: 18px; }
.wish-btn.active svg { fill: #fff; }

/* Thumbnails */
.thumb-list { display: flex; flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.thumb-list::-webkit-scrollbar { display: none; }
.thumb { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 2px solid var(--gray); cursor: pointer; flex-shrink: 0; transition: border-color .2s; background: var(--white); }
.thumb.active, .thumb:hover { border-color: var(--orange); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ============================
   Product Info
   ============================ */
.brand-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.product-brand { font-size: 12px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 1px; }
.share-btn { background: var(--off); border: 1px solid var(--gray); border-radius: var(--r); padding: 6px; color: var(--text2); cursor: pointer; display: flex; align-items: center; transition: all .2s; }
.share-btn:hover { border-color: var(--orange); color: var(--orange); }
..pr.product-title { 
    font-size: 20px; 
    font-weight: 900; 
    color: var(--navy); 
    line-height: 1.5; 
    margin-bottom: 10px; 
    word-break: break-word; 
    max-width: 600px;
    -webkit-text-stroke: 0.3px var(--navy);
}oduct-title { font-size: 20px; font-weight: 900; color: var(--navy); line-height: 1.5; margin-bottom: 10px; word-break: break-word; max-width: 600px; }product-title { font-size: 20px; font-weight: 900; color: var(--navy); line-height: 1.5; margin-bottom: 10px; word-break: break-word; }
.rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.stars { color: #F59E0B; font-size: 15px; letter-spacing: 2px; }
.rating-num { font-size: 14px; font-weight: 800; color: var(--navy); }
.rating-cnt { font-size: 13px; color: var(--text3); }
.rating-sep { color: var(--gray); }
.sold-count { font-size: 13px; color: var(--orange); font-weight: 700; }
.verified-badge { font-size: 12px; color: var(--green); font-weight: 600; margin-bottom: 14px; }

/* ============================
   Price
   ============================ */
.price-box { background: var(--off); border-radius: var(--rl); padding: 14px 18px; margin-bottom: 12px; border: 1px solid var(--gray); }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.price-now { font-size: 32px; font-weight: 900; color: var(--orange); }
.currency { font-size: 18px; }
.price-old { font-size: 15px; color: var(--text3); text-decoration: line-through; }
.price-save { font-size: 12px; color: var(--green); font-weight: 700; background: rgba(22,163,74,0.1); padding: 3px 10px; border-radius: 20px; }
.installment { font-size: 12.5px; color: var(--text2); }
.installment strong { color: var(--navy); }

/* ============================
   Urgency
   ============================ */
.urgency-bar { border-radius: var(--r); padding: 10px 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.urgency-bar.out { background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.2); }
.urgency-bar.low { background: rgba(232,80,10,0.08); border: 1px solid rgba(232,80,10,0.2); }
.urgency-bar.ok  { background: rgba(22,163,74,0.08);  border: 1px solid rgba(22,163,74,0.2); }
.urgency-bar p { font-size: 12.5px; font-weight: 700; }
.urgency-bar.out p, .urgency-bar.low p { color: var(--red); }
.urgency-bar.ok p, .in-stock { color: var(--green); }
.urgency-bar span { font-size: 16px; flex-shrink: 0; }

/* ============================
   Social Proof
   ============================ */
.social-proof { background: rgba(27,42,74,0.05); border-radius: var(--r); padding: 8px 14px; margin-bottom: 14px; border: 1px solid rgba(27,42,74,0.1); }
.social-proof p { font-size: 12.5px; color: var(--navy); font-weight: 600; }
.social-proof {
  max-width: 655px;
  white-space: nowrap;
}
/* ============================
   Variants
   ============================ */
.variant-section { margin-bottom: 16px; }
.variant-label { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.variant-label strong { color: var(--orange); }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn { padding: 8px 18px; border-radius: var(--r); border: 2px solid var(--gray); background: var(--white); font-family: 'Tajawal', sans-serif; font-size: 13.5px; font-weight: 700; cursor: pointer; color: var(--text); transition: all .2s; }
.size-btn:hover { border-color: var(--orange); color: var(--orange); }
.size-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.color-options { display: flex; gap: 8px; flex-wrap: wrap; }
.color-btn { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.color-btn:hover { transform: scale(1.15); }
.color-btn.active { border-color: var(--orange); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--orange); }
.color-check { color: #fff; font-size: 14px; font-weight: 900; text-shadow: 0 1px 3px rgba(0,0,0,.5); }

/* ============================
   Bundle
   ============================ */
.bundle-box { background: linear-gradient(135deg, rgba(27,42,74,0.04), rgba(232,80,10,0.04)); border: 1.5px solid rgba(232,80,10,0.25); border-radius: var(--rl); padding: 10px; margin-bottom: 5px; }
.bundle-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bundle-icon { font-size: 24px; }
.bundle-head strong { display: block; font-size: 14px; font-weight: 800; color: var(--navy); }
.bundle-head span { font-size: 12px; color: var(--text3); }
.bundle-sizes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.bundle-size-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--white); border-radius: var(--r); border: 1px solid var(--gray); cursor: pointer; transition: border-color .2s; }
.bundle-size-item:has(input:checked) { border-color: var(--orange); background: var(--orange-light); }
.bundle-size-item input { accent-color: var(--orange); width: 16px; height: 16px; }
.bundle-size-label { flex: 1; font-size: 13.5px; font-weight: 700; color: var(--text); }
.bundle-size-price { font-size: 13px; font-weight: 800; color: var(--orange); }
.bundle-total { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--gray); margin-bottom: 10px; }
.bundle-total span { font-size: 13.5px; color: var(--text2); }
.bundle-total strong { font-size: 18px; font-weight: 900; color: var(--orange); }
.btn-bundle { width: 100%; background: var(--navy); color: #fff; padding: 11px; border-radius: var(--r); font-size: 14px; font-weight: 700; border: none; cursor: pointer; font-family: 'Tajawal', sans-serif; transition: background .2s; }
.btn-bundle:hover { background: var(--orange); }

/* ============================
   Quantity
   ============================ */
.qty-section { margin-bottom: 18px; }
.qty-wrap { display: flex; align-items: center; border: 1.5px solid var(--gray); border-radius: var(--r); overflow: hidden; width: fit-content; }
.qty-btn { width: 38px; height: 38px; background: var(--off); border: none; font-size: 18px; cursor: pointer; font-weight: 700; color: var(--navy); transition: background .2s; font-family: 'Tajawal', sans-serif; }
.qty-btn:hover { background: var(--orange); color: #fff; }
.qty-input { width: 52px; height: 38px; text-align: center; border: none; border-right: 1.5px solid var(--gray); border-left: 1.5px solid var(--gray); font-family: 'Tajawal', sans-serif; font-size: 15px; font-weight: 700; color: var(--navy); background: var(--white); outline: none; }

/* ============================
   Action Buttons
   ============================ */
.product-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.btn-add-cart { width: 100%; background: var(--navy); color: #fff; padding: 14px; border-radius: var(--r); font-size: 15px; font-weight: 800; border: none; cursor: pointer; font-family: 'Tajawal', sans-serif; transition: all .2s; }
.btn-add-cart:hover { background: #243659; transform: translateY(-1px); }
.btn-buy-now { width: 100%; background: var(--orange); color: #fff; padding: 14px; border-radius: var(--r); font-size: 15px; font-weight: 800; border: none; cursor: pointer; font-family: 'Tajawal', sans-serif; transition: all .2s; }
.btn-buy-now:hover { background: #d44509; transform: translateY(-1px); }
.btn-whatsapp { width: 100%; background: rgba(37,211,102,0.08); color: #16A34A; padding: 12px; border-radius: var(--r); font-size: 14px; font-weight: 700; text-align: center; border: 1.5px solid rgba(37,211,102,0.3); display: block; transition: all .2s; }
.btn-whatsapp:hover { background: #25D366; color: #fff; }

/* ============================
   Guarantees
   ============================ */
.guarantees-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.g-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--off); border-radius: var(--r); border: 1px solid var(--gray); }
.g-icon { font-size: 20px; flex-shrink: 0; }
.g-text strong { display: block; font-size: 12px; font-weight: 800; color: var(--navy); }
.g-text span { font-size: 11px; color: var(--text3); }

/* ============================
   Trust Bar
   ============================ */
.trust-bar { display: flex; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: var(--off); border-radius: var(--r); font-size: 12px; color: var(--text2); font-weight: 900; justify-content: center; border: 1px solid var(--gray); }

/* ============================
   Tabs
   ============================ */
.product-tabs { display: flex; border-bottom: 2px solid var(--gray); }
.ptab { padding: 14px 24px; border: none; background: none; font-family: 'Tajawal', sans-serif; font-size: 14px; font-weight: 700; color: var(--text3); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all .2s; white-space: nowrap; }
.ptab:hover { color: var(--navy); }
.ptab.active { color: var(--orange); border-bottom-color: var(--orange); }
.ptab-content { display: none; padding: 24px; }
.ptab-content.active { display: block; }
.product-desc { font-size: 14.5px; color: var(--text2); line-height: 2; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(even) { background: var(--off); }
.specs-table td { padding: 12px 16px; font-size: 13.5px; border-bottom: 1px solid var(--gray); }
.spec-key { font-weight: 800; color: var(--navy); width: 35%; }
.spec-val { color: var(--text2); }
.reviews-wrap { display: flex; gap: 32px; align-items: center; }
.review-score { text-align: center; flex-shrink: 0; }
.score-num { font-size: 52px; font-weight: 900; color: var(--navy); line-height: 1; }
.score-stars { color: #F59E0B; font-size: 20px; letter-spacing: 2px; margin: 4px 0; }
.score-cnt { font-size: 12.5px; color: var(--text3); }
.review-bars { flex: 1; }
.rbar-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text2); margin-bottom: 5px; }
.rbar { flex: 1; height: 6px; background: var(--gray); border-radius: 3px; overflow: hidden; }
.rbar-fill { height: 100%; background: #F59E0B; border-radius: 3px; }

/* ============================
   Related Products
   ============================ */
.related-section { margin-top: 32px; margin-bottom: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 900; color: var(--navy); }
.section-title::before { content: ''; width: 4px; height: 22px; background: var(--orange); border-radius: 2px; display: block; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ============================
   Sticky Bar — مخفي على Desktop
   ============================ */
.sticky-bar { display: none; }

/* ============================
   نفذ المخزون
   ============================ */
.out-of-stock-box { display: flex; flex-direction: column; gap: 10px; }
.out-of-stock-label { background: #FEF2F2; color: var(--red); border: 1.5px solid #FECACA; border-radius: var(--r); padding: 12px 16px; font-weight: 700; font-size: 15px; text-align: center; }
.btn-notify-trigger { width: 100%; background: var(--white); color: var(--navy); border: 2px solid var(--navy); border-radius: var(--r); padding: 11px; font-family: 'Tajawal', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s; }
.btn-notify-trigger:hover { background: var(--navy); color: var(--white); }

/* ============================
   Modal الإبلاغ
   ============================ */
.notify-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 999; }
.notify-modal-overlay.open { display: block; }
.notify-modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--white); border-radius: var(--rl); padding: 32px 24px; width: 90%; max-width: 420px; z-index: 1000; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.notify-modal.open { display: block; }
.notify-modal-close { position: absolute; top: 12px; left: 16px; background: none; border: none; font-size: 18px; color: var(--text3); cursor: pointer; }
.notify-modal-icon { font-size: 40px; margin-bottom: 8px; }
.notify-modal-title { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.notify-modal-sub { font-size: 13px; color: var(--text3); margin-bottom: 20px; }
.notify-modal-form { display: flex; flex-direction: column; gap: 10px; }
.notify-input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray); border-radius: var(--r); font-family: 'Tajawal', sans-serif; font-size: 13px; color: var(--text); text-align: right; transition: border-color .2s; box-sizing: border-box; }
.notify-input:focus { outline: none; border-color: var(--green); }
.btn-notify { width: 100%; background: var(--green); color: #fff; padding: 12px; border-radius: var(--r); font-family: 'Tajawal', sans-serif; font-size: 14px; font-weight: 700; border: none; cursor: pointer; transition: opacity .2s; }
.btn-notify:hover { opacity: 0.85; }
.btn-notify:disabled { opacity: 0.6; cursor: not-allowed; }
.notify-msg { font-size: 13px; font-weight: 600; margin: 0; }
.notify-variant-selected { text-align: right; margin-bottom: 4px; background: rgba(27,42,74,0.06); border-radius: var(--r); padding: 8px 14px; }
.notify-variant-label { font-size: 12px; font-weight: 700; color: var(--text2); margin-bottom: 6px; display: block; }
.notify-size-options { display: flex; gap: 6px; flex-wrap: wrap; }
.notify-size-btn { padding: 6px 12px; border: 1.5px solid var(--gray); border-radius: var(--r); font-family: 'Tajawal', sans-serif; font-size: 12.5px; font-weight: 700; background: var(--white); color: var(--text); cursor: pointer; transition: all .2s; }
.notify-size-btn.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.notify-color-options { display: flex; gap: 8px; flex-wrap: wrap; }
.notify-color-btn { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid transparent; cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center; }
.notify-color-btn.active { border-color: var(--navy); }

/* ============================
   1280px — Laptop
   ============================ */
@media (max-width: 1280px) {
   
    .product-layout { grid-template-columns: 44% 56%; gap: 24px; }
    .product-title { font-size: 18px; }
    .price-now { font-size: 28px; }
}

/* ============================
   1024px — Tablet كبير
   ============================ */
@media (max-width: 1024px) {
    .product-layout { grid-template-columns: 42% 58%; gap: 20px; padding: 20px 0 32px; }
    .product-title { font-size: 17px; }
    .thumb { width: 62px; height: 62px; }
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================
   768px — موبايل
   ============================ */
@media (max-width: 768px) {
   .product-gallery {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
    .container {
    padding: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

    /* Layout عمود واحد */
.product-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
    padding: 0 0 80px;
    overflow: hidden;
}
    .product-gallery   { grid-column: 1; grid-row: 1; position: static; }
     .product-info { 
    grid-column: 1; 
    grid-row: 2; 
    padding: 12px 16px 0; 
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}    .product-tabs-wrap { grid-column: 1; grid-row: 3; margin: 16px 0 0; border-radius: 12px; width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden; }

    /* Breadcrumb */
    .bc-wrap { padding: 6px 0; }
    .breadcrumb { font-size: 11px; gap: 4px; padding: 0 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-wrap: nowrap; }

    /* الصورة — عرض كامل بدون قص */
    .main-img-wrap {
        aspect-ratio: 1 / 1;
        max-height: none;
        border-radius: 0;
        border: none;
        margin-bottom: 0;
        width: 100%;
    }

    /* الـ thumbnails تحت الصورة مباشرة */
    .thumb-list {
        padding: 10px 16px;
        background: var(--white);
        border-bottom: 1px solid var(--gray);
        margin-bottom: 0;
    }
    .thumb { width: 64px; height: 64px; }

    /* Title */
.product-title { 
    font-size: 16px; 
    word-break: break-word; 
    overflow-wrap: break-word;
    max-width: 100%;
}
    /* Price */
    .price-now { font-size: 26px; }

    /* Actions مخفية — بتظهر في الـ Sticky */
    .product-actions { display: none; }

    /* Guarantees */
    .guarantees-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
    .g-item { padding: 8px 10px; }
    .g-text strong { font-size: 11px; }
    .g-text span { font-size: 10px; }

    /* Tabs */
    .product-tabs { overflow-x: auto; scrollbar-width: none; }
    .product-tabs::-webkit-scrollbar { display: none; }
    .ptab { padding: 10px 14px; font-size: 12.5px; }
    .ptab-content { padding: 14px; }
    .product-desc { font-size: 13px; line-height: 1.9; }

    /* Reviews */
    .reviews-wrap { flex-direction: row; gap: 16px; align-items: center; }
    .score-num { font-size: 40px; }

    /* Related */
    .related-section { margin-top: 16px; margin-bottom: 0; padding: 0 16px; }
    .section-title { font-size: 16px; }
    .related-grid {
        display: flex !important;
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 8px;
        scrollbar-width: none;
        grid-template-columns: unset !important;
    }
    .related-grid::-webkit-scrollbar { display: none; }
    .related-grid > * { flex-shrink: 0; width: 160px; }

    /* Sticky Bar */
    .sticky-bar {
        display: flex !important;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 500;
        background: #fff;
        padding: 10px 16px;
        gap: 8px;
        box-shadow: 0 -4px 20px rgba(0,0,0,.12);
        border-top: 1px solid var(--gray);
    }
    .sticky-bar .btn-add-cart,
    .sticky-bar .btn-buy-now,
    .sticky-bar .btn-out-stock,
    .sticky-bar .btn-notify-trigger {
        flex: 1;
        padding: 12px 8px;
        font-size: 14px;
        border-radius: 10px;
        border: none;
        font-weight: 800;
        cursor: pointer;
        font-family: 'Tajawal', sans-serif;
        text-align: center;
    }
    .sticky-bar .btn-add-cart      { background: var(--navy);   color: #fff; }
    .sticky-bar .btn-buy-now       { background: var(--orange);  color: #fff; }
    .sticky-bar .btn-out-stock     { background: var(--gray);    color: var(--text3); cursor: not-allowed; }
    .sticky-bar .btn-notify-trigger { background: var(--navy);   color: #fff; border: none; }
}

/* ============================
   480px — موبايل صغير
   ============================ */
@media (max-width: 480px) {
    .product-info      { padding: 10px 14px 0; }
    .product-tabs-wrap { margin: 10px 10px 0; }
    .related-section   { padding: 0 14px; }
    .thumb-list        { padding: 8px 14px; }
    .product-title { font-size: 15px; }
    .price-now     { font-size: 24px; }
    .thumb         { width: 56px; height: 56px; }
    .ptab          { padding: 9px 12px; font-size: 12px; }
    .related-grid > * { width: 145px; }
    .trust-bar     { font-size: 11px; gap: 6px; }
    .sticky-bar .btn-add-cart,
    .sticky-bar .btn-buy-now { font-size: 13px; }
}

/* ============================
   375px — موبايل صغير جداً
   ============================ */
@media (max-width: 375px) {
    .product-title { font-size: 14px; }
    .price-now     { font-size: 22px; }
    .thumb         { width: 50px; height: 50px; }
    .related-grid > * { width: 130px; }
    .sticky-bar    { padding: 8px 12px; }
    .sticky-bar .btn-add-cart,
    .sticky-bar .btn-buy-now { font-size: 12px; padding: 10px 6px; }
}
.bundle-saving {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(22,163,74,0.08);
    border-radius: var(--r);
    border: 1px solid rgba(22,163,74,0.2);
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--green);
    font-weight: 700;
    flex-wrap: wrap;
    gap: 6px;
}
.product-actions,
.guarantees-grid,
.trust-bar,
.qty-section {
    max-width: 100%;
    box-sizing: border-box;
}
/* ============================
   Recently Viewed Grid
   ============================ */
.recently-viewed-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 16px;
    scrollbar-width: none;
    padding-bottom: 8px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}
.recently-viewed-grid::-webkit-scrollbar { display: none; }
.recently-viewed-grid > * {
    flex-shrink: 0;
    width: 220px;
    scroll-snap-align: start;
}
/* ============================
   Zoom Lens — Desktop فقط
   ============================ */
.zoom-lens {
    display: none;
    position: absolute;
    border: 2px solid var(--orange);
    background: rgba(232,80,10,0.1);
    cursor: crosshair;
    z-index: 10;
    pointer-events: none;
}

.zoom-result {
    display: none;
    position: fixed;
    width: 380px;
    height: 380px;
    border: 1px solid var(--gray);
    border-radius: var(--rl);
    background-repeat: no-repeat;
    background-color: var(--white);
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
    z-index: 999;
    overflow: hidden;
    pointer-events: none;
}

@media (max-width: 768px) {
    .zoom-lens, .zoom-result { display: none !important; }
}
.bundle-box {
    max-width: 93%;
    box-sizing: border-box;
    overflow: hidden;
}
/* ============================
   إخفاء Contact Bar في صفحة المنتج
   عشان الـ Sticky Bar بتاع السلة يظهر
   ============================ */
.sticky-contact-bar { display: none !important; }