/* Union Jack Themed Styles - Imports Theme CSS */
@import url('theme.css');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@400;500;700&family=Roboto+Mono:wght@400&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-body);
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-background);
    font-size: 16px;
    font-weight: var(--font-weight-regular);
    margin: 0;
    padding: 0;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Logo Header */
.logo-header {
    position: sticky;
    top: 0;
    padding: 20px var(--space-4);
    text-align: center;
    background: var(--color-background);
    width: 100%;
    z-index: 100;
    transition: padding 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    height: fit-content;
    min-height:  100vh;
    max-height: fit-content;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(16, 185, 129, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: var(--font-family-heading);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 500;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-family: var(--font-family-heading);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-trust {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    opacity: 0.85;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-btn.primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.hero-btn.primary:hover {
    background: var(--color-primary-hover, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.hero-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero-btn.secondary:hover {
    background: white;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.hero-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.hero-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.hero-dot.active {
    background: white;
    transform: scale(1.3);
}

/* Product Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
}

.carousel-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.product-image:hover .carousel-nav-btn {
    opacity: 1;
}

.carousel-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.logo-header.scrolled {
    padding: 15px var(--space-4);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo-img {
    height: 150px;
    width: auto;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    transition: height 0.3s ease, transform var(--duration-base) var(--ease-out);
}

.logo-header.scrolled .logo-img {
    height: 100px;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Navigation Header */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 10;
    padding: 20px 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-logo {
    height: 100px;
    width: auto;
}

/* Products Section */
.products {
    padding: var(--space-7) var(--space-2);
    background: #F5F5F5;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: var(--space-6);
}

.product-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2);
    transition: transform var(--duration-base), box-shadow var(--duration-base);
    border: none;
}

/* Hover animation removed */

.product-image {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: var(--gray-100);
}

/* Image Carousel */
.image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-out);
}

.carousel-image.active {
    opacity: 1;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--duration-fast);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: white;
    width: 10px;
    height: 10px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--color-primary);
    color: var(--color-accent);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.product-info {
    padding: var(--space-5);
    background: #F8F8F8;
    color: var(--color-text-primary);
}

.product-info h3 {
    font-family: var(--font-family-heading);
    font-size: 22px;
    line-height: 32px;
    margin-bottom: var(--space-3);
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.product-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    font-size: 16px;
    line-height: 24px;
}

.price {
    font-family: var(--font-family-heading);
    font-size: 32px;
    line-height: 1.2;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    /* margin-bottom: var(--space-3); */
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

/* Quantity Container */
.quantity-container {
    margin-bottom: var(--space-4);
}

.quantity-container label {
    display: block;
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--color-background);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    width: fit-content;
}

.qty-btn {
    background: var(--color-surface);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
    transition: background-color 0.2s ease;
    user-select: none;
}

.qty-btn:hover:not(:disabled) {
    background: var(--color-primary-100);
    color: var(--color-primary);
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: var(--color-background);
    color: var(--color-text-primary);
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    outline: none;
    -moz-appearance: textfield; /* Firefox */
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Buttons - Red Theme */
.buy-btn, .submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--color-secondary);
    color: var(--color-accent);
    border: none;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all var(--duration-base);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    position: relative;
    overflow: hidden;
}

.buy-btn::before, .submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--duration-slow);
}

.buy-btn:hover::before, .submit-btn:hover::before {
    left: 100%;
}

.buy-btn:hover, .submit-btn:hover {
    background: #A01020;
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.add-upsell-btn {
    padding: var(--space-2) var(--space-4);
    background: var(--color-secondary);
    color: var(--color-accent);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all var(--duration-base);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.add-upsell-btn:hover {
    background: #A01020;
    box-shadow: var(--shadow-red);
}

/* Checkout Section */
.checkout {
    padding: var(--space-7) var(--space-4);
    background: var(--gray-100);
    display: none;
}

.checkout:not(.hidden) {
    display: block;
}

.checkout-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-6);
    max-width: 1100px;
    margin: 0 auto;
}

/* Order Summary */
.order-summary {
    background: var(--color-background);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    height: fit-content;
    box-shadow: var(--shadow-2);
    border: var(--border-width-thin) solid var(--gray-200);
}

.order-summary h2 {
    font-family: var(--font-family-heading);
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

#cart-items {
    margin-bottom: var(--space-5);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    background: var(--gray-100);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    border: var(--border-width-thin) solid var(--gray-200);
}

.cart-item-name {
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-1);
}

.cart-item-qty {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.cart-item-price {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-bold);
    color: var(--color-secondary);
    font-size: 20px;
}

/* Upsell Section */
.upsell-section {
    padding: var(--space-4);
    background: linear-gradient(135deg, rgba(0,36,125,0.05), rgba(207,20,43,0.05));
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
    border: var(--border-width-bold) dashed var(--color-secondary);
}

.upsell-section h3 {
    font-family: var(--font-family-heading);
    margin-bottom: var(--space-3);
    color: var(--color-secondary);
}

.upsell-product {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.upsell-product img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: var(--border-width-thin) solid var(--gray-200);
}

.upsell-info h4 {
    color: var(--color-primary);
    margin-bottom: var(--space-1);
}

.upsell-info p {
    color: var(--color-secondary);
    font-weight: var(--font-weight-bold);
    font-size: 18px;
    margin-bottom: var(--space-2);
}

.total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-family-heading);
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    padding-top: var(--space-4);
    border-top: var(--border-width-bold) solid var(--color-primary);
    color: var(--color-primary);
}

/* Payment Form */
.payment-section {
    background: var(--color-background);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
    border: var(--border-width-thin) solid var(--gray-200);
}

.payment-section h2 {
    font-family: var(--font-family-heading);
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: var(--space-5);
}

.form-group {
    margin-bottom: var(--space-4);
}

.payment-divider {
    text-align: center;
    margin: var(--space-4) 0;
    position: relative;
}

.payment-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-border);
    z-index: 1;
}

.payment-divider span {
    background: var(--color-background);
    padding: 0 var(--space-3);
    color: var(--color-text-secondary);
    font-size: 14px;
    position: relative;
    z-index: 2;
}

#payment-request-button {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.form-group input {
    width: 100%;
    padding: var(--space-3);
    border: var(--input-border);
    border-radius: var(--input-radius);
    font-size: 16px;
    transition: all var(--duration-fast);
    background: var(--color-background);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--input-focus-shadow);
}

.address-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

#card-element {
    padding: var(--space-3);
    border: var(--input-border);
    border-radius: var(--input-radius);
    background: var(--color-background);
    transition: all var(--duration-fast);
}

#card-element.StripeElement--focus {
    border-color: var(--color-primary);
    box-shadow: var(--input-focus-shadow);
}

#card-errors {
    color: var(--color-secondary);
    margin-top: var(--space-2);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

/* Spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-accent);
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: var(--space-2);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 36, 125, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    transition: opacity var(--duration-base);
    pointer-events: none;
}

/* Hide header on mobile when thank you modal is open */
@media (max-width: 768px) {
    body:has(#thank-you-modal:not(.hidden)) .nav-header,
    body.thank-you-modal-open .nav-header {
        display: none !important;
    }
}

.modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--color-background);
    border-radius: var(--radius-lg);
    max-width: 500px;
    max-height: 90vh;
    width: 90%;
    text-align: center;
    animation: slideUp var(--duration-base) var(--ease-out);
    position: relative;
    box-shadow: var(--shadow-union);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-scrollable-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4) var(--space-6) 0;
}

.modal-fixed-footer {
    flex-shrink: 0;
    padding: var(--space-4) var(--space-6) var(--space-6);
    border-top: 1px solid rgba(0, 36, 125, 0.1);
}

.legal-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
}

.legal-content h2 {
    font-family: var(--font-family-heading);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.legal-content h3 {
    font-family: var(--font-family-heading);
    color: var(--color-primary);
    margin-top: var(--space-4);
    margin-bottom: var(--space-3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    padding-top: var(--space-3);
}

.modal-logo {
    height: 80px;
    width: auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: var(--shadow-red);
}

.order-confirmation {
    margin: var(--space-5) 0;
    padding: var(--space-4);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
}

.order-id-label {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.order-id-container {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.order-id-value {
    font-family: var(--font-family-mono);
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    word-break: break-all;
    flex: 1;
}

.copy-btn {
    background: transparent;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-2);
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: all var(--duration-base);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.copy-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(0, 36, 125, 0.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-tooltip {
    background: var(--color-text-primary);
    color: var(--color-background);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: var(--shadow-2);
}

.copy-tooltip.show {
    opacity: 1;
}

.close-modal-btn {
    padding: var(--space-3) var(--space-4);
    background: var(--color-primary);
    color: var(--color-accent);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    text-transform: uppercase;
    width: 100%;
    letter-spacing: var(--tracking-wide);
    transition: all var(--duration-base);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: var(--shadow-union);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: var(--shadow-union), 0 0 0 4px rgba(0, 36, 125, 0.2);
    }
}

.close-modal-btn:hover {
    background: #001A5C;
    box-shadow: var(--shadow-union);
}

.close-btn {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: color var(--duration-fast);
}

.close-btn:hover {
    color: var(--color-primary);
}

/* Footer */
.footer {
    background: var(--color-primary);
    color: var(--color-accent);
    padding: var(--space-5) 0;
    text-align: center;
    border-top: var(--border-width-bold) solid var(--color-secondary);
}

.footer-links {
    margin-top: var(--space-3);
    display: flex;
    justify-content: center;
    gap: var(--space-5);
}

.footer-links a {
    color: var(--color-accent);
    opacity: 0.9;
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: opacity var(--duration-fast);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width var(--duration-base) var(--ease-out);
}

.footer-links a:hover {
    opacity: 1;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Social Proof Popup */
.social-proof-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    max-width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border: 3px solid #2563eb;
    animation: slideInLeft 0.5s ease-out;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.5s ease;
}

.social-proof-popup:not(.hidden) {
    opacity: 1;
    transform: translateX(0);
}

.social-proof-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
    position: relative;
}

.social-proof-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.social-proof-text {
    flex: 1;
    min-width: 0;
}

.social-proof-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.social-proof-location {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.social-proof-time {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
}

.social-proof-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--gray);
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.social-proof-close:hover {
    background: var(--light);
    color: var(--dark);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

/* Responsive adjustments for social proof */
@media (max-width: 480px) {
    .social-proof-popup {
        left: 10px;
        right: 10px;
        max-width: none;
        bottom: 10px;
    }
    
    .social-proof-content {
        padding: 14px;
    }
    
    .social-proof-name {
        font-size: 0.9rem;
    }
    
    .social-proof-location {
        font-size: 0.8rem;
    }
    
    .social-proof-time {
        font-size: 0.75rem;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* New Sections Styling */

/* Hero Section Enhancements */
.hero-subtitle {
    font-size: 18px;
    line-height: 28px;
    opacity: 0.9;
    margin-bottom: var(--space-4);
    font-weight: var(--font-weight-medium);
}

.hero-description {
    font-size: 18px;
    line-height: 28px;
    opacity: 0.95;
    margin-bottom: var(--space-3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-trust {
    font-size: 16px;
    line-height: 24px;
    opacity: 0.9;
    font-style: italic;
    font-weight: var(--font-weight-medium);
}

/* Product Features */
.product-features {
    list-style: none;
    margin-bottom: var(--space-4);
    padding: 0;
}

.product-features li {
    margin-bottom: var(--space-2);
    font-size: 14px;
    line-height: 20px;
    color: var(--color-text-primary);
}

.delivery {
    font-size: 16px;
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-regular);
}

.quantity-selector label {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    margin-right: var(--space-2);
}

/* Why Choose Section */
.why-choose {
    padding: var(--space-7) var(--space-4);
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

.why-choose h2 {
    font-family: var(--font-family-heading);
    font-size: 40px;
    line-height: 52px;
    text-align: center;
    margin-bottom: var(--space-6);
    color: var(--color-accent);
    font-weight: var(--font-weight-bold);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-5);
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive 3x3 grid for medium and large screens */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }
}

.feature {
    text-align: center;
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: transform var(--duration-base);
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: var(--space-3);
    display: block;
}

.feature h3 {
    font-family: var(--font-family-heading);
    font-size: 22px;
    line-height: 32px;
    margin-bottom: var(--space-2);
    color: var(--color-accent);
    font-weight: var(--font-weight-bold);
}

.feature p {
    font-size: 16px;
    line-height: 24px;
    opacity: 0.9;
    color: var(--color-accent);
}

/* FAQ Section */
.faq {
    padding: var(--space-7) var(--space-4);
    background: var(--gray-100);
}

.faq h2 {
    font-family: var(--font-family-heading);
    font-size: 40px;
    line-height: 52px;
    text-align: center;
    margin-bottom: var(--space-6);
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-background);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-2);
    border: var(--border-width-thin) solid var(--gray-200);
}

.faq-item summary {
    font-family: var(--font-family-heading);
    font-size: 24px;
    line-height: 36px;
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    margin-bottom: 0;
    padding: var(--space-3) 0;
    transition: color var(--duration-fast);
    list-style: none;
}

.faq-item summary:hover {
    color: var(--color-secondary);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: '▶';
    display: inline-block;
    width: 20px;
    margin-right: var(--space-2);
    transition: transform var(--duration-fast);
    color: var(--color-secondary);
}

.faq-item[open] summary::before {
    transform: rotate(90deg);
}

.faq-item h3 {
    font-family: var(--font-family-heading);
    font-size: 20px;
    line-height: 30px;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
    font-weight: var(--font-weight-bold);
}

.faq-item p {
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text-primary);
    margin: 0;
    padding-top: var(--space-4);
}

/* Our Story Section */
.our-story {
    padding: var(--space-7) var(--space-4);
    background: var(--color-background);
    text-align: center;
}

.our-story h2 {
    font-family: var(--font-family-heading);
    font-size: 40px;
    line-height: 52px;
    margin-bottom: var(--space-5);
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
}

.our-story p {
    font-size: 18px;
    line-height: 28px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text-primary);
}

/* Responsive */
@media (max-width: 768px) {

    
    .hero {
        padding-top: 100px;
        padding-bottom: 100px;
    }
    
    .nav-header {
        padding: 15px 0;
    }
    
    .nav-logo {
        height: 80px;
        margin: auto auto;
    }
    
    .hero-content h1 {
        font-size: 40px;
        line-height: 52px;
    }
    
    .hero-content h2 {
        font-size: 28px;
        line-height: 36px;
    }
    
    .hero-content p, .hero-description {
        font-size: 16px;
        line-height: 24px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 200px;
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .hero-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .why-choose h2, .faq h2, .our-story h2 {
        font-size: 32px;
        line-height: 44px;
    }
    
    .checkout-wrapper {
        grid-template-columns: 1fr;
    }
    
    .address-row {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: var(--space-3);
        font-size: 14px;
    }
    
    .upsell-product {
        flex-direction: column;
        text-align: center;
    }
    
    .price {
        font-size: 32px;
    }
    
    .total {
        font-size: 26px;
    }
}

/* Flag Options in Checkout */
.flag-options {
    margin: 20px 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 15px;
    background: var(--color-surface);
}

.flag-options h3 {
    margin-bottom: 15px;
    color: var(--color-text-primary);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
}

.flag-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flag-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-button);
    background: var(--color-background);
    transition: all 0.2s ease;
}

.flag-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.flag-thumb {
    width: 40px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
}

.flag-details {
    flex: 1;
    margin-right: 12px;
}

.flag-name {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.flag-price {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

.flag-controls {
    flex-shrink: 0;
}

.quantity-selector.compact {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-selector.compact .qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-border);
    background: var(--color-background);
    color: var(--color-text-primary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-selector.compact .qty-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.quantity-selector.compact .qty-input {
    width: 40px;
    height: 28px;
    text-align: center;
}

.quantity-selector.compact .qty-input.large {
    width: 60px;
    height: 44px;
    padding: 12px 8px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 6px;
}

/* Delivery item specific styling */
.flag-item.delivery-item {
    margin-top: 0; /* Removed top margin for better spacing */
}

.delivery-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.delivery-note {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* Back button for checkout */
.back-btn {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-button);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--space-3);
    width: 100%;
    font-size: 1rem;
}

.back-btn:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-text-secondary);
    transform: translateY(-1px);
}

/* Mobile Checkout Responsive Enhancement */
.mobile-checkout-mode {
    position: relative;
}

/* Completely hide non-essential elements during mobile checkout */
@media (max-width: 768px) {
    .mobile-checkout-mode .hero,
    .mobile-checkout-mode .products,
    .mobile-checkout-mode .why-choose,
    .mobile-checkout-mode .faq,
    .mobile-checkout-mode .our-story,
    .mobile-checkout-mode .footer {
        opacity: 0;
        height: 0;
        min-height: 0;
        max-height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    
    .mobile-checkout-mode .nav-header {
        opacity: 1;
        pointer-events: auto;
        transition: opacity 0.3s ease;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 200;
        background: var(--color-background);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    
    /* Hide navigation header completely in mobile checkout */
    .mobile-checkout-mode .nav-header,
    .mobile-checkout-mode .logo-header {
        display: none !important;
    }
    
    .mobile-checkout-mode .checkout {
        opacity: 1;
        pointer-events: auto;
        transition: opacity 0.3s ease;
        padding: var(--space-4) 0 120px 0; /* Remove top padding since no nav */
        min-height: 100vh;
        background: var(--color-background);
        overflow-y: auto;
    }
    
    /* Simple vertical layout checkout */
    .mobile-checkout-mode .checkout-wrapper {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        margin: 0;
        padding: 0;
        gap: var(--space-4);
    }
    
    /* Add logo at top of checkout content */
    .mobile-checkout-mode .checkout-wrapper::before {
        content: '';
        background-image: url('logo.webp');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        height: 80px;
        width: 100%;
        margin-bottom: var(--space-3);
        flex-shrink: 0;
    }
    
    /* Clean sections without accordion styling */
    .mobile-checkout-mode .order-summary,
    .mobile-checkout-mode .payment-section {
        background: var(--color-background);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        margin: 0;
        padding: var(--space-4);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Simple section headers */
    .mobile-checkout-mode .order-summary h2,
    .mobile-checkout-mode .payment-section h2 {
        font-family: var(--font-family-heading);
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--color-primary);
        margin: 0 0 var(--space-3) 0;
        text-align: left;
    }
    
    /* Remove accordion-specific padding since sections have their own padding */
    .mobile-checkout-mode .order-summary > *:not(h2),
    .mobile-checkout-mode .payment-section > *:not(h2) {
        padding: 0;
    }
    
    /* Optimize form spacing - more compact */
    .mobile-checkout-mode .form-group {
        margin-bottom: var(--space-2); /* Reduced from var(--space-3) */
    }
    
    .mobile-checkout-mode .address-row {
        gap: var(--space-2);
    }
    
    /* Reduce total section spacing */
    .mobile-checkout-mode .total {
        padding-top: var(--space-2);
        margin-bottom: 0;
    }
    
    /* All content visible - no collapsing */
    
    
    /* Make forms more mobile-friendly */
    .mobile-checkout-mode .form-group input,
    .mobile-checkout-mode .form-group #card-element {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }
    
    /* Card element specific styling */
    .mobile-checkout-mode .form-group #card-element {
        border: 2px solid #dc2626; /* Start with required field styling */
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
        border-radius: 8px;
        background: white;
    }
    
    /* Required field highlighting */
    .mobile-checkout-mode .form-group input[required]:not(:focus):invalid,
    .mobile-checkout-mode .form-group input[required]:not(:focus):placeholder-shown {
        border: 2px solid #dc2626;
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    }
    
    .mobile-checkout-mode .form-group input[required]:focus {
        border: 2px solid var(--color-primary);
        box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
        outline: none;
    }
    
    .mobile-checkout-mode .form-group input[required]:valid {
        border: 2px solid #059669;
        box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
    }
    
    /* Form interaction state - show all required fields when form is active */
    .mobile-checkout-mode .payment-section:not(.collapsed) .form-group input[required]:not(:focus):not(:valid):placeholder-shown {
        border: 2px solid #dc2626;
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    }
    
    /* Temporary highlighting class for required fields */
    .mobile-checkout-mode .form-group input.show-required {
        border: 2px solid #dc2626 !important;
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
        animation: pulseRed 0.6s ease-in-out;
    }
    
    @keyframes pulseRed {
        0% { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1); }
        50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.3); }
        100% { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2); }
    }
    
    /* Hide original buttons in form */
    .mobile-checkout-mode .submit-btn,
    .mobile-checkout-mode .back-btn {
        display: none;
    }
    
    /* Sticky footer for mobile checkout actions */
    .mobile-checkout-mode .mobile-checkout-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--color-background);
        border-top: 1px solid var(--color-border);
        padding: var(--space-3);
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    .mobile-checkout-mode .mobile-checkout-footer .submit-btn,
    .mobile-checkout-mode .mobile-checkout-footer .back-btn {
        display: block;
        width: 100%;
        margin-bottom: var(--space-2);
        font-size: 16px;
        padding: 14px 16px;
    }
    
    .mobile-checkout-mode .mobile-checkout-footer .submit-btn:last-child,
    .mobile-checkout-mode .mobile-checkout-footer .back-btn:last-child {
        margin-bottom: 0;
    }
    
    /* Disabled state for submit button */
    .mobile-checkout-mode .mobile-checkout-footer .submit-btn:disabled {
        background: var(--gray-300);
        color: var(--gray-500);
        cursor: not-allowed;
        opacity: 0.6;
    }
    
    .mobile-checkout-mode .mobile-checkout-footer .submit-btn:disabled:hover {
        background: var(--gray-300);
        transform: none;
        box-shadow: none;
    }
}

/* =============================================================================
   CHECKOUT PAGE STYLES
   ============================================================================= */

.checkout-page {
    background: var(--color-background);
    min-height: 100vh;
}

/* Checkout Header */
.checkout-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-3) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.checkout-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.back-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--color-primary-600);
}

.checkout-logo {
    height: 100px;
    width: auto;
}

.secure-badge {
    font-size: 14px;
    color: var(--color-success);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* Main Checkout Layout */
.checkout-main {
    padding: var(--space-6) 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    max-width: 1200px;
    margin: 0 auto var(--space-6);
}

/* Order Summary Section */
.order-summary-section {
    background: var(--color-surface);
    padding: var(--space-4);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.order-summary-section h2 {
    margin: 0 0 var(--space-4) 0;
    color: var(--color-text-primary);
    font-size: var(--text-header-size);
}

/* Flag Selection */
.flag-selection {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.flag-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-card);
    margin-bottom: var(--space-3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--color-background);
}

.flag-option:last-child {
    margin-bottom: 0;
}

.flag-option.selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-100);
    background: var(--color-primary-50);
}

.selected-product {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.product-summary {
    display: flex;
    gap: var(--space-3);
}

.flag-thumb,
.product-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: var(--radius-global);
    border: 1px solid var(--color-border);
    flex-shrink: 0;
}

.flag-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
}

.flag-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.flag-name {
    font-weight: 600;
    font-size: var(--text-body-medium-size);
    color: var(--color-text-primary);
    margin: 0;
}

.flag-price {
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

.flag-specs {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.3;
    margin: 0;
}

.product-details h3 {
    margin: 0 0 var(--space-1) 0;
    font-size: var(--text-body-large-size);
    font-weight: var(--text-body-large-weight);
    color: var(--color-text-primary);
}

.product-specs {
    margin-bottom: var(--space-2);
}

.product-specs p {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.quantity-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.quantity {
    color: var(--color-text-secondary);
}

.unit-price {
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Order Breakdown */
.order-breakdown {
    margin-bottom: var(--space-4);
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
}

.breakdown-row:last-child {
    border-bottom: none;
}

.total-row {
    font-weight: 600;
    font-size: var(--text-body-large-size);
    color: var(--color-text-primary);
    border-top: 2px solid var(--color-border);
    margin-top: var(--space-2);
    padding-top: var(--space-3);
}

/* Delivery Info */
.delivery-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--color-success-50);
    padding: var(--space-3);
    border-radius: var(--radius-global);
    border: 1px solid var(--color-success-200);
}

.delivery-icon {
    font-size: 24px;
}

.delivery-details strong {
    display: block;
    color: var(--color-success-800);
    margin-bottom: var(--space-1);
}

.delivery-details p {
    margin: 0;
    font-size: 14px;
    color: var(--color-success-700);
}

/* Payment Section */
.payment-section {
    background: var(--color-surface);
    padding: var(--space-4);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
}

.payment-section h2 {
    margin: 0 0 var(--space-4) 0;
    color: var(--color-text-primary);
    font-size: var(--text-header-size);
}

.form-section {
    margin-bottom: var(--space-4);
}

.form-section:last-of-type {
    margin-bottom: var(--space-4);
}

.form-section h3 {
    margin: 0 0 var(--space-4) 0;
    color: var(--color-text-primary);
    font-size: var(--text-body-large-size);
    font-weight: 600;
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--color-background);
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-100);
}

.form-group small {
    display: block;
    margin-top: var(--space-1);
    font-size: 14px;
    color: var(--color-text-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

/* Payment Method */
.payment-request-section {
    margin-bottom: var(--space-4);
}

.payment-divider {
    text-align: center;
    margin: var(--space-4) 0;
    position: relative;
}

.payment-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-border);
    z-index: 1;
}

.payment-divider span {
    background: var(--color-surface);
    padding: 0 var(--space-3);
    color: var(--color-text-secondary);
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.card-input {
    padding: var(--padding-input);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-input);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.error-message {
    color: var(--color-error);
    font-size: 14px;
    margin-top: var(--space-2);
}

/* Submit Button */
.checkout-submit-btn {
    width: 100%;
    background: var(--color-primary);
    color: white;
    border: none;
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-button);
    font-size: var(--text-button-primary-size);
    font-weight: var(--text-button-primary-weight);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    /* margin-bottom: var(--space-3); */
}

.checkout-submit-btn:hover:not(:disabled) {
    background: #001A5C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.checkout-submit-btn:disabled {
    background: var(--color-border);
    color: var(--color-text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--color-background);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.qty-btn {
    background: var(--color-surface);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
    transition: background-color 0.2s ease;
    user-select: none;
}

.qty-btn:hover:not(:disabled) {
    background: var(--color-primary-100);
    color: var(--color-primary);
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: var(--color-background);
    color: var(--color-text-primary);
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    outline: none;
    -moz-appearance: textfield; /* Firefox */
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.security-note {
    text-align: center;
    font-size: 14px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
}

/* Continue Shopping Button */
.continue-shopping-btn {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: var(--space-3) var(--space-6);
    text-decoration: none;
    border-radius: var(--radius-button);
    font-weight: 600;
    transition: all 0.2s ease;
}

.continue-shopping-btn:hover {
    background: #001A5C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Fixed Checkout Footer */
.checkout-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-background);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    z-index: 50;
}

.checkout-footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4) 0;
}

.checkout-footer .security-note {
    text-align: center;
    font-size: 14px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    /* order: 2; */
}

.checkout-footer .checkout-submit-btn {
    width: 100%;
    /* order: 2; */
}

/* Add bottom padding to main content to account for fixed footer */
.checkout-page .checkout-main {
    padding-bottom: 140px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .checkout-logo {
        height: 40px;
    }


    .checkout-footer-content {
        padding: var(--space-3) 0;
    }
    
    .checkout-page .checkout-main {
        padding-bottom: 120px;
    }
    
    .checkout-nav {
        flex-wrap: wrap;
        gap: var(--space-2);
    }
    
    .secure-badge {
        order: -1;
        width: 100%;
        justify-content: center;
        font-size: 12px;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        padding: 0;
        margin: 0 0 4em;
    }
    
    .order-summary-section,
    .payment-section {
        padding: var(--space-3);
        position: static;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .checkout-main {
        padding: var(--space-4) 0;
    }
    
    .flag-option {
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-2);
        gap: var(--space-2);
    }
    
    .flag-option .quantity-selector {
        align-self: center;
    }
    
    .flag-info {
        gap: var(--space-2);
    }
    
    .flag-thumb {
        width: 50px;
        height: 38px;
    }
    
    .flag-name {
        font-size: 14px;
    }
    
    .flag-price {
        font-size: 14px;
    }
    
    .flag-specs {
        font-size: 11px;
    }
}
