/* =====================================================
   Frontend Styles - Modern Landing Page
   @version 2.0.0
   ===================================================== */

:root {
    --primary: #111111;
    --primary-dark: #000000;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #333333;
    --gradient-primary: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}

* { box-sizing: border-box; }

body {
    font-family: 'Rubik', 'Hind Siliguri', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8fafc;
    color: #323232;
    line-height: 1.5;
}

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
    padding: 60px 0;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #1e293b;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 10px;
}

.hero-content {
    font-size: 1rem;
    color: #64748b;
}

.hero-image {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    max-height: 400px;
    object-fit: cover;
}

.cta-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    background: var(--gradient-primary);
    border: none;
    transition: all 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99,102,241,0.4);
}

/* ---- Benefits Section ---- */
.benefits-section {
    padding: 60px 0;
}

.section-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.05rem;
}

.benefit-card {
    border-radius: 12px !important;
    padding: 20px;
    transition: transform 0.3s;
    min-height: 140px;
}

.benefit-card:hover {
    transform: translateY(-3px);
}

.benefit-card .card-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.benefit-card .card-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ---- Video Section ---- */
.video-section {
    padding: 60px 0;
    background: #f1f5f9;
}

.video-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ---- Offer Section ---- */
.offer-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.offer-card {
    background: #fff;
    border: 2px solid #f59e0b;
}

.original-price {
    font-size: 1.4rem;
    text-decoration: line-through;
    color: #94a3b8;
}

.discounted-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ef4444;
}

.offer-label {
    color: #64748b;
    font-weight: 500;
}

.offer-timing {
    color: #ef4444;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ---- Trust Section ---- */
.trust-section {
    padding: 60px 0;
}

.trust-badge {
    transition: transform 0.3s;
}

.trust-badge:hover {
    transform: translateY(-3px);
}

.trust-badge p {
    font-size: 0.85rem;
}

/* ---- Order Section ---- */
.order-section {
    padding: 60px 0;
    background: #f8fafc;
}

.order-form-card {
    border-radius: 16px !important;
    border: 1px solid #e2e8f0;
}

.order-form-card h3 {
    color: var(--primary);
    font-weight: 700;
}

/* Product Radio Boxes (Single Mode) */
.product-radio-box {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.product-radio-box:hover {
    border-color: var(--primary);
    background: #f8faff;
}

.product-radio-box.selected {
    border-color: var(--primary);
    background: #eef2ff;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.product-radio-box input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    accent-color: var(--primary);
}

.product-radio-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}

.product-name {
    font-weight: 600;
    font-size: 1rem;
}

.product-price {
    font-size: 1rem;
}

.product-price del {
    color: #94a3b8;
    margin-right: 5px;
}

/* Product Checkbox Boxes (Multi Mode) */
.product-checkbox-box {
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #fff;
    transition: all 0.2s;
}

.product-checkbox-box:has(input:checked) {
    border-color: var(--primary);
    background: #eef2ff;
}

.product-checkbox-box input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* Quantity Controls */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-controls .btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
}

.qty-controls .form-control {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    font-weight: 600;
}

/* Shipping Options */
.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shipping-options .form-check {
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    transition: all 0.2s;
}

.shipping-options .form-check:has(input:checked) {
    border-color: var(--primary);
    background: #eef2ff;
}

/* Order Summary Card */
.order-summary-card {
    border-radius: 16px !important;
    border: 1px solid #e2e8f0;
}

.order-summary-card h4 {
    color: var(--primary);
    font-weight: 700;
}

.order-summary-card .table {
    font-size: 0.9rem;
}

.order-summary-card .table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #64748b;
}

.order-summary-card.p-4.bg-white.rounded.shadow.sticky-top {
    z-index: 1;
}

/* Order Section checkout parity: the landing-page shortcode uses the same
   visual language as /checkout without changing theme-wide form styles. */
.os-checkout-page { font-family:'Rubik','Hind Siliguri','Noto Sans Bengali',sans-serif; color:#323232; }
.os-checkout-page .container { max-width:1140px; }
.os-checkout-form-card,
.os-checkout-page .os-cart-summary {
    background:#fff; border:1px solid #eee; border-radius:9px; box-shadow:none;
}
.os-checkout-form-card { padding:20px; }
.os-checkout-instruction {
    margin:0 0 30px; color:#323232; font-size:24px; font-weight:400; line-height:1.2; text-align:left;
}
.os-checkout-page .form-label { margin:0 0 2px; color:#000; font-size:16px; font-weight:700; line-height:26px; }
.os-checkout-page .form-control {
    min-height:48px; padding:10px; border:1px solid #eee; border-radius:3px; box-shadow:none; color:#000; font-size:16px;
}
.os-checkout-page textarea.form-control { min-height:86px; resize:vertical; }
.os-checkout-page .form-control:focus { border-color:#095059; box-shadow:0 0 0 1px rgba(9,80,89,.08); }
.os-checkout-field { position:relative; }
.os-checkout-field > .bi { position:absolute; right:11px; top:24px; transform:translateY(-50%); color:#979797; pointer-events:none; }
.os-checkout-field textarea + .bi { top:24px; }
.os-checkout-page .os-checkout-step > .form-check,
.os-checkout-page .shipping-options .form-check {
    margin:0; padding:8px 10px 8px 31px; min-height:43px; border:1px solid #eee; border-bottom:0; font-size:16px; line-height:26px;
}
.os-checkout-page .os-checkout-step > .form-check:last-child,
.os-checkout-page .shipping-options .form-check:last-child { border-bottom:1px solid #eee; }
.os-checkout-page .form-check-input { margin-left:-21px; margin-top:5px; }
.os-checkout-page .product-radio-box,
.os-checkout-page .product-checkbox-box { border:1px solid #eee; border-radius:3px; box-shadow:none; margin-bottom:8px; padding:10px; }
.os-checkout-page .product-radio-box.selected { border-color:#095059; background:#f7fbfb; }
.os-checkout-page .os-place-order {
    height:48px; margin-top:2px; border:0; border-radius:3px; background:#095059; color:#fff; font-size:16px; font-weight:500;
}
.os-checkout-page .os-place-order:hover { background:#073f47; color:#fff; }
.os-checkout-page .os-cart-summary { position:sticky; top:76px; padding:20px; }
.os-checkout-page .os-cart-summary h4 { color:#323232; font-size:19px; font-weight:500; }
.os-checkout-page .os-cart-summary .table { margin-bottom:12px; }
.os-checkout-page .os-cart-summary .table thead th { color:#979797; font-size:14px; font-weight:500; border:0; }
.os-checkout-page .os-cart-summary .table td { border-color:#eee; vertical-align:middle; }
.os-checkout-page .os-cart-summary > .d-flex { min-height:42px; padding:9px 0; margin:0!important; border-bottom:1px solid #eee; font-size:16px; font-weight:400; }
.os-checkout-page .os-cart-summary > .d-flex:last-child { border-bottom:0; }
@media (max-width:991.98px) { .os-checkout-page .os-cart-summary { position:static; } }
@media (max-width:767.98px) {
    .os-checkout-page { padding:20px 0!important; }
    .os-checkout-form-card,.os-checkout-page .os-cart-summary { padding:15px; }
    .os-checkout-instruction { margin-bottom:20px; font-size:20px; text-align:center; }
    .os-checkout-page .form-control { min-height:42px; }
    .os-checkout-page .os-place-order { height:46px; }
}

/* Form Controls */
.order-form-card .form-control-lg {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 12px 16px;
    font-size: 1rem;
}

.order-form-card .form-control-lg:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

/* Submit Button */
#submitBtn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

#submitBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99,102,241,0.4);
}

#submitBtn:disabled {
    opacity: 0.7;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-section {
        text-align: center;
        padding: 40px 0;
    }

    .hero-image {
        margin-top: 20px;
        max-height: 250px;
    }

    .product-radio-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .order-summary-card {
        position: static !important;
        margin-top: 20px;
    }

    .benefit-card {
        min-height: auto;
    }

    .discounted-price {
        font-size: 2rem;
    }

    .cta-btn {
        padding: 10px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .product-radio-box {
        padding: 12px 15px;
    }

    .order-form-card {
        padding: 20px 15px !important;
    }
}

/* ---- Animations ---- */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
