/* ==========================================================================
   GIAO DIỆN HỆ THỐNG "LINH KIỆN ĐỒ ÁN" - THÂN THIỆN, HIỆN ĐẠI & ĐẸP MẮT
   ========================================================================== */

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

:root {
    /* Bảng màu hiện đại, ấm áp và thân thiện */
    --brand-primary: #0b3b60;         /* Xanh navy hiện đại */
    --brand-primary-light: #185a9d;   /* Xanh gradient */
    --brand-accent: #e63946;          /* Đỏ san hô thân thiện, không gắt */
    --brand-accent-hover: #d62828;
    --brand-teal: #06d6a0;            /* Xanh ngọc may mắn */
    --brand-green: #10b981;           /* Xanh lá hoàn thành / mua ngay */
    --brand-green-hover: #059669;
    --brand-amber: #f59e0b;           /* Vàng cam ấm áp */
    --brand-zalo: #0068ff;            /* Xanh Zalo quen thuộc */
    
    /* Màu nền & Chữ */
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-soft: #f1f5f9;
    --border-soft: #e2e8f0;
    --border-focus: #3b82f6;
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Hiệu ứng bóng mềm (Soft Elevation) */
    --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 12px 24px -4px rgba(15, 23, 42, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.06);
    --shadow-glow: 0 8px 20px -2px rgba(230, 57, 70, 0.35);

    /* Bo góc thân thiện */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-pill: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-body);
    background-color: var(--bg-page);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 18px;
}

/* ==========================================================================
   TOP BAR - THÂN THIỆN, NHẸ NHÀNG
   ========================================================================== */
.top-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-soft);
    font-size: 12.5px;
    color: var(--text-muted);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 38px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.welcome-chip {
    background: #ecfdf5;
    color: #065f46;
    font-weight: 700;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #a7f3d0;
}

.welcome-chip .chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
    box-shadow: 0 0 6px #10b981;
}

.btn-send-request {
    background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(230, 57, 70, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-send-request:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.35);
}

.contact-info strong {
    color: var(--brand-primary);
    font-weight: 700;
}

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

.admin-link-badge {
    background: linear-gradient(135deg, #0b3b60 0%, #1e40af 100%);
    color: #ffd700;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    box-shadow: 0 2px 6px rgba(11, 59, 96, 0.2);
    transition: all 0.2s;
}

.admin-link-badge:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

.auth-badge {
    background: var(--bg-soft);
    color: var(--text-heading);
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-soft);
}

.auth-badge a {
    color: var(--text-body);
}

.auth-badge a:hover {
    color: var(--brand-accent);
}

/* ==========================================================================
   HEADER MAIN (LOGO, SEARCH, ACTIONS)
   ========================================================================== */
.header-main {
    background-color: #ffffff;
    padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: transform 0.2s;
}

.brand-logo-wrap:hover {
    transform: scale(1.02);
}

.brand-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: var(--shadow-subtle);
    border: 1px solid #eef2f6;
}

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

.brand-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--brand-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.15;
}

.brand-subtitle {
    font-size: 11px;
    color: var(--brand-accent);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Search Box Hiện Đại Bo Cong Thân Thiện */
.search-box-wrap {
    flex: 1;
    max-width: 540px;
}

.search-form {
    display: flex;
    border: 2px solid #cbd5e1;
    border-radius: var(--radius-pill);
    overflow: hidden;
    height: 44px;
    background: #ffffff;
    box-shadow: var(--shadow-subtle);
    transition: all 0.25s ease;
}

.search-form:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-cat-select {
    background-color: #f8fafc;
    border: none;
    border-right: 1px solid #e2e8f0;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-body);
    outline: none;
    cursor: pointer;
    border-radius: 0;
}

.search-input {
    flex: 1;
    border: none;
    padding: 0 16px;
    font-size: 13.5px;
    outline: none;
    color: var(--text-heading);
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-btn {
    background: linear-gradient(135deg, #0b3b60 0%, #1e40af 100%);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

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

.social-links {
    display: flex;
    gap: 6px;
}

.social-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.social-fb { background-color: #1877f2; }
.social-gp { background-color: #ea4335; }
.social-yt { background-color: #ff0000; }
.social-tw { background-color: #1da1f2; }

/* Giỏ hàng dạng viên thuốc hiện đại */
.cart-pill-btn {
    background: linear-gradient(135deg, #0b3b60 0%, #03213d 100%);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 9px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(11, 59, 96, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.cart-pill-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 59, 96, 0.35);
}

.cart-counter {
    background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    margin-left: 2px;
    box-shadow: 0 2px 4px rgba(230, 57, 70, 0.3);
}

/* ==========================================================================
   NAVIGATION BAR - XANH DƯƠNG ÊM DỊU & THÂN THIỆN
   ========================================================================== */
.main-nav {
    background: linear-gradient(90deg, #0b3b60 0%, #154c79 50%, #0b3b60 100%);
    box-shadow: 0 4px 12px rgba(11, 59, 96, 0.15);
}

.nav-list {
    display: flex;
    list-style: none;
    overflow-x: auto;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 20px;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 13.5px;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
}

.nav-item a:hover {
    color: #ffffff;
    background-color: rgba(255,255,255,0.1);
}

.nav-item.active a {
    background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(230, 57, 70, 0.3);
}

.nav-item.admin-nav-item a {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-weight: 800;
    border-radius: var(--radius-pill);
    margin: 6px 10px;
    padding: 7px 16px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.nav-item.admin-nav-item a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
}

/* ==========================================================================
   PROMOTIONAL BANNERS - MỀM MẠI, BO TRÒN, SỐNG ĐỘNG
   ========================================================================== */
.promo-banners-section {
    padding: 16px 0 8px 0;
}

.promo-banners-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 16px;
}

.promo-banner-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    position: relative;
    border: 1px solid var(--border-soft);
    background: #fff;
    min-height: 160px;
    display: flex;
    align-items: center;
    transition: transform 0.25s, box-shadow 0.25s;
}

.promo-banner-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.banner-rare {
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 50%, #f0fdf4 100%);
    padding: 24px 30px;
    justify-content: space-between;
}

.banner-rare-content h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0284c7;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.banner-rare-content h3 {
    font-size: 30px;
    font-weight: 900;
    color: var(--brand-primary);
    letter-spacing: 0.5px;
}

.banner-rare-sub {
    font-size: 13.5px;
    color: #475569;
    margin-top: 6px;
    font-weight: 500;
}

.banner-dots {
    display: flex;
    gap: 6px;
    margin-top: 14px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cbd5e1;
    transition: all 0.2s;
}

.banner-dot.active {
    background-color: #0284c7;
    width: 22px;
    border-radius: var(--radius-pill);
}

.banner-rare-logo {
    width: 95px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.banner-pcb {
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
}

.banner-pcb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 160px;
    transition: transform 0.3s;
}

.banner-pcb:hover img {
    transform: scale(1.03);
}

/* ==========================================================================
   TIỆN ÍCH DỄ GẦN (UTILITY BAR) - DẠNG VIÊN THUỐC MỀM MẠI
   ========================================================================== */
.utility-bar {
    background: linear-gradient(90deg, #e63946 0%, #e74c3c 50%, #d62828 100%);
    color: #ffffff;
    margin: 12px 0 16px 0;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.2);
    overflow: hidden;
}

.utility-bar-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.utility-item {
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-right: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.2s;
}

.utility-item:last-child {
    border-right: none;
}

.utility-item:hover {
    background-color: rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb-nav {
    padding: 8px 0 16px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.breadcrumb-list a:hover {
    color: var(--brand-accent);
}

.breadcrumb-separator {
    color: #cbd5e1;
}

.breadcrumb-current {
    color: var(--text-heading);
    font-weight: 700;
}

/* ==========================================================================
   BỐ CỤC CHÍNH 2 CỘT
   ========================================================================== */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 50px;
}

/* ==========================================================================
   SIDEBAR TRÁI - HIỆN ĐẠI, THÂN THIỆN
   ========================================================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Box Danh mục */
.category-box {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.category-header {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    color: var(--brand-accent);
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--brand-accent);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.category-list {
    list-style: none;
}

.category-item {
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    transition: background 0.2s ease;
}

.category-item:last-child {
    border-bottom: none;
}

.category-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.category-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px 11px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-heading, #1e293b);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.category-item:hover > .category-link-row > .category-link,
.category-item.active > .category-link-row > .category-link {
    background-color: #f8fafc;
    color: var(--brand-accent, #dc2626);
    border-left-color: var(--brand-accent, #dc2626);
    padding-left: 20px;
}

/* Mũi tên danh mục: Tự động xoay và bung menu con khi di chuột */
.cat-chevron {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 14px;
    font-size: 10px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

.cat-chevron:hover {
    color: var(--brand-accent, #dc2626);
    background: #fee2e2;
    transform: scale(1.15);
}

.category-item.has-sub:hover .cat-chevron,
.category-item.has-sub.open .cat-chevron {
    transform: rotate(180deg);
    color: var(--brand-accent, #dc2626);
}

/* Menu danh mục con: animation mượt mà 60fps */
.subcat-list {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    list-style: none;
    background: #f8fafc;
    padding: 0 0 0 16px;
    margin: 0;
    transform: translateY(-4px);
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                transform 0.25s ease,
                padding 0.25s ease;
}

/* Tự động sổ xuống khi rê chuột vào mục hoặc mũi tên */
.category-item.has-sub:hover .subcat-list,
.category-item.has-sub.open .subcat-list {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    padding: 6px 0 8px 16px;
    border-top: 1px dashed #e2e8f0;
    border-left: 3px solid var(--brand-accent, #dc2626);
}

.subcat-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 12.5px;
    color: var(--text-body, #475569);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.subcat-bullet {
    font-size: 13px;
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.subcat-item a:hover {
    color: var(--brand-accent, #dc2626);
    background: #ffffff;
    padding-left: 16px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.subcat-item a:hover .subcat-bullet {
    color: var(--brand-accent, #dc2626);
}

/* Đội ngũ hỗ trợ kỹ thuật đồ án - Thân thiện ấm áp */
.support-box {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.support-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #1e40af 100%);
    color: #ffffff;
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.support-header-sub {
    font-size: 11px;
    color: #bfdbfe;
    font-weight: 500;
    text-transform: none;
}

.support-staff-list {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.staff-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #f8fafc;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 10px;
    transition: all 0.25s ease;
    position: relative;
}

.staff-card:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.staff-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.staff-avatar {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.staff-online-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background-color: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.staff-info {
    flex: 1;
    overflow: hidden;
}

.staff-name-role {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.staff-name {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--brand-primary);
}

.staff-role-badge {
    font-size: 10px;
    color: #1e40af;
    background: #dbeafe;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    font-weight: 700;
}

.staff-exp {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.staff-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2563eb;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    margin-top: 5px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    transition: all 0.2s;
}

.staff-contact-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   PRODUCT DETAIL HERO (MAIN VIEW) - TRANG TRỌNG & RỰC RỠ
   ========================================================================== */
.product-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
    margin-bottom: 26px;
}

.product-badges-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.badge-tag {
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.badge-tag.hot {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.badge-tag.support {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.badge-tag.stem {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.product-title {
    color: var(--brand-accent);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
}

/* Gallery */
.gallery-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.main-image-box {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #ffffff;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    position: relative;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s ease;
}

.main-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.main-image-box:hover img {
    transform: scale(1.06);
}

.zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
}

.thumb-item {
    width: 68px;
    height: 68px;
    border: 2px solid var(--border-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
}

.thumb-item.active, .thumb-item:hover {
    border-color: var(--brand-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.25);
}

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

/* Meta & Thông tin sản phẩm */
.product-meta-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    flex-wrap: wrap;
}

.meta-label {
    color: var(--text-muted);
    font-weight: 600;
    min-width: 95px;
}

.meta-sku {
    color: var(--brand-primary);
    font-weight: 800;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.meta-branch {
    color: var(--text-heading);
    font-weight: 700;
}

.stock-tag {
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.stock-tag.in-stock {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.stock-tag.out-stock {
    background-color: #fee2e2;
    color: #991b1b;
}

.btn-quote {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    padding: 6px 16px;
    font-size: 12.5px;
    font-weight: 800;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
    transition: all 0.2s;
}

.btn-quote:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
}

/* Hộp giá cả (Price Container) */
.price-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.price-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 700;
}

.price-current {
    font-size: 32px;
    font-weight: 900;
    color: var(--brand-accent);
    letter-spacing: -0.5px;
}

.price-original {
    font-size: 16px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
}

.price-discount-tag {
    background: #fee2e2;
    color: #b91c1c;
    font-size: 11.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

/* Số lượng & Tổng tiền */
.quantity-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
}

.quantity-controls {
    display: flex;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-pill);
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-subtle);
}

.qty-btn {
    background-color: #f8fafc;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-heading);
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background-color: #e2e8f0;
}

.qty-input {
    width: 48px;
    height: 36px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    outline: none;
    color: var(--text-heading);
}

.calculated-total {
    font-size: 14.5px;
    color: var(--text-body);
}

.calculated-total strong {
    color: var(--brand-accent);
    font-size: 18px;
    font-weight: 900;
}

/* Nút bấm mua hàng rực rỡ & Thân thiện */
.action-buttons-row {
    display: flex;
    gap: 14px;
    margin-top: 8px;
}

.btn-add-cart {
    flex: 1;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #1e40af 100%);
    color: #ffffff;
    padding: 13px 20px;
    border-radius: var(--radius-md);
    font-size: 14.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(11, 59, 96, 0.25);
    transition: all 0.25s ease;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 59, 96, 0.35);
}

.btn-buy-now {
    flex: 1;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    padding: 13px 20px;
    border-radius: var(--radius-md);
    font-size: 14.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: all 0.25s ease;
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45);
}

/* Tư vấn qua Zalo sinh viên */
.student-help-banner {
    background: #eff6ff;
    border: 1px dashed #93c5fd;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: #1e40af;
    margin-top: 4px;
}

.student-help-banner strong {
    color: #1d4ed8;
}

.extra-links-row {
    font-size: 13px;
    color: var(--text-muted);
}

.extra-links-row a {
    color: var(--brand-accent);
    font-weight: 700;
}

.extra-links-row a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   TABS CHUYÊN SÂU - THIẾT KẾ HIỆN ĐẠI (TABS PILL)
   ========================================================================== */
.product-tabs-container {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 30px;
}

.tab-headers {
    display: flex;
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    padding: 8px 12px 0 12px;
    gap: 8px;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: 1px solid transparent;
    border-bottom: none;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--brand-primary);
    background-color: #edf2f7;
}

.tab-btn.active {
    background-color: #ffffff;
    color: var(--brand-primary);
    border-color: #e2e8f0;
    border-bottom: 2px solid #ffffff;
    margin-bottom: -2px;
    font-weight: 800;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.02);
}

.tab-content {
    padding: 28px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Feature Unbox Image */
.detail-feature-img {
    margin: 0 auto 26px auto;
    max-width: 680px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    padding: 12px;
    background: #fff;
    box-shadow: var(--shadow-subtle);
}

.section-subhead {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16.5px;
    font-weight: 800;
    color: var(--brand-primary);
    margin: 26px 0 14px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.section-subhead:first-child {
    margin-top: 0;
}

.rich-description {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.8;
    white-space: pre-line;
}

/* Bảng thông số linh kiện bo tròn mềm mại */
.specs-table-wrap {
    margin: 16px 0;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.specs-table th {
    background-color: #f1f5f9;
    color: var(--text-heading);
    font-weight: 800;
    padding: 12px 18px;
    text-align: left;
    border-bottom: 2px solid var(--border-soft);
}

.specs-table td {
    padding: 11px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-body);
}

.specs-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.specs-table tr:hover {
    background-color: #eff6ff;
}

.specs-table th:last-child, .specs-table td:last-child {
    text-align: center;
    width: 140px;
    font-weight: 700;
    color: var(--brand-accent);
}

/* Khung Code mẫu phong cách VS Code */
.code-preview-wrap {
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--radius-md);
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 13.5px;
    line-height: 1.7;
    overflow-x: auto;
    position: relative;
    border: 1px solid #1e293b;
    box-shadow: var(--shadow-card);
}

.btn-copy-code {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-copy-code:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

/* ==========================================================================
   SẢN PHẨM CÙNG LOẠI (RELATED PRODUCTS)
   ========================================================================== */
.related-products-section {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 34px;
}

.related-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #154c79 100%);
    color: #ffffff;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.related-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.diagonal-stripes {
    display: inline-block;
    width: 32px;
    height: 12px;
    background: repeating-linear-gradient(45deg, #fff, #fff 3px, transparent 3px, transparent 7px);
}

.related-slider-controls {
    display: flex;
    gap: 8px;
}

.slider-nav-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.slider-nav-btn:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 20px;
    gap: 18px;
}

.product-card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    background: #ffffff;
    position: relative;
}

.product-card:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card-img-wrap {
    aspect-ratio: 1/1;
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.45;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 10px;
}

.card-price {
    color: var(--brand-accent);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 14px;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-card-detail {
    background: #f1f5f9;
    color: var(--brand-primary);
    padding: 8px 6px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s;
    border: 1px solid var(--border-soft);
}

.btn-card-detail:hover {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
}

.btn-card-cart {
    background: linear-gradient(135deg, var(--brand-accent) 0%, #d62828 100%);
    color: #fff;
    padding: 8px 6px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(230, 57, 70, 0.25);
}

.btn-card-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.35);
}

/* ==========================================================================
   FOOTER - SANG TRỌNG & THÂN THIỆN
   ========================================================================== */
.site-footer {
    background: linear-gradient(180deg, #072540 0%, #031526 100%);
    color: #ffffff;
    padding: 48px 0 24px 0;
    border-top: 4px solid var(--brand-accent);
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 36px;
}

.footer-col h3 {
    font-size: 14.5px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--brand-accent);
    border-radius: var(--radius-pill);
}

.footer-col p {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-col strong {
    color: #ffffff;
}

.footer-col a {
    color: #cbd5e1;
    transition: all 0.2s;
}

.footer-col a:hover {
    color: #ffd700;
    padding-left: 4px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-badges {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.badge-item-img {
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 22px;
    text-align: center;
    color: #94a3b8;
    font-size: 12.5px;
}

/* ==========================================================================
   MODAL & DRAWER (CART & CHECKOUT)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

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

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.25);
    position: relative;
    animation: scaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
    from { transform: scale(0.94); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #1e40af 100%);
    color: #fff;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 16.5px;
    font-weight: 800;
}

.btn-close-modal {
    background: rgba(255,255,255,0.15);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-close-modal:hover {
    background: rgba(255,255,255,0.3);
}

.modal-body {
    padding: 24px;
}

/* Cart Items */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    max-height: 260px;
    overflow-y: auto;
}

.cart-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    background-color: #f8fafc;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
}

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

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-heading);
}

.cart-item-price {
    font-size: 13px;
    color: var(--brand-accent);
    font-weight: 800;
    margin-top: 2px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-remove-cart {
    color: #ef4444;
    background: none;
    font-size: 16px;
    padding: 4px;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.btn-remove-cart:hover {
    background: #fee2e2;
}

.cart-summary-box {
    background-color: #f1f5f9;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.cart-total-text {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-heading);
}

.cart-total-val {
    font-size: 22px;
    font-weight: 900;
    color: var(--brand-accent);
}

/* Form đặt hàng */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-heading);
}

.form-group input, .form-group textarea, .form-group select {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    outline: none;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.btn-submit-order {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    padding: 13px;
    border-radius: var(--radius-md);
    margin-top: 6px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.25s;
}

.btn-submit-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.45);
}

/* Toast Message */
.toast-msg {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #0f172a;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 700;
    font-size: 13.5px;
}

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

.toast-msg.success {
    border-left: 4px solid #10b981;
}

.toast-msg.error {
    border-left: 4px solid #ef4444;
}

/* Floating Admin Access Button - Bo cong rực rỡ */
.floating-admin-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: linear-gradient(135deg, #0b3b60 0%, #1e40af 100%);
    color: #ffd700;
    padding: 11px 20px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(11, 59, 96, 0.4);
    z-index: 999;
    border: 2px solid #ffd700;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-admin-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 28px rgba(11, 59, 96, 0.55);
}

/* ==========================================================================
   HOMEPAGE SPECIFIC MODERN STYLES
   ========================================================================== */

/* Hero Banner Section */
.hero-section {
    padding: 24px 0 36px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 28px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-badge-pill {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    color: #0369a1;
    font-size: 12.5px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #bae6fd;
    box-shadow: var(--shadow-subtle);
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 38px;
    font-weight: 900;
    color: var(--brand-primary);
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.hero-title span.highlight {
    background: linear-gradient(135deg, var(--brand-accent) 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 15.5px;
    color: #475569;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    gap: 14px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--brand-accent) 0%, #d62828 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.35);
    transition: all 0.25s;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.45);
}

.btn-hero-secondary {
    background: #ffffff;
    color: var(--brand-primary);
    font-size: 15px;
    font-weight: 800;
    padding: 14px 26px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #cbd5e1;
    box-shadow: var(--shadow-subtle);
    transition: all 0.25s;
}

.btn-hero-secondary:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.hero-trust-row {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    flex-wrap: wrap;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Spotlight Card in Hero */
.hero-spotlight-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.hero-spotlight-card:hover {
    transform: translateY(-5px);
}

.spotlight-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
    z-index: 2;
}

.spotlight-img-wrap {
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 18px;
    background: #f8fafc;
}

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

.hero-spotlight-card:hover .spotlight-img-wrap img {
    transform: scale(1.06);
}

.spotlight-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.4;
    margin-bottom: 10px;
}

.spotlight-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.spotlight-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--brand-accent);
}

/* 4 Value Pillars */
.pillars-section {
    padding: 10px 0 32px 0;
}

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

.pillar-card {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 20px 18px;
    box-shadow: var(--shadow-subtle);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.25s;
}

.pillar-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: #3b82f6;
}

.pillar-icon-box {
    font-size: 26px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    flex-shrink: 0;
}

.pillar-info h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 4px;
}

.pillar-info p {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
}

/* Quick Categories Grid */
.quick-cats-section {
    padding: 24px 0 36px 0;
}

.section-header-center {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 28px auto;
}

.section-pill-tag {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-bottom: 8px;
}

.section-main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--brand-primary);
    line-height: 1.3;
}

.section-subtitle {
    font-size: 14.5px;
    color: #64748b;
    margin-top: 6px;
}

.quick-cats-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
}

.cat-item-btn {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 16px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: var(--shadow-subtle);
    transition: all 0.25s;
    text-decoration: none;
    color: var(--text-heading);
}

.cat-item-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #2563eb;
    color: #2563eb;
}

.cat-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #f8fafc;
    transition: transform 0.25s;
}

.cat-item-btn:hover .cat-icon-circle {
    transform: scale(1.1);
    background: #eff6ff;
}

.cat-item-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

/* Featured Products on Homepage */
.homepage-products-section {
    padding: 20px 0 40px 0;
}

.filter-tabs-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.filter-tab-pill {
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    font-weight: 700;
    background: #ffffff;
    color: var(--text-muted);
    border: 1px solid var(--border-soft);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab-pill:hover {
    color: var(--brand-primary);
    border-color: #94a3b8;
}

.filter-tab-pill.active {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(11, 59, 96, 0.25);
}

.home-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.home-prod-card {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    transition: all 0.28s ease;
    position: relative;
}

.home-prod-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: #3b82f6;
}

.prod-card-top-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    z-index: 2;
    box-shadow: 0 2px 6px rgba(230, 57, 70, 0.3);
}

.home-card-img-wrap {
    aspect-ratio: 1/1;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 14px;
    background: #f8fafc;
    cursor: pointer;
}

.home-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-prod-card:hover .home-card-img-wrap img {
    transform: scale(1.08);
}

.prod-card-cat {
    font-size: 11.5px;
    color: #0369a1;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.prod-card-name {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.45;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
    cursor: pointer;
}

.prod-card-rating {
    font-size: 12px;
    color: #f59e0b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.prod-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}

.prod-card-current-price {
    font-size: 18px;
    font-weight: 900;
    color: var(--brand-accent);
}

.prod-card-old-price {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}

.prod-card-actions {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 8px;
}

.btn-card-view-detail {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #1e40af 100%);
    color: #ffffff;
    padding: 9px 8px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 800;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-card-view-detail:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(11, 59, 96, 0.3);
}

.btn-card-add-quick {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 9px 8px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-card-add-quick:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

/* Topics by Major Section */
.majors-section {
    padding: 30px 0 44px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    border-radius: var(--radius-xl);
    margin: 20px 0;
}

.majors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 15px;
}

.major-topic-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-card);
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.major-topic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #3b82f6;
}

.major-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.major-card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 8px;
}

.major-topics-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #475569;
    margin-bottom: 14px;
}

.major-topics-list li::before {
    content: "✓ ";
    color: #10b981;
    font-weight: bold;
}

/* Process 4 Steps */
.process-section {
    padding: 36px 0;
}

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

.process-step-card {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-subtle);
    position: relative;
    transition: all 0.25s;
}

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

.process-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(230, 57, 70, 0.4);
}

.process-icon {
    font-size: 36px;
    margin-top: 6px;
    margin-bottom: 12px;
}

.process-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 6px;
}

.process-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* Testimonials Review */
.testimonials-section {
    padding: 30px 0 46px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.student-review-text {
    font-size: 14px;
    color: #334155;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 16px;
}

.student-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid #3b82f6;
}

.student-info h5 {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--brand-primary);
}

.student-info span {
    font-size: 12px;
    color: #64748b;
}

/* Responsive for Homepage */
@media (max-width: 1024px) {
    .quick-cats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .home-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .majors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .quick-cats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .home-products-grid {
        grid-template-columns: 1fr;
    }
    .majors-grid {
        grid-template-columns: 1fr;
    }
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    .process-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 28px;
    }
}

/* ==========================================================================
   HỆ THỐNG TÀI KHOẢN KHÁCH HÀNG & THANH TOÁN TỰ ĐỘNG VIETQR
   ========================================================================== */

/* Top bar user badge */
.top-bar-auth-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-auth-trigger {
    background: linear-gradient(135deg, #0b3b60 0%, #1e40af 100%);
    color: #ffffff !important;
    border: 1.5px solid #1e40af;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(11, 59, 96, 0.22);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-auth-trigger:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.35);
}

.user-logged-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    border: 1.5px solid #86efac;
    font-size: 12px;
    color: #065f46;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.15);
}

.user-greeting {
    color: #065f46;
    font-weight: 600;
}

.user-greeting strong {
    color: #047857;
    font-weight: 800;
}

.btn-user-orders {
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-user-orders:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-user-logout {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-user-logout:hover {
    background: #fca5a5;
    color: #991b1b;
}

/* Modal Auth Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
}

.auth-tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 14.5px;
    font-weight: 800;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.auth-tab-btn.active {
    color: var(--brand-accent);
    border-bottom-color: var(--brand-accent);
}

.auth-tab-pane {
    display: none;
}

.auth-tab-pane.active {
    display: block;
}

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

.auth-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 5px;
}

.auth-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    transition: border-color 0.2s;
}

.auth-form-group input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-auth-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--brand-accent) 0%, #d62828 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    transition: all 0.25s;
    margin-top: 6px;
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.45);
}

/* ==========================================
   VIETQR AUTO PAYMENT MODAL
   ========================================== */
.payment-card-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 22px;
    align-items: center;
}

@media (max-width: 640px) {
    .payment-card-body {
        grid-template-columns: 1fr;
    }
}

.qr-code-box {
    background: #ffffff;
    border: 2px dashed #0284c7;
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.15);
}

.qr-code-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

.qr-scan-hint {
    margin-top: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: #0369a1;
}

.payment-details-table {
    width: 100%;
    font-size: 13.5px;
    border-collapse: collapse;
}

.payment-details-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.payment-details-table td {
    padding: 8px 4px;
}

.payment-details-table td.label-col {
    color: #64748b;
    font-weight: 600;
    width: 120px;
}

.payment-details-table td.val-col {
    color: #0f172a;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-copy-mini {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-copy-mini:hover {
    background: #0284c7;
    color: #fff;
}

.payment-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-confirm-paid {
    flex: 1;
    background: #10b981;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.2s;
}

.btn-confirm-paid:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-zalo-receipt {
    background: #0068ff;
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 104, 255, 0.3);
}

.btn-zalo-receipt:hover {
    background: #0052cc;
    transform: translateY(-2px);
}

/* User orders modal */
.user-orders-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-order-card {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    background: #f8fafc;
}

.user-order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 6px;
}

.user-order-id {
    font-weight: 800;
    color: var(--brand-primary);
}

.user-order-status {
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 800;
    background: #e0f2fe;
    color: #0369a1;
}

.user-order-status.paid {
    background: #dcfce7;
    color: #15803d;
}

/* ==========================================================================
   CHỌN PHƯƠNG THỨC THANH TOÁN (VIETQR vs COD)
   ========================================================================== */
.payment-methods-select {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
    margin-bottom: 4px;
}

.pay-method-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
}

.pay-method-card:hover {
    border-color: #93c5fd;
    background: #f0f7ff;
}

.pay-method-card.selected,
.pay-method-card:has(input[type="radio"]:checked) {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

.pay-method-radio {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #0284c7;
    cursor: pointer;
}

.pay-method-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

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

.pay-method-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pay-method-tag {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
}

.pay-method-tag.recommended {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.pay-method-tag.cod {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.pay-method-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.4;
}

/* COD Order Success Modal Box */
.cod-success-box {
    text-align: center;
    padding: 10px 0;
}

.cod-success-icon {
    font-size: 52px;
    margin-bottom: 8px;
    animation: bounceIcon 1s ease infinite alternate;
}

@keyframes bounceIcon {
    from { transform: translateY(0); }
    to { transform: translateY(-6px); }
}

.cod-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cod-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: #475569;
}

.cod-summary-row strong {
    color: #0f172a;
}

.cod-notice-banner {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: #92400e;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 18px;
}

/* ==========================================================================
   TỐI ƯU TOÀN DIỆN CHO GIAO DIỆN ĐIỆN THOẠI (MOBILE & TABLET RESPONSIVE)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Thanh Top Bar Gọn Gàng, Rõ Ràng Nút Đăng Nhập / Đăng Ký */
    .top-bar {
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
    }

    .top-bar-inner {
        height: auto;
        min-height: 44px;
        padding: 6px 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    /* Ẩn các chip chữ quá dài trên máy tính để tránh tràn màn hình */
    .top-bar-left .welcome-chip,
    .top-bar-left .btn-send-request,
    .top-bar-left .contact-info {
        display: none !important;
    }

    /* Hiển thị hotline nhỏ gọn cạnh nút đăng nhập */
    .top-bar-left::before {
        content: "📞 Zalo: 0886.821.406";
        font-size: 11.5px;
        font-weight: 700;
        color: #0b3b60;
        background: #f1f5f9;
        padding: 4px 10px;
        border-radius: 9999px;
        display: inline-block;
        white-space: nowrap;
    }

    .top-bar-right {
        margin-left: auto;
    }

    .btn-auth-trigger {
        padding: 5px 12px;
        font-size: 12px;
        box-shadow: 0 2px 6px rgba(11, 59, 96, 0.25);
    }

    .user-greeting {
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11.5px;
    }

    /* 2. Header Main: Bố cục 2 dòng không bao giờ đè chữ */
    .header-main {
        padding: 10px 0;
    }

    .header-main-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas: 
            "logo cart"
            "search search";
        gap: 10px;
        align-items: center;
    }

    .brand-logo-wrap {
        grid-area: logo;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .brand-logo-img {
        width: 44px;
        height: 44px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .brand-title {
        font-size: 16px;
        line-height: 1.15;
    }

    .brand-subtitle {
        font-size: 9px;
        letter-spacing: 0.2px;
    }

    .header-actions {
        grid-area: cart;
        display: flex;
        align-items: center;
        margin-left: auto;
    }

    .header-actions .social-links {
        display: none !important;
    }

    .cart-pill-btn {
        padding: 6px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    .search-box-wrap {
        grid-area: search;
        width: 100%;
        max-width: 100%;
        margin-top: 2px;
    }

    .search-form {
        height: 40px;
        border-radius: 20px;
    }

    .search-cat-select {
        max-width: 110px;
        padding: 0 6px;
        font-size: 11.5px;
    }

    .search-input {
        font-size: 13px;
        padding: 0 10px;
    }

    .search-btn {
        padding: 0 14px;
        font-size: 14px;
    }

    /* 3. Navigation Bar: Cuộn ngang mượt mà */
    .main-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-list {
        display: flex;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding: 0 6px;
    }

    .nav-item a {
        padding: 10px 14px;
        font-size: 12.5px;
    }

    /* 4. Utility Bar đỏ: 2 cột gọn gàng */
    .utility-bar-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .utility-item {
        padding: 9px 6px;
        font-size: 11.5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .utility-item:nth-child(2) {
        border-right: none;
    }

    .utility-item:nth-child(3) {
        border-bottom: none;
    }

    .utility-item:nth-child(4) {
        border-bottom: none;
        border-right: none;
    }

    /* 5. Banner Trang Sản Phẩm */
    .promo-banners-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .banner-rare {
        padding: 16px;
        min-height: auto;
    }

    .banner-rare-content h2 {
        font-size: 20px;
    }

    .banner-rare-content h3 {
        font-size: 22px;
    }

    .banner-rare-sub {
        font-size: 12px;
    }

    .banner-rare-logo {
        width: 65px;
    }

    .banner-pcb img {
        max-height: 140px;
        object-fit: cover;
    }

    /* 6. Layout Chi Tiết Sản Phẩm 1 Cột */
    .main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-detail-card {
        padding: 16px;
    }

    .product-title {
        font-size: 18px;
        margin-bottom: 12px;
        line-height: 1.35;
    }

    .price-buy-box {
        padding: 16px;
    }

    .action-buttons-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn-buy-now,
    .btn-add-cart-outline {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }

    .support-engineer-cards {
        grid-template-columns: 1fr !important;
    }

    /* 7. Nút Admin nổi ở góc */
    .floating-admin-btn {
        bottom: 16px;
        left: 16px;
        padding: 8px 14px;
        font-size: 12px;
    }

    /* 8. Toàn bộ Modal trên Mobile */
    .modal-overlay {
        padding: 10px;
        align-items: center;
    }

    .modal-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px;
        max-height: 90vh;
        overflow-y: auto;
        padding: 18px 14px;
    }

    .modal-header h3 {
        font-size: 15px;
    }

    .payment-card-body {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .qr-code-box {
        max-width: 240px;
        margin: 0 auto;
    }

    .payment-details-table {
        font-size: 12.5px;
    }
}

/* ==========================================================================
   LIVE SEARCH DROPDOWN & CATEGORY FILTER STYLES
   ========================================================================== */
.search-box-wrap {
    position: relative;
}

.search-live-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 16px;
    box-shadow: 0 20px 48px -4px rgba(15, 23, 42, 0.22);
    z-index: 99999;
    max-height: 540px;
    overflow: hidden;
    display: none;
    padding: 12px;
    animation: fadeInDropdown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-live-dropdown.active {
    display: block;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-live-header {
    padding: 4px 6px 10px 6px;
    font-size: 11.5px;
    font-weight: 800;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.3px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 10px;
}

.search-live-hint {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.search-live-list {
    max-height: 410px;
    overflow-y: auto;
    padding-right: 2px;
}

/* ==========================================================================
   TẠO THÀNH CÁC Ô GỢI Ý RIÊNG BIỆT, RÕ RÀNG VÀ DỄ NHÌN
   ========================================================================== */
.search-live-box-item {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 11px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.search-live-box-item:last-child {
    margin-bottom: 2px;
}

.search-live-box-item:hover {
    background: #ffffff;
    border-color: var(--brand-accent, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.12);
}

.search-box-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.search-box-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    transition: color 0.15s ease;
}

.search-live-box-item:hover .search-box-title {
    color: var(--brand-accent, #dc2626);
}

.search-box-price {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--brand-accent, #dc2626);
    background: #fef2f2;
    border: 1px solid #fee2e2;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-box-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11.5px;
}

.search-box-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.search-box-cat {
    color: #475569;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-box-sku {
    color: #64748b;
    background: #f1f5f9;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 10.5px;
    white-space: nowrap;
}

.search-box-action {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.search-live-box-item:hover .search-box-action {
    color: var(--brand-accent, #dc2626);
}

.search-box-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.search-live-box-item:hover .search-box-arrow {
    transform: translateX(3px);
}

.search-live-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    background: #ffffff;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.08);
    transition: all 0.2s ease;
}

.search-live-footer:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.search-live-empty {
    padding: 24px 16px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    background: #ffffff;
    border-radius: 10px;
    border: 1.5px dashed #cbd5e1;
}

/* ==========================================================================
   CHẾ ĐỘ CỬA HÀNG / DANH MỤC 8-12 SẢN PHẨM & QUY TẮC HIỂN THỊ CHỐNG CHỚP
   ========================================================================== */
html.page-catalog-mode #productDetailCard,
html.page-catalog-mode #productTabsContainer,
html.page-catalog-mode #relatedProductsSection {
    display: none !important;
}

html.page-catalog-mode #catalogSection {
    display: block !important;
}

html.page-detail-mode #catalogSection {
    display: none !important;
}

html.page-detail-mode #productDetailCard,
html.page-detail-mode #productTabsContainer,
html.page-detail-mode #relatedProductsSection {
    display: block !important;
}

.catalog-section {
    background: #ffffff;
    border: 1px solid var(--border-soft, #e2e8f0);
    border-radius: var(--radius-md, 8px);
    padding: 24px;
    box-shadow: var(--shadow-card, 0 2px 8px rgba(0,0,0,0.06));
}

.catalog-header-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 2px solid #f1f5f9;
    flex-wrap: wrap;
}

.catalog-title-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: #dc2626;
    background: #fee2e2;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.catalog-main-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.catalog-sub-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.catalog-stats-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ==========================================================================
   GIAO DIỆN KHI DANH MỤC CHƯA CÓ SẢN PHẨM & KHU VỰC SẢN PHẨM GỢI Ý
   ========================================================================== */
.category-empty-wrapper {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 14px;
}

.category-empty-state-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid #fde68a;
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08);
}

.empty-state-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #fcd34d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.15);
}

.empty-state-info {
    flex: 1;
}

.empty-state-heading {
    font-size: 17px;
    font-weight: 800;
    color: #92400e;
    margin: 0 0 6px 0;
}

.empty-state-message {
    font-size: 13.5px;
    color: #78350f;
    line-height: 1.5;
    margin: 0 0 14px 0;
}

.empty-state-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-empty-zalo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #0284c7;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.btn-empty-zalo:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.btn-empty-all-prods {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #ffffff;
    color: #1e293b;
    border: 1.5px solid #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-empty-all-prods:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.suggested-divider-wrap {
    padding: 16px 20px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    text-align: left;
}

.suggested-badge-pill {
    display: inline-block;
    background: #fee2e2;
    color: #dc2626;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.suggested-heading {
    font-size: 15.5px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.suggested-sub {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* ==========================================================================
   THIẾT KẾ PHẦN XEM THÊM HIỆN ĐẠI, CAO CẤP (BỎ HOÀN TOÀN TIA SÉT)
   ========================================================================== */
.load-more-modern-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 24px auto 10px auto;
    max-width: 540px;
}

.btn-modern-loadmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 32px;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.28);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-modern-loadmore:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.38);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-modern-loadmore:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.25);
}

.loadmore-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    transition: transform 0.25s ease;
}

.btn-modern-loadmore:hover .loadmore-icon-circle {
    transform: translateY(2px);
}

.loadmore-text {
    letter-spacing: 0.2px;
}

.loadmore-badge {
    background: rgba(255, 255, 255, 0.22);
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.loadmore-progress-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.loadmore-progress-bar {
    width: 260px;
    height: 5px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.loadmore-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #f97316);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.loadmore-progress-text {
    font-size: 12.5px;
    color: #64748b;
}

.loadmore-progress-text strong {
    color: #1e293b;
}

.load-more-completed {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 30px;
    color: #166534;
    font-size: 13.5px;
    font-weight: 600;
    margin: 16px auto;
}

.completed-check {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #22c55e;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
}

/* ==========================================================================
   VIETQR TỰ ĐỘNG BẰNG WEBHOOK SEPAY & SUCCESS MODAL
   ========================================================================== */
.payment-waiting-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.08);
}

.payment-waiting-pulse {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pulse-dot-live {
    width: 14px;
    height: 14px;
    background: #16a34a;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

.payment-waiting-info {
    text-align: left;
}

.payment-waiting-title {
    font-size: 13px;
    font-weight: 700;
    color: #15803d;
    margin-bottom: 0;
}

.vq-success-icon-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
}

.vq-success-circle {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.35);
    animation: vqSuccessPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes vqSuccessPop {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    70% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}



