@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

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

:root {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-gold: #ffffff;
    --accent-silver: #585858;
    --border-color: #333333;
}

body, html, h1, h2, h3, h4, h5, h6, p, a, button, input, select, label, div, span {
    font-family: 'Inter', 'SF Pro Display', 'Segoe UI', 'Roboto', Arial, system-ui, sans-serif !important;
    font-variant-ligatures: none;
}

body {
    background: #000 !important;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0,0,0,0.32) !important; /* More see-through for bg video */
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: -0.5px;
    text-decoration: none !important;
    cursor: pointer;
    transition: none;
    pointer-events: auto;
}
.logo:hover,
.logo:active,
.logo:focus {
    color: var(--accent-gold);
    text-decoration: none !important;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary); /* Make nav links grey */
    text-decoration: none;
    font-weight: 400 !important;  /* Not bold */
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 3px;
    letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 1px;
    transition: width 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 1px;
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* When mobile menu is open, keep underline on hovered/active links */
.nav-links.active a:hover::after,
.nav-links.active a.active::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
    font-weight: bold;
    background: var(--accent-gold) !important;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

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

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    z-index: -1;
}

.hero-content {
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 100;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.5s both;
    transform: translateY(0);
    will-change: transform, opacity;
    transition: opacity 0.4s ease;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease 1s both;
}

.cta-button::before {
    content: attr(data-hover-text);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gold);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-button:hover::before {
    top: 0;
}

/* Page Header */
.page-header {
    background: #000 !important;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-title {
    font-size: 3rem;
    font-weight: 200;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Products Section */
.products-section {
    position: relative;
    background: #000 !important;
    z-index: 10;
    padding: 4rem 0;
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.05;
    z-index: -1;
}

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

.category-title {
    font-size: 3.5rem;
    font-weight: 300;
    text-align: center;
    margin: 5rem 0 4rem;
    color: var(--text-primary);
    letter-spacing: -1.5px;
    position: relative;
    padding-bottom: 1.5rem;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 2px;
}

/* Special styling for first category title (larger spacing) */
.products-section .category-title:first-of-type {
    margin-top: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2rem;
    transition: all 0.3s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 4px 32px rgba(0,0,0,0.12);
    background: linear-gradient(135deg, var(--bg-secondary) 80%, var(--bg-tertiary) 100%);
    border: 1.5px solid var(--border-color);
}

.product-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(255,255,255,0.08), 0 2px 16px rgba(109,84,150,0.13);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--border-color) 100%);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.product-info {
    text-align: left;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.product-card:hover .product-name {
    text-decoration: underline;
    color: var(--accent-gold);
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    margin-top: 1.1em;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 0.7em;
    margin-top: 0.5em;
}

.product-price {
    margin-bottom: 1.5rem;
    margin-top: 0.7rem;
}

.product-price-old {
    color: #888;
    text-decoration: line-through;
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.7;
    vertical-align: middle;
}

.product-price-new {
    color: var(--accent-gold);
    font-size: 1.5rem;
    font-weight: 700;
    vertical-align: middle;
    letter-spacing: 0.01em;
}

/* Product discount badge (percent) - match cart color */
.product-discount-badge {
    background: #232323;
    color: #ffb300 !important; /* match cart discount badge color */
    border-radius: 7px;
    font-size: 0.98em;
    font-weight: 600;
    padding: 0.13em 0.7em 0.13em 0.7em;
    margin-left: 0.1em;
    border: 1.5px solid #222;
    letter-spacing: 0.01em;
    min-width: 2.2em;
    text-align: center;
}

/* Product card star ratings - use emoji for all stars */
.stars .star,
.product-rating .star {
    font-size: 1.08em;
    vertical-align: middle;
    color: #ffb300 !important; /* gold for all stars */
    /* Remove SVG scaling issues */
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    line-height: 1;
    text-align: center;
    margin-right: 0.05em;
}

.stars .star.half,
.product-rating .star.half {
    /* No SVG, just emoji */
    /* If you use a half-star emoji, style it the same */
    /* Example: ⭐ for full, ☆ for empty, 🟊 or ⯨ for half (or use a Unicode half-star if available) */
    /* No extra scaling needed */
}

.product-rating-row {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0;
    margin-top: 0.1em;
    flex-direction: row;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.4em;
    font-size: 1.08rem;
    margin-bottom: 0;
}

.rating-number-bg {
    display: inline-block;
    background: #181818;
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 0.88em;
    font-weight: 600;
    padding: 0.09em 0.5em 0.09em 0.5em;
    margin-left: 0.13em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    letter-spacing: 0.01em;
    border: 1.2px solid #222;
    min-width: 1.8em;
    text-align: center;
    line-height: 1.1;
}

.product-buys-small {
    font-size: 0.74rem;
    color: #7ee787;
    font-weight: 500;
    margin: 0.18em 0 0 0.1em;
    letter-spacing: 0.01em;
    opacity: 0.5;
    display: block;
    line-height: 1.2;
}

.cart-total {
    margin-top: 2rem;
    padding-top: 0;
    border-top: none !important;
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    margin-bottom: 0.1rem;  /* Reduced from 0.2rem */
}

.cart-shipping-note {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-bottom: 1.5rem;  /* Increased from 1.2rem */
    margin-left: 0.1rem;
    margin-top: 0.1rem;     /* Reduced for tighter spacing with total */
    line-height: 1.3;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 0.98rem;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateX(150%);
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), opacity 0.3s;
    max-width: 320px;
    opacity: 0;
    pointer-events: none;
}
.cart-notification.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* Cart Sidebar Sliding Animation */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: 100%;
    background: var(--bg-primary);
    border-left: 1.5px solid var(--border-color);
    z-index: 1100;
    box-shadow: -8px 0 32px rgba(0,0,0,0.45);
    padding: 2.2rem 2rem 2rem 2rem;
    overflow-y: auto;
    transform: translateX(110%);
    transition: transform 0.45s cubic-bezier(.77,0,.18,1);
    /* Hide by default */
}
.cart-sidebar.active {
    transform: translateX(0);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(.77,0,.18,1);
}
.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Cart Secure Checkout Button */
.checkout-btn {
    width: 100%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;  /* Reduced from 0.6rem */
    font-size: 1.08rem;
    font-weight: bold;
    margin-bottom: 0.5rem;  /* Reduced from 0.7rem */
    background: var(--accent-gold);
    color: var(--bg-primary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(.4,2,.6,1);
    text-align: center;
}
.checkout-btn svg {
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    margin-right: 0.5em;
    margin-bottom: -0.15em;
    display: inline-block;
}

/* Cart Security Note (lock and text aligned, styled like shipping note) */
.cart-security-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 1.0rem; /* was 0.3rem, now closer to checkout button */
    opacity: 0.8;
    text-align: center;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.1em;
}
.cart-security-note svg {
    width: 1.1em;
    height: 1.1em;
    vertical-align: middle;
    margin-right: 0.4em;
    margin-bottom: -0.15em;
    display: inline-block;
}

/* Checkout button lock emoji: pitch black, perfectly centered vertically */
.cart-sidebar .emoji-bw,
.checkout-btn .emoji-bw {
    filter: grayscale(1) brightness(0.1) contrast(2.5);
    opacity: 1;
    color: #000;
    font-size: 0.91em;
    vertical-align: middle;
    margin-right: 0.4em;
    user-select: none;
    pointer-events: none;
    display: inline-flex;
    align-items: center;      /* center vertically */
    justify-content: center;
    height: 0.8em;
    line-height: 1;
    position: relative;
    top: 0;                   /* reset any previous offset */
}

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

/* Hero title animations */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 100;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.5s both;
    transform: translateY(0);
    will-change: transform, opacity;
    transition: opacity 0.4s ease;
}

.hero-title.fade-out {
    animation: fadeOut 0.5s linear forwards;
}

.hero-title.fade-in {
    animation: fadeIn 0.5s linear forwards;
}

/* Buttons */
.btn-primary, .add-to-cart-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--accent-gold);
    color: var(--bg-primary);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(.4,2,.6,1);
    font-size: 1rem;
    border-radius: 4px;
    text-align: center;
    margin-top: 1rem;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.btn-primary:hover, .add-to-cart-btn:hover {
    background: var(--accent-silver);
    color: var(--text-primary);
    transform: translateY(-2px) scale(1.03);
}

.btn-primary:disabled, .add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #444;
    color: #bbb;
    box-shadow: none;
    transform: none;
}

/* Example for product card button alignment */
.product-card .add-to-cart-btn, .product-card .btn-primary {
    width: 100%;
    margin-top: 1.2rem;
    margin-bottom: 0;
    font-size: 1.05rem;
    border-radius: 6px;
    font-family: inherit;
    letter-spacing: 0.01em;
}

/* Category Showcase */
.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 40px rgba(255,255,255,0.08);
}

.category-card:hover .category-bg {
    opacity: 0.2;
    transform: scale(1.05);
}

.category-card:hover .category-arrow {
    transform: translateX(10px);
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000 !important;
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .category-title {
        font-size: 2.8rem;
        margin: 4rem 0 3rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-buttons {
        flex-direction: column;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .category-title {
        font-size: 2.2rem;
        margin: 3rem 0 2.5rem;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .about-placeholder {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }
}

/* Mobile drop menu pitch black (always) */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000 !important;
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

/* Checkout Page Improvements */
.checkout-container {
    max-width: 1100px;
    margin: 8rem auto 4rem;
    padding: 0 1rem;
}

.checkout-main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: flex-start;
    justify-content: center;
}

.checkout-card {
    background: var(--bg-secondary);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    margin-bottom: 2rem; /* For consistency with the old inline style */
    width: 100%; /* Default to full width within its flex container */
}

.billing-info {
    flex: 1 1 400px;
    min-width: 320px;
    max-width: 440px;
}

.order-summary-payment-section {
    flex: 1 1 400px;
    min-width: 340px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.checkout-section-title {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 1.1rem;
    text-align: center;
}

#billing-form {
    width: 100%;
}

.form-section-title {
    font-size: 1.13rem;
    color: var(--text-primary);
    margin-bottom: 0.7rem;
    font-weight: 600;
    text-align: left;
    letter-spacing: -0.5px;
}

.form-section-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.phone-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-prefix {
    color: var(--text-secondary);
    padding: 0.8rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px 0 0 6px;
    border-right: none;
    font-size: 0.95rem;
}

.phone-input {
    border-radius: 0 6px 6px 0;
    flex: 1; /* Ensure it takes remaining space */
}

.policy-notice {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: center;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.policy-notice a,
.payment-policy-links a {
    color: var(--accent-gold);
    text-decoration: underline;
}

.checkout-items-container {
    /* No specific styles needed here, handled by individual items */
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.checkout-item-separator {
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.checkout-item-image {
    width: 64px;
    height: 64px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.checkout-item-image span.emoji-img { /* For emoji images */
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

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

.checkout-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.checkout-item-meta {
    color: var(--text-secondary);
    font-size: 0.97em;
}

.checkout-item-price {
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 1.1em;
}

.checkout-totals {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.checkout-total-line {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
}

.checkout-total-discount-value {
    color: #ffb300;
}

.checkout-total-final {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.tooltip-info {
    position: relative;
    display: inline-block;
}

.tooltip-info .info-icon {
    color: #a0a0a0;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #a0a0a0;
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: help;
    line-height: 1;
}

.tooltip-info .tooltip-content {
    position: absolute;
    bottom: calc(100% + 10px);
    right: -10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    width: 280px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    transition: opacity 0.2s, visibility 0.2s;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.payment-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
}

.payment-options-row {
    display: flex;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
}

.payment-btn.netbanking-btn {
    width: 100%;
    max-width: 300px;
}

#payment-status-msg {
    margin-top: 1.2rem;
    text-align: center;
    font-size: 0.93rem;
    font-weight: 500;
    min-height: 1.2em;
    line-height: 1.2;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
}

.payment-policy-links {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.security-badges {
    margin-top: 0.01rem;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
}

.security-badge .emoji-bw {
    filter: grayscale(1) brightness(2);
}

.security-badge-text {
    font-size: 0.85rem;
}

/* Responsive adjustments for checkout page */
@media (max-width: 768px) {
    .checkout-container {
        margin-top: 6rem;
        padding: 0 0.8rem;
    }
    .checkout-card {
        padding: 1.5rem 1rem;
    }
    .billing-info, .order-summary-payment-section {
        min-width: unset;
        max-width: unset;
        flex: 1 1 100%; /* Stack columns on smaller screens */
    }
    .payment-options-row {
        flex-direction: column; /* Stack payment buttons on very small screens */
        gap: 0.8rem;
    }
    .payment-btn {
        padding: 1rem 0.8rem;
        font-size: 1rem;
    }
    .checkout-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .checkout-item-details {
        width: 100%;
    }
    .checkout-item-price {
        align-self: flex-end;
    }
}

/* Checkout Page Improvements */
.payment-btn {
    padding: 1.2rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    font-size: 1.1rem;
    font-weight: 500;
    width: 100%;
    position: relative;
    min-height: 60px; /* Ensure consistent height */
}

.payment-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    border-color: var(--accent-gold);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.payment-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.payment-btn .btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: opacity 0.2s;
}

.payment-btn .btn-spinner {
    display: none;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--text-primary);
    width: 24px;
    height: 24px;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}

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

.payment-btn.processing .btn-content {
    opacity: 0;
    visibility: hidden;
}

.payment-btn.processing .btn-spinner {
    display: block;
}

/* Form Validation Styles (moved from checkout.js) */
.form-group {
    position: relative;
    margin-bottom: 0.5rem;
    width: 100%; /* Ensure form groups take full width */
}
.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.form-group input {
    width: 100%;
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.form-group input:focus {
    border-color: var(--accent-gold);
    outline: none;
}
.form-group input.error {
    border-color: #ff6b6b;
}
.error-message {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    min-height: 1em;
}