/* Design System & Variables */
:root {
    --primary: #E31E24;
    --primary-hover: #C4181E;
    --primary-rgb: 227, 30, 36;
    --primary-soft: rgba(227, 30, 36, 0.08);
    --secondary: #EF4444;
    --secondary-hover: #DC2626;
    --secondary-rgb: 239, 68, 68;
    --accent: #F43F5E;
    --accent-rgb: 244, 63, 94;

    --bg-app: #F4F6FA;
    --bg-surface: #FFFFFF;
    --bg-surface-2: #F8FAFC;
    --bg-surface-glass: rgba(255, 255, 255, 0.72);
    --bg-elevated: #FFFFFF;
    --border-color: rgba(15, 23, 42, 0.08);
    --border-color-rgb: 15, 23, 42;
    --border-strong: rgba(15, 23, 42, 0.12);

    --text-primary: #0B1220;
    --text-secondary: #5B6478;
    --text-muted: #94A3B8;
    --text-on-primary: #FFFFFF;

    --gradient-brand: linear-gradient(135deg, #E31E24 0%, #EF4444 55%, #F43F5E 100%);
    --gradient-hero: linear-gradient(135deg, rgba(227, 30, 36, 0.12) 0%, rgba(239, 68, 68, 0.08) 50%, rgba(244, 63, 94, 0.06) 100%);
    --gradient-surface: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);

    --bg-glow-1: rgba(227, 30, 36, 0.05);
    --bg-glow-2: rgba(239, 68, 68, 0.04);
    --bg-glow-3: rgba(244, 63, 94, 0.035);
    --bg-glow-4: rgba(99, 102, 241, 0.025);
    --grid-dot-color: rgba(15, 23, 42, 0.045);

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.1);
    --shadow-primary: 0 12px 28px rgba(227, 30, 36, 0.28);
    --shadow-glow: 0 0 0 1px rgba(227, 30, 36, 0.08), 0 20px 40px rgba(227, 30, 36, 0.12);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 36px;
    --radius-full: 9999px;

    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.3, 0.64, 1);

    --header-height: 76px;
    --max-width: 1240px;
}

body.dark {
    --bg-app: #070B14;
    --bg-surface: #101827;
    --bg-surface-2: #151F31;
    --bg-surface-glass: rgba(16, 24, 39, 0.78);
    --bg-elevated: #182235;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);

    --text-primary: #F8FAFC;
    --text-secondary: #A8B3C7;
    --text-muted: #6B7A90;
    --text-on-primary: #FFFFFF;

    --gradient-hero: linear-gradient(135deg, rgba(227, 30, 36, 0.18) 0%, rgba(239, 68, 68, 0.1) 50%, rgba(244, 63, 94, 0.08) 100%);
    --gradient-surface: linear-gradient(180deg, #101827 0%, #0B1220 100%);

    --bg-glow-1: rgba(227, 30, 36, 0.12);
    --bg-glow-2: rgba(239, 68, 68, 0.08);
    --bg-glow-3: rgba(244, 63, 94, 0.07);
    --bg-glow-4: rgba(99, 102, 241, 0.04);
    --grid-dot-color: rgba(255, 255, 255, 0.045);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.32);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.38);
    --shadow-primary: 0 12px 28px rgba(227, 30, 36, 0.22);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Noto Sans Lao', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-primary);
    line-height: 1.65;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 12%, var(--bg-glow-1), transparent 35%),
        radial-gradient(circle at 90% 20%, var(--bg-glow-2), transparent 30%),
        radial-gradient(circle at 50% 50%, var(--bg-glow-4), transparent 50%),
        radial-gradient(circle at 40% 90%, var(--bg-glow-3), transparent 40%),
        radial-gradient(circle at 80% 85%, var(--bg-glow-1), transparent 30%);
    pointer-events: none;
    z-index: -1;
    filter: blur(8px);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(var(--grid-dot-color) 1.2px, transparent 1.2px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: -1;
    mask-image: linear-gradient(180deg, black, transparent 98%);
}

body.lang-en {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

button, input, select, textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    transition: all var(--transition-fast);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Header & Navigation */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 100;
    overflow: visible;
    transition: all var(--transition-normal);
}

.app-header::before {
    content: '';
    position: absolute;
    inset: 10px 20px auto;
    height: calc(var(--header-height) - 20px);
    background: linear-gradient(var(--bg-surface-glass), var(--bg-surface-glass)) padding-box, var(--gradient-brand) border-box;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid transparent;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    z-index: -1;
}

.app-header.scrolled::before {
    background: linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box, var(--gradient-brand) border-box;
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform var(--transition-fast);
}
.logo:hover {
    transform: translateY(-1px);
}
.logo-img {
    height: 46px;
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid rgba(var(--primary-rgb), 0.15);
    background: rgba(255, 255, 255, 0.8);
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    filter: drop-shadow(0 2px 8px rgba(var(--primary-rgb), 0.1));
    transition: all var(--transition-fast);
}
.logo:hover .logo-img {
    transform: scale(1.05) rotate(2deg);
    border-color: rgba(var(--primary-rgb), 0.4);
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.15);
    filter: drop-shadow(0 4px 12px rgba(var(--primary-rgb), 0.2));
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    pointer-events: none;
}
.search-bar input {
    width: 100%;
    padding: 12px 48px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background-color: var(--bg-surface-2);
    color: var(--text-primary);
    font-size: 0.92rem;
    transition: all var(--transition-fast);
}
.search-bar input:focus {
    border-color: rgba(var(--primary-rgb), 0.35);
    background-color: var(--bg-surface);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}
.clear-search-btn {
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    padding: 4px;
}
.clear-search-btn:hover {
    color: var(--text-primary);
    background-color: var(--border-color);
}
.clear-search-btn svg {
    width: 16px;
    height: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 110;
}

/* Custom Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-surface-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.lang-dropdown-trigger:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    background: var(--bg-surface);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.lang-dropdown.open .lang-dropdown-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}

.lang-globe-icon {
    width: 15px;
    height: 15px;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform var(--transition-normal) var(--ease-spring);
}

.lang-dropdown-trigger:hover .lang-globe-icon {
    transform: rotate(25deg);
}

.lang-current-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 1.15rem;
    border-radius: 50%;
    background: var(--bg-surface-2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-normal);
    line-height: 1;
}

.lang-current-label {
    line-height: 1;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    font-size: 0.82rem;
}

.lang-chevron-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    transition: transform var(--transition-normal) var(--ease-spring), color var(--transition-fast);
}

.lang-dropdown-trigger:hover .lang-chevron-icon {
    color: var(--text-secondary);
}

.lang-dropdown.open .lang-chevron-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(12px) scale(0.95);
    pointer-events: none;
    transform-origin: top right;
    transition: opacity var(--transition-normal), transform var(--transition-normal) var(--ease-spring);
    z-index: 1000;
}

body.dark .lang-dropdown-menu {
    background: rgba(16, 24, 39, 0.88);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    border-color: rgba(255, 255, 255, 0.12);
}

.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
}

.lang-dropdown-item:hover {
    background: var(--primary-soft);
    transform: translateX(2px);
}

body.dark .lang-dropdown-item:hover {
    background: rgba(227, 30, 36, 0.12);
}

.lang-dropdown-item.active {
    background: rgba(var(--primary-rgb), 0.08);
}

body.dark .lang-dropdown-item.active {
    background: rgba(227, 30, 36, 0.14);
}

.lang-dropdown-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 1.35rem;
    border-radius: 50%;
    background: var(--bg-surface-2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    line-height: 1;
}

.lang-dropdown-names {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 2px;
}

.lang-name-main {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    transition: color var(--transition-fast);
}

.lang-dropdown-item.active .lang-name-main {
    color: var(--primary);
}

body.dark .lang-dropdown-item.active .lang-name-main {
    color: #FCA5A5;
}

.lang-name-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1;
}

.lang-check-icon {
    width: 14px;
    height: 14px;
    color: var(--primary);
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-fast);
}

body.dark .lang-check-icon {
    color: #FCA5A5;
}

.lang-dropdown-item.active .lang-check-icon {
    opacity: 1;
    transform: scale(1);
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    z-index: 1;
}
.icon-btn:hover {
    border-color: rgba(var(--primary-rgb), 0.25);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    color: var(--text-on-primary);
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: var(--shadow-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(var(--primary-rgb), 0.35);
    filter: brightness(1.03);
}
.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--secondary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--primary);
    animation: pulse-badge 0.3s ease-out;
}

@keyframes pulse-badge {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Main Content Area */
.main-content {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 72px 24px 48px;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
}

.hero-overlay {
    display: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.hero-tag {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.hero-title {
    font-size: clamp(1.6rem, 3.8vw, 2.2rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, var(--text-primary) 20%, rgba(var(--primary-rgb), 0.85) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.dark .hero-title {
    background: linear-gradient(135deg, #FFFFFF 20%, #FCA5A5 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Japanese Flag Badge Style */
.flag-jp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 21px;
    border-radius: 3px;
    background-color: #FFFFFF;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), inset 0 1px 1px rgba(255, 255, 255, 1);
    position: relative;
    vertical-align: middle;
    margin-left: 10px;
    margin-right: 4px;
    transform: translateY(-2px);
    flex-shrink: 0;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.flag-jp:hover {
    transform: translateY(-2px) scale(1.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.flag-jp::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #BC002D; /* Classic Japanese Crimson Red */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 -0.5px 1px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-brand);
    color: var(--text-on-primary);
    box-shadow: var(--shadow-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(var(--primary-rgb), 0.35);
    filter: brightness(1.04);
}
.btn:disabled, .btn.disabled {
    background: var(--border-strong) !important;
    color: var(--text-muted) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
    border-color: var(--border-color) !important;
}

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

.btn-outline {
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
}
.btn-outline:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1rem;
}

/* Hero Bento Visual */
.hero-visual {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-mesh {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    border-radius: var(--radius-2xl);
    filter: blur(0);
}

.hero-bento {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto;
    gap: 14px;
    width: 100%;
    max-width: 420px;
}

.bento-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    background: var(--bg-surface-glass);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.bento-main {
    grid-column: 1 / -1;
    border: none;
    min-height: 180px;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.bento-shine {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    filter: blur(20px);
}

.bento-emoji {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2.8rem;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.bento-brand {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.bento-tagline {
    font-size: 0.9rem;
    opacity: 0.92;
    font-weight: 500;
}

.bento-stat {
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.bento-stat i,
.bento-stat svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.bento-stat strong {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.bento-stat span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.bento-wide {
    grid-column: 1 / -1;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-surface);
}

.bento-wide i,
.bento-wide svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

/* Features Bar */
.features-bar {
    max-width: calc(var(--max-width) - 48px);
    margin: 0 auto 24px;
    padding: 28px 32px;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 8px;
    border-radius: var(--radius-lg);
    transition: background var(--transition-fast);
}

.feature-item:hover {
    background: var(--primary-soft);
}

.feature-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    color: var(--primary);
    flex-shrink: 0;
}
.feature-icon-box svg {
    width: 22px;
    height: 22px;
}

.feature-text h3 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.feature-text p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Product Section */
.products-section {
    max-width: var(--max-width);
    margin: 0 auto 80px auto;
    padding: 0 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    gap: 20px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 560px;
}

.search-summary {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(var(--primary-rgb), 0.12);
}

/* Category Tabs */
.categories-container {
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.categories-tabs {
    display: flex;
    gap: 12px;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: all var(--transition-fast);
}
.category-tab:hover {
    border-color: rgba(var(--primary-rgb), 0.25);
    color: var(--primary);
    transform: translateY(-1px);
}
.category-tab.active {
    background: var(--gradient-brand);
    border-color: transparent;
    color: var(--text-on-primary);
    box-shadow: var(--shadow-primary);
}
.category-tab svg {
    width: 18px;
    height: 18px;
}

/* Best Sellers Section */
.best-sellers-section {
    padding: 16px 24px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.best-sellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.best-seller-card {
    position: relative;
}

.best-seller-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--radius-full);
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
}

.best-seller-rank.rank-1 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.best-seller-rank.rank-2 {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.best-seller-rank.rank-3 {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
    min-height: 300px;
}

.products-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.products-load-more-btn {
    min-width: 180px;
    font-weight: 700;
}



/* Loading state spinner */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    gap: 16px;
    color: var(--text-secondary);
}
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-2xl);
    border: 1px dashed rgba(var(--primary-rgb), 0.2);
    box-shadow: var(--shadow-md);
}
.empty-icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 400px;
}

/* Product Card */
.product-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
    position: relative;
    box-shadow: var(--shadow-sm);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(var(--primary-rgb), 0.15);
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 72%;
    background: var(--bg-surface-2);
    overflow: hidden;
}
.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.product-card:hover .product-image {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}
.badge-new {
    background-color: var(--secondary);
    color: white;
}
.badge-hot {
    background-color: #ef4444;
    color: white;
}

.product-info {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.product-category {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 24px;
}

.product-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 55%;
    min-width: 0;
}

.product-brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #fff;
    padding: 2px;
    flex-shrink: 0;
}

.product-brand-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.45;
    height: 46px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    letter-spacing: -0.01em;
}
.product-title:hover {
    color: var(--primary);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.price-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.price-sale {
    color: var(--primary);
}

.price-discount-badge {
    display: inline-flex;
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 800;
    color: #fff;
    background: var(--primary);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    margin-top: 2px;
}

.product-detail-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.price-original-lg {
    font-size: 1rem;
}

.price-sale-lg {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.price-discount-badge-lg {
    font-size: 0.85rem;
    padding: 4px 10px;
}

.cart-price-original {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.badge-sale {
    background: var(--primary);
    color: #fff;
}

.price-unit {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--primary-soft);
    color: var(--primary);
    transition: all var(--transition-fast);
}
.add-to-cart-btn:hover {
    background: var(--gradient-brand);
    color: var(--text-on-primary);
    transform: scale(1.08);
    box-shadow: var(--shadow-primary);
}
.add-to-cart-btn svg {
    width: 20px;
    height: 20px;
}

/* About Us Section */
.about-section {
    padding: 88px 24px;
    background: var(--gradient-surface);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.12), transparent 70%);
    pointer-events: none;
}

.about-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 64px;
    position: relative;
}

.about-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.badge {
    background: rgba(var(--secondary-rgb), 0.1);
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(var(--secondary-rgb), 0.15);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.03em;
}

.about-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.about-info p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.about-image-wrapper {
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-decorative-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--secondary);
    border-radius: var(--radius-full);
    filter: blur(80px);
    opacity: 0.12;
}

.about-image-mock {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-2xl);
    background: linear-gradient(145deg, #1A2235 0%, #0B1220 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: white;
}
.mock-store-icon {
    width: 72px;
    height: 72px;
    color: var(--secondary);
}
.about-image-mock span {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

/* Shopping Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    visibility: hidden;
    pointer-events: none;
    transition: visibility var(--transition-normal);
}
.cart-drawer.open {
    visibility: visible;
    pointer-events: auto;
}

.cart-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.cart-drawer.open .cart-drawer-overlay {
    opacity: 1;
}

.cart-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background-color: var(--bg-surface);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
}
.cart-drawer.open .cart-drawer-content {
    transform: translateX(0);
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}
.close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
}
.close-btn:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-empty-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    gap: 12px;
}
.cart-empty-message svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
}

.cart-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background-color: #f1f5f9;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}
.cart-item-price {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: var(--bg-app);
    color: var(--text-primary);
}
.qty-btn:hover {
    background-color: var(--border-color);
}
.qty-val {
    padding: 0 10px;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
}

.cart-item-remove {
    color: #ef4444;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: var(--radius-full);
}
.cart-item-remove:hover {
    background-color: rgba(239, 68, 68, 0.1);
}
.cart-item-remove svg {
    width: 16px;
    height: 16px;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-app);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 4px;
}

.promo-box {
    display: flex;
    gap: 8px;
    align-items: stretch;
    flex-wrap: wrap;
}
.promo-box input {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.9rem;
}
.promo-box input:focus {
    border-color: var(--primary);
}
.promo-box input:disabled,
.promo-box input[readonly] {
    background-color: var(--bg-muted, #f1f5f9);
    color: var(--text-secondary, #64748b);
    cursor: not-allowed;
    opacity: 0.95;
}
.promo-box.promo-applied #apply-promo-btn {
    display: none;
}
.promo-box .promo-remove-btn {
    white-space: nowrap;
    flex-shrink: 0;
}
.promo-box .promo-remove-btn.hidden {
    display: none;
}
.promo-message {
    font-size: 0.85rem;
    margin-top: -8px;
    font-weight: 500;
}
.promo-message.success {
    color: var(--secondary);
}
.promo-message.error {
    color: #ef4444;
}

/* Modals (Product Details & Checkout) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    pointer-events: none;
    transition: visibility var(--transition-normal);
}
.modal.open {
    visibility: visible;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.modal.open .modal-overlay {
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: var(--bg-surface);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2;
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition: all var(--transition-normal);
}
.modal.open .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.modal-close-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* Product Modal specific styles */
.product-modal-content {
    max-width: 800px;
}
.product-modal-body {
    padding: 32px;
}
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    grid-template-areas:
        "media header"
        "media variants"
        "media body";
    gap: 16px 32px;
    align-items: start;
}
.product-detail-media-column {
    grid-area: media;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-detail-variants {
    grid-area: variants;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-detail-info-header {
    grid-area: header;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.product-detail-info-body {
    grid-area: body;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.product-detail-image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: #f1f5f9;
    padding-top: 100%;
    position: relative;
}
.product-detail-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform var(--transition-normal);
}
.product-detail-image:hover {
    transform: scale(1.03);
}
.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.product-detail-cat {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.product-detail-sku {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}
.product-detail-sku strong {
    color: var(--text-primary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
}

.product-detail-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.product-detail-brand strong {
    color: var(--text-primary);
    font-weight: 700;
}
.product-detail-brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #fff;
    padding: 3px;
    flex-shrink: 0;
}
.product-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
}
.product-detail-price {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-primary);
}
.product-detail-desc-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 10px;
}
.product-detail-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.product-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.product-detail-meta strong {
    color: var(--text-primary);
}
.variant-picker {
    margin-top: 0;
}
.product-detail-variants .variant-picker + .variant-picker {
    margin-top: 4px;
}
.variant-picker-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.variant-option {
    min-width: 44px;
    padding: 8px 14px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.variant-option:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}
.variant-option.active {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb, 227, 30, 36), 0.08);
    color: var(--primary);
}
body.dark .variant-option.active {
    background: rgba(var(--primary-rgb, 227, 30, 36), 0.16);
}
.variant-option:disabled {
    color: var(--text-muted) !important;
    border-color: var(--border-color) !important;
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: line-through;
}
.variant-option-color {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
}
.variant-color-thumb {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    background: #fff;
}
.variant-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.cart-item-variant {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.product-detail-actions {
    display: flex;
    gap: 16px;
    margin-top: 0;
    padding-top: 4px;
    padding-bottom: 4px;
}
.product-detail-info-body .product-detail-desc-title {
    margin-top: 8px;
}

/* Checkout Modal specific styles */
.checkout-modal-content {
    max-width: 600px;
}
.checkout-modal-body {
    padding: 32px;
}
.checkout-steps {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
    gap: 16px;
}
.step {
    flex: 1;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    padding-bottom: 14px;
    margin-bottom: -18px;
    border-bottom: 2px solid transparent;
}
.step.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.checkout-form {
    display: none;
}
.checkout-form.active {
    display: block;
}
.checkout-form.success-screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.checkout-form h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.form-group label .required {
    color: #ef4444;
}
.form-group input, .form-group select, .form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-app);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    background-color: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(92, 61, 245, 0.1);
}
.form-group input.readonly-field,
.form-group textarea.readonly-field,
.form-group input[readonly],
.form-group textarea[readonly] {
    background-color: var(--bg-muted);
    color: var(--text-primary);
    cursor: default;
    border-color: var(--border-color);
    box-shadow: none;
}
.form-group input.readonly-field:focus,
.form-group textarea.readonly-field:focus,
.form-group input[readonly]:focus,
.form-group textarea[readonly]:focus {
    border-color: var(--border-color);
    background-color: var(--bg-muted);
    box-shadow: none;
    outline: none;
}
.checkout-readonly-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: -0.5rem 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.checkout-readonly-note svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--primary);
}
.checkout-edit-profile-link {
    border: none;
    background: none;
    padding: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.checkout-edit-profile-link:hover {
    color: var(--secondary);
}
.form-group textarea {
    resize: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Step 2 Payment specifics */
.payment-instruction {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.qr-code-wrapper {
    background-color: white;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 16px;
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-md);
}
.bcel-qr-header {
    background-color: #0284c7;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
    padding: 6px 0;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.qr-graphic {
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}
.qr-square {
    width: 160px;
    height: 160px;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-image {
    width: 160px;
    height: 160px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.qr-icon {
    width: 100px;
    height: 100px;
    color: #0f172a;
}
.qr-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}
.qr-account-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}
.qr-account-number {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.02em;
}
.qr-account-number-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 8px;
    margin-top: 2px;
}
.qr-account-number-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}
.btn-qr-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-qr-copy:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-qr-copy svg,
.btn-qr-copy i {
    width: 13px;
    height: 13px;
}
.qr-amount-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
}
.qr-amount-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-qr-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    background: #f8fafc;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-qr-download:hover {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-qr-download svg,
.btn-qr-download i {
    width: 16px;
    height: 16px;
}

.slip-upload-group {
    margin-bottom: 24px;
}
.file-upload-wrapper {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.file-upload-wrapper:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(92, 61, 245, 0.02);
}
.file-upload-wrapper svg {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
}
.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* COD details styling */
.cod-confirmation {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 24px;
    background-color: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}
.cod-icon {
    width: 60px;
    height: 60px;
    color: var(--secondary);
}
.cod-confirmation h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
}
.cod-confirmation p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 400px;
}
.cod-total-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 24px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.cod-total-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.cod-total-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Success Screen Checkout */
.success-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}
.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background-color: rgba(16, 185, 129, 0.1);
    display: none;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.success-screen.active .success-checkmark {
    display: flex;
    opacity: 1;
    transform: scale(1);
}
.success-checkmark .check-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--secondary);
    position: relative;
}
/* A check sign using absolute styling */
.success-checkmark .check-icon::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 18px;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(45deg);
    top: 7px;
    left: 16px;
}

.success-screen h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.order-id-label {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 16px;
}
.success-desc {
    color: var(--text-secondary);
    max-width: 460px;
    margin-bottom: 32px;
}

/* Toast Container & Notification Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    width: 100%;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
    animation: toast-slide-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all var(--transition-fast);
}
.toast.hide {
    animation: toast-slide-out 0.2s forwards ease-in;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
}
.toast-success .toast-icon {
    color: var(--secondary);
}
.toast-error .toast-icon {
    color: #ef4444;
}
.toast-warning .toast-icon {
    color: #f59e0b;
}
.toast-info .toast-icon {
    color: var(--primary);
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.toast-close {
    color: var(--text-muted);
}
.toast-close:hover {
    color: var(--text-primary);
}

@keyframes toast-slide-in {
    from { transform: translateX(100%) translateY(20px); opacity: 0; }
    to { transform: translateX(0) translateY(0); opacity: 1; }
}
@keyframes toast-slide-out {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.9) translateX(100%); opacity: 0; }
}

@media (max-width: 480px) {
    .toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
    .toast {
        width: 100%;
        animation: mobile-toast-slide-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .toast.hide {
        animation: mobile-toast-slide-out 0.2s forwards ease-in;
    }
}

@keyframes mobile-toast-slide-in {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes mobile-toast-slide-out {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.9) translateY(20px); opacity: 0; }
}

/* Footer Section */
.app-footer {
    position: relative;
    background: linear-gradient(180deg, #120405 0%, #080203 100%);
    color: #F1F5F9;
    padding: 80px 24px 32px;
    margin-top: 56px;
    overflow: hidden;
}

body.dark .app-footer {
    background: linear-gradient(180deg, #0C0203 0%, #040102 100%);
}

/* Luxury brand gradient top border */
.app-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    z-index: 1;
}

/* Warm logo-color glow under the border */
.app-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 120px;
    background: radial-gradient(circle, rgba(227, 30, 36, 0.2) 0%, rgba(239, 68, 68, 0.12) 50%, transparent 80%);
    filter: blur(45px);
    pointer-events: none;
    z-index: 0;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    display: inline-block;
}

.footer-desc {
    color: #94A3B8;
    font-size: 0.9rem;
    line-height: 1.7;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #CBD5E1;
    background: rgba(255, 255, 255, 0.04);
    transition: all var(--transition-fast);
}
.social-links a:hover {
    border-color: rgba(var(--primary-rgb), 0.5);
    color: white;
    background: rgba(var(--primary-rgb), 0.2);
    transform: translateY(-2px);
}

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

.social-links .icon-facebook {
    width: 20px;
    height: 20px;
}

.contact-facebook-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94A3B8;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-facebook-link:hover {
    color: #FCA5A5;
}

.contact-facebook-link .icon-facebook {
    color: #FCA5A5;
}

.footer-links-group h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.01em;
}

.footer-links-group ul a {
    font-size: 0.88rem;
    color: #94A3B8;
}
.footer-links-group ul a:hover {
    color: #FCA5A5;
}

.contact-info-list li {
    color: #94A3B8;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px !important;
    list-style: none;
}

.contact-info-list li {
    display: flex;
    gap: 12px;
    font-size: 0.88rem;
    color: #94A3B8;
}

.contact-info-list li svg {
    width: 18px;
    height: 18px;
    color: #FCA5A5;
    flex-shrink: 0;
}

.contact-info-list a {
    color: #94A3B8;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-info-list a:hover {
    color: #FCA5A5;
}

.contact-info-list .contact-facebook-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: #64748B;
    font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 60px 24px;
        gap: 30px;
    }
    .hero-content {
        align-items: center;
    }
    .hero-visual {
        min-height: 340px;
    }
    .hero-bento {
        max-width: 360px;
        margin: 0 auto;
    }
    .features-bar {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 20px;
    }
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 56px;
        --mobile-nav-size: 36px;
    }

    .app-header::before {
        inset: 6px 10px auto;
        height: calc(var(--header-height) - 12px);
        border-radius: 16px;
    }

    .header-container {
        flex-wrap: nowrap;
        align-items: center;
        padding: 0 12px;
        gap: 8px;
    }

    .logo {
        flex-shrink: 0;
        width: var(--mobile-nav-size);
        height: var(--mobile-nav-size);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo:hover {
        transform: none;
    }

    .logo-img {
        height: 28px;
        width: 28px;
        padding: 2px;
        border-width: 1.5px;
        border-radius: 8px;
        box-shadow: none;
        filter: none;
    }

    .logo:hover .logo-img {
        transform: none;
        box-shadow: none;
    }

    .search-bar {
        flex: 1;
        min-width: 0;
        width: auto;
        max-width: none;
    }

    .search-bar input {
        height: var(--mobile-nav-size);
        padding: 0 30px 0 32px;
        font-size: 0.78rem;
        border-radius: 10px;
        border-width: 1px;
    }

    .search-bar input:focus {
        box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    }

    .search-icon {
        left: 10px;
        width: 15px;
        height: 15px;
    }

    .clear-search-btn {
        right: 8px;
        padding: 2px;
    }

    .clear-search-btn svg {
        width: 14px;
        height: 14px;
    }

    .header-actions {
        margin-left: 0;
        gap: 6px;
        flex-shrink: 0;
    }

    .cart-btn-text {
        display: none;
    }

    .lang-dropdown-trigger,
    .icon-btn,
    .cart-btn {
        width: var(--mobile-nav-size);
        height: var(--mobile-nav-size);
        min-width: var(--mobile-nav-size);
        border-radius: 10px;
        flex-shrink: 0;
    }

    .lang-dropdown-trigger {
        justify-content: center;
        padding: 0;
        gap: 0;
        box-shadow: none;
    }

    .lang-dropdown-trigger:hover {
        transform: none;
    }

    .lang-current-label,
    .lang-globe-icon,
    .lang-chevron-icon {
        display: none;
    }

    .lang-current-flag {
        font-size: 1rem;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
    }

    .icon-btn {
        padding: 0;
    }

    .icon-btn svg {
        width: 17px;
        height: 17px;
    }

    .cart-btn {
        padding: 0;
        justify-content: center;
        box-shadow: var(--shadow-sm);
        position: relative;
    }

    .cart-btn:hover {
        transform: none;
    }

    .cart-icon-wrapper {
        width: 100%;
        height: 100%;
        justify-content: center;
    }

    .cart-icon-wrapper svg {
        width: 17px;
        height: 17px;
    }

    .cart-badge {
        top: 2px;
        right: 2px;
        min-width: 14px;
        height: 14px;
        font-size: 0.6rem;
        padding: 0 3px;
        border-width: 1.5px;
    }
    .hero-title {
        font-size: 1.45rem;
    }
    .hero-bento {
        max-width: 100%;
    }
    .bento-main {
        min-height: 150px;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .features-bar {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-detail-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "variants"
            "header"
            "body";
        gap: 14px;
    }
    .product-detail-variants {
        padding: 4px 0 2px;
    }
    .product-detail-title {
        font-size: 1.35rem;
    }
    .product-detail-price {
        font-size: 1.35rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .best-sellers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .best-sellers-section {
        padding: 12px 16px 16px;
    }
    .product-info {
        padding: 12px;
    }
    .product-title {
        font-size: 0.88rem;
    }
    .price-value {
        font-size: 0.95rem;
    }
    .category-tab {
        padding: 0;
        width: 40px;
        height: 40px;
        min-width: 40px;
        justify-content: center;
        gap: 0;
    }

    .category-tab span {
        display: none;
    }

    .category-tab svg {
        width: 18px;
        height: 18px;
    }

    .categories-tabs {
        gap: 8px;
    }
}

/* ==========================================
   PROMO BANNER SLIDER
   ========================================== */
.promo-slider-section {
    width: 100%;
    padding: 0 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.promo-slider-container {
    width: 100%;
    height: 380px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.promo-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.promo-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.promo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
}

.promo-slide.active {
    opacity: 1;
    visibility: visible;
}

.promo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark overlay for text readability */
.promo-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.1) 100%);
    z-index: 1;
}

/* Slide 1 does not need overlay if it's a pre-designed banner with text */
.promo-slide.no-overlay::after {
    display: none;
}

.promo-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 48px;
    z-index: 2;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 60%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.promo-badge {
    align-self: flex-start;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 50px;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.promo-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    font-family: 'Noto Sans Lao', sans-serif;
}

.promo-desc {
    font-size: 1.05rem;
    opacity: 0.92;
    font-weight: 400;
    line-height: 1.5;
}

.slider-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    gap: 12px;
}

/* Static Hero Text Overlay on top of Promotional Slider */
.hero-slider-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-overlay-top {
    position: absolute;
    top: 32px;
    right: 80px;
    text-align: right;
    max-width: min(520px, 55%);
}

.hero-slider-overlay .hero-title {
    font-size: clamp(1.1rem, 2.6vw, 1.65rem);
    font-weight: 800;
    line-height: 1.4;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
    margin: 0;
}

.hero-slider-overlay .hero-title .flag-jp {
    width: 26px;
    height: 17px;
    margin-left: 6px;
    margin-right: 2px;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .hero-overlay-top {
        top: 20px;
        right: 40px;
        max-width: 70%;
    }
    .hero-slider-overlay .hero-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 640px) {
    .hero-overlay-top {
        top: 16px;
        right: 24px;
        max-width: 75%;
    }
    .hero-slider-overlay .hero-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }
}

/* Slider Controls */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.2s ease;
    opacity: 0;
}

.promo-slider:hover .slider-control {
    opacity: 1;
}

.slider-control:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.08);
}

.slider-control.prev {
    left: 20px;
}

.slider-control.next {
    right: 20px;
}

.slider-control i,
.slider-control svg {
    width: 22px;
    height: 22px;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 24px;
    right: 32px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

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

.indicator.active {
    background-color: var(--primary);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .promo-slider-container {
        height: 300px;
    }
    .promo-content {
        padding: 32px;
        max-width: 80%;
    }
    .promo-title {
        font-size: 1.7rem;
    }
    .promo-desc {
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .promo-slider-section {
        padding: 16px 16px 0;
    }
    .promo-slider-container {
        height: 200px;
        border-radius: var(--radius-xl);
    }
    .promo-content {
        padding: 20px;
        max-width: 95%;
        gap: 6px;
    }
    .promo-title {
        font-size: 1.15rem;
    }
    .promo-desc {
        font-size: 0.78rem;
    }
    .slider-control {
        width: 32px;
        height: 32px;
    }
    .slider-control i,
    .slider-control svg {
        width: 16px;
        height: 16px;
    }
    .slider-indicators {
        bottom: 12px;
        right: 16px;
    }
}

/* Customer Auth */
.auth-area {
    position: relative;
    z-index: 120;
}
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
}
.auth-btn .auth-btn-icon,
.auth-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    pointer-events: none;
}
.auth-btn.logged-in {
    color: var(--secondary);
    background: rgba(227, 30, 36, 0.1);
    border: 1px solid rgba(227, 30, 36, 0.2);
}
.auth-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 280px;
    max-width: min(320px, calc(100vw - 24px));
    z-index: 2100;
    display: none;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
.auth-dropdown.open {
    display: block;
}
.auth-dropdown.guest-only {
    display: none !important;
}
.auth-dropdown-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
.auth-dropdown-greeting {
    padding: 0.85rem 0.9rem 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.auth-profile-info {
    padding: 0 0.9rem 0.65rem;
    border-bottom: 1px solid var(--border-color);
}
.auth-profile-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.2rem 0;
    line-height: 1.45;
}
.auth-profile-row i,
.auth-profile-row svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-muted);
}
.hidden {
    display: none !important;
}
.auth-dropdown-actions {
    padding: 0.35rem;
}
.auth-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
}
.auth-dropdown-item:hover {
    background: var(--bg-muted);
}
.auth-dropdown-item i,
.auth-dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    pointer-events: none;
}
.auth-dropdown-logout {
    color: var(--secondary);
}
.auth-modal {
    z-index: 2500;
}
.auth-modal-content {
    max-width: 440px;
    width: 100%;
    max-height: min(90vh, 680px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.auth-modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem 0.75rem;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-color);
}
.auth-modal-header h2 {
    flex: 1;
    font-size: 1.05rem;
    margin: 0;
}
.auth-modal-header .auth-tabs {
    flex: 1;
}
.auth-modal-close-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.auth-modal-close-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}
.auth-modal-close-btn i,
.auth-modal-close-btn svg {
    pointer-events: none;
}
.auth-modal-body {
    padding: 1rem 1.25rem 1.25rem;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0;
    background: var(--bg-muted);
    padding: 0.25rem;
    border-radius: var(--radius-lg);
}
.auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.65rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
}
.auth-tab.active {
    background: var(--bg-card);
    color: var(--secondary);
    box-shadow: var(--shadow-sm);
}
.auth-form {
    display: none;
}
.auth-form.active {
    display: block;
}
.auth-form h2 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}
.auth-form .form-group {
    margin-bottom: 0.85rem;
}
.auth-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
}
.auth-form input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
}
.auth-switch {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.auth-switch a {
    color: var(--secondary);
    font-weight: 700;
    text-decoration: none;
}
.auth-error {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(227, 30, 36, 0.08);
    border-radius: var(--radius-md);
}
.auth-error.hidden {
    display: none;
}
.my-orders-modal-content {
    max-width: 520px;
    width: 100%;
}
.my-orders-modal-body {
    padding: 1.5rem 1.75rem;
}
.my-orders-modal-body h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.my-orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 60vh;
    overflow-y: auto;
}
.my-order-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1rem;
    background: var(--bg-muted);
}
.my-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.my-order-status {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}
.my-order-status.status-pending {
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
}
.my-order-status.status-processing {
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}
.my-order-status.status-shipped {
    color: #6d28d9;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
}
.my-order-status.status-delivered {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}
.my-order-status.status-cancelled {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.my-order-lead {
    font-size: 0.78rem;
    color: #d97706;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.my-order-lead.overdue {
    color: #dc2626;
}
.my-order-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}
.my-order-items {
    font-size: 0.85rem;
    color: var(--text-primary);
}
.my-order-confirm {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.my-order-confirm-hint {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.my-order-confirm-btn {
    align-self: flex-start;
    border: none;
    cursor: pointer;
    background: var(--secondary);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.55rem 0.95rem;
    border-radius: var(--radius-md);
}
.my-order-confirm-btn:hover:not(:disabled) {
    filter: brightness(0.95);
}
.my-order-confirm-btn:disabled,
.my-order-confirm-btn.is-loading {
    opacity: 0.65;
    cursor: wait;
}
.my-orders-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 1rem;
}

/* Shopping Guide FAB & Modal */
.guide-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2400;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--secondary);
    color: #fff;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), background var(--transition-fast);
}
.guide-fab:hover {
    transform: scale(1.05);
    filter: brightness(1.05);
}
.guide-fab i, .guide-fab svg {
    width: 26px;
    height: 26px;
}
.guide-modal-content {
    max-width: 520px;
}
.guide-modal-body {
    padding: 28px 24px 24px;
}
.guide-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding-right: 36px;
}
.guide-modal-header i, .guide-modal-header svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    flex-shrink: 0;
}
.guide-modal-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}
.guide-modal-intro {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}
.guide-steps {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.guide-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.guide-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.guide-step strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.guide-step p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.45;
}
.guide-full-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 12px;
    padding: 12px 16px;
    border: 1.5px solid rgba(220, 38, 38, 0.35);
    border-radius: 12px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    background: rgba(220, 38, 38, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.guide-full-link:hover {
    background: rgba(220, 38, 38, 0.12);
    border-color: var(--primary);
}

/* Customer Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 2500;
}
.chat-widget.hidden {
    display: none;
}
.chat-fab {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), background var(--transition-fast);
}
.chat-fab:hover {
    transform: scale(1.05);
    background: var(--primary-hover);
}
.chat-fab i, .chat-fab svg {
    width: 26px;
    height: 26px;
}
.chat-unread-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-unread-badge.hidden {
    display: none;
}
.chat-panel {
    position: absolute;
    bottom: 68px;
    left: 0;
    width: min(360px, calc(100vw - 48px));
    height: 480px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-panel.hidden {
    display: none;
}
.chat-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}
.chat-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}
.chat-panel-title i, .chat-panel-title svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}
.chat-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-close-btn:hover {
    background: var(--bg-muted);
    color: var(--text-primary);
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-muted);
}
.chat-loading, .chat-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: auto;
    padding: 1rem;
}
.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.45;
    word-break: break-word;
}
.chat-bubble.customer {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-bubble.staff {
    align-self: flex-start;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}
.chat-bubble.deleted {
    opacity: 0.85;
}
.chat-bubble.deleted.customer {
    background: rgba(16, 185, 129, 0.55);
}
.chat-bubble.deleted.staff {
    background: var(--bg-surface);
    color: var(--text-muted);
}
.chat-deleted-message {
    font-style: italic;
    opacity: 0.9;
}
.chat-bubble-time {
    display: block;
    font-size: 0.65rem;
    opacity: 0.75;
    margin-top: 4px;
}
.chat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}
.chat-form input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    font-size: 0.875rem;
    background: var(--bg-surface);
    color: var(--text-primary);
}
.chat-form input:focus {
    outline: none;
    border-color: var(--primary);
}
.chat-image-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chat-image-btn:hover {
    color: var(--primary);
    border-color: rgba(227, 30, 36, 0.25);
    background: rgba(227, 30, 36, 0.05);
}
.chat-image-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.chat-bubble img {
    display: block;
    max-width: 100%;
    max-height: 220px;
    border-radius: var(--radius-md);
    object-fit: cover;
}
.chat-image-preview {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    max-width: 100%;
}
.chat-image-preview img {
    pointer-events: none;
}
.chat-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
}
.chat-image-lightbox.hidden {
    display: none;
}
.chat-image-lightbox img {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 1200px);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}
.chat-image-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.chat-image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}
.chat-send-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chat-send-btn:hover {
    background: var(--primary-hover);
}
.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-reply-toast {
    cursor: pointer;
}
.chat-reply-toast:hover {
    border-color: var(--primary);
}
.chat-reply-preview {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 4px;
    line-height: 1.35;
}

@media (max-width: 480px) {
    .chat-widget {
        bottom: 16px;
        left: 16px;
    }
    .chat-panel {
        width: calc(100vw - 32px);
        height: min(70vh, 480px);
    }
}



/* Loyalty points in cart */
.loyalty-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.loyalty-box.hidden { display: none; }
.loyalty-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary, #64748b);
}
.loyalty-balance-row strong {
    color: var(--primary);
    font-size: 1rem;
}
.loyalty-redeem-box input[type="number"] {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    font-size: 0.9rem;
}
.loyalty-redeem-box.promo-applied #apply-loyalty-btn { display: none; }
.cart-discount-row span:last-child {
    color: #16a34a;
    font-weight: 600;
}
.loyalty-profile-value {
    margin: 0;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}
