/* ═══════════ RESET & BASE ═══════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

#pdp-view {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #F5F5F5;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
button,
input,
select,
textarea {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

ul {
    list-style: none;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ═══════════ TOP BAR ═══════════ */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.top-bar {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    color: #555;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
}

.top-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.top-link {
    cursor: pointer;
    transition: color 0.15s;
}

.top-link:hover {
    color: #EE2D36;
}

.top-sep {
    color: #ddd;
    margin: 0 10px;
}

/* ═══════════ HEADER ═══════════ */
.header {
    background: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 56px;
    padding: 6px 0;
    overflow: visible;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    overflow: visible;
}

.logo-icon {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.logo:hover .logo-icon {
    transform: rotate(-10deg) scale(1.1);
}

.logo-text {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    overflow: visible;
}

.logo-bibo {
    color: #EE2D36;
}

.logo-dot {
    color: #ff6b35;
    font-size: 30px;
    line-height: 0.8;
}

.logo-mark {
    color: #333;
}

/* Search */
.search-wrap {
    flex: 1;
}

.search-bar {
    display: flex;
    border: 2px solid #EE2D36;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.search-bar:focus-within {
    box-shadow: 0 0 0 3px rgba(238, 45, 54, 0.15);
}

.search-field {
    flex: 1;
    padding: 9px 14px;
    font-size: 14px;
    font-family: inherit;
    border: none;
    outline: none;
    color: #333;
    background: #fff;
}

.search-field::placeholder {
    color: #aaa;
}

.search-btn {
    background: #EE2D36;
    border: none;
    padding: 0 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #c0000a;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    color: #444;
    transition: color 0.15s;
    text-decoration: none;
}

.action-item:hover {
    color: #EE2D36;
}

.action-icon {
    position: relative;
}

.action-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #EE2D36;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-label {
    font-size: 11px;
    white-space: nowrap;
}

/* User Dropdown */
.user-menu-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -10px;
    width: 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    text-align: left;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

.user-dropdown::after {
    content: '';
    position: absolute;
    top: -30px;
    left: -20px;
    right: -20px;
    height: 30px;
    background: transparent;
}

.user-menu-container:hover .user-dropdown.logged-in {
    display: flex;
}

.ud-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.ud-bixu {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.ud-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.ud-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.ud-list li a:hover {
    background: #f9f9f9;
    color: #EE2D36;
}

.ud-logout a {
    color: #555;
}

.ud-logout {
    border-top: 1px solid #eee;
    margin-top: 4px;
    padding-top: 4px;
}

/* ═══════════ NAVIGATION ═══════════ */
.main-nav {
    background: #fff;
    border-top: 1px solid #f5f5f5;
    border-bottom: 2px solid #EE2D36;
}

.nav-inner {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
}

.nav-inner::-webkit-scrollbar {
    display: none;
}

.nav-link {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.nav-link:hover,
.nav-link.active {
    color: #EE2D36;
    border-bottom-color: #EE2D36;
}

/* ═══════════ HERO SECTION ═══════════ */
.hero-section {
    background: #f5f5f5;
    padding: 16px 0;
}

.hero-inner {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

/* Slider */
.hero-slider {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 320px;
    min-height: unset;
    max-height: 320px;
    background: #eee;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: all;
}

.slide-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 48px;
    gap: 20px;
}

.slide-text {
    color: #fff;
    flex: 1;
}

.slide-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.slide-text h2 {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.slide-promo {
    display: flex;
    gap: 16px;
    align-items: center;
}

.promo-voucher,
.promo-ship {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

.promo-voucher strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
}

.slide-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
}

.slide-cta {
    display: inline-block;
    background: #fff;
    color: #EE2D36;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 14px;
    margin-top: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slide-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.slide-visual {
    font-size: 80px;
    flex-shrink: 0;
    text-align: center;
}

.phone-mockup {
    font-size: 72px;
}

.qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.qr-inner {
    width: 70px;
    height: 70px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    color: #333;
    text-align: center;
    line-height: 1.2;
}

.qr-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 10px;
    text-align: center;
    font-weight: 600;
}

/* Slider controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    line-height: 1;
}

.slider-prev {
    left: 12px;
}

.slider-next {
    right: 12px;
}

.slider-btn:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* Side Banners */
.hero-side {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-banner {
    position: relative;
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #EE2D36, #c0000a);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    cursor: pointer;
}

.side-banner:hover {
    transform: scale(1.02);
}

.side-banner-content {
    padding: 20px;
    text-align: center;
    color: #fff;
}

.side-banner-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.side-banner-title {
    font-size: 17px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
}

.side-banner-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.side-banner-btn {
    background: #fff;
    color: #EE2D36;
    font-weight: 700;
    font-size: 12px;
    padding: 7px 20px;
    border-radius: 4px;
    border: 2px solid #EE2D36;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    letter-spacing: 0.5px;
}

.side-banner-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.full-img-btn-1 {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #333 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s !important;
    z-index: 10;
}

.full-img-btn-1:hover {
    background: #111 !important;
}

.full-img-btn-2 {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #333 !important;
    padding: 10px 24px !important;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s !important;
    z-index: 10;
}

.full-img-btn-2:hover {
    background: #111 !important;
    color: #fff !important;
}

/* ═══════════ UTILITY SECTION ═══════════ */
.utility-section {
    background: #fff;
    padding: 20px 0;
    margin-bottom: 12px;
}

.utility-grid {
    display: flex;
    justify-content: space-around;
}

.utility-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 500;
}

.utility-item:hover {
    transform: translateY(-3px);
    color: #EE2D36;
}

.utility-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #FFF0F0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.utility-item:hover .utility-icon {
    background: #FFDADA;
}

/* ═══════════ PRODUCT SECTIONS ═══════════ */
.product-section {
    background: #fff;
    margin-bottom: 12px;
    padding: 20px 0 24px;
}

.gift-section {
    margin-top: 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    position: relative;
    padding-left: 12px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #EE2D36;
    border-radius: 2px;
}

.section-more {
    font-size: 13px;
    color: #EE2D36;
    font-weight: 500;
    transition: opacity 0.15s;
}

.section-more:hover {
    opacity: 0.8;
}

/* Category Mobile Layout */
.mobile-category-ui {
    display: block;
    margin-bottom: 20px;
}

.cat-breadcrumb {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.cat-mobile-sidebar {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}

.cat-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f9f9f9;
    cursor: pointer;
    color: #333;
}

.cat-dropdown-toggle.open #cat-toggle-icon {
    transform: rotate(180deg);
}

.cat-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    background: #fff;
}

.cat-mobile-list.open {
    display: block;
}

.cat-mobile-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    color: #444;
    cursor: pointer;
}

.cat-mobile-item:hover {
    background: #fafafa;
}

.cat-mobile-item.active {
    color: #EE2D36;
    font-weight: 600;
}

.cat-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cat-mobile-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.cat-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.cat-sort-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    color: #333;
    outline: none;
}

@media (min-width: 769px) {
    .mobile-category-ui {
        display: none !important;
    }
}

/* Product horizontal scroll (gift section) */
.product-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.product-scroll::-webkit-scrollbar {
    height: 4px;
}

.product-scroll::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}

/* Product Card */
.product-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    width: 190px;
}

.product-grid .product-card {
    width: auto;
}

.product-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.card-badge-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    z-index: 2;
    padding: 6px;
    pointer-events: none;
}

.card-badge {
    background: linear-gradient(135deg, #EE2D36, #c0000a);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.3px;
}

.card-gift-badge {
    background: #ff6b35;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 3px;
}

.wishlist-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 1;
}

.wishlist-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.wishlist-btn svg {
    stroke: #999;
}

.wishlist-btn:hover svg {
    stroke: #EE2D36;
    fill: #EE2D36;
}

.card-img-wrap {
    aspect-ratio: 1/1;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    overflow: hidden;
    position: relative;
}

.card-body {
    padding: 10px 10px 12px;
}

.card-name {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
    margin-bottom: 8px;
}

.card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.card-price {
    font-size: 17px;
    font-weight: 700;
    color: #333;
}

.card-original {
    font-size: 11.5px;
    color: #aaa;
    text-decoration: line-through;
}

.card-discount {
    background: #EE2D36;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 2px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-sold {
    font-size: 11.5px;
    color: #888;
}

.card-rating {
    font-size: 11.5px;
    color: #f5a623;
    font-weight: 600;
}

.card-sold-bar {
    height: 3px;
    background: #f0f0f0;
    border-radius: 2px;
    margin: 6px 0 8px;
    overflow: hidden;
}

.card-sold-fill {
    height: 100%;
    background: linear-gradient(to right, #EE2D36, #ff6b35);
    border-radius: 2px;
}

.card-btn {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    background: #EE2D36;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.card-btn:hover {
    background: #c0000a;
}

.card-btn:active {
    transform: scale(0.97);
}

.icon-buy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.icon-buy-btn:hover {
    transform: scale(1.1);
}

/* ═══════════ FOOTER ═══════════ */
.site-footer {
    background: #fff;
    border-top: 3px solid #EE2D36;
    margin-top: 12px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 32px 16px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 14px;
}

.footer-hotline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: #555;
}

.footer-hotline strong {
    color: #EE2D36;
    font-size: 15px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 13px;
    color: #666;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: #EE2D36;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    transition: all 0.2s;
}

.social-btn:hover {
    border-color: #EE2D36;
    color: #EE2D36;
    background: #fff5f5;
}

.social-btn-fb:hover {
    border-color: #1877F2 !important;
    color: #1877F2 !important;
    background: #f0f7ff !important;
}

.social-btn-zalo:hover {
    border-color: #0068FF !important;
    color: #0068FF !important;
    background: #f0f5ff !important;
}

.footer-bottom {
    background: #f7f7f7;
    border-top: 1px solid #eee;
    padding: 14px 16px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* ═══════════ MODAL ═══════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: #f5f5f5;
    border: none;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.modal-close:hover {
    background: #ffe0e0;
    color: #EE2D36;
}

.modal-header {
    margin-bottom: 18px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.modal-header p {
    font-size: 13px;
    color: #888;
}

.modal-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFF5F5;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #FFD5D5;
}

.modal-product-info .mpi-emoji {
    font-size: 36px;
    flex-shrink: 0;
}

.modal-product-info .mpi-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.modal-product-info .mpi-price {
    font-size: 16px;
    font-weight: 800;
    color: #EE2D36;
    margin-top: 2px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.required {
    color: #EE2D36;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 10px 13px;
    font-size: 14px;
    font-family: inherit;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
    color: #222;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #EE2D36;
    box-shadow: 0 0 0 3px rgba(238, 45, 54, 0.1);
    background: #fff;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #f44336;
}

.field-error {
    display: block;
    font-size: 11.5px;
    color: #f44336;
    margin-top: 4px;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}

.qty-btn {
    width: 36px;
    height: 38px;
    background: #f5f5f5;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    transition: background 0.15s;
    font-family: inherit;
}

.qty-btn:hover {
    background: #ffe0e0;
    color: #EE2D36;
}

#quantity {
    width: 50px;
    height: 38px;
    text-align: center;
    border: none;
    border-left: 1.5px solid #e0e0e0;
    border-right: 1.5px solid #e0e0e0;
    font-size: 15px;
    font-weight: 700;
    background: #fff;
    color: #222;
    outline: none;
}

.form-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #888;
    background: #FFF8F0;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.btn-submit {
    width: 100%;
    padding: 13px;
    background: #EE2D36;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.btn-submit:hover {
    background: #c0000a;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ═══════════ TOAST ═══════════ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    background: #fff;
    border-radius: 10px;
    padding: 14px 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 4px solid #4CAF50;
    min-width: 280px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 22px;
}

.toast-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.toast-msg {
    font-size: 12.5px;
    color: #666;
    margin-top: 2px;
}

/* ═══════════ FAB ADMIN ═══════════ */
.fab-admin {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.45);
    transition: all 0.2s;
}

.fab-admin:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.55);
}

/* ═══════════ SCROLLBAR ═══════════ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #EE2D36;
}

/* ═══════════ MOBILE BOTTOM NAV (hidden by default) ═══════════ */
.mobile-bottom-nav {
    display: none;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 992px) {
    .hero-side {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    /* Header */
    .sticky-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .top-bar {
        display: none;
    }

    .header-inner {
        gap: 8px;
        min-height: unset;
        padding: 8px 12px;
        flex-wrap: nowrap;
        align-items: center;
    }

    /* Logo compact trên mobile */
    .logo {
        flex-shrink: 0;
        flex: 0 0 auto;
        max-width: 120px;
        overflow: hidden;
    }

    .logo-icon img,
    .logo-icon canvas,
    .logo-icon>* {
        max-height: 36px !important;
        max-width: 100px !important;
        width: auto !important;
        height: auto !important;
    }

    .logo-text {
        font-size: 17px !important;
    }

    .logo-dot {
        font-size: 20px !important;
    }

    /* Search bar chiếm phần còn lại */
    .search-wrap {
        order: unset;
        width: auto;
        flex: 1;
        margin-top: 0;
    }

    .search-field {
        font-size: 13px;
        padding: 7px 10px;
    }

    .search-btn {
        padding: 0 12px;
    }

    /* Actions */
    .header-actions {
        flex-shrink: 0;
        gap: 10px !important;
    }

    .action-label {
        display: none;
    }

    .header-action-group>div:nth-child(2),
    .header-action-group>div:nth-child(3) {
        display: none !important;
    }

    .hide-mobile {
        display: none !important;
    }

    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .utility-grid {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
    }

    .utility-grid::-webkit-scrollbar {
        display: none;
    }

    .utility-item {
        flex-shrink: 0;
        width: 70px;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;
        z-index: 9999;
        padding: 8px 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        justify-content: space-around;
        padding-bottom: env(safe-area-inset-bottom, 8px);
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: #666;
        text-decoration: none;
        font-size: 11px;
        font-weight: 500;
        flex: 1;
    }

    .bottom-nav-item.active {
        color: #EE2D36;
    }

    .bottom-nav-item svg {
        stroke: currentColor;
    }

    body {
        padding-bottom: 60px;
    }

    /* ── Hero / Slider mobile ── */
    .hero-section {
        padding: 0;
    }

    .hero-inner {
        flex-direction: column;
        gap: 0;
    }

    .hero-slider {
        height: 220px !important;
        max-height: 220px !important;
        border-radius: 0 !important;
        width: 100%;
    }

    .slide-content {
        padding: 20px 20px;
    }

    .slide-text h2 {
        font-size: 22px !important;
        margin-bottom: 8px;
    }

    .slide-tag {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .slide-visual {
        display: none;
    }

    .slide-cta {
        padding: 8px 18px;
        font-size: 13px;
        margin-top: 10px;
    }

    .hero-side {
        display: none !important;
    }

    .slide-promo {
        gap: 8px;
    }

    .promo-voucher,
    .promo-ship {
        padding: 6px 10px;
        font-size: 11px;
    }

    /* ── Product grid mobile ── */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }

    .product-grid .product-card {
        width: auto !important;
    }

    .product-scroll {
        flex-wrap: nowrap !important;
    }

    .product-scroll .product-card {
        width: 150px !important;
        min-width: 150px !important;
        max-width: 150px !important;
        flex-shrink: 0;
    }

    .product-scroll .card-img-wrap {
        max-height: 150px;
    }

    .card-img-wrap {
        font-size: 48px;
    }

    .card-body {
        padding: 8px 8px 10px;
    }

    .card-name {
        font-size: 12px;
        min-height: 32px;
    }

    .card-price {
        font-size: 14px;
    }

    /* ── Section header mobile ── */
    .section-title {
        font-size: 15px;
    }

    .product-section {
        padding: 14px 0 16px;
    }
}

/* Address Modal */
.address-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.address-modal.active {
    display: flex;
}

.address-modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.address-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    border: none;
    background: none;
}

.acc-footer-logo img {
    mix-blend-mode: multiply;
}

/* ═══════════ AI-MODERN PRODUCT DETAIL PAGE (PDP) ═══════════ */
.pdp-container {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 40px;
    margin: 20px auto 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    max-width: 1200px;
    box-sizing: border-box;
}

/* LEFT GALLERY */
.pdp-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.pdp-thumbs {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: #eee transparent;
}

.pdp-thumbs::-webkit-scrollbar {
    height: 3px;
}

.pdp-thumbs::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.pdp-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f9f9f9;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    transition: transform 0.25s ease;
    box-sizing: border-box;
}

.pdp-thumb:hover {
    border-color: #ffb3b8;
    box-shadow: 0 2px 8px rgba(238, 45, 54, 0.15);
}

.pdp-thumb:hover img {
    transform: scale(1.08);
}

.pdp-thumb.active {
    border-color: #EE2D36;
    box-shadow: 0 2px 10px rgba(238, 45, 54, 0.25);
    background: #fff;
}

.pdp-main-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: #f9f9f9;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    max-height: 500px;
}

.pdp-main-img:hover .pdp-main-img-inner {
    transform: scale(1.04);
}

.pdp-main-img-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
    overflow: hidden;
}

.pdp-main-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
}

/* RIGHT INFO */
.pdp-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pdp-title {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.5px;
}

.pdp-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdp-meta span {
    color: #EE2D36;
    font-weight: 600;
}

/* PRICE BOX */
.pdp-price-box {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(145deg, #fff5f5, #ffffff);
    border-radius: 16px;
    border: 1px solid rgba(238, 45, 54, 0.1);
}

.pdp-price {
    font-size: 36px;
    font-weight: 900;
    color: #EE2D36;
    text-shadow: 0 2px 4px rgba(238, 45, 54, 0.1);
}

.pdp-old {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.pdp-discount {
    background: #EE2D36;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(238, 45, 54, 0.3);
}

.pdp-store-price {
    flex-basis: 100%;
    font-size: 15px;
    color: #444;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.pdp-store-price strong {
    color: #111;
    font-size: 18px;
}

/* ACTIONS */
.pdp-action-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.pdp-qty-label {
    font-size: 15px;
    font-weight: 600;
    color: #444;
}

.pdp-qty-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 24px;
    padding: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pdp-qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.pdp-qty-btn:hover {
    background: #eee;
    color: #EE2D36;
}

.pdp-qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: bold;
    color: #111;
    -moz-appearance: textfield;
}

.pdp-qty-input::-webkit-outer-spin-button,
.pdp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    width: 100%;
    background: linear-gradient(135deg, #FF4B53, #EE2D36);
    color: #fff;
    border: none;
    padding: 0 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(238, 45, 54, 0.35);
    letter-spacing: 0.2px;
    flex-shrink: 0;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(238, 45, 54, 0.45);
    background: linear-gradient(135deg, #FF5B63, #FE1D26);
}

.btn-add-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(238, 45, 54, 0.3);
}

.pdp-location {
    font-size: 14px;
    color: #555;
    background: #f9f9f9;
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
    margin-top: 10px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .pdp-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pdp-left {
        flex-direction: column;
    }

    .pdp-thumbs {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .pdp-thumb {
        flex-shrink: 0;
    }

    .pdp-main-img {
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 768px) {
    .pdp-container {
        margin: 0;
        padding: 12px;
        border-radius: 0;
        box-shadow: none;
        gap: 16px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow: hidden;
    }

    .pdp-left {
        gap: 8px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .pdp-main-img {
        width: 100%;
        height: calc(100vw - 24px);
        max-height: calc(100vw - 24px);
        aspect-ratio: unset;
        border-radius: 12px;
        box-sizing: border-box;
        overflow: hidden;
        position: relative;
    }

    .pdp-main-img-inner {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .pdp-main-img img {
        max-width: 90% !important;
        max-height: 90% !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        object-fit: contain !important;
        display: block !important;
    }

    .pdp-thumbs {
        gap: 6px;
        max-width: 100%;
    }

    .pdp-thumb {
        width: 56px;
        height: 56px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .pdp-right {
        gap: 14px;
    }

    .pdp-title {
        font-size: 18px;
        line-height: 1.35;
    }

    .pdp-price {
        font-size: 24px;
    }

    .pdp-old {
        font-size: 15px;
    }

    .pdp-price-box {
        padding: 14px 16px;
        border-radius: 12px;
    }

    .pdp-store-price {
        font-size: 13px;
    }

    .pdp-action-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .pdp-qty-box {
        align-self: flex-start;
    }

    .btn-add-cart {
        height: 48px;
        font-size: 15px;
        border-radius: 10px;
    }

    .pdp-location {
        padding: 12px;
        font-size: 13px;
    }

    .breadcrumb {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ═══════════ ORDER SUCCESS POPUP ═══════════ */
.success-icon-wrap {
    margin-bottom: 20px;
    animation: successBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 24px;
    font-weight: 800;
    color: #222;
    margin: 0 0 6px;
}

.success-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px;
}

.success-order-code {
    display: inline-block;
    background: linear-gradient(135deg, #EE2D36, #ff6b35);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    padding: 8px 24px;
    border-radius: 24px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(238, 45, 54, 0.25);
}

.success-summary {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: left;
    border: 1px solid #eee;
}

.success-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13.5px;
}

.success-summary-row:last-child {
    border-bottom: none;
}

.success-summary-label {
    color: #888;
    font-weight: 500;
}

.success-summary-value {
    color: #333;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

.success-summary-row.total .success-summary-label {
    color: #222;
    font-weight: 700;
    font-size: 15px;
}

.success-summary-row.total .success-summary-value {
    color: #EE2D36;
    font-weight: 800;
    font-size: 17px;
}

.success-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12.5px;
    color: #888;
    margin-bottom: 20px;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-success-continue {
    width: 100%;
    padding: 14px;
    background: #EE2D36;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.btn-success-continue:hover {
    background: #c0000a;
}

.btn-success-orders {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #666;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.btn-success-orders:hover {
    border-color: #EE2D36;
    color: #EE2D36;
}

/* ═══════════ ORDER CONFIRM MODAL ═══════════ */
.confirm-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.confirm-summary {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13.5px;
}

.confirm-row:last-child {
    border-bottom: none;
}

.confirm-row-label {
    color: #888;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 90px;
}

.confirm-row-value {
    color: #333;
    font-weight: 600;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

.confirm-row.total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 2px solid #eee;
}

.confirm-row.total .confirm-row-label {
    color: #222;
    font-weight: 700;
    font-size: 15px;
}

.confirm-row.total .confirm-row-value {
    color: #EE2D36;
    font-weight: 800;
    font-size: 18px;
}

.confirm-actions-wrap {
    display: flex;
    gap: 10px;
}

.btn-confirm-back {
    flex: 1;
    padding: 13px;
    background: #f5f5f5;
    color: #555;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-confirm-back:hover {
    border-color: #999;
    color: #333;
    background: #eee;
}

.btn-confirm-submit {
    flex: 1.5;
    padding: 13px;
    background: #EE2D36;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.btn-confirm-submit:hover {
    background: #c0000a;
}

.btn-confirm-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ═══════════ SAVED ADDRESS PICKER (Checkout) ═══════════ */
.saved-addr-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.saved-addr-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.saved-addr-option:hover {
    border-color: #ffb3b3;
    background: #fff;
}

.saved-addr-option.selected {
    border-color: #EE2D36;
    background: #FFF5F5;
}

.saved-addr-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.saved-addr-option.selected .saved-addr-radio {
    border-color: #EE2D36;
}

.saved-addr-option.selected .saved-addr-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #EE2D36;
}

.saved-addr-info {
    flex: 1;
    min-width: 0;
}

.saved-addr-info-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
    flex-wrap: wrap;
}

.saved-addr-info-name {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.saved-addr-info-phone {
    font-size: 12px;
    color: #888;
}

.saved-addr-info-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    background: #FFF0F0;
    color: #EE2D36;
    font-weight: 600;
}

.saved-addr-info-text {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.saved-addr-new-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border: 1.5px dashed #ddd;
    border-radius: 8px;
    background: transparent;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    width: 100%;
}

.saved-addr-new-btn:hover {
    border-color: #EE2D36;
    color: #EE2D36;
}

\n

/* =========================================================
   CATEGORY BLOCKS (HOMEPAGE)
========================================================= */
#home-category-blocks {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cat-block-section {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.cat-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 16px;
}

.cat-block-title-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cat-block-title {
    font-size: 18px;
    font-weight: 700;
    color: #666;
    margin: 0;
    text-transform: uppercase;
}

.cat-block-tabs {
    display: flex;
    gap: 16px;
}

.cat-tab {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.cat-tab:hover,
.cat-tab.active {
    color: #EE2D36;
}

.cat-block-more {
    font-size: 13px;
    color: #333;
    text-decoration: none;
}

.cat-block-more:hover {
    color: #EE2D36;
}

.cat-block-body {
    display: flex;
    gap: 16px;
}





@media (max-width: 992px) {


    .cat-block-title-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cat-block-header {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .cat-block-tabs {
        display: none;
    }

}

/* ═══ CAT-BLOCK PAGINATION & FIXED HEIGHT ═══ */
.cat-block-banner {
    width: 220px !important;
    flex-shrink: 0;
    height: 500px;
    overflow: hidden;
}

.cat-block-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    background: #f8f8f8;
}

.cat-block-products-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cat-block-products {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    align-content: start;
}

.cat-pagination-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 4px;
}

.cat-page-btn {
    height: 32px;
    min-width: 32px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.cat-page-btn:hover {
    border-color: #EE2D36;
    color: #EE2D36;
}

.cat-page-btn.active {
    background: #EE2D36;
    border-color: #EE2D36;
    color: #fff;
}

@media (max-width: 992px) {
    .cat-block-banner {
        display: none !important;
    }

    .cat-block-products-wrapper {
        width: 100%;
    }

    .cat-block-products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cat-block-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══ PRODUCT DETAIL - ADD TO CART BUTTON ═══ */
.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #EE2D36 0%, #c0392b 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(238, 45, 54, 0.35);
    letter-spacing: 0.2px;
    margin-top: 16px;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(238, 45, 54, 0.45);
}

.btn-add-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(238, 45, 54, 0.3);
}

.btn-add-cart svg {
    flex-shrink: 0;
}

/* ═══════════ SHOPEE-STYLE BÁN CHẠY CARD ═══════════ */
.bc-card {
    position: relative;
    width: 168px;
    min-width: 168px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.2s, transform 0.2s;
}

.bc-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
    transform: translateY(-3px);
}

/* Ảnh sản phẩm */
.bc-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: #f5f5f5;
    overflow: hidden;
}

.bc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Banner đỏ "BIBO MART - GIAN HÀNG CHÍNH HÃNG" */
.bc-store-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #EE2D36 0%, #c0000a 100%);
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
}

.bc-store-banner .bc-logo-circle {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bc-store-banner .bc-logo-circle svg {
    display: block;
}

.bc-store-banner span {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

/* TOP số badge */
.bc-top-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.bc-top-badge .bc-top-label {
    font-size: 8px;
    font-weight: 900;
    color: #EE2D36;
    background: #fff;
    padding: 1px 3px;
    border-radius: 2px 2px 0 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.bc-top-badge .bc-top-num {
    font-size: 20px;
    font-weight: 900;
    color: #EE2D36;
    background: #fff;
    padding: 0 4px 2px;
    border-radius: 0 0 3px 3px;
    line-height: 1;
    min-width: 28px;
    text-align: center;
}

/* TOP 1 = đỏ */
.bc-card:nth-child(1) .bc-top-badge .bc-top-label,
.bc-card:nth-child(1) .bc-top-badge .bc-top-num {
    color: #EE2D36;
}

/* TOP 2 = cam */
.bc-card:nth-child(2) .bc-top-badge .bc-top-label,
.bc-card:nth-child(2) .bc-top-badge .bc-top-num {
    color: #ff8c00;
}

/* TOP 3 = vàng */
.bc-card:nth-child(3) .bc-top-badge .bc-top-label,
.bc-card:nth-child(3) .bc-top-badge .bc-top-num {
    color: #e6b400;
}

/* TOP 4+ = xám */
.bc-card:nth-child(n+4) .bc-top-badge .bc-top-label,
.bc-card:nth-child(n+4) .bc-top-badge .bc-top-num {
    color: #999;
}

/* Body card */
.bc-card-body {
    padding: 8px 10px 10px;
}

.bc-card-name {
    font-size: 12.5px;
    color: #222;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
    margin-bottom: 6px;
}

.bc-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #EE4D2D;
    margin-bottom: 2px;
}

.bc-card-price-orig {
    font-size: 11px;
    color: #aaa;
    text-decoration: line-through;
    margin-left: 4px;
}

.bc-card-disc {
    display: inline-block;
    background: rgba(238, 77, 45, 0.1);
    color: #EE4D2D;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
    margin-left: 4px;
}

.bc-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 11px;
    color: #888;
}

.bc-card-meta .bc-sold {
    color: #888;
}

.bc-card-meta .bc-rating {
    color: #ff8c00;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .bc-card {
        width: 150px;
        min-width: 150px;
    }

    .bc-card-price {
        font-size: 14px;
    }

    .bc-store-banner span {
        font-size: 8px;
    }
}