/* ============================================
   CHECKOUT BUILDER STYLES
   Extracted from builder_checkout.html
   ============================================ */

/* ------------------------------------------
   1. ROOT VARIABLES - INDUSTRIAL TERMINAL AESTHETIC
   ------------------------------------------ */
:root {
    /* Backgrounds */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #1c2128;
    --bg-hover: #21262d;

    /* Borders */
    --border-primary: #30363d;
    --border-secondary: #21262d;
    --border-focus: #d29922;

    /* Text */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;

    /* Accent Colors */
    --accent-blue: #d29922;
    --accent-blue-dim: #9e6a03;
    --accent-green: #9e6a03;
    --accent-green-bright: #d29922;
    --accent-yellow: #d29922;
    --accent-yellow-dim: #9e6a03;
    --accent-red: #f85149;
    --accent-red-dim: #da3633;
    --accent-purple: #a371f7;

    /* Typography */
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(210, 153, 34, 0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;

    /* Legacy variable mappings for compatibility */
    --primary-color: var(--accent-blue);
    --success-color: var(--accent-green-bright);
    --border-color: var(--border-primary);
    --bg-light: var(--bg-tertiary);
}

/* ------------------------------------------
   2. BASE STYLES - INDUSTRIAL TERMINAL
   ------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scan-line overlay effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    opacity: 0.4;
}

/* ------------------------------------------
   3. PROGRESS BAR
   ------------------------------------------ */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-primary);
    z-index: 1000;
}

.progress-bar-custom {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-blue-dim) 100%);
    transition: width 0.3s ease;
    width: 33.33%;
}

/* ------------------------------------------
   4. COUPON STYLES
   ------------------------------------------ */
.coupon-link {
    color: var(--text-secondary) !important;
    font-family: var(--font-sans);
}

.coupon-link:hover {
    color: var(--accent-blue) !important;
}

.coupon-link svg {
    stroke: var(--text-muted);
}

#coupon-field {
    background: var(--bg-tertiary) !important;
    border: 1px dashed var(--border-primary) !important;
    border-radius: var(--radius-md);
}

#coupon-code {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-primary) !important;
    color: var(--text-primary) !important;
}

#coupon-code::placeholder {
    color: var(--text-muted) !important;
}

.coupon-apply-btn {
    background: var(--bg-hover) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-primary) !important;
    font-family: var(--font-sans);
}

.coupon-apply-btn:hover {
    background: var(--accent-blue) !important;
    color: var(--bg-primary) !important;
    border-color: var(--accent-blue) !important;
}

/* ------------------------------------------
   5. MAIN LAYOUT
   ------------------------------------------ */
.checkout-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    min-height: 100vh;
}

.checkout-main {
    flex: 1;
    max-width: 700px;
}

.cart-summary {
    width: 380px;
    position: sticky;
    top: 20px;
    height: fit-content;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

/* ------------------------------------------
   6. CART SUMMARY STATES
   ------------------------------------------ */
.cart-summary-initial {
    text-align: center;
}

.cart-summary-initial .cart-summary-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 25px;
}

.selection-guide {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.pulsing-indicator {
    width: 12px;
    height: 12px;
    background: var(--accent-blue);
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.4; transform: scale(1); }
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-primary);
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--accent-blue);
    width: 24px;
    border-radius: 4px;
}

/* Initial state shows by default */
.cart-summary-initial .cart-summary-box {
    display: block;
}

/* Regular cart summary box hidden initially */
.cart-summary > .cart-summary-box {
    display: none;
}

/* Hide initial state when products are added */
.cart-summary.has-products .cart-summary-initial {
    display: none;
}

.cart-summary.has-products > .cart-summary-box {
    display: block;
}

/* ------------------------------------------
   7. STEP SECTIONS
   ------------------------------------------ */
.step-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

.step-section:hover {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-glow);
}

.step-section.hidden {
    display: none;
}

.step-section.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ------------------------------------------
   8. PRODUCT CARDS
   ------------------------------------------ */
.product-card {
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: var(--bg-tertiary);
}

/* Single product special styling */
.single-product .product-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-width: 3px;
}

.single-product .product-card::after {
    content: 'Click to Select';
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: subtle-bounce 2s infinite;
}

.single-product .product-card.selected::after {
    content: 'Selected ✓';
    background: var(--success-color);
    animation: none;
}

/* Single product horizontal layout - desktop only */
@media (min-width: 768px) {
    .single-product-horizontal .product-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 12px;
        gap: 15px;
        border: 1px solid var(--accent-blue);
        box-shadow: var(--shadow-glow);
        background: var(--bg-tertiary);
        border-radius: 12px;
        position: relative;
        cursor: default;
        transform: none !important;
    }

    .single-product-horizontal .product-card:hover {
        transform: none !important;
        box-shadow: var(--shadow-glow) !important;
    }

    .single-product-horizontal .product-image {
        width: 80px;
        min-width: 80px;
        height: 80px;
        margin-bottom: 0;
        border-radius: var(--radius-lg);
        object-fit: cover;
        background: var(--bg-secondary);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .single-product-horizontal .product-content {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .single-product-horizontal .product-name {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0;
        line-height: 1.3;
        color: var(--text-primary);
        flex: 1;
    }

    .single-product-horizontal .product-description {
        display: none; /* Hide description for cleaner look */
    }

    .single-product-horizontal .price-row {
        display: flex;
        align-items: baseline;
        gap: 8px;
        margin: 0;
    }

    .single-product-horizontal .product-price {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--accent-blue);
        font-family: var(--font-mono);
    }

    .single-product-horizontal .original-price {
        text-decoration: line-through;
        color: var(--text-muted);
        font-size: 0.95rem;
    }

    .single-product-horizontal .add-to-cart-btn {
        display: none; /* Hide button since auto-selected */
    }

    .single-product-horizontal .product-card::after {
        content: 'Selected ✓';
        position: absolute;
        top: 10px;
        right: 12px;
        background: var(--success-color);
        color: white;
        padding: 3px 8px;
        border-radius: 10px;
        font-size: 0.7rem;
        font-weight: 600;
        bottom: auto;
        left: auto;
        transform: none;
        opacity: 1;
        animation: none;
    }

    .single-product-horizontal .product-card .check-mark {
        display: none; /* Hide the regular check mark */
    }

    /* Neutralize Bootstrap gutters for single product - aligns card with bonuses below */
    .single-product-horizontal.row {
        --bs-gutter-x: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .single-product-horizontal.row > [class*="col"] {
        padding-left: 0;
        padding-right: 0;
    }
}

@keyframes subtle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.product-card:hover {
    border-color: var(--border-focus);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-md);
}

.product-card.selected {
    border-color: var(--accent-green-bright);
    background: rgba(210, 153, 34, 0.1);
}

.product-card.greyed-out {
    opacity: 0.6;
    /* Removed pointer-events: none to allow product switching */
}

.product-card.greyed-out:hover {
    opacity: 0.8;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.product-card .check-mark {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    background: var(--success-color);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
}

.product-card.selected .check-mark {
    display: flex;
}

/* Hide checkmark and selected tag when coupon is applied */
.product-card.coupon-applied .check-mark {
    display: none !important;
}

.product-card.coupon-applied::after {
    display: none !important;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.product-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-blue);
    font-family: var(--font-mono);
}

.product-description ul {
    margin: 0 !important;
    padding-left: 20px !important;
}

.product-description li {
    margin-bottom: -9px;
    line-height: 1.4;
}

/* Product content wrapper - desktop default (no effect, content flows normally) */
.product-content {
    display: contents; /* Makes wrapper invisible on desktop */
}

/* Price row - desktop default (prices stack vertically) */
.price-row {
    display: contents; /* Makes wrapper invisible on desktop, prices stack normally */
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dim) 100%);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: 15px;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #f0b429 0%, var(--accent-blue) 100%);
    box-shadow: var(--shadow-glow);
}

/* ------------------------------------------
   9. BOOK CAROUSEL (CONTINUITY)
   ------------------------------------------ */
.book-carousel-container {
    position: relative;
    padding: 0 50px;
    margin: 0 -15px;
}

.book-carousel-wrapper {
    overflow: hidden;
    border-radius: 8px;
}

.book-carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 15px;
    padding: 10px 0;
    cursor: grab;
    user-select: none;
}

.book-carousel-track.dragging {
    cursor: grabbing;
    transition: none;
}

.book-carousel-item {
    flex: 0 0 auto;
    width: 200px;
}

/* Responsive carousel item widths */
@media (max-width: 767px) {
    .book-carousel-container {
        padding: 0 20px;  /* Smaller padding for more content space */
    }
    .book-carousel-item {
        width: calc(50vw);  /* Half viewport for 1 + partial view */
        max-width: 180px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .book-carousel-item {
        width: calc((100% - 15px) / 2);
    }
}

@media (min-width: 992px) {
    .book-carousel-item {
        width: calc((100% - 30px) / 3.3);  /* Show 3 + 1/3 of 4th */
        max-width: 250px;  /* Bigger max width for desktop */
    }

    /* Bigger square images for desktop */
    .book-selection-card .product-image {
        aspect-ratio: 1/1;
        height: 200px;  /* Fixed height for desktop */
        object-fit: cover;  /* Ensure cover is applied on desktop too */
    }
}

/* Navigation arrows */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
}

.carousel-nav-btn:hover:not(:disabled) {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-glow);
    background: var(--bg-hover);
}

.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav-btn.prev {
    left: 0;
}

.carousel-nav-btn.next {
    right: 0;
}

/* Compact book cards */
.book-selection-card {
    cursor: pointer;
    border: 2px solid var(--border-primary);
    transition: all 0.3s ease;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 12px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-selection-card:hover {
    border-color: var(--border-focus);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-md);
}

.book-selection-card.selected {
    border-color: var(--accent-green-bright);
    border-width: 3px;
    background: rgba(210, 153, 34, 0.1);
}

.book-selection-card .product-image {
    width: 100%;
    aspect-ratio: 1/1;  /* Force square aspect ratio */
    object-fit: cover;  /* Changed to cover - will crop sides to fill height */
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    display: block;
}

/* Mobile-specific image adjustments */
@media (max-width: 767px) {
    .book-selection-card .product-image {
        height: 150px;  /* Fixed height on mobile */
        object-fit: cover;  /* Crop sides to fill */
    }

    .book-selection-card {
        padding: 8px;  /* Reduce padding on mobile */
    }

    .book-selection-card .product-name {
        font-size: 0.8rem;  /* Smaller text on mobile */
        min-height: 30px;  /* Less height needed */
    }

    .book-selection-card .product-price {
        font-size: 0.9rem;
    }

    .book-selection-card .original-price {
        font-size: 0.75rem;
    }
}

.book-selection-card .check-mark {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.book-selection-card.selected .check-mark {
    display: flex !important;
}

.book-selection-card .product-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-selection-card .product-price {
    color: var(--accent-blue);
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.book-selection-card .original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Selection counter badge */
.selection-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.book-selection-card.selected .selection-badge {
    display: flex;
}

#bookSelectionMessage {
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

#bookSelectionMessage.alert-success {
    background-color: rgba(210, 153, 34, 0.15);
    border-color: var(--accent-green-bright);
    color: var(--accent-green-bright);
}

#bookSelectionMessage.alert-warning {
    background-color: rgba(210, 153, 34, 0.15);
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

#bookSelectionMessage.alert-info {
    background-color: rgba(210, 153, 34, 0.15);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* Touch indicator for mobile */
@media (max-width: 767px) {
    .swipe-hint {
        text-align: center;
        color: var(--text-secondary);
        font-size: 0.85rem;
        margin-top: 10px;
        animation: swipeHint 2s ease-in-out infinite;
    }

    @keyframes swipeHint {
        0%, 100% { transform: translateX(0); opacity: 0.5; }
        50% { transform: translateX(-10px); opacity: 1; }
    }

    /* Mobile-specific spacing optimizations */
    .step-section {
        padding: 20px 15px;
    }

    #step1 h1 {
        font-size: 1.6rem !important;
    }

    #step1 h3 {
        font-size: 1.2rem;
        margin-bottom: 15px !important;
    }
}

/* ------------------------------------------
   10. ORDER BUMPS
   ------------------------------------------ */
.order-bump-card {
    border: 2px dashed var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-tertiary);
    margin-bottom: 10px;
}

.order-bump-card:hover {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 20px rgba(210, 153, 34, 0.15);
}

.order-bump-card.selected {
    background: rgba(210, 153, 34, 0.1);
    border-style: solid;
    border-color: var(--accent-green-bright);
}

.order-bump-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.order-bump-checkbox {
    width: 20px;
    height: 20px;
}

/* ------------------------------------------
   11. CART SUMMARY BOX
   ------------------------------------------ */
.cart-summary-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 25px;
}

/* Summary Calculations - Hidden until Step 3 */
.summary-calculations {
    display: none;
}

.summary-calculations.show {
    display: block;
}

.cart-summary-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.cart-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-secondary);
}

.cart-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.cart-item-prices {
    display: flex;
    gap: 8px;
    align-items: center;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.offer-price {
    font-weight: 600;
    color: var(--accent-blue);
    font-family: var(--font-mono);
}

/* Summary Calculations */
.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.summary-line.discount {
    color: var(--accent-green-bright);
}

.summary-line.total {
    padding-top: 15px;
    border-top: 2px solid var(--border-primary);
    margin-top: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-line.total .amount {
    color: var(--accent-blue);
    font-family: var(--font-mono);
}

/* ------------------------------------------
   12. FORM STYLES
   ------------------------------------------ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-primary) !important;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--bg-tertiary) !important;
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-sans);
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus) !important;
    box-shadow: 0 0 0 3px rgba(210, 153, 34, 0.15);
    background: var(--bg-hover) !important;
    background-color: var(--bg-hover) !important;
    color: var(--text-primary) !important;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
}

/* Ensure all input elements have proper dark theme styling */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
    background-color: #1c2128 !important;
    color: #e6edf3 !important;
    border-color: #30363d !important;
    caret-color: #d29922;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    background-color: #21262d !important;
    color: #e6edf3 !important;
    border-color: #d29922 !important;
}

input::placeholder,
textarea::placeholder {
    color: #6e7681 !important;
    opacity: 1;
}

/* Card element container */
#card-element {
    background-color: #1c2128 !important;
    padding: 14px 16px;
    border: 1px solid #30363d;
    border-radius: 6px;
}

/* ------------------------------------------
   13. PAYMENT TABS
   ------------------------------------------ */
.payment-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-tab {
    flex: 1;
    padding: 15px 20px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.payment-tab:hover {
    border-color: var(--border-focus);
}

.payment-tab.active {
    background: rgba(210, 153, 34, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* ------------------------------------------
   14. ANIMATIONS
   ------------------------------------------ */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: slideDown 0.4s ease;
}

/* ------------------------------------------
   15. MOBILE RESPONSIVE
   ------------------------------------------ */
@media (max-width: 968px) {
    .checkout-container {
        flex-direction: column;
    }

    .cart-summary {
        width: 100% !important;
        position: static !important;
        margin-top: 20px;
        /* Flexbox to reorder sidebar elements on mobile */
        display: flex !important;
        flex-direction: column !important;
    }

    /* Reorder sidebar elements on mobile */
    .cart-summary .sidebar-video-section {
        order: 3; /* Video moves to 3rd position */
    }

    .cart-summary .sidebar-timer-section {
        order: 1; /* Timer moves to 1st position */
    }

    .cart-summary .sidebar-image-section {
        order: 4; /* Image stays at 4th position */
    }

    .cart-summary .cart-summary-initial,
    .cart-summary > .cart-summary-box {
        order: 2; /* Order summary moves to 2nd position */
    }

    .cart-summary .sidebar-embed-section {
        order: 5; /* Embed code stays at bottom */
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile-specific SINGLE-BOX layout with line separators */
@media (max-width: 767px) {
    /* Create single box container for all products */
    #step1 .row.g-3 {
        margin: 0;
        padding: 0;
        border: 2px solid var(--border-primary);
        border-radius: var(--radius-lg);
        overflow: hidden;
        background: var(--bg-secondary);
    }

    /* Special styling for single product - make it stand out */
    #step1 .single-product .row.g-3 {
        border-color: var(--accent-blue);
        box-shadow: var(--shadow-glow);
    }

    /* Remove Bootstrap column padding */
    #step1 .row.g-3 > div {
        margin: 0;
        padding: 0;
    }

    /* Ultra-compact horizontal cards - no individual borders */
    #step1 .product-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 10px 12px;
        gap: 10px;
        position: relative;
        min-height: auto;
        border: none !important; /* Remove individual card borders */
        border-radius: 0 !important; /* Remove border radius */
        margin: 0;
    }

    /* Add separator line between products (not after last) */
    #step1 .row.g-3 > div:not(:last-child) .product-card {
        border-bottom: 1px solid var(--border-primary) !important;
    }

    /* Smaller image for mobile */
    #step1 .product-card .product-image {
        width: 55px;
        min-width: 55px;
        height: 55px;
        margin-bottom: 0;
        object-fit: cover;
        border-radius: 4px;
        flex-shrink: 0;
    }

    /* Compact content wrapper */
    #step1 .product-card .product-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding-right: 5px;
    }

    /* Compact product name */
    #step1 .product-card .product-name {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 2px;
        line-height: 1.2;
    }

    /* HIDE descriptions with bullets, show others very compact */
    #step1 .product-card .product-description {
        display: none !important; /* Hide all descriptions on mobile */
    }

    /* Price row - combine both prices on one line */
    #step1 .product-card .price-row {
        display: flex;
        align-items: baseline;
        gap: 6px;
        margin: 3px 0;
    }

    #step1 .product-card .product-price {
        font-size: 1.05rem;
        font-weight: 700;
        margin-bottom: 0;
        color: var(--accent-blue);
        font-family: var(--font-mono);
    }

    #step1 .product-card .original-price {
        font-size: 0.8rem;
        color: var(--text-muted);
    }

    /* Ultra-compact button */
    #step1 .product-card .add-to-cart-btn {
        margin-top: 4px;
        padding: 5px 12px;
        font-size: 0.85rem;
        font-weight: 600;
        align-self: flex-start;
        width: auto;
        min-width: 70px;
        border-radius: 4px;
    }

    /* Smaller check mark */
    #step1 .product-card .check-mark {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 18px;
        height: 18px;
        font-size: 0.75rem;
    }

    /* Adjust selected state for single-box design */
    #step1 .product-card.selected {
        background: rgba(210, 153, 34, 0.1);
        /* Add subtle left border to indicate selection */
        border-left: 4px solid var(--accent-green-bright) !important;
        padding-left: 8px; /* Adjust padding to compensate for border */
    }

    /* Smaller "Click to Select" badge for single products */
    #step1 .single-product .product-card::after {
        top: 5px;
        right: 12px;
        font-size: 0.65rem;
        padding: 2px 8px;
        border-radius: 10px;
    }

    /* Ensure Bootstrap columns take full width */
    #step1 .col-md-6,
    #step1 .col-md-4,
    #step1 .col-lg-5 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    /* Subtle hover state for single-box design */
    #step1 .product-card:hover {
        transform: none;
        background: var(--bg-tertiary);
    }

    /* Adjust greyed out state for single-box */
    #step1 .product-card.greyed-out {
        opacity: 0.5;
        background: var(--bg-secondary);
    }

    /* Ensure clickability feedback */
    #step1 .product-card:active {
        background: var(--bg-hover);
    }
}

/* ------------------------------------------
   16. CHECKOUT TIMER
   ------------------------------------------ */
.checkout-timer-section {
    max-width: 800px;
    margin: 20px auto;
}

.checkout-countdown-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding: 6px 0;
}

.checkout-countdown-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    white-space: nowrap;
    text-align: center;
}

.checkout-countdown-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-timer-unit {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.checkout-timer-value {
    font-size: 25px;
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1;
    min-width: 38px;
    text-align: center;
    font-family: var(--font-mono);
    text-shadow: 0 0 20px rgba(210, 153, 34, 0.3);
}

.checkout-timer-label {
    font-size: 12px;
    text-transform: lowercase;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ------------------------------------------
   17. OFFER PRESENTATION
   ------------------------------------------ */
.offer-presentation-wrapper {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 10%, var(--bg-secondary) 90%, var(--bg-primary) 100%);
    margin-top: 80px;
    padding: 60px 0 80px 0;
    position: relative;
}

/* Elegant Section Separator */
.section-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    gap: 20px;
    opacity: 0;
    animation: fadeInSeparator 0.8s ease-out 0.3s forwards;
}

@keyframes fadeInSeparator {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.separator-line {
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-primary) 50%, transparent 100%);
}

.separator-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

/* Content Container */
.offer-presentation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 0;
    animation: fadeInContent 1s ease-out 0.5s forwards;
}

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

/* Add subtle top shadow to create depth */
.offer-presentation-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, transparent 100%);
    pointer-events: none;
}

/* Mobile Responsive Adjustments for Offer */
@media (max-width: 968px) {
    .offer-presentation-wrapper {
        margin-top: 40px;
        padding: 40px 0 50px 0;
    }

    .section-separator {
        margin-bottom: 40px;
        gap: 15px;
    }

    .separator-line {
        max-width: 100px;
    }

    .separator-icon {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .offer-presentation-container {
        padding: 0 15px;
    }
}

/* Ensure content inside has proper contrast on dark background */
.offer-presentation-container > div {
    background: var(--bg-tertiary);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-primary);
}

@media (max-width: 768px) {
    .offer-presentation-container > div {
        padding: 25px 20px;
        border-radius: 8px;
    }
}
