/* ================================================================
   SINGLE-PRODUCT.CSS
   Separate styles for the single product page.
   Color scheme matches index.css: red (#c8102e), black (#0d0d0d), white (#ffffff)
================================================================ */

/* Container and grid layout */
.single-product-section {
    background: var(--white, #ffffff);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

/* Product Images */
.prod-images {
    position: sticky;
    top: 120px;
}

.prod-main-img {
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid #ebebeb;
    margin-bottom: 16px;
    background: #f7f7f7;
    border-radius: 8px;
}

.prod-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.prod-main-img img:hover {
    transform: scale(1.02);
}

.prod-thumb-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.prod-thumb {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f7f7f7;
}

.prod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prod-thumb:hover {
    border-color: #c8102e;
    transform: translateY(-2px);
}

.prod-thumb.active {
    border-color: #c8102e;
    box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.2);
}

/* Product Info Right Column */
.prod-detail-info h1 {
    font-family: "Oswald", sans-serif;
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #0d0d0d;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.prod-detail-sku {
    font-size: 0.8rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.prod-price {
    margin-bottom: 20px;
}

.prod-price del {
    color: #aaa;
    font-size: 1.1rem;
    margin-right: 12px;
}

.prod-price span {
    font-family: "Oswald", sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #c8102e;
}

.prod-short-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 24px;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

/* Features Section */
.prod-features-section {
    margin: 20px 0;
}

.prod-features-section h3,
.prod-full-description h3 {
    font-family: "Oswald", sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0d0d0d;
    margin-bottom: 12px;
}

.prod-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
}

.prod-features li {
    font-size: 0.85rem;
    color: #444;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.prod-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c8102e;
    font-weight: bold;
}

/* Full Description */
.prod-full-description {
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid #eee;
}

.prod-full-description p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.8;
}

/* Add to Cart Form */
.add-to-cart-form {
    background: #fafafa;
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
    border: 1px solid #ebebeb;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #c8102e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.quantity-group input {
    max-width: 150px;
}

.moq-notice {
    display: block;
    font-size: 0.7rem;
    color: #c8102e;
    margin-top: 6px;
}

/* Selected Variations Display */
.selected-variations-display {
    background: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    border: 1px solid #e0e0e0;
    font-size: 0.85rem;
}

.selected-variations-display strong {
    color: #0d0d0d;
    font-weight: 600;
}

#selectedVariationsText {
    color: #c8102e;
    font-weight: 500;
    margin-left: 8px;
}

/* Stock Status */
.stock-status {
    margin: 16px 0;
}

.in-stock {
    color: #2e7d32;
    font-weight: 500;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.out-of-stock {
    color: #c8102e;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Button */
.btn-red {
    background: #c8102e;
    color: white;
    border: none;
    padding: 14px 28px;
    font-family: "Oswald", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.btn-red:hover {
    background: #9b0d23;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.3);
}

.btn-red:disabled {
    background: #aaa;
    cursor: not-allowed;
    transform: none;
}

/* Variation dropdown container animation */
#variation2Container {
    transition: all 0.2s ease;
}

/* Responsive */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .prod-images {
        position: relative;
        top: 0;
    }
    
    .prod-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .add-to-cart-form {
        padding: 16px;
    }
    
    .prod-detail-info h1 {
        font-size: 1.6rem;
    }
    
    .prod-price span {
        font-size: 1.5rem;
    }
    
    .prod-thumb {
        width: 60px;
        height: 60px;
    }
}

/* Ensure consistency with index.css color scheme */
:root {
    --red: #c8102e;
    --black: #0d0d0d;
    --white: #ffffff;
    --dark: #161616;
    --gray: #3a3a3a;
    --light: #f5f5f5;
}