/* :::: POP MART CLEAN & COMPACT THEME :::: */
:root {
    --bg-main: #ffffff;
    --bg-secondary: #f6f6f6;
    --text-main: #111111;
    --text-muted: #666666;
    --accent-color: #FFCC00;
    /* Pop Mart Yellow */
    --border-color: #ebebeb;
    --font-main: 'Outfit', sans-serif;
    --container-width: 1100px;
    /* Nhỏ hơn, gọn hơn */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    color: var(--text-main);
}

.logo-dot {
    display: none;
}

/* Bỏ dấu chấm để trông clean hơn */

.nav-menu ul.nav-icons-group {
    display: flex;
    gap: 24px;
    align-items: center;
}

/* SMALL DROPDOWN */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 60px;
}

.dropdown-menu {
    position: absolute;
    top: 50px;
    left: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 100;
    border-radius: 8px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    font-size: 13px;
    color: var(--text-main);
    padding: 10px 20px;
    display: block;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.icon-btn {
    font-size: 18px;
    color: var(--text-main);
    transition: color 0.2s;
}

.icon-btn:hover {
    color: var(--text-muted);
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--accent-color);
    color: #000;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: bold;
}

/* HERO SECTION */
.hero {
    padding: 40px 0;
    background: var(--bg-secondary);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.subtitle {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: block;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-title i {
    font-style: normal;
    color: var(--accent-color);
}

.hero-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 400px;
}

.hero-btns {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--text-main);
    color: #fff;
}

.btn-primary:hover {
    background: #333;
}

.btn-glass {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-glass:hover {
    border-color: #ccc;
}

.main-showcase {
    text-align: center;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
    animation: none;
    transform: none;
}

.main-showcase img {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    margin: 0 auto;
    mix-blend-mode: multiply;
}

.floating-badge {
    display: none;
}

/* Bỏ badge nổi */

/* CATEGORIES - COMPACT GRID */
.category-section {
    padding: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--text-main);
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-main);
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.view-more {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-more:hover {
    text-decoration: underline;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.premium-card {
    cursor: pointer;
    transition: transform 0.2s;
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
}

.premium-card:hover {
    transform: translateY(-5px);
    background: none;
    border: none;
}

.card-image-wrapper {
    background: var(--bg-secondary);
    border-radius: 8px;
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    margin-bottom: 12px;
}

.card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    transition: transform 0.4s;
    mix-blend-mode: multiply;
}

.premium-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    z-index: 2;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-badge.hot {
    background: var(--text-main);
    color: #fff;
}

.card-badge.luxury {
    background: var(--accent-color);
    color: #000;
}

.card-actions {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 2;
}

.premium-card:hover .card-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: grid;
    place-items: center;
    color: var(--text-main);
    font-size: 13px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--text-main);
    color: #fff;
}

.card-info {
    padding: 0 4px;
    text-align: left;
}

.product-collection {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-main);
    color: var(--text-main);
}

/* COMPACT BANNER */
.banner-section {
    padding: 20px 0;
}

.premium-banner {
    background: var(--bg-secondary);
    padding: 40px;
    text-align: center;
    border-radius: 12px;
}

.banner-content h2 {
    font-family: var(--font-main);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.banner-content p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* COMPACT FOOTER */
.footer {
    background: var(--bg-secondary);
    padding: 50px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 12px 0;
    max-width: 280px;
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-icons a {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-size: 13px;
}

.social-icons a:hover {
    background: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
}

.footer-links-col h4,
.footer-newsletter h4 {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.footer-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-col a {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links-col a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.footer-newsletter p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    font-size: 13px;
    outline: none;
}

.newsletter-form button {
    padding: 0 16px;
    background: var(--text-main);
    color: #fff;
    font-size: 12px;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* CLEAN ZALO ICON */
.floating-zalo {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background-color: #0068FF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.4);
    z-index: 990;
    transition: transform 0.2s;
    overflow: hidden;
    /* Cắt img thành hình tròn */
}

.floating-zalo img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    z-index: 2;
    transform: scale(1.1);
    /* Phóng nhẹ lên để mất mép bo góc của icon gốc */
}

.floating-zalo:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 104, 255, 0.6);
}

.zalo-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #0068FF;
    z-index: 1;
    animation: zaloPulse 1.5s infinite ease-out;
}

@keyframes zaloPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* TOOLTIP - Light */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--text-main);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    pointer-events: none;
    z-index: 100;
}

.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* MOBILE BOTTOM NAV (Desktop hidden) */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {

    /* Hide top nav items to show logo only */
    .nav-icons-group {
        display: none !important;
    }

    .nav-actions {
        display: none !important;
    }

    /* Bottom Nav Bar */
    body {
        padding-bottom: 70px;
    }

    /* Give space for bottom nav */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: var(--text-muted);
        font-size: 10px;
        width: 20%;
        padding: 4px 0;
        font-weight: 500;
    }

    .mobile-nav-item.active {
        color: var(--text-main);
    }

    .mobile-nav-item i {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .cart-icon-wrapper {
        position: relative;
    }

    .cart-badge-mobile {
        position: absolute;
        top: -6px;
        right: -8px;
        background: var(--accent-color);
        color: #000;
        font-size: 9px;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        font-weight: bold;
    }

    /* Adjust Zalo above mobile nav */
    .floating-zalo {
        bottom: 85px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        margin: 0 auto 24px;
    }

    .hero-btns {
        justify-content: center;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}