/* ============================================
   STYLES.CSS - Design System Website Hồng Anh
   Light Theme - Sang trọng, Tinh tế
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Work+Sans:wght@400;500;600&display=swap');

:root {
    /* Color Palette */
    --primary: #FF4D00;
    --primary-dark: #cc3d00;
    --primary-light: #ff7a33;
    --primary-50: #fff3ed;
    --primary-100: #ffd7c2;
    --accent: #FFC000;
    --accent-light: #ffd040;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f97316;
    
    /* Neutral */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Typography */
    --font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    
    /* Spacing */
    --container-max: 1320px;
    --sidebar-width: 260px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-family);
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .section-title, .logo-text, .product-name, .nav-menu > li > a, .btn-slider, .price-sale, .pd-price-sale {
    font-family: var(--font-heading);
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--primary-light); }

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

ul, ol { list-style: none; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

/* === CONTAINER === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
.header { background: var(--white); position: sticky; top: 0; z-index: 100; }

.header-top {
    background: var(--primary);
    color: var(--white);
    font-size: var(--text-xs);
    padding: 6px 0;
}

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

.header-top a { color: rgba(255,255,255,0.9); }
.header-top a:hover { color: var(--white); }
.header-top-left, .header-top-right { display: flex; align-items: center; gap: 20px; }
.header-top-right a { display: flex; align-items: center; gap: 4px; }

.header-main {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-text { font-size: var(--text-xl); font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo-text span { color: var(--accent); }
.logo-slogan { font-size: var(--text-xs); color: var(--gray-400); margin-top: -2px; }

.search-box {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 44px 10px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-size: var(--text-sm);
    font-family: inherit;
    transition: border-color var(--transition-fast);
    background: var(--gray-50);
}

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

.search-box button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 34px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

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

.search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 200;
}

.search-suggestions.active { display: block; }

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

.search-suggestions .suggestion-item:hover { background: var(--primary-50); }
.search-suggestions .suggestion-item img { width: 40px; height: 40px; object-fit: contain; border-radius: var(--radius-sm); }
.search-suggestions .suggestion-item .info { flex: 1; }
.search-suggestions .suggestion-item .info .name { font-size: var(--text-sm); font-weight: 500; }
.search-suggestions .suggestion-item .info .price { font-size: var(--text-sm); color: var(--danger); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.header-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--gray-700);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    border: 1px solid var(--gray-200);
}

.header-action-btn:hover { 
    background: var(--primary); 
    color: var(--white); 
    border-color: var(--primary);
}
.header-action-btn .icon { font-size: 20px; }

/* Mini Cart Dropdown */
.header-action-wrap { position: relative; }
.mini-cart-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 320px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 200;
}
.mini-cart-dropdown::before {
    content: ''; position: absolute; top: -15px; left: 0; right: 0; height: 15px; background: transparent;
}
.header-action-wrap:hover .mini-cart-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.mini-cart-header { padding: 12px 16px; font-weight: 600; border-bottom: 1px solid var(--gray-100); text-align:left;}
.mini-cart-items { max-height: 300px; overflow-y: auto; padding: 0; background: var(--gray-50); font-size: 13px; text-align: center; color: var(--gray-500); }
.mini-cart-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--gray-100); background: var(--white); text-align: left;}
.mini-cart-item img { width: 50px; height: 50px; object-fit: contain; border-radius: 4px; }
.mini-cart-item-info { flex: 1; overflow: hidden; }
.mini-cart-item-name { font-weight: 500; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; display: block; }
.mini-cart-item-price { color: var(--danger); font-weight: 600; }
.mini-cart-footer { padding: 12px 16px; background: var(--white); border-top: 1px solid var(--gray-100); }
.btn-primary { background: var(--primary); color: var(--white); border: none; padding: 10px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: background 0.2s; width:100%; text-align:center;}
.btn-primary:hover { background: var(--primary-dark); }
.header-action-btn .badge-count {
    position: absolute;
    top: 2px;
    right: 6px;
    background: var(--danger);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation Menu */
.header-nav { background: var(--white); border-bottom: 2px solid var(--primary); }

.nav-menu {
    display: flex;
    align-items: stretch;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--primary-50);
}

.nav-menu > li:first-child {
    width: 260px;
    margin-right: 16px;
}

/* Auth Buttons in Nav */
.nav-login-btn {
    background: var(--primary);
    color: var(--white) !important;
    padding: 6px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-base);
    box-shadow: 0 4px 10px rgba(255, 77, 0, 0.2);
}

.nav-login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 77, 0, 0.3);
}


.nav-menu .nav-category-btn {
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 0;
    border-bottom-color: transparent !important;
    gap: 8px;
    padding: 12px 20px;
    width: 100%;
}

.nav-menu .nav-category-btn:hover { background: var(--primary-dark); }

/* === SIDEBAR DANH MỤC === */
.category-sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    height: 100%;
    flex-shrink: 0;
    position: relative; /* Cho phép menu Dropdown định vị Absolute */
}

/* Fix background và border-radius cho danh sách vì ta gỡ overflow:hidden */
.category-sidebar .main-cat-list {
    background: var(--white);
    border-radius: var(--radius-lg);
}
.hero-section .category-sidebar .main-cat-list {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.category-sidebar .cat-header {
    background: var(--primary);
    color: var(--white);
    padding: 10px 16px;
    font-weight: 700;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-sidebar .cat-item {
    position: static;
}

.category-sidebar .cat-item > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition-fast);
}

.category-sidebar .cat-item > a:hover {
    background: var(--primary-50);
    color: var(--primary);
    padding-left: 20px;
}

.category-sidebar .cat-item > a .icon { font-size: 18px; width: 24px; text-align: center; }
.category-sidebar .cat-item > a .arrow { margin-left: auto; font-size: 12px; color: var(--gray-400); transition: transform var(--transition-fast); }

/* Trạng thái Bấm vô hiển thị đậm */
.category-sidebar .cat-item.expanded > a {
    color: var(--primary);
    font-weight: 700;
    background: var(--primary-50);
}
.category-sidebar .cat-item.expanded > a .arrow { transform: rotate(90deg); color: var(--primary); }

/* --- MEGA MENU LEVEL 2 (FLYOUT XỔ NGANG) --- */
.category-sidebar .cat-children.level-2 {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    width: 720px;
    height: 100%;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    border-left: none;
    padding: 24px;
    z-index: 100;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    overflow-y: auto;
    
    /* Cấu hình Flex Column cho các Danh mục con */
    align-content: flex-start;
    gap: 24px;
}

.category-sidebar .cat-item.expanded > .cat-children.level-2 {
    display: flex;
    flex-wrap: wrap;
}
/* Also show on hover (CSS-only, no JS needed) */
.category-sidebar > .main-cat-list > .cat-item:hover > .cat-children.level-2 {
    display: flex;
    flex-wrap: wrap;
}

/* Khối danh mục cấp 2 */
.category-sidebar .cat-children.level-2 > .cat-item {
    width: calc(33.333% - 16px);
    position: static;
}

/* Tiêu đề danh mục cấp 2 */
.category-sidebar .cat-children.level-2 > .cat-item > a {
    display: block;
    font-weight: 700;
    color: var(--gray-800);
    padding: 0 0 8px 0;
    border-bottom: 2px solid var(--gray-100);
    margin-bottom: 12px;
    font-size: var(--text-md);
}
.category-sidebar .cat-children.level-2 > .cat-item > a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* --- MEGA MENU LEVEL 3 (HIỂN THỊ LUÔN BÊN DƯỚI LEVEL 2) --- */
.category-sidebar .cat-children.level-3 {
    display: block;
    position: static;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.category-sidebar .cat-children.level-3 .cat-item a {
    display: block;
    padding: 6px 0;
    font-size: var(--text-sm);
    color: var(--gray-600);
    border-bottom: none;
    transition: all var(--transition-fast);
}

.category-sidebar .cat-children.level-3 .cat-item a:hover { 
    color: var(--primary); 
    padding-left: 8px; 
}

/* Danh mục cấp 3 */
.cat-grandchildren { padding-left: 12px; }
.cat-grandchildren a { font-size: 0.7rem !important; }

/* === HERO SECTION === */
.hero-section {
    padding: 0 0 40px;
}

.hero-slider, .hero-banners {
    margin-top: 20px;
}

.category-sidebar {
    margin-top: -1px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    z-index: 10;
}

.hero-section .container {
    display: flex;
    gap: 16px;
}

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

.hero-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slider .slide.active { opacity: 1; }

.hero-slider .slide-content {
    padding: 30px 40px;
    max-width: 60%;
}

.hero-slider .slide-content h2 {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-slider .slide-content p {
    color: rgba(255,255,255,0.9);
    font-size: var(--text-base);
    margin-bottom: 20px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.hero-slider .slide-content .btn-slider {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.hero-slider .slide-content .btn-slider:hover { background: var(--accent-light); transform: translateY(-2px); }

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-dots .dot.active { background: var(--white); width: 28px; border-radius: 10px; }

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 2;
    color: var(--gray-700);
    font-size: 18px;
    backdrop-filter: blur(4px);
}

.slider-nav:hover { background: var(--white); box-shadow: var(--shadow-md); }
.slider-nav.prev { left: 12px; }
.slider-nav.next { right: 12px; }

/* Hero banners nhỏ */
.hero-banners {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 240px;
    flex-shrink: 0;
}

.hero-banners .mini-banner {
    flex: 1;
    min-height: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 16px;
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.hero-banners .mini-banner:nth-child(2) { background: linear-gradient(135deg, #059669, #34d399); }
.hero-banners .mini-banner:nth-child(3) { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.hero-banners .mini-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Quick Category Banners */
.quick-banners {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 0 0 16px;
}

.quick-banner-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    cursor: pointer;
}

.quick-banner-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.quick-banner-item .qb-icon { font-size: 32px; }
.quick-banner-item .qb-info h4 { font-size: var(--text-sm); font-weight: 600; color: var(--gray-800); }
.quick-banner-item .qb-info p { font-size: var(--text-xs); color: var(--gray-400); }

/* === PRODUCT CARD === */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.product-card .card-image {
    position: relative;
    padding: 16px;
    background: var(--gray-50);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .card-image img {
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-base);
}

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

/* Badge */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 2;
}

.product-badge.bestseller { background: var(--danger); color: var(--white); }
.product-badge.new { background: var(--success); color: var(--white); }
.product-badge.sale { background: var(--warning); color: var(--white); }

/* Discount tag */
.discount-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

/* Quick View overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    backdrop-filter: blur(2px);
}

.product-card:hover .card-overlay { opacity: 1; }

.btn-quickview {
    padding: 10px 20px;
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
    font-size: var(--text-sm);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    transform: translateY(10px);
}

.product-card:hover .btn-quickview { transform: translateY(0); }
.btn-quickview:hover { background: var(--primary); color: var(--white); }

/* Card info */
.card-info {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-info .product-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

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

.price-group { margin-top: auto; }
.price-original { font-size: var(--text-xs); color: var(--gray-400); text-decoration: line-through; }
.price-sale { font-size: var(--text-lg); font-weight: 700; color: var(--danger); }

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-100);
}

.btn-compare {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--gray-500);
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
}

.btn-compare:hover,
.btn-compare.active { color: var(--primary); border-color: var(--primary); background: var(--primary-50); }

.btn-addcart {
    padding: 6px 14px;
    background: var(--primary);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-fast);
}

.btn-addcart:hover { background: var(--primary-dark); transform: scale(1.02); }

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

.section-title {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--gray-900);
    position: relative;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
}

.section-tabs {
    display: flex;
    gap: 6px;
}

.section-tab {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--gray-500);
    background: var(--gray-100);
    transition: all var(--transition-fast);
}

.section-tab:hover { color: var(--primary); background: var(--primary-50); }
.section-tab.active { color: var(--white); background: var(--primary); }

.view-all-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-all-link:hover { gap: 8px; }

/* === PRODUCT GRID === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

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

/* === PRODUCT CAROUSEL === */
.product-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform var(--transition-slow);
}

.carousel-track .product-card { min-width: calc(20% - 13px); flex-shrink: 0; }

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    color: var(--gray-600);
    font-size: 16px;
    transition: all var(--transition-fast);
}

.carousel-nav:hover { background: var(--primary); color: var(--white); }
.carousel-nav.prev { left: 0; }
.carousel-nav.next { right: 0; }

/* === BRAND SLIDER === */
.brand-slider {
    padding: 24px 0;
}

.brand-track {
    display: flex;
    align-items: center;
    gap: 24px;
    overflow-x: auto;
    padding: 16px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.brand-track::-webkit-scrollbar { display: none; }

.brand-item {
    flex-shrink: 0;
    width: 120px;
    height: 60px;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.brand-item:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.brand-item img { max-height: 100%; max-width: 100%; object-fit: contain; filter: grayscale(40%); transition: filter var(--transition-base); }
.brand-item:hover img { filter: grayscale(0%); }

/* === BLOG SECTION === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.blog-card .blog-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-card .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.blog-card .blog-info { padding: 14px; }
.blog-card .blog-category { font-size: var(--text-xs); color: var(--primary); font-weight: 600; text-transform: uppercase; }
.blog-card .blog-title { font-size: var(--text-sm); font-weight: 600; color: var(--gray-800); margin: 4px 0 6px; line-height: 1.4; }
.blog-card .blog-title:hover { color: var(--primary); }
.blog-card .blog-date { font-size: var(--text-xs); color: var(--gray-400); }

/* === FOOTER === */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    margin-top: 40px;
}

.footer-newsletter {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 32px 0;
}

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

.newsletter-inner h3 { color: var(--white); font-size: var(--text-xl); font-weight: 700; }
.newsletter-inner p { color: rgba(255,255,255,0.8); font-size: var(--text-sm); }

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    padding: 10px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    font-size: var(--text-sm);
    font-family: inherit;
    width: 320px;
    backdrop-filter: blur(4px);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form input:focus { border-color: var(--white); outline: none; }

.newsletter-form button {
    padding: 10px 24px;
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.newsletter-form button:hover { background: var(--accent-light); }

.footer-main { padding: 40px 0; }

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

.footer-col h4 {
    color: var(--white);
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col p, .footer-col li { font-size: var(--text-sm); line-height: 1.8; }
.footer-col a { color: var(--gray-400); }
.footer-col a:hover { color: var(--white); }

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

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer-social a:hover { background: var(--primary); color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
    text-align: center;
    font-size: var(--text-xs);
    color: var(--gray-500);
}

/* === FILTER SIDEBAR (Category Page) === */
.filter-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

/* === CATEGORY TREE SIDEBAR (accordion, category pages) === */
.filter-sidebar-cat {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.cat-tree-header {
    background: var(--primary);
    color: var(--white);
    padding: 10px 16px;
    font-weight: 700;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.cat-tree-body {}

.cat-tree-item {
    border-bottom: 1px solid var(--gray-100);
}
.cat-tree-item:last-child { border-bottom: none; }

.cat-tree-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.15s;
    font-size: 13px;
    font-weight: 600;
}

.cat-tree-link:hover {
    background: var(--primary-50) !important;
}

.cat-tree-link.active {
    color: var(--primary);
    font-weight: 700;
    background: var(--primary-50);
}

.cat-tree-arrow {
    font-size: 10px;
    color: var(--gray-400);
    flex-shrink: 0;
}

.filter-group {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin-bottom: 14px;
    overflow: hidden;
}

.filter-group-header {
    padding: 12px 16px;
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-100);
}

.filter-group-body { padding: 10px 16px; }

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.filter-checkbox:hover { color: var(--primary); }

.filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Sort bar */
.sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
}

.sort-bar .sort-label { font-size: var(--text-sm); font-weight: 600; color: var(--gray-600); margin-right: 4px; }

.sort-btn {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-100);
    transition: all var(--transition-fast);
}

.sort-btn:hover { color: var(--primary); background: var(--primary-50); }
.sort-btn.active { color: var(--white); background: var(--primary); }

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

.page-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-600);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.page-btn:hover { color: var(--primary); border: 1px solid var(--primary); }
.page-btn.active { background: var(--primary); color: var(--white); }

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

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.7fr;
    gap: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
}

/* Gallery */
.pd-gallery { }
.pd-main-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-50);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: crosshair;
    position: relative;
}

.pd-main-image img { max-height: 100%; object-fit: contain; transition: transform var(--transition-base); }

.pd-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.pd-thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: border-color var(--transition-fast);
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-thumb.active, .pd-thumb:hover { border-color: var(--primary); }
.pd-thumb img { max-height: 100%; object-fit: contain; }

/* Product Info */
.pd-info { }
.pd-name { font-size: var(--text-2xl); font-weight: 700; color: var(--gray-900); margin-bottom: 8px; line-height: 1.3; }
.pd-meta { display: flex; gap: 16px; font-size: var(--text-xs); color: var(--gray-400); margin-bottom: 16px; }
.pd-rating { color: var(--accent); }

.pd-price-box {
    background: var(--primary-50);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.pd-price-original { font-size: var(--text-sm); color: var(--gray-400); text-decoration: line-through; }
.pd-price-sale { font-size: var(--text-2xl); font-weight: 800; color: var(--danger); margin: 4px 0; }
.pd-price-saving { font-size: var(--text-sm); color: var(--success); font-weight: 600; }

/* Color/Size options */
.pd-options { margin-bottom: 16px; }
.pd-option-label { font-size: var(--text-sm); font-weight: 600; color: var(--gray-700); margin-bottom: 8px; }

.pd-option-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.option-chip {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: var(--text-sm);
    font-weight: 500;
    border: 2px solid var(--gray-200);
    color: var(--gray-600);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.option-chip:hover { border-color: var(--primary); color: var(--primary); }
.option-chip.active { border-color: var(--primary); background: var(--primary-50); color: var(--primary); font-weight: 600; }

.pd-buttons { display: flex; gap: 10px; margin-top: 20px; }

.btn-buy {
    flex: 1;
    padding: 14px;
    font-size: var(--text-base);
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-buy.primary { background: var(--danger); color: var(--white); }
.btn-buy.primary:hover { background: #dc2626; transform: translateY(-1px); }
.btn-buy.secondary { background: var(--primary); color: var(--white); }
.btn-buy.secondary:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Right sidebar - policies */
.pd-policies { }

.policy-card {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 10px;
}

.policy-card .policy-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.policy-card .policy-text { font-size: var(--text-xs); color: var(--gray-500); line-height: 1.6; }

.policy-card .stock-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: var(--text-xs);
    font-weight: 600;
}

.stock-status.in-stock { background: #d1fae5; color: #065f46; }
.stock-status.out-of-stock { background: #fee2e2; color: #991b1b; }

/* Tabs */
.pd-tabs { margin-top: 30px; }

.tab-headers {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
}

.tab-header {
    padding: 12px 24px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.tab-header:hover { color: var(--primary); }
.tab-header.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-content { display: none; padding: 20px; }
.tab-content.active { display: block; }
.tab-content p { margin-bottom: 12px; line-height: 1.8; font-size: var(--text-sm); color: var(--gray-600); }

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(even) { background: var(--gray-50); }
.specs-table td { padding: 10px 14px; font-size: var(--text-sm); border-bottom: 1px solid var(--gray-100); }
.specs-table td:first-child { font-weight: 600; color: var(--gray-700); width: 35%; }
.specs-table td:last-child { color: var(--gray-600); }

/* === BREADCRUMB === */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    font-size: var(--text-xs);
    color: var(--gray-400);
}

.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { color: var(--gray-300); }
.breadcrumb .current { color: var(--gray-700); font-weight: 600; }

/* === QUICK VIEW MODAL === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px;
    position: relative;
    animation: modalIn 0.3s ease;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; margin: 16px 0; }
.modal-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gray-500);
    transition: all var(--transition-fast);
    cursor: pointer;
    z-index: 5;
}

.modal-close:hover { background: var(--danger); color: var(--white); }

/* === QUICK VIEW - PREMIUM MODAL === */
.qv-premium-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* Gallery */
.qv-gallery { position: relative; }

.qv-main-image {
    border-radius: 14px;
    overflow: hidden;
    background: #f8fafc;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid #f1f5f9;
}

.qv-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.qv-main-image:hover img { transform: scale(1.05); }

.qv-discount-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef4444;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    z-index: 2;
}

.qv-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.qv-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.qv-thumb:hover { border-color: #94a3b8; }
.qv-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(234,88,12,0.2); }
.qv-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Details */
.qv-details { display: flex; flex-direction: column; gap: 0; }

.qv-category {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.qv-title {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.3;
    margin: 0 0 8px;
}

.qv-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.qv-stars {
    color: #f59e0b;
    font-size: 16px;
    letter-spacing: 2px;
}

.qv-review-count {
    font-size: 12px;
    color: #94a3b8;
}

.qv-stock-in {
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    background: #ecfdf5;
    padding: 3px 10px;
    border-radius: 12px;
}

.qv-stock-out {
    font-size: 11px;
    font-weight: 700;
    color: #ef4444;
    background: #fef2f2;
    padding: 3px 10px;
    border-radius: 12px;
}

/* Price */
.qv-price-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 12px 16px;
    background: #fefce8;
    border-radius: 10px;
    border: 1px solid #fde68a;
}

.qv-old-price {
    font-size: 15px;
    color: #94a3b8;
    text-decoration: line-through;
}

.qv-current-price {
    font-size: 26px;
    font-weight: 900;
    color: #dc2626;
}

.qv-savings {
    font-size: 12px;
    font-weight: 700;
    color: #10b981;
    background: #ecfdf5;
    padding: 3px 10px;
    border-radius: 12px;
}

/* Description */
.qv-description {
    font-size: 13px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 14px;
    max-height: 80px;
    overflow: hidden;
}

/* Specs */
.qv-specs {
    margin-bottom: 14px;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.qv-specs h4 {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    padding: 10px 14px;
    margin: 0;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.qv-spec-row {
    display: flex;
    padding: 8px 14px;
    font-size: 13px;
    border-bottom: 1px solid #f8fafc;
}

.qv-spec-row:nth-child(odd) { background: #fafbfc; }
.qv-spec-row:last-child { border-bottom: none; }

.qv-spec-label {
    color: #64748b;
    width: 40%;
    flex-shrink: 0;
}

.qv-spec-value {
    color: #1e293b;
    font-weight: 600;
}

/* Meta */
.qv-meta-row { margin-bottom: 10px; }
.qv-sku { font-size: 12px; color: #94a3b8; }
.qv-sku strong { color: #64748b; }

/* Quantity */
.qv-quantity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.qv-quantity-row label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.qv-qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.qv-qty-control button {
    width: 36px;
    height: 36px;
    border: none;
    background: #f8fafc;
    font-size: 18px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s;
}

.qv-qty-control button:hover { background: #e2e8f0; }

.qv-qty-control input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    outline: none;
    padding: 6px 0;
    -moz-appearance: textfield;
}

.qv-qty-control input::-webkit-inner-spin-button,
.qv-qty-control input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* Actions */
.qv-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.qv-btn-cart {
    flex: 1;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary), #c2410c);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
}

.qv-btn-cart:hover {
    background: linear-gradient(135deg, #c2410c, #9a3412);
    box-shadow: 0 8px 24px rgba(234,88,12,0.3);
    transform: translateY(-1px);
}

.qv-btn-detail {
    padding: 14px 20px;
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.qv-btn-detail:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* Loading */
.qv-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 60px 20px;
    color: #64748b;
    font-size: 14px;
}

.qv-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f1f5f9;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: qvSpin 0.8s linear infinite;
}

@keyframes qvSpin { to { transform: rotate(360deg); } }

/* Legacy compat */
.qv-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.qv-image { border-radius: var(--radius-md); overflow: hidden; background: var(--gray-50); display: flex; align-items: center; justify-content: center; aspect-ratio: 1; }
.qv-image img { max-height: 100%; object-fit: contain; }

/* === COMPARE BAR === */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    padding: 14px 0;
    z-index: 500;
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.compare-bar.active { transform: translateY(0); }

.compare-bar .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.compare-items {
    display: flex;
    gap: 10px;
    flex: 1;
}

.compare-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-50);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    position: relative;
}

.compare-item .remove-compare {
    cursor: pointer;
    color: var(--gray-400);
    font-size: 16px;
}

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

.btn-compare-now {
    padding: 10px 24px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: var(--text-sm);
    border-radius: 50px;
    transition: all var(--transition-fast);
}

.btn-compare-now:hover { background: var(--primary-dark); }

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

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

.float-btn:hover { transform: scale(1.1); }
.float-btn.zalo { background: #0068ff; }
.float-btn.messenger { background: #0084ff; }
.float-btn.phone { background: var(--success); }
.float-btn.backtop { background: var(--gray-700); opacity: 0; pointer-events: none; transition: opacity var(--transition-base); }
.float-btn.backtop.visible { opacity: 1; pointer-events: auto; }

/* === SECTION SPACING === */
.section { padding: 30px 0; }
.section-alt { background: var(--white); }

/* === GALLERY BANNERS === */
.gallery-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 10px 0;
}

.gallery-banner-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
    aspect-ratio: 16/8;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.gallery-banner-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gallery-banner-item h4 { font-size: var(--text-base); font-weight: 700; color: var(--primary); }
.gallery-banner-item p { font-size: var(--text-xs); color: var(--gray-500); margin-top: 4px; }

/* === MAIN CONTENT WITH SIDEBAR === */
.main-with-sidebar {
    display: flex;
    gap: 20px;
}

.main-content { flex: 1; min-width: 0; }

/* =========================================================
   UI "ĐỒ CHƠI" NÂNG CAO (COUNTDOWN, FLOATING, TOAST)
========================================================= */

/* --- FLASH SALE COUNTDOWN --- */
.flash-countdown { margin-bottom: 0px; }
.cd-box {
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--text-md);
    min-width: 36px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(239,68,68,0.3);
}
.cd-sep {
    font-weight: 800;
    color: var(--primary);
    font-size: var(--text-lg);
}

/* --- FLOATING WIDGETS --- */
.floating-widgets {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
}

.widget-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    text-decoration: none;
}

.widget-btn:hover {
    transform: scale(1.15);
    color: var(--white);
}

.zalo-btn { background: #0068ff; }
.phone-btn { background: #10b981; animation: pulse-green 2s infinite; }
.scroll-top-btn { 
    background: var(--gray-800); 
    opacity: 0; 
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast-msg {
    background: var(--white);
    border-left: 5px solid var(--primary);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-msg.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon { font-size: 22px; color: var(--primary); }
.toast-success { border-left-color: #10b981; }
.toast-success .toast-icon { color: #10b981; }

/* === GLOBAL CATEGORY DROPDOWN (non-homepage) === */
.global-category-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 500;
    background: rgba(0,0,0,0.15);
    padding-bottom: 20px;
}
.global-category-dropdown .category-sidebar {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-top: 3px solid var(--primary);
    overflow: visible;
    position: relative;
    width: 260px;
}
.global-category-dropdown .category-sidebar .main-cat-list {
    position: static;
}
/* Each top-level cat-item: static so flyout references .category-sidebar */
.global-category-dropdown .category-sidebar > .main-cat-list > .cat-item {
    position: static;
}
/* Flyout positioning: relative to .category-sidebar */
.global-category-dropdown .cat-children.level-2 {
    left: 100%;
    top: 0;
    bottom: 0;
    height: auto;
    max-height: none;
    position: absolute;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail-layout { grid-template-columns: 1fr 1fr; }
    .pd-policies { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-banners { grid-template-columns: repeat(2, 1fr); }
    .hero-banners { display: none; }
    .category-sidebar { display: none; }
    .hero-slider { min-height: 250px; }
    .product-detail-layout { grid-template-columns: 1fr; }
    .newsletter-inner { flex-direction: column; text-align: center; }
    .qv-layout { grid-template-columns: 1fr; }
    .qv-premium-layout { grid-template-columns: 1fr; }
    .gallery-banners { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   MY ACCOUNT - PREMIUM DESIGN
   ============================================= */

/* Layout: Sidebar + Content */
.woocommerce-MyAccount-navigation {
    background: #fff;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin: 2px 0;
}

.woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation li a:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: linear-gradient(135deg, var(--primary), #e8530e);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

/* Menu icons via ::before pseudo elements */
.woocommerce-MyAccount-navigation li.ha-menu-dashboard a::before { content: '📊'; }
.woocommerce-MyAccount-navigation li.ha-menu-orders a::before { content: '📦'; }
.woocommerce-MyAccount-navigation li.ha-menu-edit-address a::before { content: '📍'; }
.woocommerce-MyAccount-navigation li.ha-menu-edit-account a::before { content: '👤'; }
.woocommerce-MyAccount-navigation li.ha-menu-customer-logout a::before { content: '🚪'; }

/* MyAccount Content Area */
.woocommerce-MyAccount-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
    min-height: 400px;
}

/* 2-column layout on desktop */
.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Dashboard Profile Header */
.ha-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    border-radius: 16px;
    margin-bottom: 24px;
    position: relative;
}

.ha-profile-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    object-fit: cover;
}

.ha-profile-info h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
}

.ha-profile-email {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 2px !important;
}

.ha-profile-since {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 !important;
}

.ha-edit-profile-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.ha-edit-profile-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Stats Cards */
.ha-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.ha-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    transition: all 0.2s;
}

.ha-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.ha-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ha-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.ha-stat-label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Section Titles */
.ha-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
}

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

.ha-view-all {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.ha-view-all:hover { text-decoration: underline; }

/* Quick Actions */
.ha-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.ha-action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s;
    position: relative;
}

.ha-action-card:hover {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.ha-action-card.ha-action-shop {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border-color: #fed7aa;
}

.ha-action-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.ha-action-title {
    font-weight: 600;
    font-size: 14px;
    display: block;
}

.ha-action-desc {
    font-size: 12px;
    color: #94a3b8;
    display: block;
}

.ha-action-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    font-size: 18px;
    transition: all 0.2s;
}

.ha-action-card:hover .ha-action-arrow {
    color: var(--primary);
    right: 12px;
}

/* Recent Orders List */
.ha-orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ha-order-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    transition: all 0.2s;
}

.ha-order-item:hover {
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ha-order-main {
    flex: 1;
    min-width: 0;
}

.ha-order-id strong {
    font-size: 14px;
    color: #1e293b;
}

.ha-order-date {
    font-size: 12px;
    color: #94a3b8;
    margin-left: 8px;
}

.ha-order-products {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ha-more-items {
    color: #94a3b8;
    font-size: 12px;
}

.ha-order-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.ha-order-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.ha-order-total {
    font-size: 14px;
    font-weight: 700;
    color: #dc2626;
}

.ha-order-detail-btn {
    padding: 6px 14px;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.2s;
}

.ha-order-detail-btn:hover {
    background: #c2410c;
    box-shadow: 0 2px 8px rgba(234,88,12,0.3);
}

/* =============================================
   LOGIN / REGISTER FORM STYLING
   ============================================= */

.woocommerce-account:not(.logged-in) .woocommerce {
    display: block;
    max-width: 900px;
    margin: 0 auto;
}

/* Login + Register side by side */
.woocommerce-account .u-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.woocommerce-account .u-columns .col-1,
.woocommerce-account .u-columns .col-2 {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
}

.woocommerce-account .u-columns h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

/* Form inputs */
.woocommerce-account .woocommerce-form label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    display: block;
    margin-bottom: 6px;
}

.woocommerce-account .woocommerce-form input[type="text"],
.woocommerce-account .woocommerce-form input[type="email"],
.woocommerce-account .woocommerce-form input[type="password"],
.woocommerce-account .woocommerce-form input[type="tel"],
.woocommerce-account .woocommerce-form select,
.woocommerce-account .woocommerce-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #fafbfc;
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
}

.woocommerce-account .woocommerce-form input:focus,
.woocommerce-account .woocommerce-form select:focus,
.woocommerce-account .woocommerce-form textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(234,88,12,0.1);
}

/* Submit buttons */
.woocommerce-account .woocommerce-form button[type="submit"],
.woocommerce-account .woocommerce-Button,
.woocommerce-account button.woocommerce-button {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary), #c2410c);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.woocommerce-account .woocommerce-form button[type="submit"]:hover,
.woocommerce-account .woocommerce-Button:hover {
    background: linear-gradient(135deg, #c2410c, #9a3412);
    box-shadow: 0 6px 20px rgba(234,88,12,0.3);
    transform: translateY(-1px);
}

/* Remember me & lost password */
.woocommerce-form-login .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.woocommerce-LostPassword a {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.woocommerce-LostPassword a:hover { text-decoration: underline; }

/* =============================================
   ORDERS TABLE (full page)
   ============================================= */

.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-orders-table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f1f5f9;
    background: #fafbfc;
}

.woocommerce-orders-table td {
    padding: 14px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-total {
    font-weight: 700;
    color: #dc2626;
}

.woocommerce-orders-table .woocommerce-button {
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 6px;
    width: auto;
}

/* =============================================
   ADDRESS CARDS
   ============================================= */

.woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.woocommerce-Address {
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 20px;
}

.woocommerce-Address header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.woocommerce-Address header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.woocommerce-Address header a {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 4px 10px;
    border: 1px solid var(--primary);
    border-radius: 6px;
}

.woocommerce-Address header a:hover {
    background: var(--primary);
    color: #fff;
}

.woocommerce-Address address {
    font-style: normal;
    font-size: 13px;
    line-height: 1.7;
    color: #475569;
}

/* =============================================
   EDIT ACCOUNT FORM
   ============================================= */

.woocommerce-EditAccountForm {
    max-width: 600px;
}

.woocommerce-EditAccountForm fieldset {
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
    background: #fafbfc;
}

.woocommerce-EditAccountForm fieldset legend {
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
    padding: 0 8px;
}

.woocommerce-EditAccountForm .woocommerce-form-row {
    margin-bottom: 16px;
}

/* =============================================
   RESPONSIVE MY ACCOUNT
   ============================================= */

@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr;
    }
    
    .woocommerce-MyAccount-navigation {
        border-radius: 12px;
    }
    
    .woocommerce-MyAccount-navigation ul {
        display: flex;
        overflow-x: auto;
        gap: 4px;
        -webkit-overflow-scrolling: touch;
    }
    
    .woocommerce-MyAccount-navigation li a {
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .woocommerce-MyAccount-content {
        padding: 20px;
    }
    
    .ha-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ha-action-grid {
        grid-template-columns: 1fr;
    }
    
    .ha-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .ha-edit-profile-btn {
        position: static;
        transform: none;
        margin-top: 12px;
    }
    
    .ha-order-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ha-order-meta {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }
    
    .woocommerce-account .u-columns {
        grid-template-columns: 1fr;
    }
    
    .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   ORDERS PAGE
   ============================================= */

.ha-page-header {
    margin-bottom: 24px;
}

.ha-page-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 4px;
}

.ha-page-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Order Filters */
.ha-order-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ha-filter-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

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

.ha-filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(234,88,12,0.25);
}

/* Order Cards */
.ha-order-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.ha-order-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.ha-order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.ha-order-card-id strong {
    font-size: 15px;
    color: #1e293b;
    display: block;
}

.ha-order-card-date {
    font-size: 12px;
    color: #94a3b8;
}

.ha-order-status-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.ha-status-large {
    font-size: 14px;
    padding: 8px 16px;
}

/* Order Product Thumbnails */
.ha-order-card-items {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.ha-order-product-thumb {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.ha-order-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ha-order-product-qty {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 4px 0 0 0;
    font-weight: 600;
}

.ha-order-more-badge {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    flex-shrink: 0;
}

.ha-order-item-count {
    font-size: 13px;
    color: #94a3b8;
}

/* Order Card Footer */
.ha-order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ha-order-card-total .ha-label {
    font-size: 13px;
    color: #64748b;
    margin-right: 6px;
}

.ha-total-value {
    font-size: 18px;
    font-weight: 800;
    color: #dc2626;
}

.ha-order-card-actions {
    display: flex;
    gap: 8px;
}

.ha-btn-detail {
    padding: 8px 18px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.ha-btn-detail:hover {
    background: #c2410c;
    box-shadow: 0 4px 12px rgba(234,88,12,0.25);
    transform: translateY(-1px);
}

.ha-btn-pay {
    padding: 8px 18px;
    background: #10b981;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.ha-btn-pay:hover { background: #059669; }

/* Empty State */
.ha-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.ha-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.ha-empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}

.ha-empty-state p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 24px;
}

.ha-btn-shop {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), #c2410c);
    color: #fff;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.ha-btn-shop:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(234,88,12,0.3);
}

/* =============================================
   VIEW ORDER PAGE 
   ============================================= */

.ha-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.ha-order-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 4px;
}

.ha-order-header-date {
    font-size: 13px;
    color: #94a3b8;
}

/* Progress Tracker */
.ha-progress-tracker {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding: 24px;
    background: #fafbfc;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
}

.ha-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ha-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s;
}

.ha-progress-step.active .ha-step-dot {
    background: linear-gradient(135deg, var(--primary), #c2410c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(234,88,12,0.3);
}

.ha-progress-step span {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.ha-progress-step.active span {
    color: #1e293b;
    font-weight: 600;
}

.ha-progress-line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 6px;
    margin-bottom: 24px;
    border-radius: 2px;
    max-width: 80px;
}

.ha-progress-line.active {
    background: linear-gradient(90deg, var(--primary), #f97316);
}

/* Order Sections */
.ha-order-section {
    margin-bottom: 28px;
}

.ha-order-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
}

/* Product Rows in View Order */
.ha-order-items-list {
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.ha-order-product-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #f8fafc;
}

.ha-order-product-row:last-child {
    border-bottom: none;
}

.ha-order-product-image {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.ha-order-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ha-order-product-info {
    flex: 1;
}

.ha-order-product-info strong {
    font-size: 14px;
    color: #1e293b;
    display: block;
    margin-bottom: 2px;
}

.ha-order-product-meta {
    font-size: 12px;
    color: #94a3b8;
}

.ha-order-product-price {
    font-size: 15px;
    font-weight: 700;
    color: #dc2626;
    flex-shrink: 0;
}

/* Order Totals */
.ha-order-totals {
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 16px 20px;
}

.ha-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #475569;
}

.ha-total-row.ha-discount span:last-child {
    color: #10b981;
    font-weight: 600;
}

.ha-total-row.ha-grand-total {
    border-top: 2px solid #e2e8f0;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
}

.ha-total-row.ha-grand-total span:last-child {
    color: #dc2626;
}

/* Order Info Grid */
.ha-order-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.ha-info-card {
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 18px;
}

.ha-info-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
}

.ha-info-card p,
.ha-info-card address {
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
    font-style: normal;
    margin: 0;
}

.ha-text-muted { color: #94a3b8 !important; }

.ha-customer-note {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    color: #92400e;
    line-height: 1.6;
}

.ha-back-link {
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.ha-back-link a {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.ha-back-link a:hover { text-decoration: underline; }

/* =============================================
   EDIT ACCOUNT FORM
   ============================================= */

.ha-form-section {
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
}

.ha-form-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.ha-form-section-icon {
    font-size: 24px;
}

.ha-form-section-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    flex: 1;
}

.ha-optional-badge {
    font-size: 11px;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.ha-section-note {
    font-size: 13px;
    color: #94a3b8;
    margin: -8px 0 20px !important;
}

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

.ha-form-group {
    margin-bottom: 16px;
}

.ha-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.ha-form-group label .required {
    color: #ef4444;
}

.ha-form-group input[type="text"],
.ha-form-group input[type="email"],
.ha-form-group input[type="password"],
.ha-form-group input[type="tel"],
.ha-form-group select,
.ha-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
}

.ha-form-group input:focus,
.ha-form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(234,88,12,0.08);
}

.ha-field-hint {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.ha-form-actions {
    margin-top: 24px;
}

.ha-form-actions button {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), #c2410c);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.ha-form-actions button:hover {
    background: linear-gradient(135deg, #c2410c, #9a3412);
    box-shadow: 0 8px 24px rgba(234,88,12,0.3);
    transform: translateY(-1px);
}

/* =============================================
   RESPONSIVE - NEW PAGES
   ============================================= */

@media (max-width: 768px) {
    .ha-order-card-header { flex-direction: column; gap: 8px; }
    .ha-order-card-footer { flex-direction: column; gap: 12px; align-items: flex-start; }
    .ha-order-header { flex-direction: column; gap: 12px; }
    .ha-order-info-grid { grid-template-columns: 1fr; }
    .ha-progress-tracker { padding: 16px 12px; }
    .ha-step-dot { width: 28px; height: 28px; font-size: 12px; }
    .ha-progress-step span { font-size: 10px; }
    .ha-form-grid { grid-template-columns: 1fr; }
    .ha-order-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
}

/* =============================================
   CART PAGE - PREMIUM DESIGN
   ============================================= */

.ha-cart-page { max-width: 1200px; margin: 0 auto; }

.ha-cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

/* Cart Items */
.ha-cart-items {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
}

.ha-cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.ha-cart-item:last-of-type { border-bottom: none; }

.ha-cart-item-image {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    flex-shrink: 0;
}

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

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

.ha-cart-item-name a {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.ha-cart-item-name a:hover { color: var(--primary); }

.ha-cart-item-price {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

.ha-cart-item-quantity {
    flex-shrink: 0;
}

.ha-cart-item-quantity .quantity {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fafbfc;
}

.ha-cart-item-quantity .quantity input[type="number"] {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    background: transparent;
    padding: 8px 4px;
    outline: none;
    -moz-appearance: textfield;
}

.ha-cart-item-quantity .quantity input[type="number"]::-webkit-inner-spin-button,
.ha-cart-item-quantity .quantity input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ha-cart-item-subtotal {
    font-size: 16px;
    font-weight: 800;
    color: #dc2626;
    flex-shrink: 0;
    min-width: 120px;
    text-align: right;
}

.ha-cart-item-remove {
    flex-shrink: 0;
}

.ha-remove-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fef2f2;
    color: #ef4444;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.ha-remove-btn:hover {
    background: #ef4444;
    color: #fff;
}

/* Cart Actions */
.ha-cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
    gap: 12px;
}

.ha-coupon-input {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 380px;
}

.ha-coupon-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    background: #fafbfc;
    transition: border-color 0.2s;
}

.ha-coupon-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(234,88,12,0.08);
}

.ha-coupon-btn {
    padding: 12px 20px;
    background: #1e293b;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ha-coupon-btn:hover {
    background: #0f172a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ha-update-btn {
    padding: 12px 20px;
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ha-update-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* Cart Summary */
.ha-cart-summary {
    position: sticky;
    top: 100px;
}

.ha-summary-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
}

.ha-summary-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
}

.ha-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: #475569;
}

.ha-summary-row.ha-discount {
    color: #10b981;
    font-weight: 600;
}

.ha-shipping-note {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

.ha-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 0;
    margin-top: 12px;
    border-top: 2px solid #1e293b;
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
}

.ha-summary-total span:last-child {
    color: #dc2626;
    font-size: 22px;
}

.ha-checkout-actions {
    margin-top: 20px;
}

.ha-checkout-actions .checkout-button,
.ha-checkout-actions .wc-proceed-to-checkout a {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), #c2410c);
    color: #fff;
    text-align: center;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.ha-checkout-actions .checkout-button:hover,
.ha-checkout-actions .wc-proceed-to-checkout a:hover {
    background: linear-gradient(135deg, #c2410c, #9a3412);
    box-shadow: 0 8px 24px rgba(234,88,12,0.3);
    transform: translateY(-2px);
}

.ha-continue-shopping {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.ha-continue-shopping:hover { text-decoration: underline; }

/* Empty Cart */
.woocommerce-cart .cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.woocommerce-cart .return-to-shop a {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), #c2410c);
    color: #fff;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.woocommerce-cart .return-to-shop a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(234,88,12,0.3);
}

/* =============================================
   RESPONSIVE CART
   ============================================= */

@media (max-width: 768px) {
    .ha-cart-layout {
        grid-template-columns: 1fr;
    }
    
    .ha-cart-item {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .ha-cart-item-image {
        width: 70px;
        height: 70px;
    }
    
    .ha-cart-item-subtotal {
        min-width: auto;
        text-align: left;
    }
    
    .ha-cart-actions {
        flex-direction: column;
    }
    
    .ha-coupon-input {
        max-width: 100%;
        width: 100%;
    }
    
    .ha-update-btn { width: 100%; }
    
    .ha-cart-summary { position: static; }
}

/* =============================================
   PRODUCT REVIEWS - PREMIUM DESIGN
   ============================================= */

.ha-reviews { max-width: 900px; }

/* Review Summary */
.ha-review-summary {
    display: flex;
    gap: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #fef3ec 0%, #fff7ed 100%);
    border-radius: 16px;
    margin-bottom: 28px;
    border: 1px solid #fed7aa;
}

.ha-review-score {
    text-align: center;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ha-score-number {
    font-size: 48px;
    font-weight: 900;
    color: #ea580c;
    line-height: 1;
    margin-bottom: 6px;
}

.ha-score-stars { margin-bottom: 4px; }

.ha-score-count {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.ha-rating-bars { flex: 1; display: flex; flex-direction: column; gap: 6px; justify-content: center; }

.ha-rating-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ha-bar-label {
    font-size: 13px;
    font-weight: 600;
    color: #f59e0b;
    min-width: 36px;
    text-align: right;
}

.ha-bar-track {
    flex: 1;
    height: 8px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #fed7aa;
}

.ha-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316, #ea580c);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.ha-bar-pct {
    font-size: 12px;
    color: #94a3b8;
    min-width: 36px;
    font-weight: 500;
}

/* Review Form */
.ha-review-form-wrap {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ha-star-selector { margin-bottom: 16px; }

.ha-stars-input {
    display: flex;
    gap: 4px;
}

.ha-stars-input .ha-star {
    font-size: 32px;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.ha-stars-input .ha-star:hover,
.ha-stars-input .ha-star.active {
    color: #f59e0b;
    transform: scale(1.15);
}

.ha-review-form .ha-form-group {
    margin-bottom: 14px;
}

.ha-review-form .ha-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.ha-review-form .ha-form-group input,
.ha-review-form .ha-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #fafbfc;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}

.ha-review-form .ha-form-group input:focus,
.ha-review-form .ha-form-group textarea:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.08);
    background: #fff;
}

.ha-submit-review {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), #c2410c);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.ha-submit-review:hover {
    background: linear-gradient(135deg, #c2410c, #9a3412);
    box-shadow: 0 8px 24px rgba(234,88,12,0.3);
    transform: translateY(-1px);
}

/* Review Cards */
.ha-review-list { margin-top: 8px; }

.ha-review-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}

.ha-review-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.ha-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ha-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}

.ha-review-body {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

/* Responsive Reviews */
@media (max-width: 768px) {
    .ha-review-summary {
        flex-direction: column;
        gap: 16px;
    }
    .ha-review-score { min-width: auto; }
    .ha-score-number { font-size: 36px; }
    .ha-review-form-wrap { padding: 16px; }
    .ha-stars-input .ha-star { font-size: 28px; }
}
