/* ==========================================================================
   Product Detail Page - Dedicated Styles
   ========================================================================== */

/* ---- Image Gallery ---- */
.splide-main .splide__slide {
    border-radius: 8px;
    overflow: hidden;
}

.splide-main .splide__slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.splide-thumb .splide__slide {
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.splide-thumb .splide__slide.is-active {
    opacity: 1;
    border: 2px solid #af261d;
}

.splide-thumb .splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-splide__arrow--prev,
.p-splide__arrow--next {
    border-radius: 50%;
}

/* ---- Product Title ---- */
.product-detail-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--bs-heading-color);
}

/* ---- Tenure / Rent Section ---- */
.rent-tenure .card {
    border-radius: 10px;
}

.tenure-radio-btn {
    border: 1px solid #e2e9e1;
    padding: 8px 8px 8px 30px;
    border-radius: 5px;
    margin-bottom: 4px;
    transition: border-color 0.2s ease;
}

.tenure-radio-btn:hover {
    border-color: #af261d;
}

.at-rate {
    color: #af261d;
    font-size: 19px;
    font-weight: 600;
}

.cat-item-delivery-info1 {
    font-size: 13px;
    color: #666;
    display: block;
    margin-top: 8px;
}

.button-add-to-cart {
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
}

/* ---- Coupon Section ---- */
.coupon-section {
    border-color: #af261d !important;
}

.product-coupon-section {
    border-radius: 2px;
    border: 1.1px dashed #bfcfdc !important;
}

.coupon-data {
    margin-top: 10px;
}

.coupon-body {
    padding-top: 15px;
    padding-bottom: 0;
}

.coupon-button {
    float: right;
    padding: 3px 10px;
    font-size: 13px;
}

.coupon-code {
    color: #000;
    font-weight: 700;
}

.coupon-description {
    font-size: 13px;
    line-height: 1.5;
}

.more-offers-text {
    cursor: pointer;
    color: #af261d;
    text-align: right;
    font-weight: 600;
    margin-bottom: 0;
    transition: color 0.2s ease;
}

.more-offers-text:hover {
    color: #8a1e17;
}

/* ---- Coupon Sidebar ---- */
.coupon-sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    overflow-x: hidden;
    transition: width 0.35s ease;
    padding-top: 60px;
    background-color: #f5f7fa;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.coupon-sidebar-content {
    padding: 20px;
}

.coupon-sidebar .closebtn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: #333;
    line-height: 1;
}

/* ---- Tabs (Description / FAQ) ---- */
.product-tabs-nav .nav-link {
    font-weight: 600;
    color: #555;
    border-radius: 6px;
    padding: 8px 16px;
}

.product-tabs-nav .nav-link.active {
    color: #fff;
    background-color: #af261d;
}

.tab-content .card {
    border: none;
}

.tab-content .card-header {
    background: transparent;
    border-bottom: 1px solid #eee;
    padding: 0 0 12px 0;
}

.tab-content .card-body {
    padding: 16px 0;
}

/* ---- Description / Feature Images ---- */
.related-images .image-section {
    margin-bottom: 20px;
}

.related-images .image-section img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

/* ---- Related Products ---- */
.related-products-section .card {
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-products-section .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-products-section .card img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.related-products-section .card-title a {
    color: var(--bs-heading-color);
    text-decoration: none;
}

.related-products-section .card-title a:hover {
    color: #af261d;
}

/* ---- Help Card ---- */
.help-card {
    border-radius: 10px;
}

.help-card .list-group-item {
    background: transparent;
    border: none;
}

.help-card .list-group-item a {
    color: var(--bs-heading-color);
    text-decoration: none;
}

.help-card .list-group-item a:hover {
    color: #af261d;
}

/* ---- Razorpay Widget ---- */
#razorpay-affordability-widget {
    margin-bottom: 10px;
}

/* ---- Tooltip ---- */
.tooltip-success .tooltip-inner {
    background-color: green;
}

.tooltip-error .tooltip-inner {
    background-color: red;
}

/* ---- Form check (radio) ---- */
.form-check-input:checked {
    background-color: #af261d;
    border-color: #af261d;
}

/* ---- Desktop / Mobile description toggle ---- */
.mobile-description {
    display: none;
}

.desktop-description {
    display: block;
}

/* ---- Out of Stock Button ---- */
.btn-out-of-stock {
    background-color: grey !important;
    border-color: grey !important;
    cursor: not-allowed;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media only screen and (max-width: 480px) {
    .product-detail-title {
        font-size: 1.4rem;
    }

    .mobile-description {
        display: block;
    }

    .desktop-description {
        display: none;
    }

    .rent-tenure {
        margin-top: 30px;
    }

    .at-rate {
        font-size: 16px !important;
    }

    .tenure-radio-btn {
        padding: 4px 4px 4px 30px;
    }

    .coupon-sidebar {
        max-width: 100vw;
    }
}

@media (max-width: 768px) {
    .coupon-button {
        width: unset !important;
    }
}