/* Product Details Page Styles */
.product-details-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding-top: 100px;
}

.product-hero {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.product-image-gallery {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.main-product-image {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    padding: 2rem;
}

.main-product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-product-image:hover img {
    transform: scale(1.05);
}

.product-thumbnails {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(246, 114, 128, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 2.5rem;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-text {
    color: var(--gray-600);
    font-weight: 500;
}

.product-price {
    margin-bottom: 2rem;
}

.price-current {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-right: 1rem;
}

.price-original {
    font-size: 1.5rem;
    color: var(--gray-500);
    text-decoration: line-through;
    margin-right: 1rem;
}

.price-discount {
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-description {
    margin-bottom: 2rem;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 0.8rem;
}

.product-actions {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    height: 55px;
}

.quantity-btn {
    width: 50px;
    height: 100%;
    border: none;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.quantity-btn i {
    font-size: 0.9rem;
}

.quantity-btn:hover {
    filter: brightness(1.1);
    transform: none;
}

.quantity-input {
    width: 60px;
    height: 100%;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    background: white;
    color: var(--gray-800);
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    height: 55px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(246, 114, 128, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(246, 114, 128, 0.4);
    color: white;
}

.secondary-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.secondary-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    background: white;
    color: var(--gray-700);
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.secondary-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-meta {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.meta-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.meta-content h6 {
    margin: 0;
    font-weight: 600;
    color: var(--gray-800);
}

.meta-content small {
    color: var(--gray-600);
}

.product-tabs {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 3rem 0;
}

.nav-tabs {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid var(--gray-200);
    padding: 0 2rem;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--gray-600);
    font-weight: 600;
    padding: 1.5rem 2rem;
    position: relative;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background: rgba(246, 114, 128, 0.05);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: white;
    border-bottom: 3px solid var(--primary-color);
}

.tab-content {
    padding: 3rem;
}

.tab-pane h4 {
    color: var(--gray-800);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.tab-pane h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.specs-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.specs-table th {
    background: var(--gradient-light);
    color: var(--gray-800);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border: none;
}

.specs-table td {
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 1px solid #f0f0f0;
}

.review-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.review-score {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.rating-breakdown {
    margin: 2rem 0;
}

.rating-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.rating-label {
    width: 20px;
    font-weight: 600;
    color: var(--gray-700);
}

.rating-progress {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    margin: 0 1rem;
    overflow: hidden;
}

.rating-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rating-percentage {
    width: 40px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.review-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.reviewer-info {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.verified-badge {
    background: var(--gradient-secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.review-date {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.review-title {
    font-weight: 600;
    color: var(--gray-800);
    margin: 1rem 0 0.5rem 0;
}

.related-products {
    margin: 4rem 0;
}

.related-products h3 {
    color: var(--gray-800);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.related-product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.related-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.related-product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.1);
}

.product-discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.related-product-content {
    padding: 1.5rem;
}

.related-product-title {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.related-product-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.related-product-original-price {
    color: var(--gray-500);
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}

.zoom-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .product-details-wrapper {
        padding-top: 80px;
    }

    .product-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .price-current {
        font-size: 1.8rem;
    }

    .main-product-image {
        height: 250px;
        padding: 1rem;
    }

    .thumbnail-item {
        width: 60px;
        height: 60px;
    }

    .product-info {
        padding: 1.25rem;
    }

    .product-actions {
        padding: 1.5rem;
    }

    .nav-tabs {
        padding: 0 1rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-bottom: 2px solid var(--gray-200);
    }

    .nav-tabs .nav-link {
        padding: 1rem 1.25rem;
        white-space: nowrap;
    }

    .tab-content {
        padding: 1.5rem 1rem;
    }

    .specs-table th {
        width: 120px !important;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .specs-table td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .review-summary {
        padding: 1.5rem;
    }

    .review-score {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 1.5rem;
    }

    .price-current {
        font-size: 1.5rem;
    }

    .product-actions .d-flex {
        flex-direction: column;
    }

    .quantity-selector {
        width: 100%;
        justify-content: space-between;
    }

    .add-to-cart-btn {
        width: 100%;
    }

    .secondary-actions {
        flex-direction: column;
    }

    .secondary-btn {
        width: 100%;
    }

    .breadcrumb-item {
        font-size: 0.85rem;
    }
}

.pros-cons-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.rating-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.rating-label {
    width: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.rating-progress {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}

.rating-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
}

.rating-percentage {
    width: 35px;
    font-size: 0.85rem;
    color: #718096;
    text-align: right;
}
