﻿/* Product Detail Styles */
.product-detail-wrap {
    margin-bottom: 3rem;
}

/* Images Column */
.product-images-column {
    position: relative;
}

.gallery-main {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

    .gallery-main img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

.gallery-thumbs {
    position: relative;
}

.product-main-video-button {
    position: absolute;
    top: 20%;
    left: 0;
    z-index: 11;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #dc3545;
    background: #fff;
    border: 0;
    border-radius: 9px;
    box-shadow: 0 0 5px rgba(0, 0, 0, .63);
    font-size: 18px;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    direction: ltr;
    isolation: isolate;
    transition: width .3s ease, padding .3s ease, background-color .3s ease, color .3s ease;
}

.product-main-video-button:hover,
.product-main-video-button:focus,
.product-main-video-button:focus-visible {
    width: 205px;
    justify-content: flex-start;
    padding: 0 14px;
    border-radius: 9px;
    color: #fff;
    background: #dc3545;
}

.product-main-video-button::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    width: 170%;
    aspect-ratio: 1;
    background: conic-gradient(from 0deg, transparent 0deg 280deg, rgba(220, 53, 69, .15) 300deg, #dc3545 330deg, rgba(220, 53, 69, .15) 350deg, transparent 360deg);
    animation: product-main-video-light 4s ease-in-out infinite;
}

.product-main-video-button:hover::before,
.product-main-video-button:focus::before,
.product-main-video-button:focus-visible::before {
    background: conic-gradient(from 0deg, transparent 0deg 280deg, rgba(255, 255, 255, .1) 300deg, #fff 330deg, rgba(255, 255, 255, .1) 350deg, transparent 360deg);
}

.product-main-video-button::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 2px;
    border-radius: 7px;
    background: #fff;
    transition: background-color .3s ease;
}

.product-main-video-button:hover::after,
.product-main-video-button:focus::after,
.product-main-video-button:focus-visible::after {
    background: #dc3545;
}

.product-main-video-button i {
    position: relative;
    z-index: 2;
    flex: 0 0 18px;
}

.product-main-video-button span {
    position: relative;
    z-index: 2;
    direction: rtl;
    text-align: right;
    max-width: 0;
    margin-left: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    transition: max-width .3s ease, margin-left .3s ease, opacity .2s ease;
}

.product-main-video-button:hover span,
.product-main-video-button:focus span,
.product-main-video-button:focus-visible span {
    max-width: 150px;
    margin-left: 9px;
    opacity: 1;
}

@keyframes product-main-video-light {
    0%, 40% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(0deg);
    }

    45% {
        opacity: 1;
    }

    75% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(360deg);
    }

    80%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-main-video-button {
        transition: none;
    }

    .product-main-video-button::before {
        animation: none;
    }
}

    .gallery-thumbs .swiper-slide {
        opacity: 0.6;
        cursor: pointer;
        border-radius: 6px;
        overflow: hidden;
        border: 1px solid #eee;
    }

        .gallery-thumbs .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .gallery-thumbs .swiper-slide-thumb-active {
        opacity: 1;
        border-color: #0a0b0b;
    }

.social-buttons-vertical {
    position: absolute;
    top: 20%;
    display: flex;
    flex-direction: column;
    z-index: 10;
}



    .social-buttons-vertical button {
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 25%;
        background: #fff;
        box-shadow: 0 0px 5px rgba(0, 0, 0, 0.63);
        border: none;
        margin-bottom: 8px;
        transition: all 0.2s ease;
        font-size: 25px;
        transition: all 0.3s ease;
    }

    .social-buttons-vertical #wishlist-container button {
        color: #f72222;
    }
    .social-buttons-vertical .share button {
        color: #0057df;
    }
    .social-buttons-vertical #wishlist-container button:hover, .social-buttons-vertical #wishlist-container button.active {
        background-color: #f72222;
        color: white;
        transition: all 0.3s ease;
    }

    .social-buttons-vertical .share button:hover {
        background-color: #0057df;
        color: white;
        transition: all 0.3s ease;
    }

/* Product Info Column */
.product-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.product-subtitle {
    color: #666;
    font-size: 16px;
}

.product-category a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.product-description {
    color: #555;
    line-height: 1.8;
}

.read-more-btn {
    background: none;
    border: none;
    color: #007bff;
    padding: 0;
    font-size: 14px;
    cursor: pointer;
}

/* Specifications */
.product-specs {
    margin-bottom: 20px;
}

.specs-title, .colors-title, .sizes-title, .request-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.spec-box {
    margin-bottom: 10px;
}

    .spec-box .title {
        font-weight: 600;
        margin-bottom: 5px;
        color: #333;
    }

    .spec-box .spec {
        color: #555;
    }

/* Colors and Sizes */

.size-guide-btn {
    background: none;
    border: none;
    color: #007bff;
    padding: 0;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

/* Request Options */
.req-label {
    display: block;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    margin: 0;
}

    .req-label.active {
        border-color: #007bff;
        background-color: #e6f2ff;
    }

/* Price and Action Column */
.product-price-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-price .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
}

.product-price .discount-price,
.product-price .final-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.stock-alert .alert {
    margin-bottom: 0;
    padding: 10px;
    font-size: 14px;
}

/* Features Section */
.feature-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.feature-title {
    font-weight: 600;
    font-size: 14px;
}

.feature-text {
    font-size: 12px;
    color: #777;
}

.ch-102 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

    .ch-102 i {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        margin-right: 10px;
        flex-shrink: 0;
    }



html[dir="rtl"] .ch-102 i {
    margin-right: 0;
    margin-left: 10px;
}

/* Active/Inactive states for description */
.div-des.active {
    display: block;
}

.div-des.inactive {
    display: none;
}
.product-action-column {
    padding: 0;
    align-self: flex-start;
    position: sticky;
    top: 6rem;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .product-images-column,
    .product-info-column,
    .product-action-column {
        margin-bottom: 30px;
    }

    .product-price-card {
        max-width: 500px;
        margin: 0 auto;
    }
}
/* Add these styles to your product-detail.css file */
.product-section-box {
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

    .product-section-box .section-title {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 15px;
        color: #333;
        position: relative;
        padding-right: 15px;
    }

        .product-section-box .section-title::before {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 5px;
            height: 18px;
            background-color: var(--color-primary);
            border-radius: 2px;
        }

.product-options-group {
    padding: 10px 0;
}

.options-divider {
    margin: 3px 0;
    border-top: 1px solid #eee;
    opacity: 0.7;
}


.price-prd .price {
    font-size: 2rem;
}
/* Style for request title */
.request-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
}

/* Improved styling for specification boxes */
.spec-content {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

    .spec-content:hover {
        background-color: var(--rgba-primary-1);
    }
.el-106 {
    background: whitesmoke;
    padding: 5px 4px;
    border-radius: 6px;
}
/* Add these styles to your product-detail.css file */

/* Make the price card sticky */
.sticky-price-card {
    position: relative;
    top: auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    z-index: 10;
}


/* Handle smaller screens */
@media (max-width: 991px) {
    .product-action-column {
        position: relative;
        top: 0;
        align-self: auto;
    }

    .sticky-price-card {
        max-height: none;
        overflow-y: visible;
    }
}

/* Add some breathing room at the bottom of the price card */
.sticky-price-card > *:last-child {
    margin-bottom: 10px;
}

/* Ensure the price card has a nice shadow when sticky */
.sticky-price-card.is-sticky {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Add these styles to your product-detail.css file */

/* Desktop Support Button Styles */
.desktop-support-button .btn-outline-primary {
    border: 1px solid var(--color-primary);
    background-color: transparent;
    transition: all 0.3s ease;
}

    .desktop-support-button .btn-outline-primary:hover {
        background-color: var(--color-primary);
    }

.desktop-support-button .support-btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

    .desktop-support-button .support-btn-text i {
        font-size: 18px;
    }

/* Effect for the button */
.effect1 {
    position: relative;
    overflow: hidden;
}

    .effect1::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transition: 0.5s;
    }

    .effect1:hover::before {
        left: 100%;
    }

/* Related Products Box Styles */
.related-products-box {
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

    .related-products-box .related-title {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 12px;
        color: #333;
        position: relative;
        padding-right: 12px;
    }

        .related-products-box .related-title::before {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 15px;
            background-color: var(--color-primary);
            border-radius: 2px;
        }

.related-products-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-product-item {
    padding: 8px;
    border-radius: 6px;
    box-shadow: 0 0 4px #55545259;
    transition: all 0.2s ease;
}

    .related-product-item:hover {
        background-color: #f2f2f2;
        box-shadow: 0 0 4px #55545259;
    }

    .related-product-item a {
        text-decoration: none;
        color: inherit;
        display: block;
    }

.related-product-content {
    display: flex;
    align-items: center;
}

.related-product-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    padding: 2px;
}

    .related-product-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.related-product-info {
    flex-grow: 1;
    overflow: hidden;
}

.related-product-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 3em;
}

.related-product-price {
    font-size: 12px;
    text-align: left;
}

    .related-product-price .discount-info {
        display: flex;
        align-items: center;
        gap: 5px;
        margin-bottom: 2px;
        justify-content: left;
    }

    .related-product-price .original-price {
        font-size: 11px;
        color: #999;
        text-decoration: line-through;
    }

    .related-product-price .discount-badge {
        background-color: #e74c3c;
        color: white;
        font-size: 10px;
        padding: 1px 4px;
        border-radius: 3px;
        font-weight: bold;
    }

    .related-product-price .final-price {
        font-size: 14px;
        font-weight: 700;
        color: #333;
    }

    .related-product-price .unit {
        font-size: 11px;
        color: #666;
        font-weight: normal;
    }
.inbasket{
    font-size:13px;
}
.swiper-backface-hidden .swiper-slide {
    transform: none;
}
.product-gallery .gallery-thumbs {
    padding-block: 6px;
}

/* Element 101: nested buying-benefits box (ChildTypes 115/116) */
.buying-benefits-box {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #f7f8fa;
}

.buying-benefits-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}

.buying-benefits-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    margin: 0;
    color: #374151;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.5;
}

.buying-benefits-title i,
.buying-benefits-toggle {
    color: var(--color-primary, #e53935);
}

.buying-benefits-toggle {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: .75rem;
    font-weight: 500;
}

.buying-benefits-toggle:hover,
.buying-benefits-toggle:focus-visible {
    text-decoration: underline;
}

.buying-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

.buying-benefit-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    padding: .5rem;
    border-radius: .75rem;
    background: #fff;
    transition: box-shadow .2s ease, color .2s ease;
}

.buying-benefit-item:hover {
    color: var(--color-primary, #e53935);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}

.buying-benefit-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: .5rem;
    color: var(--color-primary, #e53935);
    background: color-mix(in srgb, var(--color-primary, #e53935) 10%, transparent);
    font-size: .75rem;
}

.buying-benefit-text {
    overflow: hidden;
    color: #374151;
    font-size: .75rem;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.buying-benefits-box.is-collapsed .buying-benefit-item:nth-child(n + 7) {
    display: none;
}

/* Element 101: data-backed product facts above the basket button */
.purchase-facts {
    margin-bottom: .75rem;
}

.purchase-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

.purchase-fact-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 5rem;
    padding: .65rem;
    padding-inline-start: 2.25rem;
    border-radius: .75rem;
    background: #f8f9fb;
}

.purchase-fact-icon {
    position: absolute;
    inset-inline-start: .75rem;
    top: 50%;
    color: #9aa4b5;
    font-size: .9rem;
    transform: translateY(-50%);
}

.purchase-fact-label {
    margin-bottom: .25rem;
    color: #7b8495;
    font-size: .65rem;
}

.purchase-fact-value {
    overflow: hidden;
    color: #1f2937;
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.purchase-fact-value.is-available {
    color: #079447;
}

.purchase-fact-value.is-unavailable {
    color: #dc3545;
}

.purchase-stock-status {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
    padding: .7rem .85rem;
    border-radius: .75rem;
    background: #f8f9fb;
    color: #374151;
    font-size: .75rem;
}

.purchase-stock-dot {
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    background: #dc3545;
}

.purchase-stock-status.is-available .purchase-stock-dot {
    background: #34d399;
}

@media (max-width: 420px) {
    .buying-benefits-box {
        padding: .75rem;
    }

    .buying-benefit-item {
        padding: .45rem;
    }

    .purchase-fact-card {
        min-height: 4.5rem;
        padding-inline-end: 2rem;
    }
}
