/* ==========================================================================
   TRUNG TÂM THỜI TRANG AN NHƠN (Since 1980) - Mobile Optimized Stylesheet
   Website: thoitrang-annhon.com
   Màu chủ đạo: Xanh Đậm (#004b93) + Trắng + Đỏ Nổi Bật (#d90429) + Zalo Blue (#0068ff)
   ========================================================================== */

:root {
    --primary-color: #004b93;
    --primary-dark: #003366;
    --primary-light: #eef5fc;
    --secondary-color: #d90429;
    --zalo-color: #0068ff;
    --zalo-hover: #0052cc;
    --text-color: #2b2b2b;
    --text-muted: #6c757d;
    --bg-light: #f4f6f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   1. TOP BAR
   ========================================================================== */
.top-bar {
    background-color: var(--primary-dark);
    color: #ffffff;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.top-bar-item i {
    color: #ffd166;
}

.hotline-link {
    font-weight: 700;
    color: #ffd166;
}

/* ==========================================================================
   2. MAIN HEADER (Flexbox Mobile Optimized)
   ========================================================================== */
.main-header {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    gap: 15px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

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

.brand-text-box h1 {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.1;
}

.brand-text-box .sub-title {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-search {
    flex: 1;
    max-width: 380px;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #f0f4f9;
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    padding: 3px 6px 3px 14px;
}

.search-input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 13px;
    outline: none;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.btn-zalo-header {
    background: var(--zalo-color);
    color: white;
    padding: 7px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 104, 255, 0.25);
}

.cart-icon-btn {
    position: relative;
    background: var(--primary-light);
    color: var(--primary-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--secondary-color);
    color: white;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Nav Menu Bar */
.nav-menu-bar {
    background: var(--primary-color);
}

.nav-list {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

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

.nav-item a {
    display: block;
    color: #ffffff;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
}

.nav-item.active a {
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: #ffd166;
}

.nav-item.sale-item a {
    color: #ffea00;
}

/* ==========================================================================
   3. HERO BANNER
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, #003666 0%, #004b93 100%);
    color: white;
    padding: 30px 0;
    position: relative;
}

.hero-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 209, 102, 0.18);
    color: #ffd166;
    border: 1px solid rgba(255, 209, 102, 0.45);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-text-box h2 {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.hero-text-box h2 span {
    color: #ffd166;
    display: block;
    font-size: 20px;
    font-weight: 700;
    margin-top: 4px;
}

.hero-text-box p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero-zalo {
    background: var(--zalo-color);
    color: white;
    padding: 12px 22px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.4);
}

.btn-hero-outline {
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-image-box {
    position: relative;
    text-align: center;
}

.hero-image-box img {
    max-height: 340px;
    width: 100%;
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease;
}

.hero-image-box img:hover {
    transform: scale(1.015);
}

.hero-badge-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 75, 147, 0.92);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.3px;
}

/* ==========================================================================
   4. FEATURES BAR
   ========================================================================== */
.features-section {
    background: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.feature-info h4 {
    font-size: 13px;
    font-weight: 700;
}

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

/* Check Policy Section */
.check-policy-section {
    background: linear-gradient(135deg, #eef5fc 0%, #ddeeff 100%);
    border-top: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding: 20px 0;
}

.check-policy-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.check-policy-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,75,147,0.35);
}

.check-policy-content h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.check-policy-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.check-policy-list li {
    font-size: 13px;
    color: var(--text-color);
    display: flex;
    align-items: flex-start;
    gap: 7px;
    line-height: 1.4;
}

.check-policy-list li i.fa-check-circle {
    color: #28a745;
    font-size: 14px;
    margin-top: 1px;
    flex-shrink: 0;
}

.check-policy-list li i.fa-heart {
    color: var(--secondary-color);
    font-size: 13px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Return Policy Section */
.return-policy-section {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
}

.return-policy-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.return-policy-icon-wrap {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.return-policy-header h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.return-policy-intro {
    font-size: 13px;
    color: var(--text-color);
    margin-bottom: 14px;
    padding-left: 4px;
}

.return-policy-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.rp-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid;
}

.rp-card--free {
    background: #f0fff4;
    border-color: #28a745;
}

.rp-card--paid {
    background: #fff8f0;
    border-color: #fd7e14;
}

.rp-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.rp-card--free .rp-card-icon {
    background: #d4edda;
    color: #28a745;
}

.rp-card--paid .rp-card-icon {
    background: #fde8d0;
    color: #fd7e14;
}

.rp-card-body h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.rp-card-body p {
    font-size: 12px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 4px;
}

.rp-note {
    font-size: 11.5px !important;
    color: #155724 !important;
    background: #d4edda;
    border-radius: 6px;
    padding: 4px 8px !important;
    margin-top: 4px !important;
}

.rp-note i {
    color: #28a745;
}

.badge-free {
    background: #28a745;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.badge-fee {
    background: #fd7e14;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   5. PRODUCTS GRID
   ========================================================================== */
.products-section {
    padding: 30px 0 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
}

.category-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
    margin-bottom: 25px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    color: var(--text-color);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

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

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

.product-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.product-thumb {
    position: relative;
    padding-top: 130%;
    overflow: hidden;
    background: #f8f9fa;
}

.product-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--secondary-color);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.cat-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 51, 102, 0.85);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
}

.product-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 34px;
}

.product-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--secondary-color);
}

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

.product-card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-action-row {
    display: flex;
    gap: 6px;
}

.btn-add-cart {
    flex: 1;
    background: #f0f7ff;
    color: #004b93;
    border: 1px solid #93c5fd;
    padding: 7px 6px;
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-add-cart:hover {
    background: #004b93;
    color: #ffffff;
    border-color: #004b93;
    transform: translateY(-1px);
}

.btn-buy-now {
    flex: 1;
    background: #d90429;
    color: #ffffff;
    border: none;
    padding: 7px 6px;
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-buy-now:hover {
    background: #b90322;
    transform: translateY(-1px);
}

.btn-zalo-buy {
    flex: 1;
    background: var(--zalo-color);
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    text-decoration: none;
}

.btn-quick-view {
    background: var(--primary-light);
    color: var(--primary-color);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================================================
   5b. KHẢO SÁT & TẶNG VOUCHER STYLES
   ========================================================================== */
.nav-item.survey-nav-item a {
    background: #ffd166;
    color: #003366 !important;
    font-weight: 800;
    border-radius: 20px;
    padding: 6px 14px;
    transition: var(--transition);
}

.nav-item.survey-nav-item a:hover {
    background: #ffc233;
    transform: scale(1.04);
}

.survey-section {
    background: #f4f7fb;
    padding: 45px 0 55px;
    border-top: 1px solid var(--border-color);
}

.survey-box {
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 75, 147, 0.08);
    padding: 35px 40px;
    border: 1px solid #e1e8f0;
}

.survey-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.survey-main-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.survey-subtitle {
    font-size: 13.5px;
    color: #555;
    margin-bottom: 16px;
}

.survey-reward-banner {
    background: #fffbeb;
    border: 1.5px dashed #f59f00;
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 25px;
}

.reward-pill {
    font-size: 12.5px;
    color: #666;
    margin-bottom: 5px;
}

.reward-highlight {
    font-size: 14px;
    color: #c92a2a;
}

.reward-highlight strong {
    color: #b01a1a;
}

.survey-q-card {
    background: #fbfcfd;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.survey-q-card:hover {
    border-color: #cbd5e1;
}

.survey-q-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.q-number {
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    margin-top: 2px;
}

.q-number-voucher {
    background: #d90429;
}

.survey-q-header h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin: 0;
}

.q-instruction {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    padding-left: 2px;
}

.survey-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.survey-checkbox-label,
.survey-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13.5px;
    color: #334155;
    padding: 8px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    user-select: none;
}

.survey-checkbox-label:hover,
.survey-radio-label:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.survey-checkbox-label input,
.survey-radio-label input {
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.opt-text {
    line-height: 1.4;
}

.survey-other-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.survey-other-row .survey-checkbox-label {
    background: transparent;
    border: none;
    padding: 0;
}

.survey-other-input {
    flex: 1;
    min-width: 220px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    outline: none;
}

.survey-other-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 75, 147, 0.15);
}

.survey-voucher-card {
    background: #f0f7ff;
    border: 1.5px solid #004b93;
}

.voucher-box-preview {
    background: white;
    border: 1px dashed #004b93;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.voucher-badge-tag {
    background: #004b93;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.voucher-desc {
    font-size: 13px;
    color: #1e293b;
}

.survey-customer-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 12px;
}

.form-group-item label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: #1e293b;
}

.survey-text-input {
    width: 100%;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13.5px;
    background: white;
    outline: none;
    box-sizing: border-box;
}

.survey-text-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 75, 147, 0.12);
}

.required-star {
    color: #d90429;
}

.survey-consent {
    margin-top: 8px;
}

.consent-label {
    background: transparent;
    border: none;
    padding: 4px 0;
    font-size: 12.5px;
    color: #475569;
}

.survey-submit-wrapper {
    text-align: center;
    margin-top: 15px;
}

.btn-survey-submit {
    width: 100%;
    background: linear-gradient(135deg, #d90429 0%, #b70020 100%);
    color: white;
    font-size: 15px;
    font-weight: 800;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.3);
    transition: all 0.25s ease;
}

.btn-survey-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 4, 41, 0.4);
}

.submit-privacy-note {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
}

/* Voucher Success Modal Styles */
.voucher-modal-box {
    max-width: 480px;
    text-align: center;
    padding: 30px 24px;
}

.voucher-success-icon {
    font-size: 52px;
    color: #10b981;
    margin-bottom: 12px;
}

.voucher-success-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.voucher-success-sub {
    font-size: 13.5px;
    color: #475569;
    margin-bottom: 16px;
}

.voucher-code-card {
    background: #fffbeb;
    border: 2px dashed #f59f00;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
}

.vcard-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.vcard-badge {
    font-size: 11px;
    font-weight: 800;
    background: #f59f00;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
}

.vcard-discount {
    font-size: 13px;
    font-weight: 800;
    color: #d90429;
}

.vcard-code-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 12px 0;
}

.vcard-code {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #004b93;
    background: white;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
}

.btn-copy-code {
    background: #004b93;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy-code:hover {
    background: #003366;
}

.vcard-rule {
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
}

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

.btn-voucher-send-zalo {
    width: 100%;
    background: var(--zalo-color);
    color: white;
    font-weight: 700;
    font-size: 13.5px;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 104, 255, 0.25);
    transition: var(--transition);
}

.btn-voucher-send-zalo:hover {
    background: var(--zalo-hover);
}

.btn-voucher-close {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    padding: 6px;
    text-decoration: underline;
}

/* ==========================================================================
   6. SHOWROOM & FOOTER
   ========================================================================== */
.showroom-section {
    background: #ffffff;
    padding: 35px 0;
    border-top: 1px solid var(--border-color);
}

.showroom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.showroom-image-box img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.showroom-info-box h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.since-tag {
    display: inline-block;
    background: #ffd166;
    color: #222;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 11px;
    margin-bottom: 12px;
}

.info-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.footer {
    background: var(--primary-dark);
    color: #e2e8f0;
    padding-top: 40px;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1fr;
    gap: 25px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
}

.copyright-bar {
    padding: 15px 0;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}

/* Floating Widgets */
.floating-widgets {
    position: fixed;
    bottom: 20px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.float-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.float-zalo { background: var(--zalo-color); }
.float-phone { background: var(--secondary-color); }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    padding: 15px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: #ffffff;
    border-radius: 16px;
    width: 95%;
    max-width: 1080px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

/* Product Detail Modal Layout (GUMAC Luxury Style) */
.modal-product-layout {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 32px;
    align-items: start;
}

/* Left: Gallery (Vertical thumbs + Main image) */
.product-gallery-side {
    display: flex;
    gap: 14px;
    position: sticky;
    top: 0;
}

.product-thumbs-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 75px;
    max-height: 520px;
    overflow-y: auto;
    flex-shrink: 0;
    scrollbar-width: thin;
}

.product-thumbs-column::-webkit-scrollbar {
    width: 4px;
}
.product-thumbs-column::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.product-thumbs-column img {
    width: 72px;
    height: 92px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.product-thumbs-column img.active,
.product-thumbs-column img:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 75, 147, 0.25);
    transform: scale(1.03);
}

.product-main-view {
    flex: 1;
    position: relative;
}

.product-main-view img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    background: #f8fafc;
}

/* Right: Product Detail Content */
.pdetail-info-side {
    display: flex;
    flex-direction: column;
}

.pdetail-title {
    font-size: 23px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 8px;
}

.pdetail-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.pdetail-sku {
    background: #eef5fc;
    color: var(--primary-color);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.pdetail-stars {
    color: #f59e0b;
}

.pdetail-stock {
    color: #16a34a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pdetail-price-box {
    margin-bottom: 16px;
}

.pdetail-price-main {
    font-size: 28px;
    font-weight: 900;
    color: var(--secondary-color);
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.pdetail-price-sub {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Combo Policy Box (Mua 1, Mua 2, Mua 3) */
.pdetail-combo-box {
    background: #fffbeb;
    border: 1.5px dashed #f59f00;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.pdetail-combo-title {
    font-size: 13px;
    font-weight: 800;
    color: #b45309;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

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

.pcombo-card {
    background: #ffffff;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pcombo-card.highlight {
    border-color: #f59e0b;
    background: #fffdf5;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.pcombo-tier {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
}

.pcombo-rate {
    font-size: 14px;
    font-weight: 800;
    color: var(--secondary-color);
}

.pcombo-ship {
    font-size: 10.5px;
    color: #16a34a;
    font-weight: 700;
}

/* Size Buttons */
.pdetail-size-section {
    margin-bottom: 16px;
}

.pdetail-size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.pdetail-size-guide-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    font-size: 12.5px;
    cursor: pointer;
}

.pdetail-size-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.psize-btn {
    border: 1.5px solid #cbd5e1;
    background: white;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.psize-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 75, 147, 0.3);
}

/* Size Table */
.pdetail-table-wrap {
    margin-bottom: 18px;
    border: 1.5px solid #004b93;
    border-radius: 10px;
    overflow: hidden;
}

.pdetail-table-title {
    background: #004b93;
    color: white;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pdetail-table {
    width: 100%;
    font-size: 12.5px;
    border-collapse: collapse;
    text-align: center;
}

.pdetail-table th {
    background: #eef5fc;
    color: #004b93;
    font-weight: 800;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
}

.pdetail-table td {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
}

/* 4-Item Custom Policy Grid (Khác hẳn mẫu GUMAC) */
.pdetail-policy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
}

.pdetail-policy-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ppolicy-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.ppolicy-icon-1 { background: #e0f2fe; color: #0284c7; } /* Xanh dương giao hàng */
.ppolicy-icon-2 { background: #dcfce7; color: #16a34a; } /* Xanh lá đổi hàng */
.ppolicy-icon-3 { background: #ffedd5; color: #ea580c; } /* Cam mở hộp kiểm tra */
.ppolicy-icon-4 { background: #f3e8ff; color: #9333ea; } /* Tím bảo hành 7 ngày */

.ppolicy-text h5 {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 2px 0;
}

.ppolicy-text p {
    font-size: 11px;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
}

/* CTA Action Buttons */
.pdetail-cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-pdetail-zalo {
    width: 100%;
    background: linear-gradient(135deg, #0068ff 0%, #004b93 100%);
    color: white;
    font-size: 15px;
    font-weight: 800;
    padding: 14px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 104, 255, 0.3);
    transition: var(--transition);
}

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

.btn-pdetail-phone {
    width: 100%;
    background: #ffffff;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    font-size: 13.5px;
    font-weight: 800;
    padding: 10px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-pdetail-phone:hover {
    background: #fff0f3;
}

/* Product Description Box */
.pdetail-desc-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 5px;
}

.pdetail-desc-header {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1.5px solid #e2e8f0;
    padding-bottom: 6px;
}

.pdetail-desc-content {
    font-size: 13px;
    color: #334155;
    line-height: 1.6;
}

.pdetail-desc-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdetail-desc-content li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
}

.pdetail-desc-content li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 800;
    font-size: 12px;
}

/* ==========================================================================
   📱 RESPONSIVE BREAKPOINTS (SPECIFIC MOBILE FIXES)
   ========================================================================== */
@media (max-width: 992px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .top-bar { display: none; } /* Hide topbar on mobile to save vertical space */
    
    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 8px 0;
    }

    .brand-logo img { height: 38px; }

    .brand-text-box h1 {
        font-size: 14px;
        white-space: nowrap;
    }

    .brand-text-box .sub-title {
        font-size: 9px;
        white-space: nowrap;
    }

    /* Move search bar to full width below header on mobile */
    .header-search {
        order: 3;
        flex: 100%;
        max-width: 100%;
        margin-top: 2px;
    }

    .search-input-group {
        padding: 2px 4px 2px 12px;
    }

    .btn-zalo-header span {
        display: none; /* Hide text, keep Zalo icon on mobile */
    }

    .btn-zalo-header {
        padding: 8px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }

    .hero-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

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

    .hero-text-box h2 span {
        font-size: 16px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .btn-hero-zalo, .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }

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

    .modal-container {
        padding: 20px 14px;
        width: 96%;
        max-height: 94vh;
    }

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

    .product-gallery-side {
        flex-direction: column-reverse;
        gap: 10px;
        position: static;
    }

    .product-thumbs-column {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .product-thumbs-column img {
        width: 65px;
        height: 82px;
    }

    .product-main-view img {
        height: 380px;
    }

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

    .pdetail-combo-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 576px) {
    .container { padding: 0 10px; }

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

    .product-details {
        padding: 8px;
    }

    .product-title {
        font-size: 12px;
        height: 32px;
    }

    .current-price {
        font-size: 13px;
    }

    .old-price {
        font-size: 10px;
    }

    .btn-zalo-buy {
        font-size: 10px;
        padding: 6px 4px;
    }

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

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

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

    .check-policy-content h3 {
        font-size: 13px;
    }

    .check-policy-list li {
        font-size: 12px;
    }

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

    .return-policy-header h3 {
        font-size: 13px;
    }

    .survey-box {
        padding: 22px 14px;
        border-radius: 12px;
    }

    .survey-main-title {
        font-size: 17px;
    }

    .survey-customer-inputs {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .survey-other-row {
        flex-direction: column;
        align-items: stretch;
    }

    .survey-other-input {
        min-width: 100%;
    }

    .vcard-code-area {
        flex-direction: column;
        gap: 8px;
    }

    .vcard-code {
        font-size: 20px;
        letter-spacing: 2px;
    }
}

/* ==========================================================================
   POSITIONING DIFFERENTIATION (SOP NGÀY 8 - ĐÁNH BẬT ĐỐI THỦ CÔNG NGHIỆP)
   ========================================================================== */
.hero-desc-main {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 14px;
    opacity: 0.95;
}

.hero-usps-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.usp-pill {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.usp-pill i {
    color: #ffd166;
}

/* Why Choose Section */
.why-choose-section {
    padding: 35px 0 15px;
    background: #f8fafc;
}

.why-choose-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 54, 102, 0.06);
}

.why-choose-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 28px;
}

.why-tag {
    display: inline-block;
    background: #e6f4ea;
    color: #137333;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.why-choose-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color, #003666);
    line-height: 1.4;
}

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

.why-item {
    background: #fcfdfd;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 22px 18px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.why-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 54, 102, 0.08);
    border-color: #cbd5e1;
}

.why-item-icon {
    width: 44px;
    height: 44px;
    background: #eef4fb;
    color: var(--primary-color, #003666);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.why-item-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.why-item-text p {
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

@media (max-width: 768px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .why-choose-card {
        padding: 20px 16px;
    }
    .why-choose-header h3 {
        font-size: 17px;
    }
    .hero-usps-list {
        gap: 6px;
    }
    .usp-pill {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* ==========================================================================
   11. FLOATING QUICK CONTACT (Zalo & Hotline - Bottom Left)
   ========================================================================== */
.floating-widgets {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9990;
}

.float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.float-zalo {
    background: #0068ff;
}

.float-phone {
    background: #25d366;
    animation: phonePulse 2s infinite ease-in-out;
}

@keyframes phonePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ==========================================================================
   12. CHATBOT AN NHƠN WIDGET (Bottom Right)
   ========================================================================== */
.chatbot-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: inherit;
}

/* Chatbot Launcher Button */
.chatbot-launcher {
    background: linear-gradient(135deg, #003666 0%, #004b93 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 209, 102, 0.6);
    border-radius: 30px;
    padding: 8px 18px 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(0, 54, 102, 0.38);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.chatbot-launcher:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 28px rgba(0, 54, 102, 0.45);
    border-color: #ffd166;
}

.launcher-avatar {
    width: 38px;
    height: 38px;
    background: #ffd166;
    color: #003666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.launcher-text {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.launcher-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e65100;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Chatbot Popup Window */
.chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 560px;
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(0, 40, 80, 0.28);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 54, 102, 0.12);
    z-index: 10000;
    animation: chatSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.chatbot-window.active {
    display: flex;
}

/* Chat Header */
.chatbot-header {
    background: linear-gradient(135deg, #003666 0%, #004b93 100%);
    color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid rgba(255, 209, 102, 0.3);
}

.chatbot-brand-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-avatar-circle {
    width: 36px;
    height: 36px;
    background: rgba(255, 209, 102, 0.2);
    border: 1.5px solid #ffd166;
    color: #ffd166;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.chatbot-title-box h4 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
}

.chatbot-status {
    font-size: 11px;
    color: #ffd166;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #00e676;
    border-radius: 50%;
    display: inline-block;
}

.chatbot-btn-minimize {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.chatbot-btn-minimize:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Chat Messages */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
}

.chatbot-messages::-webkit-scrollbar {
    width: 5px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 86%;
    animation: msgFadeIn 0.2s ease;
}

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

.chat-msg-bot {
    align-self: flex-start;
}

.chat-msg-user {
    align-self: flex-end;
}

.chat-bubble {
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.55;
    position: relative;
    word-break: break-word;
}

.chat-msg-bot .chat-bubble {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.chat-msg-user .chat-bubble {
    background: linear-gradient(135deg, #003666 0%, #004b93 100%);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.chat-msg-time {
    font-size: 10.5px;
    color: #94a3b8;
    margin-top: 4px;
    padding: 0 4px;
}

.chat-msg-user .chat-msg-time {
    text-align: right;
}

/* Action Buttons inside Bot message */
.chat-actions-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 10px;
}

.btn-chat-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-chat-primary {
    background: linear-gradient(135deg, #e65100, #ff8f00);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(230, 81, 0, 0.35);
}

.btn-chat-primary:hover {
    background: linear-gradient(135deg, #bf360c, #f57c00);
    transform: translateY(-1px);
}

.btn-chat-secondary {
    background: #eef4fb;
    color: #004b93;
    border: 1px solid #bfdbfe;
}

.btn-chat-secondary:hover {
    background: #dbeafe;
}

.btn-chat-zalo {
    background: #0068ff;
    color: #ffffff;
}

.btn-chat-zalo:hover {
    background: #0050cc;
}

/* ==========================================================================
   RICH PRODUCT CARDS (CHUẨN TMĐT CHO HÀNG TRĂM SẢN PHẨM TRONG CHAT)
   ========================================================================== */
.chat-product-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    margin-top: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 10px;
    align-items: center;
    text-align: left;
    transition: all 0.2s ease;
}

.chat-product-card:hover {
    border-color: #004b93;
    box-shadow: 0 4px 12px rgba(0, 75, 147, 0.12);
}

.chat-prod-thumb {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #f1f5f9;
}

.chat-prod-info {
    flex: 1;
    min-width: 0;
}

.chat-prod-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.chat-prod-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.chat-prod-price {
    font-size: 14px;
    font-weight: 800;
    color: #dc2626;
}

.chat-badge-freeship {
    font-size: 10px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 6px;
    border-radius: 10px;
    border: 1px solid #a7f3d0;
}

.chat-prod-promo-note {
    font-size: 11px;
    color: #d97706;
    font-weight: 600;
    margin-bottom: 6px;
}

.chat-prod-btns {
    display: flex;
    gap: 6px;
}

.btn-chat-buy-now {
    flex: 1;
    padding: 6px 8px;
    background: linear-gradient(135deg, #e65100, #ff8f00);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(230, 81, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-chat-buy-now:hover {
    background: linear-gradient(135deg, #bf360c, #f57c00);
    transform: translateY(-1px);
}

.btn-chat-quick-view {
    flex: 1;
    padding: 6px 8px;
    background: #eff6ff;
    color: #004b93;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-chat-quick-view:hover {
    background: #dbeafe;
}


/* Quick Chips (Gợi ý câu hỏi nhanh) */
.chatbot-quick-chips {
    padding: 8px 12px 10px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.chatbot-quick-chips::-webkit-scrollbar {
    display: none;
}

.chip-btn {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chip-btn:hover {
    background: #e2e8f0;
    color: #003666;
    border-color: #cbd5e1;
}

.chip-btn.chip-highlight {
    background: #fff8e1;
    color: #b78103;
    border-color: #ffe082;
    font-weight: 700;
}

.chip-btn.chip-highlight:hover {
    background: #ffecb3;
}

/* Input Bar */
.chatbot-input-bar {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    gap: 8px;
}

.chatbot-input-bar input {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s;
}

.chatbot-input-bar input:focus {
    border-color: #004b93;
}

.chatbot-input-bar button {
    background: linear-gradient(135deg, #003666 0%, #004b93 100%);
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.chatbot-input-bar button:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   13. FORM MODAL: DANH SÁCH CHỜ & ĐẶT HÀNG MAY ĐO
   ========================================================================== */
.waiting-list-modal-box {
    max-width: 560px;
    width: 95%;
    max-height: 88vh;
    overflow-y: auto !important;
    background: #ffffff;
    border-radius: 20px;
    padding: 0 !important;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.waiting-list-content {
    padding: 22px 24px 28px;
}

.wl-header {
    margin-bottom: 14px;
}

.wl-badge {
    background: rgba(230, 81, 0, 0.12);
    color: #e65100;
    font-weight: 800;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.wl-title {
    font-size: 20px;
    font-weight: 900;
    color: #003666;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.wl-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 14px;
}

.wl-guarantee-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.wl-guarantee-pills span {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wl-guarantee-pills span i {
    color: #004b93;
}

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

@media (max-width: 540px) {
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.form-input-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: #ffffff;
}

.form-input-control:focus {
    border-color: #004b93;
    box-shadow: 0 0 0 3px rgba(0, 75, 147, 0.1);
}

.btn-submit-waiting-list {
    width: 100%;
    background: linear-gradient(135deg, #e65100 0%, #ff8f00 100%);
    color: #ffffff;
    border: none;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 81, 0, 0.35);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
}

.btn-submit-waiting-list:hover {
    background: linear-gradient(135deg, #bf360c 0%, #f57c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 81, 0, 0.45);
}

.wl-security-note {
    font-size: 11.5px;
    color: #94a3b8;
    text-align: center;
    margin-top: 10px;
}

/* Waiting List Success View */
.wl-success-view {
    text-align: center;
    padding: 20px 10px;
}

.wl-success-icon {
    width: 60px;
    height: 60px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}

.wl-success-view h4 {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

.wl-success-msg {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 22px;
}

.wl-success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-wl-zalo-connect {
    background: #0068ff;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-wl-close-done {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

/* Mobile Adjustments for Chatbot */
@media (max-width: 500px) {
    .chatbot-window {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 84px;
        height: 520px;
    }
    .chatbot-launcher {
        padding: 6px 14px 6px 10px;
    }
    .launcher-text {
        font-size: 12.5px;
    }
    .launcher-avatar {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    .floating-widgets {
        bottom: 20px;
        left: 14px;
    }
    .float-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}

/* ==========================================================================
   SEPAY VIETQR PAYMENT STYLES
   ========================================================================== */
.payment-method-wrap {
    margin-top: 15px;
    margin-bottom: 20px;
}
.payment-method-title {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    display: block;
    font-size: 14.5px;
}
.payment-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.payment-option-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #f8fafc;
    display: block;
    position: relative;
}
.payment-option-card input[type="radio"] {
    display: none;
}
.payment-option-card.active {
    border-color: #004b93;
    background: #f0f7ff;
    box-shadow: 0 4px 14px rgba(0, 75, 147, 0.12);
}
.payment-card-body {
    display: flex;
    align-items: center;
    gap: 10px;
}
.payment-card-icon {
    font-size: 24px;
    color: #004b93;
    width: 32px;
    text-align: center;
}
.payment-card-text strong {
    display: block;
    font-size: 13.5px;
    color: #1e293b;
    margin-bottom: 2px;
}
.payment-card-text small {
    display: block;
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.3;
}

/* SePay VietQR Modal View */
.wl-qr-view {
    padding: 10px 0;
}
.wl-qr-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.wl-qr-header h4 {
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}
.wl-qr-sub {
    font-size: 13.5px;
    color: #475569;
    margin-bottom: 18px;
}
.wl-qr-card-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}
.sepay-qr-image {
    width: 100%;
    max-width: 240px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background: #fff;
    padding: 6px;
}
.qr-scan-guide {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-top: 8px;
}
.wl-qr-info-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.qr-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed #cbd5e1;
    font-size: 14px;
}
.qdr-label {
    color: #64748b;
    font-weight: 500;
}
.qdr-value {
    color: #0f172a;
    font-weight: 700;
}
.qdr-code {
    color: #004b93;
    font-size: 16px;
    background: #e0f2fe;
    padding: 2px 8px;
    border-radius: 6px;
}
.qdr-amount {
    color: #e11d48;
    font-size: 18px;
    font-weight: 800;
}
.qdr-copy {
    cursor: pointer;
    color: #004b93;
    transition: opacity 0.2s;
}
.qdr-copy:hover {
    opacity: 0.75;
}
.qr-auto-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: #065f46;
    line-height: 1.4;
    margin-top: 6px;
}
.wl-qr-action-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.btn-qr-confirm-paid {
    background: #004b93;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-qr-confirm-paid:hover {
    background: #003366;
    transform: translateY(-1px);
}
.btn-qr-close {
    background: #e2e8f0;
    color: #334155;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .payment-options-grid {
        grid-template-columns: 1fr;
    }
    .payment-option-card {
        padding: 9px 12px;
    }
    .payment-card-icon {
        font-size: 20px;
        width: 26px;
    }
    .payment-card-text strong {
        font-size: 13px;
    }
    .payment-card-text small {
        font-size: 11px;
    }
    .modal-overlay {
        padding: 8px;
    }
    .waiting-list-modal-box {
        width: 100%;
        max-height: 92vh;
        border-radius: 16px;
    }
    .waiting-list-content {
        padding: 16px 14px 24px;
    }
    .wl-title {
        font-size: 16px;
    }
    .wl-guarantee-pills {
        gap: 5px;
        margin-top: 6px;
    }
    .wl-guarantee-pills span {
        font-size: 10.5px;
        padding: 2px 7px;
    }
    .form-group {
        margin-bottom: 10px;
    }
    .form-input-control {
        padding: 8px 12px;
        font-size: 13px;
    }
    .btn-submit-waiting-list {
        padding: 12px 16px;
        font-size: 13.5px;
    }
    .wl-qr-card-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 15px;
    }
    .sepay-qr-image {
        max-width: 200px;
        margin: 0 auto;
    }
    .wl-qr-action-footer {
        flex-direction: column;
    }
}

/* Ẩn các nút nổi & Chatbot khi đang mở Modal để không bị che khuất nội dung */
body.has-modal-open .chatbot-floating-wrapper,
body.has-modal-open .chatbot-window,
body.has-modal-open .floating-widgets {
    display: none !important;
}

/* ==========================================================================
   MULTI-PRODUCT CART SELECTOR & DYNAMIC COMBO DISCOUNT IN CHECKOUT MODAL
   ========================================================================== */
.cart-selector-group {
    background: #fdfefe;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 15px;
}

.cart-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.cart-selector-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0 !important;
}

.cart-selector-title i {
    color: #004b93;
}

.combo-hint-badge {
    background: linear-gradient(135deg, #d90429 0%, #f59e0b 100%);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(217, 4, 41, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 290px;
    overflow-y: auto;
    padding-right: 4px;
}

.cart-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cart-item-card.has-qty {
    border-color: #004b93;
    background: #f0f7ff;
    box-shadow: 0 1px 3px rgba(0, 75, 147, 0.08);
}

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

.cart-item-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-meta {
    font-size: 11.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-price {
    font-weight: 700;
    color: #004b93;
}

.cart-qty-stepper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-qty-step {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-qty-step:hover:not(:disabled) {
    background: #004b93;
    color: #ffffff;
    border-color: #004b93;
}

.btn-qty-step:active:not(:disabled) {
    transform: scale(0.92);
}

.btn-qty-step:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.qty-val-display {
    min-width: 26px;
    text-align: center;
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
}

.cart-summary-card {
    margin-top: 12px;
    background: #f8fafc;
    border: 1.5px dashed #004b93;
    border-radius: 10px;
    padding: 12px 14px;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
}

.cart-summary-line strong {
    color: #0f172a;
}

.cart-summary-line.discount-line {
    color: #dc2626;
    font-weight: 700;
}

.cart-summary-divider {
    height: 1px;
    background: #cbd5e1;
    margin: 8px 0;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.final-total-price {
    font-size: 18px;
    font-weight: 900;
    color: #d90429;
}

.combo-incentive-msg {
    margin-top: 8px;
    padding: 6px 10px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 6px;
    font-size: 12px;
    color: #92400e;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.combo-incentive-msg.unlocked {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.btn-pdetail-order {
    background: #004b93;
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    width: 100%;
    text-transform: uppercase;
}

.btn-pdetail-order:hover {
    background: #003666;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 75, 147, 0.25);
}

/* ==========================================================================
   CART THUMBNAILS, REMOVE BUTTON & EMPTY CART STATE
   ========================================================================== */
.cart-item-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
    flex-shrink: 0;
}

.btn-cart-remove {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    padding: 6px;
    transition: all 0.15s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.cart-empty-state {
    text-align: center;
    padding: 24px 16px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 10px;
    margin-bottom: 12px;
}

.cart-empty-icon {
    font-size: 38px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.cart-empty-text {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.cart-empty-sub {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.4;
}

.btn-browse-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #004b93;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-browse-more:hover {
    background: #003666;
    transform: translateY(-1px);
}

.btn-add-more-items {
    margin-top: 10px;
    background: #ffffff;
    color: #004b93;
    border: 1px dashed #004b93;
    border-radius: 8px;
    padding: 9px;
    width: 100%;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s;
}

.btn-add-more-items:hover {
    background: #f0f7ff;
}

/* ==========================================================================
   CART TOAST NOTIFICATIONS (POPUP THÔNG BÁO KHI BẤM THÊM GIỎ)
   ========================================================================== */
#cartToastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 92vw;
    width: 360px;
}

.cart-toast {
    pointer-events: auto;
    background: #ffffff;
    border: 1.5px solid #004b93;
    border-left: 5px solid #16a34a;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s ease;
}

.cart-toast.fade-out {
    opacity: 0;
    transform: translateX(40px);
}

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

.cart-toast-thumb {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.cart-toast-body {
    flex: 1;
    min-width: 0;
}

.cart-toast-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-toast-title i {
    color: #16a34a;
}

.cart-toast-desc {
    font-size: 11.5px;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-toast-btn {
    background: #004b93;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
}

.cart-toast-btn:hover {
    background: #003666;
}

/* Nút giỏ hàng nổi góc dưới màn hình (Dễ thao tác trên mobile) */
.float-cart-btn {
    position: fixed;
    bottom: 25px;
    right: 90px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #004b93 0%, #002244 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 75, 147, 0.4);
    z-index: 999;
    cursor: pointer;
    border: 2px solid #ffffff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.float-cart-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 75, 147, 0.5);
}

.float-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #d90429;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
}

body.has-modal-open .float-cart-btn {
    display: none !important;
}

/* FORM VALIDATION STYLES */
.field-error-hint {
    display: block;
    color: #dc2626;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 600;
    line-height: 1.3;
}
.input-field-error {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}
.input-field-valid {
    border-color: #16a34a !important;
    background-color: #f0fdf4 !important;
}

/* ==========================================================================
   MULTI-COLOR SELECTION STYLES (MODAL QUICKVIEW, CHATBOT & SHOPPING CART)
   ========================================================================== */

/* 1. Modal QuickView Color Section */
.pdetail-color-section {
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.pdetail-color-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13.5px;
    color: #1e293b;
    flex-wrap: wrap;
    gap: 6px;
}

.pdetail-color-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pcolor-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pcolor-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    display: inline-block;
}

.pcolor-btn:hover {
    border-color: var(--primary-color, #004b93);
    color: var(--primary-color, #004b93);
    transform: translateY(-1px);
}

.pcolor-btn.active {
    border-color: var(--primary-color, #004b93);
    background: #eff6ff;
    color: var(--primary-color, #004b93);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 75, 147, 0.2);
}

.pcolor-btn.active .pcolor-dot {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.5px var(--primary-color, #004b93);
}

/* 2. Chatbot Product Card Color Swatches */
.chat-prod-colors-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 6px 0;
    font-size: 11.5px;
    color: #475569;
    flex-wrap: wrap;
}

.chat-color-swatches {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.chat-color-pip {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.chat-color-names {
    font-weight: 600;
    color: #334155;
}

/* 3. Shopping Cart Item Color Picker */
.cart-item-color-row {
    margin-top: 5px;
    font-size: 11.5px;
}

.cart-color-tag {
    color: #475569;
    margin-bottom: 4px;
    display: inline-block;
}

.cart-color-tag strong {
    color: var(--primary-color, #004b93);
}

.cart-color-chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 3px;
}

.cart-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cart-chip-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.cart-color-chip:hover {
    border-color: var(--primary-color, #004b93);
    color: var(--primary-color, #004b93);
}

.cart-color-chip.active {
    border-color: var(--primary-color, #004b93);
    background: #eff6ff;
    color: var(--primary-color, #004b93);
    font-weight: 700;
}

/* ==========================================================================
   2-STEP CART & CHECKOUT CONTROLLER STYLES
   ========================================================================== */

/* Step Transitions */
.cart-view-step, .checkout-view-step {
    animation: fadeInStep 0.25s ease-out;
}

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

/* Step 1: Cart View Actions */
.cart-view-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1.5px dashed #e2e8f0;
}

.btn-cart-secondary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: #475569;
    border: 1.5px solid #cbd5e1;
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cart-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}

.btn-cart-primary {
    flex: 1.6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #004b93 0%, #002244 100%);
    color: #ffffff;
    border: none;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 75, 147, 0.35);
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.btn-cart-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 75, 147, 0.5);
    background: linear-gradient(135deg, #005bb5 0%, #002d5a 100%);
}

/* Step 2: Checkout View Header & Mini Summary */
.checkout-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-back-to-cart {
    background: #eff6ff;
    color: var(--primary-color, #004b93);
    border: 1.5px solid #bfdbfe;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-back-to-cart:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    transform: translateX(-2px);
}

.checkout-step-badge {
    background: #f8fafc;
    color: var(--primary-color, #004b93);
    font-size: 11.5px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.checkout-mini-summary {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    color: #1e293b;
}

.mini-summary-text {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mini-summary-sep {
    color: #94a3b8;
}

.mini-summary-badge {
    background: #16a34a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mini-summary-edit-link {
    color: var(--primary-color, #004b93);
    font-weight: 700;
    font-size: 12.5px;
    text-decoration: underline;
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .cart-view-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }
    .btn-cart-secondary, .btn-cart-primary {
        width: 100%;
        padding: 12px;
    }
    .checkout-header-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* QuickView View Cart Button */
.btn-pdetail-viewcart {
    width: 100%;
    background: #f0fdf4;
    color: #16a34a;
    border: 1.5px solid #86efac;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.btn-pdetail-viewcart:hover {
    background: #dcfce7;
    border-color: #4ade80;
    transform: translateY(-1px);
}

/* MODAL HIERARCHY & AUTO DISMISS */
#waitingListModal {
    z-index: 100005 !important;
}

#quickViewModal {
    z-index: 99990 !important;
}

/* Whenever waitingListModal is active, hide quickViewModal completely */
#waitingListModal.active ~ #quickViewModal,
body:has(#waitingListModal.active) #quickViewModal {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}





