/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #F8F6F1;
    --bg-soft: #F5F1E8;
    --text-main: #2E171C;
    --text-muted: #7B6668;
    --primary: #7A2638;
    --primary-hover: #5F1D2B;
    --border-soft: #E4D7C4;
    --gold-soft: #C9A76A;

    --primary-color: #7A2638;
    --primary-hover-color: #5F1D2B;
    --accent-beige: #F5F1E8;
    --accent-dark-beige: #E4D7C4;
    --text-muted: #7B6668;
    --border-color: #E4D7C4;
    --surface: #FFFFFF;
    --surface-soft: #F8F6F1;
    --surface-muted: #F5F1E8;
    --ink: #2E171C;
    --ink-soft: #7B6668;
    --brand: #7A2638;
    --brand-2: #C9A76A;
    --line: #E4D7C4;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-heading: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--primary-color);
    background-color: #fffaf6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-title {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
}

p, li, input, button, select, textarea, .btn, .form-control, .form-select, .dropdown-item {
    font-family: var(--font-body);
}

body {
    font-size: 15.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-lacedering: optimizeLegibility;
}

/* Base Styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}
a:hover {
    color: var(--text-muted);
}

.btn-black {
    background-color: var(--primary-color);
    color: #ffffff;
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}
.btn-black:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}

.btn-outline-black {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}
.btn-outline-black:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Sticky Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    z-index: 1030;
}
.main-header.scrolled {
    padding-top: 5px;
    padding-bottom: 5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 1rem !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 10px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}
.nav-link:hover::after {
    width: calc(100% - 20px);
}

.cart-icon-wrapper {
    position: relative;
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 34px;
}

/* Hero Banner */
.hero-section {
    background: radial-gradient(circle at 12% 15%, rgba(201,164,106,.2), transparent 30%), linear-gradient(135deg, #fff9f3 0%, #f7e9df 100%);
    padding: 110px 0;
    position: relative;
}
.hero-title {
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 1.2;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-section {
        padding: 60px 0;
    }
}

/* Category Circle Cards */
.category-card {
    text-align: center;
    margin-bottom: 20px;
}
.category-image-wrapper {
    width: 135px;
    height: 165px;
    border-radius: 34px;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}
.category-card:hover .category-image-wrapper {
    border-color: var(--primary-color);
    transform: scale(1.05);
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-name {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Product Card */
.product-card {
    border: none;
    border-radius: 0;
    background-color: #ffffff;
    margin-bottom: 30px;
    transition: var(--transition-smooth);
    position: relative;
}
.product-image-container {
    position: relative;
    overflow: hidden;
    background-color: #f9f9f9;
    aspect-ratio: 2.8/4;
}
.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.product-card:hover .product-image-container img {
    transform: scale(1.08);
}
.product-action-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background-color: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    padding: 10px;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-color);
}
.product-card:hover .product-action-overlay {
    bottom: 0;
}
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #b98542;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    z-index: 5;
    text-transform: uppercase;
}
.product-info {
    padding: 15px 0;
}
.product-title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.4;
}
.product-price {
    font-weight: 600;
    font-size: 1rem;
}
.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.9rem;
    margin-right: 8px;
}
.price-new {
    color: #9f5a28;
}

/* Service Benefits */
.benefit-item {
    padding: 20px;
    border-right: 1px solid var(--border-color);
}
.benefit-item:last-child {
    border-right: none;
}
@media (max-width: 768px) {
    .benefit-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .benefit-item:last-child {
        border-bottom: none;
    }
}

/* Product Detail Page */
.detail-gallery {
    background-color: #f9f9f9;
}
.size-selector input[type="radio"],
.color-selector input[type="radio"] {
    display: none;
}
.size-selector label {
    display: inline-block;
    border: 1px solid var(--border-color);
    min-width: 45px;
    height: 45px;
    line-height: 43px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: var(--transition-smooth);
}
.size-selector input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #ffffff;
}

.color-selector label {
    display: inline-block;
    border: 1px solid var(--border-color);
    padding: 5px 15px;
    cursor: pointer;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: var(--transition-smooth);
}
.color-selector input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #ffffff;
}

.qty-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    max-width: 130px;
}
.qty-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-num {
    width: 50px;
    border: none;
    text-align: center;
    font-weight: 600;
}
.qty-num:focus {
    outline: none;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1090;
}
.custom-toast {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 0;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    animation: slideInRight 0.3s ease-out;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Floating Chatbot */
.chatbot-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition-smooth);
}
.chatbot-trigger:hover {
    transform: scale(1.05);
}
.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 500px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@keyframes fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.chatbot-header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chatbot-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f7f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chatbot-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}
.chatbot-message.bot {
    background-color: #ffffff;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}
.chatbot-message.user {
    background-color: var(--primary-color);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}
.chatbot-btn-suggest {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.chatbot-btn-suggest:hover {
    border-color: var(--primary-color);
    background-color: var(--accent-beige);
}
.chatbot-typing {
    background-color: #ffffff;
    align-self: flex-start;
    padding: 10px 14px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
    display: none;
}
.typing-dots span {
    width: 8px;
    height: 8px;
    background-color: var(--text-muted);
    border-radius: 34px;
    display: inline-block;
    animation: typing 1.4s infinite both;
    margin-right: 3px;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Admin Styles */
.admin-sidebar {
    background-color: var(--primary-color);
    min-height: 100vh;
    color: #ffffff;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7) !important;
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0px;
    padding: 12px 20px !important;
    border-radius: 0;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.1);
}
.admin-sidebar .nav-link::after {
    display: none;
}
.admin-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    transition: var(--transition-smooth);
}
.admin-card:hover {
    transform: translateY(-3px);
}

/* ============================
   UI Upgrade 2026
   ============================ */
:root {
    --surface: #ffffff;
    --surface-soft: #f8f6f1;
    --surface-muted: #f3f4f6;
    --ink: #111827;
    --ink-soft: #4b5563;
    --brand: #111111;
    --brand-2: #c9a46a;
    --line: #e7e2d8;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 26px;
    --shadow-soft: 0 14px 35px rgba(17, 24, 39, .08);
    --shadow-card: 0 10px 25px rgba(17, 24, 39, .06);
}

html { scroll-behavior: smooth; }
body { background: linear-gradient(180deg, #fff 0%, #fff 55%, #fbfaf7 100%); color: var(--ink); }
img { max-width: 100%; }

.top-announcement { background: var(--brand); color: #fff; padding: 7px 0; }
.main-header { padding: 0 !important; background: rgba(255,255,255,.88); border-bottom: 1px solid rgba(231,226,216,.85); }
.main-header.scrolled { box-shadow: var(--shadow-card); }
.brand-logo { display: inline-flex; flex-direction: column; line-height: 1; color: var(--ink); }
.brand-logo span { font-family: var(--font-heading); font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 800; letter-spacing: .06em; }
.brand-logo small { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.desktop-nav .nav-link { border-radius: 999px; padding: .6rem .95rem !important; font-size: .82rem; }
.desktop-nav .nav-link::after { display: none; }
.desktop-nav .nav-link:hover, .desktop-nav .nav-link.active { background: #f3f0ea; color: var(--ink) !important; }
.search-pill { position: relative; align-items: center; gap: 8px; min-width: 220px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: 0 8px 20px rgba(17,24,39,.04); }
.search-pill input { flex: 1; width: 100%; border: 0; outline: 0; background: transparent; font-size: .9rem; }
.search-pill button { position: absolute; inset: 0; border: 0; background: transparent; }
.icon-action { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 8px 20px rgba(17,24,39,.04); }
.icon-action:hover { transform: translateY(-2px); color: var(--ink); box-shadow: var(--shadow-card); }
.icon-action i { font-size: 1.1rem; }
.user-chip { width: auto; min-width: 42px; padding: 0 13px; gap: 7px; }
.user-chip::after { display: none; }
.mobile-menu-btn { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.mobile-menu-btn i { font-size: 1.45rem; }
.shop-dropdown { border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); padding: 10px; }
.shop-dropdown .dropdown-item { border-radius: 10px; padding: 10px 12px; }
.mobile-menu-panel { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; padding: 14px; box-shadow: var(--shadow-card); }
.mobile-menu-panel > a { display: flex; padding: 12px 6px; border-bottom: 1px solid #f0ece3; color: var(--ink); font-weight: 600; }
.mobile-menu-panel > a:last-child { border-bottom: 0; }
.cart-badge { min-width: 20px; height: 20px; align-items: center; justify-content: center; top: -7px; right: -7px; border: 2px solid #fff; }

.hero-section { background: radial-gradient(circle at 20% 20%, #fff 0, #fff5df 28%, transparent 45%), linear-gradient(135deg, #f8f3ea 0%, #ffffff 100%); border-bottom: 1px solid var(--line); padding: clamp(64px, 8vw, 120px) 0; }
.hero-title { font-size: clamp(2.3rem, 6vw, 5rem); letter-spacing: -.03em; }
.btn-black, .btn-outline-black { border-radius: 999px; padding: 12px 24px; letter-spacing: .08em; }
.btn-black { box-shadow: 0 12px 22px rgba(17,17,17,.12); }
.btn-black:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn-outline-black:hover { transform: translateY(-2px); }

.card, .alert, .list-group-item { border-color: var(--line) !important; }
.form-control, .form-select, textarea { border-radius: 12px !important; border-color: var(--line) !important; min-height: 44px; }
.form-control:focus, .form-select:focus, textarea:focus { border-color: var(--brand) !important; box-shadow: 0 0 0 .18rem rgba(17,17,17,.08) !important; }
.product-card { border-radius: var(--radius-lg); overflow: hidden; padding: 8px; background: #fff; box-shadow: 0 0 0 1px rgba(231,226,216,.65); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.product-image-container { border-radius: 20px; background: #f7f7f7; }
.product-action-overlay { left: 12px; right: 12px; bottom: 12px; opacity: 0; transform: translateY(15px); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(14px); }
.product-card:hover .product-action-overlay { bottom: 12px; opacity: 1; transform: translateY(0); }
.product-info { padding: 16px 8px 6px; }
.product-title { font-size: 1rem; color: var(--ink); }
.product-price { font-size: 1.05rem; }
.product-badge { top: 18px; left: 18px; border-radius: 999px; padding: 6px 11px; }
.category-image-wrapper { box-shadow: var(--shadow-card); border: 6px solid #fff; }
.benefit-item { border-color: var(--line); }
.detail-gallery, .qty-input { border-radius: var(--radius-md); }
.qty-input { overflow: hidden; }

.table { vertical-align: middle; }
.table thead th { background: #faf8f3; color: var(--ink-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.table tbody tr { transition: background .2s ease; }
.table tbody tr:hover { background: #fffaf0; }

.site-footer { background: #111; color: #fff; }
.site-footer a, .site-footer p, .site-footer span { color: rgba(255,255,255,.68); }
.site-footer a:hover { color: #fff; }
.footer-brand { font-family: var(--font-heading); color: #fff !important; font-size: 1.8rem; font-weight: 800; letter-spacing: .08em; }
.footer-text { max-width: 360px; line-height: 1.7; }
.site-footer h6 { color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 16px; }
.site-footer .col-lg-2 a, .site-footer .col-lg-3 a { display: block; margin-bottom: 10px; }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.14); border-radius: 34px; display: inline-flex; align-items: center; justify-content: center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }

.toast-container { top: 90px; right: 22px; }
.custom-toast { border-radius: 999px; padding: 12px 18px; box-shadow: var(--shadow-soft); }
.chatbot-trigger { width: 58px; height: 58px; bottom: 24px; right: 24px; box-shadow: var(--shadow-soft); }
.chatbot-window { border-radius: 22px; width: min(380px, calc(100vw - 28px)); right: 24px; bottom: 92px; border: 1px solid var(--line); box-shadow: 0 24px 55px rgba(0,0,0,.18); }
.chatbot-header { background: linear-gradient(135deg, #111, #333); }
.chatbot-body { background: #fbfaf7; }
.chatbot-message, .chatbot-btn-suggest, .chatbot-typing { border-color: var(--line); }

@media (max-width: 768px) {
    .brand-logo small { display: none; }
    .hero-section { padding: 56px 0; }
    .product-action-overlay { position: static; opacity: 1; transform: none; margin-top: 10px; }
    .toast-container { left: 14px; right: 14px; top: 80px; }
    .custom-toast { width: 100%; justify-content: center; }
    .chatbot-trigger { right: 16px; bottom: 16px; }
    .chatbot-window { right: 14px; bottom: 84px; height: 470px; }
}

/* Quick add cart trên trang chủ / danh sách items */
.quick-cart-form {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.quick-qty {
    height: 38px;
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.quick-qty input {
    width: 100%;
    border: 0;
    text-align: center;
    font-weight: 700;
    color: var(--dark-color);
    background: transparent;
    outline: none;
}

.quick-qty-btn {
    border: 0;
    background: transparent;
    color: var(--dark-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .2s ease;
}

.quick-qty-btn:hover {
    background: var(--light-bg);
}

.quick-qty-btn:active {
    transform: scale(.94);
}

.quick-cart-submit {
    border-radius: 999px;
    min-height: 40px;
    font-size: .82rem;
    letter-spacing: .2px;
}

@media (max-width: 575px) {
    .quick-cart-form {
        gap: 8px;
    }

    .quick-qty {
        height: 34px;
        grid-template-columns: 34px 1fr 34px;
    }

    .quick-cart-submit {
        min-height: 36px;
        font-size: .76rem;
    }
}


/* Ao Dai layout refinement */
.brand-logo span,
.footer-brand {
    font-family: var(--font-heading);
    letter-spacing: .08em;
}
.brand-logo small {
    color: #9f5a28;
    letter-spacing: .2em;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: auto 8% 8% auto;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(185,133,66,.26);
    border-radius: 999px;
    pointer-events: none;
}
.hero-section .position-relative.overflow-hidden {
    border-radius: 42px 42px 8px 42px;
    border: 10px solid rgba(255,255,255,.72);
}
.category-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 14px 10px 10px;
    height: 100%;
    box-shadow: 0 14px 30px rgba(91,31,46,.06);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(91,31,46,.1);
}
.product-card {
    border: 1px solid rgba(234,223,213,.9);
    border-radius: 28px;
    overflow: hidden;
    padding: 10px;
    box-shadow: 0 12px 28px rgba(91,31,46,.06);
}
.product-info {
    padding: 14px 4px 4px;
}
.product-image-container {
    border-radius: 22px;
}
.product-action-overlay .btn,
.quick-cart-submit {
    border-radius: 999px !important;
}
.quick-qty {
    border-radius: 999px;
    overflow: hidden;
    border-color: var(--border-color) !important;
}
.site-footer {
    background: linear-gradient(135deg, #4a1726, #1f1014) !important;
}
@media (max-width: 768px) {
    .category-image-wrapper { width: 100%; height: 128px; }
    .hero-section .d-flex.gap-3 { flex-direction: column; }
}

/* Responsive polish cho desktop + mobile */
img { max-width: 100%; height: auto; }
.brand-logo { display: inline-flex; flex-direction: column; line-height: 1; color: var(--primary-color); font-weight: 800; letter-spacing: -.04em; }
.brand-logo span { font-size: clamp(1.25rem, 2vw, 1.65rem); }
.brand-logo small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
.top-announcement { background: var(--primary-color); color: #fff; padding: 7px 0; }
.icon-action { width: 42px; height: 42px; border: 1px solid var(--border-color); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--primary-color); }
.icon-action:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.user-chip { width: auto; min-width: 42px; padding: 0 12px; gap: 6px; }
.search-pill { align-items: center; gap: 8px; min-width: min(280px, 34vw); background: #fff; border: 1px solid var(--border-color); border-radius: 999px; padding: 9px 13px; }
.search-pill input { border: 0; outline: 0; width: 100%; background: transparent; font-size: .9rem; }
.search-pill button { width: 0; height: 0; padding: 0; border: 0; }
.mobile-menu-btn { width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--border-color); background: #fff; color: var(--primary-color); display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.mobile-menu-panel { background: #fff; border: 1px solid var(--border-color); border-radius: 22px; padding: 14px; box-shadow: 0 16px 40px rgba(91,31,46,.08); }
.mobile-menu-panel > a { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; color: var(--primary-color); font-weight: 700; }
.mobile-menu-panel > a.active, .mobile-menu-panel > a:hover { background: var(--accent-beige); }
.product-card { height: 100%; border-radius: 24px; overflow: hidden; padding: 10px; box-shadow: 0 12px 28px rgba(91,31,46,.06); }
.product-info { padding: 14px 4px 4px; }
.product-title { min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.quick-cart-form { margin-top: 10px; display: grid; grid-template-columns: 112px 1fr; gap: 8px; align-items: center; }
.quick-qty { display: flex; align-items: center; height: 38px; border: 1px solid var(--border-color); border-radius: 999px; overflow: hidden; background: #fff; }
.quick-qty input { width: 38px; border: 0; text-align: center; font-weight: 700; background: transparent; }
.quick-qty-btn { width: 36px; height: 38px; border: 0; background: transparent; color: var(--primary-color); }
.quick-cart-submit { padding-left: 12px; padding-right: 12px; white-space: nowrap; }
.site-footer { background: #32131d; color: rgba(255,255,255,.78); }
.site-footer a { color: rgba(255,255,255,.78); display: block; margin-bottom: 8px; }
.footer-brand { font-size: 1.8rem; font-weight: 800; color: #fff !important; letter-spacing: -.04em; }
.site-footer h6 { color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: 14px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.68); font-size: .88rem; }

@media (min-width: 1200px) {
    .container { max-width: 1180px; }
}

@media (max-width: 991.98px) {
    .main-header .container { padding-top: 12px !important; padding-bottom: 12px !important; }
    .hero-section { padding: 56px 0 42px; text-align: center; }
    .hero-section .d-flex.gap-3 { justify-content: center; flex-wrap: wrap; }
    .product-action-overlay { position: static; background: transparent; padding: 8px 0 0; border: 0; backdrop-filter: none; }
    .product-card:hover .product-image-container img { transform: none; }
    .chatbot-window { right: 16px; bottom: 88px; width: min(380px, calc(100vw - 32px)); height: min(520px, calc(100vh - 130px)); }
    .chatbot-trigger { right: 16px; bottom: 18px; width: 56px; height: 56px; }
}

@media (max-width: 767.98px) {
    body { font-size: 14.5px; }
    .hero-title { font-size: clamp(2rem, 12vw, 3rem); }
    .lead { font-size: 1rem !important; }
    .btn-black, .btn-outline-black { padding: 10px 16px; font-size: .78rem; }
    .category-image-wrapper { width: 92px; height: 118px; border-radius: 24px; }
    .category-name { font-size: .74rem !important; }
    .product-card { border-radius: 18px; padding: 8px; margin-bottom: 18px; }
    .product-image-container { aspect-ratio: 3/4; border-radius: 14px; }
    .product-title { font-size: .86rem; min-height: 38px; }
    .product-price { font-size: .9rem; }
    .quick-cart-form { grid-template-columns: 1fr; }
    .quick-qty { width: 100%; justify-content: space-between; }
    .quick-qty input { flex: 1; }
    .detail-gallery { padding: 10px !important; border-radius: 22px; }
    .breadcrumb { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }
    .toast-container { left: 12px; right: 12px; top: 12px; }
    .custom-toast { border-radius: 16px; justify-content: center; padding: 13px 16px; }
}

@media (max-width: 420px) {
    .header-actions { gap: 6px !important; }
    .icon-action, .mobile-menu-btn { width: 38px; height: 38px; }
    .cart-badge { top: -6px; right: -6px; }
    .hero-section .btn { width: 100%; }
    .product-card { padding: 6px; }
}

/* ============================
   Stability + Responsive Polish 2026-06
   ============================ */
.main-header,
.main-header.scrolled {
    transform: none !important;
}
.main-header .container {
    max-width: 1200px;
}
.header-actions {
    flex-shrink: 0;
}
.header-avatar,
.header-avatar-fallback {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    flex: 0 0 28px;
}
.user-chip {
    max-width: 150px;
    overflow: hidden;
}
.user-chip span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    margin-bottom: 0;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px;
}
.product-title {
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price {
    min-height: 28px;
}
.quick-cart-form {
    margin-top: auto;
}
.product-image-container {
    aspect-ratio: 3 / 4;
    flex: 0 0 auto;
}
.product-image-container img {
    display: block;
}
.product-action-overlay {
    bottom: 12px;
    left: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 0;
    background: transparent;
    border: 0;
    opacity: 0;
    transform: translateY(8px);
}
.product-card:hover .product-action-overlay {
    bottom: 12px;
    opacity: 1;
    transform: translateY(0);
}
.product-action-overlay .btn {
    box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

.account-panel {
    border-radius: 26px !important;
    box-shadow: var(--shadow-card);
}
.account-avatar-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fffaf6;
}
.account-avatar-preview {
    width: 86px;
    height: 86px;
    border-radius: 28px;
    overflow: hidden;
    background: var(--primary-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    flex: 0 0 86px;
}
.account-avatar-preview.small {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 1.2rem;
    flex-basis: 58px;
}
.account-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 992px) {
    .desktop-nav { min-width: 455px; }
    .product-grid-desktop .col-lg-4 { display: flex; }
}
@media (max-width: 991.98px) {
    .main-header .container { padding-left: 14px; padding-right: 14px; }
    .mobile-menu-panel .active { color: var(--primary-color); font-weight: 800; }
    .product-card:hover { transform: none; }
    .product-card:hover .product-image-container img { transform: none; }
    .product-action-overlay {
        position: static;
        opacity: 1;
        transform: none;
        margin-top: 10px;
    }
    .product-image-container { aspect-ratio: 1 / 1.28; }
    .product-info { padding: 12px; }
    .quick-cart-form { gap: 8px; }
    .quick-qty { height: 38px; }
    .quick-cart-submit { height: 40px; padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 575.98px) {
    body { font-size: 14.5px; }
    .brand-logo span { font-size: 1.28rem; }
    .brand-logo small { font-size: .58rem; }
    .icon-action,
    .mobile-menu-btn { width: 40px; height: 40px; }
    .header-actions { gap: 7px !important; }
    .hero-section { padding: 48px 0; }
    .hero-title { font-size: 2rem; }
    .container.py-5 { padding-top: 28px !important; padding-bottom: 32px !important; }
    .product-title { font-size: .86rem; min-height: 40px; }
    .product-price { font-size: .9rem; }
    .price-old { display: block; margin: 0; }
    .quick-cart-submit { font-size: .72rem; }
    .toast-container { left: 12px; right: 12px; top: 74px; }
    .custom-toast { width: 100%; border-radius: 16px; justify-content: center; }
    .account-avatar-box { flex-direction: column; align-items: flex-start; }
}

/* Order lookup page */
.order-check-hero {
    padding: 56px 0 40px;
    background: linear-gradient(135deg, #fff8f1 0%, #f7efe7 48%, #ffffff 100%);
}
.section-kicker {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 800;
    color: var(--primary-color);
}
.order-check-card {
    background: linear-gradient(160deg, #12a9da 0%, #46c2dd 62%, #f6fbff 100%);
    color: #fff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 22px 50px rgba(18, 169, 218, .22);
    max-width: 520px;
    margin-left: auto;
}
.order-check-form .form-label,
.order-check-card strong { color: #fff; }
.order-check-input {
    height: 52px;
    border: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.order-check-help {
    font-size: .95rem;
    line-height: 1.45;
}
.btn-accent {
    background: #f47c20;
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 13px 20px;
    font-weight: 800;
}
.btn-accent:hover { background: #dc690f; color: #fff; }
.custom-radio {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
}
.order-check-steps span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.order-result-list {
    display: grid;
    gap: 16px;
}
.order-result-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow-card);
}
.order-items-mini {
    background: #fffaf6;
    border-radius: 16px;
    padding: 4px 14px;
}

@media (max-width: 991.98px) {
    .order-check-hero { padding: 34px 0 28px; }
    .order-check-card { max-width: none; margin: 0; }
}
@media (max-width: 575.98px) {
    .order-check-card { padding: 20px; border-radius: 18px; }
    .order-result-card { padding: 16px; border-radius: 18px; }
    .order-check-steps span { width: 100%; justify-content: center; }
}

/* Header: desktop giữ nội dung trên 1 dòng, mobile dùng menu riêng */
.top-announcement-row,
.top-announcement-row span,
.desktop-nav,
.desktop-nav .nav-link,
.header-actions,
.brand-logo,
.user-chip {
    white-space: nowrap;
}
.desktop-nav { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.desktop-nav .nav-link { padding-left: 12px; padding-right: 12px; font-size: .92rem; }
.header-actions { flex: 0 0 auto; }
.search-pill { flex: 0 1 260px; max-width: 260px; }
.brand-logo { flex: 0 0 auto; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .desktop-nav .nav-link { padding-left: 8px; padding-right: 8px; font-size: .82rem; }
    .search-pill { max-width: 190px; }
    .brand-logo small { font-size: .56rem; letter-spacing: .14em; }
}

/* Bank Transfer Guide đồng bộ toàn website */
.bank-guide {
    background: linear-gradient(135deg, #e7f9ff 0%, #cff4ff 100%);
    border: 1px solid #b5e6f1;
    border-radius: 24px;
    padding: 28px;
    color: #075366;
    text-align: left;
}
.bank-guide-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: .03em;
    color: #075366;
}
.bank-guide-title i { font-size: 1.15rem; }
.bank-guide-intro { margin-bottom: 18px; font-size: .98rem; }
.bank-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.bank-guide-grid > div {
    background: rgba(255,255,255,.48);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 16px;
    padding: 12px 14px;
}
.bank-guide-grid span {
    display: block;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(7,83,102,.72);
    font-weight: 800;
    margin-bottom: 4px;
}
.bank-guide-grid strong { display: block; font-size: 1rem; color: #07495a; word-break: break-word; }
.bank-guide-full { grid-column: 1 / -1; }
.bank-guide-note {
    display: block;
    margin-top: 16px;
    color: rgba(7,83,102,.78);
    line-height: 1.55;
}
.bank-guide-compact { padding: 18px; border-radius: 18px; }
.bank-guide-compact .bank-guide-title { font-size: .86rem; margin-bottom: 10px; }
.bank-guide-compact .bank-guide-intro { font-size: .84rem; margin-bottom: 12px; }
.bank-guide-compact .bank-guide-grid { gap: 8px; }
.bank-guide-compact .bank-guide-grid > div { padding: 10px; border-radius: 13px; }
.bank-guide-compact .bank-guide-grid span { font-size: .68rem; }
.bank-guide-compact .bank-guide-grid strong { font-size: .86rem; }
.bank-guide-compact .bank-guide-note { font-size: .78rem; }

@media (max-width: 575.98px) {
    .bank-guide { padding: 18px; border-radius: 18px; }
    .bank-guide-grid { grid-template-columns: 1fr; }
}

/* ============================
   Header chuẩn desktop/mobile - fix v2
   ============================ */
.main-header {
    z-index: 1030;
    background: rgba(255,255,255,.96) !important;
    backdrop-filter: blur(16px);
}
.main-header .container {
    width: min(100% - 40px, 1680px) !important;
    max-width: 1680px !important;
}
.main-header .container.py-3 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}
.main-header .container.py-3 > .d-flex:first-child {
    width: 100%;
    min-width: 0;
}
.brand-logo {
    width: 174px;
    min-width: 174px;
    max-width: 174px;
    text-decoration: none !important;
    overflow: hidden;
}
.brand-logo span {
    font-size: clamp(1.45rem, 1.9vw, 2rem) !important;
    line-height: .95;
    letter-spacing: .12em !important;
    color: var(--primary-color) !important;
}
.brand-logo small {
    display: block !important;
    font-size: .62rem !important;
    line-height: 1.1;
    letter-spacing: .22em !important;
    color: rgba(91,31,46,.66) !important;
}
.desktop-nav {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: visible !important;
    gap: 4px !important;
}
.desktop-nav .nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: .56rem .72rem !important;
    border-radius: 999px;
    font-size: clamp(.72rem, .72vw, .9rem) !important;
    line-height: 1;
    letter-spacing: .08em;
    color: var(--primary-color) !important;
}
.desktop-nav .nav-link.active,
.desktop-nav .nav-link:hover {
    background: #f6efe7 !important;
    color: var(--primary-color) !important;
}
.header-actions {
    flex: 0 0 auto !important;
    min-width: 0;
}
.header-actions .search-pill {
    width: clamp(230px, 19vw, 360px) !important;
    min-width: 230px !important;
    max-width: 360px !important;
    height: 48px !important;
    padding: 0 16px !important;
}
.header-actions .search-pill input {
    min-width: 0;
    font-size: .95rem;
}
.icon-action,
.mobile-menu-btn {
    flex: 0 0 auto;
    width: 48px !important;
    height: 48px !important;
}
.user-chip {
    max-width: 178px !important;
    min-width: 48px !important;
    padding: 0 14px !important;
}
.user-chip > span:not(.header-avatar-fallback) {
    display: inline-block;
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (min-width: 1400px) {
    .desktop-nav .nav-link { padding-left: .9rem !important; padding-right: .9rem !important; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .main-header .container { width: min(100% - 26px, 1320px) !important; }
    .brand-logo { width: 148px; min-width: 148px; max-width: 148px; }
    .brand-logo span { font-size: 1.48rem !important; letter-spacing: .1em !important; }
    .brand-logo small { font-size: .52rem !important; letter-spacing: .18em !important; }
    .desktop-nav .nav-link { padding-left: .48rem !important; padding-right: .48rem !important; font-size: .72rem !important; letter-spacing: .055em; }
    .header-actions .search-pill { width: 230px !important; min-width: 230px !important; max-width: 230px !important; }
    .user-chip { max-width: 132px !important; padding-left: 10px !important; padding-right: 10px !important; }
    .user-chip > span:not(.header-avatar-fallback) { max-width: 58px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .main-header .container { width: min(100% - 22px, 1140px) !important; }
    .brand-logo { width: 132px; min-width: 132px; max-width: 132px; }
    .brand-logo span { font-size: 1.34rem !important; letter-spacing: .09em !important; }
    .brand-logo small { font-size: .48rem !important; letter-spacing: .15em !important; }
    .desktop-nav .nav-link { padding-left: .42rem !important; padding-right: .42rem !important; font-size: .67rem !important; letter-spacing: .035em; }
    .header-actions .search-pill { display: none !important; }
    .icon-action, .mobile-menu-btn { width: 44px !important; height: 44px !important; }
    .user-chip { max-width: 118px !important; }
    .user-chip > span:not(.header-avatar-fallback) { max-width: 52px; }
}
@media (max-width: 991.98px) {
    .main-header .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .brand-logo {
        width: 132px;
        min-width: 132px;
        max-width: 132px;
    }
    .brand-logo span { font-size: 1.32rem !important; letter-spacing: .1em !important; }
    .brand-logo small { display: block !important; font-size: .46rem !important; letter-spacing: .18em !important; }
    .header-actions { gap: 8px !important; }
    .icon-action, .mobile-menu-btn { width: 42px !important; height: 42px !important; }
    .user-chip { max-width: 48px !important; padding: 0 !important; justify-content: center; }
}
@media (max-width: 420px) {
    .brand-logo { width: 112px; min-width: 112px; max-width: 112px; }
    .brand-logo span { font-size: 1.13rem !important; }
    .brand-logo small { font-size: .4rem !important; letter-spacing: .14em !important; }
    .header-actions { gap: 5px !important; }
    .icon-action, .mobile-menu-btn { width: 38px !important; height: 38px !important; }
}

/* Variant selection logic: product cards no longer add directly without size/color. */
.choose-variant-card-action .quick-cart-submit {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.variant-hint {
    line-height: 1.35;
}

.size-selector input:checked + label,
.color-selector input:checked + label {
    transform: translateY(-1px);
}

@media (max-width: 575.98px) {
    .choose-variant-card-action .quick-cart-submit {
        min-height: 38px;
        font-size: 0.75rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}


/* Mini cart drawer */
.cart-icon-wrapper {
    border: 0;
    background: #fff;
    cursor: pointer;
}
.cart-drawer {
    width: min(460px, 100vw) !important;
    background: #fffdf8;
    border-left: 1px solid rgba(73, 35, 45, .16);
    box-shadow: -18px 0 45px rgba(36, 18, 22, .14);
}
.cart-drawer-header {
    min-height: 92px;
    padding: 26px 28px 18px;
    border-bottom: 1px solid rgba(73, 35, 45, .24);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.cart-drawer-header h5 {
    margin: 0;
    color: var(--dark-color, #1d1d1f);
    font-weight: 800;
    letter-spacing: -.02em;
}
.cart-drawer-header small {
    display: block;
    color: #74676a;
    margin-top: 4px;
    line-height: 1.35;
}
.cart-drawer-close {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #2d1b20;
}
.cart-drawer-body {
    height: calc(100vh - 92px);
    display: flex;
    flex-direction: column;
    position: relative;
}
.cart-drawer-body.is-loading::after,
.cart-drawer-item.is-updating::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 253, 248, .55);
    backdrop-filter: blur(1px);
    z-index: 3;
}
.cart-drawer-list {
    padding: 18px 28px 8px;
    overflow-y: auto;
    flex: 1 1 auto;
}
.cart-drawer-item {
    position: relative;
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 16px;
    padding: 14px 0 18px;
    border-bottom: 1px solid rgba(73, 35, 45, .16);
}
.cart-drawer-thumb {
    width: 86px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f4eee9;
    display: block;
}
.cart-drawer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cart-drawer-name {
    color: #241418;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    display: block;
    padding-right: 4px;
}
.cart-drawer-name:hover { color: var(--primary-color, #6c1f34); }
.cart-drawer-remove {
    border: 0;
    background: transparent;
    color: #5d4a4f;
    padding: 0;
    line-height: 1;
    font-size: 18px;
}
.cart-drawer-meta {
    margin: 8px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #6e6265;
    font-size: 14px;
}
.cart-drawer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.cart-drawer-qty {
    height: 38px;
    border: 1px solid rgba(73, 35, 45, .25);
    display: inline-flex;
    align-items: center;
    background: #fff;
}
.cart-drawer-qty button {
    width: 34px;
    height: 36px;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #42252d;
}
.cart-drawer-qty input {
    width: 36px;
    border: 0;
    background: transparent;
    text-align: center;
    font-weight: 700;
    color: #26161a;
}
.cart-drawer-bottom strong {
    white-space: nowrap;
    color: #241418;
}
.cart-drawer-promo {
    padding: 16px 28px;
    border-top: 1px solid rgba(73, 35, 45, .16);
}
.cart-drawer-promo-btn {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--primary-color, #7a2438);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    font-weight: 700;
}
.cart-drawer-summary {
    padding: 20px 28px 26px;
    border-top: 1px solid rgba(73, 35, 45, .2);
    background: #fffdf8;
    box-shadow: 0 -12px 28px rgba(36, 18, 22, .05);
}
.cart-drawer-summary > .d-flex {
    font-size: 18px;
    color: #241418;
    margin-bottom: 6px;
}
.cart-drawer-summary small {
    color: #74676a;
    display: block;
    margin-bottom: 18px;
}
.cart-drawer-checkout,
.cart-drawer-view {
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}
.cart-drawer-empty {
    margin: auto;
    padding: 36px 28px;
    text-align: center;
    max-width: 330px;
}
.cart-drawer-empty i {
    font-size: 44px;
    color: #8a6970;
    display: block;
    margin-bottom: 16px;
}
.cart-drawer-empty h6 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}
.cart-drawer-empty p {
    color: #75686b;
    margin-bottom: 20px;
}
@media (max-width: 575.98px) {
    .cart-drawer { width: 100vw !important; }
    .cart-drawer-header { padding: 20px 18px 16px; min-height: 82px; }
    .cart-drawer-body { height: calc(100vh - 82px); }
    .cart-drawer-list { padding: 12px 18px 6px; }
    .cart-drawer-item { grid-template-columns: 74px 1fr; gap: 12px; }
    .cart-drawer-thumb { width: 74px; }
    .cart-drawer-summary, .cart-drawer-promo { padding-left: 18px; padding-right: 18px; }
}


/* Product card action button - fix overflow/cut text */
.product-info .choose-variant-card-action {
    display: block !important;
    width: 100% !important;
    margin-top: auto !important;
    padding-top: 10px;
}
.product-info .choose-variant-card-action .quick-cart-submit {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1 !important;
    font-size: clamp(.68rem, .72vw, .82rem) !important;
    letter-spacing: .04em !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 22px rgba(91, 31, 46, .14) !important;
}
.product-info .choose-variant-card-action .quick-cart-submit span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-info .choose-variant-card-action .quick-cart-submit:hover {
    transform: translateY(-1px);
}

@media (max-width: 575.98px) {
    .product-info .choose-variant-card-action {
        padding-top: 8px;
    }
    .product-info .choose-variant-card-action .quick-cart-submit {
        height: 38px !important;
        min-height: 38px !important;
        border-radius: 12px !important;
        padding: 0 8px !important;
        font-size: clamp(.62rem, 3.05vw, .72rem) !important;
        letter-spacing: .015em !important;
    }
}

@media (max-width: 360px) {
    .product-info .choose-variant-card-action .quick-cart-submit {
        font-size: .6rem !important;
        padding: 0 6px !important;
    }
}


/* Product card: use one clean detail button at the bottom instead of hover overlay. */
.product-action-overlay {
    display: none !important;
}
.product-info .choose-variant-card-action .quick-cart-submit {
    text-transform: uppercase;
    letter-spacing: .08em !important;
}


/* Header logic + product filter sidebar upgrade */
.main-header .container > .d-flex { min-height: 72px; }
.desktop-nav { flex: 1 1 auto; min-width: 0; white-space: nowrap; }
.desktop-nav .nav-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.product-nav-dropdown .dropdown-toggle::after { margin-left: 6px; }
.nav-flash { color: #f2a33a; font-size: 1.05rem; }
.header-actions { flex: 0 0 auto; }
.brand-logo { flex: 0 0 auto; }
.shop-heading .section-kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #9f5a28; margin-bottom: 8px; }
.shop-filter-sidebar { top: 112px; background: #fff; border: 1px solid var(--border-color); border-radius: 24px; padding: 20px; box-shadow: 0 16px 38px rgba(91,31,46,.07); }
.shop-filter-form { display: grid; gap: 18px; }
.filter-block { padding-bottom: 16px; border-bottom: 1px solid rgba(234,223,213,.85); }
.filter-block:last-of-type { border-bottom: 0; padding-bottom: 0; }
.filter-title { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; color: var(--primary-color); }
.filter-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { cursor: pointer; user-select: none; border: 1px solid var(--border-color); border-radius: 999px; padding: 7px 13px; font-weight: 700; color: var(--primary-color); background: #fff; transition: var(--transition-smooth); }
.filter-chip input { display: none; }
.filter-chip.active, .filter-chip:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.filter-toggle-sale { display: flex; gap: 10px; align-items: flex-start; color: var(--primary-color); font-weight: 700; }
.filter-toggle-sale input { margin-top: 5px; accent-color: var(--primary-color); }
.product-filter-drawer { width: min(420px, 92vw); }
.empty-state { border-color: var(--border-color) !important; }
.product-card .quick-cart-submit { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.product-action-overlay { display: none !important; }
@media (min-width: 1200px) {
    .desktop-nav .nav-link { padding-left: .82rem !important; padding-right: .82rem !important; font-size: .82rem !important; }
    .header-actions .search-pill { width: 250px !important; min-width: 250px !important; max-width: 250px !important; }
}
@media (max-width: 1199.98px) and (min-width: 992px) {
    .desktop-nav .nav-link { padding-left: .48rem !important; padding-right: .48rem !important; font-size: .70rem !important; }
    .header-actions .search-pill { display: none !important; }
}
@media (max-width: 991.98px) {
    .main-header .container > .d-flex { min-height: 58px; }
    .shop-heading h1 { font-size: 1.7rem; }
    .product-card { border-radius: 22px; }
    .product-card .quick-cart-submit { min-height: 40px; font-size: .74rem; padding-left: 10px; padding-right: 10px; }
}

/* Contact page + header/menu clean-up */
.desktop-nav {
    justify-content: center;
    gap: 4px !important;
}
.desktop-nav .nav-link {
    text-transform: none !important;
    font-size: .96rem !important;
    letter-spacing: 0 !important;
    padding: .62rem .95rem !important;
}
.product-nav-dropdown .dropdown-toggle {
    gap: 7px;
}
.nav-flash {
    color: #f2a33a;
    font-size: 1.15rem;
}
@media (min-width: 992px) {
    .main-header .container > .d-flex {
        min-height: 76px;
    }
}
@media (max-width: 1199.98px) and (min-width: 992px) {
    .desktop-nav .nav-link {
        font-size: .82rem !important;
        padding-left: .6rem !important;
        padding-right: .6rem !important;
    }
}

.contact-hero-section {
    padding: clamp(42px, 6vw, 78px) 0 0;
    background: linear-gradient(180deg, #fffaf6 0%, #ffffff 100%);
}
.contact-hero-card {
    border: 1px solid var(--border-color);
    border-radius: 34px;
    padding: clamp(28px, 5vw, 54px);
    background:
        radial-gradient(circle at 88% 12%, rgba(91, 31, 46, .13), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #fff4ea 100%);
    box-shadow: 0 18px 42px rgba(91, 31, 46, .07);
}
.contact-hero-card h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    color: var(--primary-color);
}
.contact-hero-card p {
    max-width: 720px;
    color: #65565a;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
}
.contact-page-section {
    background: #fff;
}
.contact-info-card,
.contact-form-card {
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background: #ffffff;
    padding: clamp(22px, 3vw, 34px);
    box-shadow: 0 16px 38px rgba(91, 31, 46, .07);
}
.contact-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.contact-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(34, 197, 94, .25);
    color: #166534;
    background: #f0fdf4;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}
.contact-status i {
    font-size: .55rem;
}
.contact-info-list {
    display: grid;
    gap: 16px;
}
.contact-info-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid rgba(234, 223, 213, .9);
    border-radius: 20px;
    background: #fffaf6;
}
.contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 10px 20px rgba(91, 31, 46, .18);
}
.contact-info-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 3px;
}
.contact-info-item p {
    margin: 0;
    color: #5d5558;
}
.contact-map-wrap {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    min-height: 330px;
    background: #f8f6f1;
}
.contact-map-wrap iframe {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
}
.contact-form-card .form-label {
    font-weight: 800;
    color: var(--primary-color);
    font-size: .88rem;
}
.contact-form-card .form-control {
    min-height: 54px;
    border-radius: 16px !important;
    background: #fffdfb;
}
.contact-form-card textarea.form-control {
    min-height: 160px;
}
.contact-form-card .btn-black {
    min-height: 54px;
    border-radius: 16px;
}

/* User product filter: desktop sidebar on the left, mobile drawer from left */
.shop-page .row.align-items-start > aside:first-child .shop-filter-sidebar {
    border-radius: 28px;
}
.shop-filter-sidebar {
    top: 110px;
}
.product-filter-drawer.offcanvas-start {
    border-right: 1px solid var(--border-color);
    border-left: 0;
}
@media (max-width: 991.98px) {
    .contact-title-row {
        flex-direction: column;
    }
    .contact-map-wrap iframe {
        height: 300px;
    }
}
@media (max-width: 575.98px) {
    .contact-hero-section {
        padding-top: 24px;
    }
    .contact-hero-card,
    .contact-info-card,
    .contact-form-card {
        border-radius: 22px;
        padding: 20px;
    }
    .contact-info-item {
        grid-template-columns: 40px 1fr;
        padding: 14px;
    }
    .contact-icon {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }
    .contact-map-wrap iframe {
        height: 260px;
    }
}

/* Admin shortcut visible on frontend header */
.admin-header-shortcut {
    height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    white-space: nowrap;
    box-shadow: 0 12px 26px rgba(92, 28, 45, .16);
}
.admin-header-shortcut:hover { background: var(--ink); color: #fff !important; transform: translateY(-1px); }
.mobile-admin-link { color: var(--primary-color) !important; font-weight: 900 !important; }
.product-card .quick-cart-submit,
.choose-variant-card-action .quick-cart-submit {
    text-transform: none !important;
    letter-spacing: .02em !important;
}
.product-card .btn-black,
.product-action-overlay .btn-black,
.product-card .quick-cart-submit {
    text-transform: none !important;
}


/* ================= Tiệm Nhà Bông PRO UI UPGRADE ================= */
.section-kicker{display:inline-flex;align-items:center;gap:8px;color:#a56a44;text-transform:uppercase;font-size:.78rem;font-weight:800;letter-spacing:1.8px}.section-kicker:before{content:"";width:28px;height:1px;background:#a56a44}.boutique-detail-page{color:#3b1f28}.boutique-gallery{display:grid;grid-template-columns:88px 1fr;gap:16px;position:sticky;top:120px}.gallery-main{background:#fff;border:1px solid var(--border-color);border-radius:30px;overflow:hidden;box-shadow:0 24px 70px rgba(91,31,46,.12)}.gallery-main img{width:100%;height:100%;aspect-ratio:3/4;object-fit:cover}.gallery-thumbs{display:flex;flex-direction:column;gap:12px;order:-1}.gallery-thumb{border:1px solid var(--border-color);border-radius:18px;padding:0;background:#fff;overflow:hidden;aspect-ratio:3/4;opacity:.7}.gallery-thumb.active,.gallery-thumb:hover{opacity:1;border-color:var(--primary-color);transform:translateY(-2px)}.gallery-thumb img{width:100%;height:100%;object-fit:cover}.boutique-info-card{background:rgba(255,255,255,.88);border:1px solid var(--border-color);border-radius:32px;padding:32px;box-shadow:0 24px 70px rgba(91,31,46,.1);backdrop-filter:blur(12px)}.detail-rating,.review-stars{color:#b98542;display:flex;align-items:center;gap:4px}.detail-rating span{color:#777;margin-left:8px;font-size:.9rem}.detail-price{display:flex;align-items:baseline;gap:12px}.detail-short-desc{line-height:1.8}.wishlist-btn-detail{width:46px;height:46px;border-radius:50%;border:1px solid var(--border-color);background:#fff;color:var(--primary-color);display:grid;place-items:center}.wishlist-btn-detail.active{background:var(--primary-color);color:#fff}.variant-label{font-weight:800;text-transform:uppercase;font-size:.8rem;letter-spacing:.8px;margin-bottom:10px}.size-help-link{border:0;background:transparent;color:#a56a44;text-decoration:underline;font-size:.8rem;margin-left:8px}.boutique-size-selector,.boutique-color-selector{display:flex;gap:10px;flex-wrap:wrap}.size-chart-box{background:#fff8f3;border:1px solid var(--border-color);border-radius:20px;padding:18px;margin-bottom:18px}.stock-pill{display:inline-flex;border-radius:999px;padding:9px 14px;background:#e8f6ee;color:#176a37;font-weight:700}.stock-pill.out{background:#fdecec;color:#b02a37}.flash-sale-strip{border-radius:18px;background:linear-gradient(135deg,#5b1f2e,#b98542);color:#fff;padding:12px 16px;font-weight:800}.detail-service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.detail-service-grid span{background:#fff8f3;border:1px solid var(--border-color);border-radius:16px;padding:12px;font-size:.82rem;font-weight:700}.detail-reviews-section{background:#fff;border:1px solid var(--border-color);border-radius:32px;padding:28px}.review-summary-card,.review-item{background:#fffaf6;border:1px solid var(--border-color);border-radius:24px;padding:22px}.review-score{font-size:3.2rem;font-weight:900;color:var(--primary-color)}.review-score span{font-size:1rem;color:#777}.review-list{display:grid;gap:14px}.lookbook-hero{padding:90px 0;background:radial-gradient(circle at 20% 20%,rgba(185,133,66,.22),transparent 30%),linear-gradient(135deg,#fff7ee,#f6e5d9);text-align:center}.lookbook-hero h1{font-size:clamp(2rem,5vw,4rem);max-width:820px;margin:0 auto 14px}.lookbook-hero p{max-width:680px;margin:auto;color:#765}.lookbook-grid{columns:3 280px;column-gap:22px}.lookbook-card{break-inside:avoid;position:relative;border-radius:30px;overflow:hidden;margin-bottom:22px;min-height:420px;box-shadow:0 22px 60px rgba(91,31,46,.13)}.lookbook-card img{width:100%;height:100%;min-height:420px;object-fit:cover;display:block}.lookbook-overlay{position:absolute;inset:auto 18px 18px 18px;background:rgba(255,255,255,.88);border-radius:24px;padding:20px;backdrop-filter:blur(10px)}.lookbook-overlay span{color:#a56a44;text-transform:uppercase;font-size:.75rem;font-weight:800;letter-spacing:1.4px}.lookbook-overlay h3{font-weight:900;margin:4px 0}.checkout-heading{max-width:700px;margin-bottom:24px}.checkout-heading p{color:#777}.checkout-card,.checkout-summary-card{background:#fff;border:1px solid var(--border-color);border-radius:28px;padding:26px;box-shadow:0 20px 55px rgba(91,31,46,.08)}.checkout-card h4,.checkout-summary-card h4{font-weight:900;margin-bottom:18px}.checkout-card label{font-size:.78rem;text-transform:uppercase;font-weight:800;color:#5b1f2e}.checkout-card .form-control,.checkout-summary-card .form-control{border-radius:16px;border:1px solid var(--border-color);padding:12px 14px}.payment-tile{display:flex;gap:12px;align-items:center;border:1px solid var(--border-color);border-radius:18px;padding:14px;margin-bottom:10px;cursor:pointer}.payment-tile small{display:block;color:#777}.checkout-items{display:grid;gap:12px;max-height:320px;overflow:auto}.checkout-item{display:grid;grid-template-columns:58px 1fr auto;gap:12px;align-items:center;border-bottom:1px solid var(--border-color);padding-bottom:12px}.checkout-item img{width:58px;aspect-ratio:3/4;object-fit:cover;border-radius:12px}.checkout-item small{display:block;color:#777}.coupon-box{background:#fff8f3;border:1px dashed #d6ad78;border-radius:20px;padding:14px;margin:18px 0}.summary-line,.summary-total{display:flex;justify-content:space-between;align-items:center;margin:12px 0}.summary-total{font-size:1.2rem}.summary-total strong{color:#b02a37;font-size:1.5rem}.status-badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 12px;font-size:.76rem;font-weight:800}.status-pending{background:#fff3cd;color:#856404}.status-processing{background:#d1ecf1;color:#0c5460}.status-shipping{background:#dbeafe;color:#1d4ed8}.status-completed{background:#dcfce7;color:#166534}.status-cancelled{background:#fee2e2;color:#991b1b}.admin-content select[name="status"]{border-radius:999px!important;font-weight:700}.product-filter-drawer.offcanvas-bottom{height:88vh;border-radius:28px 28px 0 0}.pro-chatbot-trigger{background:linear-gradient(135deg,#5b1f2e,#b98542);box-shadow:0 14px 38px rgba(91,31,46,.35)}.chatbot-pulse{position:absolute;inset:-5px;border-radius:50%;border:2px solid rgba(185,133,66,.45);animation:chatPulse 1.8s infinite}@keyframes chatPulse{to{transform:scale(1.45);opacity:0}}.pro-chatbot-window{border-radius:28px;overflow:hidden;box-shadow:0 28px 80px rgba(60,18,30,.28);border:1px solid rgba(255,255,255,.5)}.pro-chatbot-header{background:linear-gradient(135deg,#5b1f2e,#8b3f4e)}.chatbot-avatar{width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.18);display:grid;place-items:center;color:#fff}.chatbot-inputbar{display:flex;gap:8px;padding:12px;background:#fff;border-top:1px solid var(--border-color)}.chatbot-inputbar input{flex:1;border:1px solid var(--border-color);border-radius:999px;padding:10px 14px;outline:none}.chatbot-inputbar button{width:42px;height:42px;border-radius:50%;border:0;background:var(--primary-color);color:#fff}.chatbot-message{white-space:pre-line}.chatbot-message.user{background:#5b1f2e;color:#fff;margin-left:auto;border-radius:18px 18px 4px 18px}.chatbot-message.bot{background:#fff8f3;color:#45212b;border:1px solid var(--border-color);border-radius:18px 18px 18px 4px}.filter-mobile-bar{position:sticky;bottom:12px;z-index:20}.wishlist-page .product-card{border-radius:24px;overflow:hidden;padding:10px}
@media(max-width:991px){.boutique-gallery{position:static;display:flex;flex-direction:column}.gallery-thumbs{order:2;flex-direction:row;overflow:auto}.gallery-thumb{width:74px;flex:0 0 74px}.boutique-info-card{padding:22px;border-radius:24px}.detail-service-grid{grid-template-columns:1fr}.product-filter-drawer{height:88vh!important;border-radius:28px 28px 0 0}.chatbot-window{right:12px!important;left:12px!important;width:auto!important;bottom:86px!important}.lookbook-card{min-height:360px}.lookbook-card img{min-height:360px}}
@media(max-width:575px){.checkout-item{grid-template-columns:52px 1fr}.checkout-item span{grid-column:2;text-align:left}.lookbook-overlay{inset:auto 12px 12px 12px;padding:16px}.boutique-info-card h1{font-size:1.65rem}.detail-price .fs-3{font-size:1.55rem!important}}

/* Order history: rõ tạm tính, mã giảm, phí giao hàng, tổng thanh toán */
.order-history-head{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0}.order-history-meta,.order-history-total{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}.order-history-meta>span:first-of-type{color:#6b7280;font-size:.9rem}.order-history-total{justify-content:flex-end}.order-history-total>strong{font-size:1.05rem;color:#dc3345;white-space:nowrap}.order-history-summary{border:1px solid var(--border-color);border-radius:20px;background:#fffaf6;padding:14px 16px;display:grid;gap:10px}.order-history-summary>div{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:10px;border-bottom:1px dashed var(--border-color)}.order-history-summary>div:last-child{padding-bottom:0;border-bottom:0}.order-history-summary span{color:#6b7280;font-weight:700}.order-history-summary strong{text-align:right}.order-history-summary .total{margin-top:2px;padding:12px;border-radius:16px;background:#fff}.order-history-summary .total span{color:#111827}.order-history-summary .total strong{font-size:1.22rem;color:#dc3345}
@media(max-width:767.98px){.order-history-head,.order-history-meta,.order-history-total{align-items:flex-start;justify-content:flex-start}.order-history-head{display:grid;gap:10px}.order-history-total>strong{font-size:1.15rem}.order-history-summary>div{align-items:flex-start}.order-history-summary{padding:12px}}
@media(max-width:575.98px){.accordion-button{padding-left:12px;padding-right:12px}.order-history-summary>div{display:grid;gap:4px}.order-history-summary strong{text-align:left}.list-group-item{align-items:flex-start!important;gap:10px}.list-group-item>span{white-space:nowrap}}


/* ===== CTA PROMOTIONAL POPUP ===== */
.promo-popup-overlay{position:fixed;inset:0;z-index:2140;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(18,15,16,.58);backdrop-filter:blur(5px);opacity:0;transition:opacity .22s ease}.promo-popup-overlay.show{display:flex;opacity:1}.promo-popup-card{position:relative;width:min(92vw,760px);display:grid;grid-template-columns:minmax(220px,.92fr) 1.08fr;gap:0;overflow:hidden;border:1px solid rgba(255,255,255,.65);border-radius:28px;background:#fff;box-shadow:0 32px 100px rgba(40,18,25,.34);transform:translateY(14px) scale(.98);transition:transform .22s ease}.promo-popup-overlay.show .promo-popup-card{transform:translateY(0) scale(1)}.promo-popup-card:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 16% 18%,rgba(255,231,181,.75),transparent 30%),radial-gradient(circle at 85% 80%,rgba(91,31,46,.13),transparent 34%);pointer-events:none}.promo-popup-close{position:absolute;top:12px;right:12px;z-index:3;width:38px;height:38px;border:0;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.9);color:#5b1f2e;box-shadow:0 8px 22px rgba(0,0,0,.12)}.promo-popup-close:hover{background:#5b1f2e;color:#fff}.promo-popup-badge{position:absolute;left:18px;top:16px;z-index:3;display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:8px 12px;background:#fff;color:#8b3f4e;font-size:.78rem;font-weight:900;box-shadow:0 10px 30px rgba(91,31,46,.12)}.promo-popup-visual{position:relative;min-height:360px;display:grid;place-items:center;padding:68px 24px 28px;background:linear-gradient(135deg,#fff1c7,#f7d78f 42%,#b98542);isolation:isolate}.promo-popup-visual:after{content:"";position:absolute;inset:46px 24px 24px;border:2px dashed rgba(255,255,255,.75);border-radius:28px;z-index:-1}.promo-popup-visual .bi{font-size:6.2rem;color:#fff;filter:drop-shadow(0 16px 26px rgba(91,31,46,.24))}.promo-bubble{position:absolute;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:8px 12px;background:#fff;color:#5b1f2e;font-weight:950;box-shadow:0 16px 35px rgba(91,31,46,.16)}.bubble-1{left:28px;bottom:42px;font-size:1.2rem;background:#5b1f2e;color:#fff}.bubble-2{right:24px;top:96px}.bubble-3{right:34px;bottom:66px;background:#fff8f3}.promo-popup-content{position:relative;z-index:2;padding:56px 42px 36px;display:flex;flex-direction:column;justify-content:center}.promo-popup-kicker{margin:0 0 8px;color:#b98542;font-size:.8rem;font-weight:950;letter-spacing:1.6px;text-transform:uppercase}.promo-popup-content h2{margin:0 0 12px;color:#20151a;font-size:clamp(1.65rem,3vw,2.5rem);line-height:1.06;font-weight:950;letter-spacing:-.04em}.promo-popup-content p:not(.promo-popup-kicker){margin:0;color:#6f6367;line-height:1.65}.promo-popup-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:24px}.promo-popup-cta{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 20px;border-radius:999px;background:#5b1f2e;color:#fff;text-decoration:none;font-weight:900;box-shadow:0 14px 30px rgba(91,31,46,.25)}.promo-popup-cta:hover{color:#fff;transform:translateY(-1px)}.promo-popup-snooze{min-height:44px;border:0;background:transparent;color:#6f6367;text-decoration:underline;font-weight:800;padding:8px 0}.promo-popup-snooze:hover{color:#5b1f2e}@media(max-width:767.98px){.promo-popup-overlay{align-items:flex-end;padding:12px}.promo-popup-card{width:100%;grid-template-columns:1fr;border-radius:26px}.promo-popup-visual{min-height:190px;padding:58px 22px 18px}.promo-popup-visual .bi{font-size:4.5rem}.promo-popup-content{padding:24px 22px 22px}.promo-popup-badge{top:12px;left:14px}.promo-popup-close{top:10px;right:10px}.bubble-1{left:22px;bottom:20px}.bubble-2{right:22px;top:76px}.bubble-3{display:none}.promo-popup-actions{display:grid;gap:10px}.promo-popup-cta,.promo-popup-snooze{width:100%;text-align:center}.promo-popup-snooze{background:#fff8f3;border-radius:999px;text-decoration:none;padding:12px}}

body.promo-popup-open{overflow:hidden}

/* ===== Payment QR / MoMo upgrade ===== */
.payment-method-grid{display:grid;gap:12px}
.payment-tile-pro{position:relative;align-items:flex-start;padding:16px 16px 16px 14px;transition:.2s ease;background:#fff}
.payment-tile-pro input{margin-top:5px;accent-color:var(--primary-color)}
.payment-tile-pro>i{width:42px;height:42px;border-radius:14px;background:#fff8f3;color:var(--primary-color);display:grid;place-items:center;font-size:1.25rem;flex:0 0 42px}
.payment-tile-pro.active,.payment-tile-pro:has(input:checked){border-color:var(--primary-color);box-shadow:0 14px 38px rgba(91,31,46,.12);background:linear-gradient(135deg,#fff,#fff8f3)}
.payment-preview-note{display:flex;gap:10px;align-items:flex-start;background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:12px 14px;color:#475569;font-size:.86rem;text-transform:none!important;font-weight:600!important}
.payment-preview-note i{color:#15803d;font-size:1rem;margin-top:2px}
.bank-pay-layout{display:grid;grid-template-columns:minmax(160px,220px) 1fr;gap:18px;align-items:start}
.bank-qr-card{background:#fff;border:1px solid rgba(7,73,90,.12);border-radius:20px;padding:12px;text-align:center;box-shadow:0 12px 32px rgba(7,73,90,.08)}
.bank-qr-card img{width:100%;max-width:210px;border-radius:14px;background:#fff;display:block;margin:0 auto 8px}
.bank-qr-card span{display:block;color:#64748b;font-size:.78rem;font-weight:800}
.payment-action-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.btn-momo{background:#a50064!important;color:#fff!important;border-color:#a50064!important;border-radius:999px;font-weight:800}
.btn-momo:hover{background:#8b0054!important;color:#fff!important;border-color:#8b0054!important}
.bank-guide-compact .bank-pay-layout{grid-template-columns:130px 1fr;gap:12px}
.bank-guide-compact .bank-qr-card{padding:8px;border-radius:16px}
.bank-guide-compact .bank-qr-card img{max-width:120px;border-radius:12px}
.bank-guide-compact .payment-action-row .btn{font-size:.76rem;padding:.4rem .65rem}
@media (max-width:768px){
  .bank-pay-layout,.bank-guide-compact .bank-pay-layout{grid-template-columns:1fr}
  .bank-qr-card img{max-width:230px}
  .payment-tile-pro{gap:10px;padding:14px}
  .payment-tile-pro>i{width:38px;height:38px;font-size:1.1rem}
}

/* Tiệm Nhà Bông add-ons: sale off, community, intro video */
.home-intro-video-section { position: relative; }
.intro-video-frame { position: relative; overflow: hidden; border-radius: 28px; background: #111; box-shadow: 0 24px 70px rgba(15, 23, 42, .16); aspect-ratio: 16 / 9; }
.intro-video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.intro-video-placeholder { height: 100%; min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; gap: 12px; }
.intro-video-placeholder i { font-size: 64px; }
.intro-video-points { display: grid; gap: 10px; }
.intro-video-points span { display: flex; align-items: center; gap: 10px; color: #444; }
.intro-video-points i { color: #198754; }
.saleoff-hero { padding: 42px 0 16px; background: linear-gradient(180deg, #fff7ef 0%, #fff 100%); }
.saleoff-hero-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px; border-radius: 30px; background: radial-gradient(circle at top right, rgba(255, 211, 130, .32), transparent 32%), linear-gradient(135deg, #171717, #581c2d); box-shadow: 0 28px 80px rgba(20, 20, 20, .18); }
.saleoff-hero-metric { flex: 0 0 auto; width: 148px; height: 148px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: #fff; color: #111; text-align: center; }
.saleoff-hero-metric strong { display: block; font-size: 44px; line-height: 1; }
.saleoff-hero-metric span { font-size: 13px; color: #666; }
.saleoff-product-card .product-badge { background: #dc3545; }
.community-hero { padding: 58px 0 34px; background: linear-gradient(135deg, #fff7ef, #fff); }
.community-visual-card { min-height: 300px; border-radius: 34px; background: linear-gradient(145deg, #161616, #6a2033); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 26px 70px rgba(20, 20, 20, .16); padding: 34px; }
.community-visual-card i { font-size: 64px; margin-bottom: 18px; }
.community-visual-card strong { font-size: 28px; font-family: var(--font-title, serif); }
.community-visual-card span { color: rgba(255,255,255,.72); margin-top: 8px; }
.community-card, .community-review-card { border: 1px solid rgba(20,20,20,.08); border-radius: 24px; padding: 24px; background: #fff; box-shadow: 0 18px 50px rgba(20,20,20,.06); }
.community-card-icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: #111; color: #fff; font-size: 24px; margin-bottom: 18px; }
.community-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.community-card p { color: #666; min-height: 72px; }
.community-review-card img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; }
.community-review-card p { color: #555; font-size: 14px; }
.review-stars i { color: #f5a623; }
@media (max-width: 768px) {
  .saleoff-hero-card { padding: 24px; border-radius: 24px; flex-direction: column; align-items: flex-start; }
  .saleoff-hero-metric { width: 112px; height: 112px; }
  .saleoff-hero-metric strong { font-size: 34px; }
  .community-visual-card { min-height: 220px; border-radius: 26px; }
  .intro-video-frame { border-radius: 22px; }
}

/* Home hero moving banner - compact, smooth and responsive */
.hero-slider-section {
    padding: 0;
    overflow: hidden;
}

.hero-carousel .carousel-item {
    min-height: clamp(560px, 74vh, 760px);
    padding: clamp(56px, 7vw, 96px) 0;
}

.hero-slide-row {
    min-height: clamp(480px, 62vh, 640px);
}

.hero-kicker {
    font-size: .82rem;
    letter-spacing: 2px;
}

.hero-description {
    font-weight: 300;
    font-size: 1.08rem;
    line-height: 1.85;
    max-width: 620px;
}

.hero-image-frame {
    aspect-ratio: 4/5;
    border-radius: 34px;
    background: #fff;
}

.hero-image-frame::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255,255,255,.72);
    pointer-events: none;
}

.hero-carousel-indicators {
    margin-bottom: 24px;
    gap: 8px;
}

.hero-carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    opacity: .35;
    background-color: var(--primary-color);
}

.hero-carousel-indicators .active {
    width: 32px;
    opacity: 1;
}

.hero-control {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(91,31,46,.88);
    opacity: 1;
}

.hero-control-prev { left: 18px; }
.hero-control-next { right: 18px; }

.product-action-overlay .btn,
.quick-cart-submit {
    text-transform: uppercase;
    letter-spacing: .8px;
}

@media (max-width: 991.98px) {
    .hero-carousel .carousel-item {
        min-height: auto;
        padding: 48px 0 58px;
    }

    .hero-slide-row {
        min-height: auto;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .hero-image-frame {
        border-radius: 26px;
        max-height: 520px;
    }

    .hero-control {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .hero-carousel .carousel-item {
        padding: 34px 0 54px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: .95rem;
        line-height: 1.65;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-image-frame {
        border-radius: 22px;
        aspect-ratio: 4/4.8;
    }

    .hero-carousel-indicators {
        margin-bottom: 14px;
    }
}

/* =========================================================
   Final Header + Language + Chatbot Fix 2026-06-07
   Keep header compact, prevent overlap when language switcher exists.
   ========================================================= */
.main-header {
    z-index: 1045;
    backdrop-filter: blur(14px);
}
.header-container {
    max-width: min(1380px, calc(100vw - 28px)) !important;
}
.header-main-row {
    min-height: 58px;
    flex-wrap: nowrap;
}
.brand-logo {
    width: 144px !important;
    min-width: 144px !important;
    max-width: 144px !important;
    text-decoration: none !important;
    overflow: hidden;
}
.brand-logo span {
    font-size: 1.55rem !important;
    line-height: .95 !important;
    white-space: nowrap;
}
.brand-logo small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.desktop-nav {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: visible !important;
    white-space: nowrap;
}
.desktop-nav .nav-link {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: .52rem .68rem !important;
    font-size: .78rem !important;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: .01em;
}
.header-actions {
    flex: 0 0 auto !important;
    min-width: 0;
    gap: 9px !important;
}
.order-track-link,
.lang-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 999px;
    border: 1px solid var(--border-color, #eadfd5);
    background: #fff;
    color: var(--primary-color, #5b1f2e);
    box-shadow: 0 8px 20px rgba(91,31,46,.04);
    text-decoration: none;
    font-weight: 900;
    padding: 0 13px;
    white-space: nowrap;
}
.order-track-link:hover,
.order-track-link.active,
.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
    color: #fff;
    background: var(--primary-color, #5b1f2e);
    border-color: var(--primary-color, #5b1f2e);
}
.lang-btn span {
    font-weight: 900;
    font-size: .86rem;
}
.lang-btn::after {
    display: none;
}
.language-switcher .dropdown-item.active,
.mobile-lang-row a.active {
    background: var(--primary-color, #5b1f2e);
    color: #fff !important;
}
.header-actions .search-pill {
    width: clamp(210px, 18vw, 280px) !important;
    min-width: 210px !important;
    max-width: 280px !important;
    flex: 0 1 280px !important;
}
.mobile-lang-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.mobile-lang-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid var(--border-color, #eadfd5);
    border-radius: 14px;
    font-weight: 900;
    text-decoration: none;
    color: var(--primary-color, #5b1f2e);
    background: #fff;
}
.mobile-menu-panel {
    max-height: calc(100vh - 110px);
    overflow: auto;
}
.cart-drawer-header h5,
.cart-drawer-header small {
    overflow-wrap: anywhere;
}

@media (max-width: 1399.98px) {
    .brand-logo { width: 128px !important; min-width: 128px !important; max-width: 128px !important; }
    .brand-logo span { font-size: 1.35rem !important; }
    .brand-logo small { font-size: .5rem !important; }
    .desktop-nav .nav-link { padding-left: .48rem !important; padding-right: .48rem !important; font-size: .72rem !important; }
    .header-actions .search-pill { width: 220px !important; min-width: 220px !important; }
    .admin-header-shortcut span { display: none; }
}
@media (max-width: 1199.98px) {
    .header-main-row { gap: 10px !important; }
    .brand-logo { width: 132px !important; min-width: 132px !important; max-width: 132px !important; }
    .header-actions .search-pill { width: min(300px, 34vw) !important; max-width: 300px !important; }
}
@media (max-width: 767.98px) {
    .header-container { max-width: 100% !important; padding-left: 14px !important; padding-right: 14px !important; }
    .brand-logo { width: 112px !important; min-width: 112px !important; max-width: 112px !important; }
    .brand-logo span { font-size: 1.18rem !important; }
    .brand-logo small { font-size: .45rem !important; letter-spacing: .12em !important; }
    .lang-btn { width: 40px; padding: 0; }
    .lang-btn span { font-size: .72rem; }
    .lang-btn i { display: none; }
    .icon-action,
    .mobile-menu-btn { width: 40px !important; height: 40px !important; }
    .user-chip { padding: 0 !important; width: 40px !important; min-width: 40px !important; }
    .user-chip span:last-child { display: none !important; }
}
@media (max-width: 430px) {
    .header-actions { gap: 5px !important; }
    .brand-logo { width: 100px !important; min-width: 100px !important; max-width: 100px !important; }
    .brand-logo span { font-size: 1.02rem !important; }
    .brand-logo small { display: none !important; }
    .lang-btn,
    .icon-action,
    .mobile-menu-btn { width: 38px !important; height: 38px !important; }
}

/* Chatbot polish: single smart bot, clean mobile layout */
.pro-chatbot-window,
.chatbot-window {
    display: none;
    flex-direction: column;
    overflow: hidden;
    max-height: min(620px, calc(100vh - 120px));
}
.chatbot-body {
    flex: 1 1 auto;
    overflow-y: auto;
}
.chatbot-message {
    max-width: 86%;
    word-break: break-word;
    line-height: 1.55;
}
.chatbot-message.user {
    align-self: flex-end;
}
.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chatbot-btn-suggest {
    white-space: nowrap;
}
.chatbot-inputbar input {
    min-width: 0;
}
@media (max-width: 575.98px) {
    .chatbot-window { left: 10px !important; right: 10px !important; bottom: 76px !important; width: auto !important; height: min(520px, calc(100vh - 100px)) !important; }
    .chatbot-message { max-width: 92%; }
    .chatbot-btn-suggest { font-size: .78rem; padding: 7px 10px; }
}


/* =========================================================
   HARD FIX HEADER RESPONSIVE 2026-06-07
   Fix zoom in/out overlap: menu/actions never cover each other.
   ========================================================= */
.main-header,
.main-header * {
    box-sizing: border-box;
}

.header-container {
    width: 100%;
    max-width: min(1500px, calc(100vw - 32px)) !important;
    margin-left: auto;
    margin-right: auto;
}

.header-main-row {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(10px, 1.2vw, 22px) !important;
    min-height: 64px;
    width: 100%;
}

.brand-logo {
    grid-column: 1;
    flex: none !important;
    width: clamp(112px, 8vw, 146px) !important;
    min-width: clamp(112px, 8vw, 146px) !important;
    max-width: clamp(112px, 8vw, 146px) !important;
    z-index: 2;
}

.brand-logo span {
    font-size: clamp(1.18rem, 1.35vw, 1.7rem) !important;
}

.desktop-nav {
    grid-column: 2;
    justify-self: center;
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    overflow: hidden !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px !important;
}

.desktop-nav .nav-link {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: .52rem clamp(.38rem, .55vw, .75rem) !important;
    font-size: clamp(.68rem, .72vw, .82rem) !important;
    letter-spacing: 0 !important;
}

.product-nav-dropdown {
    min-width: 0;
}

.product-nav-dropdown .dropdown-toggle {
    max-width: 112px;
}

.header-actions {
    grid-column: 3;
    justify-self: end;
    display: flex !important;
    align-items: center !important;
    gap: clamp(6px, .7vw, 12px) !important;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    z-index: 3;
}

.order-track-link {
    width: auto;
    max-width: 126px;
    padding-inline: 12px !important;
    overflow: hidden;
}

.order-track-link span {
    display: inline-block;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lang-btn {
    min-width: 58px;
    padding-inline: 12px !important;
}

.header-actions .search-pill {
    width: clamp(180px, 17vw, 300px) !important;
    min-width: 0 !important;
    max-width: 300px !important;
    flex: 0 1 clamp(180px, 17vw, 300px) !important;
    height: 42px;
    padding-inline: 13px !important;
}

.header-actions .search-pill input {
    min-width: 0;
}

.icon-action,
.mobile-menu-btn,
.lang-btn {
    flex: 0 0 auto;
}

.admin-header-shortcut {
    max-width: 44px;
    overflow: hidden;
    padding-inline: 0 !important;
}

/* From 1400px down, use compact/mobile menu instead of forcing full desktop nav */
@media (max-width: 1399.98px) {
    .header-main-row {
        grid-template-columns: auto 1fr;
    }

    .desktop-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: inline-flex !important;
    }

    .header-actions {
        grid-column: 2;
    }

    .order-track-link {
        display: none !important;
    }

    .header-actions .search-pill {
        width: min(320px, 36vw) !important;
        flex-basis: min(320px, 36vw) !important;
    }
}

/* Mid desktop / tablet: keep only core actions */
@media (max-width: 991.98px) {
    .top-announcement {
        display: none !important;
    }

    .header-container {
        max-width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .header-main-row {
        min-height: 58px;
        gap: 10px !important;
    }

    .brand-logo {
        width: 118px !important;
        min-width: 118px !important;
        max-width: 118px !important;
    }

    .header-actions .search-pill {
        display: none !important;
    }
}

/* Small mobile: no overlap, icons remain same size */
@media (max-width: 575.98px) {
    .header-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .brand-logo {
        width: 98px !important;
        min-width: 98px !important;
        max-width: 98px !important;
    }

    .brand-logo span {
        font-size: 1.05rem !important;
    }

    .brand-logo small {
        font-size: .43rem !important;
        letter-spacing: .08em !important;
    }

    .header-actions {
        gap: 5px !important;
    }

    .lang-btn,
    .icon-action,
    .mobile-menu-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
    }

    .lang-btn i {
        display: none !important;
    }

    .lang-btn span {
        font-size: .68rem !important;
    }
}

@media (max-width: 380px) {
    .brand-logo {
        width: 82px !important;
        min-width: 82px !important;
        max-width: 82px !important;
    }

    .brand-logo small {
        display: none !important;
    }
}

/* Chatbot hard fix: prevent double handling and make messages readable */
.chatbot-window {
    display: none;
    flex-direction: column;
}

.chatbot-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chatbot-message {
    width: fit-content;
    max-width: 86%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.chatbot-message.user {
    margin-left: auto;
}

.chatbot-message.bot {
    margin-right: auto;
}

.chatbot-inputbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chatbot-inputbar input {
    flex: 1 1 auto;
    min-width: 0;
}

.chatbot-inputbar button {
    flex: 0 0 auto;
}


/* Hide admin shortcut on customer header to prevent overlap with avatar/account button */
.admin-header-shortcut {
    display: none !important;
}


/* Home banner controls: autoplay vẫn chạy, click tay rõ và dễ bấm */
.hero-carousel {
    position: relative;
}

.hero-carousel .carousel-item {
    transition: transform .75s ease-in-out;
}

.hero-control {
    width: 46px;
    height: 46px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(91, 31, 46, .72);
    opacity: 1;
    box-shadow: 0 14px 28px rgba(91,31,46,.18);
}

.hero-control:hover {
    background: rgba(91, 31, 46, .95);
}

.hero-control-prev {
    left: clamp(10px, 2vw, 26px);
}

.hero-control-next {
    right: clamp(10px, 2vw, 26px);
}

.hero-carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    opacity: .38;
}

.hero-carousel-indicators .active {
    width: 28px;
    opacity: 1;
}

@media (max-width: 767.98px) {
    .hero-control {
        width: 38px;
        height: 38px;
    }
}


/* Home Community Section */
.home-community-section {
    background:
        radial-gradient(circle at 10% 15%, rgba(185, 133, 66, .16), transparent 28%),
        linear-gradient(135deg, #fffaf6 0%, #fff 55%, #f8eee8 100%);
}

.home-community-card {
    border: 1px solid rgba(234, 223, 213, .95);
    border-radius: 34px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 22px 55px rgba(91,31,46,.08);
    padding: clamp(24px, 4vw, 46px);
    overflow: hidden;
    position: relative;
}

.home-community-card::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -70px;
    top: -70px;
    border-radius: 999px;
    background: rgba(91,31,46,.08);
    pointer-events: none;
}

.home-community-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.community-mini-grid {
    display: grid;
    gap: 14px;
}

.community-mini-item {
    display: grid;
    grid-template-columns: 54px 1fr 20px;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 12px 28px rgba(91,31,46,.05);
}

.community-mini-item:hover {
    transform: translateY(-3px);
    color: var(--primary-color);
    box-shadow: 0 18px 38px rgba(91,31,46,.1);
}

.community-mini-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-beige);
    color: var(--primary-color);
    font-size: 1.35rem;
}

.community-mini-item strong {
    display: block;
    font-size: .98rem;
    margin-bottom: 2px;
}

.community-mini-item small {
    display: block;
    color: var(--text-muted);
}

@media (max-width: 575.98px) {
    .home-community-card {
        border-radius: 24px;
        padding: 22px;
    }

    .home-community-actions .btn {
        width: 100%;
    }

    .community-mini-item {
        grid-template-columns: 46px 1fr 16px;
        padding: 13px;
        border-radius: 18px;
    }

    .community-mini-icon {
        width: 46px;
        height: 46px;
        border-radius: 15px;
        font-size: 1.15rem;
    }
}





/* Tiệm Nhà Bông refined color system - direct palette usage */
html,
body {
    background: #F8F6F1 !important;
    color: #2E171C !important;
}

body {
    background:
        radial-gradient(circle at 8% 4%, rgba(201, 167, 106, .10), transparent 26%),
        linear-gradient(180deg, #F8F6F1 0%, #FFFFFF 42%, #F8F6F1 100%) !important;
}

h1, h2, h3, h4, h5, h6,
.font-title,
.brand-logo,
.product-title a {
    color: #2E171C !important;
}

p,
.text-muted,
.footer-text,
.product-card small,
.community-mini-item small {
    color: #7B6668 !important;
}

.main-header {
    background: rgba(248, 246, 241, .92) !important;
    border-bottom: 1px solid #E4D7C4 !important;
    box-shadow: 0 8px 26px rgba(46, 23, 28, .05);
}

.top-announcement {
    background: #7A2638 !important;
    color: #F8F6F1 !important;
}

.brand-logo span {
    color: #7A2638 !important;
}

.brand-logo small,
.section-kicker,
.hero-kicker,
.product-badge {
    color: #C9A76A !important;
}

.nav-link,
.icon-action,
.mobile-menu-btn,
.lang-btn,
.order-track-link,
.user-chip,
.dropdown-item {
    color: #7A2638 !important;
}

.desktop-nav .nav-link.active,
.desktop-nav .nav-link:hover,
.mobile-menu-panel > a.active,
.mobile-menu-panel > a:hover {
    background: #F5F1E8 !important;
    color: #5F1D2B !important;
}

.icon-action,
.mobile-menu-btn,
.lang-btn,
.order-track-link,
.search-pill,
.mobile-menu-panel,
.shop-dropdown,
.product-card,
.category-card,
.home-community-card,
.intro-video-frame,
.showroom-3d-frame,
.cart-drawer,
.promo-popup-card,
.chatbot-window,
.form-control,
.form-select {
    border-color: #E4D7C4 !important;
}

.icon-action,
.mobile-menu-btn,
.lang-btn,
.order-track-link,
.search-pill,
.mobile-menu-panel,
.shop-dropdown,
.product-card,
.category-card,
.home-community-card,
.promo-popup-card,
.chatbot-window,
.cart-drawer {
    background: #FFFFFF !important;
}

.icon-action:hover,
.mobile-menu-btn:hover,
.lang-btn:hover,
.lang-btn[aria-expanded="true"],
.order-track-link:hover,
.order-track-link.active {
    background: #7A2638 !important;
    border-color: #7A2638 !important;
    color: #FFFFFF !important;
}

.btn-black,
.quick-cart-submit,
.promo-popup-cta {
    background: #7A2638 !important;
    border-color: #7A2638 !important;
    color: #FFFFFF !important;
}

.btn-black:hover,
.quick-cart-submit:hover,
.promo-popup-cta:hover {
    background: #5F1D2B !important;
    border-color: #5F1D2B !important;
    color: #FFFFFF !important;
}

.btn-outline-black,
.promo-popup-snooze {
    background: transparent !important;
    border-color: #7A2638 !important;
    color: #7A2638 !important;
}

.btn-outline-black:hover,
.promo-popup-snooze:hover {
    background: #7A2638 !important;
    color: #FFFFFF !important;
}

.hero-section,
.hero-slider-section,
.home-3d-showroom-section,
.home-community-section {
    background:
        radial-gradient(circle at 14% 18%, rgba(201, 167, 106, .17), transparent 30%),
        linear-gradient(135deg, #F8F6F1 0%, #FFFFFF 52%, #F5F1E8 100%) !important;
}

.hero-title {
    color: #2E171C !important;
}

.hero-description {
    color: #7B6668 !important;
}

.hero-image-frame,
.showroom-3d-frame,
.intro-video-frame {
    border: 1px solid #E4D7C4 !important;
    background: #FFFFFF !important;
    box-shadow: 0 24px 55px rgba(46, 23, 28, .10) !important;
}

.product-card,
.category-card {
    box-shadow: 0 14px 32px rgba(46, 23, 28, .07) !important;
}

.product-card:hover,
.category-card:hover,
.community-mini-item:hover {
    box-shadow: 0 22px 44px rgba(46, 23, 28, .12) !important;
}

.product-badge {
    background: #7A2638 !important;
    color: #FFFFFF !important;
}

.price-new {
    color: #7A2638 !important;
}

.price-old {
    color: #7B6668 !important;
}

.community-mini-icon,
.promo-popup-badge,
.chatbot-avatar {
    background: #F5F1E8 !important;
    color: #7A2638 !important;
}

.community-mini-item {
    background: #FFFFFF !important;
    border-color: #E4D7C4 !important;
    color: #2E171C !important;
}

.chatbot-header {
    background: linear-gradient(135deg, #7A2638, #5F1D2B) !important;
}

.chatbot-message.bot {
    background: #FFFFFF !important;
    color: #2E171C !important;
    border-color: #E4D7C4 !important;
}

.chatbot-message.user {
    background: #7A2638 !important;
    color: #FFFFFF !important;
}

.chatbot-btn-suggest {
    background: #F5F1E8 !important;
    border-color: #E4D7C4 !important;
    color: #7A2638 !important;
}

.chatbot-btn-suggest:hover {
    background: #7A2638 !important;
    color: #FFFFFF !important;
}

.site-footer {
    background: linear-gradient(135deg, #2E171C, #5F1D2B) !important;
}

.site-footer h6,
.footer-brand {
    color: #FFFFFF !important;
}

.site-footer a,
.site-footer p,
.site-footer span {
    color: rgba(248, 246, 241, .78) !important;
}

.site-footer a:hover {
    color: #C9A76A !important;
}

.footer-socials a {
    border-color: rgba(228, 215, 196, .25) !important;
}

.promo-popup-overlay {
    background: rgba(46, 23, 28, .58) !important;
}

.promo-popup-card {
    background:
        radial-gradient(circle at 12% 8%, rgba(201, 167, 106, .18), transparent 26%),
        #FFFFFF !important;
}

.showroom-3d-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 420px;
    overflow: hidden;
    border-radius: 34px;
}

.showroom-3d-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 767.98px) {
    .showroom-3d-frame {
        min-height: 320px;
        border-radius: 24px;
    }
}


/* Fix product dropdown button on header */
.product-nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

.product-nav-btn {
    border: 0 !important;
    outline: 0 !important;
    background: transparent;
    cursor: pointer;
    margin: 0;
    font-family: inherit;
}

.desktop-nav .product-nav-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    max-width: none !important;
    min-width: 104px;
    padding: .52rem .72rem !important;
    border-radius: 999px;
    color: #7A2638 !important;
    white-space: nowrap;
    line-height: 1;
}

.desktop-nav .product-nav-btn span {
    display: inline-block;
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-nav .product-nav-btn::after {
    display: inline-block !important;
    margin-left: 2px;
    vertical-align: middle;
    border-top-color: currentColor;
}

.desktop-nav .product-nav-btn:hover,
.desktop-nav .product-nav-btn.active,
.desktop-nav .product-nav-btn[aria-expanded="true"] {
    background: #F5F1E8 !important;
    color: #5F1D2B !important;
}

.product-nav-dropdown .shop-dropdown {
    min-width: 240px;
    border-radius: 18px;
    padding: 8px;
}

.product-nav-dropdown .dropdown-item {
    border-radius: 12px;
    padding: 10px 12px;
    white-space: normal;
    line-height: 1.35;
}

.product-nav-dropdown .dropdown-item:hover,
.product-nav-dropdown .dropdown-item.active {
    background: #F5F1E8 !important;
    color: #5F1D2B !important;
}

@media (max-width: 1399.98px) {
    .product-nav-dropdown {
        display: none !important;
    }
}


/* Restore old Product dropdown behavior + fix layout */
.product-nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

.desktop-nav .product-nav-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    min-width: 104px;
    max-width: 128px !important;
    padding: .52rem .72rem !important;
    border-radius: 999px;
    color: #7A2638 !important;
    white-space: nowrap;
    line-height: 1;
    text-decoration: none !important;
}

.desktop-nav .product-nav-link span {
    display: inline-block;
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-nav .product-nav-link::after {
    display: inline-block !important;
    margin-left: 2px;
    vertical-align: middle;
    border-top-color: currentColor;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
}

.desktop-nav .product-nav-link:hover,
.desktop-nav .product-nav-link.active,
.desktop-nav .product-nav-link[aria-expanded="true"] {
    background: #F5F1E8 !important;
    color: #5F1D2B !important;
}

.product-nav-dropdown .shop-dropdown {
    min-width: 245px;
    border-radius: 18px;
    padding: 8px;
    border: 1px solid #E4D7C4 !important;
    box-shadow: 0 18px 44px rgba(46, 23, 28, .12);
}

.product-nav-dropdown .dropdown-item {
    border-radius: 12px;
    padding: 10px 12px;
    white-space: normal;
    line-height: 1.35;
    color: #7A2638 !important;
}

.product-nav-dropdown .dropdown-item:hover,
.product-nav-dropdown .dropdown-item.active {
    background: #F5F1E8 !important;
    color: #5F1D2B !important;
}

/* Make sure the old button class does not affect product dropdown after restoring old code */
.product-nav-btn {
    display: none !important;
}

@media (max-width: 1399.98px) {
    .product-nav-dropdown {
        display: none !important;
    }
}


/* DEFINITIVE FIX: Product dropdown clickable */
.product-nav-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    overflow: visible !important;
    z-index: 30;
}

.desktop-nav {
    overflow: visible !important;
}

.desktop-nav .product-nav-toggle {
    appearance: none;
    -webkit-appearance: none;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    cursor: pointer !important;
    font-family: inherit;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 38px !important;
    min-width: 104px !important;
    max-width: 130px !important;
    padding: .52rem .72rem !important;
    border-radius: 999px !important;
    color: #7A2638 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    text-decoration: none !important;
    position: relative !important;
    z-index: 31;
}

.desktop-nav .product-nav-toggle span {
    display: inline-block !important;
    max-width: 82px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    pointer-events: none;
}

.desktop-nav .product-nav-toggle i {
    pointer-events: none;
}

/* Override old .nav-link::after underline so Bootstrap caret can work */
.desktop-nav .product-nav-toggle.dropdown-toggle::after {
    content: "" !important;
    display: inline-block !important;
    position: static !important;
    width: 0 !important;
    height: 0 !important;
    margin-left: 2px !important;
    vertical-align: middle !important;
    background: transparent !important;
    border-top: .32em solid currentColor !important;
    border-right: .32em solid transparent !important;
    border-bottom: 0 !important;
    border-left: .32em solid transparent !important;
    transform: none !important;
}

.desktop-nav .product-nav-toggle:hover,
.desktop-nav .product-nav-toggle.active,
.desktop-nav .product-nav-toggle[aria-expanded="true"] {
    background: #F5F1E8 !important;
    color: #5F1D2B !important;
}

.product-nav-dropdown .dropdown-menu,
.product-nav-dropdown .shop-dropdown {
    min-width: 245px !important;
    border-radius: 18px !important;
    padding: 8px !important;
    border: 1px solid #E4D7C4 !important;
    box-shadow: 0 18px 44px rgba(46, 23, 28, .14) !important;
    z-index: 2000 !important;
    overflow: visible !important;
}

.product-nav-dropdown .dropdown-menu.show {
    display: block !important;
}

.product-nav-dropdown .dropdown-item {
    border-radius: 12px !important;
    padding: 10px 12px !important;
    white-space: normal !important;
    line-height: 1.35 !important;
    color: #7A2638 !important;
}

.product-nav-dropdown .dropdown-item:hover,
.product-nav-dropdown .dropdown-item.active {
    background: #F5F1E8 !important;
    color: #5F1D2B !important;
}

.product-nav-btn,
.product-nav-link {
    display: none !important;
}

@media (max-width: 1399.98px) {
    .desktop-nav .product-nav-dropdown {
        display: none !important;
    }
}


/* TRIỆT ĐỂ: Products dropdown native, không phụ thuộc Bootstrap */
.native-product-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    overflow: visible !important;
    z-index: 5000 !important;
}

.desktop-nav {
    overflow: visible !important;
}

.native-product-dropdown summary {
    list-style: none !important;
}

.native-product-dropdown summary::-webkit-details-marker {
    display: none !important;
}

.desktop-nav .product-nav-summary {
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
    user-select: none !important;
    font-family: inherit;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 38px !important;
    min-width: 104px !important;
    max-width: 132px !important;
    padding: .52rem .72rem !important;
    border-radius: 999px !important;
    color: #7A2638 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    text-decoration: none !important;
    position: relative !important;
    z-index: 5001 !important;
}

.desktop-nav .product-nav-summary span {
    display: inline-block !important;
    max-width: 82px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

.desktop-nav .product-nav-summary i {
    pointer-events: none !important;
}

/* Mũi tên native riêng, không dùng Bootstrap ::after để tránh conflict */
.desktop-nav .product-nav-summary::after {
    content: "" !important;
    display: inline-block !important;
    position: static !important;
    width: 0 !important;
    height: 0 !important;
    margin-left: 2px !important;
    background: transparent !important;
    border-top: .34em solid currentColor !important;
    border-right: .34em solid transparent !important;
    border-left: .34em solid transparent !important;
    border-bottom: 0 !important;
    transform: none !important;
    transition: transform .18s ease !important;
}

.native-product-dropdown[open] .product-nav-summary::after {
    transform: rotate(180deg) !important;
}

.native-product-dropdown.active .product-nav-summary,
.native-product-dropdown[open] .product-nav-summary,
.desktop-nav .product-nav-summary:hover {
    background: #F5F1E8 !important;
    color: #5F1D2B !important;
}

.product-nav-menu {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    min-width: 258px !important;
    display: none !important;
    padding: 8px !important;
    border-radius: 18px !important;
    border: 1px solid #E4D7C4 !important;
    background: #FFFFFF !important;
    box-shadow: 0 20px 46px rgba(46, 23, 28, .16) !important;
    z-index: 6000 !important;
}

.native-product-dropdown[open] .product-nav-menu {
    display: block !important;
}

.product-nav-menu::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 28px;
    width: 14px;
    height: 14px;
    background: #FFFFFF;
    border-left: 1px solid #E4D7C4;
    border-top: 1px solid #E4D7C4;
    transform: rotate(45deg);
}

.product-nav-menu-item {
    position: relative;
    z-index: 1;
    display: block !important;
    width: 100% !important;
    padding: 11px 12px !important;
    border-radius: 12px !important;
    color: #7A2638 !important;
    text-decoration: none !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    font-weight: 700;
}

.product-nav-menu-item:hover,
.product-nav-menu-item:focus {
    background: #F5F1E8 !important;
    color: #5F1D2B !important;
}

.product-nav-menu hr {
    margin: 6px 4px !important;
    border-color: #E4D7C4 !important;
    opacity: 1;
}

/* Tắt hoàn toàn các class dropdown cũ của phần items để không đè native dropdown */
.product-nav-toggle,
.product-nav-btn,
.product-nav-link,
.product-nav-dropdown .dropdown-menu,
.product-nav-dropdown .shop-dropdown {
    pointer-events: auto;
}

/* Desktop vừa trở xuống dùng menu mobile như cũ */
@media (max-width: 1399.98px) {
    .desktop-nav .native-product-dropdown {
        display: none !important;
    }
}


/* Brand logo image */
.brand-logo-with-image {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    text-decoration: none;
}

.brand-logo-img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: contain;
    background: #fff8d7;
    box-shadow: 0 8px 24px rgba(46, 23, 28, 0.12);
}

.brand-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-logo-text strong {
    font-size: 1.08rem;
    color: var(--primary, #7A2638);
    font-weight: 900;
    white-space: nowrap;
}

.brand-logo-text small {
    font-size: 0.72rem;
    color: var(--text-muted, #7B6668);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.footer-brand-logo img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: contain;
    background: #fff8d7;
}

.footer-brand-logo span {
    font-weight: 900;
    color: inherit;
}

@media (max-width: 575.98px) {
    .brand-logo-img {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .brand-logo-text strong {
        font-size: 0.95rem;
    }

    .brand-logo-text small {
        display: none;
    }
}


/* Final header brand fix: prevent Tiệm Nhà Bông text from being clipped */
.main-header .header-main-row {
    min-height: 64px;
}

.main-header .brand-logo.brand-logo-with-image {
    width: auto !important;
    min-width: 230px !important;
    max-width: none !important;
    height: 64px;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
    color: var(--primary, #7A2638) !important;
}

.main-header .brand-logo.brand-logo-with-image .brand-logo-img {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    border-radius: 16px !important;
    object-fit: contain !important;
    background: #fff8d7 !important;
    box-shadow: 0 8px 22px rgba(46, 23, 28, 0.12) !important;
}

.main-header .brand-logo.brand-logo-with-image .brand-logo-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    overflow: visible !important;
    line-height: 1.05 !important;
}

.main-header .brand-logo.brand-logo-with-image .brand-logo-text strong {
    display: block !important;
    font-family: var(--font-heading, inherit) !important;
    font-size: clamp(1.12rem, 1.7vw, 1.42rem) !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    letter-spacing: 0.055em !important;
    color: var(--primary, #7A2638) !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.main-header .brand-logo.brand-logo-with-image .brand-logo-text small {
    display: block !important;
    margin-top: 5px !important;
    max-width: none !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0.22em !important;
    color: var(--gold-soft, #C9A76A) !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

@media (max-width: 1399.98px) {
    .main-header .brand-logo.brand-logo-with-image {
        min-width: 215px !important;
    }
}

@media (max-width: 767.98px) {
    .main-header .header-main-row {
        min-height: 58px;
    }

    .main-header .brand-logo.brand-logo-with-image {
        min-width: 178px !important;
        height: 56px !important;
        gap: 9px !important;
    }

    .main-header .brand-logo.brand-logo-with-image .brand-logo-img {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        border-radius: 14px !important;
    }

    .main-header .brand-logo.brand-logo-with-image .brand-logo-text strong {
        font-size: 1rem !important;
        letter-spacing: 0.04em !important;
    }

    .main-header .brand-logo.brand-logo-with-image .brand-logo-text small {
        font-size: 0.58rem !important;
        letter-spacing: 0.14em !important;
    }
}

@media (max-width: 390px) {
    .main-header .brand-logo.brand-logo-with-image {
        min-width: 146px !important;
        gap: 7px !important;
    }

    .main-header .brand-logo.brand-logo-with-image .brand-logo-img {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
    }

    .main-header .brand-logo.brand-logo-with-image .brand-logo-text strong {
        font-size: 0.88rem !important;
        letter-spacing: 0.02em !important;
    }

    .main-header .brand-logo.brand-logo-with-image .brand-logo-text small {
        display: none !important;
    }
}


/* Featured categories use real product images */
.category-card-real {
    height: 100%;
    min-height: 268px;
    padding: 20px 14px 18px;
    border: 1px solid var(--border-soft, #E4D7C4);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(46, 23, 28, 0.08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.category-card-real:hover {
    transform: translateY(-5px);
    border-color: rgba(122, 38, 56, 0.28);
    box-shadow: 0 24px 54px rgba(46, 23, 28, 0.13);
}

.category-card-real .category-image-wrapper {
    width: 124px;
    height: 154px;
    margin: 0 auto 16px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-soft, #F5F1E8);
}

.category-card-real .category-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .28s ease;
}

.category-card-real:hover .category-image-wrapper img {
    transform: scale(1.055);
}

.category-card-real .category-name {
    min-height: 42px;
    margin: 0 auto;
    font-size: .86rem !important;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: .045em !important;
    text-transform: uppercase;
    color: var(--text-main, #2E171C) !important;
}

.category-card-real .category-count {
    margin-top: 6px;
    font-size: .74rem;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .category-card-real {
        min-height: 236px;
        padding: 16px 10px 14px;
        border-radius: 22px;
    }

    .category-card-real .category-image-wrapper {
        width: 106px;
        height: 132px;
        border-radius: 20px;
    }

    .category-card-real .category-name {
        min-height: 38px;
        font-size: .78rem !important;
    }
}
