/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================================================== */
   :root {
    /* Colors */
    --primary: #E63946;        /* High-converting Red */
    --primary-hover: #D62828;
    --secondary: #1D3557;      /* Deep Navy/Black for text */
    --accent: #457B9D;
    --bg-main: #F8F9FA;
    --bg-surface: #FFFFFF;
    
    --text-main: #2B2D42;
    --text-muted: #6C757D;
    
    --success: #2A9D8F;
    --error: #E63946;
    --border: #E9ECEF;

    /* Typography */
    --font-en: 'Outfit', sans-serif;
    --font-bn: 'Hind Siliguri', sans-serif;
    
    /* Spacing (8px system) */
    --sp-1: 8px;
    --sp-2: 16px;
    --sp-3: 24px;
    --sp-4: 32px;
    --sp-5: 40px;
    --sp-6: 48px;
    --sp-8: 64px;
    --sp-10: 80px;

    /* Radius & Shadows */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
    
    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-normal: 0.3s ease;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-bn);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-bn);
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
    margin-bottom: var(--sp-2);
}

p {
    margin-bottom: var(--sp-2);
    color: var(--text-muted);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--sp-3);
}

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

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-2) var(--sp-4);
    font-family: var(--font-bn);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--trans-fast);
    border: none;
    text-align: center;
}

.btn-sm {
    padding: 10px var(--sp-3);
    font-size: 0.9rem;
}

.btn-large {
    padding: var(--sp-2) var(--sp-5);
    font-size: 1.25rem;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

.btn-white {
    background-color: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-white:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.arrow {
    margin-left: 8px;
    transition: transform 0.3s;
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   TOP BAR & HEADER
   ========================================================================== */
.top-bar {
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    padding: 8px var(--sp-2);
    font-size: 0.9rem;
    font-weight: 600;
}
.top-bar p { margin: 0; color: #fff; }

.header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--trans-normal);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
}
.logo span { color: var(--primary); }

.nav a {
    margin: 0 var(--sp-2);
    font-weight: 500;
    color: var(--text-main);
    transition: var(--trans-fast);
}
.nav a:hover { color: var(--primary); }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    padding: var(--sp-10) 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
}

.hero-collage {
    display: flex;
    width: 100%;
    height: 100%;
}

.collage-item {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s;
    filter: brightness(0.8);
}

.collage-item:hover {
    flex: 2;
    filter: brightness(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.2) 100%);
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 20px;
    margin-bottom: var(--sp-3);
}

.badge-danger {
    background-color: var(--primary);
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--sp-3);
}
.hero h1 span {
    font-family: var(--font-en);
    color: var(--primary);
    display: block;
    font-size: 2.2rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: var(--sp-4);
    font-weight: 500;
}

.hero-pricing {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
}

.old-price {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-family: var(--font-en);
}

.new-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-en);
}

.trust-badges {
    display: flex;
    gap: var(--sp-3);
    margin-top: var(--sp-4);
}
.trust-badges span {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
}
.icon-sm {
    width: 20px;
    margin-right: 8px;
}

/* ==========================================================================
   PROBLEM / SOLUTION SECTION
   ========================================================================== */
.section { padding: var(--sp-10) 0; }
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--sp-8);
}
.section-header h2 { font-size: 2.2rem; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
}

.card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--trans-normal);
}
.card:hover { box-shadow: var(--shadow-md); }

.card-header {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-3);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--border);
}

.card-header h3 { margin: 0; font-size: 1.3rem; }

.icon-error {
    color: var(--error);
    background: rgba(230, 57, 70, 0.1);
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
}
.icon-success {
    color: var(--success);
    background: rgba(42, 157, 143, 0.1);
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
}

.feature-list {
    list-style: none;
}
.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--text-main);
}
.feature-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 6px;
    width: 16px; height: 16px;
    border-radius: 50%;
}
.error-list li::before {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23E63946" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>') center/cover;
}
.success-list li::before {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%232A9D8F" viewBox="0 0 24 24"><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>') center/cover;
}

/* ==========================================================================
   BENEFITS GRID
   ========================================================================== */
.benefits { background-color: var(--bg-surface); }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--sp-4);
}

.benefit-item {
    text-align: center;
    padding: var(--sp-4);
    background: var(--bg-main);
    border-radius: var(--radius-md);
    transition: var(--trans-normal);
}
.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
    background: #fff;
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: var(--sp-2);
}
.benefit-item h4 { font-size: 1.2rem; margin-bottom: 8px; }

/* ==========================================================================
   VISUAL CTA
   ========================================================================== */
.visual-cta {
    background-color: var(--primary);
    background-image: linear-gradient(135deg, var(--primary) 0%, #B8001F 100%);
    color: #fff;
    padding: var(--sp-8) 0;
}
.visual-cta h2 { color: #fff; margin-bottom: var(--sp-2); }
.visual-cta p { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 700px; margin: 0 auto; }

/* ==========================================================================
   CHECKOUT SECTION MODERN
   ========================================================================== */
.checkout-modern {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
    margin-top: var(--sp-6);
}

.product-selection-section h3, .billing-section h3, .summary-section h3 {
    font-family: var(--font-en);
    font-size: 1.4rem;
    margin-bottom: var(--sp-4);
    color: var(--text-dark);
    font-weight: 700;
}

.product-selection-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-select-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 15px;
    gap: 15px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.product-select-card.selected {
    border-color: #ffcccc;
    background-color: #fff9f9;
}

.product-select-card.stock-out {
    opacity: 0.6;
    pointer-events: none;
    background: #fcfcfc;
}

/* Custom Checkbox */
.custom-check-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
}
.custom-checkbox {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    background: #fff;
}
.custom-checkbox:checked {
    background-color: #2b3a8c;
    border-color: #2b3a8c;
}
.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.card-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.card-details h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
}

.card-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}
.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}
.qty-btn {
    padding: 5px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    font-family: var(--font-en);
}
.qty-btn:hover { background: #f0f0f0; }
.qty-val {
    padding: 0 10px;
    font-weight: 500;
    font-family: var(--font-en);
}

.card-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-dark);
    font-family: var(--font-en);
}

.stock-out-badge {
    background-color: #ffe5e5;
    color: #d32f2f;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: auto;
}

/* Split Section */
.checkout-split-container {
    display: flex;
    gap: 40px;
}

.billing-section {
    flex: 1.2;
}
.summary-section {
    flex: 1;
}

/* Form Styles Override for Billing */
.form-group { margin-bottom: var(--sp-4); }
.form-group label {
    display: block; font-weight: 700; margin-bottom: 8px; color: var(--text-dark);
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--trans-fast);
    background-color: #fff;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

/* Order Summary Table */
.summary-table {
    border-top: 1px solid var(--border);
    padding-top: var(--sp-4);
}
.table-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--sp-3);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--border);
}

.modern-cart .cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.modern-cart .item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.modern-cart .item-info img {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    object-fit: cover;
}
.modern-cart .item-name {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
}
.modern-cart .item-qty {
    font-size: 0.9rem;
    color: #666;
    font-family: var(--font-en);
}
.modern-cart .item-price {
    font-weight: 700;
    font-family: var(--font-en);
}

.table-row {
    display: flex;
    justify-content: space-between;
    padding: var(--sp-2) 0;
    color: var(--text-dark);
}
.row-value {
    font-weight: 600;
    font-family: var(--font-en);
}
.subtotal-row {
    border-bottom: 1px solid #f0f0f0;
}

/* Custom Radio Buttons */
.shipping-options {
    padding: var(--sp-3) 0;
    border-bottom: 1px solid #f0f0f0;
}
.shipping-radio {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    cursor: pointer;
}
.shipping-radio input { display: none; }
.custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    position: relative;
}
.shipping-radio input:checked ~ .custom-radio {
    border-color: var(--primary);
}
.shipping-radio input:checked ~ .custom-radio::after {
    content: '';
    position: absolute;
    top: 4px; left: 4px;
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.shipping-price {
    font-weight: 700;
    font-family: var(--font-en);
}

.total-row {
    align-items: center;
}
.total-price {
    color: #E63946;
    font-size: 1.6rem;
    font-weight: 800;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--secondary);
    color: #fff;
    padding: var(--sp-8) 0 var(--sp-4);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--sp-6);
    margin-bottom: var(--sp-6);
}

.footer-brand p { color: rgba(255,255,255,0.7); margin-top: var(--sp-2); }
.footer h4 { color: #fff; margin-bottom: var(--sp-3); }
.footer-links a {
    display: block; color: rgba(255,255,255,0.7); margin-bottom: 8px;
}
.footer-links a:hover { color: #fff; }
.footer-contact p { color: rgba(255,255,255,0.7); margin-bottom: 8px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--sp-4);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.custom-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    padding: var(--sp-5);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.custom-modal.show .modal-content {
    transform: translateY(0);
}

.modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--sp-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

.error-icon { background-color: var(--error); box-shadow: 0 4px 14px rgba(230, 57, 70, 0.3); }
.warning-icon { background-color: #FFB703; box-shadow: 0 4px 14px rgba(255, 183, 3, 0.3); }

.modal-content h3 { margin-bottom: var(--sp-2); }
.modal-content p { margin-bottom: var(--sp-4); }

/* ==========================================================================
   ANIMATIONS & RESPONSIVE
   ========================================================================== */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(230, 57, 70, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}
.pulse { animation: pulse 2s infinite; }

@keyframes jump {
    0%, 100% { transform: translateY(0); box-shadow: 0 8px 20px rgba(230, 57, 70, 0.4); }
    50% { transform: translateY(-8px); box-shadow: 0 15px 25px rgba(230, 57, 70, 0.6); }
}
.jump-animate { 
    animation: jump 2s ease-in-out infinite; 
    transform-origin: center;
}

@media (max-width: 992px) {
    .checkout-wrapper { grid-template-columns: 1fr; }
    .hero-bg img { object-position: right; }
    .checkout-split-container { flex-direction: column; gap: var(--sp-4); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero h1 span { font-size: 1.8rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: var(--sp-4); }
    .hero-overlay {
        background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,1) 100%);
    }
    
    /* Product Selection Card Mobile */
    .product-select-card {
        padding: 10px;
        gap: 10px;
    }
    .custom-check-wrap {
        padding-left: 0;
    }
    .card-img {
        width: 65px;
        height: 65px;
        border-radius: 4px;
    }
    .card-details {
        gap: 6px;
    }
    .card-details h4 {
        font-size: 0.95rem;
    }
    .card-controls {
        gap: 10px;
    }
    .card-price {
        font-size: 1rem;
    }
    .qty-btn {
        padding: 2px 10px;
        font-size: 1.1rem;
        font-family: var(--font-en);
    }
    .qty-val {
        padding: 0 8px;
        font-family: var(--font-en);
    }
    .product-selection-section h3, .billing-section h3, .summary-section h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero h1 span { font-size: 1.5rem; }
    .btn { padding: 10px 20px; font-size: 0.95rem; }
    .card-img { height: 120px; }
}
