/* ==================== PRODUCT DETAIL PAGE ==================== */

.product-detail-page {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Product Detail Section */
.product-detail-section {
    padding: 40px 0 60px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-bottom: 40px;
}

/* ========== PRODUCT IMAGES ========== */
.product-images-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    position: relative;
    width: 100%;
    height: 500px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.thumbnail {
    width: 100%;
    height: 100px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail:hover {
    border-color: #00b96b;
}

.thumbnail.active {
    border-color: #00b96b;
    box-shadow: 0 0 0 2px rgba(0, 185, 107, 0.2);
}

.thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ========== PRODUCT INFO ========== */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #6c757d;
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e7f5ef;
    color: #00b96b;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-sku {
    font-weight: 600;
}

.product-info-section .product-title {
    font-size: 28px !important;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 15px 0;
    /* No height restriction for detail page */
    height: auto !important;
    max-height: none !important;
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
}

.product-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-rating {
    display: flex;
    gap: 4px;
    color: #ffc107;
    font-size: 16px;
}

.rating-count {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.product-price {
    font-size: 36px;
    font-weight: 700;
    color: #00b96b;
}

.compare-price {
    font-size: 24px;
    color: #adb5bd;
    text-decoration: line-through;
}

.discount-badge {
    background: #ff3366;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-stock {
    font-size: 15px;
    font-weight: 600;
}

.in-stock {
    color: #00b96b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.out-of-stock {
    color: #dc3545;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-description {
    color: #495057;
    line-height: 1.7;
    font-size: 15px;
}

.product-actions {
    display: flex;
    gap: 12px;
    padding-top: 10px;
}

.btn-add-to-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: #00b96b;
    color: #ffffff;
    border: 2px solid #00b96b;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-to-cart:hover:not(:disabled) {
    background: #009955;
    border-color: #009955;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 185, 107, 0.3);
}

.btn-add-to-cart:disabled {
    background: #dee2e6;
    border-color: #dee2e6;
    color: #868e96;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-add-to-cart:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-wishlist-detail {
    width: 56px;
    height: 56px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    color: #495057;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wishlist-detail:hover {
    background: #ffffff;
    border-color: #ff3366;
    color: #ff3366;
}

.btn-wishlist-detail.active {
    background: #ff3366;
    border-color: #ff3366;
    color: #ffffff;
}

.product-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-item i {
    font-size: 28px;
    color: #00b96b;
}

.feature-item strong {
    display: block;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-item span {
    color: #6c757d;
    font-size: 13px;
}

/* ========== PRODUCT TABS ========== */
.product-tabs {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 40px;
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    padding: 18px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #00b96b;
    background: #f8f9fa;
}

.tab-btn.active {
    color: #00b96b;
    border-bottom-color: #00b96b;
}

.tabs-content {
    padding: 40px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.tab-pane p {
    color: #495057;
    line-height: 1.8;
    font-size: 15px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #e9ecef;
}

.specs-table td {
    padding: 16px 0;
    color: #495057;
    font-size: 15px;
}

.specs-table td:first-child {
    width: 200px;
}

.reviews-summary {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 30px;
}

.average-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: #00b96b;
}

.average-rating .stars {
    font-size: 24px;
    color: #ffc107;
}

.total-reviews {
    color: #6c757d;
    font-size: 14px;
}

.no-reviews {
    text-align: center;
    color: #adb5bd;
    font-style: italic;
}

/* ========== RELATED PRODUCTS ========== */
.related-products-section {
    padding: 60px 0 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: #6c757d;
    font-size: 16px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px;
    }

    .main-image {
        height: 400px;
    }

    .product-title {
        font-size: 22px;
    }

    .product-price {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .product-detail-grid {
        padding: 20px;
    }

    .main-image {
        height: 300px;
    }

    .thumbnail-images {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-title {
        font-size: 20px;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-wishlist-detail {
        width: 100%;
    }

    .tabs-nav {
        flex-direction: column;
    }

    .tab-btn {
        border-bottom: 1px solid #e9ecef;
        border-left: 3px solid transparent;
    }

    .tab-btn.active {
        border-bottom-color: #e9ecef;
        border-left-color: #00b96b;
    }

    .tabs-content {
        padding: 24px;
    }
}
