/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #f5f5e8;
    color: #2f3a44;
    overflow-x: hidden;
}

.main {
    padding-top: 80px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb-wrap {
    background-color: #f5f5e8;
    padding: 15px 0;
    border-bottom: 2px solid #d4af3776;
    margin-bottom: 30px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
    color: #2f3a44;
}

.breadcrumb a {
    text-decoration: none;
    margin-right: 5px;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #b8972e;
}

.breadcrumb span {
    margin: 0 5px;
    color: #2f3a44;
}

.b1, .b2 {
    color: #000;
}

.b3 {
    color: #d4af37;
    font-weight: 600;
}

/* Product Detail Layout */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

/* Product Gallery */
.product-gallery {
    position: relative;
}

.main-image-container {
    border: 2px solid #d4af37;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    height: 500px;
    position: relative;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

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

.thumbnail {
    border: 2px solid #d4af37;
    border-radius: 5px;
    height: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: contain;
}

.thumbnail:hover {
    border-color: #b8972e;
}

/* Product Info */
.product-info {
    padding: 20px;
    background: rgba(255, 255, 245, 0.9);
    border: 2px solid #d4af37;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-title {
    font-family: 'Cinzel', serif;
    font-weight: 300;
    font-size: 28px;
    color: #2f3a44;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.price-container {
    margin: 20px 0;
}

.current-price {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: bold;
    color: #2f3a44;
    margin-right: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #aa0303;
    font-size: 18px;
}

.offer-badge {
    display: inline-block;
    background: #2d5016;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 14px;
    margin-left: 10px;
}

.product-description {
    margin: 20px 0;
    line-height: 1.6;
    color: #2f3a44;
}

/* Variant Selection */
.variant-section {
    margin: 25px 0;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

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

.variant-option {
    padding: 8px 15px;
    border: 1px solid #d4af37;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.variant-option:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.variant-option.selected {
    background-color: #d4af37;
    color: white;
}

.variant-option.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.variant-option.out-of-stock::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #8b0000;
    transform: translateY(-50%) rotate(-5deg);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background: none;
    border: 1px solid #d4af37;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background-color: #d4af37;
    color: white;
}

.quantity-value {
    margin: 0 15px;
    font-size: 16px;
    min-width: 30px;
    text-align: center;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.add-to-cart-btn {
    padding: 12px 25px;
    background: linear-gradient(45deg, #d4af37, #b8972e);
    color: #2f3a44;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    flex: 1;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #006400, #228B22);
    color: #f5f5e8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wishlist-btn {
    padding: 12px;
    background: none;
    border: 1px solid #d4af37;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-btn:hover {
    background-color: #d4af37;
    color: white;
}

/* Product Meta */
.product-meta {
    margin-top: 30px;
    border-top: 1px solid #d4af37;
    padding-top: 20px;
}

.meta-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.meta-item i {
    margin-right: 10px;
    color: #d4af37;
}

/* Related Products */
.related-products {
    margin: 60px 0;
}

.section-header {
    /* font-family: 'Cinzel', serif; */
    font-size: 20px;
    color: #2f3a44;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4af37;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-product-card {
    border: 1px solid #d4af37;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.related-product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-bottom: 1px solid #eee;
}

.related-product-info {
    padding: 15px;
    text-align: center;
}

.related-product-title {
    
    font-size: 15px;
    margin-bottom: 5px;
    color: #2f3a44;
}

.related-product-price {
    color: #2f3a44;
    font-weight: 600;
}

/* Zoom Effect */
.zoomed {
    transform: scale(2);
    transform-origin: center center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }
    
    .main-image-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 24px;
    }
    
    .current-price {
        font-size: 20px;
    }
    
    .original-price {
        font-size: 16px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .thumbnail-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 576px) {
    .main-image-container {
        height: 300px;
    }
    
    .thumbnail {
        height: 60px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .variant-options {
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .thumbnail-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}