/* =====================================================
           PRODUCT DETAILS PAGE
        ===================================================== */

.product-breadcrumb {
    background: #f8f9fb;
    padding: 17px 0;
    border-bottom: 1px solid #e5e7eb;
}

.product-breadcrumb a {
    color: #6b7280;
    font-size: 12px;
}

.product-breadcrumb span {
    color: #111827;
    font-size: 12px;
    font-weight: 600;
}

/* =====================================================
           PRODUCT GALLERY
        ===================================================== */

.product-gallery {
    display: flex;
    gap: 14px;
}

.thumbnail-list {
    width: 78px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail {
    width: 78px;
    height: 82px;

    border: 1px solid #e5e7eb;
    border-radius: 8px;

    overflow: hidden;

    background: #f8f9fb;

    cursor: pointer;

    transition: 0.25s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #ff6b35;
}

.thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.main-product-image {
    position: relative;

    flex: 1;

    min-height: 570px;

    background: #f8f9fb;

    border-radius: 12px;

    overflow: hidden;
}

.main-product-image img {
    width: 100%;
    height: 100%;

    min-height: 570px;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.image-zoom {
    position: absolute;

    right: 18px;
    top: 18px;

    width: 40px;
    height: 40px;

    border: none;

    border-radius: 50%;

    background: #fff;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #111827;

    cursor: pointer;
}

/* =====================================================
           PRODUCT INFO
        ===================================================== */

.product-info {
    padding-left: 25px;
}

.product-brand {
    color: #ff6b35;

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 10px;
}

.detail-title {
    color: #111827;

    font-size: 34px;
    font-weight: 800;

    line-height: 1.25;

    margin-bottom: 13px;
}

.detail-rating {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 18px;
}

.rating-box {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    background: #16a34a;
    color: #fff;

    padding: 5px 9px;

    border-radius: 5px;

    font-size: 12px;
    font-weight: 700;
}

.review-count {
    color: #6b7280;
    font-size: 12px;
}

.detail-price {
    color: #111827;

    font-size: 32px;
    font-weight: 800;

    margin-bottom: 4px;
}

.detail-old-price {
    color: #9ca3af;

    font-size: 15px;

    text-decoration: line-through;

    margin-left: 7px;
}

.discount-text {
    color: #16a34a;

    font-size: 13px;
    font-weight: 700;

    margin-left: 8px;
}

.tax-text {
    color: #6b7280;

    font-size: 11px;

    margin-bottom: 20px;
}

.detail-divider {
    border-top: 1px solid #e5e7eb;

    margin: 20px 0;
}

/* =====================================================
           COLOR
        ===================================================== */

.option-title {
    color: #111827;

    font-size: 13px;
    font-weight: 700;

    margin-bottom: 10px;
}

.color-options {
    display: flex;
    gap: 9px;

    margin-bottom: 20px;
}

.color-option {
    width: 34px;
    height: 34px;

    border-radius: 50%;

    border: 3px solid #fff;

    outline: 1px solid #d1d5db;

    cursor: pointer;

    transition: 0.2s;
}

.color-option:hover,
.color-option.active {
    outline: 2px solid #ff6b35;
}

.color-black {
    background: #111827;
}

.color-white {
    background: #fff;
}

.color-blue {
    background: #2563eb;
}

.color-brown {
    background: #92400e;
}

/* =====================================================
           SIZE
        ===================================================== */

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 20px;
}

.size-option {
    min-width: 48px;

    padding: 9px 14px;

    border: 1px solid #d1d5db;

    background: #fff;

    border-radius: 6px;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}

.size-option:hover,
.size-option.active {
    border-color: #111827;

    background: #111827;

    color: #fff;
}

/* =====================================================
           QUANTITY
        ===================================================== */

.quantity-box {
    display: flex;
    align-items: center;

    width: fit-content;

    border: 1px solid #d1d5db;

    border-radius: 7px;

    overflow: hidden;

    margin-bottom: 20px;
}

.quantity-btn {
    width: 38px;
    height: 38px;

    border: none;

    background: #f8f9fb;

    color: #111827;

    font-size: 16px;

    cursor: pointer;
}

.quantity-btn:hover {
    background: #e5e7eb;
}

.quantity-input {
    width: 45px;
    height: 38px;

    border: none;

    text-align: center;

    outline: none;

    font-size: 13px;
    font-weight: 700;
}

/* =====================================================
           ACTION BUTTONS
        ===================================================== */

.product-actions {
    display: flex;
    gap: 10px;

    margin-bottom: 20px;
}

.btn-add-cart {
    flex: 1;

    min-height: 48px;

    background: #111827;

    color: #fff;

    border: 1px solid #111827;

    border-radius: 7px;

    font-size: 13px;
    font-weight: 700;

    transition: 0.3s;
}

.btn-add-cart:hover {
    background: #ff6b35;
    border-color: #ff6b35;
}

.btn-buy-now {
    flex: 1;

    min-height: 48px;

    background: #ff6b35;

    color: #fff;

    border: 1px solid #ff6b35;

    border-radius: 7px;

    font-size: 13px;
    font-weight: 700;

    transition: 0.3s;
}

.btn-buy-now:hover {
    background: #e85a27;
    border-color: #e85a27;
}

.btn-wishlist {
    width: 50px;

    min-height: 48px;

    background: #fff;

    color: #111827;

    border: 1px solid #d1d5db;

    border-radius: 7px;

    font-size: 19px;

    transition: 0.3s;
}

.btn-wishlist:hover,
.btn-wishlist.active {
    color: #ff6b35;

    border-color: #ff6b35;
}

/* =====================================================
           DELIVERY
        ===================================================== */

.delivery-box {
    padding: 17px;

    background: #f8f9fb;

    border: 1px solid #e5e7eb;

    border-radius: 9px;

    margin-bottom: 15px;
}

.delivery-title {
    color: #111827;

    font-size: 13px;
    font-weight: 700;

    margin-bottom: 11px;
}

.pincode-form {
    display: flex;
    gap: 7px;
}

.pincode-form input {
    flex: 1;

    height: 40px;

    border: 1px solid #d1d5db;

    border-radius: 6px;

    padding: 0 12px;

    font-size: 12px;

    outline: none;
}

.pincode-form input:focus {
    border-color: #ff6b35;
}

.pincode-btn {
    height: 40px;

    padding: 0 17px;

    border: none;

    background: #111827;

    color: #fff;

    border-radius: 6px;

    font-size: 11px;
    font-weight: 700;
}

.delivery-result {
    color: #16a34a;

    font-size: 11px;

    margin-top: 8px;

    display: none;
}

/* =====================================================
           OFFERS
        ===================================================== */

.offer-row {
    display: flex;
    gap: 12px;

    margin-bottom: 10px;
}

.offer-icon {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    background: #fff1eb;

    color: #ff6b35;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-row strong {
    display: block;

    color: #111827;

    font-size: 12px;
}

.offer-row span {
    color: #6b7280;

    font-size: 11px;
}

/* =====================================================
           PRODUCT TABS
        ===================================================== */

.product-tabs {
    margin-top: 70px;
}

.product-tabs .nav-tabs {
    border-bottom: 1px solid #e5e7eb;
}

.product-tabs .nav-link {
    border: none;

    color: #6b7280;

    padding: 15px 22px;

    font-size: 13px;
    font-weight: 600;
}

.product-tabs .nav-link:hover {
    color: #ff6b35;
}

.product-tabs .nav-link.active {
    color: #111827;

    background: transparent;

    border-bottom: 2px solid #ff6b35;
}

.tab-content {
    padding: 30px 5px;
}

.tab-content h5 {
    color: #111827;

    font-size: 17px;
    font-weight: 700;

    margin-bottom: 15px;
}

.tab-content p,
.tab-content li {
    color: #6b7280;

    font-size: 13px;

    line-height: 1.8;
}

/* =====================================================
           SPECIFICATIONS
        ===================================================== */

.spec-table {
    width: 100%;
}

.spec-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.spec-table td {
    padding: 12px 8px;

    font-size: 12px;
}

.spec-table td:first-child {
    width: 35%;

    color: #6b7280;
}

.spec-table td:last-child {
    color: #111827;

    font-weight: 600;
}

/* =====================================================
           REVIEW
        ===================================================== */

.review-summary {
    display: flex;
    align-items: center;

    gap: 30px;

    padding-bottom: 30px;

    border-bottom: 1px solid #e5e7eb;
}

.review-score {
    text-align: center;
}

.review-score strong {
    display: block;

    color: #111827;

    font-size: 45px;
    font-weight: 800;
}

.review-score span {
    color: #f59e0b;

    font-size: 15px;
}

.review-progress {
    flex: 1;

    max-width: 400px;
}

.rating-bar {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 6px;
}

.rating-bar span {
    width: 35px;

    color: #6b7280;

    font-size: 10px;
}

.progress {
    flex: 1;

    height: 6px;

    background: #e5e7eb;
}

.progress-bar {
    background: #f59e0b;
}

.review-item {
    padding: 22px 0;

    border-bottom: 1px solid #e5e7eb;
}

.review-user {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 9px;
}

.review-avatar {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    object-fit: cover;
}

.review-user strong {
    display: block;

    color: #111827;

    font-size: 12px;
}

.review-user small {
    color: #9ca3af;

    font-size: 10px;
}

.review-item p {
    color: #6b7280;

    font-size: 12px;

    line-height: 1.7;
}

/* =====================================================
           RELATED PRODUCTS
        ===================================================== */

.related-products {
    margin-top: 60px;
}

/* =====================================================
           IMAGE MODAL
        ===================================================== */

.image-modal .modal-content {
    background: #111827;

    border: none;
}

.image-modal .modal-body {
    padding: 0;
}

.image-modal img {
    width: 100%;

    max-height: 85vh;

    object-fit: contain;
}

/* =====================================================
           RESPONSIVE
        ===================================================== */

@media (max-width: 991px) {
    .product-info {
        padding-left: 0;

        margin-top: 35px;
    }

    .main-product-image,
    .main-product-image img {
        min-height: 480px;
    }
}

@media (max-width: 767px) {
    .product-gallery {
        flex-direction: column-reverse;
    }

    .thumbnail-list {
        width: 100%;

        flex-direction: row;

        overflow-x: auto;
    }

    .thumbnail {
        flex-shrink: 0;

        width: 65px;
        height: 65px;
    }

    .main-product-image,
    .main-product-image img {
        min-height: 400px;
    }

    .detail-title {
        font-size: 27px;
    }

    .detail-price {
        font-size: 27px;
    }

    .product-actions {
        flex-wrap: wrap;
    }

    .btn-add-cart,
    .btn-buy-now {
        min-width: calc(50% - 30px);
    }

    .btn-wishlist {
        width: 50px;
    }

    .review-summary {
        flex-direction: column;

        align-items: flex-start;
    }

    .review-progress {
        width: 100%;
    }

    .product-tabs {
        margin-top: 45px;
    }

    .product-tabs .nav-link {
        padding: 12px 10px;

        font-size: 11px;
    }
}

.wishlist-form {
    margin: 0;
    padding: 0;
    display: inline-flex;
}

.product-wishlist-wrapper {
    display: flex;
    align-items: center;
}

.wishlist-form button {
    cursor: pointer;
}

.wishlist-form button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}