/* Product Page Specific Styles */

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    margin-top: 80px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: #8b7355;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #6d5a44;
}

.breadcrumb-nav span {
    color: #999;
}

.breadcrumb-nav span:last-child {
    color: #333;
    font-weight: 500;
}

/* Product Detail Layout */
.product-detail {
    padding: 3rem 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Product Images */
.product-images {
    position: sticky;
    top: 100px;
}

.main-image {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

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

.zoom-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.main-image:hover .zoom-btn {
    opacity: 1;
}

.zoom-btn:hover {
    background: #8b7355;
    color: white;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #8b7355;
    transform: scale(1.05);
}

/* Product Info */
.product-info {
    padding-left: 2rem;
}

.product-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.product-rating .stars {
    color: #f39c12;
    font-size: 1.1rem;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

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

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #8b7355;
}

.original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
}

.discount {
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-description {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: #555;
    font-size: 1.1rem;
}

/* Product Options */
.product-options {
    margin-bottom: 2rem;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

.size-options {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.size-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.size-btn:hover,
.size-btn.active {
    border-color: #8b7355;
    background: #8b7355;
    color: white;
}

.size-guide {
    color: #8b7355;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 1rem;
}

.size-guide:hover {
    text-decoration: underline;
}

.color-options {
    display: flex;
    gap: 0.5rem;
}

.color-btn {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-btn:hover,
.color-btn.active {
    border-color: #8b7355;
    transform: scale(1.1);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.qty-btn:hover {
    background: #8b7355;
    color: white;
}

.qty-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
    background: white;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.add-to-cart-btn {
    flex: 1;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.buy-now-btn {
    flex: 1;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.wishlist-btn-detail {
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
    transition: all 0.3s ease;
}

.wishlist-btn-detail:hover,
.wishlist-btn-detail.active {
    border-color: #e74c3c;
    color: #e74c3c;
    background: #fef2f2;
}

/* Product Features */
.product-features {
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: #8b7355;
    width: 30px;
}

.feature-item h4 {
    margin-bottom: 0.2rem;
    color: #2c3e50;
}

.feature-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Product Tabs */
.product-tabs {
    padding: 3rem 0;
    background: #f8f9fa;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    color: #8b7355;
    border-bottom-color: #8b7355;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.tab-panel h4 {
    color: #8b7355;
    margin: 1.5rem 0 1rem 0;
}

.tab-panel ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.tab-panel li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Specifications Table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.spec-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.spec-table td:first-child {
    font-weight: 600;
    color: #2c3e50;
    width: 30%;
}

.spec-table tr:hover {
    background: #f8f9fa;
}

/* Care Instructions */
.care-instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.care-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #8b7355;
}

.care-item i {
    font-size: 1.5rem;
    color: #8b7355;
    margin-top: 0.2rem;
}

.care-item h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.care-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Reviews */
.reviews-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.rating-overview {
    text-align: center;
}

.overall-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: #8b7355;
}

.overall-rating .stars {
    font-size: 1.5rem;
    color: #f39c12;
}

.total-reviews {
    color: #666;
    font-size: 1.1rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #eee;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info h4 {
    margin-bottom: 0.3rem;
    color: #2c3e50;
}

.reviewer-info .stars {
    color: #f39c12;
    font-size: 0.9rem;
}

.review-date {
    color: #999;
    font-size: 0.9rem;
}

.review-content p {
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Related Products */
.related-products {
    padding: 3rem 0;
    background: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-info {
        padding-left: 0;
    }
    
    .product-images {
        position: static;
    }
    
    .product-header h1 {
        font-size: 2rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .add-to-cart-btn,
    .buy-now-btn {
        width: 100%;
    }
    
    .tabs-header {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .care-instructions {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
    
    .product-header h1 {
        font-size: 1.8rem;
    }
    
    .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .size-options {
        flex-wrap: wrap;
    }
    
    .spec-table td {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Zoom Effect */
.main-image.zoomed img {
    transform: scale(1.5);
    cursor: zoom-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #8b7355;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}