/* ==============================================
   TonyStark Cloud - Public Site CSS
   Consolidated styles for all public pages
   ============================================== */

/* ==============================================
   1. CSS VARIABLES & THEME
   ============================================== */
:root {
    --primary: #0062d2ce;
    --primary-dark: #0099cc;
    --primary-hover: #00b8e6;
    --secondary: #ff6b35;
    --accent: #7c3aed;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --mybtn: #024b5a;

    /* Iron Man / Tech theme colors */
    --gold: #ffd700;
    --iron-red: #c62828;
    --arc-blue: #00bcd4;
    --metal: #37474f;
}

[data-theme="dark"] {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-elevated: #1a1a25;
    --text: #ffffff;
    --text-muted: #888899;
    --border: #2a2a3a;
    --glow: rgba(0, 212, 255, 0.3);
}

[data-theme="light"] {
    --bg: #f5f5f7;
    --bg-card: #ffffff;
    --bg-elevated: #fafafa;
    --text: #1a1a2e;
    --text-muted: #666677;
    --border: #e0e0e5;
    --glow: rgba(0, 150, 200, 0.2);
}

/* ==============================================
   2. BASE STYLES
   ============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Body lock when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==============================================
   3. UTILITY CLASSES
   ============================================== */

/* Stretched Link - make entire card clickable */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 30px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-title span {
    color: var(--primary);
}

/* ==============================================
   4. BUTTONS
   ============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 4px 20px var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--mybtn);
    color: #fff;
}

.btn-view {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
}

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

.btn-buy {
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-buy:hover {
    background: var(--primary-hover);
}

.btn-buy.disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}



/* ==============================================
   5. CARDS
   ============================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px var(--glow);
    transform: translateY(-5px);
}

/* ==============================================
   6. HEADER
   ============================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.95);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
}

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

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 0 20px var(--glow);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--glow);
    }

    50% {
        box-shadow: 0 0 40px var(--glow), 0 0 60px var(--glow);
    }
}

.logo-text {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-text span {
    color: var(--primary);
}

.logo-text.desktop-only {
    display: block;
    font-size: 16px;
}

/* ==============================================
   7. NAVIGATION
   ============================================== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 5px 5px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px var(--glow);
}

.btn-member {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px var(--glow);
}

.btn-member:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--glow);
}

/* Cart badge */
.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile menu toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
}

/* ==============================================
   8. MOBILE MENU DRAWER
   ============================================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85%;
    height: 100vh;
    background: var(--bg-card);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.mobile-menu-drawer.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-header .logo-text {
    font-size: 20px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.mobile-menu-nav a:hover, .mobile-menu-nav a.active {
    background: var(--bg-hover);
    color: var(--primary);
}

.mobile-menu-nav a i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}

/* ==============================================
   9. MAIN CONTENT
   ============================================== */
main {
    padding-top: 70px;
    min-height: 500px;
}

/* ==============================================
   10. PAGE HEADER (Breadcrumb Style)
   ============================================== */
.page-header {
    /* background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%); */
    padding: 30px 0 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    /* margin-bottom: 30px; */
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, var(--primary) 0%, transparent 60%);
    opacity: 0.2;
}



.page-header h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-muted);
    font-size: 18px;
    position: relative;
}

.breadcrumb-nav {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 12px;
}

.breadcrumb-nav a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    color: var(--primary);
}

/* ==============================================
   11. HERO SECTION
   ============================================== */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/img/hero-pattern.png') center/cover;
    opacity: 0.1;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(100px);
    animation: floatGlow 10s ease-in-out infinite;
}

.hero-glow-1 {
    top: -200px;
    right: -100px;
}

.hero-glow-2 {
    bottom: -200px;
    left: -100px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes floatGlow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 30px);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h2 {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero-text h1 {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.32;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    cursor: pointer;
}

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

/* Hero Slider Effects */
.hero-slider[data-effect="fade"] .hero-slide {
    transform: none;
}

.hero-slider[data-effect="slide"] .hero-slide {
    transform: translateX(50px);
}

.hero-slider[data-effect="slide"] .hero-slide.active {
    transform: translateX(0);
}

.hero-slider[data-effect="zoom"] .hero-slide {
    transform: scale(0.9);
}

.hero-slider[data-effect="zoom"] .hero-slide.active {
    transform: scale(1);
}

.hero-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
}

.hero-slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-slider-dots .dot:hover {
    background: var(--text-muted);
}

.hero-slider-dots .dot.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.hero-product-img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 20px 60px rgba(0, 212, 255, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ==============================================
   12. BANNER SLIDER
   ============================================== */
.banner-slider-section {
    padding: 40px 0;
    background: var(--bg);
}

.banner-slider {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/1;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: block;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.banner-overlay h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.banner-overlay p {
    font-size: 16px;
    opacity: 0.9;
}

.banner-slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.banner-slider-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-slider-nav button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.banner-dots {
    display: flex;
    gap: 8px;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot:hover {
    background: var(--text-muted);
}

.banner-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 5px;
}

/* ==============================================
   13. PRODUCTS
   ============================================== */
.products-section {
    padding: 30px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px var(--glow);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-elevated);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    width: auto;
    max-width: max-content;
    display: inline-block;
    padding: 4px 8px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    line-height: 1.2;
    white-space: nowrap;
    text-transform: uppercase;
    z-index: 2;
}

.product-stock {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 11px;
    border-radius: 6px;
}

.product-stock.out {
    background: var(--danger);
}

.product-info {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.product-category {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 44px;
}

.product-name a {
    color: var(--text);
    text-decoration: none;
    position: relative;
    z-index: 3;
}

.product-name a:hover {
    color: var(--primary);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.price-current {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.price-old {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.product-actions a {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}

/* Stretched link styles */
.product-card .stretched-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-indent: -9999px;
    white-space: nowrap;
    overflow: hidden;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.product-card .stretched-link:focus {
    outline: none;
}

.product-card .product-actions a,
.product-card .product-actions .btn-buy,
.product-card .product-info a,
.product-card .btn-view,
.product-card .btn-add-to-cart,
.product-card .product-name a,
.product-card .product-info * {
    position: relative;
    z-index: 3;
}

/* ==============================================
   14. FILTER SECTION
   ============================================== */
.filter-section {
    padding: 30px 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.filter-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.category-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.category-pill {
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.category-pill:hover,
.category-pill.active {
    background: var(--mybtn);
    border-color: var(--primary);
    color: #fff;
}

.search-box {
    display: flex;
    gap: 8px;
}

.search-box input {
    padding: 10px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    min-width: 200px;
}

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

.search-box button {
    padding: 10px 16px;
    background: var(--mybtn);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.search-box button:hover {
    background: var(--primary-hover);
}

/* ==============================================
   15. VIDEOS
   ============================================== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.video-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-elevated);
    display: block;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .video-play-btn {
    opacity: 1;
}

.video-play-btn i {
    font-size: 60px;
    color: var(--primary);
    filter: drop-shadow(0 0 20px var(--primary));
}

.video-info {
    padding: 20px;
}

.video-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-title a {
    color: var(--text);
    text-decoration: none;
}

.video-meta {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==============================================
   16. NEWS
   ============================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.news-card:hover {
    border-color: var(--primary);
}

.news-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    display: block;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 8px;
}

.news-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-title a {
    color: var(--text);
    text-decoration: none;
}

.news-title a:hover {
    color: var(--primary);
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==============================================
   17. POSTS
   ============================================== */
.posts-section {
    padding: 30px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.post-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--glow);
}

.post-thumbnail {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    display: block;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s;
}

.post-card:hover .post-play-btn {
    opacity: 1;
}

.post-play-btn i {
    font-size: 60px;
    color: var(--primary);
    filter: drop-shadow(0 0 20px var(--primary));
}

.post-content {
    padding: 24px;
}

.post-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-title {
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.post-title a {
    color: var(--text);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--primary);
}

.post-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.post-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
}

.post-link:hover {
    gap: 10px;
}

/* ==============================================
   18. DOWNLOADS
   ============================================== */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
}

.download-item:hover {
    border-color: var(--primary);
    background: var(--bg-elevated);
}

/* .download-icon - commented out */

.download-info {
    flex: 1;
    min-width: 0;
}

.download-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.download-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.download-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}


.download-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Downloads List Style (Posts page) */
.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s;
}

.download-card:hover {
    border-color: var(--primary);
}

.download-card .download-icon {
    width: 70px;
    height: 70px;
    font-size: 32px;
    border-radius: 16px;
}

.download-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 6px;
}

.download-title a {
    color: var(--text);
    text-decoration: none;
}

.download-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.download-card .download-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
}

.download-card .download-btn {
    padding: 12px 24px;
    border-color: var(--primary);
    border-style: solid;
    border-width: 1px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-card .download-btn:hover {
    background: var(--primary-hover);
    color: #fff;
}

/* ==============================================
   19. FEATURES SECTION
   ============================================== */
.features-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg));
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary);
    transition: all 0.3s;
}

.feature-item:hover .feature-icon {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--glow);
    border-color: var(--primary);
}

.feature-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==============================================
   20. PAGINATION
   ============================================== */
.pagination-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}

.pagination-nav a,
.pagination-nav span {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
}

.pagination-nav a:hover,
.pagination-nav span.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination-nav span.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==============================================
   21. EMPTY STATE
   ============================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 80px;
    color: var(--border);
    margin-bottom: 24px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-muted);
}

/* ==============================================
   22. FOOTER
   ============================================== */
.site-footer {
    margin-top:30px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 20px 30px;

}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    padding: 6px 0;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.social-link {
    border-radius: 8px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    transition: all 0.3s;
}

/* Social links brand colors */
.social-link.facebook {
    color: #1877f2;
}

.social-link.youtube {
    color: #ff0000;
}

.social-link.tiktok {
    color: #000;
}

[data-theme="dark"] .social-link.tiktok {
    color: #fff;
}

.social-link.viber {
    color: #7360f2;
}

.social-link.twitter {
    color: #000;
}

[data-theme="dark"] .social-link.twitter {
    color: #fff;
}

.social-link.instagram {
    color: #e4405f;
}

.social-link.twitch {
    color: #9146ff;
}

.social-link.telegram {
    color: #0088cc;
}

.social-link.linkedin {
    color: #0a66c2;
}

.social-link.zalo {
    color: #0068ff;
}

.social-link.shopee {
    color: #ee4d2d;
}

.social-link.lazada {
    color: #0f146d;
}

.social-link.kick {
    color: #53fc18;
}

.social-link.threads {
    color: #000;
}

[data-theme="dark"] .social-link.threads {
    color: #fff;
}

.social-link:hover {
    transform: scale(1.1);
    filter: brightness(1.15);
}

/* Newsletter Section */
.newsletter-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 30px 0;
    margin: 30px 0 20px;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.newsletter-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.newsletter-text h4 i {
    color: var(--primary);
}

.newsletter-text p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.newsletter-form {
    flex: 1;
    max-width: 450px;
    position: relative;
}

.newsletter-input-group {
    display: flex;
    gap: 10px;
}

.newsletter-input-group input {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    transition: all 0.3s;
}

.newsletter-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.newsletter-input-group input::placeholder {
    color: var(--text-muted);
}

.newsletter-input-group button {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.3s;
}

.newsletter-input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--glow);
}

.newsletter-input-group button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-message {
    margin-top: 10px;
    font-size: 14px;
}

.newsletter-message .success {
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.newsletter-message .error {
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 14px;
}

/* ==============================================
   23. ANIMATIONS
   ============================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s forwards;
}

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

/* ==============================================
   24. RESPONSIVE - TABLET
   ============================================== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .logo-text.desktop-only {
        display: block;
        font-size: 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        display: block;
        max-width: 280px;
        margin: 0 auto 24px;
        order: -1;
    }

    .hero-image img {
        max-height: 200px;
        object-fit: contain;
    }

    .hero-buttons {
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .videos-grid,
    .news-grid,
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-card {
        flex-wrap: wrap;
    }

    .download-card .download-info {
        width: calc(100% - 90px);
    }

    .download-card .download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==============================================
   25. RESPONSIVE - MOBILE
   ============================================== */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        width: 100%;
        max-width: 100%;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .newsletter-input-group button {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .videos-grid,
    .news-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

.post-header {
    /* background: linear-gradient(135deg, #b4b4c7 0%, #c69591 100%); */
    padding: 30px 0 30px;
    position: relative;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, var(--primary) 0%, transparent 60%);
    opacity: 0.2
}

.post-header .container {
    position: relative;
}

.post-breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.post-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.post-breadcrumb a:hover {
    color: var(--primary);
}

.post-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-body {
    padding: 60px 0;
}

.post-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.post-featured-image {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.video-embed {
    margin-bottom: 40px;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.download-box {
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.download-box-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    flex-shrink: 0;
}

.download-box-info {
    flex: 1;
}

.download-box-title {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 8px;
}

.download-box-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.download-box-btn {
    padding: 16px 32px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-box-btn:hover {
    background: var(--primary-hover);
    color: #fff;
}

.post-content {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-muted);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--text);
    margin: 32px 0 16px;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.post-content h2 {
    font-size: 28px;
}

.post-content h3 {
    font-size: 22px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    padding-left: 28px;
    margin-bottom: 20px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.post-content a {
    color: var(--primary);
}

.post-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
}

.post-content code {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: var(--text);
}

.post-tags {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.post-tags-label {
    font-weight: 600;
    margin-right: 12px;
}

.post-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    margin: 4px;
    transition: all 0.3s;
}

.post-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.share-box {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-box-label {
    font-weight: 600;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    transition: all 0.3s;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn.copy {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
}

.share-btn:hover {
    transform: translateY(-3px);
}

.related-section {
    padding: 60px 0;
    background: var(--bg-card);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.related-card:hover {
    border-color: var(--primary);
}

.related-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    display: block;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-info {
    padding: 20px;
}

.related-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
}

.related-title a {
    color: var(--text);
    text-decoration: none;
}

.related-title a:hover {
    color: var(--primary);
}

@media (max-width: 992px) {
    .download-box {
        flex-wrap: wrap;
    }

    .download-box-info {
        width: calc(100% - 104px);
    }

    .download-box-btn {
        width: 100%;
        justify-content: center;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/*product page style */


.footer-map {
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.footer-map iframe {
    width: 100%;
    height: 150px;
    border: none;
}


/* Floating Buttons - SpaceZ style */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 14px;
}

.floating-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.floating-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.5);
}

.floating-toggle i {
    font-size: 26px;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-toggle .close-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.8);
    position: absolute;
}

.floating-toggle .open-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.floating-container.active .floating-toggle .close-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.floating-container.active .floating-toggle .open-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.8);
}

.floating-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-container.active .floating-buttons {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    min-width: 56px;
    justify-content: center;
}

.floating-btn:hover {
    transform: translateX(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.floating-btn i {
    font-size: 22px;
    color: #fff;
}

.floating-btn .btn-label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    display: none;
}

.floating-btn:hover .btn-label {
    display: block;
}

.floating-btn.call {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.floating-btn.zalo {
    background: linear-gradient(135deg, #0088ff, #0068dd);
    padding: 10px 14px;
}

.floating-btn.zalo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 8px;
}

.floating-btn.tawk {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
}

.floating-btn.messenger {
    background: linear-gradient(135deg, #00b2ff, #006aff);
}

/* Animation for individual buttons */
.floating-container.active .floating-btn:nth-child(1) {
    transition-delay: 0.05s;
}

.floating-container.active .floating-btn:nth-child(2) {
    transition-delay: 0.1s;
}

.floating-container.active .floating-btn:nth-child(3) {
    transition-delay: 0.15s;
}

.floating-container.active .floating-btn:nth-child(4) {
    transition-delay: 0.2s;
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-card);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.cart-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

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

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.cart-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.cart-empty p {
    margin-bottom: 20px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-elevated);
    border-radius: 12px;
    position: relative;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.cart-item-qty span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.cart-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: var(--danger);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.total-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.btn-block {
    width: 100%;
    margin-bottom: 10px;
}

/* Add to cart button in product card */
.btn-add-to-cart {
    width: 100%;
    padding: 10px 15px;
    margin-top: 12px;
    /* background: linear-gradient(135deg, var(--primary), var(--accent)); */
    /* color: #fff; */
    /* background: #e97979; */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--glow);
}

.btn-add-to-cart i {
    font-size: 16px;
}

/*product detail css */

.product-detail {
    padding: 0px 0;
}

.product-gallery {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thumb-item {
    width: 100px;
    height: 100px;
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: var(--primary);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-main {
    position: relative;
    /* aspect-ratio: 1;
    border: 1px solid var(--border); */
    max-height: 660px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-badge-lg {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: var(--danger);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
}

.product-content {
    padding-top:30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.product-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: var(--primary);
}

.product-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-price-box {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.price-main {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}

.price-old-lg {
    font-size: 20px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-discount {
    padding: 6px 12px;
    background: var(--danger);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.stock-status.in-stock {
    color: var(--success);
}

.stock-status.low-stock {
    color: var(--warning);
}

.stock-status.out-stock {
    color: var(--danger);
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.product-actions .btn {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
}

.product-description {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.product-description h3 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.product-description .content {
    line-height: 1.8;
    color: var(--text-muted);
}

.product-description .content h1,
.product-description .content h2,
.product-description .content h3 {
    color: var(--text);
    margin: 24px 0 12px;
}

.product-description .content ul {
    padding-left: 24px;
    margin: 16px 0;
}

.product-description .content li {
    margin-bottom: 8px;
}

.product-specs {
    margin-top: 24px;
}

.specs-table {
    width: 100%;
}

.specs-table tr {
    border-bottom: 1px solid var(--border);
}

.specs-table td {
    padding: 12px 0;
}

.specs-table td:first-child {
    font-weight: 600;
    width: 40%;
}

.related-section {
    padding: 60px 0;
    background: var(--bg-card);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.related-card {
    background: var(--bg-card, var(--bg));
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.related-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    flex-shrink: 0;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info {
    padding: 16px;
}

.related-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
    color: var(--text);
    text-decoration: none;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-name:hover {
    color: var(--primary);
}

a.related-name {
    transition: color 0.2s;
}

.related-name a {
    color: var(--text);
    text-decoration: none;
}

.related-price {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 16px;
    color: var(--primary);
}

@media (max-width: 992px) {
    .product-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-thumbs {
        flex-direction: row;
        order: 1;
        overflow-x: auto;
    }

    .thumb-item {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 24px;
    }

    .price-main {
        font-size: 28px;
    }

    .product-actions {
        flex-direction: column;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

/*contact page */

.contact-header {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, var(--primary) 0%, transparent 60%);
    opacity: 0.1;
}

.contact-header h1 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.contact-header h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-header p {
    color: var(--text-muted);
    font-size: 18px;
    position: relative;
}

.contact-section {
    padding-top: 0px;
    padding-bottom: 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    margin-top:30px;
}

.contact-info-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg));
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-item-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-item-content a {
    color: var(--primary);
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.social-link {
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--text);
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    margin-top:30px;
}

.contact-form-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
}

.product-preview {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 24px;
}

.product-preview-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-preview-info {
    flex: 1;
}

.product-preview-name {
    font-weight: 600;
    margin-bottom: 6px;
}

.product-preview-price {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 18px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-label span {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    transition: all 0.3s;
}

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

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--glow);
}

.map-section {
    padding: 0;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/*public layout */
/* Force hide Tawk.to default bubble widget */
.tawk-min-container,
#tawk-bubble-container,
[class*="tawk-"][class*="bubble"] {
    display: none !important;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* checkout page */
.checkout-page {
    padding: 100px 0 60px;
    min-height: 80vh;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.checkout-form h2,
.order-summary h2 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-form h2 i,
.order-summary h2 i {
    color: var(--primary);
}

.form-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
}

.form-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group label .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: var(--primary);
}

.payment-option.active {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-radio {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.payment-option.active .payment-radio {
    border-color: var(--primary);
}

.payment-radio::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
}

.payment-option.active .payment-radio::after {
    opacity: 1;
    transform: scale(1);
}

.payment-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.payment-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.payment-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* QR Display */
.qr-display {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.qr-display.active {
    display: block;
}

.qr-display img {
    max-width: 250px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.qr-info {
    text-align: left;
    background: var(--bg-elevated);
    padding: 16px;
    border-radius: 10px;
    margin-top: 16px;
}

.qr-info p {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.qr-info strong {
    color: var(--primary);
}

.copy-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
}

.copy-btn:hover {
    opacity: 0.9;
}

/* Order Summary */
.order-summary {
    position: sticky;
    top: 90px;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
}

.cart-items-summary {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.summary-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-item-info {
    flex: 1;
    min-width: 0;
}

.summary-item-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-item-qty {
    font-size: 13px;
    color: var(--text-muted);
}

.summary-item-price {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.summary-totals {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.summary-row.total {
    font-size: 20px;
    font-weight: 700;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.summary-row.total .amount {
    color: var(--primary);
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow);
}

.btn-checkout:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.empty-cart-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-cart-message i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-cart-message p {
    margin-bottom: 20px;
}

/* Order Success Modal */
.order-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.order-success-overlay.active {
    display: flex;
}

.order-success-modal {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    animation: modalPop 0.4s ease;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 40px;
    color: #fff;
}

.order-success-modal h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.order-success-modal p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.order-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    background: var(--bg-elevated);
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: inline-block;
}

/* Form row 2 columns */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Responsive */
@media (max-width: 992px) {
    .checkout-container {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .order-summary {
        position: static;
        order: -1; /* Move order summary to top on mobile */
    }

    .checkout-form {
        order: 1;
    }
}

@media (max-width: 576px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

/*index page */
/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/img/hero-pattern.png') center/cover;
    opacity: 0.1;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(100px);
    animation: floatGlow 10s ease-in-out infinite;
}

.hero-glow-1 {
    top: -200px;
    right: -100px;
}

.hero-glow-2 {
    bottom: -200px;
    left: -100px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes floatGlow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 30px);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    /* max-width: 1400px; */
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h2 {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero-text h1 {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.32;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.hero-text h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Push image to right edge */
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    cursor: pointer;
}

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

/* Fade effect */
.hero-slider[data-effect="fade"] .hero-slide {
    transform: none;
}

/* Slide effect */
.hero-slider[data-effect="slide"] .hero-slide {
    transform: translateX(50px);
}

.hero-slider[data-effect="slide"] .hero-slide.active {
    transform: translateX(0);
}

/* Zoom effect */
.hero-slider[data-effect="zoom"] .hero-slide {
    transform: scale(0.9);
}

.hero-slider[data-effect="zoom"] .hero-slide.active {
    transform: scale(1);
}

.hero-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
}

.hero-slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-slider-dots .dot:hover {
    background: var(--text-muted);
}

.hero-slider-dots .dot.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.hero-product-img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 20px 60px rgba(0, 212, 255, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Banner Slider */
.banner-slider-section {
    padding: 40px 0;
    background: var(--bg);
}

.banner-slider {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/1;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: block;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.banner-overlay h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.banner-overlay p {
    font-size: 16px;
    opacity: 0.9;
}

.banner-slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.banner-slider-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-slider-nav button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.banner-dots {
    display: flex;
    gap: 8px;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot:hover {
    background: var(--text-muted);
}

.banner-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 5px;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    /* required for stretched link */
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px var(--glow);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-elevated);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    width: auto;
    max-width: max-content;
    display: inline-block;
    padding: 4px 8px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    line-height: 1.2;
    white-space: nowrap;
    text-transform: uppercase;
    z-index: 2;
}

.product-info {
    padding: 20px;
    position: relative;
    z-index: 2;
    /* ensure content above overlay */
}

.product-category {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-name a {
    color: var(--text);
    text-decoration: none;
    position: relative;
    z-index: 3;
}

.product-name a:hover {
    color: var(--primary);
}

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

.price-current {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.price-old {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Stretched link styles (cover entire card) */
.product-card .stretched-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-indent: -9999px;
    white-space: nowrap;
    overflow: hidden;
    border: 0;
    background: transparent;
    cursor: pointer;
}

/* Ensure interactive controls sit above the stretched link and remain clickable */
.product-card .btn-add-to-cart,
.product-card .product-name a,
.product-card .product-info * {
    position: relative;
    z-index: 3;
}


/* Video Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.video-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-elevated);
    display: block;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .video-play-btn {
    opacity: 1;
}

.video-play-btn i {
    font-size: 60px;
    color: var(--primary);
    filter: drop-shadow(0 0 20px var(--primary));
}

.video-info {
    padding: 20px;
}

.video-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-title a {
    color: var(--text);
    text-decoration: none;
}

.video-meta {
    font-size: 13px;
    color: var(--text-muted);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.news-card:hover {
    border-color: var(--primary);
}

.news-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    display: block;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 8px;
}

.news-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-title a {
    color: var(--text);
    text-decoration: none;
}

.news-title a:hover {
    color: var(--primary);
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Downloads Grid */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
}

.download-item:hover {
    border-color: var(--primary);
    background: var(--bg-elevated);
}

.download-icon {
    width: 50px;
    height: 50px;

    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
    min-width: 0;
}

.download-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.download-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.download-btn {
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.download-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Features Section */
.features-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg));
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary);
    transition: all 0.3s;
}

.feature-item:hover .feature-icon {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--glow);
    border-color: var(--primary);
}

.feature-title {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        display: block;
        max-width: 280px;
        margin: 0 auto 24px;
        order: -1;
        /* Hiện ảnh trước text trên mobile */
    }

    .hero-image img {
        max-height: 200px;
        object-fit: contain;
    }

    .hero-buttons {
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .videos-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .videos-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* privacy page */

.page-content {
    padding: 100px 0 60px;
    min-height: 80vh;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}


.page-header h1 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-body {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    line-height: 1.8;
}

.page-body h2,
.page-body h3 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-body p {
    color: var(--text);
    margin-bottom: 15px;
}

.page-body ul,
.page-body ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.page-body li {
    margin-bottom: 8px;
}

.no-content {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-content i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* terms page */
/* reuse privacy page styles */

.page-content {
    padding: 100px 0 60px;
    min-height: 80vh;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}




.page-body {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    line-height: 1.8;
}

.page-body h2,
.page-body h3 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-body p {
    color: var(--text);
    margin-bottom: 15px;
}

.page-body ul,
.page-body ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.page-body li {
    margin-bottom: 8px;
}

.no-content {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-content i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}
