/* ========================================
   HOME PAGE STYLES - SieuMua247
   ======================================== */

/* Google Fonts - Be Vietnam Pro */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --primary-blue: #1e3a8a;
    --primary-blue-dark: #172554;
    --primary-blue-light: #3b82f6;
    --accent-yellow: #facc15;
    --accent-orange: #f97316;
    --accent-red: #ef4444;
    --bg-light: #f1f5f9;
    --bg-section: #fff;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Font */
    --font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Global Font Override */
body, 
html,
.header,
.footer,
.nav-menu,
input,
button,
select,
textarea {
    font-family: var(--font-family) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family) !important;
    font-weight: 600;
}

p, span, a, li {
    font-family: var(--font-family) !important;
}

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
    background: var(--primary-blue-dark);
    padding: 10px 0;
    font-size: 13px;
    color: #fff;
}

.top-bar a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    margin-right: 25px;
    font-weight: 400;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--accent-yellow);
}

.top-bar i {
    margin-right: 6px;
    opacity: 0.8;
}

/* ========================================
   HEADER MAIN (OLD - HIDDEN)
   ======================================== */
.header-new .header-main {
    display: none !important;
}

/* ========================================
   NAVIGATION MENU
   ======================================== */
.nav-menu {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    padding: 0;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-menu ul li {
    position: relative;
}

.nav-menu ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.3s;
    letter-spacing: 0.2px;
}

.nav-menu ul li a:hover,
.nav-menu ul li.active a {
    background: rgba(255,255,255,0.15);
}

.nav-menu ul li a i {
    font-size: 14px;
    opacity: 0.9;
}

/* Dropdown */
.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
}

.nav-menu li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown-menu a {
    color: var(--text-dark);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}

.nav-menu .dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

/* ========================================
   BANNER SECTION
   ======================================== */
.banner-section {
    padding: 15px 0 20px;
    background: var(--bg-light);
}

.banner-wrapper {
    display: flex;
    gap: 15px;
}

.banner-main {
    flex: 0 0 calc(66.666% - 8px);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.banner-main .owl-carousel,
.banner-main .hero__slider {
    border-radius: var(--radius-md);
}

.banner-main img,
.banner-main .hero__item {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.banner-side {
    flex: 0 0 calc(33.333% - 8px);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.banner-side-item {
    flex: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.banner-side-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.banner-side-item:hover img {
    transform: scale(1.05);
}

/* Banner Slider Navigation */
.banner-main .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
}

.banner-main .owl-nav button {
    pointer-events: auto;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.9) !important;
    border-radius: var(--radius-full) !important;
    color: var(--primary-blue) !important;
    font-size: 20px !important;
    transition: all 0.3s;
}

.banner-main .owl-nav button:hover {
    background: var(--primary-blue) !important;
    color: #fff !important;
}

/* ========================================
   SECTION COMMON STYLES
   ======================================== */
.home-section {
    padding: 25px 0;
    background: var(--bg-light);
}

.home-section.white-bg {
    background: #fff;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title i {
    color: var(--accent-orange);
    font-size: 18px;
}

.section-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-link:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

/* ========================================
   FLASH SALE / ƯU ĐÃI NGẬP TRÀN
   ======================================== */
.flash-sale-section {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.flash-sale-section .section-header {
    border-bottom-color: var(--accent-orange);
}

.flash-sale-section .section-title {
    color: var(--accent-orange);
}

.flash-sale-slider {
    margin: 0 -8px;
}

.flash-sale-slider .owl-stage-outer {
    padding: 8px 0;
}

/* ========================================
   PRODUCT CARD - NEW DESIGN
   ======================================== */
.product-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-card-image {
    position: relative;
    padding-top: 100%;
    background: var(--bg-light);
    overflow: hidden;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.3s;
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.product-card-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-card-actions a {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.product-card-actions a:hover,
.product-card-actions a.active {
    background: var(--primary-blue);
    color: #fff;
}

.product-card-actions a.active {
    background: #ef4444;
}

.product-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.product-card-rating i {
    color: #fbbf24;
    font-size: 12px;
}

.product-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-title:hover {
    color: var(--primary-blue);
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    min-height: 42px;
}

.product-card-price .current-price {
    font-size: 16px;
    font-weight: 700;
    color: #ef4444;
}

.product-card-price .old-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-card-price .sold-count {
    font-size: 12px;
    color: var(--text-gray);
    margin-left: auto;
}

/* ========================================
   CATEGORY GRID - ICON STYLE (Figma Design)
   ======================================== */
.category-section {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px 25px 25px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.category-section .section-header {
    border-bottom: none;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.category-section .section-title {
    color: var(--heading-color);
    font-size: 18px;
    font-weight: 700;
}

.category-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.category-item {
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s;
    flex: 1;
    max-width: 100px;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.category-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.category-icon i {
    font-size: 28px;
}

/* Gradient backgrounds for category icons - matching Figma */
.category-icon.gradient-1 { 
    background: linear-gradient(180deg, #dbeafe 0%, #93c5fd 100%); 
}
.category-icon.gradient-1 i { color: #2563eb; }

.category-icon.gradient-2 { 
    background: linear-gradient(180deg, #fef3c7 0%, #fcd34d 100%); 
}
.category-icon.gradient-2 i { color: #d97706; }

.category-icon.gradient-3 { 
    background: linear-gradient(180deg, #e0e7ff 0%, #a5b4fc 100%); 
}
.category-icon.gradient-3 i { color: #4f46e5; }

.category-icon.gradient-4 { 
    background: linear-gradient(180deg, #cffafe 0%, #67e8f9 100%); 
}
.category-icon.gradient-4 i { color: #0891b2; }

.category-icon.gradient-5 { 
    background: linear-gradient(180deg, #fef9c3 0%, #fde047 100%); 
}
.category-icon.gradient-5 i { color: #ca8a04; }

.category-icon.gradient-6 { 
    background: linear-gradient(180deg, #fce7f3 0%, #f9a8d4 100%); 
}
.category-icon.gradient-6 i { color: #db2777; }

.category-icon.gradient-7 { 
    background: linear-gradient(180deg, #dbeafe 0%, #93c5fd 100%); 
}
.category-icon.gradient-7 i { color: #2563eb; }

.category-icon.gradient-8 { 
    background: linear-gradient(180deg, #e0e7ff 0%, #c7d2fe 100%); 
}
.category-icon.gradient-8 i { color: #4f46e5; }

.category-name {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.35;
}

.category-item:hover .category-name {
    color: var(--primary-blue);
}

.category-item:hover .category-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* ========================================
   PARTNER / DOANH NGHIỆP NỔI BẬT
   ======================================== */
.partner-section {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.partner-section {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 30px 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.partner-grid {
    display: flex;
    gap: 80px;
    animation: partnerScroll 45s linear infinite;
    width: max-content;
}

.partner-grid:hover {
    animation-play-state: paused;
}

/* When drag-scroll is enabled */
.partner-grid.drag-scroll {
    animation: none;
    width: auto;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 0;
    cursor: grab;
}

.partner-grid.drag-scroll::-webkit-scrollbar {
    display: none;
}

.partner-grid.drag-scroll.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.partner-grid.drag-scroll.dragging * {
    pointer-events: none;
}

.partner-grid.drag-scroll.active {
    user-select: none;
}

.partner-grid:hover {
    animation-play-state: paused;
}

@keyframes partnerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item img {
    height: 120px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 0.9;
    transition: all 0.3s;
}

.partner-item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .partner-grid {
        gap: 50px;
        animation-duration: 35s;
    }

    .partner-grid.drag-scroll {
        gap: 80px;
    }
    
    .partner-item img {
        height: 80px;
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .partner-grid {
        gap: 40px;
        animation-duration: 30s;
    }

    .partner-grid.drag-scroll {
        gap: 80px;
    }
    
    .partner-item img {
        height: 60px;
        max-width: 150px;
    }
}

/* ========================================
   PRODUCT SECTIONS (NEW, HOT, BEST SELLING)
   ======================================== */
.product-section {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

/* ========================================
   PRODUCT CAROUSEL - Horizontal Scroll
   ======================================== */
.product-carousel-wrapper {
    position: relative;
}

.product-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 5px 0;
    cursor: grab;
}

.product-carousel::-webkit-scrollbar {
    display: none;
}

.product-carousel.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.product-carousel.dragging * {
    pointer-events: none;
}

.product-carousel.active {
    user-select: none;
}

.product-carousel .product-card,
.product-carousel .featured__item,
.product-carousel .product-card-wrapper,
.product-carousel > div:not(.product-card-wrapper) {
    flex: 0 0 200px;
    min-width: 200px;
    max-width: 200px;
}

/* Responsive carousel */
@media (max-width: 991px) {
    .product-carousel .product-card,
    .product-carousel .featured__item,
    .product-carousel .product-card-wrapper,
    .product-carousel > div:not(.product-card-wrapper) {
        flex: 0 0 180px;
        min-width: 180px;
        max-width: 180px;
    }
}

@media (max-width: 767px) {
    .product-carousel .product-card,
    .product-carousel .featured__item,
    .product-carousel .product-card-wrapper,
    .product-carousel > div:not(.product-card-wrapper) {
        flex: 0 0 160px;
        min-width: 160px;
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .product-carousel .product-card,
    .product-carousel .featured__item,
    .product-carousel .product-card-wrapper,
    .product-carousel > div:not(.product-card-wrapper) {
        flex: 0 0 140px;
        min-width: 140px;
        max-width: 140px;
    }
    
    .product-card-price {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .product-card-price .old-price {
        min-height: 18px;
        display: block;
        order: 1;
    }
    
    .product-card-price .current-price {
        text-align: center;
        width: 100%;
        order: 2;
    }
    
    .product-card-price .sold-count {
        margin-left: 0;
        order: 3;
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

/* Featured filter compatibility */
.featured__filter {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.featured__filter > div {
    padding: 0 !important;
}

/* Override old featured item styles */
.featured__item {
    background: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.featured__item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--primary-blue-light);
}

.featured__item__pic {
    position: relative;
    padding-top: 100%;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #fafafa !important;
}

.featured__item__pic__hover {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s;
}

.featured__item:hover .featured__item__pic__hover {
    opacity: 1;
    transform: translateY(0);
}

.featured__item__pic__hover li a {
    width: 32px;
    height: 32px;
    background: #fff !important;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b !important;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    font-size: 13px;
}

.featured__item__pic__hover li a:hover {
    background: var(--primary-blue) !important;
    color: #fff !important;
}

.featured__item__pic__hover li a.active {
    background: var(--accent-red) !important;
    color: #fff !important;
}

.featured__sale {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #0036a5;
    color: #fff;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    min-width: 28px;
}

.featured__sale p {
    margin: 0;
}

.featured__sale .sale-label {
    display: block;
    font-size: 7px;
    font-weight: 500;
}

.featured__sale .sale-percent {
    display: block;
    font-size: 10px;
    font-weight: 700;
}

.featured__item__text {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.featured__item__text .rating {
    display: flex;
    gap: 2px;
    margin-bottom: 6px;
}

.featured__item__text .rating i {
    color: #fbbf24;
    font-size: 11px;
}

.featured__item__text .title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.35;
    height: 35px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.featured__item__text a:hover .title {
    color: var(--primary-blue);
}

.featured__item__price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    min-height: 42px;
}

.featured__item__price h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--accent-red);
    margin: 0;
    padding: 2px 6px;
    border: 1px solid var(--accent-red);
    border-radius: 4px;
    background: rgba(239, 68, 68, 0.05);
}

.featured__item__price h6 {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
    margin: 0;
    font-weight: 400;
}

/* ========================================
   NEWS SECTION
   ======================================== */
.news-section {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.news-featured {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.news-featured:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-featured img {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    aspect-ratio: 2.5 / 2.5;
    object-fit: contain;
    display: block;
    background: #f5f5f5;
}

.news-featured-overlay {
    padding: 15px;
    background: #fff;
    color: var(--text-dark);
}

.news-featured-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-featured-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-gray);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item-image {
    flex: 0 0 100px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-content {
    flex: 1;
}

.news-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.news-item-title:hover {
    color: var(--primary-blue);
}

.news-item-excerpt {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   FEATURES BAR
   ======================================== */
.features-bar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    padding: 25px 0;
    margin-top: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.feature-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

/* ========================================
   FOOTER - Moved to footer.css
   ======================================== */

/* ========================================
   QUICK MENU (MOBILE STYLE ICONS)
   ======================================== */
.quick-menu {
    background: var(--bg-light);
    padding: 20px 0;
}

.quick-menu-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.quick-menu-item {
    text-align: center;
    text-decoration: none;
}

.quick-menu-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    transition: transform 0.3s;
}

.quick-menu-item:hover .quick-menu-icon {
    transform: scale(1.1);
}

.quick-menu-icon.icon-new { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.quick-menu-icon.icon-hot { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.quick-menu-icon.icon-wholesale { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.quick-menu-icon.icon-retail { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.quick-menu-icon.icon-member { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.quick-menu-icon.icon-community { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.quick-menu-icon.icon-news { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }

.quick-menu-text {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1199px) {
    .product-grid,
    .featured__filter {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .category-grid {
        gap: 12px;
    }
    
    .category-icon {
        width: 65px;
        height: 65px;
    }
    
    .category-icon img,
    .category-icon i {
        font-size: 24px;
    }
    
    .category-icon img {
        width: 32px;
        height: 32px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .banner-wrapper {
        flex-direction: column;
    }
    
    .banner-main,
    .banner-side {
        flex: 0 0 100%;
    }
    
    .banner-side {
        flex-direction: row;
    }
    
    .banner-side-item {
        flex: 1;
    }
    
    .banner-main img,
    .banner-main .hero__item {
        height: 300px;
    }
    
    .product-grid,
    .featured__filter {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .category-item {
        flex: 0 0 auto;
        width: calc(25% - 12px);
        max-width: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-menu-grid {
        gap: 25px;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .header-search {
        display: none;
    }
    
    /* Remove header bottom padding on mobile to eliminate gap */
    .header-wrapper-v2 {
        padding-bottom: 0 !important;
    }
    
    .header-nav-v2 {
        padding-bottom: 0 !important;
    }
    
    /* Hide side banners on mobile - Figma design */
    .banner-side {
        display: none;
    }
    
    /* Banner full width on mobile */
    .banner-section {
        padding: 0;
        background: transparent;
        margin-top: 0;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }

    .banner-section .container {
        padding: 0;
        max-width: 100%;
        margin: 0;
        width: 100%;
    }
    
    .banner-wrapper {
        gap: 0;
        margin: 0;
        padding: 0;
    }
    
    .banner-main {
        flex: 0 0 100%;
        border-radius: 0;
        width: 100%;
    }
    
    .banner-main .owl-carousel,
    .banner-main .hero__slider {
        border-radius: 0;
    }
    
    /* Banner image - fill full width on mobile */
    .banner-main img,
    .banner-main .hero__item {
        width: 100%;
        height: auto !important;
        min-height: 180px;
        max-height: 250px;
        object-fit: cover !important;
        object-position: center center !important;
        border-radius: 0;
        background: transparent;
        display: block;
    }
    
    /* Center owl carousel items */
    .banner-main .owl-carousel .owl-item,
    .banner-main .hero__slider .owl-item {
        display: flex;
        justify-content: center;
        align-items: center;
        background: transparent;
    }
    
    .banner-main .owl-carousel .owl-item a,
    .banner-main .hero__slider .owl-item a {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Hide nav buttons on mobile */
    .banner-main .owl-nav {
        display: none !important;
    }
    
    .nav-menu ul {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu ul li a {
        padding: 12px 15px;
        white-space: nowrap;
    }
    
    .product-grid,
    .featured__filter {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-grid {
        gap: 10px;
    }
    
    .category-item {
        width: calc(25% - 8px);
    }
    
    .category-icon {
        width: 55px;
        height: 55px;
    }
    
    .category-icon img {
        width: 28px;
        height: 28px;
    }
    
    .category-icon i {
        font-size: 22px;
    }
    
    .category-name {
        font-size: 11px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quick-menu-grid {
        gap: 15px;
    }
    
    .quick-menu-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .quick-menu-text {
        font-size: 11px;
    }
    
    .section-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .banner-side {
        flex-direction: column;
    }
    
    /* Banner image - fill width on smaller screens */
    .banner-main img,
    .banner-main .hero__item {
        min-height: 150px;
        max-height: 200px;
    }
    
    .category-item {
        width: calc(33.333% - 8px);
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .category-icon img {
        width: 24px;
        height: 24px;
    }
    
    .category-icon i {
        font-size: 20px;
    }
    
    .category-name {
        font-size: 10px;
    }
}


/* ========================================
   CUSTOM GRID - 5 COLUMNS
   ======================================== */
.col-xl-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
    padding-right: 10px;
    padding-left: 10px;
    margin-bottom: 20px;
}

@media (max-width: 1199px) {
    .col-xl-2-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 991px) {
    .col-xl-2-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 767px) {
    .col-xl-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ========================================
   PRODUCT CARD - UPDATED STYLES
   ======================================== */
.product-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-card-image {
    display: block;
    position: relative;
    padding-top: 100%;
    background: #f8f9fa;
    overflow: hidden;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.product-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
    z-index: 2;
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-card-actions a {
    width: 32px;
    height: 32px;
    background: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.product-card-actions a:hover {
    background: var(--primary-blue) !important;
    color: #fff !important;
}

.product-card-actions a.active {
    background: #ef4444 !important;
    color: #fff !important;
}

.product-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 6px;
}

.product-card-rating i {
    color: #fbbf24;
    font-size: 11px;
}

.product-card-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none;
}

.product-card-title:hover {
    color: var(--primary-blue);
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    min-height: 42px;
}

.product-card-price .old-price {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}

.product-card-price .current-price {
    font-size: 15px;
    font-weight: 700;
    color: #ef4444;
}

.product-card-price .sold-count {
    font-size: 11px;
    color: #94a3b8;
    margin-left: auto;
}


/* ========================================
   HEADER NEW STYLES
   ======================================== */
.header-new .header__top {
    display: none !important;
}

/* Top Bar */
.top-bar {
    background: var(--primary-blue-dark);
    padding: 8px 0;
    font-size: 13px;
    color: #fff;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--accent-yellow);
}

.top-bar i {
    margin-right: 6px;
}

.top-bar-right a {
    margin-right: 0;
    margin-left: 15px;
}

/* OLD HEADER STYLES - HIDDEN (using header-main-v2 instead) */
/*
.header-main {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.header-logo img {
    height: 45px;
    width: auto;
}

.header-search {
    flex: 1;
    max-width: 550px;
}

.search-form-new {
    display: flex;
    border: 2px solid var(--primary-blue);
    border-radius: 25px;
    overflow: hidden;
    background: #fff;
}

.search-form-new input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.search-form-new button {
    background: var(--primary-blue);
    border: none;
    padding: 12px 25px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

/* Hide old header elements */
.header-new .bg-header {
    display: none !important;
}

.header-new .hero__categories {
    display: none !important;
}


/* ========================================
   FOOTER NEW STYLES - Moved to footer.css
   ======================================== */

/* Hide old footer */
.footer.spad {
    display: none !important;
}

/* Hide old partner section - we have new one */
.partner {
    display: none !important;
}

/* Header styles moved to header.css */


/* ========================================
   FEATURES BAR NEW - FIGMA DESIGN
   ======================================== */
.features-bar-new {
    background: #fff;
    padding: 47px 0;
    margin-top: 15px;
}

.features-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-icon-new {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-new img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-text-new {
    font-family: 'Inter', 'Be Vietnam Pro', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    color: #000;
    text-align: center;
}

.feature-text-new p {
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .features-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .feature-icon-new {
        width: 50px;
        height: 50px;
    }
    
    .feature-text-new {
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .features-bar-new {
        padding: 30px 0;
    }
    
    .features-grid-new {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .feature-icon-new {
        width: 45px;
        height: 45px;
    }
    
    .feature-text-new {
        font-size: 12px;
    }
}


/* ========================================
   RESPONSIVE - NEWS SECTION
   ======================================== */
@media (max-width: 991px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .news-section {
        padding: 15px;
    }
    
    .news-featured-overlay {
        padding: 12px;
    }
    
    .news-featured-title {
        font-size: 14px;
    }
    
    .news-featured-excerpt {
        font-size: 12px;
    }
    
    .news-item {
        gap: 10px;
    }
    
    .news-item-image {
        flex: 0 0 80px;
        height: 60px;
    }
    
    .news-item-title {
        font-size: 12px;
    }
    
    .news-item-excerpt {
        font-size: 11px;
    }
}
