/* Breadcrumb Section */
.breadcrumb-section {
    background: white;
    margin-top: 20px;
    border-bottom: 1px solid var(--gray-light);
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--gray-medium);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--dark-color);
    font-weight: 500;
}

/* Product Details Section */
.product-details-section {
    padding: 3rem 0;
    background: white;
}

/* Product Images - Left Side */
.product-images-wrapper {
    position: sticky;
    top: 100px;
}

.main-image-container {
    position: relative;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 1 / 1;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.main-image-container:hover .main-product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--danger-color);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
}

.wishlist-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--dark-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.wishlist-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.wishlist-btn.active {
    background: var(--primary-color);
    color: white;
}

.wishlist-btn.active i {
    font-weight: 900;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumbnail-item {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail-item:hover {
    border-color: var(--primary-color);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info - Right Side */
.product-info-wrapper {
    padding-left: 2rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Rating Section */
.product-rating-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.rating-stars {
    color: var(--warning-color);
    font-size: 1.1rem;
}

.rating-text {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.reviews-count {
    color: var(--gray-medium);
    font-size: 0.95rem;
}

/* Price Section */
.product-price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.old-price {
    font-size: 1.5rem;
    color: var(--gray-medium);
    text-decoration: line-through;
}

.save-badge {
    background: var(--success-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Availability Section */
.availability-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.in-stock {
    color: var(--success-color);
    font-weight: 600;
    font-size: 1rem;
}

.stock-count {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* Description */
.product-description {
    margin-bottom: 2rem;
}

.product-description p {
    color: var(--gray-medium);
    font-size: 1rem;
    line-height: 1.7;
}

/* Color Selection */
.color-selection {
    margin-bottom: 2rem;
}

.selection-label {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.color-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: var(--transition);
}

.color-option:hover {
    border-color: var(--gray-light);
}

.color-option.active {
    border-color: var(--primary-color);
    background: rgba(18, 53, 89, 0.05);
}

.color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--gray-light);
    transition: var(--transition);
}

.color-option.active .color-circle {
    box-shadow: 0 0 0 2px var(--primary-color);
    transform: scale(1.1);
}

.color-name {
    font-size: 0.85rem;
    color: var(--gray-medium);
    font-weight: 500;
}

.color-option.active .color-name {
    color: var(--primary-color);
    font-weight: 600;
}

/* Quantity Section */
.quantity-section {
    margin-bottom: 2rem;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    width: 45px;
    height: 45px;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-color);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-input {
    width: 60px;
    height: 45px;
    border: none;
    border-left: 2px solid var(--gray-light);
    border-right: 2px solid var(--gray-light);
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-color);
    background: white;
}

.quantity-input:focus {
    outline: none;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-add-cart {
    flex: 1;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Product Features */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(18, 53, 89, 0.03);
    border-radius: var(--border-radius);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    color: var(--dark-color);
    font-size: 0.95rem;
}

.feature-text span {
    color: var(--gray-medium);
    font-size: 0.85rem;
}

/* Product Meta */
.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-light);
}

.meta-item {
    display: flex;
    gap: 0.5rem;
}

.meta-label {
    font-weight: 600;
    color: var(--dark-color);
    min-width: 80px;
}

.meta-value {
    color: var(--gray-medium);
}

/* Product Tabs Section */
.product-tabs-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.product-tabs {
    border-bottom: 2px solid var(--gray-light);
    margin-bottom: 2rem;
}

.product-tabs .nav-link {
    border: none;
    color: var(--gray-medium);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 0;
    transition: var(--transition);
}

.product-tabs .nav-link:hover {
    color: var(--primary-color);
}

.product-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border-bottom: 3px solid var(--primary-color);
}

/* Specifications Content */
.specifications-content {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
}

.specifications-content h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table tbody tr {
    border-bottom: 1px solid var(--gray-light);
}

.specifications-table tbody tr:last-child {
    border-bottom: none;
}

.specifications-table td {
    padding: 1rem;
}

.spec-label {
    font-weight: 600;
    color: var(--dark-color);
    width: 30%;
}

.spec-value {
    color: var(--gray-medium);
}

/* Files Content */
.files-content {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
}

.files-content h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.files-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.file-item:hover {
    background: #e9ecef;
}

.file-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.5rem;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.file-size {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.download-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    background: var(--primary-dark);
    color: white;
}

/* Reviews Content */
.reviews-content {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
}

.reviews-summary {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-light);
}

.rating-overview {
    text-align: center;
}

.average-rating {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.rating-stars-large {
    color: var(--warning-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.total-reviews {
    color: var(--gray-medium);
    font-size: 1rem;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info {
    flex: 1;
}

.reviewer-info h5 {
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.review-rating {
    color: var(--warning-color);
    font-size: 0.9rem;
}

.review-date {
    color: var(--gray-medium);
    font-size: 0.85rem;
}

.review-body p {
    color: var(--gray-medium);
    line-height: 1.6;
    margin: 0;
}

/* Related Products Section */
.related-products-section {
    padding: 3rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--gray-medium);
    font-size: 1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-info-wrapper {
        padding-left: 0;
        margin-top: 2rem;
    }

    .product-images-wrapper {
        position: relative;
        top: 0;
    }

    .product-title {
        font-size: 1.8rem;
    }

    .current-price {
        font-size: 2rem;
    }

    .old-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .breadcrumb-section {
        padding: 1rem 0;
    }

    .product-details-section {
        padding: 2rem 0;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 1.8rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-add-cart {
        width: 100%;
    }

    .thumbnail-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .product-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .specifications-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .spec-label {
        width: 40%;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .file-actions {
        width: 100%;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .product-price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .current-price {
        font-size: 1.6rem;
    }

    .color-options {
        gap: 0.5rem;
    }

    .color-option {
        padding: 0.5rem;
    }

    .color-circle {
        width: 35px;
        height: 35px;
    }

    .product-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .product-tabs .nav-link {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.75rem;
    }

    .average-rating {
        font-size: 3rem;
    }

    .review-header {
        flex-wrap: wrap;
    }

    .reviewer-avatar {
        width: 40px;
        height: 40px;
    }
}