/* ==========================================================================
   PRODUCT DETAILS PAGE (SURGICAL FIXES)
   Strictly scoped to .product-page to prevent affecting any other page
   ========================================================================== */

/* 1. LAYOUT & STICKY INFO CARD */
.product-page.detail-active,
.product-page {
    padding-bottom: 110px !important;
}

.product-page .detail-page-wrapper {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

/* Safe clearance for floating action button (+) so it never touches or overlaps the info card */
@media (min-width: 901px) and (max-width: 1350px) {
    .product-page .detail-page-wrapper {
        padding-inline-start: 70px !important;
    }
}

html .product-page .product-detail-content,
html[dir="rtl"] .product-page .product-detail-content,
html[dir="ltr"] .product-page .product-detail-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 40px !important;
    align-items: start !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 900px) {
    html .product-page .product-detail-content,
    html[dir="rtl"] .product-page .product-detail-content,
    html[dir="ltr"] .product-page .product-detail-content,
    [dir="rtl"] .product-page .product-detail-content,
    .product-page .product-detail-content {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 100% !important;
        gap: 25px !important;
        width: 100% !important;
    }
}

.product-page .detail-gallery {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    position: relative !important;
}

.product-page .detail-info {
    width: 100% !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 30px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
}

html[data-theme="dark"] .product-page .detail-info {
    background: #180917 !important;
    border-color: rgba(212, 175, 55, 0.2) !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6) !important;
}

@media (min-width: 901px) {
    .product-page .detail-info {
        position: sticky !important;
        top: 96px !important;
        z-index: 10 !important;
    }
}

/* 2. GALLERY MAIN IMAGE & ARROWS (Aspect ratio 3/4, max height min(78vh, 760px), contain centered) */
.product-page .main-img-container {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    aspect-ratio: 3 / 4 !important;
    max-height: min(78vh, 760px) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background: #f8f9fa !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

html[data-theme="dark"] .product-page .main-img-container {
    background: #140513 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.product-page .main-img-container img#detailProductImg,
.product-page .main-img-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
}

/* Gallery Arrows: 44px round, placed inside image edges relative to image box */
.product-page .gallery-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    color: #1a202c !important;
    font-size: 15px !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.product-page .gallery-nav-btn:hover {
    background: #ffffff !important;
    transform: translateY(-50%) scale(1.08) !important;
}

/* RTL: prev is right edge, next is left edge */
.product-page .gallery-nav-btn.prev {
    inset-inline-start: 14px !important;
    inset-inline-end: auto !important;
    right: 14px !important;
    left: auto !important;
}

.product-page .gallery-nav-btn.next {
    inset-inline-end: 14px !important;
    inset-inline-start: auto !important;
    right: auto !important;
    left: 14px !important;
}

/* LTR: prev is left edge, next is right edge */
[dir="ltr"] .product-page .gallery-nav-btn.prev {
    left: 14px !important;
    right: auto !important;
}

[dir="ltr"] .product-page .gallery-nav-btn.next {
    right: 14px !important;
    left: auto !important;
}

html[data-theme="dark"] .product-page .gallery-nav-btn {
    background: rgba(30, 10, 28, 0.92) !important;
    border-color: rgba(212, 175, 55, 0.35) !important;
    color: #D4AF37 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .product-page .gallery-nav-btn:hover {
    background: rgba(50, 15, 45, 0.98) !important;
}

/* 3. THUMBNAIL STRIP (Portrait rounded thumbnails, smooth scroll, clean centering) */
.product-page .thumb-list-wrapper {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 14px auto 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.product-page .thumb-list-wrapper.has-nav {
    padding: 0 38px !important;
}

.product-page .thumb-list {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: thin !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 6px 4px !important;
}

.product-page .thumb-list-wrapper.has-nav .thumb-list {
    justify-content: flex-start !important;
}

.product-page .thumb-list::-webkit-scrollbar {
    height: 4px !important;
}

.product-page .thumb-list::-webkit-scrollbar-thumb {
    background: rgba(90, 24, 53, 0.3) !important;
    border-radius: 4px !important;
}

.product-page .thumb-list img,
.product-page .thumb-list .thumb {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    height: 86px !important;
    min-height: 86px !important;
    max-height: 86px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    scroll-snap-align: center !important;
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
    box-sizing: border-box !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.product-page .thumb-list img:hover,
.product-page .thumb-list .thumb:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(90, 24, 53, 0.4) !important;
}

.product-page .thumb-list img.active,
.product-page .thumb-list .thumb.active {
    border-color: var(--accent-burgundy, #5A1835) !important;
    box-shadow: 0 0 0 2.5px rgba(212, 175, 55, 0.55) !important;
    transform: scale(1.03) !important;
}

html[data-theme="dark"] .product-page .thumb-list img,
html[data-theme="dark"] .product-page .thumb-list .thumb {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .product-page .thumb-list img:hover,
html[data-theme="dark"] .product-page .thumb-list .thumb:hover {
    border-color: rgba(212, 175, 55, 0.5) !important;
}

html[data-theme="dark"] .product-page .thumb-list img.active,
html[data-theme="dark"] .product-page .thumb-list .thumb.active {
    border-color: #D4AF37 !important;
    box-shadow: 0 0 0 2.5px rgba(212, 175, 55, 0.4) !important;
}

.product-page .thumb-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
    color: #333333 !important;
    transition: background 0.2s ease, transform 0.15s ease !important;
}

.product-page .thumb-nav-btn.prev {
    inset-inline-start: 4px !important;
    inset-inline-end: auto !important;
    right: 4px !important;
    left: auto !important;
}

.product-page .thumb-nav-btn.next {
    inset-inline-end: 4px !important;
    inset-inline-start: auto !important;
    right: auto !important;
    left: 4px !important;
}

[dir="ltr"] .product-page .thumb-nav-btn.prev {
    left: 4px !important;
    right: auto !important;
}

[dir="ltr"] .product-page .thumb-nav-btn.next {
    right: 4px !important;
    left: auto !important;
}

.product-page .thumb-nav-btn:hover {
    background: #f7f7f9 !important;
    transform: translateY(-50%) scale(1.08) !important;
}

html[data-theme="dark"] .product-page .thumb-nav-btn {
    background: #1e0a1c !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    color: #D4AF37 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

/* 4. "خصم" BADGE (Inside image corner with AA contrast) & OLD PRICE */
.product-page .badge.sale,
.product-page #detailSaleBadge {
    position: absolute !important;
    top: 14px !important;
    inset-inline-start: 14px !important;
    background: #e53e3e !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.35) !important;
    z-index: 8 !important;
}

/* Header & Title Alignment */
.product-page .detail-header-center {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.product-page #detailProductName {
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    color: var(--text-main, #1a202c) !important;
    margin: 0 !important;
}

.product-page .product-sku,
.product-page #detailProductSKU {
    font-size: 13px !important;
    color: #718096 !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

html[data-theme="dark"] .product-page #detailProductName {
    color: #f7fafc !important;
}

html[data-theme="dark"] .product-page #detailProductSKU {
    color: #a0aec0 !important;
}

/* Price Box */
.product-page .detail-price-box {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 14px 18px !important;
    background: #faf7f8 !important;
    border-radius: 14px !important;
    border: 1px solid rgba(90, 24, 53, 0.08) !important;
    margin: 0 !important;
}

html[data-theme="dark"] .product-page .detail-price-box {
    background: rgba(212, 175, 55, 0.06) !important;
    border-color: rgba(212, 175, 55, 0.15) !important;
}

.product-page .detail-price-main {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.product-page .detail-current-price,
.product-page #detailProductPrice {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: var(--accent-burgundy, #5A1835) !important;
    line-height: 1.1 !important;
}

.product-page .detail-current-price small {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #718096 !important;
    margin-inline-start: 4px !important;
}

html[data-theme="dark"] .product-page .detail-current-price,
html[data-theme="dark"] .product-page #detailProductPrice {
    color: #F7D070 !important;
}

html[data-theme="dark"] .product-page .detail-current-price small {
    color: #cbd5e0 !important;
}

.product-page .detail-old-price,
.product-page #detailOldPrice {
    text-decoration: line-through !important;
    color: #a0aec0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

.product-page .detail-old-price small {
    font-size: 12px !important;
    font-weight: 500 !important;
}

html[data-theme="dark"] .product-page .detail-old-price,
html[data-theme="dark"] .product-page #detailOldPrice {
    color: #718096 !important;
}

.product-page #detailDiscountTag {
    display: inline-flex !important;
    align-items: center !important;
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid rgba(220, 38, 38, 0.2) !important;
    border-radius: 20px !important;
    padding: 3px 10px !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

html[data-theme="dark"] .product-page #detailDiscountTag {
    background: rgba(220, 38, 38, 0.2) !important;
    color: #f87171 !important;
    border-color: rgba(220, 38, 38, 0.35) !important;
}

/* Detail Options & Alignments */
.product-page .detail-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding: 16px 0 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    margin: 0 !important;
}

html[data-theme="dark"] .product-page .detail-options {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.product-page .option-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 !important;
}

.product-page .option-item h4 {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--text-main, #2d3748) !important;
    margin: 0 !important;
}

html[data-theme="dark"] .product-page .option-item h4 {
    color: #f7fafc !important;
}

.product-page .option-header-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
}

.product-page .size-guide-link a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--accent-burgundy, #5A1835) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

html[data-theme="dark"] .product-page .size-guide-link a {
    color: #D4AF37 !important;
}

/* Detail Total Row */
.product-page .detail-total-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 13px 18px !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    border: 1px dashed rgba(0, 0, 0, 0.12) !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: var(--text-main, #1a202c) !important;
    margin: 0 !important;
}

.product-page #detailTotalPrice {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--accent-burgundy, #5A1835) !important;
}

html[data-theme="dark"] .product-page .detail-total-row {
    background: #231122 !important;
    border-color: rgba(212, 175, 55, 0.25) !important;
    color: #f7fafc !important;
}

html[data-theme="dark"] .product-page #detailTotalPrice {
    color: #F7D070 !important;
}

/* 5. QUANTITY STEPPER & SIZE SELECT (Uniform 50px height, 10px radius, neutral border) */
.product-page .custom-select-trigger,
.product-page .detail-qty-selector {
    height: 50px !important;
    min-height: 50px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-sizing: border-box !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.product-page .custom-select-trigger {
    background: #ffffff !important;
    color: var(--text-main, #1a202c) !important;
    padding: 0 16px !important;
    box-shadow: none !important;
    outline: none !important;
}

.product-page .custom-select-trigger:hover {
    border-color: var(--accent-burgundy, #5A1835) !important;
}

.product-page .custom-select-container.active .custom-select-trigger,
.product-page .custom-select-trigger:focus-visible {
    border-color: var(--accent-burgundy, #5A1835) !important;
    box-shadow: 0 0 0 2px rgba(90, 24, 53, 0.25) !important;
    outline: none !important;
}

html[data-theme="dark"] .product-page .custom-select-trigger {
    background: #140513 !important;
    border-color: rgba(212, 175, 55, 0.25) !important;
    color: #f7fafc !important;
}

html[data-theme="dark"] .product-page .custom-select-trigger:hover,
html[data-theme="dark"] .product-page .custom-select-container.active .custom-select-trigger {
    border-color: #D4AF37 !important;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3) !important;
}

.product-page .detail-qty-selector {
    background: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 140px !important;
    padding: 0 !important;
    overflow: hidden !important;
}

html[data-theme="dark"] .product-page .detail-qty-selector {
    background: #140513 !important;
    border-color: rgba(212, 175, 55, 0.25) !important;
}

.product-page .detail-qty-selector .qty-btn {
    width: 44px !important;
    height: 50px !important;
    border: none !important;
    background: transparent !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    color: var(--text-main, #2d3748) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

.product-page .detail-qty-selector .qty-btn.minus {
    border-inline-end: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.product-page .detail-qty-selector .qty-btn.plus {
    border-inline-start: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.product-page .detail-qty-selector .qty-btn:hover {
    background: rgba(90, 24, 53, 0.08) !important;
    color: var(--accent-burgundy, #5A1835) !important;
}

html[data-theme="dark"] .product-page .detail-qty-selector .qty-btn {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .product-page .detail-qty-selector .qty-btn.minus {
    border-inline-end: 1px solid rgba(212, 175, 55, 0.15) !important;
}

html[data-theme="dark"] .product-page .detail-qty-selector .qty-btn.plus {
    border-inline-start: 1px solid rgba(212, 175, 55, 0.15) !important;
}

html[data-theme="dark"] .product-page .detail-qty-selector .qty-btn:hover {
    background: rgba(212, 175, 55, 0.15) !important;
    color: #D4AF37 !important;
}

.product-page .detail-qty-selector #detailQtyInput {
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    width: 48px !important;
    height: 50px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: var(--text-main, #1a202c) !important;
    outline: none !important;
}

html[data-theme="dark"] .product-page .detail-qty-selector #detailQtyInput {
    color: #f7fafc !important;
}

/* 6. PRIMARY & SECONDARY ACTION BUTTONS (Same 52px height, 10px radius, AA contrast) */
.product-page .detail-footer-actions {
    margin-top: 25px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.product-page .primary-actions {
    display: flex !important;
    gap: 12px !important;
    width: 100% !important;
}

.product-page .detail-wishlist-btn {
    width: 52px !important;
    height: 52px !important;
    border-radius: 10px !important;
    border: 1.5px solid rgba(0, 0, 0, 0.12) !important;
    background: #ffffff !important;
    cursor: pointer !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--text-main, #2d3748) !important;
    transition: border-color 0.2s, background 0.2s !important;
    flex-shrink: 0 !important;
}

.product-page .detail-wishlist-btn:hover {
    border-color: #e53e3e !important;
    color: #e53e3e !important;
}

html[data-theme="dark"] .product-page .detail-wishlist-btn {
    background: #180917 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #e2e8f0 !important;
}

.product-page .add-to-cart-hero {
    flex: 1 !important;
    height: 52px !important;
    border-radius: 10px !important;
    border: none !important;
    background: var(--accent-burgundy, #5A1835) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s ease, transform 0.15s ease !important;
    box-shadow: 0 4px 14px rgba(90, 24, 53, 0.25) !important;
}

.product-page .add-to-cart-hero:hover {
    background: #471329 !important;
    transform: translateY(-1px) !important;
}

/* Secondary Button: "اشتر الآن" (Outline style, WCAG AA contrast, active state) */
.product-page .buy-now-btn {
    width: 100% !important;
    height: 52px !important;
    border-radius: 10px !important;
    border: 2px solid var(--accent-burgundy, #5A1835) !important;
    background: transparent !important;
    color: var(--accent-burgundy, #5A1835) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease !important;
    box-shadow: none !important;
}

.product-page .buy-now-btn:hover {
    background: var(--accent-burgundy, #5A1835) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

html[data-theme="dark"] .product-page .buy-now-btn {
    border-color: #D4AF37 !important;
    color: #D4AF37 !important;
    background: rgba(212, 175, 55, 0.05) !important;
}

html[data-theme="dark"] .product-page .buy-now-btn:hover {
    background: #D4AF37 !important;
    color: #180917 !important;
}

/* Disabled button state for out-of-stock */
.product-page .add-to-cart-hero:disabled,
.product-page .buy-now-btn:disabled,
.product-page .add-to-cart-hero[disabled],
.product-page .buy-now-btn[disabled] {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none !important;
    box-shadow: none !important;
}

/* 7. PAYMENT BADGES (7 Egyptian payment methods: InstaPay, Bank, Vodafone, Etisalat, Mobinil, WE, Fawry) */
.product-page .payment-methods-detail {
    margin: 0 !important;
    text-align: center !important;
    background: #fafafb !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="dark"] .product-page .payment-methods-detail {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.product-page .payment-methods-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #4a5568 !important;
    margin-bottom: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

html[data-theme="dark"] .product-page .payment-methods-title {
    color: #cbd5e0 !important;
}

.product-page .payment-methods-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.product-page .payment-badge-chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 32px !important;
    padding: 0 12px !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.09) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    box-sizing: border-box !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
    white-space: nowrap !important;
    transition: transform 0.15s ease, border-color 0.15s ease !important;
}

.product-page .payment-badge-chip:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

.product-page .badge-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
}

.product-page .dot-instapay { background: #7A1CAC !important; }
.product-page .dot-vodafone { background: #E60000 !important; }
.product-page .dot-etisalat { background: #78BE20 !important; }
.product-page .dot-mobinil { background: #FF7900 !important; }
.product-page .dot-wepay { background: #5C1D8D !important; }
.product-page .dot-fawry { background: #F5A623 !important; }
.product-page .payment-badge-chip--bank i { color: #2563EB !important; font-size: 11px !important; }

html[data-theme="dark"] .product-page .payment-badge-chip {
    background: #231122 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f7fafc !important;
}

html[data-theme="dark"] .product-page .payment-badge-chip:hover {
    border-color: rgba(212, 175, 55, 0.4) !important;
}

/* Free Shipping & Out of Stock Banners */
.product-page .free-shipping-banner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: rgba(16, 185, 129, 0.08) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    margin: 0 !important;
}

html[data-theme="dark"] .product-page .free-shipping-banner {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #34d399 !important;
}

.product-page .out-of-stock-banner {
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: rgba(229, 62, 62, 0.1) !important;
    color: #E53E3E !important;
    border: 1px solid rgba(229, 62, 62, 0.25) !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
}

.product-page .detail-footer-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 4px 0 0 !important;
}

/* 8. DESCRIPTION & DIVIDERS (Inner padding, max line length 70ch, soft theme dividers) */
.product-page .detail-description {
    margin-top: 25px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 20px 0 10px !important;
    max-width: 70ch !important;
}

html[data-theme="dark"] .product-page .detail-description {
    border-top-color: rgba(212, 175, 55, 0.15) !important;
}

.product-page .detail-description h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    color: var(--text-main, #2d3748) !important;
}

html[data-theme="dark"] .product-page .detail-description h3 {
    color: #e2e8f0 !important;
}

.product-page .product-desc {
    font-size: 15px !important;
    line-height: 1.85 !important;
    color: var(--text-muted, #718096) !important;
    max-width: 70ch !important;
    margin: 0 !important;
}

html[data-theme="dark"] .product-page .product-desc {
    color: #a0aec0 !important;
}

.product-page .btn-toggle-desc {
    display: none;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 10px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    color: var(--accent-burgundy, #5A1835) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    text-align: start !important;
}

html[data-theme="dark"] .product-page .btn-toggle-desc {
    color: #D4AF37 !important;
}

.product-page .detail-options,
.product-page .detail-total-row,
.product-page .product-share-box {
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="dark"] .product-page .detail-options,
html[data-theme="dark"] .product-page .detail-total-row,
html[data-theme="dark"] .product-page .product-share-box {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* 9. VISUALLY HIDE INTERNAL ERP SKU / POS CODE (DOM preserved for tracking) */
.product-page .product-sku,
.product-page #detailProductSKU {
    display: none !important;
}
