/* Product Detail Page Styles */

.product-detail-page {
    padding: 0;
    background-color: #f9f9f9;
    min-height: 100vh;
}

/* Breadcrumb Navigation */
.breadcrumb-container {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb-item:hover {
    color: #1a365d;
}

.breadcrumb-item.active {
    color: #1a365d;
    font-weight: 600;
    cursor: default;
}

.breadcrumb-separator {
    color: #cbd5e0;
    font-weight: 300;
}

.page-header {
    text-align: center;
    margin-bottom: 0;
    padding: 40px 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.page-header h1 {
    font-size: 36px;
    color: #1a365d;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    color: #64748b;
}

/* Product Layout */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 20px;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

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

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

/* Product Info */
.product-info {
    padding: 20px 0;
}

.product-title {
    font-size: 32px;
    color: #1a365d;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-price {
    font-size: 28px;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-description {
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 30px;
}

/* Product Attributes */
.product-attributes {
    margin-bottom: 30px;
}

.attribute-group {
    margin-bottom: 20px;
}

.attribute-label {
    font-size: 16px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 10px;
    display: block;
}

.attribute-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.attribute-option {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.attribute-option:hover {
    border-color: #cbd5e0;
    background: #f8fafc;
}

.attribute-option.selected {
    border-color: #1a365d;
    background: #1a365d;
    color: white;
}

.attribute-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-label {
    font-size: 16px;
    font-weight: 600;
    color: #1a365d;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8fafc;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.quantity-btn:hover {
    background: #e2e8f0;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-add-cart {
    background: #1a365d;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: #2a4a73;
    transform: translateY(-2px);
}

.btn-buy-now {
    background: #10b981;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy-now:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Product Details */
.product-details {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.details-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.details-tab {
    padding: 12px 20px;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.details-tab.active {
    color: #1a365d;
    border-bottom-color: #1a365d;
}

.details-content {
    min-height: 200px;
}

/* Reviews Section */
.reviews-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.reviews-title {
    font-size: 24px;
    color: #1a365d;
    font-weight: 600;
}

.review-form {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.review-input {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 15px;
}

.review-submit {
    background: #1a365d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.review-submit:hover {
    background: #2a4a73;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f9f9f9;
}

.review-header {
    margin-bottom: 15px;
}

.review-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.review-author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-author {
    font-weight: 600;
    color: #1a365d;
    font-size: 16px;
}

.review-date {
    color: #64748b;
    font-size: 14px;
}

.review-content {
    color: #333;
    line-height: 1.5;
    margin-left: 62px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .main-image {
        height: 400px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-detail-container {
        padding: 20px 15px;
        gap: 20px;
    }
    
    .page-header {
        padding: 30px 0;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .product-price {
        font-size: 24px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .attribute-options {
        gap: 8px;
    }
    
    .attribute-option {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .details-tabs {
        flex-wrap: wrap;
    }
    
    .details-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .reviews-section,
    .product-details {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .product-detail-container {
        padding: 15px 10px;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thumbnail {
        height: 60px;
    }
    
    .action-buttons {
        gap: 10px;
    }
    
    .btn-add-cart,
    .btn-buy-now {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .breadcrumb {
        gap: 5px;
        font-size: 12px;
    }
    
    .breadcrumb-separator {
        font-size: 10px;
    }
}