/* Fonts are now preloaded in headers for better performance */

/* Temu-Style Design System - Enhanced for Responsive Architecture */
:root {
    /* Brand Colors (Temu Signature) */
    --primary-orange: #FB7701;
    --primary-orange-hover: #E66A00;
    --secondary-orange: #FF4D00;
    --light-orange: #FFF8F0;

    --text-primary: #333333;
    --text-secondary: #888888;
    --price-red: #E02020;
    --primary-red: #E53935;

    /* Backgrounds & Borders */
    --bg-page: #f6f6f6;
    --bg-white: #ffffff;
    --border-color: #EAEAEA;
    --bg-card-contrast: #f7f7f7;

    /* Typography - Prioritize Lao for correct rendering */
    --font-main: 'Noto Sans Lao', 'Roboto', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 70px;
    --header-height-minimal: 55px;

    /* Shadows - Layered for Premium Look */
    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-premium: 0 15px 45px rgba(251, 119, 1, 0.15);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-focus: 0 0 0 4px rgba(251, 119, 1, 0.15);

    /* Glassmorphism Defaults */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-blur: blur(12px);
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-page);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Reset & Utilities */
* {
    box-sizing: border-box;
    font-family: inherit;
}

input,
button,
select,
textarea,
label {
    font-family: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
    transition: padding 0.3s ease;
}

/* Buttons - Enhanced for Modern Design - Higher Specificity */
body .btn,
.main .btn,
.container .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%) !important;
    color: white !important;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 15px;
    width: auto;
    min-height: 48px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    font-family: inherit;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(251, 119, 1, 0.3);
}

body .btn:hover,
.main .btn:hover,
.container .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(251, 119, 1, 0.4);
    color: white !important;
}

body .btn:active,
.main .btn:active,
.container .btn:active {
    transform: translateY(0);
}

body .btn-block,
.main .btn-block,
.container .btn-block {
    width: 100%;
}

/* Modern Phone Input Container */
.phone-input-container {
    position: relative;
    display: flex;
    align-items: stretch;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.phone-input-container:focus-within {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(251, 119, 1, 0.1), 0 4px 12px rgba(251, 119, 1, 0.15);
    transform: translateY(-1px);
}

.phone-country-code {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 14px 18px;
    border-right: 1px solid var(--border-color);
    min-width: 85px;
    position: relative;
}

.phone-country-code::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: linear-gradient(to bottom, transparent, #dee2e6, transparent);
}

.flag-icon {
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.code-text {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.phone-input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    padding: 16px 20px !important;
    font-size: 16px;
    font-weight: 500;
    background: transparent;
    outline: none;
    box-shadow: none !important;
}

.phone-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.phone-hint {
    position: absolute;
    bottom: -22px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.phone-hint svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

.phone-input-container:focus-within .phone-hint {
    opacity: 1;
    color: var(--primary-orange);
}

/* Phone Input Error State */
.phone-input-container.error {
    border-color: #e53935;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1), 0 4px 12px rgba(229, 57, 53, 0.15);
}

.phone-input-container.error .phone-country-code {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.phone-input-container.error .phone-country-code::after {
    background: linear-gradient(to bottom, transparent, #ef5350, transparent);
}

.phone-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    font-size: 12px;
    color: #c62828;
    animation: slideDown 0.3s ease-out;
}

.phone-error svg {
    flex-shrink: 0;
    color: #e53935;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced form group spacing for phone input */
.form-group:has(.phone-input-container) {
    margin-bottom: 32px;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .phone-country-code {
        padding: 12px 14px;
        min-width: 75px;
    }

    .code-text {
        font-size: 14px;
    }

    .flag-icon {
        font-size: 16px;
    }

    .phone-input {
        padding: 14px 16px !important;
        font-size: 15px;
    }

    .phone-hint {
        font-size: 10px;
        bottom: -20px;
    }
}

/* Form Elements */
input[type="text"],
input[type="tel"],
input[type="password"] {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(251, 119, 1, 0.1);
}

.section-title {
    text-align: center;
    margin: 40px 0 20px 0;
    font-size: 22px;
    color: var(--primary-red);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-orange);
    border-radius: 2px;
}

/* Typography Helpers */
.text-center {
    text-align: center;
}

.text-orange {
    color: var(--primary-orange);
}

.font-bold {
    font-weight: 700;
}

.text-sm {
    font-size: 12px;
}

/* Authentication Cards (Login / Verify) */
.auth-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    max-width: 400px;
    margin: 40px auto 20px auto;
    text-align: center;
    border: 1px solid var(--border-color);
}

.auth-title {
    color: var(--primary-orange);
    font-weight: 900;
    font-size: 24px;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 13px;
}

.form-input {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(251, 119, 1, 0.1);
}

.otp-input {
    font-size: 32px;
    text-align: center;
    letter-spacing: 12px;
    font-weight: 900;
    color: var(--primary-orange);
}

/* Dashboard / Grid (Quick Access) */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 10px 0;
}

.dash-btn {
    background: white;
    padding: 12px 5px;
    border-radius: 8px;
    text-align: center;
    font-size: 11px;
    color: var(--text-primary);
    border: 1px solid transparent;
    /* No border by default for cleaner look */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dash-btn:hover {
    color: var(--primary-orange);
}

.dash-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

/* Product Grid - Base Styles (Enhanced by Responsive CSS) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding-bottom: 20px;
    transition: all 0.3s ease;
}

.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-orange);
}

.product-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 12px;
}

.product-title {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 40px;
    font-weight: 500;
    /* Softer weight for Temu look */
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}

.price-current {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-orange);
}

.price-symbol {
    font-size: 12px;
    font-weight: 600;
}

.price-original {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.product-meta {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sales-count {
    background: #f2f2f2;
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 10px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 16px;
    font-size: 11px;
    color: var(--text-secondary);
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    /* Push to bottom of flex container */
}

/* Premium Language Selector */
.premium-lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 999px;
    margin-right: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.premium-lang-item {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 800;
    color: #666;
    border-radius: 999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-lang-item.active {
    background: var(--primary-orange);
    color: white;
    box-shadow: 0 4px 12px rgba(251, 119, 1, 0.3);
}

.premium-lang-item:hover:not(.active) {
    background: rgba(251, 119, 1, 0.05);
    color: var(--primary-orange);
}

/* Header Adjustments for Selector */
.header-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding: 6px 16px;
    background: #fff;
}

@media (max-width: 480px) {
    .premium-lang-item {
        padding: 5px 10px;
        font-size: 10px;
    }
}


.legal {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 12px;
}

.add-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.add-btn:hover {
    background: var(--primary-orange);
    color: white;
}

/* Main Header - Enhanced Base Styles */
.main-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.header-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.header-logo:hover img {
    transform: scale(1.05);
}

/* Search Bar - Enhanced Base Styles */
.header-search {
    flex: 1;
    display: flex;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-orange);
    background: white;
    box-shadow: var(--shadow-focus);
}

body .search-btn,
.main-header .search-btn,
.container .search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-orange) !important;
    color: white !important;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

body .search-btn:hover,
.main-header .search-btn:hover,
.container .search-btn:hover {
    background: var(--primary-orange-hover) !important;
    transform: translateY(-50%) scale(1.05);
    color: white !important;
}

/* Header Icons - Enhanced Base Styles - Higher Specificity */
body .header-icons,
.main-header .header-icons,
.container .header-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    /* Even tighter gap for pill look */
}

body .header-icon-link,
.main-header .header-icon-link,
.container .header-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    position: relative;
    padding: 8px 12px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    min-width: 64px;
    color: var(--text-secondary) !important;
}

/* Colorful Icon Categories (Support both Desktop and Mobile) */
.header-icon-link.nav-home svg,
.nav-item.nav-home svg {
    color: #3B82F6 !important;
}

.header-icon-link.nav-shop svg,
.nav-item.nav-shop svg {
    color: #F59E0B !important;
}

.header-icon-link.nav-winners svg,
.nav-item.nav-winners svg {
    color: #EAB308 !important;
}

.header-icon-link.nav-orders svg,
.nav-item.nav-orders svg {
    color: #10B981 !important;
}

.header-icon-link.nav-cart svg,
.nav-item.nav-cart svg {
    color: #EF4444 !important;
}

.header-icon-link.nav-help svg,
.nav-item.nav-help svg {
    color: #6366F1 !important;
}

/* Active States with Themed Pill Backgrounds */
.header-icon-link.nav-home.active,
.nav-item.nav-home.active {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6 !important;
}

.header-icon-link.nav-shop.active,
.nav-item.nav-shop.active {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B !important;
}

.header-icon-link.nav-winners.active,
.nav-item.nav-winners.active {
    background: rgba(234, 179, 8, 0.1);
    color: #EAB308 !important;
}

.header-icon-link.nav-orders.active,
.nav-item.nav-orders.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981 !important;
}

.header-icon-link.nav-cart.active,
.nav-item.nav-cart.active {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444 !important;
}

.header-icon-link.nav-help.active,
.nav-item.nav-help.active {
    background: rgba(99, 102, 241, 0.1);
    color: #6366F1 !important;
}

body .header-icon-link svg,
.main-header .header-icon-link svg,
.container .header-icon-link svg {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
    transition: all 0.3s ease;
    stroke: currentColor !important;
    stroke-width: 1.5 !important;
    fill: none !important;
}

body .header-icon-link.active svg,
.main-header .header-icon-link.active svg,
.container .header-icon-link.active svg {
    transform: scale(1.1);
}

body .header-icon-link:hover,
.main-header .header-icon-link:hover,
.container .header-icon-link:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.02);
}

body .header-icon-link:hover svg,
.main-header .header-icon-link:hover svg,
.container .header-icon-link:hover svg {
    transform: scale(1.1);
    stroke: var(--primary-orange) !important;
    fill: var(--primary-orange) !important;
}

.badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary-orange);
    color: white;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-weight: 900;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 119, 1, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(251, 119, 1, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(251, 119, 1, 0);
    }
}

/* Mobile Touch Optimizations */
@media (max-width: 767px) {

    /* Touch-friendly tap targets */
    .btn,
    .header-icon-link,
    .product-card,
    .search-btn {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    /* Better touch scrolling */
    body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* Mobile-specific button sizing */
    .btn {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Mobile search improvements */
    .search-input {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 12px 45px 12px 16px;
    }

    /* Mobile product card touch feedback */
    .product-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    /* Mobile header adjustments */
    .main-header {
        padding: 8px 0;
    }

    .header-content {
        gap: 12px;
    }

    .header-icon-link {
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }

    .header-icon-link span:not(.badge-count) {
        display: none;
    }

    .header-icon-link svg {
        margin: 0;
        width: 22px;
        height: 22px;
    }
}

/* Small Mobile Optimizations */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }

    .product-grid {
        gap: 8px;
    }

    .product-info {
        padding: 8px;
    }

    .btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Landscape Mobile Optimizations */
@media (max-width: 767px) and (orientation: landscape) {
    .main-header {
        padding: 4px 0;
    }

    .header-logo img {
        height: 40px;
    }

    .search-input {
        padding: 8px 40px 8px 12px;
        font-size: 14px;
    }

    .search-btn {
        width: 40px;
        height: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* Cart Styles */
.cart-container {
    padding-bottom: 120px;
    /* Removed flex:1 to prevent vertical jitter on some mobile browsers */
}

.cart-container-inner {
    max-width: var(--container-width);
    margin: 40px auto;
}

.cart-item-card {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 16px;
    background: white !important;
    border-radius: 16px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #f0f0f0 !important;
}

.cart-item-img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover !important;
    background: #f5f5f5 !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;
}

.cart-item-info {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 !important;
    /* Reset inline padding */
}

.cart-item-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin-bottom: 6px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.3 !important;
}

.cart-item-meta {
    font-size: 11px !important;
    color: var(--text-secondary) !important;
    background: #f9f9f9 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    display: inline-block !important;
    margin-bottom: 8px !important;
    border: 1px solid #f0f0f0 !important;
}

.cart-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.cart-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-orange);
}

/* Quantity Control Pill */
.qty-control {
    display: flex;
    align-items: center;
    background: #f0f2f5;
    border: none;
    border-radius: 99px;
    padding: 2px;
    height: 40px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.qty-input {
    width: 36px;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    color: var(--text-primary);
}

.cart-remove-btn {
    border: none;
    background: none;
    color: #999;
    font-size: 18px;
    padding: 5px;
    cursor: pointer;
}

/* Premium Cart Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: flex-start;
}

@media (max-width: 991px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

.cart-items-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.cart-summary-sidebar {
    position: sticky;
    top: 90px;
}

.cart-summary-box {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.summary-title {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.summary-total {
    border-top: 1px dashed var(--border-color);
    margin-top: 15px;
    padding-top: 15px;
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-orange);
}

/* Trust Badges Bar */
.trust-bar {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: #fdfdfd;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #eee;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 10px;
    color: var(--text-secondary);
    gap: 4px;
}

.trust-item svg {
    color: #4CAF50;
    width: 20px;
    height: 20px;
}

/* Empty Cart State */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
}

.empty-cart-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* Sticky Footer (Mobile) */
.cart-sticky-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: white !important;
    padding: 14px 20px !important;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.15) !important;
    border-top: 1px solid #eee !important;
    display: block !important;
    z-index: 1000000 !important;
    /* Highest priority */
    box-sizing: border-box !important;
    transition: none !important;
    transform: none !important;
}

.cart-sticky-footer *:not(button) {
    font-family: inherit;
}

/* Premium Button for Sticky Bar */
.cart-sticky-footer .btn {
    background: linear-gradient(135deg, #fb7701 0%, #ff4d00 100%);
    border: none;
    color: white;
    font-weight: 900;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(251, 119, 1, 0.3);
    transition: all 0.3s ease;
    text-transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.cart-sticky-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(251, 119, 1, 0.4);
    filter: brightness(1.1);
}

.cart-sticky-footer .btn:active {
    transform: translateY(0);
}


.cart-total-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.cart-total-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-orange);
}

.btn-checkout {
    background: var(--primary-orange);
    color: white;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
}

/* Checkout Styles */
.checkout-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(251, 119, 1, 0.1);
}

/* Payment Options */
.payment-option {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option.selected {
    border-color: var(--primary-orange);
    background: var(--light-orange);
}

.payment-radio {
    accent-color: var(--primary-orange);
    width: 20px;
    height: 20px;
}

/* ================================
   PROFESSIONAL MOBILE HEADER FIX
   ================================ */
@media (max-width: 768px) {

    /* Header grid: left | center | right */
    .header-content {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }

    /* Home icon on the left */
    .home-link {
        grid-column: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Right-side icons */
    .header-icons {
        grid-column: 3;
        display: flex;
        align-items: center;
        gap: 14px;
    }

    /* Hide labels on mobile (professional look), but keep badges! */
    .header-icon-link span:not(.badge-count) {
        display: flex;
        font-size: 10px;
        margin-top: 2px;
    }

    /* Minimal header adjustments for small screens */

    /* Always hide summary checkout button (frozen bar used instead) */
    .summary-checkout-btn {
        display: none !important;
    }

    /* Normalize icon size & alignment */
    .header-icon-link svg {
        width: 22px;
        height: 22px;
        margin: 0;
    }
}

/* Modern CSS Features and Enhancements */

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Focus Management */
.btn:focus,
.search-input:focus,
.variant-select:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Enhanced Transitions */
.product-card,
.btn,
.header-icon-link,
.search-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Performance Optimizations */
.product-card {
    will-change: transform;
    contain: layout style paint;
}

.btn {
    will-change: transform;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-orange: #E65100;
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-color: #000000;
        --bg-white: #FFFFFF;
    }

    .product-card {
        border: 2px solid var(--border-color);
    }

    .btn {
        border: 2px solid var(--text-primary);
    }
}

/* Print Styles */
@media print {

    .header-icons,
    .search-btn,
    .btn,
    .news-poster-container {
        display: none !important;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* Enhanced Hover Effects */
@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
    }

    .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 24px rgba(251, 119, 1, 0.4);
    }

    .header-icon-link:hover {
        transform: translateY(-3px) scale(1.05);
    }
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(251, 119, 1, 0.2);
    border-top: 4px solid var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Success Animation */
.success-animation {
    animation: success-pulse 0.6s ease;
}

@keyframes success-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Error Shake Animation */
.error-shake {
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* Tooltips */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Modern Page Titles */
.page-title {
    font-size: 24px;
    font-weight: 900;
    margin: 30px 0 24px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* Cart Layout Modernization */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: flex-start;
}

.cart-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    gap: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.cart-item-card:hover {
    box-shadow: var(--shadow-medium);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-page);
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.4;
}

.btn-remove {
    background: #FFF5F5 !important;
    color: #FF5252 !important;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 !important;
    min-height: auto !important;
    box-shadow: none !important;
}

.btn-remove:hover {
    background: #FF5252 !important;
    color: white !important;
}

.cart-item-options {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-page);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 12px;
    width: fit-content;
}

.cart-item-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-orange);
}

/* Qty Selector - Premium */
.qty-selector {
    display: flex;
    align-items: center;
    background: #F8F9FA;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid var(--border-color);
}

.qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: white;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--primary-orange);
    color: white;
}

.qty-input {
    width: 40px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    pointer-events: none;
}

/* Summary Card */
.summary-card {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.summary-title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--text-secondary);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 2px dashed var(--border-color);
    margin-top: 8px;
}

.total-amount {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-orange);
}

/* Checkout Redesign */
.container-narrow {
    max-width: 700px;
}

.checkout-card {
    background: var(--bg-white);
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: #FDFDFD;
}

.card-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: #222;
}

.card-body {
    padding: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #444;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(251, 119, 1, 0.1);
}

/* Payment Methods Grid */
.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.payment-card {
    cursor: pointer;
    position: relative;
}

.payment-card input {
    position: absolute;
    opacity: 0;
}

.payment-card-content {
    background: #F8F9FA;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.payment-card.active .payment-card-content {
    background: #FFF8F0;
    border-color: var(--primary-orange);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(251, 119, 1, 0.1);
}

.payment-icon {
    font-size: 32px;
}

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-name {
    font-weight: 800;
    font-size: 15px;
    color: var(--text-primary);
}

.payment-desc {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Bank & QR Styles - Warm Premium Theme */
.bank-theme {
    background: #FFF9F2;
    border: 1px solid #FFE4CC;
    border-radius: 16px;
    padding: 24px;
}

.bank-summary {
    background: white;
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(251, 119, 1, 0.05);
    border: 1px solid #FFF0E0;
}

.qr-container {
    margin: 24px 0;
    text-align: center;
}

.qr-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-image {
    max-width: 200px;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 10px;
}

.btn-qr-download {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary-orange);
    text-decoration: none;
}

/* File Upload - Styled */
.file-input-wrapper {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    background: white;
}

.file-input-wrapper:hover {
    border-color: var(--primary-orange);
    background: #FFF8F0;
}

.form-control-file {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.file-placeholder span {
    font-weight: 700;
    font-size: 14px;
}

/* Responsive Fixes */
@media (max-width: 767px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        display: none;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .cart-item-card {
        padding: 12px;
        gap: 12px;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-name {
        font-size: 14px;
    }

    .cart-item-price {
        font-size: 16px;
    }
}

/* Layout Utilities */
.main-content {
    flex: 1;
    padding: 20px 0 80px;
    background: var(--bg-page);
}

.container-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.flex-grow {
    flex: 1;
}

/* Visibility Utilities */
@media (min-width: 768px) {
    .mob-only {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .des-only {
        display: none !important;
    }
}

/* Sticky Footer Refinements */
.cart-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 20px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 16px);
}

.footer-total {
    display: flex;
    flex-direction: column;
}

.footer-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-amount {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-orange);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.currency {
    font-size: 14px;
    font-weight: 700;
}

.checkout-footer-spacer {
    height: 120px;
}

/* Trust Indicators - Premium Modern Style */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 24px 0;
    padding: 16px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.index-trust {
    margin-top: 0;
    margin-bottom: 30px;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: var(--light-orange);
    transform: translateY(-2px);
}

.trust-icon {
    font-size: 18px;
}

.trust-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

@media (max-width: 767px) {
    .trust-indicators {
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: stretch;
        padding: 0;
        margin-bottom: 25px;
    }

    .trust-badge {
        padding: 10px 4px;
        flex: 1;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        background: white;
        border: 1px solid var(--border-color);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
        border-radius: 12px;
    }

    .trust-icon {
        font-size: 20px;
    }

    .trust-text {
        font-size: 9px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.2px;
        color: var(--text-primary);
    }
}

/* Checkout Detail Rows - High Polished Style */
.payment-details-box {
    margin-top: 24px;
    padding: 20px;
    background: #FAFAFA;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-weight: 600;
    color: var(--text-secondary);
}

.detail-row.secondary {
    font-size: 13px;
    color: #888;
}

.detail-row.highlight {
    color: var(--text-primary);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 10px;
    border-top: 2px dashed #EEE;
}

.total-row span:first-child {
    font-weight: 800;
    color: var(--text-primary);
}

.total-value {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-orange);
}

.free-text {
    color: #4CAF50;
    font-weight: 800;
}

.destination-text {
    color: #2196F3;
    font-weight: 800;
}

.bank-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    background: white;
    padding: 14px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-orange);
    margin: 16px 0;
}

/* Proof Upload Polish */
.proof-upload {
    margin-top: 30px;
}

.file-input-wrapper {
    border: 2px dashed #FFD8B2 !important;
    background: #FFF9F2 !important;
}

.file-placeholder {
    color: #A36F3D !important;
}

.file-placeholder svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    opacity: 0.7;
}

/* Payment Checkmark - High End Selection */
.payment-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: #EEE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.payment-card.active .payment-check {
    background: var(--primary-orange);
}

.payment-check::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
    opacity: 0;
    transition: all 0.2s;
}

.payment-card.active .payment-check::after {
    opacity: 1;
}

/* Premium Button Polish for Checkout */
.btn-confirm-order {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #FF8A00 100%) !important;
    box-shadow: 0 4px 15px rgba(251, 119, 1, 0.3) !important;
}

.btn-confirm-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 119, 1, 0.4) !important;
}

/* ==========================================================================
   ZEN REDESIGN: MINIMALIST LUXURY
   Focus: White space, thin lines, premium typography, airy spacing.
   ========================================================================== */

/* 1. Global Zen Overrides */
.zen-page {
    background-color: #FFFFFF !important;
}

.zen-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: -0.5px;
    color: #111;
}

/* 2. Zen Row Layout (Cart) */
.zen-cart-list {
    border-top: 1px solid #F0F0F0;
    margin-bottom: 40px;
}

.zen-cart-item {
    display: flex;
    padding: 24px 0;
    border-bottom: 1px solid #F0F0F0;
    gap: 20px;
    align-items: flex-start;
    transition: background 0.2s ease;
}

.zen-cart-item:hover {
    background: #FAFAFA;
}

.zen-item-img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    background: #F8F9FA;
}

.zen-item-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.zen-item-name {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.4;
}

.zen-item-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.zen-item-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-orange);
}

.zen-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

/* Zen Qty Controls */
.zen-qty {
    display: flex;
    align-items: center;
    background: #F4F4F4;
    border-radius: 99px;
    padding: 4px;
}

.zen-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.zen-qty-btn:active {
    transform: scale(0.9);
}

.zen-qty-val {
    width: 34px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    border: none;
    background: transparent;
}

.zen-remove {
    color: #BBB;
    padding: 8px;
    transition: color 0.2s;
}

.zen-remove:hover {
    color: #FF4D4D;
}

/* 3. Zen Summary (Cart Sidebar) */
.zen-summary-box {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.zen-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
    font-weight: 600;
}

.zen-summary-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #EEE;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.zen-total-label {
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

.zen-total-val {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-orange);
}

/* 4. Zen Mobile Footer (Unified App Feel) */
.zen-sticky-bar {
    position: fixed;
    bottom: 65px;
    /* Above Bottom Nav */
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 16px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.zen-btn-primary {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(251, 119, 1, 0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.zen-btn-primary:active {
    transform: scale(0.96);
}

.zen-footer-info {
    display: flex;
    flex-direction: column;
}

.zen-label-mini {
    font-size: 10px;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zen-val-main {
    font-size: 18px;
    font-weight: 900;
    color: #111;
}


/* 5. Zen Form Elements */
.zen-field-group {
    margin-bottom: 24px;
}

.zen-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    margin-left: 4px;
}

.zen-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #EAEAEA;
    border-radius: 16px;
    font-size: 15px;
    color: #111;
    background: #FAFAFA;
    transition: all 0.3s ease;
}

.zen-input:focus {
    background: #FFF;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(251, 119, 1, 0.1);
    outline: none;
}

.zen-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.zen-divider {
    height: 1px;
    background: #F0F0F0;
    margin: 40px 0;
}

/* Zen Payment Selector */
.zen-payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.zen-payment-option {
    position: relative;
    cursor: pointer;
}

.zen-payment-option input {
    position: absolute;
    opacity: 0;
}

.zen-payment-ui {
    padding: 24px 16px;
    border: 1px solid #EEE;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.zen-payment-option input:checked+.zen-payment-ui {
    background: #FFF;
    border-color: var(--primary-orange);
    box-shadow: 0 12px 30px rgba(251, 119, 1, 0.12);
}

.zen-payment-icon {
    font-size: 32px;
}

.zen-payment-name {
    font-size: 14px;
    font-weight: 800;
    color: #111;
}

.zen-payment-desc {
    font-size: 11px;
    color: #888;
}

.zen-bank-box {
    background: #FFF9F4;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #FFE8D6;
}