:root {
    --bg-color: #111116;
    --text-main: #f8fafc;
    --text-muted: #8b949e;
    --primary-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --warning-gradient: linear-gradient(135deg, #f59e0b, #ea580c);
    --success-gradient: linear-gradient(135deg, #10b981, #059669);
    --danger-gradient: linear-gradient(135deg, #ef4444, #b91c1c);
    --glass-bg: rgba(25, 30, 45, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(28, 32, 45, 0.7);
    --card-border: rgba(255, 255, 255, 0.05);
    
    --cyan: #06b6d4;
    --green: #10b981;
    --yellow: #eab308;
    --blue: #3b82f6;
    --purple: #a855f7;
    
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
    color: var(--text-main);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Utilities */
.hidden { display: none !important; }
.green-text { color: var(--green); }
.cyan-text { color: var(--cyan); }
.yellow-text { color: var(--yellow); }
.gray-text { color: var(--text-muted); }
.full-width { width: 100%; }

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 10px currentColor;
}
.green-dot { background: var(--green); color: var(--green); }
.cyan-dot { background: var(--cyan); color: var(--cyan); }
.yellow-dot { background: var(--yellow); color: var(--yellow); }
.blue-dot { background: var(--blue); color: var(--blue); }

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 50px; 
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.5s ease;
    pointer-events: none;
}

.btn:active::after {
    transform: translate(-50%, -50%) scale(1);
    transition: 0s;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-primary {
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-warning {
    background: var(--warning-gradient);
    color: #000;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-success {
    background: var(--success-gradient);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-success:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-danger {
    background: var(--danger-gradient);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
}
.btn-outline:hover {
    background: rgba(6, 182, 212, 0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(21, 23, 32, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}
.store-logo:hover {
    transform: scale(1.05);
}

.store-logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.store-logo-img-large {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* Nav Controls (Search, Currency, Lang) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-grow: 1;
    justify-content: center;
}
.search-box {
    position: relative;
    width: 180px;
    transition: width 0.3s ease;
}
.search-box:focus-within,
.search-box.searching {
    width: 320px;
}
.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}
.search-box i:hover {
    color: var(--cyan);
}
.search-box input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 8px 16px 8px 36px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}
.search-box:focus-within input,
.search-box.searching input {
    border-color: var(--purple);
    background: rgba(0,0,0,0.5);
}
/* Custom Selects */
.custom-select {
    position: relative;
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 140px;
}

.custom-select-selected {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 8px 14px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.custom-select-selected:hover, .custom-select.open .custom-select-selected {
    background: rgba(0,0,0,0.6);
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.custom-select-selected i {
    font-size: 0.75rem;
    transition: transform 0.3s;
    color: var(--text-muted);
}

.custom-select.open .custom-select-selected i {
    transform: rotate(180deg);
    color: var(--cyan);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(15, 17, 24, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 6px;
    z-index: 1000;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-option {
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.custom-select-option:last-child {
    margin-bottom: 0;
}

.custom-select-option:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    padding-left: 16px;
}

.custom-select-option.active {
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan);
    font-weight: 600;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.cart-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.cart-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.badge {
    background: var(--cyan);
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

/* App Content */
.app-content {
    flex-grow: 1;
    padding-top: var(--nav-height);
}

/* Slower Fade Animation for Page Transitions */
.view {
    animation: fadeIn 0.8s ease-in-out;
}

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

/* Hero Section */
#home-view {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--nav-height));
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-left {
    flex: 1;
    max-width: 650px;
}

.tagline {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.03);
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.05);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 6.5rem;
    font-weight: 900;
    line-height: 0.85;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.title-line { display: block; }
.text-white { color: #ffffff; }
.text-purple {
    color: #a855f7;
}
.text-cyan {
    color: #06b6d4;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-dark-outline {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-dark-outline:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.btn-cyan-glow {
    background: linear-gradient(135deg, #60a5fa, #06b6d4);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4), 0 0 40px rgba(6, 182, 212, 0.2);
    transition: all 0.3s;
}
.btn-cyan-glow:hover {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.6), 0 0 50px rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

.btn-yellow-glow {
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    color: #000;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), 0 0 40px rgba(245, 158, 11, 0.2);
    transition: all 0.3s;
}
.btn-yellow-glow:hover {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6), 0 0 50px rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

.hero-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.feature-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 6px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
}
.feature-badge strong { color: #fff; margin-right: 4px; }

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.control-panel {
    background: rgba(20, 22, 28, 0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.info-card {
    background: rgba(20, 22, 28, 0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.panel-title { color: var(--text-muted); }
.system-status { color: var(--green); font-weight: 600; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: #0d0f12;
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 1.5rem 0.5rem;
    text-align: center;
}
.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: #fff;
}
.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.performance-window {
    background: rgba(10, 12, 16, 0.8);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
}
.window-header {
    background: rgba(255,255,255,0.02);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.window-dots { display: flex; gap: 6px; }
.window-dots span {
    width: 8px; height: 8px; border-radius: 50%;
    background: #333;
}
.window-title {
    font-size: 0.7rem; color: var(--text-muted); letter-spacing: 2px;
}
.window-content {
    padding: 3rem 2rem;
    text-align: center;
}

/* Products View */
.products-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
}
.section-subtitle {
    color: var(--cyan);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}
.section-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}
.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.sub-category-filters {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.sub-filter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.sub-filter-icon {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
}
.sub-filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: color 0.3s;
}
.sub-filter-btn:hover, .sub-filter-btn.active {
    color: var(--text-main);
}
.sub-filter-btn.active {
    text-decoration: underline;
    text-decoration-color: var(--purple);
    text-underline-offset: 4px;
}

.filter-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.products-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Slower and bigger hover animation */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.5s;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(6, 182, 212, 0.1);
}
.product-card:hover::before { opacity: 1; }

.product-img-box {
    width: 100%;
    height: 200px;
    background: #000;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}
.product-img-box img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.5s, transform 0.6s;
}
.product-card:hover .product-img-box img {
    opacity: 1;
    transform: scale(1.08);
}
.product-img-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, #000 100%);
    pointer-events: none;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.product-price-box {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.price-label { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 1px; }
.price-value { font-size: 1.2rem; font-weight: 800; color: #fff; }

.card-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Details View */
.details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 3rem;
}
.details-text-area {
    display: flex;
    flex-direction: column;
}
.details-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--cyan);
}
.details-desc-box {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.8;
    background: rgba(0,0,0,0.3);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.details-action-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.details-image-box {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}
.details-image-box h3 {
    z-index: 1; font-size: 3rem; opacity: 0.8; text-transform: uppercase; font-weight: 900; transform: skewX(-10deg);
}
.details-price-row {
    background: rgba(0,0,0,0.5);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
}
.d-label { color: var(--text-muted); letter-spacing: 2px; }
.d-price { font-size: 2rem; font-weight: 800; color: #fff; }


/* Cart View */
.cart-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.cart-header-top { margin-bottom: 2rem; }
.btn-back {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}
.btn-back:hover { background: rgba(255,255,255,0.1); color: #fff; }

.cart-title-area { margin-bottom: 3rem; text-align: center; }

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-cart-msg {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
}

.cart-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ci-info h4 { font-size: 1.1rem; margin-bottom: 4px; }
.ci-info p { font-size: 0.8rem; color: var(--text-muted); }
.ci-price { font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; gap: 1rem;}
.btn-remove {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-remove:hover { background: rgba(239, 68, 68, 0.2); }

.order-summary {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    height: fit-content;
}
.summary-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.summary-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 1.5rem 0;
}
.total-row {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

/* Payment View */
.payment-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.payment-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}
.payment-box::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary-gradient);
}

.payment-icon {
    font-size: 2rem;
    color: var(--cyan);
    text-align: center;
    margin-bottom: 1rem;
}
.payment-title { text-align: center; font-size: 1.8rem; margin-bottom: 0.5rem; }
.payment-desc { text-align: center; color: var(--text-muted); margin-bottom: 2rem; font-size: 0.9rem; }

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px;
}
.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}
.form-group input:focus { border-color: var(--cyan); }

.coupon-input-group {
    display: flex; gap: 8px;
}
.coupon-input-group input { flex: 1; }
.coupon-msg { display: block; margin-top: 8px; font-size: 0.8rem; }

.payment-methods {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.method-card {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.method-card input { display: none; }
.method-card.active { border-color: var(--cyan); background: rgba(6, 182, 212, 0.1); }

.payment-summary-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.ps-row {
    display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.95rem;
}
.ps-row.total-row {
    margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 1.2rem; font-weight: 800;
}

.form-notice {
    font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-bottom: 2rem;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.form-notice i { color: var(--yellow); }

.form-actions { display: flex; flex-direction: column; gap: 10px; }

/* Footer */
.app-footer {
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    min-width: 250px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    animation: slideInLeft 0.3s ease-out;
}
.toast.hiding {
    animation: slideOutLeft 0.3s ease-in forwards;
}
.toast-msg {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}
.toast-msg i { color: var(--green); font-size: 1.2rem; }
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-gradient);
    width: 100%;
    animation: progressShrink 2s linear forwards;
}

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

/* Responsive */
/* Responsive */
@media (max-width: 900px) {
    .nav-container { flex-direction: column; padding: 1rem; }
    .nav-controls { width: 100%; flex-wrap: wrap; }
    .search-box { max-width: 100%; width: 100% !important; }
    .hero-container { flex-direction: column; text-align: center; padding: 4rem 1rem; }
    .hero-left { margin: 0 auto; }
    .hero-title { font-size: 3rem; }
    .hero-buttons, .hero-stats { justify-content: center; flex-wrap: wrap; }
    .cart-layout, .details-layout { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}

/* Theme 2: Black & White */
[data-theme="bw"] {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #888888;
    --primary-gradient: linear-gradient(135deg, #444, #888);
    --warning-gradient: linear-gradient(135deg, #666, #aaa);
    --success-gradient: linear-gradient(135deg, #888, #ccc);
    --danger-gradient: linear-gradient(135deg, #444, #888);
    --glass-bg: rgba(20, 20, 20, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --card-bg: rgba(15, 15, 15, 0.9);
    --card-border: rgba(255, 255, 255, 0.3);
    
    --cyan: #ffffff;
    --green: #ffffff;
    --yellow: #ffffff;
    --blue: #ffffff;
    --purple: #ffffff;
}

[data-theme="bw"] body {
    background-image: none;
}

[data-theme="bw"] .text-purple,
[data-theme="bw"] .text-cyan {
    color: #ffffff !important;
}

[data-theme="bw"] .btn-cyan-glow,
[data-theme="bw"] .btn-yellow-glow {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 40px rgba(255, 255, 255, 0.2);
}

[data-theme="bw"] .btn-outline {
    border-color: #ffffff;
    color: #ffffff;
}

[data-theme="bw"] .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="bw"] .cyan-dot, 
[data-theme="bw"] .green-dot,
[data-theme="bw"] .yellow-dot,
[data-theme="bw"] .blue-dot {
    background: #ffffff;
    color: #ffffff;
}

[data-theme="bw"] .product-card:hover {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 20px rgba(255, 255, 255, 0.2);
}

/* ===== Copy Field ===== */
.copy-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    gap: 12px;
}

.copy-field:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.6);
}

/* ===== pd-block visibility ===== */
.pd-block {
    display: block;
}

.pd-block.hidden {
    display: none;
}

/* ===== Order Complete Modal Animation ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .payment-methods {
        grid-template-columns: 1fr;
    }
}
