/* =====================================================
   MiATech Web Store - Main Stylesheet
   Theme: Red-Orange (Cam Đỏ) - Xoanstore Style
   ===================================================== */

/* ===== CSS Variables ===== */
:root {
    /* Primary Colors */
    --primary: #EE4D2D;
    --primary-dark: #D73211;
    --primary-light: #FF7337;
    --primary-gradient: linear-gradient(135deg, #EE4D2D 0%, #FF7337 100%);
    --primary-glow: 0 4px 24px rgba(238, 77, 45, 0.4);

    /* Secondary */
    --secondary: #EE4D2D;
    --secondary-light: #D73211;

    /* Accent */
    --accent-yellow: #FFDF00;
    --accent-green: #26AA99;
    --accent-blue: #3498DB;
    --accent-red: #D0011B;

    /* Neutral */
    --bg-body: #F0F2F5;
    --bg-card: #FFFFFF;
    --bg-hover: #FFF5F2;
    --text-primary: #1A1A2E;
    --text-secondary: #5A5A7A;
    --text-muted: #9A9AB0;
    --text-white: #FFFFFF;
    --border-color: #E8E8EF;
    --border-light: #F0F0F5;

    /* Sizes */
    --header-height: 72px;
    --nav-height: 48px;
    --container-width: 1280px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 12px 36px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s var(--ease);
    --transition-normal: 0.3s var(--ease);
    --transition-slow: 0.5s var(--ease);

    /* Font */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Product Detail Specific */
    --select-box-bg: #FFFFFF;
    --select-box-border: #D1D1D1;
    --select-box-active: #EE4D2D;
    --price-bg: #FFF5F2;
    --price-text: #EE4D2D;
    --promo-bg: #FFF8E1;
    --promo-border: #FFD54F;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 16px;
}

.mt-4 {
    margin-top: 24px;
}

.mt-5 {
    margin-top: 40px;
}

/* ===== ANNOUNCEMENT BAR ===== */
.xoan-announcement-bar {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.85);
    font-size: 12.5px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.announcement-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcement-left i {
    color: var(--accent-yellow);
    font-size: 12px;
}

.announcement-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcement-right a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color var(--transition-fast);
}

.announcement-right a:hover {
    color: var(--primary-light);
}

.announcement-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
}

/* ===== TOP BAR (legacy support) ===== */
.top-bar,
.xoan-top-nav {
    background: var(--secondary);
    color: var(--text-white);
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.xoan-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xoan-top-nav-left,
.xoan-top-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.xoan-top-nav-right a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    font-size: 12px;
}

.xoan-top-nav-right a:hover {
    color: var(--primary-light);
}

/* ===== MAIN HEADER ===== */
.xoan-header {
    background: var(--primary-gradient);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0 0 50% 50% / 0 0 35px 35px;
    padding-bottom: 5px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.xoan-header.header-hidden {
    transform: translateY(-100%);
}

.xoan-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    height: 80px;
}

/* Logo */
.xoan-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-icon-wrap {
    width: 48px;
    height: 48px;
    background: transparent;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 22px;
    transition: transform var(--transition-normal);
}

.xoan-logo:hover .logo-icon-wrap {
    transform: rotate(-5deg) scale(1.05);
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
}

.logo-slogan {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Search */
.xoan-search {
    flex: 1;
    max-width: 550px;
    position: relative;
}

.xoan-search-form {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 4px;
    padding: 2px 4px 2px 16px;
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow var(--transition-fast);
}

.xoan-search-form:focus-within {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.search-icon-left {
    color: var(--text-muted);
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
}

.xoan-search-form input {
    flex: 1;
    height: 42px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
    background: transparent;
}

.xoan-search-form input::placeholder {
    color: var(--text-muted);
    font-size: 13px;
}

.xoan-search-form button {
    height: 38px;
    padding: 0 22px;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.xoan-search-form button:hover {
    background: var(--primary-dark);
    box-shadow: var(--primary-glow);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-suggestions.active {
    display: block;
    animation: fadeInDown 0.2s var(--ease);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    transition: background var(--transition-fast);
    cursor: pointer;
}

.suggestion-item:hover {
    background: var(--bg-hover);
}

.suggestion-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.suggestion-info {
    flex: 1;
}

.suggestion-name {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-primary);
}

.suggestion-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

/* Header Actions */
.xoan-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.xoan-action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.xoan-action-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.xoan-action-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #FFFFFF;
    position: relative;
    transition: all var(--transition-fast);
}

.xoan-action-item:hover .xoan-action-icon {
    background: #FFFFFF;
    color: var(--primary);
}

.xoan-action-text {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

.xoan-action-text span {
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.xoan-action-text strong {
    font-size: 14px;
    white-space: nowrap;
    color: #FFFFFF;
}

/* Cart Badge */
.xoan-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #FFFFFF;
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
    animation: badgePop 0.3s var(--ease);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
    animation: badgePop 0.3s var(--ease);
}

/* Hotline pulse */
.pulse-ring {
    position: relative;
}

.pulse-ring::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid var(--primary);
    animation: pulseRing 2s infinite;
    opacity: 0;
    border-radius: 50%;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Hotline special style */
.hotline-action .xoan-action-icon {
    background: rgba(255, 255, 255, 0.2);
    animation: phoneRing 2s ease-in-out infinite;
}

@keyframes phoneRing {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-10deg);
    }

    30% {
        transform: rotate(10deg);
    }

    40% {
        transform: rotate(0deg);
    }
}

/* ===== MAIN NAVIGATION ===== */
.xoan-category-menu {
    padding: 12px 0 4px 0;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.xoan-category-menu::-webkit-scrollbar {
    display: none;
}

.xoan-category-menu .nav-list {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0 16px;
    margin: 0 auto;
    max-width: var(--container-width);
}

.xoan-category-menu .nav-item {
    font-weight: 500;
    font-size: 14px;
    color: #FFFFFF;
    position: relative;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    /* Divider */
}

/* First item rounds left edge */
.xoan-category-menu .nav-item:first-child {
    border-radius: 20px 0 0 20px;
}

/* Last item rounds right edge and removes divider */
.xoan-category-menu .nav-item:last-child {
    border-radius: 0 20px 20px 0;
    border-right: none;
}

.xoan-category-menu .nav-item:hover {
    background: rgba(255, 255, 255, 0.25);
}

.xoan-category-menu .nav-item.nav-home {
    background: #FFFFFF;
    color: #E8420B;
    text-shadow: none;
    font-weight: 700;
    /* Active item floats like a sliding pill */
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* If active item happens to be first/last, fix border-radius */
.xoan-category-menu .nav-item.nav-home:first-child {
    border-radius: 20px 20px 20px 20px;
}

.xoan-category-menu .nav-item.nav-home i {
    color: #E8420B;
}

.xoan-category-menu .nav-item i {
    font-size: 15px;
    opacity: 0.9;
}

.floating-badge {
    position: absolute;
    top: -8px;
    right: -4px;
    z-index: 20;
    color: white;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.badge-hot {
    background: #E8420B;
    animation: pulse 2s infinite;
}

.badge-promo {
    background: var(--accent-blue);
}

.badge-new {
    background: var(--accent-green);
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 0;
    padding-top: 10px;
    margin-top: -10px;
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.nav-item {
    flex-shrink: 0;
}

/* ===== QUICK SELECT STRIP ===== */
.quick-select-strip {
    padding: 12px 0 0;
}

.quick-select-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0;
}

.quick-select-scroll::-webkit-scrollbar {
    display: none;
}

.qs-capsule {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.qs-capsule:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.qs-capsule i {
    font-size: 14px;
}

.qs-sale {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.qs-sale:hover {
    background: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

.qs-hot {
    background: #FF3D3D;
    color: white;
    border-color: #FF3D3D;
}

.qs-hot:hover {
    background: #E02020;
    color: white;
    border-color: #E02020;
}

.qs-budget {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
}

.qs-budget:hover {
    background: #1E8449;
    color: white;
    border-color: #1E8449;
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    font-size: 14px;
    animation: fadeInDown 0.3s var(--ease);
}

.alert-success {
    background: #E8F9EE;
    color: #1A7A3A;
    border-left: 4px solid var(--accent-green);
}

.alert-error {
    background: #FDEAEA;
    color: #B91C1C;
    border-left: 4px solid var(--accent-red);
}

.alert-info {
    background: #EBF5FF;
    color: #1E5A9E;
    border-left: 4px solid var(--accent-blue);
}

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.alert-close:hover {
    opacity: 1;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: 60vh;
}

/* ===== HERO BANNER / SLIDER ===== */
.hero-section {
    padding: 16px 0 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 12px;
    height: 420px;
}

.hero-slider {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.hero-slider .swiper-slide {
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 100%;
}

.hero-slide-content {
    padding: 48px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--primary-gradient);
}

.hero-slide-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-slide-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.hero-slide-content .btn {
    display: inline-flex;
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: white;
    width: 28px;
    border-radius: 5px;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px;
    font-weight: 700;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary);
}

/* Hero Sidebar Banners (Xoanstore Style) */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 8px;
}

.hero-sidebar-banner {
    flex: 1;
    min-height: 0;
    min-width: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: block;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.hero-sidebar-banner:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.hero-sidebar-banner img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.sidebar-banner-content {
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.sidebar-banner-content h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.sidebar-banner-content p {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 500;
}

/* ===== TRUST STRIP ===== */
.trust-strip {
    padding: 24px 0;
    margin-top: 16px;
}

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

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.trust-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.trust-icon {
    width: 48px;
    height: 48px;
    background: rgba(232, 66, 11, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-text strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1px;
}

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

/* ===== FLASH SALE SECTION ===== */
.flash-sale-section {
    padding: 8px 0 24px;
}

.flash-sale-block {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.flash-sale-header {
    background: transparent;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.flash-sale-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px);
}

.flash-sale-title {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.flash-badge {
    background: #FFD93D;
    color: #B8860B;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

.flash-text {
    color: white;
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.flash-fire {
    font-size: 28px;
    animation: fireFlicker 0.5s ease-in-out infinite alternate;
}

@keyframes fireFlicker {
    0% {
        transform: scale(1) rotate(-5deg);
    }

    100% {
        transform: scale(1.15) rotate(5deg);
    }
}

.flash-sale-countdown {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.countdown-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.countdown-boxes {
    display: flex;
    align-items: center;
    gap: 4px;
}

.countdown-box {
    background: rgba(0, 0, 0, 0.35);
    color: white;
    font-size: 20px;
    font-weight: 800;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.countdown-sep {
    color: white;
    font-size: 20px;
    font-weight: 800;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.flash-sale-viewall {
    color: white;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.flash-sale-viewall:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.flash-sale-products {
    padding: 20px;
    position: relative;
}

.flash-swiper {
    padding: 0 4px;
}

.flash-swiper .swiper-slide {
    width: 220px;
}

.flash-next,
.flash-prev {
    color: var(--primary) !important;
    background: white !important;
    box-shadow: var(--shadow-md) !important;
    width: 36px !important;
    height: 36px !important;
}

.flash-next::after,
.flash-prev::after {
    font-size: 14px !important;
}

/* ===== BRAND PRODUCT SECTIONS ===== */
.brand-product-section {
    padding: 16px 0;
}

.section-block {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.block-header {
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.block-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.block-brand-icon {
    font-size: 22px;
    opacity: 0.9;
}

.block-title {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.block-header.default-header {
    background: linear-gradient(135deg, #333, #555);
}

.block-title-dark {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    margin: 0;
}

.block-actions {
    display: flex;
    align-items: center;
}

.btn-view-all,
.btn-view-all-dark {
    color: white;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.btn-view-all:hover,
.btn-view-all-dark:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

/* Xoan Product Grid */
.xoan-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--border-light);
    padding: 0;
}

/* ===== XOAN PRODUCT CARD (Matching Xoanstore) ===== */
.xoan-product-card {
    background: white;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.xoan-product-card:hover {
    box-shadow: var(--shadow-lg);
    z-index: 2;
    transform: translateY(-4px);
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #FAFAFA;
    display: block;
}

.product-image-wrapper .main-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform var(--transition-slow);
}

.xoan-product-card:hover .main-img {
    transform: translate(-50%, -50%) scale(1.08);
}

.savings-label {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--accent-red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    z-index: 2;
}

.status-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent-green);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-label.out-of-stock {
    background: #888 !important;
}

.product-info-wrapper {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title-link {
    display: block;
    margin-bottom: 10px;
}

.product-name-xoan {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
    transition: color var(--transition-fast);
}

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

.product-bottom-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
}

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

.price-current {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

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

.add-to-cart-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.8);
}

.xoan-product-card:hover .add-to-cart-circle {
    opacity: 1;
    transform: scale(1);
}

.add-to-cart-circle:hover {
    background: var(--primary-dark);
    box-shadow: var(--primary-glow);
    transform: scale(1.1) !important;
}

/* ===== WHY CHOOSE SECTION (Orange Theme) ===== */
.why-choose-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #E8420B 0%, #ff6b35 40%, #ff8c42 100%);
    position: relative;
    overflow: hidden;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.why-choose-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.why-choose-header {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.why-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
}

.why-choose-header h2 {
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.why-choose-header .highlight {
    background: linear-gradient(135deg, #fff, #ffe0cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.why-choose-header p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.why-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.why-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.why-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 16px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.15);
}

.why-card:hover .why-card-icon {
    transform: scale(1.1) rotate(-5deg);
    background: rgba(255,255,255,0.3);
}

.why-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.why-card p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.why-card-number {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 36px;
    font-weight: 900;
    color: rgba(255,255,255,0.08);
    line-height: 1;
    pointer-events: none;
}

.why-card:hover .why-card-number {
    color: rgba(255,255,255,0.15);
}

/* ===== FEATURE STRIP (Legacy) ===== */
.feature-strip {
    padding: 24px 0;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-icon.icon-shipping {
    background: rgba(39, 174, 96, 0.1);
    color: var(--accent-green);
}

.feature-icon.icon-warranty {
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent-blue);
}

.feature-icon.icon-price {
    background: rgba(232, 66, 11, 0.1);
    color: var(--primary);
}

.feature-icon.icon-support {
    background: rgba(255, 217, 61, 0.15);
    color: #E6A800;
}

.feature-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

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

/* ===== SECTION HEADERS ===== */
.section {
    padding: 32px 0;
}

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

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--primary-gradient);
    border-radius: 4px;
}

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

.section-title .badge-hot {
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--primary);
    transition: all var(--transition-fast);
}

.view-all-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--primary-glow);
    transform: translateX(4px);
}

/* ===== CATEGORY GRID ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-hover);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.category-card:hover .category-icon {
    background: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
}

/* ===== PRODUCT GRID & CARDS ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

/* Product Image */
.product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #FAFAFA;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform var(--transition-slow);
}

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

/* Product Badges */
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.badge {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.badge-sale {
    background: var(--accent-red);
}

/* Quick Action Buttons */
.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-normal);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn-mini {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.action-btn-mini:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--primary-glow);
    transform: scale(1.1);
}

/* Product Info */
.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-brand {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
    min-height: 39px;
}

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

/* Variant pills */
.product-variants-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.variant-pill {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--bg-body);
    color: var(--text-secondary);
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Price */
.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.price-sale {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
}

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

.price-discount {
    font-size: 11px;
    font-weight: 700;
    color: white;
    background: var(--accent-red);
    padding: 1px 6px;
    border-radius: var(--radius-sm);
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.stars {
    display: flex;
    gap: 1px;
    color: var(--accent-yellow);
    font-size: 12px;
}

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

/* Stock indicator */
.stock-info {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stock-info.in-stock {
    color: var(--accent-green);
}

.stock-info.out-of-stock {
    color: var(--accent-red);
}

/* Add to cart */
.product-add-cart {
    width: 100%;
    padding: 10px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
    opacity: 0;
    transform: translateY(10px);
}

.product-card:hover .product-add-cart {
    opacity: 1;
    transform: translateY(0);
}

.product-add-cart:hover {
    background: var(--primary-dark);
    box-shadow: var(--primary-glow);
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail-section {
    padding: 20px 0;
    background: #fff;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.breadcrumb .separator {
    color: var(--border-color);
    font-size: 10px;
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

    .hero-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hero-sidebar {
        display: none;
    }
}

.detail-main-image {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.detail-main-image img {
    max-height: 500px;
    object-fit: contain;
    transition: transform var(--transition-slow);
}

.detail-main-image:hover img {
    transform: scale(1.1);
}

.detail-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--text-primary);
}

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

.detail-price-box {
    background: var(--bg-hover);
    border: 2px solid rgba(232, 66, 11, 0.15);
    border-radius: var(--radius-md);
    padding: 20px;
}

.detail-price-box .price-sale {
    font-size: 28px;
}

.detail-price-box .price-original {
    font-size: 18px;
}

/* Price container */
.price-container {
    background: var(--price-bg);
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.price-main {
    font-size: 32px;
    font-weight: 800;
    color: var(--price-text);
}

/* Variant Selection */
.variant-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.variant-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-option {
    padding: 8px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-card);
}

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

.variant-option.active {
    border-color: var(--primary);
    background: var(--bg-hover);
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 66, 11, 0.1);
}

.variant-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Variant Groups */
.variant-group {
    margin-bottom: 25px;
}

.variant-group-title {
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    font-size: 15px;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-item {
    border: 1px solid var(--select-box-border);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    background: #fff;
    min-width: 80px;
    text-align: center;
}

.chip-item:hover {
    border-color: var(--primary);
}

.chip-item.active {
    border-color: var(--primary);
    background: var(--bg-hover);
    color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.chip-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-secondary);
    background: var(--bg-body);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.qty-input {
    width: 56px;
    height: 40px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-left: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
}

/* Detail Action Buttons */
.detail-actions {
    display: flex;
    gap: 12px;
}

/* Action Buttons */
.buy-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 30px;
}

.btn-buy-now {
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 800;
    padding: 14px;
    border-radius: 8px;
    font-size: 18px;
    text-transform: uppercase;
}

.btn-installment {
    background: var(--accent-blue);
    color: #fff;
    font-weight: 800;
    padding: 14px;
    border-radius: 8px;
    font-size: 18px;
    text-transform: uppercase;
}

.promo-box {
    background: var(--promo-bg);
    border: 1px dashed var(--promo-border);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.promo-title {
    font-weight: 800;
    color: #D48806;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(232, 66, 11, 0.3);
}

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

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

.btn-secondary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--primary-glow);
}

.btn-zalo {
    background: linear-gradient(135deg, #0068FF 0%, #0099FF 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.3);
}

.btn-zalo:hover {
    box-shadow: 0 8px 24px rgba(0, 104, 255, 0.4);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 14px 36px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

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

/* ===== CART PAGE ===== */
.cart-section {
    padding: 24px 0 48px;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

.cart-items-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.cart-table-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 40px;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 40px;
    gap: 16px;
    padding: 16px 20px;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}

.cart-item:hover {
    background: var(--bg-hover);
}

.cart-item-product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-item-product img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: #FAFAFA;
    padding: 4px;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.cart-item-variant {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.cart-item-total {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-item-remove {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    background: none;
}

.cart-item-remove:hover {
    background: #FDEAEA;
    color: var(--accent-red);
}

/* Cart Summary */
.cart-summary {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 24px;
    position: sticky;
    top: 140px;
}

.cart-summary-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.summary-row .label {
    color: var(--text-secondary);
}

.summary-row .value {
    font-weight: 600;
}

.summary-total {
    border-top: 2px solid var(--border-color);
    margin-top: 12px;
    padding-top: 16px;
}

.summary-total .label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-total .value {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

/* ===== CHECKOUT ===== */
.checkout-section {
    padding: 24px 0 48px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    align-items: start;
}

/* ===== FORMS ===== */
.form-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 32px;
}

.form-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-card-title i {
    color: var(--primary);
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--accent-red);
}

.form-control {
    width: 100%;
    padding: 11px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(232, 66, 11, 0.08);
}

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

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

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

.form-error {
    font-size: 12px;
    color: var(--accent-red);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== AUTH PAGES ===== */
.auth-section {
    padding: 48px 0;
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo .logo-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    font-size: 24px;
}

.auth-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Social Login */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 10px;
}

.social-login-group {
    display: flex;
    gap: 12px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-fast);
    text-decoration: none;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
}

.btn-social img {
    width: 18px;
    height: 18px;
}

.btn-social i {
    font-size: 18px;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-facebook {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.btn-facebook:hover {
    background: #166fe5;
    color: white;
}

/* ===== ACCOUNT PAGE ===== */
.account-section {
    padding: 24px 0 48px;
}

.account-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

.account-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.account-user-card {
    padding: 24px;
    text-align: center;
    background: var(--primary-gradient);
    color: white;
}

.account-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 28px;
}

.account-name {
    font-size: 16px;
    font-weight: 700;
}

.account-email {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
}

.account-menu {
    padding: 8px;
}

.account-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.account-menu-item:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.account-menu-item.active {
    background: var(--bg-hover);
    color: var(--primary);
    font-weight: 600;
}

.account-menu-item i {
    width: 20px;
    text-align: center;
}

.account-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 28px;
}

/* ===== ORDER TABLE ===== */
.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th {
    padding: 12px 16px;
    background: var(--bg-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    white-space: nowrap;
}

.orders-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

.order-code {
    font-weight: 700;
    color: var(--primary);
}

.status-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-pending {
    background: #FFF3CD;
    color: #856404;
}

.status-confirmed {
    background: #D4EDDA;
    color: #155724;
}

.status-processing {
    background: #CCE5FF;
    color: #004085;
}

.status-shipping {
    background: #E8DAEF;
    color: #6C3483;
}

.status-delivered {
    background: #D5F5E3;
    color: #1E8449;
}

.status-cancelled {
    background: #FADBD8;
    color: #922B21;
}

/* ===== SEARCH PAGE ===== */
.search-section {
    padding: 24px 0;
}

.search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.search-keyword {
    font-size: 16px;
    color: var(--text-primary);
}

.search-keyword strong {
    color: var(--primary);
}

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

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.filter-select:focus {
    border-color: var(--primary);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.page-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--primary-glow);
}

.page-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--primary-glow);
}

/* ===== ORDER TRACKING ===== */
.tracking-section {
    padding: 48px 0;
}

.tracking-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    text-align: center;
}

.tracking-card h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.tracking-card p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

.tracking-form {
    display: flex;
    gap: 10px;
}

.tracking-form .form-control {
    flex: 1;
}

.order-timeline {
    margin-top: 32px;
    text-align: left;
}

.timeline-item {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 15px;
    width: 2px;
    height: calc(100% - 24px);
    background: var(--border-color);
}

.timeline-item.active::before {
    background: var(--primary);
}

.timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    background: var(--bg-body);
    color: var(--text-muted);
    border: 2px solid var(--border-color);
}

.timeline-item.active .timeline-dot {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--primary-glow);
}

.timeline-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.timeline-content p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ===== STATIC PAGE ===== */
.static-page-section {
    padding: 24px 0 48px;
}

.page-content-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 40px;
}

.page-content-card h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.page-content-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.page-content-card p {
    margin-bottom: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.page-content-card ul,
.page-content-card ol {
    margin: 12px 0;
    padding-left: 24px;
}

.page-content-card li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: var(--text-secondary);
    list-style: disc;
}

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

.empty-state-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: rgba(255, 255, 255, 0.85);
    margin-top: 48px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E8420B, #FF6B35, #FFDF00, #FF6B35, #E8420B);
}

.footer-top {
    padding: 48px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.footer-logo .logo-name {
    font-size: 22px;
    font-weight: 800;
    color: white;
}

.footer-desc {
    font-size: 13.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 20px;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(232, 66, 11, 0.4);
}

.footer-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: linear-gradient(90deg, #E8420B, #FF6B35);
    border-radius: 3px;
}

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

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.65);
    transition: all 0.25s ease;
    padding: 5px 0;
}

.footer-links a:hover {
    color: #FF6B35;
    transform: translateX(6px);
}

.footer-links a i {
    font-size: 10px;
    transition: transform 0.25s ease;
    color: rgba(255, 255, 255, 0.35);
}

.footer-links a:hover i {
    transform: translateX(4px);
    color: #FF6B35;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
    color: #FF6B35;
    margin-top: 3px;
    width: 16px;
    flex-shrink: 0;
    font-size: 14px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.25s ease;
}

.footer-contact a:hover {
    color: #FF6B35;
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.15);
}

.footer-bottom strong {
    color: #FF6B35;
}

/* ===== FLOATING BUTTONS ===== */
.floating-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-fast);
    position: relative;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-label {
    position: absolute;
    right: calc(100% + 10px);
    background: var(--secondary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.float-btn:hover .float-label {
    opacity: 1;
}

.messenger-btn {
    background: linear-gradient(135deg, #00B2FF, #006AFF);
    animation: float 3s ease-in-out infinite;
}

.zalo-btn {
    background: linear-gradient(135deg, #0068FF, #0099FF);
    animation: float 3s ease-in-out infinite 0.25s;
}

.phone-btn {
    background: var(--accent-green);
    animation: float 3s ease-in-out infinite 0.5s;
}

.scroll-top-btn {
    background: var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    box-shadow: var(--primary-glow);
}

/* Mobile overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes badgePop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float {

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

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

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Animate on scroll - start visible, add subtle entrance */
.animate-fadeup {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s var(--ease);
}

.animate-fadeup.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hero-sidebar {
        flex-direction: row;
    }

    .hero-sidebar-banner {
        height: 160px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .cart-container {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

    .xoan-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --nav-height: 44px;
    }

    .xoan-announcement-bar {
        display: none;
    }

    .top-bar {
        display: none;
    }

    .logo-text-group .logo-slogan {
        display: none;
    }

    .xoan-search-form button {
        padding: 0 14px;
        font-size: 0;
    }

    .xoan-search-form button::before {
        content: '\f002';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 14px;
    }

    .xoan-action-text {
        display: none;
    }

    .xoan-main-header {
        gap: 12px;
        height: 65px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .xoan-category-menu .nav-list {
        justify-content: flex-start;
        gap: 0;
        padding: 10px 0 6px 0;
        margin-top: -10px;
    }

    .xoan-category-menu .nav-item {
        padding: 6px 10px;
        font-size: 11px;
    }

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

    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .flash-sale-header {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 10px;
    }

    .flash-text {
        font-size: 18px;
    }

    .countdown-box {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .flash-sale-viewall {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

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

    .product-info {
        padding: 10px;
    }

    .price-sale {
        font-size: 15px;
    }

    .product-name {
        font-size: 13px;
    }

    .section-title {
        font-size: 18px;
    }

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

    .hero-sidebar {
        display: none;
    }

    .hero-grid {
        height: 240px;
    }

    .cart-table-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cart-item-product {
        flex-direction: row;
    }

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

    .tracking-form {
        flex-direction: column;
    }

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

    .why-choose-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .why-item {
        padding: 20px 16px;
    }

    .why-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

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

    .product-image {
        padding-top: 100%;
    }

    .product-info {
        padding: 8px;
        gap: 4px;
    }

    .price-sale {
        font-size: 14px;
    }

    .product-name {
        font-size: 12px;
        min-height: auto;
        -webkit-line-clamp: 1;
    }

    .product-brand {
        font-size: 10px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

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

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

    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 24px 20px;
        border-radius: var(--radius-lg);
    }

    .flash-sale-title {
        gap: 6px;
    }

    .flash-badge {
        font-size: 11px;
        padding: 3px 10px;
    }

    .flash-text {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .flash-fire {
        font-size: 20px;
    }
}

/* ===== LOADING SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-image {
    width: 100%;
    padding-top: 100%;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-price {
    height: 20px;
    width: 40%;
}

/* ===== XOAN PRODUCT SECTION (Legacy from old xoan style) ===== */
.xoan-product-section {
    padding: 16px 0;
}

/* =====================================================
   XOAN PRODUCT DETAIL PAGE - Xoanstore.vn Style
   ===================================================== */

.xoan-detail-section {
    padding: 16px 0 40px;
    background: #fff;
}

/* Top bar */
.detail-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.detail-top-left,
.detail-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.detail-action-link {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast);
}

.detail-action-link:hover {
    color: var(--primary);
}

/* Main Grid: Image Left, Info Right */
.xoan-detail-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 30px;
    align-items: start;
}

/* Gallery */
.xoan-gallery {
    position: sticky;
    top: 130px;
}

.xoan-main-image {
    background: #FAFAFA;
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    border: 1px solid var(--border-light);
    transition: border-color var(--transition-fast);
    cursor: zoom-in;
}

.xoan-main-image:hover {
    border-color: var(--primary-light);
}

.xoan-main-image img {
    max-height: 360px;
    object-fit: contain;
    transition: transform var(--transition-slow), opacity 0.2s ease;
}

.xoan-main-image:hover img {
    transform: scale(1.08);
}

/* Thumbnails */
.xoan-thumb-strip {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
}

.xoan-thumb-strip::-webkit-scrollbar {
    display: none;
}

.xoan-thumb {
    width: 72px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    padding: 4px;
    background: #f8f8f8;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.xoan-thumb.active,
.xoan-thumb:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 2px 8px rgba(232, 66, 11, 0.15);
    background: #fff;
}

.xoan-thumb img {
    width: 100%;
    height: 52px;
    object-fit: contain;
}

.thumb-color-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
    padding: 0 2px;
}

.xoan-thumb.active .thumb-color-label {
    color: var(--primary);
    font-weight: 700;
}

/* Desc Card below image */
.xoan-desc-card {
    margin-top: 20px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
}

.xoan-desc-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.xoan-desc-card h3 i {
    color: var(--primary);
}

.xoan-desc-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Condition Table */
.xoan-condition-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px;
}

.xoan-condition-table th {
    background: #f0f2f5;
    padding: 10px 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
    border: 1px solid var(--border-color);
}

.xoan-condition-table td {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.xoan-condition-table .cond-price {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

/* Right Info Column */
.xoan-detail-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.xoan-product-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 10px;
}

/* Detail Countdown */
.xoan-detail-countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFF3CD;
    border: 1px solid #FFE69C;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
}

.countdown-label-text {
    font-size: 12px;
    font-weight: 600;
    color: #856404;
}

.detail-countdown-boxes {
    display: flex;
    align-items: center;
    gap: 3px;
}

.dc-box {
    background: #E8420B;
    color: white;
    font-size: 14px;
    font-weight: 800;
    width: 30px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.dc-sep {
    color: #E8420B;
    font-weight: 800;
    font-size: 14px;
    animation: blink 1s infinite;
}

/* Variant Groups */
.xoan-variant-group {
    margin-bottom: 12px;
}

.xoan-variant-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin-bottom: 6px;
}

.xoan-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.xoan-chip {
    border: none;
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f0f2f5;
    color: var(--text-primary);
    min-width: 70px;
    text-align: center;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.xoan-chip:hover {
    background: #e8eaed;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.xoan-chip.active {
    background: linear-gradient(135deg, #E8420B, #FF6B35);
    color: #fff;
    box-shadow: 0 4px 14px rgba(232, 66, 11, 0.35);
    transform: translateY(-1px);
}

.xoan-chip.active::after {
    display: none;
}

.xoan-chip.chip-outline {
    background: #f0f2f5;
}

.xoan-chip.chip-outline.active {
    background: linear-gradient(135deg, #E8420B, #FF6B35);
    color: #fff;
}

.xoan-chip.chip-color {
    position: relative;
}

/* ─── Color Chips with Mini Images (Bubble Style) ─── */
.xoan-chip.chip-color-img {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 6px;
    min-width: auto;
    text-align: left;
}

.xoan-chip.chip-color-img .chip-thumb {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    border: 2px solid rgba(0, 0, 0, 0.06);
}

.xoan-chip.chip-color-img.active .chip-thumb {
    border-color: rgba(255, 255, 255, 0.5);
}

.xoan-chip.chip-color-img .chip-color-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.xoan-chip.chip-color-img.active .chip-color-name {
    color: #fff;
    font-weight: 700;
}

/* ─── Appearance Chips (Hình thức / NGOẠI HÌNH) ─── */
.xoan-chip.chip-appearance {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 12px;
    min-width: auto;
}

.xoan-chip.chip-appearance .appear-grade {
    font-weight: 800;
    font-size: 13px;
    color: var(--text-primary);
}

.xoan-chip.chip-appearance.active .appear-grade {
    color: #fff;
}

.xoan-chip.chip-appearance .appear-desc {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.xoan-chip.chip-appearance.active .appear-desc {
    color: rgba(255, 255, 255, 0.85);
}

/* ─── Condition Chips ─── */
.xoan-chip.chip-condition {
    font-size: 12px;
    padding: 7px 16px;
}
/* ─── Out-of-Stock Chips ─── */
.xoan-chip.chip-oos {
    opacity: 0.55;
    background: #f5f5f5 !important;
    color: #999 !important;
    cursor: pointer;
    position: relative;
}
.xoan-chip.chip-oos .chip-color-name,
.xoan-chip.chip-oos .appear-grade,
.xoan-chip.chip-oos .appear-desc {
    color: #999 !important;
}
.xoan-chip.chip-oos.active {
    background: #e0e0e0 !important;
    color: #888 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
}
.xoan-chip.chip-oos.active .chip-color-name,
.xoan-chip.chip-oos.active .appear-grade {
    color: #888 !important;
}
.oos-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    color: #e53935;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
    margin-bottom: 1px;
}
.chip-color-img .oos-label {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e53935;
    color: #fff;
    padding: 2px 5px;
    border-radius: 8px;
    font-size: 8px;
    z-index: 2;
}

/* Price Box */
.xoan-price-box {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background: linear-gradient(135deg, #FFF3E0, #FFECB3);
    border: 2px solid #FFD54F;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 14px 0;
}

.xoan-price-left {
    padding: 14px 18px;
    flex: 1;
}

.xoan-stock-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
}

.xoan-stock-badge.in-stock {
    background: var(--accent-green);
    color: white;
}

.xoan-stock-badge.out-stock {
    background: #888;
    color: white;
}

.xoan-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.xoan-price-main {
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
}

.xoan-price-old {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.xoan-price-right {
    background: var(--primary);
    color: white;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.xoan-tradein-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.xoan-tradein-text {
    font-size: 11px;
    opacity: 0.8;
}

.xoan-tradein-value {
    font-size: 22px;
    font-weight: 900;
}

/* Action Buttons */
.xoan-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.xoan-btn-buy {
    background: linear-gradient(135deg, #E8420B, #FF5722);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.xoan-btn-buy strong {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

.xoan-btn-buy small {
    font-size: 10px;
    opacity: 0.85;
    font-weight: 400;
}

.xoan-btn-buy:hover {
    box-shadow: var(--primary-glow);
    transform: translateY(-2px);
}

.xoan-btn-installment {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.xoan-btn-installment strong {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

.xoan-btn-installment small {
    font-size: 10px;
    opacity: 0.85;
    font-weight: 400;
}

.xoan-btn-installment:hover {
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
}

/* MUA NGAY TRẢ SAU */
.xoan-btn-paylater {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #8BC34A, #4CAF50);
    color: white;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-fast);
    margin-bottom: 8px;
    text-decoration: none;
}

.xoan-btn-paylater strong {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

.xoan-btn-paylater small {
    font-size: 10px;
    opacity: 0.85;
}

.xoan-btn-paylater:hover {
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.35);
    transform: translateY(-2px);
}

/* Row 3: Cart icon + MUA NGAY */
.xoan-actions-row3 {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.xoan-btn-cart-icon {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    background: #fff;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.xoan-btn-cart-icon:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--primary-glow);
}

.xoan-btn-buy-full {
    flex: 1;
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.xoan-btn-buy-full:hover {
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.4);
    transform: translateY(-2px);
}

/* CCCD Button */
.xoan-btn-cccd {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    color: white;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all var(--transition-fast);
    margin-bottom: 12px;
    text-decoration: none;
}

.xoan-btn-cccd:hover {
    box-shadow: 0 4px 20px rgba(156, 39, 176, 0.35);
    transform: translateY(-2px);
}

/* Business Customer Box */
.xoan-business-box {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 10px;
    text-align: center;
}

.xoan-business-box p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.xoan-business-box strong {
    color: var(--primary);
    font-size: 15px;
}

/* Hot Indicator */
.xoan-hot-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--accent-red);
    padding: 10px 14px;
    background: #FFF5F5;
    border: 1px solid #FFCDD2;
    border-radius: var(--radius-md);
    animation: pulse 2s infinite;
}

.xoan-hot-indicator i {
    font-size: 16px;
    animation: fireFlicker 0.5s ease-in-out infinite alternate;
}

/* Promo Strip */
.xoan-promo-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.xoan-promo-col .promo-box {
    height: 100%;
}

.xoan-promo-strip .promo-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xoan-promo-strip .promo-box ul li {
    font-size: 13px;
    color: #555;
    line-height: 1.8;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 991px) {
    .xoan-detail-grid {
        grid-template-columns: 1fr;
    }

    .xoan-gallery {
        position: static;
    }

    .xoan-main-image {
        min-height: 280px;
    }

    .xoan-promo-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .xoan-product-title {
        font-size: 18px;
    }

    .xoan-price-main {
        font-size: 22px;
    }

    .xoan-price-box {
        flex-direction: column;
    }

    .xoan-price-right {
        min-width: auto;
        flex-direction: row;
        gap: 8px;
        padding: 10px;
    }

    .xoan-actions-grid {
        grid-template-columns: 1fr;
    }

    .xoan-btn-buy strong,
    .xoan-btn-installment strong {
        font-size: 14px;
    }

    .detail-top-bar {
        display: none;
    }

    .xoan-desc-card {
        margin-top: 16px;
    }
}

/* =====================================================
   STATIC PAGES & POLICY PAGES
   ===================================================== */

/* Section wrapper */
.static-page-section {
    padding: 24px 0 60px;
}

/* Breadcrumb */
.static-page-section .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 12px 0;
}

.static-page-section .breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.static-page-section .breadcrumb a:hover {
    color: var(--primary);
}

.static-page-section .breadcrumb .separator {
    font-size: 10px;
    color: var(--text-muted);
}

.static-page-section .breadcrumb .current {
    color: var(--text-primary);
    font-weight: 600;
}

/* Page content card */
.page-content-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 0;
    overflow: hidden;
}

.page-content-card>h1 {
    display: none;
    /* Hidden because we use the policy-hero instead */
}

.page-content-card .page-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
}

/* ===== Policy Page Inner Styles ===== */
.policy-page {
    /* Container for all policy content */
}

/* Hero Banner */
.policy-hero {
    background: var(--primary-gradient);
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.policy-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.policy-hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.policy-hero-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.policy-hero h2 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.policy-hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Content Blocks */
.policy-block {
    padding: 32px 40px;
    border-bottom: 1px solid var(--border-light);
}

.policy-block:last-child {
    border-bottom: none;
}

.policy-block>h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-block>h3 i {
    color: var(--primary);
    font-size: 18px;
    width: 32px;
    height: 32px;
    background: rgba(238, 77, 45, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.policy-block>p {
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Policy Tables */
.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.policy-table thead {
    background: var(--primary-gradient);
}

.policy-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.policy-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.policy-table tbody tr:last-child td {
    border-bottom: none;
}

.policy-table tbody tr:nth-child(even) {
    background: #FAFBFC;
}

.policy-table tbody tr:hover {
    background: var(--bg-hover);
}

.policy-table .free-ship {
    color: var(--accent-green);
    font-weight: 700;
}

/* Grid Layouts */
.policy-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.policy-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 16px 0;
}

/* Policy Cards */
.policy-card {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-light);
    transition: all 0.3s var(--ease);
}

.policy-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.policy-card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    margin-bottom: 14px;
}

.policy-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.policy-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.policy-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-card ul li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 5px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.6;
}

.policy-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-weight: bold;
}

.policy-card-success {
    border-color: #d1fae5;
    background: #f0fdf4;
}

.policy-card-success h4 {
    color: #166534;
}

.policy-card-success h4 i {
    color: #22c55e;
}

.policy-card-success ul li::before {
    content: '✓';
    color: #22c55e;
}

.policy-card-danger {
    border-color: #fecaca;
    background: #fef2f2;
}

.policy-card-danger h4 {
    color: #991b1b;
}

.policy-card-danger h4 i {
    color: #ef4444;
}

.policy-card-danger ul li::before {
    content: '✗';
    color: #ef4444;
}

/* Checklists */
.policy-checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-green);
    transition: background var(--transition-fast);
}

.checklist-item:hover {
    background: #f0fdf4;
}

.checklist-item i {
    color: var(--accent-green);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.checklist-item span {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Alerts / Notes */
.policy-alert {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    align-items: flex-start;
}

.policy-alert>i {
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.policy-alert p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.policy-alert p:last-child {
    margin-bottom: 0;
}

.policy-alert ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.policy-alert ul li {
    font-size: 13px;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.6;
}

.policy-alert ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.policy-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.policy-alert-warning>i {
    color: #f59e0b;
}

.policy-alert-warning ul li::before {
    color: #f59e0b;
}

.policy-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.policy-alert-info>i {
    color: #3b82f6;
}

.policy-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #eff6ff;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    font-size: 13px;
    color: #1e40af;
    border-left: 3px solid #3b82f6;
}

.policy-note i {
    color: #3b82f6;
    font-size: 16px;
    flex-shrink: 0;
}

/* Step Indicators */
.policy-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 16px 0;
    position: relative;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 58px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), rgba(238, 77, 45, 0.2));
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(238, 77, 45, 0.25);
}

.step-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

/* Statistics */
.policy-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 16px 0;
}

.stat-item {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s var(--ease);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.stat-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Contact Block */
.policy-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

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

.contact-item i {
    color: var(--primary);
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Store Card */
.store-card {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-light);
    margin: 16px 0;
}

.store-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-card h4 i {
    color: var(--primary);
}

.store-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.store-detail i {
    color: var(--primary);
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* ===== Policy Page Responsive ===== */
@media (max-width: 992px) {
    .policy-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 768px) {
    .policy-hero {
        padding: 32px 20px;
    }

    .policy-hero h2 {
        font-size: 22px;
    }

    .policy-block {
        padding: 24px 20px;
    }

    .policy-block>h3 {
        font-size: 16px;
    }

    .policy-grid-2,
    .policy-grid-3 {
        grid-template-columns: 1fr;
    }

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

    .policy-contact {
        grid-template-columns: 1fr;
    }

    .policy-table {
        font-size: 12px;
    }

    .policy-table th,
    .policy-table td {
        padding: 10px 12px;
    }

    .stat-number {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .policy-hero {
        padding: 24px 16px;
    }

    .policy-block {
        padding: 20px 16px;
    }

    .policy-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .step-item {
        gap: 14px;
    }

    .step-number {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

/* ========================================
   TRENDING SEARCHES SECTION
   ======================================== */
.trending-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.trending-header {
    text-align: center;
    margin-bottom: 28px;
}

.trending-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.trending-header h2 i {
    color: #FF6B35;
    margin-right: 8px;
}

.trending-header p {
    font-size: 14px;
    color: #666;
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.trending-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 50px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.trending-tag i {
    font-size: 13px;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.trending-tag:hover {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

.trending-tag:hover i {
    color: white;
}

.trending-tag.hot {
    background: linear-gradient(135deg, #FF1E56, #FF6B35);
    border-color: transparent;
    color: white;
    animation: pulse-glow 2s infinite;
}

.trending-tag.hot i {
    color: #ffd700;
}

.trending-tag.hot:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 30, 86, 0.4);
}

.tag-hot-badge {
    background: #ffd700;
    color: #1a1a2e;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    animation: badge-bounce 1s ease infinite alternate;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 30, 86, 0.3); }
    50% { box-shadow: 0 0 15px 4px rgba(255, 30, 86, 0.15); }
}

@keyframes badge-bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-2px); }
}

/* ========================================
   TECH NEWS SECTION - XoanStore Style
   ======================================== */
.tech-news-section {
    padding: 50px 0 40px;
    background: white;
}

.tech-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 3px solid #E8420B;
}

.tech-news-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #E8420B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-news-header h2 i {
    margin-right: 8px;
}

.news-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-view-all:hover {
    color: #E8420B;
}

/* Main Layout: Featured Left + Sidebar Right */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Featured Article (Left) */
.news-featured {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.news-featured-img {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    aspect-ratio: 16/10;
}

.news-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.news-featured h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.5;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-featured:hover h3 {
    color: #E8420B;
}

.news-featured-date {
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Sidebar Articles (Right) */
.news-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-sidebar-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.news-sidebar-item:first-child {
    padding-top: 0;
}

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

.news-sidebar-item:hover {
    background: rgba(232, 66, 11, 0.03);
    padding-left: 6px;
    padding-right: 6px;
    border-radius: 8px;
}

.news-sidebar-thumb {
    flex-shrink: 0;
    width: 130px;
    height: 82px;
    border-radius: 8px;
    overflow: hidden;
}

.news-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-sidebar-item:hover .news-sidebar-thumb img {
    transform: scale(1.08);
}

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

.news-sidebar-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.45;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-sidebar-item:hover h4 {
    color: #E8420B;
}

.news-sidebar-date {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .news-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-sidebar-list {
        gap: 0;
    }

    .news-sidebar-thumb {
        width: 110px;
        height: 70px;
    }

    .news-sidebar-info h4 {
        font-size: 13px;
    }

    .tech-news-header h2 {
        font-size: 18px;
    }

    .trending-tags {
        gap: 8px;
    }

    .trending-tag {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ========================================
   ENTRANCE & SCROLL ANIMATIONS
   ======================================== */

/* Section fade-up on scroll */
.animate-fadeup,
.hero-section,
.promo-banners-section,
.flash-sale-section,
.trending-section,
.tech-news-section,
.why-choose-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fadeup.visible,
.hero-section.visible,
.promo-banners-section.visible,
.flash-sale-section.visible,
.trending-section.visible,
.tech-news-section.visible,
.why-choose-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children entrance */
.stagger-in {
    animation: staggerFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes staggerFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Product card reveal */
.xoan-product-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.xoan-product-card.card-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-25px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(25px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

/* ========================================
   PROMO BANNERS GRID
   ======================================== */
.promo-grid {
    display: flex !important;
    gap: 12px;
}

.promo-banner-item {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
}

.promo-banner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.promo-banner-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hide floating elements when printing (for BCT screenshots) */
@media print {
    .floating-buttons, 
    .mobile-bottom-nav,
    .zalo-chat-widget,
    #fb-root { 
        display: none !important; 
    }
}