/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background: #f5f5f7;
    color: #1a1a2e;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e6e8ec;
    transition: box-shadow 0.3s;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-weight: 700;
    font-size: 18px;
    color: #1a1a2e;
}

.logo-num {
    display: inline-block;
    font-weight: 800;
    animation: logoWave 2.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.15s);
    background: linear-gradient(135deg, #2563eb, #7c3aed, #ec4899, #2563eb);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoWave 2.5s ease-in-out infinite calc(var(--i) * 0.15s),
        logoColor 4s ease-in-out infinite calc(var(--i) * 0.3s);
}

@keyframes logoWave {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-4px) scale(1.1);
    }

    50% {
        transform: translateY(0);
    }
}

@keyframes logoColor {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.logo-badge {
    background: #dae9ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 50px;
    border: 2px solid #dae9ff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #1a1a2e;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}

.nav-dropdown-menu a:hover {
    background: #f3f4f6;
}

.nav-btn {
    background: #1a1a2e;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: #2563eb;
}

/* ===== HERO / CATEGORIES ===== */
.hero-section {
    background: #f5f5f7;
    padding: 100px 0 32px;
}

.hero-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-icon {
    font-size: 28px;
}

.hero-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.chip:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.chip.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.chip-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: contain;
}

/* ===== SECTION HEADERS ===== */
.section-bestseller {
    background: #f5f5f7;
    padding: 32px 0 48px;
}

.section-products {
    background: #fff;
    padding: 48px 0 64px;
}

.section-header-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.section-icon {
    font-size: 28px;
    margin-top: 2px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}

.section-sub {
    font-size: 14px;
    color: #888;
    margin-top: 4px;
}

/* ===== PRODUCT CARDS (horizontal scroll for bestseller) ===== */
.product-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 8px 8px 8px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.product-scroll.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.product-scroll.dragging .product-card {
    pointer-events: none;
}

.product-scroll::-webkit-scrollbar {
    display: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* ===== CATEGORY SECTIONS ===== */
.category-section {
    display: flex;
    gap: 20px;
    margin-bottom: 36px;
    align-items: flex-start;
}

.category-info-card {
    min-width: 220px;
    max-width: 220px;
    background: #f7f9fc;
    border: 1px solid #e6e8ec;
    border-radius: 16px;
    padding: 24px 20px;
    position: sticky;
    top: 80px;
}

.cat-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.cat-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 12px;
}

.cat-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 14px;
}

.cat-features {
    list-style: none;
    padding: 0;
}

.cat-features li {
    font-size: 13px;
    color: #555;
    padding: 4px 0;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cat-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: 700;
    flex-shrink: 0;
}

.category-products {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #d0d5dd;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    min-width: 220px;
    scroll-snap-align: start;
}

.product-scroll .product-card {
    min-width: 280px;
    max-width: 280px;
}

.product-card:hover {
    border-color: #d0d5dd;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.product-card.out-of-stock {
    opacity: 0.5;
}

/* Pinned / Gift product glow + shake */
.product-card-pinned {
    border: 2px solid #ec4899;
    box-shadow: 0 0 16px rgba(236, 72, 153, 0.3), 0 0 32px rgba(236, 72, 153, 0.1);
    animation: pinnedShake 3s ease-in-out infinite, pinnedGlow 2s ease-in-out infinite alternate;
    position: relative;
}

.product-card-pinned:hover {
    box-shadow: 0 0 24px rgba(236, 72, 153, 0.5), 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px) scale(1.02);
    animation: none;
}

@keyframes pinnedShake {

    0%,
    15%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    2% {
        transform: translateX(-3px) rotate(-1deg);
    }

    4% {
        transform: translateX(3px) rotate(1deg);
    }

    6% {
        transform: translateX(-3px) rotate(-0.5deg);
    }

    8% {
        transform: translateX(3px) rotate(0.5deg);
    }

    10% {
        transform: translateX(-2px) rotate(0deg);
    }

    12% {
        transform: translateX(2px) rotate(0deg);
    }
}

@keyframes pinnedGlow {
    0% {
        box-shadow: 0 0 12px rgba(236, 72, 153, 0.25), 0 0 24px rgba(236, 72, 153, 0.08);
        border-color: #ec4899;
    }

    100% {
        box-shadow: 0 0 20px rgba(244, 63, 94, 0.4), 0 0 40px rgba(245, 158, 11, 0.15);
        border-color: #f43f5e;
    }
}

.badge-free {
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    color: #be185d;
}

.badge-free .badge-dot {
    background: #ec4899;
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.6);
        opacity: 0.6;
    }
}

.card-image {
    width: 100%;
    aspect-ratio: 690 / 323;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-product-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: transform 0.5s ease;
}

.product-card:hover .card-product-img {
    transform: scale(1.04);
}

.card-image img:not(.card-product-img) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-placeholder {
    font-size: 48px;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.card-image-tags {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    z-index: 3;
}

.card-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
}

.card-tag-hot {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

.card-tag-new {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
}

.card-tag-default {
    background: rgba(255, 255, 255, 0.85);
    color: #333;
}

.card-tag-super-hot {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ff0f7b 0%, #f89b29 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 0 16px 0 16px;
    text-transform: uppercase;
    box-shadow: -2px 2px 12px rgba(255, 15, 123, 0.4);
    z-index: 10;
    letter-spacing: 1px;
    animation: hotTagPulse 1.5s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes hotTagPulse {
    0% {
        transform: scale(1);
        box-shadow: -2px 2px 12px rgba(255, 15, 123, 0.4);
    }
    100% {
        transform: scale(1.08);
        box-shadow: -4px 4px 16px rgba(255, 15, 123, 0.6);
    }
}

.card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    width: fit-content;
    letter-spacing: 0.3px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.badge-account {
    background: #ecfdf5;
    color: #059669;
}

.badge-account .badge-dot {
    background: #059669;
}

.badge-upgrade {
    background: #fff7ed;
    color: #ea580c;
}

.badge-upgrade .badge-dot {
    background: #ea580c;
}

.badge-code {
    background: #eff6ff;
    color: #2563eb;
}

.badge-code .badge-dot {
    background: #2563eb;
}

.card-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.card-price {
    font-size: 16px;
    font-weight: 700;
    color: #2563eb;
}

.card-discount {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #dc2626;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 6px;
}

.card-original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 6px;
}

.card-stock-row {
    margin-bottom: 10px;
}

.card-stock {
    font-size: 14px;
    font-weight: 700;
}

.card-stock.in-stock {
    color: #059669;
}

.card-stock.low-stock {
    color: #d97706;
}

.card-stock.out-stock {
    color: #dc2626;
}

.card-buy-row {
    border-top: 1px solid #f0f0f5;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
}

.card-buy-row svg {
    width: 16px;
    height: 16px;
}

/* ===== PROMO ===== */
.promo-section {
    background: #fff;
    padding: 0 0 64px;
}

.promo-card {
    background: linear-gradient(135deg, #1a1a2e, #2d1b69);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent);
}

.promo-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.promo-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
}

.promo-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    max-width: 320px;
    line-height: 1.5;
}

.promo-btn {
    background: #fff;
    color: #1a1a2e;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.promo-links {
    display: flex;
    gap: 12px;
}

.promo-btn:hover {
    background: #eff6ff;
    color: #2563eb;
}

/* ===== FOOTER ===== */
.footer {
    background: #f7f9fc;
    padding: 48px 0 24px;
    border-top: 1px solid #e6e8ec;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.7;
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    font-size: 13px;
    color: #666;
    padding: 4px 0;
}

.footer-list a {
    transition: color 0.2s;
}

.footer-list a:hover {
    color: #2563eb;
}

.footer-bottom {
    border-top: 1px solid #e6e8ec;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: #aaa;
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: #fff;
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f5;
    border: none;
    font-size: 20px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e0e0e5;
    color: #1a1a2e;
}

.modal-body {
    padding: 32px;
}

/* Modal inner styles */
.modal-product-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.modal-product-icon-wrap {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    overflow: hidden;
    padding: 6px;
    box-sizing: border-box;
}

.modal-product-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

.modal-product-price {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    margin: 16px 0;
}

.modal-description {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    background: #f7f9fc;
    border-radius: 12px;
    padding: 16px;
    white-space: pre-line;
    margin-bottom: 16px;
}

.modal-stock-info {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.qty-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f7f9fc;
    border-radius: 10px;
    border: 1px solid #e6e8ec;
}

.qty-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #d0d5dd;
    background: #fff;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: inherit;
}

.qty-btn:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #2563eb;
}

.qty-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    min-width: 24px;
    text-align: center;
}

.modal-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e0e0e5;
    background: #fff;
    color: #1a1a2e;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.modal-input:focus {
    outline: none;
    border-color: #2563eb;
}

.modal-buy-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-buy-btn:hover {
    background: #1d4ed8;
}

.modal-buy-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Payment Area */
.payment-area {
    text-align: center;
}

.payment-title {
    color: #10b981;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.payment-qr {
    background: #fff;
    padding: 12px;
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.payment-qr img {
    width: 200px;
    height: 200px;
}

.payment-amount {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

.payment-amount span {
    color: #2563eb;
}

.payment-code {
    margin-top: 8px;
    font-size: 16px;
    color: #555;
}

.payment-code span {
    color: #f59e0b;
    font-family: monospace;
    font-size: 18px;
    letter-spacing: 2px;
    user-select: all;
    font-weight: 700;
}

.payment-waiting {
    margin-top: 16px;
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #2563eb;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success */
.success-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 24px;
}

.success-title {
    color: #10b981;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.success-item {
    background: #fff;
    border: 1px solid #e6e8ec;
    padding: 16px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 14px;
    color: #1a1a2e;
    word-break: break-all;
    margin: 12px 0;
}

.success-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.btn-copy {
    flex: 1;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-copy:hover {
    background: #1d4ed8;
}

.btn-close-modal {
    background: #f0f0f5;
    color: #555;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-close-modal:hover {
    background: #e0e0e5;
}

/* Error */
.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 20px;
    border-radius: 12px;
    color: #dc2626;
    font-weight: 600;
    font-size: 14px;
}

.error-box a {
    color: #2563eb;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 16px;
    }

    .nav-link {
        display: none;
    }

    .nav-btn {
        font-size: 11px;
        padding: 6px 12px;
    }

    .nav-dropdown .nav-link {
        display: block;
        font-size: 12px;
    }

    .hero-section {
        padding: 80px 0 24px;
    }

    .hero-title {
        font-size: 20px;
    }

    .category-chips {
        gap: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .chip {
        padding: 10px 14px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .section-bestseller {
        padding: 24px 0 32px;
    }

    .section-products {
        padding: 32px 0 48px;
    }

    .section-title {
        font-size: 18px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        min-width: 160px;
    }

    .card-name {
        font-size: 13px;
    }

    .card-price {
        font-size: 14px;
    }

    .product-scroll {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        overflow-x: visible;
    }

    .product-scroll .product-card {
        min-width: unset;
        max-width: unset;
    }

    /* Category sections: stack vertically */
    .category-section {
        flex-direction: column;
        gap: 12px;
    }

    .category-info-card {
        min-width: 100%;
        max-width: 100%;
        position: static;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        padding: 16px;
    }

    .cat-icon,
    .cat-logo {
        margin-bottom: 0;
    }

    .cat-title {
        margin-bottom: 0;
        font-size: 16px;
    }

    .cat-features {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 16px;
    }

    .cat-features li {
        font-size: 12px;
    }

    .category-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .promo-card {
        flex-direction: column;
        text-align: center;
        padding: 28px;
        gap: 20px;
    }

    .promo-title {
        font-size: 22px;
    }

    .promo-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .modal-card {
        border-radius: 16px;
    }

    .modal-body {
        padding: 24px;
    }

    .container {
        padding: 0 16px;
    }

    .header-inner {
        padding: 0 16px;
        height: 50px;
    }

    .logo-text {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 46px;
        padding: 0 12px;
    }

    .logo-text {
        font-size: 14px;
    }

    .container {
        padding: 0 10px;
    }

    .hero-section {
        padding: 70px 0 16px;
    }

    .hero-title {
        font-size: 17px;
    }

    .product-grid,
    .category-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .card-body {
        padding: 10px;
    }

    .card-name {
        font-size: 12px;
    }

    .card-price {
        font-size: 13px;
    }

    .card-image {
        height: 80px;
    }

    .chip {
        padding: 8px 12px;
        font-size: 12px;
    }

    .section-title {
        font-size: 16px;
    }

    .promo-title {
        font-size: 18px;
    }

    .promo-btn {
        font-size: 12px;
        padding: 8px 16px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-card {
        margin: 10px;
        max-height: 90vh;
    }

    .cat-features li {
        font-size: 11px;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}