/* ============================================
   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 - Dynamic (can be overridden by theme options) */
    --primary: #FF4D00;
    --primary-dark: #cc3d00;
    --primary-light: #ff7a33;
    --primary-50: #fff3ed;
    --primary-100: #ffd7c2;
    --secondary: #059669;
    --secondary-dark: #047857;
    --secondary-light: #34d399;
    --accent: #FFC000;
    --accent-light: #ffd040;
    --header-bg: #ffffff;
    --footer-bg: #1e293b;
    --button-color: #FF4D00;
    --flash-sale-bg: linear-gradient(135deg, #fff3ed 0%, #ffd7c2 100%);
    --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(--header-bg);
    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;
}

/* Header Full Banner */
.header-full-banner {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    overflow: hidden;
}

.header-full-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 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(--menu-color, var(--primary));
    border-bottom-color: var(--menu-color, var(--primary));
    background: var(--menu-color-light, 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(--menu-color, 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(--menu-color, var(--primary-dark));
    filter: brightness(0.9);
}

/* === 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: 400;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition-fast);
}

.category-sidebar .cat-item>a:hover {
    background: var(--menu-color-light, var(--primary-50));
    color: var(--menu-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(--menu-color, var(--primary));
    font-weight: 500;
    background: var(--menu-color-light, var(--primary-50));
}

.category-sidebar .cat-item.expanded>a .arrow {
    transform: rotate(90deg);
    color: var(--menu-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: 500;
    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;
}

/* Fallback for broken images */
.product-card .card-image img {
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-base);
    background: var(--gray-50);
}

/* Show placeholder styling for broken images */
.product-card .card-image img[src$="placeholder.png"],
.product-card .card-image img[data-placeholder="true"] {
    opacity: 0.5;
    filter: grayscale(100%);
}

.product-card .card-image::before {
    content: '📷';
    position: absolute;
    font-size: 48px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.product-card .card-image img {
    position: relative;
    z-index: 1;
}

.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;
    z-index: 2;
}

/* 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);
    z-index: 3;
}

.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: 400;
    font-family: var(--font-family);
    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(--button-color);
    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-slider-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-100);
}

.brand-slider-header {
    margin-bottom: 20px;
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.brand-title .highlight {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.brand-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.brand-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 48px;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-fast);
    border-radius: 4px;
}

.brand-nav:hover {
    background: var(--primary);
    box-shadow: var(--shadow-sm);
}

.brand-nav.prev {
    left: 0;
}

.brand-nav.next {
    right: 0;
}

.brand-track-container {
    overflow: hidden;
    width: 100%;
}

.brand-track {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    width: max-content;
}

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

.brand-item {
    flex-shrink: 0;
    width: 160px;
    height: 90px;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

.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; /* AUTO RESIZE, PRESERVE RATIO */
    width: auto;
    height: auto;
    filter: grayscale(10%);
    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);
}

/* === NEWS PAGE - LISTING === */
.news-page-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--gray-200);
}

.news-page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.news-page-desc {
    font-size: 16px;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.6;
}

/* Category Tabs */
.news-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.news-cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
}

.news-cat-tab:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

.news-cat-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.cat-count {
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-weight: 600;
}

.news-cat-tab.active .cat-count {
    background: rgba(255, 255, 255, 0.3);
}

/* News Page Layout */
.news-page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
}

.news-main {
    min-width: 0;
}

/* Featured Card */
.news-featured-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 32px;
    transition: all var(--transition-base);
}

.news-featured-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.news-featured-image {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

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

.news-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.news-featured-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.news-featured-info {
    padding: 24px;
}

.news-featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
}

.news-cat-label {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
}

.news-featured-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.news-featured-title a {
    color: inherit;
    text-decoration: none;
}

.news-featured-title a:hover {
    color: var(--primary);
}

.news-featured-excerpt {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0 0 16px 0;
}

.news-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    font-size: 14px;
}

.news-read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
}

.news-read-more:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
}

.news-excerpt {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 8px 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
    font-size: 13px;
}

.news-author-small {
    color: var(--gray-500);
}

.news-read-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
}

.news-read-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.news-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    font-size: 48px;
}

/* === NEWS DETAIL PAGE === */
.news-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    margin-bottom: 48px;
}

.news-detail-content {
    min-width: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.news-detail-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.news-detail-cat-label {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--transition-base);
}

.news-detail-cat-label:hover {
    background: var(--primary-light);
    text-decoration: none;
}

.news-detail-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
    color: var(--gray-600);
}

.news-detail-featured-img {
    margin-bottom: 32px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.news-detail-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-800);
}

.news-detail-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 32px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-200);
}

.news-detail-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 24px 0 12px 0;
}

.news-detail-body p {
    margin: 16px 0;
}

.news-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 16px 0;
}

.news-detail-body a {
    color: var(--primary);
    text-decoration: underline;
}

.news-detail-body ul,
.news-detail-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.news-detail-body blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    background: var(--gray-50);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--gray-700);
}

.news-detail-body code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.news-detail-body pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 24px 0;
}

.news-detail-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.news-detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 24px 0;
    margin-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.tags-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-right: 8px;
}

/* Share Section */
.news-share-section {
    padding: 24px 0;
    margin-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.news-share-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.news-share-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.news-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
}

.news-share-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    text-decoration: none;
}

.news-share-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.news-share-btn.zalo:hover {
    background: #0068ff;
    border-color: #0068ff;
}

/* Author Box */
.news-author-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-top: 24px;
}

.news-author-avatar {
    flex-shrink: 0;
}

.news-author-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.news-author-info {
    flex: 1;
}

.news-author-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 8px 0;
}

.news-author-info p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* Post Navigation */
.news-post-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.news-nav-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-base);
}

.news-nav-item:hover {
    background: var(--gray-100);
    text-decoration: none;
}

.news-nav-label {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

.news-nav-title {
    font-size: 14px;
    color: var(--gray-800);
    font-weight: 600;
    line-height: 1.4;
}

/* === NEWS SIDEBAR === */
.news-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.news-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
}

.news-widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}

/* Categories List */
.news-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-cat-list li {
    margin-bottom: 8px;
}

.news-cat-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-base);
}

.news-cat-list li a:hover {
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
}

.news-cat-list li.active a {
    background: var(--primary);
    color: var(--white);
}

.news-cat-list li .count {
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-weight: 600;
}

.news-cat-list li.active .count,
.news-cat-list li a:hover .count {
    background: rgba(255, 255, 255, 0.3);
}

/* Popular Posts */
.news-popular-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-base);
}

.news-popular-item:hover {
    background: var(--gray-100);
    text-decoration: none;
}

.news-popular-rank {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

.news-popular-info {
    flex: 1;
    min-width: 0;
}

.news-popular-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 4px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-popular-date {
    font-size: 12px;
    color: var(--gray-500);
}

.news-popular-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.news-popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tags Cloud */
.news-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    color: var(--gray-700);
    font-size: 13px;
    text-decoration: none;
    transition: all var(--transition-base);
}

.news-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    text-decoration: none;
}

/* Table of Contents */
.news-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-toc-list li {
    margin-bottom: 8px;
}

.news-toc-list li a {
    display: block;
    padding: 8px 12px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 14px;
    border-left: 2px solid var(--gray-300);
    transition: all var(--transition-base);
}

.news-toc-list li a:hover {
    color: var(--primary);
    border-left-color: var(--primary);
    background: var(--gray-50);
    text-decoration: none;
}

.news-toc-list li.toc-sub a {
    padding-left: 24px;
    font-size: 13px;
}

/* === PAGINATION === */
.news-pagination {
    margin-top: 32px;
}

/* === RELATED POSTS === */
.news-related-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--gray-200);
}

.news-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

/* === EMPTY STATE === */
.news-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.news-empty-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

.news-empty h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 8px 0;
}

.news-empty p {
    font-size: 16px;
    color: var(--gray-600);
    margin: 0 0 24px 0;
}

/* === FOOTER === */
.footer {
    background: var(--footer-bg);
    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(--menu-color, 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(--menu-color-light, var(--primary-50)) !important;
}

.cat-tree-link.active {
    color: var(--menu-color, var(--primary));
    font-weight: 700;
    background: var(--menu-color-light, 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(--menu-color, var(--primary));
    background: var(--menu-color-light, var(--primary-50));
}

.sort-btn.active {
    color: var(--white);
    background: var(--menu-color, 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 {}

/* Product Sidebar Widgets */
.pd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 20px;
    align-self: start;
}

.pd-sidebar-widget {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-700);
}

.pd-sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.pd-sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pd-sidebar-widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--gray-50);
    font-size: 13px;
}

.pd-sidebar-widget ul li:last-child {
    border-bottom: none;
}

.pd-sidebar-widget ul li a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}

.pd-sidebar-widget ul li a:hover {
    color: var(--primary);
}

.pd-sidebar-widget img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.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;
    white-space: nowrap;
}

.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;
}

/* 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;
    white-space: nowrap;
}

.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-sale-section {
    position: relative;
    z-index: 1;
    overflow: visible;
}

.flash-countdown {
    margin-bottom: 0px;
    flex-shrink: 0;
}

.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);
    display: inline-block;
}

.cd-sep {
    font-weight: 800;
    color: var(--primary);
    font-size: var(--text-lg);
    display: inline-block;
}

/* Ensure Flash Sale header doesn't overflow */
.flash-sale-section .section-header {
    flex-wrap: wrap;
    gap: 16px;
}

.flash-sale-section .section-title {
    white-space: nowrap;
}

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

.floating-widgets.compare-active {
    bottom: 100px;
}

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

.widget-btn:hover {
    transform: scale(1.15);
    color: var(--white);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25), 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.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;
    }

    /* News tablet responsive */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .news-sidebar {
        width: 100%;
    }
}

@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);
    }

    /* News responsive */
    .news-page-layout {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
    }

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

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

    .news-page-title {
        font-size: 24px;
    }

    .news-detail-title {
        font-size: 24px;
    }

    .news-detail-layout {
        grid-template-columns: 1fr;
    }

    .news-detail-content {
        padding: 20px;
    }

    .news-featured-title {
        font-size: 20px;
    }

    .news-post-nav {
        grid-template-columns: 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;
    }
}

/* ============================================
   DARK THEME OVERRIDES
   Activated by body.dark-theme class
   Full coverage: all components, WooCommerce, forms
   ============================================ */

/* === Core Variables Override === */
body.dark-theme {
    --white: #1a1a2e;
    --gray-50: #16213e;
    --gray-100: #1a1a2e;
    --gray-200: #2a2a4a;
    --gray-300: #3a3a5c;
    --gray-400: #8888a8;
    --gray-500: #a0a0bc;
    --gray-600: #c0c0d4;
    --gray-700: #d8d8e8;
    --gray-800: #e8e8f0;
    --gray-900: #f5f5fa;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 10px 25px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
    background: #0f0f23;
    color: #e8e8f0;
}

/* === Global === */
body.dark-theme a {
    color: var(--primary-light, var(--primary));
}

body.dark-theme a:hover {
    color: var(--primary);
}

body.dark-theme hr {
    border-color: #2a2a4a;
}

body.dark-theme img {
    opacity: 0.92;
}

/* === All inputs, selects, textareas === */
body.dark-theme input[type="text"],
body.dark-theme input[type="email"],
body.dark-theme input[type="password"],
body.dark-theme input[type="number"],
body.dark-theme input[type="tel"],
body.dark-theme input[type="url"],
body.dark-theme input[type="search"],
body.dark-theme select,
body.dark-theme textarea {
    background: #16213e !important;
    border-color: #2a2a4a !important;
    color: #e8e8f0 !important;
}

body.dark-theme input:focus,
body.dark-theme select:focus,
body.dark-theme textarea:focus {
    background: #1e1e3a !important;
    border-color: var(--primary) !important;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
    color: #8888a8 !important;
}

/* === Header === */
body.dark-theme .header {
    background: #1a1a2e;
    border-bottom: 1px solid #2a2a4a;
}

body.dark-theme .header-main {
    border-bottom-color: #2a2a4a;
}

body.dark-theme .header-nav {
    background: #1a1a2e;
    border-bottom-color: var(--primary);
}

body.dark-theme .header-top {
    /* keeps primary bg = fine */
}

/* Search */
body.dark-theme .search-box input {
    background: #16213e !important;
    border-color: #2a2a4a !important;
    color: #e8e8f0 !important;
}

body.dark-theme .search-box input:focus {
    background: #1a1a2e !important;
    border-color: var(--primary) !important;
}

body.dark-theme .search-box input::placeholder {
    color: #8888a8 !important;
}

body.dark-theme .search-suggestions {
    background: #1a1a2e;
    border-color: #2a2a4a;
}

body.dark-theme .search-suggestions .suggestion-item:hover {
    background: #2a2a4a;
}

body.dark-theme .search-suggestions .suggestion-item .info .name {
    color: #e8e8f0;
}

/* Header actions */
body.dark-theme .header-action-btn {
    color: #d8d8e8;
    border-color: #2a2a4a;
}

body.dark-theme .header-action-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Mini cart */
body.dark-theme .mini-cart-dropdown {
    background: #1a1a2e;
    border-color: #2a2a4a;
}

body.dark-theme .mini-cart-header {
    border-bottom-color: #2a2a4a;
    color: #e8e8f0;
}

body.dark-theme .mini-cart-items {
    background: #16213e;
    color: #a0a0bc;
}

body.dark-theme .mini-cart-item {
    background: #1a1a2e;
    border-bottom-color: #2a2a4a;
}

body.dark-theme .mini-cart-item-name {
    color: #e8e8f0;
}

body.dark-theme .mini-cart-footer {
    background: #1a1a2e;
    border-top-color: #2a2a4a;
}

/* Navigation */
body.dark-theme .nav-menu>li>a {
    color: #d8d8e8;
}

body.dark-theme .nav-menu>li>a:hover,
body.dark-theme .nav-menu>li>a.active {
    color: var(--primary);
    background: rgba(255, 77, 0, 0.08);
}

body.dark-theme .nav-right a {
    color: #d8d8e8;
}

/* === Hero Section === */
body.dark-theme .hero-section {
    background: #0f0f23;
}

body.dark-theme .hero-banners .mini-banner {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* === Category Sidebar === */
body.dark-theme .category-sidebar {
    background: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .category-sidebar .main-cat-list {
    background: #1a1a2e;
}

body.dark-theme .category-sidebar .cat-item>a {
    color: #d8d8e8;
    border-bottom-color: #2a2a4a;
}

body.dark-theme .category-sidebar .cat-item>a:hover {
    background: #2a2a4a;
    color: var(--primary);
}

body.dark-theme .category-sidebar .cat-item.expanded>a {
    color: var(--primary);
    background: rgba(255, 77, 0, 0.08);
}

body.dark-theme .category-sidebar .cat-children.level-2 {
    background: #1a1a2e;
    border-color: #2a2a4a;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.4);
}

body.dark-theme .category-sidebar .cat-children.level-2>.cat-item>a {
    color: #e8e8f0;
    border-bottom-color: #2a2a4a;
}

body.dark-theme .category-sidebar .cat-children.level-2>.cat-item>a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

body.dark-theme .category-sidebar .cat-children.level-3 .cat-item a {
    color: #a0a0bc;
}

body.dark-theme .category-sidebar .cat-children.level-3 .cat-item a:hover {
    color: var(--primary);
}

/* === Product Cards === */
body.dark-theme .product-card {
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
}

body.dark-theme .product-card:hover {
    border-color: #3a3a5c;
}

body.dark-theme .product-card .card-image {
    background: #16213e;
}

body.dark-theme .card-info .product-name {
    color: #e8e8f0;
}

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

body.dark-theme .price-original {
    color: #8888a8;
}

body.dark-theme .card-actions button {
    color: #d8d8e8;
    border-color: #2a2a4a;
}

body.dark-theme .card-actions button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Quick banners */
body.dark-theme .quick-banner-item {
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
}

body.dark-theme .quick-banner-item:hover {
    border-color: var(--primary);
}

body.dark-theme .quick-banner-item .qb-info h4 {
    color: #e8e8f0;
}

body.dark-theme .quick-banner-item .qb-info p {
    color: #8888a8;
}

/* === Sections === */
body.dark-theme .section {
    background: #0f0f23;
}

body.dark-theme .section-alt {
    background: #16213e;
}

body.dark-theme .section-header {
    border-bottom-color: #2a2a4a;
}

body.dark-theme .section-title {
    color: #f5f5fa;
}

body.dark-theme .view-all-link {
    color: var(--primary);
}

/* === Flash Sale === */
body.dark-theme .flash-sale-section {
    background: #1a1a2e;
    border-color: #2a2a4a;
}

body.dark-theme .flash-countdown span {
    background: #16213e;
    color: #e8e8f0;
    border-color: #2a2a4a;
}

/* === Gallery Banners / Promo === */
body.dark-theme .gallery-banner-item {
    border: 1px solid #2a2a4a;
}

body.dark-theme .gallery-banner-item:hover {
    border-color: #3a3a5c;
}

/* === Blog === */
body.dark-theme .blog-card {
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
}

body.dark-theme .blog-card:hover {
    border-color: #3a3a5c;
}

body.dark-theme .blog-title a {
    color: #e8e8f0;
}

body.dark-theme .blog-title a:hover {
    color: var(--primary);
}

body.dark-theme .blog-date {
    color: #8888a8;
}

body.dark-theme .blog-category a {
    color: var(--primary);
}

body.dark-theme .blog-info {
    color: #c0c0d4;
}

/* === News Pages Dark Mode === */
body.dark-theme .news-page-header {
    border-bottom-color: #2a2a4a;
}

body.dark-theme .news-page-title {
    color: #e8e8f0;
}

body.dark-theme .news-page-desc {
    color: #a0a0bc;
}

body.dark-theme .news-category-tabs {
    border-bottom-color: #2a2a4a;
}

body.dark-theme .news-cat-tab {
    background: #1a1a2e;
    border-color: #2a2a4a;
    color: #c0c0d4;
}

body.dark-theme .news-cat-tab:hover {
    background: #2a2a4a;
    border-color: var(--primary);
    color: var(--primary);
}

body.dark-theme .news-cat-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

body.dark-theme .news-page-layout {
    color: #e8e8f0;
}

body.dark-theme .news-featured-card {
    background: #1a1a2e;
    border-color: #2a2a4a;
}

body.dark-theme .news-featured-card:hover {
    border-color: #3a3a5c;
}

body.dark-theme .news-featured-title a {
    color: #e8e8f0;
}

body.dark-theme .news-featured-title a:hover {
    color: var(--primary);
}

body.dark-theme .news-featured-excerpt {
    color: #a0a0bc;
}

body.dark-theme .news-featured-footer {
    border-top-color: #2a2a4a;
}

body.dark-theme .news-read-more {
    color: var(--primary);
}

body.dark-theme .news-card {
    background: #1a1a2e;
    border-color: #2a2a4a;
}

body.dark-theme .news-card:hover {
    border-color: #3a3a5c;
}

body.dark-theme .news-card-meta span {
    color: #a0a0bc;
}

body.dark-theme .news-excerpt {
    color: #a0a0bc;
}

body.dark-theme .news-card-footer {
    border-top-color: #2a2a4a;
}

body.dark-theme .news-author-small {
    color: #8888a8;
}

body.dark-theme .news-read-link {
    color: var(--primary);
}

body.dark-theme .news-no-thumb {
    background: #16213e;
}

body.dark-theme .news-cat-label {
    color: var(--primary);
}

body.dark-theme .news-date {
    color: #8888a8;
}

/* News Detail Dark Mode */
body.dark-theme .news-detail-layout {
    color: #e8e8f0;
}

body.dark-theme .news-detail-content {
    background: #1a1a2e;
    border-color: #2a2a4a;
}

body.dark-theme .news-detail-title {
    color: #e8e8f0;
}

body.dark-theme .news-detail-meta {
    color: #a0a0bc;
    border-bottom-color: #2a2a4a;
}

body.dark-theme .news-detail-body {
    color: #c0c0d4;
}

body.dark-theme .news-detail-body h2 {
    color: #e8e8f0;
    border-bottom-color: #2a2a4a;
}

body.dark-theme .news-detail-body h3 {
    color: #d8d8e8;
}

body.dark-theme .news-detail-body blockquote {
    background: #16213e;
    color: #a0a0bc;
}

body.dark-theme .news-detail-body code {
    background: #16213e;
    color: #e8e8f0;
}

body.dark-theme .news-detail-body pre {
    background: #0a0a1a;
    color: #e8e8f0;
}

body.dark-theme .news-detail-tags {
    border-top-color: #2a2a4a;
}

body.dark-theme .tags-label {
    color: #c0c0d4;
}

body.dark-theme .news-share-section {
    border-top-color: #2a2a4a;
}

body.dark-theme .news-share-label {
    color: #c0c0d4;
}

body.dark-theme .news-share-btn {
    background: #16213e;
    border-color: #2a2a4a;
    color: #c0c0d4;
}

body.dark-theme .news-share-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

body.dark-theme .news-author-box {
    background: #16213e;
}

body.dark-theme .news-author-info h4 {
    color: #e8e8f0;
}

body.dark-theme .news-author-info p {
    color: #a0a0bc;
}

body.dark-theme .news-post-nav {
    border-top-color: #2a2a4a;
}

body.dark-theme .news-nav-item {
    background: #16213e;
}

body.dark-theme .news-nav-item:hover {
    background: #1a1a2e;
}

body.dark-theme .news-nav-label {
    color: #8888a8;
}

body.dark-theme .news-nav-title {
    color: #d8d8e8;
}

/* News Sidebar Dark Mode */
body.dark-theme .news-widget {
    background: #1a1a2e;
    border-color: #2a2a4a;
}

body.dark-theme .news-widget-title {
    color: #e8e8f0;
    border-bottom-color: #2a2a4a;
}

body.dark-theme .news-cat-list li a {
    background: #16213e;
    color: #c0c0d4;
}

body.dark-theme .news-cat-list li a:hover {
    background: var(--primary);
    color: #fff;
}

body.dark-theme .news-cat-list li.active a {
    background: var(--primary);
    color: #fff;
}

body.dark-theme .news-popular-item {
    background: #16213e;
}

body.dark-theme .news-popular-item:hover {
    background: #1a1a2e;
}

body.dark-theme .news-popular-info h4 {
    color: #d8d8e8;
}

body.dark-theme .news-popular-date {
    color: #8888a8;
}

body.dark-theme .news-tag {
    background: #16213e;
    border-color: #2a2a4a;
    color: #c0c0d4;
}

body.dark-theme .news-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

body.dark-theme .news-toc-list li a {
    color: #c0c0d4;
    border-left-color: #2a2a4a;
}

body.dark-theme .news-toc-list li a:hover {
    color: var(--primary);
    border-left-color: var(--primary);
    background: #16213e;
}

/* Pagination & Related Dark Mode handled in premium unified pagination styling */

body.dark-theme .news-related-section {
    border-top-color: #2a2a4a;
}

body.dark-theme .news-empty {
    background: #1a1a2e;
}

body.dark-theme .news-empty h3 {
    color: #d8d8e8;
}

body.dark-theme .news-empty p {
    color: #a0a0bc;
}

/* === Footer === */
body.dark-theme .footer {
    background: #0a0a1a;
}

body.dark-theme .footer-newsletter {
    background: #16213e;
}

body.dark-theme .footer-newsletter h3 {
    color: #e8e8f0;
}

body.dark-theme .footer-newsletter p {
    color: #a0a0bc;
}

body.dark-theme .newsletter-form input {
    background: #1a1a2e !important;
    border-color: #2a2a4a !important;
    color: #e8e8f0 !important;
}

body.dark-theme .footer-main {
    background: #0f0f23;
    color: #c0c0d4;
}

body.dark-theme .footer-main h4 {
    color: #e8e8f0;
}

body.dark-theme .footer-main a {
    color: #a0a0bc;
}

body.dark-theme .footer-main a:hover {
    color: var(--primary);
}

body.dark-theme .footer-main ul li {
    border-bottom-color: #2a2a4a;
}

body.dark-theme .footer-bottom {
    background: #0a0a1a;
    color: #8888a8;
    border-top: 1px solid #2a2a4a;
}

/* === Breadcrumb === */
body.dark-theme .breadcrumb {
    background: #16213e;
    border-color: #2a2a4a;
}

body.dark-theme .breadcrumb a {
    color: #a0a0bc;
}

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

body.dark-theme .breadcrumb .current {
    color: #e8e8f0;
}

/* === Modals & Overlays === */
body.dark-theme .modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}

body.dark-theme .modal-content {
    background: #1a1a2e;
    color: #e8e8f0;
    border: 1px solid #2a2a4a;
}

body.dark-theme .modal-close {
    color: #8888a8;
}

body.dark-theme .modal-close:hover {
    color: #e8e8f0;
}

/* === Compare === */
body.dark-theme .compare-bar {
    background: #1a1a2e;
    border-top: 2px solid #2a2a4a;
}

body.dark-theme .compare-modal-content {
    background: #1a1a2e;
}

body.dark-theme .compare-table {
    border-color: #2a2a4a;
}

body.dark-theme .compare-table th {
    background: #16213e;
    color: #e8e8f0;
    border-color: #2a2a4a;
}

body.dark-theme .compare-table td {
    background: #1a1a2e;
    color: #d8d8e8;
    border-color: #2a2a4a;
}

/* === Toast === */
body.dark-theme .toast {
    background: #2a2a4a;
    color: #e8e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* === WooCommerce: My Account === */
body.dark-theme .woocommerce-MyAccount-navigation {
    background: #1a1a2e;
    border-color: #2a2a4a;
}

body.dark-theme .woocommerce-MyAccount-navigation a {
    color: #d8d8e8;
}

body.dark-theme .woocommerce-MyAccount-navigation a:hover {
    color: var(--primary);
    background: #2a2a4a;
}

body.dark-theme .woocommerce-MyAccount-navigation .is-active a {
    color: var(--primary);
    background: rgba(255, 77, 0, 0.1);
}

body.dark-theme .woocommerce-MyAccount-content {
    background: #1a1a2e;
    color: #e8e8f0;
    border-color: #2a2a4a;
}

body.dark-theme .ha-action-card {
    background: #16213e;
    border-color: #2a2a4a;
    color: #e8e8f0;
}

body.dark-theme .ha-action-card:hover {
    background: #1a1a2e;
    border-color: var(--primary);
}

body.dark-theme .woocommerce-account .u-columns .col-1,
body.dark-theme .woocommerce-account .u-columns .col-2 {
    background: #1a1a2e;
    border-color: #2a2a4a;
}

/* === WooCommerce: Orders === */
body.dark-theme .ha-order-card {
    background: #1a1a2e;
    border-color: #2a2a4a;
}

body.dark-theme .ha-order-card:hover {
    border-color: #3a3a5c;
}

/* === WooCommerce: Cart === */
body.dark-theme .ha-cart-items {
    background: #1a1a2e;
    border-color: #2a2a4a;
}

body.dark-theme .ha-summary-card {
    background: #1a1a2e;
    border-color: #2a2a4a;
}

/* === WooCommerce: Tables === */
body.dark-theme .woocommerce table {
    border-color: #2a2a4a;
}

body.dark-theme .woocommerce table th {
    background: #16213e;
    color: #e8e8f0;
    border-color: #2a2a4a;
}

body.dark-theme .woocommerce table td {
    background: #1a1a2e;
    color: #d8d8e8;
    border-color: #2a2a4a;
}

body.dark-theme .woocommerce table tr:nth-child(even) td {
    background: #16213e;
}

/* === WooCommerce: Checkout === */
body.dark-theme .woocommerce-checkout,
body.dark-theme .woocommerce-cart {
    color: #e8e8f0;
}

body.dark-theme .woocommerce form.checkout {
    background: #1a1a2e;
}

body.dark-theme .woocommerce-checkout-review-order-table {
    border-color: #374151 !important;
}

/* =============================================
   18. WOOCOMMERCE NOTICES & VALIDATION STYLING
   ============================================= */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    padding: 16px 20px !important;
    margin: 0 0 25px 0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    list-style: none !important;
}

/* Error notices (Validation failures, card errors) */
.woocommerce-error {
    background-color: #fef2f2 !important;
    border-left: 4px solid #ef4444 !important;
    color: #b91c1c !important;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.1) !important;
}
.woocommerce-error li {
    list-style: none !important;
    margin-left: 0 !important;
    margin-bottom: 6px !important;
    position: relative !important;
    padding-left: 20px !important;
}
.woocommerce-error li:last-child {
    margin-bottom: 0 !important;
}
.woocommerce-error li::before {
    content: "⚠️" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
}

/* Success notices */
.woocommerce-message {
    background-color: #f0fdf4 !important;
    border-left: 4px solid #22c55e !important;
    color: #166534 !important;
    box-shadow: 0 1px 3px rgba(34, 197, 94, 0.1) !important;
}
.woocommerce-message::before {
    content: "✅  " !important;
    font-weight: bold !important;
}

/* Info notices (Coupons, login forms) */
.woocommerce-info {
    background-color: #fef3ec !important; /* Soft orange matching primary theme tint */
    border-left: 4px solid var(--primary) !important;
    color: #c2410c !important; /* Dark orange/brownish */
    box-shadow: 0 1px 3px rgba(255, 77, 0, 0.1) !important;
}
.woocommerce-info::before {
    content: "ℹ️  " !important;
}

/* Style for invalid input fields highlighted by WooCommerce validation */
.woocommerce-invalid input,
.woocommerce-invalid select,
.woocommerce-invalid textarea {
    border: 1.5px solid #ef4444 !important;
    background-color: #fff5f5 !important;
    transition: all 0.2s ease !important;
}
.woocommerce-invalid input:focus,
.woocommerce-invalid select:focus,
.woocommerce-invalid textarea:focus {
    outline: none !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* Label indicating error for invalid fields */
.woocommerce-invalid label {
    color: #b91c1c !important;
}

/* === WooCommerce: Product Detail === */
body.dark-theme .product-detail {
    color: #e8e8f0;
}

body.dark-theme .pd-info {
    color: #e8e8f0;
}

body.dark-theme .pd-specs table td,
body.dark-theme .pd-specs table th {
    border-color: #2a2a4a;
}

body.dark-theme .pd-specs table tr:nth-child(even) {
    background: #16213e;
}

body.dark-theme .pd-tabs .tab-btn {
    background: #16213e;
    color: #d8d8e8;
    border-color: #2a2a4a;
}

body.dark-theme .pd-tabs .tab-btn.active {
    background: var(--primary);
    color: #fff;
}

body.dark-theme .pd-tab-content {
    background: #1a1a2e;
    border-color: #2a2a4a;
    color: #d8d8e8;
}

body.dark-theme .pd-sidebar-widget {
    background: #1a1a2e;
    border-color: #2a2a4a;
}

/* === Reviews === */
body.dark-theme .ha-review-item,
body.dark-theme .ha-review-card {
    background: #16213e;
    border-color: #2a2a4a;
    color: #d8d8e8;
}

body.dark-theme .ha-review-form-wrap {
    background: #16213e;
    border-color: #2a2a4a;
}

body.dark-theme .ha-bar-track {
    background: #2a2a4a;
}

body.dark-theme .ha-review-summary {
    background: #1a1a2e;
    border-color: #2a2a4a;
}

/* === Flash Sale Timer === */
body.dark-theme .flash-timer-box {
    background: #16213e;
    color: #e8e8f0;
}

/* === Product Grid / Shop Page === */
body.dark-theme .shop-content {
    color: #e8e8f0;
}

body.dark-theme .filter-widget {
    background: #1a1a2e;
    border-color: #2a2a4a;
}

body.dark-theme .filter-title {
    color: #e8e8f0;
}

/* === Category Page Header === */
body.dark-theme .page-header {
    background: #16213e;
}

body.dark-theme .page-title {
    color: #f5f5fa;
}

/* === 404 Page === */
body.dark-theme .error-404 {
    color: #e8e8f0;
}

/* === Global Category Dropdown === */
body.dark-theme .global-category-dropdown {
    background: rgba(0, 0, 0, 0.4);
}

/* === Scroll/Floating Widgets — keep bright === */
body.dark-theme .floating-widgets .widget-btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* === ARTICLE SIDEBAR WIDGETS === */
.article-sidebar-widget {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.article-sidebar-widget .article-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.article-sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
}

.article-sidebar-widget ul li:last-child {
    border-bottom: none;
}

.article-sidebar-widget ul li a {
    color: var(--gray-700);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: block;
}

.article-sidebar-widget ul li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

/* === Hero slider subtle border === */
body.dark-theme .hero-slider {
    border: 1px solid #2a2a4a;
}

/* === PREMIUM UNIFIED PAGINATION STYLING === */
.woocommerce-pagination,
.news-pagination,
.pagination-container,
.pagination {
    text-align: center;
    margin: 45px 0 25px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.navigation.pagination {
    display: flex;
    justify-content: center;
    width: 100%;
}

.navigation.pagination .screen-reader-text {
    display: none !important;
}

ul.page-numbers,
.pagination .nav-links,
.news-pagination .nav-links,
.navigation.pagination .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 6px 14px;
    margin: 0;
    gap: 6px;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

body.dark-theme ul.page-numbers,
body.dark-theme .pagination .nav-links,
body.dark-theme .news-pagination .nav-links,
body.dark-theme .navigation.pagination .nav-links {
    background: #1e1e2f;
    border-color: #2e2e3f;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

ul.page-numbers li {
    margin: 0;
    padding: 0;
    display: inline-block;
}

ul.page-numbers .page-numbers,
.pagination .nav-links .page-numbers,
.news-pagination .nav-links .page-numbers,
.navigation.pagination .nav-links .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: 1px solid transparent;
}

body.dark-theme ul.page-numbers .page-numbers,
body.dark-theme .pagination .nav-links .page-numbers,
body.dark-theme .news-pagination .nav-links .page-numbers,
body.dark-theme .navigation.pagination .nav-links .page-numbers {
    color: #cbd5e1;
}

/* Hover state */
ul.page-numbers a.page-numbers:hover,
.pagination .nav-links a.page-numbers:hover,
.news-pagination .nav-links a.page-numbers:hover,
.navigation.pagination .nav-links a.page-numbers:hover {
    background: var(--primary-light, #ff7a33);
    color: #ffffff;
    border-color: var(--primary-light, #ff7a33);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(255, 77, 0, 0.15);
}

/* Active / Current state */
ul.page-numbers .page-numbers.current,
.pagination .nav-links .page-numbers.current,
.news-pagination .nav-links .page-numbers.current,
.navigation.pagination .nav-links .page-numbers.current {
    background: var(--primary, #FF4D00);
    color: #ffffff;
    border-color: var(--primary, #FF4D00);
    box-shadow: 0 4px 10px rgba(255, 77, 0, 0.35);
}

/* Dots state */
ul.page-numbers span.page-numbers.dots,
.pagination .nav-links span.page-numbers.dots,
.news-pagination .nav-links span.page-numbers.dots,
.navigation.pagination .nav-links span.page-numbers.dots {
    color: #94a3b8;
    font-weight: 500;
    cursor: default;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Prev/Next arrows specific style */
ul.page-numbers .prev.page-numbers,
ul.page-numbers .next.page-numbers,
.pagination .nav-links .prev.page-numbers,
.pagination .nav-links .next.page-numbers,
.news-pagination .nav-links .prev.page-numbers,
.news-pagination .nav-links .next.page-numbers,
.navigation.pagination .nav-links .prev.page-numbers,
.navigation.pagination .nav-links .next.page-numbers {
    font-size: 13px;
    border-radius: 20px;
    padding: 0 14px;
    min-width: auto;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

body.dark-theme ul.page-numbers .prev.page-numbers,
body.dark-theme ul.page-numbers .next.page-numbers,
body.dark-theme .pagination .nav-links .prev.page-numbers,
body.dark-theme .pagination .nav-links .next.page-numbers,
body.dark-theme .news-pagination .nav-links .prev.page-numbers,
body.dark-theme .news-pagination .nav-links .next.page-numbers,
body.dark-theme .navigation.pagination .nav-links .prev.page-numbers,
body.dark-theme .navigation.pagination .nav-links .next.page-numbers {
    background: #181824;
    border-color: #2e2e3f;
}

ul.page-numbers .prev.page-numbers:hover,
ul.page-numbers .next.page-numbers:hover,
.pagination .nav-links .prev.page-numbers:hover,
.pagination .nav-links .next.page-numbers:hover,
.news-pagination .nav-links .prev.page-numbers:hover,
.news-pagination .nav-links .next.page-numbers:hover,
.navigation.pagination .nav-links .prev.page-numbers:hover,
.navigation.pagination .nav-links .next.page-numbers:hover {
    background: var(--primary, #FF4D00);
    color: #ffffff;
    border-color: var(--primary, #FF4D00);
}

/* =============================================
   MOBILE RESPONSIVENESS — COMPLETE REWRITE
   Hồng Anh Technology Theme
   Breakpoints: 1024 → 768 → 576 → 480 → 375
   PC layout untouched — all rules scoped in @media
   ============================================= */

/* 0. Breadcrumb — always wrap (no breakpoint needed) */
.breadcrumb {
    flex-wrap: wrap;
    line-height: 1.6;
}

/* ─────────────────────────────────────────────
   BREAKPOINT: ≤ 991px  (Tablet landscape / small desktop)
   ───────────────────────────────────────────── */
@media (max-width: 991px) {

    /* WooCommerce Checkout: stack columns */
    .woocommerce-checkout form.checkout {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        width: 100% !important;
        float: none !important;
    }

    /* Contact page form columns */
    .contact-form-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ─────────────────────────────────────────────
   BREAKPOINT: ≤ 768px  (Tablet portrait / large phone)
   ───────────────────────────────────────────── */
@media (max-width: 768px) {

    /* ── 1. TOP BAR ── */
    .header-top .container {
        flex-direction: column;
        gap: 4px;
        text-align: center;
        padding: 6px 12px;
    }
    .header-top-left,
    .header-top-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        font-size: 11px;
    }

    /* ── 2. HEADER MAIN ── */
    .header-main .container {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 12px;
    }
    .header-main .logo {
        order: 1;
        flex: 1;
        min-width: 0;
    }
    .header-main .logo img {
        max-width: 180px !important;
        height: 36px !important;
    }
    .header-actions {
        order: 2;
        gap: 6px;
        flex-shrink: 0;
    }
    .search-box {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }
    .search-box input {
        padding: 10px 42px 10px 14px;
        font-size: 14px;
        border-radius: 10px;
        background: var(--gray-100);
        border: 1.5px solid var(--gray-200);
    }
    .search-box input:focus {
        background: var(--white);
        border-color: var(--primary);
    }
    .search-box button {
        width: 38px;
        height: 32px;
        border-radius: 8px;
        right: 5px;
    }

    /* Header action buttons — icon-only on mobile */
    .header-action-btn {
        padding: 8px;
        border-radius: 10px;
        border: 1px solid var(--gray-200);
        gap: 0;
        min-width: 40px;
        min-height: 40px;
        justify-content: center;
    }
    .header-action-btn > span:not(.icon):not(.badge-count) {
        display: none;
    }
    .header-action-btn .icon {
        font-size: 18px;
    }
    .header-action-btn .badge-count {
        top: -2px;
        right: -2px;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
    }

    /* Mini Cart dropdown — full width on mobile */
    .mini-cart-dropdown {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 70vh;
        border-radius: 16px 16px 0 0;
        z-index: 1000;
        transform: translateY(100%);
    }
    .header-action-wrap:hover .mini-cart-dropdown,
    .mini-cart-dropdown.mobile-open {
        transform: translateY(0);
    }
    .mini-cart-dropdown::before {
        display: none;
    }

    /* ── 3. NAVIGATION BAR ── */
    .header-nav {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        position: relative;
    }
    .header-nav::-webkit-scrollbar {
        display: none;
    }
    /* Fade gradient hint for scroll */
    .header-nav::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, var(--white));
        pointer-events: none;
        z-index: 2;
    }
    .header-nav .container {
        padding: 0 12px;
    }
    .nav-menu {
        display: flex;
        white-space: nowrap;
        width: max-content;
        padding-right: 40px; /* Space for fade gradient */
    }
    .nav-menu > li > a {
        padding: 10px 14px;
        font-size: 13px;
        gap: 4px;
    }
    .nav-menu > li:first-child {
        width: auto !important;
        margin-right: 0;
    }
    .nav-menu .nav-category-btn {
        padding: 10px 14px;
        border-radius: 0;
        font-size: 13px;
        width: auto !important;
    }
    .nav-right {
        display: none;
    }

    /* ── 4. GLOBAL CATEGORY DROPDOWN (Accordion mobile) ── */
    .global-category-dropdown {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 9999 !important;
        padding: 0 !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .global-category-dropdown .container {
        padding: 0;
    }
    .global-category-dropdown .category-sidebar {
        display: block !important;
        width: 85% !important;
        max-width: 320px !important;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
        border-top: none;
        border-radius: 0 !important;
        background: var(--white);
        min-height: 100vh;
        position: relative;
    }
    /* Close button (X) for global category dropdown */
    .global-category-dropdown .category-sidebar::before {
        content: '✕';
        position: absolute;
        top: 10px;
        right: -44px;
        width: 36px;
        height: 36px;
        background: var(--white);
        color: var(--gray-700);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        z-index: 10;
        cursor: pointer;
        pointer-events: none; /* CSS can't handle click, but dark overlay area IS clickable */
    }
    .global-category-dropdown .category-sidebar .main-cat-list {
        border-radius: 0 !important;
    }
    /* Header for mobile category panel */
    .global-category-dropdown .category-sidebar .main-cat-list::before {
        content: '☰ Danh mục sản phẩm';
        display: block;
        padding: 14px 16px;
        font-size: 15px;
        font-weight: 700;
        color: var(--white);
        background: var(--primary);
        border-bottom: 1px solid var(--gray-100);
    }
    .global-category-dropdown .cat-item > a {
        padding: 12px 16px;
        font-size: 14px;
    }
    .global-category-dropdown .cat-children.level-2 {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 8px 16px 8px 32px !important;
        display: none !important;
        flex-direction: column !important;
        background: var(--gray-50) !important;
        border-radius: 0 !important;
    }
    .global-category-dropdown .cat-item.expanded > .cat-children.level-2 {
        display: flex !important;
    }
    .global-category-dropdown .cat-children.level-2 > .cat-item {
        width: 100% !important;
        margin-bottom: 4px;
    }
    .global-category-dropdown .cat-children.level-2 > .cat-item > a {
        padding: 8px 12px;
        font-size: 13px;
        border-bottom: 1px solid var(--gray-100);
    }
    .global-category-dropdown .cat-children.level-3 {
        padding-left: 16px;
    }

    /* ── 5. HERO SECTION ── */
    /* Homepage category sidebar: hidden by default on mobile.
       JS toggleCategorySidebar() adds .hidden on 1st click, removes on 2nd.
       So .hidden = open on mobile (inverted logic). */
    .hero-section .category-sidebar {
        display: none !important;
    }
    .hero-section .category-sidebar.hidden {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        z-index: 9999;
        background: var(--white);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
        animation: slideInLeft 0.3s ease;
    }
    /* Dark overlay behind homepage category sidebar */
    .hero-section .category-sidebar.hidden::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    /* Header title for homepage mobile category panel */
    .hero-section .category-sidebar.hidden .main-cat-list::before {
        content: '☰ Danh mục sản phẩm';
        display: block;
        padding: 14px 16px;
        font-size: 15px;
        font-weight: 700;
        color: var(--white);
        background: var(--primary);
        border-bottom: 1px solid var(--gray-100);
    }
    @keyframes slideInLeft {
        from {
            transform: translateX(-100%);
        }
        to {
            transform: translateX(0);
        }
    }
    .hero-banners {
        display: none !important;
    }
    .hero-section .container {
        padding: 0 12px;
    }
    .hero-slider {
        min-height: 200px;
        border-radius: 10px;
    }
    .hero-slider .slide-content {
        max-width: 100% !important;
        padding: 16px !important;
        text-align: center;
        background: rgba(0, 0, 0, 0.45);
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .hero-slider .slide-content h2 {
        font-size: 18px !important;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    .hero-slider .slide-content p {
        font-size: 12px !important;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .btn-slider {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
    .slider-nav {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .slider-nav.prev { left: 6px; }
    .slider-nav.next { right: 6px; }
    .slider-dots .dot {
        width: 8px;
        height: 8px;
    }
    .slider-dots .dot.active {
        width: 22px;
    }

    /* ── 6. QUICK BANNERS ── */
    .quick-banners {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        padding: 0 0 12px;
    }
    .quick-banner-item {
        padding: 12px;
        gap: 8px;
        border-radius: 10px;
    }
    .quick-banner-item .qb-icon {
        font-size: 24px;
    }
    .quick-banner-item .qb-info h4 {
        font-size: 12px;
    }
    .quick-banner-item .qb-info p {
        font-size: 10px;
    }

    /* ── 7. BRAND SLIDER ── */
    .brand-slider {
        padding: 16px 0;
    }
    .brand-track {
        gap: 12px;
        padding: 10px 0;
    }
    .brand-item {
        width: 90px;
        height: 45px;
        padding: 6px;
    }

    /* ── 8. SECTION HEADERS ── */
    .section-header {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 14px;
    }
    .section-title {
        font-size: 16px;
        padding-bottom: 6px;
    }
    .section-title::after {
        width: 35px;
        height: 2px;
    }
    .view-all-link {
        font-size: 12px;
    }
    .section {
        padding: 20px 0;
    }

    /* ── 9. PRODUCT GRID ── */
    .product-grid,
    .product-grid-5,
    .product-grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .product-card {
        border-radius: 10px;
    }
    .product-card .card-image {
        padding: 10px;
    }
    .product-card .card-overlay {
        display: none; /* Quick view overlay not practical on touch */
    }
    .card-info {
        padding: 10px 12px 12px;
    }
    .card-info .product-name {
        font-size: 12px;
        margin-bottom: 6px;
        min-height: 2.4em;
    }
    .price-original {
        font-size: 11px;
    }
    .price-sale {
        font-size: 14px;
    }
    .product-badge {
        font-size: 9px;
        padding: 2px 7px;
        top: 6px;
        left: 6px;
    }
    .discount-tag {
        font-size: 10px;
        padding: 2px 6px;
        top: 6px;
        right: 6px;
    }

    /* Product card actions */
    .card-actions {
        margin-top: 8px;
        padding-top: 8px;
        gap: 6px;
    }
    .btn-compare {
        font-size: 10px;
        padding: 4px 8px;
    }
    .btn-addcart {
        font-size: 10px;
        padding: 5px 10px;
    }

    /* ── 10. PRODUCT CAROUSEL ── */
    .carousel-track .product-card {
        min-width: calc(50% - 8px);
    }
    .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    /* ── 11. PRODUCT DETAIL PAGE ── */
    .product-detail-layout {
        grid-template-columns: 1fr !important;
        padding: 16px;
        gap: 16px;
        border-radius: 10px;
    }
    .pd-name {
        font-size: 18px;
    }
    .pd-meta {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 11px;
    }
    .pd-price-box {
        padding: 12px;
    }
    .pd-price-sale {
        font-size: 22px;
    }
    .pd-buttons {
        flex-direction: column;
        gap: 8px;
    }
    .btn-buy {
        padding: 12px;
        font-size: 14px;
        border-radius: 10px;
    }
    /* Gallery thumbnails horizontal scroll */
    .pd-thumbnails {
        overflow-x: auto !important;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px;
        scrollbar-width: none;
    }
    .pd-thumbnails::-webkit-scrollbar {
        display: none;
    }
    .pd-thumb,
    .pd-gallery .thumb {
        flex-shrink: 0 !important;
        width: 56px !important;
        height: 56px !important;
    }
    /* Policies grid */
    .pd-policies {
        grid-column: 1 / -1;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px;
    }
    .policy-card {
        padding: 10px 12px;
        margin-bottom: 0;
    }
    /* Sidebar widgets */
    .pd-sidebar {
        position: static !important;
    }
    .pd-sidebar-widget {
        padding: 14px;
    }
    /* Tabs */
    .pd-tabs .tab-headers,
    .pd-tabs .pd-tab-nav {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        display: flex;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }
    .pd-tabs .tab-headers::-webkit-scrollbar,
    .pd-tabs .pd-tab-nav::-webkit-scrollbar {
        display: none;
    }
    .pd-tabs .tab-header,
    .pd-tabs .pd-tab-btn {
        flex-shrink: 0 !important;
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
    .tab-content {
        padding: 14px;
    }
    .specs-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    .specs-table td:first-child {
        width: 40%;
    }

    /* ── 12. GALLERY BANNERS ── */
    .gallery-banners {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .gallery-banner-item {
        padding: 14px;
        aspect-ratio: auto;
        min-height: 80px;
    }
    .gallery-banner-item h4 {
        font-size: 13px;
    }
    .gallery-banner-item p {
        font-size: 10px;
    }

    /* ── 13. BLOG GRID ── */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .blog-card .blog-info {
        padding: 10px;
    }
    .blog-card .blog-title {
        font-size: 12px;
    }
    .blog-card .blog-category {
        font-size: 10px;
    }

    /* ── 14. SECTION BANNERS (between product sections) ── */
    .container[style*="border-radius:12px"] {
        margin: 20px auto 12px !important;
        border-radius: 8px !important;
    }

    /* ── 15. FOOTER ── */
    .footer-newsletter {
        padding: 20px 0;
    }
    .newsletter-inner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    .newsletter-inner h3 {
        font-size: 16px;
    }
    .newsletter-inner p {
        font-size: 12px;
    }
    .newsletter-form {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    .newsletter-form input {
        width: 100% !important;
        padding: 10px 16px;
    }
    .newsletter-form button {
        width: 100% !important;
        padding: 10px 20px;
    }
    .footer-main {
        padding: 28px 0;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px;
    }
    .footer-col h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    .footer-col p,
    .footer-col li {
        font-size: 12px;
        line-height: 1.7;
    }
    .footer-bottom {
        padding: 12px 0;
        font-size: 10px;
    }

    /* ── 16. COMPARE BAR ── */
    .compare-bar {
        padding: 8px 0;
    }
    .compare-bar .container {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        padding: 0 12px;
    }
    .compare-bar .container > span {
        font-size: 12px !important;
        width: 100%;
        text-align: center;
    }
    .compare-items {
        width: 100% !important;
        flex: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        gap: 6px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .compare-items::-webkit-scrollbar {
        display: none;
    }
    .compare-item {
        flex-shrink: 0;
        font-size: 11px;
        padding: 4px 8px;
    }
    .btn-compare-now {
        flex: 1;
        text-align: center;
        padding: 8px 16px;
        font-size: 12px;
    }

    /* ── 17. QUICK VIEW MODAL (Bottom Sheet style) ── */
    .modal-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
    }
    .modal-content {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
        padding: 20px 16px;
        animation: modalSlideUp 0.3s ease;
    }
    @keyframes modalSlideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    .modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    /* Handle bar indicator */
    .modal-content::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: var(--gray-300);
        border-radius: 2px;
        margin: 0 auto 14px;
    }

    /* Quick View layout */
    .qv-layout,
    .qv-premium-layout {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .qv-title {
        font-size: 16px;
    }
    .qv-current-price {
        font-size: 22px;
    }
    .qv-old-price {
        font-size: 13px;
    }
    .qv-actions {
        flex-direction: column;
        gap: 8px;
    }
    .qv-btn-cart,
    .qv-btn-detail {
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 10px;
    }
    .qv-thumbs {
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .qv-thumbs::-webkit-scrollbar {
        display: none;
    }
    .qv-thumb {
        width: 52px;
        height: 52px;
        flex-shrink: 0;
    }
    .qv-quantity-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .qv-spec-row {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* ── 18. COMPARE TABLE MODAL ── */
    .compare-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* ── 19. FLOATING WIDGETS ── */
    .floating-widgets {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }
    .floating-widgets.compare-active {
        bottom: 156px;
    }
    .widget-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(255, 255, 255, 0.9);
    }
    .widget-btn svg {
        width: 20px;
        height: 20px;
    }

    /* ── 20. TOAST NOTIFICATIONS ── */
    .toast-container {
        top: auto;
        bottom: 12px;
        right: 12px;
        left: 12px;
    }
    .toast-msg {
        padding: 12px 16px;
        font-size: 13px;
        border-radius: 10px;
        gap: 10px;
    }

    /* ── 21. NEWS PAGE ── */
    .news-page-layout {
        grid-template-columns: 1fr !important;
    }
    .news-sidebar {
        position: static;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .news-related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .news-page-title {
        font-size: 22px;
    }
    .news-page-desc {
        font-size: 14px;
    }
    .news-category-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
        scrollbar-width: none;
        gap: 6px;
    }
    .news-category-tabs::-webkit-scrollbar {
        display: none;
    }
    .news-cat-tab {
        flex-shrink: 0;
        padding: 6px 12px;
        font-size: 12px;
    }
    .news-featured-title {
        font-size: 18px;
    }
    .news-featured-excerpt {
        font-size: 13px;
    }
    .news-featured-info {
        padding: 16px;
    }
    .news-card-meta {
        font-size: 10px;
    }
    .news-excerpt {
        font-size: 12px;
    }

    /* News Detail */
    .news-detail-layout {
        grid-template-columns: 1fr !important;
    }
    .news-detail-title {
        font-size: 22px;
    }
    .news-detail-content {
        padding: 16px;
        border-radius: 10px;
    }
    .news-detail-body {
        font-size: 14px;
    }
    .news-detail-body h2 {
        font-size: 20px;
    }
    .news-detail-body h3 {
        font-size: 17px;
    }
    .news-post-nav {
        grid-template-columns: 1fr !important;
    }
    .news-share-btns {
        gap: 8px;
    }
    .news-share-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    .news-author-box {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }

    /* ── 22. BREADCRUMB ── */
    .breadcrumb {
        padding: 10px 0;
        font-size: 11px;
        gap: 4px;
    }
    .breadcrumb .current {
        font-size: 11px;
    }

    /* ── 23. FLASH SALE ── */
    .flash-sale-section .section-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    .flash-countdown {
        width: 100%;
        text-align: center;
    }
    .cd-box {
        padding: 4px 8px;
        font-size: 13px;
        min-width: 30px;
    }
    .cd-sep {
        font-size: 14px;
    }

    /* ── 24. FILTER SIDEBAR (Category pages) ── */
    .main-with-sidebar {
        flex-direction: column !important;
        gap: 16px;
    }
    .filter-sidebar {
        width: 100% !important;
        order: -1;
    }
    .filter-sidebar-cat {
        border-radius: 10px;
    }
    .sort-bar {
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px 12px;
    }
    .sort-bar .sort-label {
        width: 100%;
        margin-bottom: 4px;
        font-size: 12px;
    }
    .sort-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    /* ── 25. CART PAGE ── */
    .ha-cart-layout {
        grid-template-columns: 1fr !important;
    }
    .ha-cart-items {
        padding: 14px;
        border-radius: 12px;
    }
    .ha-cart-item {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px 0;
    }
    .ha-cart-item-image {
        width: 64px;
        height: 64px;
        border-radius: 8px;
    }
    .ha-cart-item-subtotal {
        min-width: auto;
        text-align: left;
        font-size: 14px;
    }
    .ha-cart-actions {
        flex-direction: column;
        gap: 10px;
    }
    .ha-coupon-input {
        max-width: 100%;
        width: 100%;
    }
    .ha-update-btn {
        width: 100%;
    }
    .ha-cart-summary {
        position: static;
    }
    .ha-summary-card {
        padding: 20px 16px;
        border-radius: 12px;
    }
    .ha-summary-total span:last-child {
        font-size: 18px;
    }

    /* WooCommerce responsive Cart table card conversion */
    .woocommerce-cart table.cart thead {
        display: none !important;
    }
    .woocommerce-cart table.cart tr {
        display: block !important;
        margin-bottom: 12px !important;
        border: 1px solid var(--gray-200) !important;
        border-radius: 10px !important;
        padding: 12px !important;
        background: var(--white) !important;
    }
    .woocommerce-cart table.cart td {
        display: block !important;
        text-align: right !important;
        padding: 6px 0 !important;
        border: none !important;
        position: relative !important;
        font-size: 13px;
    }
    .woocommerce-cart table.cart td::before {
        content: attr(data-title) ": ";
        float: left !important;
        font-weight: 600 !important;
        color: var(--gray-600) !important;
    }
    .woocommerce-cart table.cart td.product-thumbnail {
        text-align: center !important;
    }
    .woocommerce-cart table.cart td.product-thumbnail::before,
    .woocommerce-cart table.cart td.product-remove::before,
    .woocommerce-cart table.cart td.actions::before {
        display: none !important;
    }
    .woocommerce-cart table.cart td.product-remove {
        text-align: right !important;
    }
    .woocommerce-cart table.cart td.actions {
        text-align: center !important;
    }

    /* ── 26. MY ACCOUNT ENHANCEMENTS ── */
    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .woocommerce-MyAccount-navigation {
        border-radius: 10px;
    }
    .woocommerce-MyAccount-navigation ul {
        display: flex;
        overflow-x: auto;
        gap: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px;
    }
    .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
        display: none;
    }
    .woocommerce-MyAccount-navigation li a {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 8px;
    }
    .woocommerce-MyAccount-content {
        padding: 16px;
        border-radius: 12px;
    }
    .ha-profile-header {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 12px;
    }
    .ha-edit-profile-btn {
        position: static;
        transform: none;
        margin-top: 8px;
    }
    .ha-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .ha-action-grid {
        grid-template-columns: 1fr !important;
    }

    /* Order cards */
    .ha-order-card-header {
        flex-direction: column;
        gap: 8px;
    }
    .ha-order-card-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .ha-order-header {
        flex-direction: column;
        gap: 10px;
    }
    .ha-order-info-grid {
        grid-template-columns: 1fr !important;
    }
    .ha-progress-tracker {
        padding: 14px 10px;
    }
    .ha-step-dot {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    .ha-progress-step span {
        font-size: 9px;
    }
    .ha-progress-line {
        max-width: 40px;
    }
    .ha-form-grid {
        grid-template-columns: 1fr !important;
    }
    .ha-order-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        scrollbar-width: none;
    }
    .ha-order-filters::-webkit-scrollbar {
        display: none;
    }
    .ha-filter-btn {
        flex-shrink: 0;
        font-size: 12px;
        padding: 6px 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 !important;
    }
    .woocommerce-Addresses {
        grid-template-columns: 1fr !important;
    }

    /* ── 27. REVIEWS ── */
    .ha-review-summary {
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }
    .ha-review-score {
        min-width: auto;
    }
    .ha-score-number {
        font-size: 34px;
    }
    .ha-review-form-wrap {
        padding: 14px;
    }
    .ha-stars-input .ha-star {
        font-size: 26px;
    }

    /* ── 28. CONTACT PAGE ── */
    .contact-info-grid {
        grid-template-columns: 1fr !important;
    }
    .contact-map {
        height: 250px !important;
    }

    /* ── 29. SEARCH PAGE ── */
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* ── 30. PAGINATION ── */
    .pagination {
        gap: 4px;
    }
    .page-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    ul.page-numbers,
    .pagination .nav-links,
    .news-pagination .nav-links,
    .navigation.pagination .nav-links {
        gap: 4px;
    }
    ul.page-numbers .page-numbers,
    .pagination .nav-links .page-numbers,
    .news-pagination .nav-links .page-numbers,
    .navigation.pagination .nav-links .page-numbers {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }

    /* ── 31. HEADER BANNER (full width) ── */
    .header-full-banner img {
        max-height: 60px;
        object-fit: cover;
    }

    /* ── 32. PROMO BAR ── */
    .top-bar-promo {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }

    /* ── 33. CONTAINER PADDING ── */
    .container {
        padding: 0 12px;
    }
}

/* ─────────────────────────────────────────────
   BREAKPOINT: ≤ 576px  (Small phones)
   ───────────────────────────────────────────── */
@media (max-width: 576px) {

    /* Product Card actions — stack vertical */
    .card-actions {
        flex-direction: column !important;
        gap: 6px !important;
        align-items: stretch !important;
        padding-top: 6px;
    }
    .btn-compare {
        justify-content: center;
        width: 100% !important;
        padding: 5px !important;
        font-size: 10px;
    }
    .btn-addcart {
        text-align: center;
        width: 100% !important;
        padding: 7px !important;
        font-size: 11px;
    }

    /* Footer 1 column */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .footer-col {
        text-align: center;
    }
    .footer-col ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 16px;
    }
    .footer-social {
        justify-content: center;
    }

    /* Blog grid 1 column */
    .blog-grid {
        grid-template-columns: 1fr !important;
    }

    /* News grid 1 column */
    .news-grid {
        grid-template-columns: 1fr !important;
    }
    .news-related-grid {
        grid-template-columns: 1fr !important;
    }

    /* Product name even smaller */
    .card-info .product-name {
        font-size: 11px;
    }
    .price-sale {
        font-size: 13px;
    }

    /* Hero slider smaller */
    .hero-slider {
        min-height: 160px;
    }
    .hero-slider .slide-content h2 {
        font-size: 15px !important;
    }
    .hero-slider .slide-content p {
        font-size: 11px !important;
    }

    /* Section spacing */
    .section {
        padding: 16px 0;
    }

    /* Quick View compact */
    .qv-title {
        font-size: 14px;
    }
    .qv-current-price {
        font-size: 18px;
    }

    /* Cart item compact */
    .ha-cart-item-image {
        width: 56px;
        height: 56px;
    }
    .ha-cart-item-name a {
        font-size: 13px;
    }
}

/* ─────────────────────────────────────────────
   BREAKPOINT: ≤ 480px  (Very small phones)
   ───────────────────────────────────────────── */
@media (max-width: 480px) {

    /* Quick banners 1 column */
    .quick-banners {
        grid-template-columns: 1fr !important;
    }

    /* Gallery banners 1 column */
    .gallery-banners {
        grid-template-columns: 1fr !important;
    }

    /* Header actions even more compact */
    .header-action-btn {
        min-width: 36px;
        min-height: 36px;
        padding: 6px;
    }
    .header-action-btn .icon {
        font-size: 16px;
    }

    /* Product grid tighter */
    .product-grid,
    .product-grid-5,
    .product-grid-3 {
        gap: 8px;
    }

    /* Product detail */
    .pd-price-sale {
        font-size: 20px;
    }
    .pd-name {
        font-size: 16px;
    }

    /* Flash sale countdown */
    .cd-box {
        padding: 3px 6px;
        font-size: 11px;
        min-width: 26px;
    }
    .cd-sep {
        font-size: 12px;
    }

    /* Modal even more compact */
    .modal-content {
        padding: 16px 12px;
    }

    /* Logo smaller */
    .header-main .logo img {
        max-width: 150px !important;
        height: 30px !important;
    }

    /* Search input */
    .search-box input {
        font-size: 13px;
        padding: 8px 38px 8px 12px;
    }

    /* Container less padding */
    .container {
        padding: 0 10px;
    }
}

/* ─────────────────────────────────────────────
   BREAKPOINT: ≤ 375px  (iPhone SE, small devices)
   ───────────────────────────────────────────── */
@media (max-width: 375px) {

    /* Even tighter product grid */
    .product-grid,
    .product-grid-5,
    .product-grid-3 {
        gap: 6px;
    }
    .card-info {
        padding: 8px 8px 10px;
    }
    .card-info .product-name {
        font-size: 10px;
    }

    /* Header top bar minimal */
    .header-top-left,
    .header-top-right {
        gap: 6px;
        font-size: 10px;
    }

    /* Section titles */
    .section-title {
        font-size: 14px;
    }

    /* Footer compact */
    .footer-bottom {
        font-size: 9px;
    }
}

/* ─────────────────────────────────────────────
   LANDSCAPE PHONE FIXES
   ───────────────────────────────────────────── */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-slider {
        min-height: 180px;
    }
    .hero-slider .slide-content h2 {
        font-size: 16px !important;
    }
    .modal-content {
        max-height: 95vh;
    }
}

/* ─────────────────────────────────────────────
   TOUCH DEVICE OPTIMIZATIONS
   ───────────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch */
    .product-card:hover {
        transform: none;
    }
    .product-card:hover .card-overlay {
        opacity: 0;
    }
    .quick-banner-item:hover {
        transform: none;
    }
    .blog-card:hover {
        transform: none;
    }
    .gallery-banner-item:hover {
        transform: none;
    }
    .hero-banners .mini-banner:hover {
        transform: none;
    }

    /* Increase touch targets */
    .nav-menu > li > a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .filter-checkbox {
        padding: 8px 0;
    }
    .footer-col a {
        padding: 4px 0;
        display: inline-block;
    }

    /* Active state instead of hover for product cards */
    .product-card:active {
        transform: scale(0.98);
        box-shadow: var(--shadow-sm);
    }
}

/* ─────────────────────────────────────────────
   PRINT STYLES (bonus — hide non-essential)
   ───────────────────────────────────────────── */
@media print {
    .header-top,
    .header-nav,
    .floating-widgets,
    .compare-bar,
    .toast-container,
    .footer-newsletter,
    .hero-banners,
    .category-sidebar {
        display: none !important;
    }
    .header {
        position: static;
    }
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}

/* ==========================================================================
   CUSTOM CSS FOR AISK AI CHAT - ALIGN TO RIGHT & OPTIMIZE SIZE
   ========================================================================== */

/* --- 1. CHAT BUBBLE BUTTON POSITION & SIZING --- */
.support-buddy-widget {
    position: fixed !important;
    bottom: 246px !important; /* Float above Zalo, Phone, and Scroll Top */
    right: 30px !important;
    left: auto !important;
    z-index: 9999 !important;
    transition: bottom var(--transition-base) !important;
}

.modern-chat-container {
    position: fixed !important;
    bottom: 246px !important; /* Matches support-buddy-widget position */
    right: 30px !important;
    left: auto !important;
    width: 56px !important;
    height: 56px !important;
    z-index: 9999 !important;
    transition: bottom var(--transition-base) !important;
}

.compare-active .support-buddy-widget,
.compare-active .modern-chat-container {
    bottom: 316px !important;
}

.modern-chat-bubble {
    width: 56px !important;
    height: 56px !important;
    margin: 0 !important;
}

.glass-bubble {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

.pulse-ring {
    width: 100% !important;
    height: 100% !important;
}

.chat-bubble {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

/* --- 2. CHAT WINDOW SIZING (DESKTOP) --- */
.support-buddy-container {
    position: fixed !important;
    bottom: 100px !important; /* Float above Zalo and Phone buttons */
    right: 30px !important;
    left: auto !important;
    top: auto !important;
    width: 330px !important; /* Compact width */
    height: 480px !important; /* Compact height */
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
}

.support-buddy-messages {
    height: calc(100% - 110px) !important;
    flex: 1 !important;
    overflow-y: auto !important;
}

/* --- 3. CUSTOM AVATAR DISPLAY (FULL ROUNDED PIC) --- */
/* Target uploaded custom images to fill the circular bubble */
.chat-bubble img:not([src$="message-square.svg"]):not([src$="message-circle.svg"]):not([src$="chat.svg"]),
.glass-bubble img:not([src$="message-square.svg"]):not([src$="message-circle.svg"]):not([src$="chat.svg"]) {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    max-width: none !important;
    max-height: none !important;
}

/* Center default SVGs and keep small dimensions */
.chat-bubble img[src$="message-square.svg"],
.chat-bubble img[src$="message-circle.svg"],
.chat-bubble img[src$="chat.svg"],
.glass-bubble img[src$="message-square.svg"],
.glass-bubble img[src$="message-circle.svg"],
.glass-bubble img[src$="chat.svg"] {
    width: 24px !important;
    height: 24px !important;
    border-radius: 0 !important;
    object-fit: contain !important;
}

/* Make bubble transparent if custom image is used */
.chat-bubble:has(img:not([src$="message-square.svg"]):not([src$="message-circle.svg"]):not([src$="chat.svg"])) {
    background-color: transparent !important;
}

.glass-bubble:has(img:not([src$="message-square.svg"]):not([src$="message-circle.svg"]):not([src$="chat.svg"])) {
    background-color: transparent !important;
}

/* --- 4. RESPONSIVE MOBILE & TABLET LAYOUT (<= 768px) --- */
@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .support-buddy-widget {
        bottom: 178px !important; /* Float above mobile Zalo/Phone buttons */
        right: 16px !important;
        left: auto !important;
    }

    .modern-chat-container {
        bottom: 178px !important;
        right: 16px !important;
        left: auto !important;
        width: 44px !important;
        height: 44px !important;
    }

    .compare-active .support-buddy-widget,
    .compare-active .modern-chat-container {
        bottom: 308px !important;
    }

    .modern-chat-bubble,
    .chat-bubble {
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
    }

    .chat-bubble img[src$="message-square.svg"],
    .chat-bubble img[src$="message-circle.svg"],
    .chat-bubble img[src$="chat.svg"],
    .glass-bubble img[src$="message-square.svg"],
    .glass-bubble img[src$="message-circle.svg"],
    .glass-bubble img[src$="chat.svg"] {
        width: 20px !important;
        height: 20px !important;
    }

    .support-buddy-container {
        position: fixed !important;
        bottom: 85px !important; /* Float above the bubble */
        right: 16px !important;
        left: auto !important;
        top: auto !important;
        width: 310px !important;
        max-width: calc(100vw - 32px) !important;
        height: 450px !important;
        max-height: calc(100vh - 120px) !important;
        border-radius: 12px !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15) !important;
    }

    .support-buddy-input {
        position: static !important;
        width: auto !important;
        padding: 12px !important;
        background: white !important;
        box-shadow: none !important;
    }

    .support-buddy-footer {
        position: static !important;
        padding: 8px 12px !important;
        width: auto !important;
    }

    .support-buddy-messages {
        height: calc(100% - 110px) !important;
        padding: 12px !important;
    }

    .support-buddy-toggle {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
    }

    .floating-messages {
        bottom: 50% !important;
        right: 52px !important;
        left: auto !important;
        transform: translateY(25%) !important;
    }

    .floating-message {
        text-align: right !important;
    }

    .floating-message::after {
        right: -6px !important;
        left: auto !important;
        top: 50% !important;
        transform: translateY(-50%) rotate(0deg) !important;
        margin-top: 0 !important;
    }
}