/* ============================================
   MAMAEARTH-STYLE 3-COLUMN PRODUCT LAYOUT
   ============================================ */

/* CSS Variable Overrides for Ultra Premium Green Theme */
:root {
    --primary-cyan: var(--brand-primary, #1B4332);
    /* Deep Green */
    --primary-green: var(--brand-secondary, #2D6A4F);
    /* Medium Green */
    --light-gray: #e2e8f0;
    --dark-gray: #1e293b;
    --gray: #64748b;
    --off-white: #f8fafc;
}

/* 3-Column Grid - Centered and Responsive */
.product-detail-3col {
    display: grid;
    grid-template-columns: minmax(320px, 400px) minmax(300px, 1fr) minmax(300px, 350px);
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Product Page Container */
.product-page .container {
    max-width: 100%;
    padding: 0;
}

.product-gallery-col {
    position: sticky;
    top: 90px;
    height: fit-content;
}

/* Column 2: Product Info */
.product-info-col {
    padding-right: 20px;
}

.product-info-col h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-gray);
    line-height: 1.3;
}

.product-price-info {
    display: flex;
    gap: 20px;
    margin: 15px 0 20px;
}

.mrp-label,
.price-label {
    font-size: 14px;
    color: var(--gray);
}

.mrp-value {
    text-decoration: line-through;
    color: var(--gray);
}

/* Size Selector Section */
.size-selector-section {
    margin: 25px 0;
}

.size-selector-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.variant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.variant-card {
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    position: relative;
    text-align: center;
}

.variant-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 175, 239, 0.15);
}

.variant-card.active {
    border-color: var(--primary-cyan);
    background: linear-gradient(135deg, rgba(0, 175, 239, 0.05), rgba(0, 175, 239, 0.1));
    box-shadow: 0 4px 16px rgba(0, 175, 239, 0.2);
}

.variant-size {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.variant-price {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
}

.variant-original-price {
    font-size: 13px;
    color: var(--gray);
    text-decoration: line-through;
    margin-bottom: 4px;
}

.variant-per-unit {
    font-size: 11px;
    color: var(--gray);
    margin-bottom: 6px;
}

.variant-discount {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-green);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.variant-stock {
    font-size: 11px;
    color: var(--primary-green);
    font-weight: 600;
    margin-top: 6px;
}

/* Column 3: Purchase Section */
.product-purchase-col {
    position: sticky;
    top: 90px;
    height: fit-content;
}

/* Offers Box */
.offers-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3d6 100%);
    border: 1px solid #f5c94b;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.offers-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: #d68400;
    margin-bottom: 12px;
}

.offers-header svg {
    stroke: #d68400;
}

.offers-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offers-list li {
    font-size: 13px;
    color: #5c4a20;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.offers-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #d68400;
    font-weight: bold;
    font-size: 16px;
}

.offers-list li strong {
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    color: var(--primary-cyan);
}

/* Purchase Price Box */
.purchase-price-box {
    background: var(--off-white);
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.price-row-main {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.current-price-large {
    font-size: 28px;
    font-weight: 700;
    color: #000;
}

.old-price-large {
    font-size: 18px;
    color: var(--gray);
    text-decoration: line-through;
}

.discount-tag-large {
    background: var(--primary-green);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 8px;
}

.tax-note {
    font-size: 12px;
    color: var(--gray);
    margin: 0;
}

/* Quantity Section */
.quantity-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.quantity-section label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-gray);
}

.quantity-selector-inline {
    display: flex;
    align-items: center;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--off-white);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--dark-gray);
}

.qty-btn:hover {
    background: var(--primary-cyan);
    color: white;
}

.qty-display {
    min-width: 50px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    padding: 0 10px;
}

/* Action Buttons */
.add-to-cart-btn-main,
.buy-now-btn-main {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.add-to-cart-btn-main {
    background: var(--primary-cyan);
    color: white;
}

.add-to-cart-btn-main:hover {
    background: #0099d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 175, 239, 0.3);
}

.add-to-cart-btn-main svg {
    stroke: white;
}

.buy-now-btn-main {
    background: var(--primary-green);
    color: white;
}

.buy-now-btn-main:hover {
    background: #2d8f3a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 161, 71, 0.3);
}

.share-btn-whatsapp {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    background: #25D366;
    color: white;
}

.share-btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.share-btn-whatsapp svg {
    fill: white;
}

/* Trust Badges Vertical */
.trust-badges-vertical {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.trust-badge-item {
    font-size: 13px;
    color: var(--dark-gray);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-badge-item::before {
    content: "";
    width: 18px;
    height: 18px;
    background: var(--primary-green);
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .product-detail-3col {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .product-gallery-col {
        position: static;
    }

    .product-purchase-col {
        position: static;
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .product-detail-3col {
        grid-template-columns: 1fr;
    }

    .product-info-col {
        padding-right: 0;
    }

    .variant-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .current-price-large {
        font-size: 24px;
    }
}