/* --- تنسيقات فتات الخبز (Breadcrumbs) --- */
.breadcrumb { background: transparent; padding: 0; margin: 0; font-size: 12px; display: flex; flex-wrap: nowrap; align-items: center; white-space: nowrap; overflow: hidden; }
.breadcrumb-item { display: inline-flex !important; align-items: center !important; float: none !important; }
.breadcrumb-item + .breadcrumb-item::before { content: "›" !important; font-size: 18px !important; line-height: 1 !important; color: #999 !important; padding: 0 5px !important; display: inline-block !important; }
.breadcrumb-item a { text-decoration: none; color: #6c757d; font-weight: normal; }
.breadcrumb-item.active a { color: #0e2f44; }

/* --- تنسيقات أزرار الشراء --- */
.pdp-action-buttons-custom { display: flex; gap: 10px; width: 100%; margin-top: 15px; padding: 0; box-sizing: border-box; }
.noon-btn-wrapper { margin: 0 !important; padding: 0 !important; border: none !important; flex: 1; }
.noon-std-btn, .buy-now-btn { height: 45px !important; font-size: 15px !important; font-weight: 700 !important; border-radius: 6px !important; display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; transition: all 0.2s ease-in-out; margin: 0 !important; box-shadow: none !important; width: 100% !important; }
.noon-std-btn { background-color: #db3030 !important; color: #fff !important; border: 2px solid #db3030 !important; }
.buy-now-btn { background-color: #0e2f44 !important; color: #fff !important; border: 2px solid #0e2f44 !important; }

/* --- تنسيقات المعرض (Gallery) --- */
.pdp-gallery-box { width: 100% !important; position: relative; }
.gallery-container-flex { display: flex; flex-direction: row-reverse; gap: 10px; height: auto; width: 100%; align-items: flex-start; }
.product-gallery-wrapper { position: relative !important; width: 100% !important; height: auto !important; display: block !important; overflow: hidden !important; background-color: #fff; border-radius: 8px; aspect-ratio: auto !important; padding-bottom: 25px; }
.mySwiper2 { width: 100% !important; height: auto !important; padding-bottom: 0 !important; }
.mySwiper2 .swiper-slide { width: 100% !important; height: auto !important; display: flex; align-items: center; justify-content: center; }
.product-img { width: 100% !important; height: auto !important; max-height: 500px; object-fit: contain !important; display: block !important; }
.gallery-thumbs-vertical { width: 18% !important; height: auto !important; max-height: 500px; overflow-y: auto; }
.gallery-thumbs-vertical .swiper-slide { width: 100% !important; height: auto !important; aspect-ratio: 1/1; opacity: 0.6; cursor: pointer; border: 1px solid #eee; border-radius: 6px; overflow: hidden; margin-bottom: 8px !important; }
.gallery-thumbs-vertical .swiper-slide-thumb-active { opacity: 1; border-color: #0e2f44; }
.gallery-thumbs-vertical .swiper-slide img { width: 100%; height: 100%; object-fit: contain; }
.pdp-swiper-pagination { position: absolute !important; bottom: 5px !important; left: 50% !important; transform: translateX(-50%) !important; width: auto !important; z-index: 50 !important; display: flex !important; align-items: center; justify-content: center; gap: 0 !important; padding: 2px 10px !important; background: rgba(255,255,255,0.7); border-radius: 20px; pointer-events: none !important; }
.pdp-swiper-pagination .swiper-pagination-bullet { width: 30px !important; height: 30px !important; padding: 11px !important; background-color: #999 !important; background-clip: content-box !important; opacity: 0.6 !important; margin: 0 !important; display: block !important; border-radius: 50%; box-sizing: border-box !important; pointer-events: none !important; border: none !important; }
.pdp-swiper-pagination .swiper-pagination-bullet-active { background-color: #0e2f44 !important; background-clip: content-box !important; opacity: 1 !important; width: 30px !important; height: 30px !important; }

/* --- تنسيقات التبويبات والمحتوى --- */
.pdp-description-box { width: 100% !important; display: block !important; clear: both !important; margin-top: 25px !important; }
.pdp-layout-wrapper { align-items: flex-start !important; }
.pdp-title { font-size: 18px !important; line-height: 1.4; margin-bottom: 10px; }
.pdp-tabs-container .tab-content { display: none; }
.pdp-tabs-container .tab-content.active-content { display: block; }
.pdp-description-box ul { padding-inline-start: 20px; margin-bottom: 15px; }
.pdp-description-box li { margin-bottom: 5px; }
.btn-view-all-modern { background-color: #0e2f44; color: #fff !important; border: 2px solid #0e2f44; padding: 12px 40px; border-radius: 50px; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(14, 47, 68, 0.15); text-decoration: none; }
.btn-view-all-modern:hover { background-color: #fff; color: #0e2f44 !important; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(14, 47, 68, 0.2); }

/* --- تنسيقات التقسيط --- */
.installment-box { margin-top: 15px; padding: 12px; background-color: #fff; border: 1px solid #f1f1f1; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; box-sizing: border-box; }
.installment-text-group { display: flex; align-items: center; gap: 3px; font-size: 13px; color: #666; flex-wrap: nowrap; white-space: nowrap; font-weight: 400; }
.installment-amount { color: #0e2f44; font-weight: 800; font-size: 15px; margin: 0 2px; }
.payment-partners { display: flex; align-items: center; justify-content: space-between; flex: 1; margin-right: 40px; }
.partner-logo { height: 45px; width: auto; object-fit: contain; }

/* --- تنسيقات البدائل (Alternative Products) --- */
.alt-prod-section { background-color: transparent; margin-top: 20px; margin-bottom: 10px; }
.alt-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding: 0 5px; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.alt-title { font-size: 18px; font-weight: 700; color: #0e2f44; position: relative; }
.alt-title::after { content: ''; position: absolute; bottom: -9px; right: 0; width: 40px; height: 3px; background-color: #db3030; border-radius: 2px; }
.alt-card { border: none; border-radius: 8px; background: #fff; padding: 8px; height: 100%; display: flex; flex-direction: column; position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.alt-card:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(0,0,0,0.1); }
.alt-top-meta { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #888; margin-bottom: 4px; height: 18px; }
.alt-brand { font-weight: 700; color: #555; text-transform: uppercase; }
.alt-origin { background: #f4f4f4; padding: 1px 4px; border-radius: 3px; font-size: 9px; color: #333; }
.alt-img-wrap { height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; overflow: hidden; }
.alt-img-wrap img { max-width: 90%; max-height: 90%; object-fit: contain; transition: transform 0.3s ease; }
.alt-card:hover .alt-img-wrap img { transform: scale(1.05); }
.alt-name { font-size: 12px; font-weight: 600; color: #333; line-height: 1.3; height: 32px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 6px; text-decoration: none; }
.alt-name:hover { color: #db3030; }
.alt-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 5px; border-top: 1px solid #f9f9f9; padding-top: 6px; }
.alt-price { font-size: 14px; color: #0e2f44; font-weight: 800; display: flex; flex-direction: column; line-height: 1; }
.alt-curr { font-size: 10px; font-weight: normal; color: #767676; margin-top: 2px; }
.alt-btn { background: #fff; color: #db3030; border: 1px solid #db3030; padding: 4px 8px; font-size: 11px; font-weight: 700; border-radius: 4px; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 4px; height: 28px; }
.alt-btn:hover { background: #db3030; color: #fff; }
.alt-nav-btn { color: #0e2f44 !important; width: 28px !important; height: 28px !important; background: #fff; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.1); border: 1px solid #eee; }
.alt-nav-btn::after { font-size: 10px !important; font-weight: 800; }

/* --- Responsive (Mobile) --- */
@media (min-width: 768px) {
    .pdp-action-buttons-custom { flex-direction: row; }
    .buy-now-btn { flex: 1; width: auto !important; }
}
@media (max-width: 991px) {
    .gallery-container-flex { flex-direction: column; }
    .gallery-thumbs-vertical { display: none !important; }
    .product-gallery-wrapper { width: 100% !important; border: none; }
    .product-img { max-height: 400px; }
}
@media (min-width: 992px) {
    .pdp-swiper-pagination { display: none !important; }
}
@media (max-width: 767px) {
    .pdp-action-buttons-custom { flex-direction: column; }
    .noon-btn-wrapper, .noon-std-btn, .buy-now-btn { width: 100% !important; }
    .pdp-layout-wrapper { display: flex !important; flex-direction: column !important; }
    .pdp-info-box, .pdp-description-box, .pdp-gallery-box { width: 100% !important; }
    .alt-prod-section { margin-top: 15px; margin-bottom: 5px; }
    .alt-btn span { display: none; }
    .alt-btn { width: 30px !important; height: 30px !important; border-radius: 50% !important; padding: 0 !important; justify-content: center; border-color: #eee; color: #0e2f44; background: #f4f6f8; }
    .alt-btn:active, .alt-btn:hover { background: #0e2f44; color: #fff; border-color: #0e2f44; }
    .alt-btn i { font-size: 16px; margin: 0; }
    .alt-img-wrap { height: 100px; }
    .alt-name { font-size: 11px; height: 28px; margin-bottom: 4px; }
}
@media (max-width: 450px) { 
    .installment-box { flex-direction: column; gap: 11px; padding: 13px; border-color: #f8f8f8; align-items: center; } 
    .installment-text-group { font-size: 13px; justify-content: center; width: 100%; color: #444; } 
    .installment-amount { font-size: 14px; } 
    .payment-partners { width: 100%; justify-content: space-between; display: flex; align-items: center; padding: 0 5px; margin: 0; gap: 5px; } 
    .partner-logo { height: 30px; width: auto; max-width: 22%; object-fit: contain; } 
}