/* Reset and Variables */
:root {
    --primary: #D32F2F; /* Market Red */
    --primary-dark: #B71C1C;
    --secondary: #0D47A1; /* Deep Blue */
    --accent: #FFC107; /* Promotional Yellow */
    --text-main: #212121;
    --text-light: #757575;
    --bg-light: #F5F5F5;
    --white: #FFFFFF;
    --success: #388E3C;
    --border: #E0E0E0;
    --radius: 8px;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

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

/* Typography & Badges */
.badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.badge-primary { background: var(--primary); color: var(--white); }
.badge-accent { background: var(--accent); color: var(--text-main); }

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

.price-old {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
    display: block;
}

.price-current {
    font-family: 'Oswald', sans-serif;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-current .currency { font-size: 1.5rem; }
.price-current .value { font-size: 4rem; line-height: 1; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 0 var(--primary-dark);
}

.btn-primary:hover {
    background-color: #E53935;
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.5rem;
}

.btn-xl {
    padding: 20px 50px;
    font-size: 1.8rem;
    width: 100%;
    max-width: 500px;
}

.btn-block { width: 100%; }

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 10px 20px rgba(211, 47, 47, 0.4); }
    100% { transform: scale(1); }
}

/* Topbar & Header */
.topbar {
    background-color: var(--accent);
    color: var(--text-main);
    text-align: center;
    padding: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.header {
    background-color: var(--secondary);
    padding: 15px 0;
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: 1px;
}

.logo span { color: var(--accent); }

/* Hero Section */
.hero {
    background-color: var(--white);
    padding: 60px 0;
    border-bottom: 5px solid var(--primary);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 15px;
    color: var(--secondary);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.product-img,
.hero-image video,
.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
}

/* Sections Common */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary);
}

.section-title.left-align { text-align: left; }

/* Items Section */
.items-section { padding: 60px 0; }

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.item {
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary);
}

.check-icon {
    width: 20px;
    height: 20px;
    background-color: var(--success);
    border-radius: 50%;
    position: relative;
}

.check-icon::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Benefits Section */
.benefits-section {
    background-color: var(--secondary);
    color: var(--white);
    padding: 60px 0;
}

.benefits-section .section-title { color: var(--white); }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.benefit-card {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    border-top: 4px solid var(--accent);
}

.benefit-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent);
}

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

/* Store Section */
.store-section {
    padding: 60px 0;
    background: var(--white);
}

.store-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.store-text p {
    font-size: 1.2rem;
    line-height: 1.8;
}

.store-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 5px solid var(--border);
}

/* How it Works */
.how-it-works {
    padding: 60px 0;
    background: #E3F2FD;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 15px;
    box-shadow: 0 4px 0 var(--primary-dark);
}

.step p { font-weight: 500; font-size: 1.1rem; }

/* Final CTA */
.final-cta {
    padding: 80px 0;
    text-align: center;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="%23ffffff"/><circle cx="50" cy="50" r="40" fill="%23f5f5f5"/></svg>') var(--white);
}

.final-cta h2 {
    font-size: 2.5rem;
    color: var(--secondary);
}

.center-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.shipping-notice {
    margin-top: 20px;
    font-weight: 700;
    color: var(--success);
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: #111;
    color: #CCC;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-info h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-info p { margin-bottom: 5px; }

.legal {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.8rem;
    color: #888;
}

/* Modal / Checkout Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-light);
    width: 92%;
    max-width: 550px;
    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--white);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
    transition: background 0.2s;
}

.close-modal:hover, .close-modal:active {
    background: rgba(255,255,255,0.4);
}

.checkout-header {
    background: var(--secondary);
    color: var(--white);
    padding: 18px 20px;
    text-align: center;
    position: relative;
}

.checkout-body { padding: 18px; }

.order-summary {
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.order-summary h3 { margin-bottom: 10px; font-size: 1.2rem; }

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
    gap: 10px;
}

.item-name { font-weight: 700; flex: 1; }

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: #FFF;
}

.qty-btn {
    background: #F0F0F0;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.qty-btn:active {
    background: #DDD;
}

#qty-input {
    width: 45px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 5px 0;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 0;
}

.item-total { font-weight: 700; color: var(--primary); font-size: 1.1rem; }

.summary-shipping {
    text-align: right;
    color: var(--success);
    font-size: 0.9rem;
}

.form-section {
    background: var(--white);
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.form-section h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--secondary);
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row-city-state {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px; /* Prevents auto-zoom on iOS Safari */
    -webkit-appearance: none;
    min-height: 44px;
}

input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(13, 71, 161, 0.2);
}

input[readonly] { background: #F9F9F9; color: #666; }

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    gap: 12px;
    min-height: 52px;
}

.payment-option input { width: auto; margin-right: 0; min-height: auto; cursor: pointer; }

.payment-option.selected {
    border-color: var(--success);
    background-color: rgba(56, 142, 60, 0.06);
}

.payment-icon { font-size: 1.4rem; }

.payment-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.payment-text strong {
    font-size: 0.98rem;
    color: var(--text-main);
}

.payment-text small {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Success Modal */
.success-content { text-align: center; padding-bottom: 20px; }

.success-header h2 { color: var(--success); font-size: 1.8rem; margin-bottom: 8px; }

.qr-code-placeholder {
    margin: 15px auto;
    padding: 10px;
    border: 2px dashed var(--border);
    display: inline-block;
    border-radius: var(--radius);
    background: #FFF;
}

.qr-code-placeholder img {
    max-width: 180px;
    height: auto;
    display: block;
}

.copy-paste-section { margin: 15px 0; }

.copy-box {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.copy-box input { background: #f0f0f0; font-size: 0.9rem; }

.success-footer { margin-top: 25px; }


/* Sticky Mobile CTA Bar */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
    padding: 10px 16px;
    z-index: 999;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
}

.mobile-sticky-info {
    display: flex;
    flex-direction: column;
}

.mobile-sticky-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.1;
}

.mobile-sticky-price {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.mobile-sticky-price small {
    font-size: 0.75rem;
    font-family: 'Roboto', sans-serif;
    color: var(--success);
    font-weight: bold;
    margin-left: 4px;
}

.mobile-sticky-btn {
    padding: 10px 22px;
    font-size: 1.1rem;
    border-radius: 6px;
    white-space: nowrap;
}


/* Responsive Breakpoints */
@media (max-width: 768px) {
    body {
        padding-bottom: 72px; /* Space for sticky bar */
    }

    .mobile-sticky-bar {
        display: flex;
    }

    .container {
        padding: 0 16px;
    }

    .header {
        padding: 10px 0;
    }

    .logo h1 {
        font-size: 1.4rem;
        text-align: center;
        line-height: 1.2;
    }

    .hero {
        padding: 25px 0;
    }

    .hero-content, .store-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .hero-text h2 {
        font-size: 2rem;
        line-height: 1.15;
        margin-top: 5px;
    }

    .hero-text p {
        font-size: 1.05rem;
    }

    .price-block {
        margin: 15px 0;
    }

    .price-current {
        justify-content: center;
    }

    .price-current .value {
        font-size: 3.2rem;
    }

    .items-section, .benefits-section, .store-section, .how-it-works {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .section-title.left-align {
        text-align: center;
    }

    /* 2 columns on mobile for better space usage and less scrolling */
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .item {
        padding: 10px;
        font-size: 0.88rem;
        line-height: 1.3;
        border-left-width: 3px;
        border-radius: 6px;
    }

    .check-icon {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    .check-icon::after {
        left: 5px;
        top: 2px;
        width: 4px;
        height: 8px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 30px;
    }

    .benefit-card {
        padding: 16px 12px;
    }

    .benefit-card h4 {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .step p {
        font-size: 0.95rem;
    }

    .final-cta {
        padding: 50px 0;
    }

    .final-cta h2 {
        font-size: 1.8rem;
    }

    .btn-large, .btn-xl {
        padding: 14px 20px;
        font-size: 1.2rem;
        width: 100%;
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-row-city-state {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .form-row-city-state .grid-col-span-2 {
        grid-column: span 2;
    }

    .form-row-number {
        grid-template-columns: 1fr 1fr;
    }

    .summary-item {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .qty-control {
        margin: 5px 0;
    }

    .copy-box {
        flex-direction: row;
    }

    .copy-box button {
        white-space: nowrap;
    }

    .modal-content {
        width: 95%;
        max-height: 92vh;
        margin: auto;
    }

    .checkout-body {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.25rem;
    }

    .topbar {
        font-size: 0.8rem;
        padding: 6px;
    }

    .badge {
        font-size: 0.72rem;
        padding: 4px 8px;
        margin-bottom: 6px;
    }

    .hero-text h2 {
        font-size: 1.7rem;
    }

    .price-current .value {
        font-size: 2.8rem;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .item {
        padding: 8px;
        font-size: 0.82rem;
    }

    .benefits-grid, .steps-grid {
        grid-template-columns: 1fr;
    }

    .btn-large, .btn-xl {
        font-size: 1.1rem;
        padding: 14px 16px;
    }
}

