/* Giao diện thương mại điện tử đơn giản, dễ đọc và dễ bảo trì. */
:root {
    --pcmao-primary: #e11d48;
    --pcmao-primary-dark: #be123c;
    --pcmao-primary-soft: #fff1f2;
    --pcmao-accent: #16a34a;
    --pcmao-warning: #fb7185;
    --pcmao-dark: #111827;
    --pcmao-muted: #6b7280;
    --pcmao-border: #e5e7eb;
    --pcmao-surface: #f8fafc;
}

body {
    color: var(--pcmao-dark);
    background: var(--pcmao-surface);
}

a {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background-color: var(--pcmao-primary);
    border-color: var(--pcmao-primary);
}

.btn {
    border-radius: 8px;
    font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #ffffff;
    background-color: var(--pcmao-primary-dark);
    border-color: var(--pcmao-primary-dark);
}

.btn-outline-primary {
    color: var(--pcmao-primary);
    border-color: var(--pcmao-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #ffffff;
    background-color: var(--pcmao-primary);
    border-color: var(--pcmao-primary);
}

.btn-outline-secondary {
    color: #4b5563;
    border-color: #d1d5db;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: var(--pcmao-primary);
    background: var(--pcmao-primary-soft);
    border-color: #fecdd3;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.top-bar {
    padding: 7px 0;
    color: #9f1239;
    background: var(--pcmao-primary-soft);
    border-bottom: 1px solid #ffe4e6;
    font-size: 0.875rem;
}

.main-navbar {
    min-height: 76px;
    border-bottom: 1px solid var(--pcmao-border);
}

.main-navbar .container {
    gap: 14px;
}

.navbar-collapse {
    align-items: center;
}

.navbar-toggler {
    border-color: var(--pcmao-border);
    border-radius: 8px;
}

.navbar-toggler:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 0.2rem rgba(225, 29, 72, 0.12);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
}

.brand-logo {
    width: auto;
    height: 46px;
    max-width: 170px;
    object-fit: contain;
}

.search-form {
    flex: 1 1 340px;
    max-width: 560px;
}

.search-form .form-control {
    min-height: 46px;
    border-color: var(--pcmao-border);
    background: #ffffff;
}

.search-form .form-control:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 0.2rem rgba(225, 29, 72, 0.12);
}

.search-form .btn {
    width: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link {
    position: relative;
    padding-right: 0.85rem;
    padding-left: 0.85rem;
    font-weight: 600;
    color: #374151;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--pcmao-primary);
    background: var(--pcmao-primary-soft);
}

.icon {
    width: 20px;
    height: 20px;
}

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--pcmao-dark);
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
    text-decoration: none;
}

.cart-link:hover {
    color: var(--pcmao-primary);
    border-color: #fecdd3;
    background: var(--pcmao-primary-soft);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    color: #ffffff;
    background: var(--pcmao-primary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.home-hero {
    padding: 28px 0 18px;
    background: var(--pcmao-surface);
}

.hero-banner,
.deal-card,
.category-panel,
.benefit-item,
.promo-card,
.product-card {
    border-radius: 8px;
}

.hero-banner {
    padding: 32px;
    border: 1px solid var(--pcmao-border);
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.05);
}

.section-kicker {
    color: var(--pcmao-primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-title {
    max-width: 680px;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.08;
}

.hero-subtitle {
    max-width: 620px;
    color: var(--pcmao-muted);
    font-size: 1.05rem;
}

.cta-button {
    min-width: 132px;
}

.deal-card {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 16px;
    align-items: center;
    padding: 22px;
    border: 1px solid #fecdd3;
    background: var(--pcmao-primary-soft);
}

.deal-card img {
    width: 100%;
    border-radius: 8px;
    background: #ffffff;
}

.deal-label {
    display: inline-flex;
    padding: 5px 10px;
    color: #9f1239;
    background: #ffe4e6;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.deal-price {
    color: var(--pcmao-primary);
    font-size: 1.35rem;
    font-weight: 800;
}

.store-benefits {
    padding: 14px 0 20px;
    background: var(--pcmao-surface);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--pcmao-border);
    background: #ffffff;
    color: #374151;
    font-weight: 600;
}

.benefit-item span:last-child {
    display: grid;
    gap: 2px;
}

.benefit-item small {
    color: var(--pcmao-muted);
    font-weight: 500;
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: var(--pcmao-primary);
    background: var(--pcmao-primary-soft);
    border-radius: 999px;
    font-weight: 900;
}

.store-section {
    padding: 28px 0 56px;
}

.category-panel {
    position: sticky;
    top: 98px;
    padding: 18px;
    border: 1px solid var(--pcmao-border);
    background: #ffffff;
}

.category-list {
    display: grid;
    gap: 10px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    color: var(--pcmao-dark);
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
    text-decoration: none;
}

.category-item:hover {
    color: var(--pcmao-primary);
    border-color: #fecdd3;
    background: var(--pcmao-primary-soft);
}

.category-item strong,
.category-item small {
    display: block;
}

.category-item small {
    margin-top: 3px;
    color: var(--pcmao-muted);
}

.category-item em {
    min-width: 34px;
    padding: 3px 8px;
    color: var(--pcmao-primary);
    background: #ffe4e6;
    border-radius: 999px;
    font-style: normal;
    font-weight: 700;
    text-align: center;
}

.support-box {
    display: grid;
    gap: 4px;
    padding: 14px;
    color: #9f1239;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    background: var(--pcmao-primary-soft);
}

.support-box span {
    color: #9f1239;
    font-size: 0.9rem;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.promo-card {
    display: grid;
    gap: 5px;
    min-height: 96px;
    padding: 18px;
    color: #9f1239;
    border: 1px solid #fecdd3;
    background: var(--pcmao-primary-soft);
    border-radius: 8px;
}

.promo-card span {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.promo-card-soft {
    color: #111827;
    border-color: var(--pcmao-border);
    background: #ffffff;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--pcmao-border);
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #fecdd3;
    box-shadow: 0 14px 28px rgba(225, 29, 72, 0.08);
}

.product-image {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--pcmao-primary-soft);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 1;
    padding: 5px 9px;
    color: #ffffff;
    background: var(--pcmao-primary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.product-meta {
    color: var(--pcmao-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-title {
    min-height: 48px;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.spec-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.spec-list span {
    padding: 4px 8px;
    color: #4b5563;
    background: #f9fafb;
    border: 1px solid #eef2f7;
    border-radius: 999px;
    font-size: 0.78rem;
}

.product-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--pcmao-border);
}

.price {
    color: var(--pcmao-primary);
    font-weight: 700;
}

.old-price {
    color: var(--pcmao-muted);
    font-size: 0.875rem;
    text-decoration: line-through;
}

.stock-status {
    color: var(--pcmao-accent);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.site-footer {
    color: #4b5563;
    border-top: 1px solid var(--pcmao-border);
    background: #ffffff;
}

.footer-text {
    color: #4b5563;
}

.footer-contact {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.footer-title {
    margin-bottom: 14px;
    color: var(--pcmao-dark);
    font-size: 1rem;
    font-weight: 800;
}

.footer-links {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: #4b5563;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--pcmao-primary);
}

.footer-bottom {
    color: var(--pcmao-muted);
    border-top: 1px solid var(--pcmao-border);
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .main-navbar {
        min-height: 66px;
    }

    .brand-logo {
        height: 40px;
        max-width: 150px;
    }

    .search-form {
        max-width: none;
    }

    .navbar-collapse {
        padding-top: 12px;
        border-top: 1px solid var(--pcmao-border);
    }

    .nav-link {
        margin-bottom: 4px;
    }

    .category-panel {
        position: static;
    }

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

@media (max-width: 767.98px) {
    .hero-banner {
        padding: 22px;
    }

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

    .deal-card,
    .promo-grid {
        grid-template-columns: 1fr;
    }

    .deal-card img {
        max-width: 220px;
    }

    .product-actions {
        grid-template-columns: 1fr;
    }
}

/* Header mới theo phong cách ecommerce MAOPC: desktop hai hàng, mobile một hàng gọn. */
.desktop-header {
    padding: 18px 0;
    background: var(--pcmao-surface);
}

.desktop-header-card {
    overflow: hidden;
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.06);
}

.header-main-row {
    display: grid;
    grid-template-columns: 190px minmax(360px, 1fr) auto;
    gap: 24px;
    align-items: center;
    min-height: 88px;
    padding: 14px 20px;
}

.header-main-row .brand-link {
    justify-content: center;
    min-height: 58px;
    padding: 0;
    border-radius: 8px;
    background: transparent;
}

.header-main-row .brand-logo {
    max-width: 185px;
    height: 58px;
    border-radius: 8px;
}

.search-box {
    display: flex;
    min-height: 48px;
    overflow: hidden;
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
}

.search-box:focus-within {
    border-color: #fb7185;
    box-shadow: 0 0 0 0.2rem rgba(225, 29, 72, 0.1);
}

.category-select {
    flex: 0 0 175px;
    color: var(--pcmao-dark);
    border: 0;
    border-right: 1px solid var(--pcmao-border);
    background: #ffffff;
    font-weight: 700;
}

.search-box .form-control {
    min-height: 48px;
    border: 0;
    box-shadow: none;
}

.search-submit {
    flex: 0 0 52px;
    color: #ffffff;
    border: 0;
    background: var(--pcmao-primary);
}

.search-submit:hover,
.search-submit:focus {
    background: var(--pcmao-primary-dark);
}

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

.header-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 18px;
    color: var(--pcmao-dark);
    border-left: 1px solid var(--pcmao-border);
    text-decoration: none;
}

.header-action:hover {
    color: var(--pcmao-primary);
    background: var(--pcmao-primary-soft);
}

.header-action span {
    display: grid;
    line-height: 1.2;
}

.header-action strong {
    font-size: 0.95rem;
}

.header-action small {
    color: var(--pcmao-muted);
    font-size: 0.82rem;
}

.header-admin-state {
    display: inline-flex;
    align-items: center;
}

.header-logout-form {
    display: inline-flex;
    align-items: center;
    min-height: 54px;
    margin: 0;
    padding: 0 14px;
    border-left: 1px solid var(--pcmao-border);
}

.header-logout-button {
    padding: 8px 12px;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    color: var(--pcmao-primary);
    background: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
}

.header-logout-button:hover,
.header-logout-button:focus {
    color: #ffffff;
    background: var(--pcmao-primary);
    border-color: var(--pcmao-primary);
}

.cart-icon-wrap {
    position: relative;
    display: inline-flex;
}

.header-nav-row {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 58px;
    border-top: 1px solid var(--pcmao-border);
}

.category-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    background: var(--pcmao-primary);
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.category-menu-button:hover {
    color: #ffffff;
    background: var(--pcmao-primary-dark);
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.desktop-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    color: var(--pcmao-dark);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--pcmao-primary);
    background: var(--pcmao-primary-soft);
}

.mobile-header {
    padding: 12px 0;
    background: var(--pcmao-surface);
}

.mobile-header-card {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    min-height: 64px;
    overflow: hidden;
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.mobile-brand {
    justify-self: center;
    padding: 0;
    border-radius: 8px;
    background: transparent;
}

.mobile-brand .brand-logo {
    width: auto;
    height: 38px;
    max-width: 128px;
    border-radius: 6px;
}

.mobile-actions {
    display: inline-flex;
    align-items: center;
}

.mobile-icon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 64px;
    color: var(--pcmao-dark);
    border: 0;
    border-left: 1px solid var(--pcmao-border);
    background: #ffffff;
    text-decoration: none;
}

.mobile-header-card > .mobile-icon-button {
    border-left: 0;
    border-right: 1px solid var(--pcmao-border);
}

.mobile-icon-button:hover,
.mobile-icon-button:focus {
    color: var(--pcmao-primary);
    background: var(--pcmao-primary-soft);
}

.icon-lg {
    width: 24px;
    height: 24px;
}

.mobile-search-form {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
}

.mobile-menu-panel {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
}

.mobile-menu-panel a {
    padding: 10px 12px;
    color: var(--pcmao-dark);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.mobile-menu-panel a:hover,
.mobile-menu-panel a.active {
    color: var(--pcmao-primary);
    background: var(--pcmao-primary-soft);
}

.mobile-logout-form {
    margin: 4px 0 0;
}

.mobile-logout-button {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    color: var(--pcmao-primary);
    background: #ffffff;
    font-weight: 800;
    text-align: left;
}

.mobile-logout-button:hover,
.mobile-logout-button:focus {
    color: #ffffff;
    background: var(--pcmao-primary);
    border-color: var(--pcmao-primary);
}

/* Banner slider lớn trên trang chủ. */
.home-banner-section {
    padding: 16px 0 18px;
    background: var(--pcmao-surface);
}

.home-banner-slider {
    overflow: hidden;
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.06);
}

.banner-slide {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    align-items: center;
    gap: 26px;
    min-height: 390px;
    padding: 44px 68px;
    background:
        radial-gradient(circle at 88% 20%, rgba(225, 29, 72, 0.22), transparent 30%),
        linear-gradient(110deg, #ffffff 0%, #fff7f8 54%, #ffe4e6 100%);
}

.banner-title {
    max-width: 620px;
    color: var(--pcmao-dark);
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.12;
    text-transform: uppercase;
}

.banner-subtitle {
    max-width: 560px;
    color: #374151;
    font-size: 1.05rem;
}

.banner-media {
    display: flex;
    justify-content: center;
}

.banner-media img {
    width: min(100%, 420px);
    border-radius: 8px;
    filter: drop-shadow(0 24px 34px rgba(17, 24, 39, 0.14));
}

.home-banner-slider .carousel-indicators {
    bottom: 16px;
    margin-bottom: 0;
}

.home-banner-slider .carousel-indicators [data-bs-target] {
    width: 11px;
    height: 11px;
    margin-right: 6px;
    margin-left: 6px;
    border: 0;
    border-radius: 999px;
    background: #9ca3af;
    opacity: 0.6;
}

.home-banner-slider .carousel-indicators .active {
    background: var(--pcmao-primary);
    opacity: 1;
}

.home-banner-slider .carousel-control-prev,
.home-banner-slider .carousel-control-next {
    width: 48px;
}

.home-banner-slider .carousel-control-prev-icon,
.home-banner-slider .carousel-control-next-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background-color: rgba(17, 24, 39, 0.42);
    background-size: 48%;
}

.category-strip-section {
    padding: 2px 0 18px;
    background: var(--pcmao-surface);
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.category-chip {
    display: grid;
    gap: 4px;
    min-height: 86px;
    padding: 14px;
    color: var(--pcmao-dark);
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
    text-decoration: none;
}

.category-chip:hover {
    color: var(--pcmao-primary);
    border-color: #fecdd3;
    background: var(--pcmao-primary-soft);
    transform: translateY(-2px);
}

.category-chip span {
    color: var(--pcmao-muted);
    font-size: 0.88rem;
}

.empty-state-box {
    padding: 28px;
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
}

/* Trang danh sách và chi tiết sản phẩm. */
.product-page-section,
.product-detail-section {
    padding: 28px 0 56px;
}

.product-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 24px;
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
}

.filter-panel,
.product-list-toolbar,
.product-detail-card,
.detail-panel {
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
}

.filter-panel {
    position: sticky;
    top: 112px;
    padding: 18px;
}

.filter-form .form-control,
.filter-form .form-select {
    border-color: var(--pcmao-border);
}

.filter-form .form-control:focus,
.filter-form .form-select:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 0.2rem rgba(225, 29, 72, 0.1);
}

.category-quick-links {
    display: grid;
    gap: 8px;
}

.category-quick-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    color: var(--pcmao-dark);
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    text-decoration: none;
}

.category-quick-links a:hover,
.category-quick-links a.active {
    color: var(--pcmao-primary);
    border-color: #fecdd3;
    background: var(--pcmao-primary-soft);
}

.category-quick-links em {
    color: var(--pcmao-muted);
    font-style: normal;
    font-weight: 700;
}

.product-list-toolbar {
    margin-bottom: 14px;
    padding: 14px 16px;
    color: #374151;
}

.product-title a {
    color: var(--pcmao-dark);
    text-decoration: none;
}

.product-title a:hover {
    color: var(--pcmao-primary);
}

.product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--pcmao-muted);
    font-size: 0.94rem;
}

.product-breadcrumb a {
    color: var(--pcmao-dark);
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: var(--pcmao-primary);
}

.product-detail-card {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 28px;
    padding: 24px;
}

.product-gallery {
    display: grid;
    gap: 12px;
}

.product-main-image {
    overflow: hidden;
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: var(--pcmao-primary-soft);
}

.product-main-image img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.product-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.product-thumbs img {
    width: 84px;
    height: 64px;
    object-fit: cover;
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
}

.product-detail-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.18;
}

.detail-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 22px 0;
    padding: 18px;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    background: var(--pcmao-primary-soft);
}

.detail-price {
    color: var(--pcmao-primary);
    font-size: 1.8rem;
    font-weight: 900;
}

.detail-stock {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
}

.detail-stock.is-available {
    color: #047857;
    background: #ecfdf5;
}

.detail-stock.is-empty {
    color: #991b1b;
    background: #fee2e2;
}

.detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.product-actions form,
.detail-actions form {
    margin: 0;
}

.detail-service-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    color: #374151;
}

.detail-service-list span {
    padding: 10px 12px;
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
}

.detail-panel {
    padding: 20px;
}

/* Trang giỏ hàng dùng bố cục hai cột trên desktop và thu gọn tự nhiên trên mobile. */
.cart-page-section {
    padding: 28px 0 56px;
}

.cart-page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.cart-items-panel,
.cart-summary {
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
}

.cart-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 180px;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--pcmao-border);
}

.cart-item:last-child {
    border-bottom: 0;
}

.cart-item-image {
    overflow: hidden;
    border-radius: 8px;
    background: var(--pcmao-primary-soft);
}

.cart-item-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.cart-item-title {
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 700;
}

.cart-item-title a {
    color: var(--pcmao-dark);
    text-decoration: none;
}

.cart-item-title a:hover {
    color: var(--pcmao-primary);
}

.cart-item-controls {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.quantity-control {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid var(--pcmao-border);
    border-radius: 6px;
}

.quantity-control button,
.quantity-control span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    background: #ffffff;
}

.quantity-control button:hover {
    color: var(--pcmao-primary);
    background: var(--pcmao-primary-soft);
}

.quantity-control span {
    border-right: 1px solid var(--pcmao-border);
    border-left: 1px solid var(--pcmao-border);
    font-weight: 700;
}

.cart-subtotal {
    color: var(--pcmao-dark);
}

.cart-remove-button {
    padding: 0;
    color: var(--pcmao-primary);
    font-size: 0.9rem;
}

.cart-summary {
    padding: 22px;
}

.cart-summary-line,
.cart-summary-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    color: var(--pcmao-muted);
}

.cart-summary-total {
    margin: 6px 0 20px;
    padding: 18px 0 0;
    border-top: 1px solid var(--pcmao-border);
    color: var(--pcmao-dark);
    font-size: 1.08rem;
}

.cart-summary-total strong {
    color: var(--pcmao-primary);
}

/* Trang checkout và xác nhận đơn hàng tái sử dụng thẩm mỹ card gọn của giỏ hàng. */
.checkout-page-section {
    padding: 28px 0 56px;
}

.checkout-page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.checkout-panel,
.checkout-summary {
    padding: 22px;
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
}

.checkout-address-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.account-page-section {
    padding: 28px 0 56px;
}

.account-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.account-tabs a {
    padding: 9px 14px;
    border: 1px solid var(--pcmao-border);
    border-radius: 6px;
    color: var(--pcmao-dark);
    background: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.account-tabs a:hover,
.account-tabs a.active {
    color: var(--pcmao-primary);
    border-color: #fecdd3;
    background: var(--pcmao-primary-soft);
}

.address-summary-box,
.address-card {
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
}

.address-summary-box {
    display: grid;
    gap: 4px;
    padding: 14px;
}

.address-summary-box span,
.address-summary-box p {
    color: var(--pcmao-muted);
}

.address-summary-box p {
    margin: 0;
}

.address-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.address-card {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.address-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.address-card-heading div,
.address-card-heading span {
    display: grid;
    gap: 4px;
}

.address-card p {
    margin: 0;
    color: var(--pcmao-muted);
}

.address-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.address-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.address-picker-field {
    position: relative;
}

.address-picker-list {
    position: absolute;
    z-index: 1080;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--pcmao-border);
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.12);
}

.address-picker-option {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 4px;
    color: var(--pcmao-dark);
    background: transparent;
    text-align: left;
}

.address-picker-option:hover,
.address-picker-option:focus {
    color: var(--pcmao-primary);
    background: var(--pcmao-primary-soft);
}

.checkout-address-list {
    display: grid;
    gap: 10px;
}

.checkout-address-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.checkout-address-option:has(input:checked) {
    border-color: #fecdd3;
    background: var(--pcmao-primary-soft);
}

.checkout-address-option input {
    margin-top: 5px;
    accent-color: var(--pcmao-primary);
}

.checkout-address-option span {
    display: grid;
    gap: 3px;
}

.checkout-address-option small {
    color: var(--pcmao-muted);
}

.checkout-address-option em {
    margin-left: 6px;
    color: var(--pcmao-primary);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 15px;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    background: var(--pcmao-primary-soft);
}

.payment-option input {
    margin-top: 5px;
    accent-color: var(--pcmao-primary);
}

.payment-option span,
.checkout-item div,
.order-item-row div {
    display: grid;
    gap: 3px;
}

.payment-option small,
.checkout-item small,
.order-item-row small {
    color: var(--pcmao-muted);
}

.checkout-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pcmao-border);
}

.checkout-item img {
    display: block;
    width: 58px;
    height: 58px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--pcmao-primary-soft);
}

.checkout-item strong {
    font-size: 0.92rem;
}

.checkout-item span,
.order-item-row span {
    font-weight: 700;
    white-space: nowrap;
}

.order-success-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.order-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #ffffff;
    background: #16a34a;
    font-size: 1.8rem;
    font-weight: 700;
}

.order-status {
    align-self: flex-start;
    padding: 7px 11px;
    border-radius: 999px;
    color: #9f1239;
    background: var(--pcmao-primary-soft);
    font-size: 0.9rem;
    font-weight: 700;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--pcmao-border);
}

/* Chat hỗ trợ dùng giao diện bubble đơn giản, không cần realtime hoặc framework JS. */
.support-chat-section .checkout-panel {
    display: grid;
    gap: 18px;
}

.chat-thread {
    display: grid;
    gap: 12px;
    max-height: 460px;
    overflow-y: auto;
    padding: 14px;
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #f8fafc;
}

.chat-message {
    display: flex;
}

.chat-message.is-own {
    justify-content: flex-end;
}

.chat-message.is-support {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: min(76%, 620px);
    padding: 12px 14px;
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
}

.chat-message.is-own .chat-bubble {
    color: #ffffff;
    border-color: var(--pcmao-primary);
    background: var(--pcmao-primary);
}

.chat-message.is-own .chat-bubble small {
    color: rgba(255, 255, 255, 0.82);
}

.chat-message.is-support .chat-bubble {
    background: #ffffff;
}

.chat-message.is-bot .chat-bubble {
    border-color: #fecdd3;
    background: var(--pcmao-soft-red);
}

.chat-bubble p {
    margin: 0 0 7px;
    line-height: 1.55;
}

.chat-bubble small {
    color: var(--pcmao-muted);
    font-size: 0.78rem;
}

.chat-form {
    padding-top: 18px;
    border-top: 1px solid var(--pcmao-border);
}

.chat-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--pcmao-primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-chat-preview {
    display: -webkit-box;
    max-width: 420px;
    overflow: hidden;
    color: var(--pcmao-muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.floating-chat-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 18px 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    color: #ffffff;
    background: var(--pcmao-primary);
    box-shadow: 0 16px 34px rgba(225, 29, 72, 0.28);
    text-decoration: none;
}

.floating-chat-button:hover,
.floating-chat-button:focus {
    color: #ffffff;
    background: var(--pcmao-primary-dark);
    transform: translateY(-2px);
}

.floating-chat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.floating-chat-icon svg {
    width: 23px;
    height: 23px;
}

.floating-chat-text {
    display: grid;
    line-height: 1.15;
}

.floating-chat-text strong {
    font-size: 0.95rem;
}

.floating-chat-text small {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.78rem;
}

.floating-chat-badge {
    position: absolute;
    top: -7px;
    right: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    background: #111827;
    font-size: 0.75rem;
    font-weight: 800;
}

/* Khu quản trị dùng cùng màu thương hiệu, ưu tiên bảng dữ liệu rõ ràng. */
.admin-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px max(calc((100% - 1320px) / 2), 12px) 0;
}

.admin-navigation a {
    padding: 9px 15px;
    border: 1px solid var(--pcmao-border);
    border-radius: 6px;
    color: var(--pcmao-dark);
    background: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.admin-navigation a:hover,
.admin-navigation a.active {
    color: var(--pcmao-primary);
    border-color: #fecdd3;
    background: var(--pcmao-primary-soft);
}

.admin-page-section {
    padding: 20px 0 56px;
}

.admin-page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-stat-card,
.admin-panel {
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
}

.admin-stat-card {
    display: grid;
    gap: 5px;
    height: 100%;
    padding: 20px;
}

.admin-stat-card span,
.admin-stat-card small {
    color: var(--pcmao-muted);
}

.admin-stat-card strong {
    color: var(--pcmao-dark);
    font-size: 1.7rem;
}

.admin-stat-card.is-revenue strong {
    color: var(--pcmao-primary);
}

.admin-panel {
    padding: 20px;
}

.admin-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-panel-heading a {
    color: var(--pcmao-primary);
    text-decoration: none;
    font-weight: 600;
}

.admin-table thead th {
    color: var(--pcmao-muted);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-table tbody td {
    border-color: var(--pcmao-border);
}

.admin-status {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-status.is-pending {
    color: #9a3412;
    background: #fff7ed;
}

.admin-status.is-processing {
    color: #1d4ed8;
    background: #eff6ff;
}

.admin-status.is-completed {
    color: #047857;
    background: #ecfdf5;
}

.admin-status.is-cancelled {
    color: #991b1b;
    background: #fef2f2;
}

.admin-filter-form {
    display: flex;
    gap: 8px;
}

.admin-filter-form .form-select {
    min-width: 190px;
}

.admin-order-total {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    padding: 18px 8px 0;
    border-top: 1px solid var(--pcmao-border);
}

.admin-order-total strong {
    color: var(--pcmao-primary);
    font-size: 1.08rem;
}

/* Layout admin riêng: sidebar tối, nội dung sáng để tách rõ với giao diện mua hàng. */
.admin-body {
    min-height: 100vh;
    color: var(--pcmao-dark);
    background: #f3f4f6;
}

.admin-body .admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-body .admin-navigation {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 22px 16px;
    background: #111827;
    box-shadow: 10px 0 28px rgba(17, 24, 39, 0.12);
}

.admin-sidebar-brand {
    display: grid;
    gap: 10px;
    margin-bottom: 26px;
    padding: 0 4px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
}

.admin-sidebar-brand:hover {
    color: #ffffff;
}

.admin-sidebar-brand img {
    width: 142px;
    height: auto;
    border-radius: 8px;
}

.admin-sidebar-brand span {
    color: #d1d5db;
    font-size: 0.86rem;
    letter-spacing: 0.02em;
}

.admin-sidebar-nav {
    display: grid;
    gap: 8px;
}

.admin-body .admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #d1d5db;
    background: transparent;
    text-decoration: none;
    font-weight: 700;
}

.admin-body .admin-sidebar-link span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
}

.admin-body .admin-sidebar-link:hover,
.admin-body .admin-sidebar-link.active {
    color: #ffffff;
    border-color: rgba(225, 29, 72, 0.45);
    background: rgba(225, 29, 72, 0.18);
}

.admin-body .admin-sidebar-link.active span {
    background: var(--pcmao-primary);
}

.admin-sidebar-link small {
    margin-left: auto;
    color: #9ca3af;
    font-size: 0.72rem;
    font-weight: 600;
}

.admin-sidebar-link.is-disabled {
    cursor: default;
    opacity: 0.58;
}

.admin-sidebar-footer {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-store,
.admin-sidebar-logout {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #f9fafb;
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
}

.admin-sidebar-store:hover,
.admin-sidebar-logout:hover {
    color: #ffffff;
    border-color: rgba(225, 29, 72, 0.6);
    background: rgba(225, 29, 72, 0.2);
}

.admin-sidebar-logout {
    color: #fecdd3;
}

.admin-body .admin-sidebar-brand {
    display: grid;
    gap: 10px;
    margin-bottom: 26px;
    padding: 0 4px 20px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    color: #ffffff;
    background: transparent;
    text-decoration: none;
    font-weight: 800;
}

.admin-body .admin-sidebar-brand:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.08);
    background: transparent;
}

.admin-body .admin-sidebar-store,
.admin-body .admin-sidebar-logout {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #f9fafb;
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
}

.admin-body .admin-sidebar-store:hover,
.admin-body .admin-sidebar-logout:hover {
    color: #ffffff;
    border-color: rgba(225, 29, 72, 0.6);
    background: rgba(225, 29, 72, 0.2);
}

.admin-body .admin-sidebar-logout {
    color: #fecdd3;
}

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

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 76px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--pcmao-border);
    background: #ffffff;
}

.admin-topbar-kicker {
    color: var(--pcmao-muted);
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-topbar-title {
    color: var(--pcmao-dark);
    font-size: 1.35rem;
    font-weight: 800;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-quick-link {
    padding: 9px 13px;
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    color: var(--pcmao-dark);
    background: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

.admin-quick-link:hover {
    color: var(--pcmao-primary);
    border-color: #fecdd3;
    background: var(--pcmao-primary-soft);
}

.admin-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #f9fafb;
}

.admin-user-chip > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--pcmao-primary);
    font-weight: 800;
}

.admin-user-chip strong,
.admin-user-chip small {
    display: block;
    line-height: 1.2;
}

.admin-user-chip small {
    color: var(--pcmao-muted);
    font-size: 0.78rem;
}

.admin-content {
    padding: 26px 28px 42px;
}

.admin-body .admin-page-section {
    padding: 0;
}

.admin-body .admin-page-section > .container {
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.admin-body .section-kicker {
    color: var(--pcmao-primary);
}

.admin-body .admin-page-heading {
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--pcmao-border);
}

.admin-body .admin-stat-card,
.admin-body .admin-panel {
    border-color: var(--pcmao-border);
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.06);
}

.admin-body .admin-stat-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
}

.admin-body .admin-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--pcmao-primary);
}

.admin-body .admin-stat-card span {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-body .admin-stat-card strong {
    font-size: 2rem;
}

.admin-body .admin-panel {
    padding: 22px;
}

.admin-body .admin-table {
    overflow: hidden;
    border-radius: 8px;
}

.admin-body .admin-table thead th {
    padding: 13px 12px;
    color: #4b5563;
    background: #f9fafb;
    border-bottom: 1px solid var(--pcmao-border);
}

.admin-body .admin-table tbody td {
    padding: 14px 12px;
    vertical-align: middle;
}

.admin-body .admin-table tbody tr:hover td {
    background: #fff7f8;
}

.admin-body .empty-state-box {
    border-radius: 8px;
    background: #f9fafb;
}

.admin-status.is-active {
    color: #047857;
    background: #ecfdf5;
}

.admin-status.is-inactive {
    color: #4b5563;
    background: #f3f4f6;
}

.admin-product-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(160px, 0.8fr) auto;
    gap: 14px;
    align-items: end;
}

.admin-product-filter-actions,
.admin-row-actions,
.admin-form-actions {
    display: flex;
    gap: 8px;
}

.admin-product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.admin-product-cell img {
    width: 58px;
    height: 58px;
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    object-fit: cover;
    background: #ffffff;
}

.admin-product-cell strong,
.admin-product-cell small {
    display: block;
}

.admin-product-cell small {
    color: var(--pcmao-muted);
}

.admin-row-actions {
    justify-content: flex-end;
}

.admin-image-preview {
    display: grid;
    place-items: center;
    min-height: 190px;
    margin-bottom: 14px;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
}

.admin-image-preview img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-gallery-item {
    display: grid;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--pcmao-border);
    border-radius: 6px;
    background: #ffffff;
}

.admin-gallery-item img {
    width: 100%;
    height: 112px;
    object-fit: contain;
    border-radius: 4px;
    background: #f9fafb;
}

.admin-gallery-option {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
}

.admin-new-image-preview[hidden] {
    display: none;
}

.admin-form-actions {
    align-items: stretch;
}

.admin-form-actions .btn {
    flex: 1;
}

/* Màn hình đăng nhập admin dùng phong cách dashboard, không dùng layout bán hàng. */
.admin-auth-body {
    min-height: 100vh;
    color: var(--pcmao-dark);
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(31, 41, 55, 0.92)),
        #111827;
}

.admin-auth-page {
    display: grid;
    align-items: center;
    min-height: 100vh;
    padding: 32px 16px;
}

.admin-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    width: min(1040px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.admin-auth-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 560px;
    padding: 46px;
    color: #ffffff;
    background: #111827;
}

.admin-auth-logo {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 28px;
}

.admin-auth-logo img {
    width: 150px;
    height: auto;
    border-radius: 8px;
}

.admin-auth-badge {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 18px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #fecdd3;
    background: rgba(225, 29, 72, 0.16);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-auth-brand-panel h1 {
    max-width: 480px;
    margin-bottom: 14px;
    font-size: 2.15rem;
    font-weight: 800;
}

.admin-auth-brand-panel p {
    max-width: 500px;
    color: #d1d5db;
}

.admin-auth-points {
    display: grid;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.admin-auth-points li {
    position: relative;
    padding-left: 22px;
    color: #e5e7eb;
}

.admin-auth-points li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pcmao-primary);
}

.admin-auth-form-panel {
    display: grid;
    align-content: center;
    padding: 44px 38px;
    background: #ffffff;
}

.admin-login-card {
    width: 100%;
}

.admin-login-kicker {
    color: var(--pcmao-primary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-login-card h2 {
    margin-bottom: 8px;
    font-size: 1.75rem;
    font-weight: 800;
}

.admin-login-description {
    margin-bottom: 26px;
    color: var(--pcmao-muted);
}

.admin-auth-input {
    min-height: 46px;
    border-color: var(--pcmao-border);
    border-radius: 8px;
}

.admin-auth-input:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 0.2rem rgba(225, 29, 72, 0.12);
}

.admin-auth-submit {
    min-height: 46px;
}

.admin-login-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
    color: var(--pcmao-muted);
    font-size: 0.92rem;
}

.admin-login-links a {
    color: var(--pcmao-primary);
    text-decoration: none;
    font-weight: 700;
}

.admin-login-links a:hover {
    color: var(--pcmao-primary-dark);
}

.admin-login-links span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d1d5db;
}

.spec-table {
    display: grid;
    gap: 10px;
}

.spec-table div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pcmao-border);
}

.spec-table div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.spec-table span {
    color: var(--pcmao-muted);
}

.spec-table strong {
    color: var(--pcmao-dark);
}

@media (max-width: 1199.98px) {
    .header-main-row {
        grid-template-columns: 170px minmax(300px, 1fr) auto;
        gap: 14px;
    }

    .header-action {
        padding: 0 12px;
    }

    .desktop-nav a {
        padding: 0 10px;
    }

    .banner-slide {
        padding: 38px 56px;
    }
}

@media (max-width: 991.98px) {
    .home-banner-section {
        padding-top: 8px;
    }

    .banner-slide {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 30px 24px 54px;
    }

    .banner-title {
        font-size: 2.1rem;
    }

    .banner-media img {
        max-width: 320px;
    }

    .category-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel {
        position: static;
    }

    .product-detail-card {
        grid-template-columns: 1fr;
    }

    .admin-body .admin-shell {
        display: block;
    }

    .admin-body .admin-navigation {
        position: static;
        height: auto;
        padding: 16px;
    }

    .admin-body .admin-sidebar-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
        padding-bottom: 14px;
    }

    .admin-sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-sidebar-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 14px;
    }

    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .admin-content {
        padding: 18px;
    }

    .admin-product-filter {
        grid-template-columns: 1fr 1fr;
    }

    .admin-product-filter-actions {
        grid-column: 1 / -1;
    }

    .admin-auth-shell {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .admin-auth-brand-panel {
        min-height: 0;
        padding: 30px;
    }

    .admin-auth-form-panel {
        padding: 30px;
    }
}

@media (max-width: 575.98px) {
    .mobile-header-card {
        grid-template-columns: 52px 1fr auto;
    }

    .mobile-brand .brand-logo {
        max-width: 118px;
    }

    .banner-slide {
        padding: 24px 18px 50px;
    }

    .banner-title {
        font-size: 1.75rem;
    }

    .banner-subtitle {
        font-size: 0.98rem;
    }

    .category-strip {
        grid-template-columns: 1fr;
    }

    .category-select {
        display: none;
    }

    .product-page-heading,
    .product-detail-card {
        padding: 18px;
    }

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

    .detail-price-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .spec-table div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .cart-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .chat-thread {
        max-height: 380px;
        padding: 10px;
    }

    .chat-bubble {
        max-width: 100%;
    }

    .floating-chat-button {
        right: 14px;
        bottom: 14px;
        min-height: 52px;
        padding: 9px 13px 9px 10px;
        gap: 8px;
    }

    .floating-chat-icon {
        width: 34px;
        height: 34px;
    }

    .floating-chat-text strong {
        font-size: 0.88rem;
    }

    .floating-chat-text small {
        display: none;
    }

    .admin-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-filter-form {
        width: 100%;
    }

    .admin-filter-form .form-select {
        min-width: 0;
        flex: 1;
    }

    .admin-body .admin-sidebar-brand {
        display: grid;
        justify-content: start;
    }

    .admin-sidebar-nav,
    .admin-sidebar-footer {
        grid-template-columns: 1fr;
    }

    .admin-topbar-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .admin-quick-link,
    .admin-user-chip {
        width: 100%;
    }

    .admin-body .admin-panel,
    .admin-body .admin-stat-card {
        padding: 18px;
    }

    .admin-product-filter,
    .admin-product-filter-actions,
    .admin-form-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .admin-product-filter {
        display: grid;
    }

    .admin-row-actions {
        justify-content: flex-start;
    }

    .admin-auth-page {
        padding: 16px;
    }

    .admin-auth-brand-panel,
    .admin-auth-form-panel {
        padding: 24px 20px;
    }

    .admin-auth-brand-panel h1 {
        font-size: 1.55rem;
    }

    .admin-auth-points {
        margin-top: 18px;
    }

    .admin-login-links {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .admin-login-links span {
        display: none;
    }

    .cart-item {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .cart-item-controls {
        grid-column: 1 / -1;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        justify-items: start;
        width: 100%;
    }

    .cart-subtotal {
        justify-self: center;
    }

    .checkout-panel,
    .checkout-summary {
        padding: 18px;
    }

    .address-card-grid,
    .address-picker-grid {
        grid-template-columns: 1fr;
    }

    .address-card-heading {
        flex-direction: column;
    }

    .checkout-item {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .checkout-item img {
        width: 50px;
        height: 50px;
    }

    .checkout-item span {
        grid-column: 2;
    }

    .order-success-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Popup chat noi o storefront: don gian, giong nut chat cua cac shop ecommerce hien dai. */
.support-chat-trigger {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 18px 10px 12px;
    color: #ffffff;
    background: var(--pcmao-primary);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(225, 29, 72, 0.26);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.support-chat-trigger:hover,
.support-chat-trigger:focus {
    color: #ffffff;
    background: var(--pcmao-primary-dark);
    box-shadow: 0 20px 48px rgba(190, 18, 60, 0.3);
    transform: translateY(-2px);
}

.support-chat-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.support-chat-trigger-icon svg {
    width: 23px;
    height: 23px;
}

.support-chat-trigger-text {
    display: grid;
    line-height: 1.15;
    text-align: left;
}

.support-chat-trigger-text strong {
    font-size: 0.95rem;
}

.support-chat-trigger-text small {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.78rem;
}

.support-chat-badge {
    position: absolute;
    top: -7px;
    right: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    color: var(--pcmao-primary);
    background: #ffffff;
    border: 2px solid var(--pcmao-primary);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.support-chat-popup {
    position: fixed;
    right: 24px;
    bottom: 94px;
    z-index: 81;
    width: min(380px, calc(100vw - 32px));
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--pcmao-border);
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.18);
}

.support-chat-popup[hidden] {
    display: none;
}

.support-chat-popup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    color: #ffffff;
    background: var(--pcmao-primary);
}

.support-chat-popup-header strong,
.support-chat-popup-header small {
    display: block;
}

.support-chat-popup-header small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.78rem;
}

.support-chat-close {
    width: 30px;
    height: 30px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 0;
    border-radius: 999px;
    font-size: 1.35rem;
    line-height: 1;
}

.support-chat-close:hover,
.support-chat-close:focus {
    background: rgba(255, 255, 255, 0.28);
}

.support-chat-popup-status {
    padding: 10px 14px;
    color: var(--pcmao-muted);
    background: #f8fafc;
    border-bottom: 1px solid var(--pcmao-border);
    font-size: 0.84rem;
}

.support-chat-popup-status[data-state="success"] {
    color: #166534;
    background: #f0fdf4;
}

.support-chat-popup-status[data-state="error"] {
    color: #991b1b;
    background: #fef2f2;
}

.support-chat-popup-status[data-state="loading"] {
    color: #9f1239;
    background: var(--pcmao-primary-soft);
}

.support-chat-popup-thread {
    display: grid;
    gap: 10px;
    max-height: 300px;
    min-height: 180px;
    overflow-y: auto;
    padding: 14px;
    background: #f8fafc;
}

.support-chat-empty {
    align-self: center;
    padding: 18px;
    color: var(--pcmao-muted);
    text-align: center;
    background: #ffffff;
    border: 1px dashed var(--pcmao-border);
    border-radius: 10px;
    font-size: 0.9rem;
}

.support-chat-popup-message {
    display: flex;
}

.support-chat-popup-message.is-own {
    justify-content: flex-end;
}

.support-chat-popup-message.is-support {
    justify-content: flex-start;
}

.support-chat-popup-bubble {
    max-width: 82%;
    padding: 10px 12px;
    color: var(--pcmao-dark);
    background: #ffffff;
    border: 1px solid var(--pcmao-border);
    border-radius: 10px;
}

.support-chat-popup-message.is-own .support-chat-popup-bubble {
    color: #ffffff;
    background: var(--pcmao-primary);
    border-color: var(--pcmao-primary);
}

.support-chat-popup-message.is-bot .support-chat-popup-bubble {
    background: var(--pcmao-primary-soft);
    border-color: #fecdd3;
}

.support-chat-popup-bubble p {
    margin: 0 0 6px;
    line-height: 1.45;
}

.support-chat-popup-bubble small {
    color: var(--pcmao-muted);
    font-size: 0.74rem;
}

.support-chat-popup-message.is-own .support-chat-popup-bubble small {
    color: rgba(255, 255, 255, 0.82);
}

.support-chat-popup-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px 14px 10px;
    background: #ffffff;
    border-top: 1px solid var(--pcmao-border);
}

.support-chat-popup-form textarea {
    width: 100%;
    min-height: 46px;
    max-height: 96px;
    padding: 10px 12px;
    resize: vertical;
    border: 1px solid var(--pcmao-border);
    border-radius: 10px;
    font-size: 0.9rem;
}

.support-chat-popup-form textarea:focus {
    outline: 0;
    border-color: var(--pcmao-primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.support-chat-popup-form button {
    min-width: 72px;
    color: #ffffff;
    background: var(--pcmao-primary);
    border: 0;
    border-radius: 10px;
    font-weight: 800;
}

.support-chat-popup-form button:hover,
.support-chat-popup-form button:focus {
    background: var(--pcmao-primary-dark);
}

.support-chat-popup-form button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.support-chat-full-link {
    display: block;
    padding: 0 14px 13px;
    color: var(--pcmao-primary);
    font-size: 0.86rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.support-chat-full-link:hover,
.support-chat-full-link:focus {
    color: var(--pcmao-primary-dark);
}

@media (max-width: 575.98px) {
    .support-chat-trigger {
        right: 14px;
        bottom: 14px;
        min-height: 52px;
        padding: 9px 13px 9px 10px;
        gap: 8px;
    }

    .support-chat-trigger-icon {
        width: 34px;
        height: 34px;
    }

    .support-chat-trigger-text small {
        display: none;
    }

    .support-chat-popup {
        right: 14px;
        bottom: 78px;
        width: calc(100vw - 28px);
        border-radius: 10px;
    }

    .support-chat-popup-thread {
        max-height: min(56vh, 340px);
    }

    .support-chat-popup-form {
        grid-template-columns: 1fr;
    }

    .support-chat-popup-form button {
        min-height: 42px;
    }
}

/* Storefront compact: thu gọn giao diện bán hàng nhưng không đụng layout admin. */
body:not(.admin-body):not(.admin-auth-page) {
    font-size: 15px;
    line-height: 1.5;
}

@media (min-width: 1400px) {
    body > .site-header .container,
    body > main .container,
    body > .site-footer .container {
        max-width: 1240px;
    }
}

.site-header {
    box-shadow: 0 1px 8px rgba(17, 24, 39, 0.05);
}

.desktop-header {
    padding: 10px 0;
}

.desktop-header-card {
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.05);
}

.header-main-row {
    grid-template-columns: 150px minmax(320px, 1fr) auto;
    gap: 14px;
    min-height: 68px;
    padding: 8px 14px;
}

.header-main-row .brand-link {
    min-height: 46px;
}

.header-main-row .brand-logo {
    max-width: 140px;
    height: 46px;
    border-radius: 6px;
}

.search-box {
    min-height: 42px;
    border-radius: 6px;
}

.category-select {
    flex-basis: 150px;
    font-size: 0.9rem;
    font-weight: 600;
}

.search-box .form-control {
    min-height: 42px;
    font-size: 0.94rem;
}

.search-submit {
    flex-basis: 44px;
}

.header-action {
    gap: 8px;
    min-height: 48px;
    padding: 0 12px;
}

.header-action strong {
    font-size: 0.88rem;
    font-weight: 700;
}

.header-action small {
    font-size: 0.76rem;
}

.header-logout-form {
    min-height: 48px;
    padding: 0 10px;
}

.header-logout-button {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
}

.header-nav-row {
    grid-template-columns: 220px 1fr;
    min-height: 42px;
}

.category-menu-button {
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: none;
}

.desktop-nav a {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 0.91rem;
    font-weight: 600;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.header-action:hover,
.mobile-icon-button:hover,
.mobile-icon-button:focus,
.mobile-menu-panel a:hover,
.mobile-menu-panel a.active {
    background: #fff7f8;
}

.mobile-header {
    padding: 8px 0;
}

.mobile-header-card {
    min-height: 54px;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.06);
}

.mobile-brand .brand-logo {
    height: 34px;
    max-width: 116px;
}

.mobile-icon-button {
    width: 48px;
    height: 54px;
}

.mobile-search-form,
.mobile-menu-panel {
    margin-top: 8px;
    padding: 10px;
    border-radius: 6px;
}

.mobile-menu-panel a {
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 0.94rem;
    font-weight: 600;
}

.home-banner-section {
    padding: 12px 0;
}

.home-banner-slider {
    border-radius: 6px;
    box-shadow: none;
}

.banner-slide {
    gap: 20px;
    min-height: 300px;
    padding: 28px 38px;
    background: #ffffff;
}

.banner-title {
    max-width: 540px;
    font-size: clamp(1.75rem, 2.4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.18;
    text-transform: none;
}

.banner-subtitle {
    max-width: 520px;
    font-size: 0.96rem;
}

.banner-media img {
    width: min(100%, 340px);
    max-height: 250px;
    object-fit: contain;
    filter: none;
}

.home-banner-slider .btn,
.cta-button {
    min-width: auto;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
}

.home-banner-slider .carousel-indicators {
    bottom: 10px;
}

.home-banner-slider .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    margin-right: 4px;
    margin-left: 4px;
}

.home-banner-slider .carousel-control-prev,
.home-banner-slider .carousel-control-next {
    width: 36px;
}

.home-banner-slider .carousel-control-prev-icon,
.home-banner-slider .carousel-control-next-icon {
    width: 28px;
    height: 28px;
    background-color: rgba(17, 24, 39, 0.3);
}

.store-benefits {
    padding: 8px 0 12px;
}

.store-benefits .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

.benefit-item {
    min-height: 66px;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    box-shadow: none;
}

.benefit-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    background: #f3f4f6;
    font-size: 0.95rem;
}

.benefit-item strong {
    font-size: 0.9rem;
    font-weight: 700;
}

.benefit-item small {
    font-size: 0.82rem;
}

.category-strip-section {
    padding: 4px 0 12px;
}

.category-strip {
    gap: 8px;
}

.category-chip {
    min-height: 64px;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 6px;
}

.category-chip:hover {
    transform: none;
    background: #ffffff;
}

.category-chip strong {
    font-size: 0.94rem;
    font-weight: 700;
}

.category-chip span {
    font-size: 0.8rem;
}

.store-section,
.product-page-section,
.product-detail-section {
    padding: 20px 0 36px;
}

@media (min-width: 992px) {
    .storefront-sidebar-col {
        flex: 0 0 220px;
        max-width: 220px;
    }

    .storefront-main-col {
        flex: 1 1 0;
        max-width: calc(100% - 220px);
    }
}

.category-panel,
.filter-panel {
    top: 84px;
    padding: 14px;
    border-radius: 6px;
}

.category-panel .section-heading,
.filter-panel h2 {
    margin-bottom: 10px !important;
}

.category-item,
.category-quick-links a {
    gap: 8px;
    padding: 9px 10px;
    border-radius: 6px;
}

.category-item strong,
.category-quick-links a {
    font-size: 0.9rem;
    font-weight: 600;
}

.category-item small,
.category-item em,
.category-quick-links em {
    font-size: 0.78rem;
}

.support-box {
    padding: 11px 12px;
    color: #374151;
    border-color: var(--pcmao-border);
    border-radius: 6px;
    background: #ffffff;
}

.support-box strong {
    color: var(--pcmao-primary);
}

.support-box span {
    color: var(--pcmao-muted);
    font-size: 0.82rem;
}

.promo-grid {
    gap: 10px;
}

.promo-card {
    min-height: 78px;
    padding: 14px;
    color: #374151;
    border-color: var(--pcmao-border);
    border-radius: 6px;
    background: #ffffff;
}

.promo-card span {
    color: var(--pcmao-primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: none;
}

.promo-card h2 {
    font-size: 1rem;
}

.section-heading h2,
.product-page-heading h1 {
    font-size: clamp(1.35rem, 2vw, 1.6rem);
    font-weight: 750;
}

.section-heading p,
.product-page-heading p,
.product-list-toolbar {
    font-size: 0.92rem;
}

.product-page-heading {
    margin-bottom: 14px;
    padding: 18px;
    border-radius: 6px;
}

.product-list-toolbar {
    margin-bottom: 12px;
    padding: 11px 12px;
    border-radius: 6px;
}

.product-card {
    border-radius: 6px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: none;
    border-color: #fecdd3;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

.product-image {
    height: 190px;
    padding: 12px;
    background: #ffffff;
    border-bottom: 1px solid var(--pcmao-border);
    aspect-ratio: auto;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-badge {
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
}

.product-body {
    gap: 8px;
    padding: 12px;
}

.product-meta {
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: none;
}

.product-title {
    display: -webkit-box;
    min-height: 2.6em;
    margin-bottom: 0;
    overflow: hidden;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.spec-list {
    gap: 5px;
    margin-bottom: 0;
}

.spec-list span {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.product-price-row {
    gap: 8px;
    padding-top: 10px;
}

.price {
    font-size: 1rem;
    font-weight: 800;
}

.old-price {
    font-size: 0.78rem;
}

.stock-status {
    font-size: 0.76rem;
}

.product-actions {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 7px;
    margin-top: 10px;
}

.product-actions .btn {
    min-height: 34px;
    padding: 0.42rem 0.55rem;
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 700;
}

.product-detail-card,
.detail-panel {
    border-radius: 6px;
}

.product-detail-card {
    gap: 22px;
    padding: 18px;
}

.product-main-image {
    background: #ffffff;
}

.product-main-image img {
    max-height: 420px;
    object-fit: contain;
}

.product-thumbs img {
    object-fit: contain;
    background: #ffffff;
}

.product-detail-title {
    font-size: clamp(1.45rem, 2.5vw, 1.8rem);
    font-weight: 800;
}

.detail-price-box {
    margin: 16px 0;
    padding: 14px;
    border-radius: 6px;
    background: #fff7f8;
}

.detail-price {
    font-size: 1.5rem;
}

.detail-actions .btn {
    border-radius: 6px;
}

.site-footer .row.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.footer-title {
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 700;
}

.footer-text,
.footer-links,
.footer-contact,
.footer-bottom {
    font-size: 0.9rem;
}

.footer-links {
    gap: 6px;
}

.footer-bottom.py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.support-chat-trigger {
    right: 18px;
    bottom: 18px;
    gap: 8px;
    min-height: 46px;
    padding: 8px 12px 8px 8px;
    box-shadow: 0 8px 22px rgba(225, 29, 72, 0.22);
}

.support-chat-trigger:hover,
.support-chat-trigger:focus {
    transform: none;
    box-shadow: 0 10px 26px rgba(190, 18, 60, 0.22);
}

.support-chat-trigger-icon {
    width: 32px;
    height: 32px;
}

.support-chat-trigger-icon svg {
    width: 20px;
    height: 20px;
}

.support-chat-trigger-text strong {
    font-size: 0.86rem;
}

.support-chat-trigger-text small {
    display: none;
}

.support-chat-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.68rem;
}

.support-chat-popup {
    right: 18px;
    bottom: 74px;
    width: min(360px, calc(100vw - 28px));
    border-radius: 8px;
    box-shadow: 0 14px 44px rgba(17, 24, 39, 0.14);
}

.support-chat-popup-header {
    padding: 12px 14px;
}

.support-chat-popup-thread {
    max-height: 280px;
    min-height: 160px;
    padding: 12px;
}

@media (max-width: 1199.98px) {
    .header-main-row {
        grid-template-columns: 140px minmax(260px, 1fr) auto;
        gap: 10px;
    }

    .header-action {
        justify-content: center;
        width: 44px;
        padding: 0;
    }

    .header-action span {
        display: none;
    }

    .header-admin-link {
        width: auto;
        padding: 0 10px;
    }

    .header-admin-link span {
        display: grid;
    }

    .header-nav-row {
        grid-template-columns: 200px 1fr;
    }

    .desktop-nav a {
        padding: 0 8px;
        font-size: 0.86rem;
    }

    .banner-slide {
        padding: 26px 30px;
    }
}

@media (max-width: 991.98px) {
    .banner-slide {
        min-height: 0;
        padding: 24px 22px 46px;
    }

    .banner-title {
        font-size: 1.8rem;
    }

    .banner-media img {
        max-height: 220px;
    }

    .category-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-panel,
    .filter-panel {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .store-benefits .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .product-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    body:not(.admin-body):not(.admin-auth-page) {
        font-size: 14px;
    }

    .mobile-header-card {
        grid-template-columns: 46px 1fr auto;
    }

    .mobile-icon-button {
        width: 46px;
    }

    .home-banner-section {
        padding-top: 8px;
    }

    .banner-slide {
        padding: 20px 16px 42px;
    }

    .banner-title {
        font-size: 1.55rem;
    }

    .banner-subtitle {
        font-size: 0.9rem;
    }

    .category-strip {
        grid-template-columns: 1fr;
    }

    .store-section,
    .product-page-section,
    .product-detail-section {
        padding: 16px 0 28px;
    }

    .store-benefits .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

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

    .product-image {
        height: 180px;
    }

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

    .support-chat-trigger {
        right: 14px;
        bottom: 14px;
        min-height: 44px;
        padding: 7px 10px 7px 7px;
    }

    .support-chat-trigger-icon {
        width: 30px;
        height: 30px;
    }

    .support-chat-popup {
        right: 10px;
        bottom: 66px;
        width: calc(100vw - 20px);
    }

    .support-channel-menu {
        right: 10px;
        bottom: 66px;
        width: calc(100vw - 20px);
    }
}

/* Category dropdown: danh mục chỉ còn một điểm truy cập ở header storefront. */
.desktop-header-card,
.header-nav-row {
    overflow: visible;
}

.category-dropdown {
    position: relative;
    min-width: 0;
}

.category-dropdown .category-menu-button {
    width: 100%;
    min-height: 42px;
    border: 0;
}

.category-menu-button.show,
.category-menu-button:focus {
    color: #ffffff;
    background: var(--pcmao-primary-dark);
}

.category-dropdown-menu {
    min-width: 220px;
    max-height: 360px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--pcmao-border);
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
    z-index: 1050;
}

.category-dropdown-menu .dropdown-item {
    padding: 8px 10px;
    color: var(--pcmao-dark);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.category-dropdown-menu .dropdown-item:hover,
.category-dropdown-menu .dropdown-item:focus,
.category-dropdown-menu .dropdown-item.active {
    color: var(--pcmao-primary);
    background: #fff7f8;
}

.mobile-category-dropdown {
    display: grid;
    gap: 6px;
}

.mobile-menu-dropdown-toggle {
    width: 100%;
    padding: 9px 10px;
    color: var(--pcmao-dark);
    border: 0;
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.94rem;
    font-weight: 600;
    text-align: left;
}

.mobile-menu-dropdown-toggle:hover,
.mobile-menu-dropdown-toggle:focus,
.mobile-menu-dropdown-toggle.show {
    color: var(--pcmao-primary);
    background: #fff7f8;
}

.mobile-category-dropdown .dropdown-menu {
    position: static !important;
    width: 100%;
    margin: 0;
    transform: none !important;
}

.product-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (max-width: 767.98px) {
    .product-list-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Admin compact UI: chỉ áp dụng cho body quản trị, không ảnh hưởng storefront. */
.admin-body {
    overflow-x: hidden;
    font-size: 14px;
    background: #f3f4f6;
}

.admin-body .admin-shell {
    grid-template-columns: 216px minmax(0, 1fr);
}

.admin-body .admin-navigation {
    flex-direction: column;
    flex-wrap: nowrap;
    width: auto;
    padding: 16px 12px;
    box-shadow: none;
}

.admin-body .admin-sidebar-brand {
    gap: 0;
    margin-bottom: 16px;
    padding: 0 4px 14px;
}

.admin-body .admin-sidebar-brand img {
    width: 112px;
    border-radius: 6px;
}

.admin-body .admin-sidebar-nav {
    gap: 6px;
}

.admin-body .admin-sidebar-link {
    min-height: 42px;
    padding: 8px 10px;
    gap: 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.admin-body .admin-sidebar-link span {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 0.68rem;
}

.admin-body .admin-sidebar-footer {
    gap: 8px;
    padding-top: 12px;
}

.admin-body .admin-sidebar-logout {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.admin-body .admin-main {
    min-width: 0;
}

.admin-body .admin-topbar {
    justify-content: flex-end;
    min-height: 62px;
    padding: 10px 22px;
    gap: 10px;
    box-shadow: none;
}

.admin-body .admin-menu-toggle {
    min-height: 38px;
    margin-right: auto;
    padding: 0 12px;
    border: 1px solid var(--pcmao-border);
    border-radius: 6px;
    color: var(--pcmao-dark);
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.admin-body .admin-menu-toggle:hover,
.admin-body .admin-menu-toggle:focus {
    color: var(--pcmao-primary);
    border-color: #fecdd3;
    background: #fff7f8;
}

.admin-body .admin-topbar-actions {
    gap: 10px;
}

.admin-body .admin-quick-link {
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.admin-body .admin-user-chip {
    min-height: 38px;
    padding: 6px 10px;
    gap: 8px;
    border-radius: 6px;
}

.admin-body .admin-user-chip > span {
    width: 28px;
    height: 28px;
    font-size: 0.86rem;
}

.admin-body .admin-user-chip strong {
    font-size: 13px;
    font-weight: 700;
}

.admin-body .admin-user-chip small {
    font-size: 12px;
}

.admin-body .admin-content {
    padding: 22px 24px 32px;
}

.admin-body .admin-page-heading {
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.admin-body .admin-page-heading h1 {
    margin-bottom: 4px !important;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 700 !important;
}

.admin-body .admin-page-heading p {
    font-size: 14px;
    line-height: 1.45;
}

.admin-body .row.g-3,
.admin-body .row.g-4 {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 16px;
}

.admin-body .admin-stat-card,
.admin-body .admin-panel {
    border: 1px solid var(--pcmao-border);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.04);
}

.admin-body .admin-stat-card {
    min-height: 108px;
    padding: 16px;
    gap: 4px;
}

.admin-body .admin-stat-card::before {
    display: none;
}

.admin-body .admin-stat-card span {
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
    text-transform: none;
}

.admin-body .admin-stat-card strong {
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
}

.admin-body .admin-stat-card small {
    display: none;
}

.admin-body .admin-stat-card.is-revenue strong {
    color: var(--pcmao-primary);
    font-size: 24px;
}

.admin-body .admin-panel {
    padding: 16px;
}

.admin-body .admin-panel-heading {
    gap: 10px;
    margin-bottom: 12px;
}

.admin-body .admin-panel-heading h2,
.admin-body .empty-state-box h2,
.admin-body .empty-state-box h3 {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700 !important;
}

.admin-body .empty-state-box {
    padding: 18px;
    border-radius: 6px;
}

.admin-body .alert {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.admin-body .table-responsive {
    overflow-x: auto;
}

.admin-body .admin-table {
    min-width: 720px;
    border-radius: 6px;
    font-size: 13.5px;
}

.admin-body .admin-table thead th {
    padding: 10px 12px;
    font-size: 12.5px;
    font-weight: 700;
}

.admin-body .admin-table tbody td {
    padding: 10px 12px;
}

.admin-body .admin-status,
.admin-body .chat-unread-badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.admin-body .btn {
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.admin-body .btn-sm {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 13px;
}

.admin-body .form-label {
    margin-bottom: 5px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.admin-body .form-control,
.admin-body .form-select {
    min-height: 38px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 14px;
}

.admin-body textarea.form-control {
    min-height: auto;
}

.admin-body .form-check-label,
.admin-body .text-muted,
.admin-body small {
    font-size: 13px;
}

.admin-body .admin-product-filter {
    grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 0.9fr) minmax(140px, 0.8fr) auto;
    gap: 12px;
}

.admin-body .admin-filter-form {
    align-items: center;
    gap: 8px;
}

.admin-body .admin-filter-form .form-select {
    min-width: 170px;
}

.admin-body .admin-product-cell {
    min-width: 220px;
    gap: 10px;
}

.admin-body .admin-product-cell img {
    width: 46px;
    height: 46px;
    border-radius: 6px;
}

.admin-body .admin-row-actions,
.admin-body .admin-form-actions {
    gap: 6px;
}

.admin-body .admin-image-preview {
    min-height: 148px;
    margin-bottom: 12px;
    border-radius: 6px;
}

.admin-body .admin-image-preview img {
    max-height: 138px;
}

.admin-body .admin-gallery-grid {
    gap: 8px;
}

.admin-body .admin-gallery-item {
    padding: 7px;
}

.admin-body .admin-gallery-item img {
    height: 92px;
}

.admin-body .chat-thread {
    max-height: 390px;
    padding: 12px;
    gap: 10px;
    border-radius: 6px;
}

.admin-body .chat-bubble {
    max-width: min(80%, 560px);
    padding: 10px 12px;
    border-radius: 6px;
}

.admin-body .chat-bubble p {
    margin-bottom: 5px;
    line-height: 1.45;
}

.admin-body .chat-form {
    padding-top: 14px;
}

.admin-body .admin-notification-widget {
    position: relative;
}

.admin-body .admin-notification-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--pcmao-border);
    border-radius: 6px;
    color: var(--pcmao-dark);
    background: #ffffff;
}

.admin-body .admin-notification-toggle:hover,
.admin-body .admin-notification-toggle:focus,
.admin-body .admin-notification-toggle[aria-expanded="true"] {
    color: var(--pcmao-primary);
    border-color: #fecdd3;
    background: #fff7f8;
}

.admin-body .admin-notification-toggle svg {
    width: 20px;
    height: 20px;
}

.admin-body .admin-notification-toggle em {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--pcmao-primary);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    line-height: 18px;
}

.admin-body .admin-notification-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1055;
    width: min(360px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.14);
}

.admin-body .admin-notification-menu[hidden] {
    display: none;
}

.admin-body .admin-notification-menu-head,
.admin-body .admin-notification-sound {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--pcmao-border);
}

.admin-body .admin-notification-menu-head strong {
    font-size: 14px;
}

.admin-body .admin-notification-menu-head button,
.admin-body .admin-notification-sound button {
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid var(--pcmao-border);
    border-radius: 6px;
    color: var(--pcmao-dark);
    background: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.admin-body .admin-notification-menu-head button:hover,
.admin-body .admin-notification-sound button:hover {
    color: var(--pcmao-primary);
    border-color: #fecdd3;
    background: #fff7f8;
}

.admin-body .admin-notification-sound {
    align-items: flex-start;
    flex-wrap: wrap;
    background: #f9fafb;
}

.admin-body .admin-notification-sound small {
    flex: 0 0 100%;
    color: var(--pcmao-muted);
    line-height: 1.4;
}

.admin-body .admin-notification-sound small[data-state="error"] {
    color: #991b1b;
}

.admin-body .admin-notification-list {
    max-height: 360px;
    overflow-y: auto;
}

.admin-body .admin-notification-empty {
    padding: 16px;
    color: var(--pcmao-muted);
    font-size: 13px;
    text-align: center;
}

.admin-body .admin-notification-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--pcmao-border);
    background: #ffffff;
}

.admin-body .admin-notification-item:last-child {
    border-bottom: 0;
}

.admin-body .admin-notification-item.is-unread {
    background: #fff7f8;
}

.admin-body .admin-notification-item a {
    display: grid;
    gap: 3px;
    min-width: 0;
    color: var(--pcmao-dark);
    text-decoration: none;
}

.admin-body .admin-notification-item a:hover strong {
    color: var(--pcmao-primary);
}

.admin-body .admin-notification-item strong,
.admin-body .admin-notification-item span,
.admin-body .admin-notification-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-body .admin-notification-item strong {
    font-size: 13px;
}

.admin-body .admin-notification-item span,
.admin-body .admin-notification-item small {
    color: var(--pcmao-muted);
    font-size: 12px;
}

.admin-body .admin-notification-item button {
    align-self: center;
    min-height: 28px;
    padding: 4px 8px;
    border: 1px solid #fecdd3;
    border-radius: 6px;
    color: var(--pcmao-primary);
    background: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.admin-notification-toast-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1080;
    display: grid;
    gap: 10px;
    width: min(330px, calc(100vw - 32px));
}

.admin-notification-toast {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #fecdd3;
    border-left: 4px solid var(--pcmao-primary);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.16);
}

.admin-notification-toast strong {
    color: var(--pcmao-dark);
    font-size: 14px;
}

.admin-notification-toast span {
    color: var(--pcmao-muted);
    font-size: 13px;
}

.admin-notification-toast a {
    color: var(--pcmao-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

@media (min-width: 992px) {
    .admin-body .admin-navigation.collapse {
        display: flex !important;
    }
}

@media (max-width: 991.98px) {
    .admin-body .admin-shell {
        display: block;
    }

    .admin-body .admin-navigation {
        position: static;
        height: auto;
        padding: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .admin-body .admin-navigation.collapse:not(.show) {
        display: none;
    }

    .admin-body .admin-navigation.collapse.show {
        display: flex;
    }

    .admin-body .admin-sidebar-brand {
        display: flex;
        align-items: center;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .admin-body .admin-sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-body .admin-sidebar-footer {
        margin-top: 12px;
    }

    .admin-body .admin-topbar {
        position: sticky;
        top: 0;
        z-index: 1020;
        min-height: 60px;
        padding: 10px 14px;
    }

    .admin-body .admin-content {
        padding: 18px 14px 28px;
    }

    .admin-body .admin-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-body .admin-page-heading .btn,
    .admin-body .admin-page-heading .admin-row-actions {
        width: 100%;
    }

    .admin-body .admin-product-filter {
        grid-template-columns: 1fr 1fr;
    }

    .admin-body .admin-product-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .admin-body .admin-sidebar-nav {
        grid-template-columns: 1fr;
    }

    .admin-body .admin-topbar {
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .admin-body .admin-topbar-actions {
        align-items: center;
        flex: 1;
        flex-direction: row;
        justify-content: flex-end;
        width: auto;
    }

    .admin-body .admin-quick-link,
    .admin-body .admin-user-chip {
        width: auto;
    }

    .admin-body .admin-notification-menu {
        position: fixed;
        top: 64px;
        right: 10px;
        width: calc(100vw - 20px);
    }

    .admin-body .admin-quick-link {
        white-space: nowrap;
    }

    .admin-body .admin-user-chip div {
        display: none;
    }

    .admin-body .admin-product-filter,
    .admin-body .admin-product-filter-actions,
    .admin-body .admin-form-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .admin-body .admin-panel,
    .admin-body .admin-stat-card {
        padding: 14px;
    }

    .admin-body .admin-stat-card {
        min-height: auto;
    }

    .admin-body .admin-row-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .admin-body .admin-gallery-grid {
        grid-template-columns: 1fr;
    }

    .admin-body .admin-table {
        min-width: 680px;
    }
}

/* Trang chi tiết sản phẩm: khối override gọn, chỉ áp dụng cho storefront product detail. */
.product-detail-section > .container {
    max-width: 1220px;
}

.product-detail-section .product-breadcrumb {
    margin-bottom: 12px;
    font-size: 14px;
}

.product-detail-section .product-detail-card {
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
    gap: 18px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.04);
}

.product-detail-section .product-gallery {
    gap: 10px;
    min-width: 0;
}

.product-detail-section .product-main-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 360px;
    max-width: 100%;
    min-width: 0;
    padding: 14px;
    border-radius: 6px;
    background: #ffffff;
}

.product-detail-section .product-main-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
}

.product-detail-section .product-thumbs {
    gap: 8px;
    padding-bottom: 2px;
}

.product-detail-section .product-thumb-button {
    width: 64px;
    height: 54px;
    padding: 4px;
    border: 1px solid var(--pcmao-border);
    border-radius: 6px;
    background: #ffffff;
}

.product-detail-section .product-thumb-button:hover,
.product-detail-section .product-thumb-button:focus,
.product-detail-section .product-thumb-button.active {
    border-color: var(--pcmao-primary);
    outline: 0;
}

.product-detail-section .product-thumb-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-section .product-detail-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-detail-section .product-detail-title {
    margin-bottom: 8px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
}

.product-detail-section .product-detail-info > .text-muted {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.55;
}

.product-detail-section .detail-price-box {
    margin: 14px 0;
    padding: 12px;
    border-color: var(--pcmao-border);
    border-radius: 6px;
    background: #ffffff;
}

.product-detail-section .detail-price {
    font-size: 28px;
    font-weight: 800;
}

.product-detail-section .detail-stock {
    padding: 5px 9px;
    font-size: 13px;
}

.product-detail-section .detail-actions {
    gap: 8px;
}

.product-detail-section .detail-actions .btn {
    min-height: 42px;
    padding: 8px 12px;
    font-size: 15px;
}

.product-detail-section .detail-service-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
}

.product-detail-section .detail-service-list span {
    padding: 8px 10px;
    border-radius: 6px;
    text-align: center;
}

.product-detail-section .detail-panel {
    padding: 16px;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.04);
}

.product-detail-section .detail-panel h2,
.product-detail-section .detail-section-heading h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.product-detail-section .detail-panel p,
.product-detail-section .spec-table {
    font-size: 15px;
    line-height: 1.6;
}

.product-detail-faq,
.related-products-section {
    margin-top: 18px;
}

.detail-section-heading {
    margin-bottom: 12px;
}

.product-faq-accordion .accordion-item {
    border-color: var(--pcmao-border);
}

.product-faq-accordion .accordion-button {
    padding: 12px 14px;
    color: var(--pcmao-dark);
    background: #ffffff;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.4;
}

.product-faq-accordion .accordion-button:not(.collapsed) {
    color: var(--pcmao-primary);
    background: #fff7f8;
    box-shadow: none;
}

.product-faq-accordion .accordion-button:focus {
    border-color: #fecdd3;
    box-shadow: 0 0 0 0.18rem rgba(225, 29, 72, 0.12);
}

.product-faq-accordion .accordion-body {
    padding: 12px 14px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}

.related-products-section .product-card-compact {
    border-radius: 6px;
    box-shadow: none;
}

.related-products-section .product-card-compact .product-image {
    height: 180px;
    background: #ffffff;
}

.related-products-section .product-card-compact .product-image img {
    object-fit: contain;
    padding: 10px;
}

.related-products-section .product-card-compact .product-body {
    padding: 12px;
}

.related-products-section .product-card-compact .product-title {
    min-height: 42px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.45;
}

.related-products-section .product-card-compact .price {
    font-size: 16px;
}

/* Favorites: nút trái tim dùng form POST riêng để giữ CSRF và không đụng form giỏ hàng. */
.product-card {
    position: relative;
}

.favorite-form {
    margin: 0;
}

.product-favorite-form {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
}

.favorite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--pcmao-primary);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--pcmao-border);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.favorite-button:hover,
.favorite-button:focus {
    color: #ffffff;
    background: var(--pcmao-primary);
    border-color: var(--pcmao-primary);
    outline: 0;
}

.favorite-button.is-active {
    color: #ffffff;
    background: var(--pcmao-primary);
    border-color: var(--pcmao-primary);
}

.product-detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.product-detail-favorite-form {
    flex: 0 0 auto;
    margin-top: 2px;
}

.product-detail-favorite-form .favorite-button {
    width: 38px;
    height: 38px;
    font-size: 22px;
}

.favorites-grid .product-card {
    min-height: 100%;
}

/* Menu kênh hỗ trợ dùng chung nút Chat hỗ trợ hiện có, không tạo thêm nút nổi. */
.support-channel-menu {
    position: fixed;
    right: 18px;
    bottom: 74px;
    z-index: 82;
    display: grid;
    gap: 8px;
    width: min(280px, calc(100vw - 28px));
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--pcmao-border);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.14);
}

.support-channel-menu[hidden] {
    display: none;
}

.support-channel-item {
    display: grid;
    gap: 2px;
    width: 100%;
    padding: 10px 12px;
    color: var(--pcmao-dark);
    text-align: left;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid var(--pcmao-border);
    border-radius: 6px;
}

button.support-channel-item {
    font: inherit;
    cursor: pointer;
}

.support-channel-item strong {
    font-size: 14px;
}

.support-channel-item small {
    color: var(--pcmao-muted);
    font-size: 12px;
}

.support-channel-item:hover,
.support-channel-item:focus {
    color: var(--pcmao-primary);
    background: var(--pcmao-primary-soft);
    border-color: #fecdd3;
    outline: 0;
}

@media (max-width: 991.98px) {
    .product-detail-section .product-detail-card {
        grid-template-columns: 1fr;
    }

    .product-detail-section .product-main-image {
        height: 340px;
    }
}

@media (max-width: 575.98px) {
    .product-detail-section .product-detail-card,
    .product-detail-section .detail-panel {
        padding: 12px;
    }

    .product-detail-section .product-main-image {
        height: 250px;
        padding: 10px;
    }

    .product-detail-section .product-detail-title {
        font-size: 22px;
    }

    .product-detail-title-row {
        align-items: flex-start;
    }

    .product-detail-section .detail-price-box,
    .product-detail-section .detail-actions {
        grid-template-columns: 1fr;
    }

    .product-detail-section .detail-price {
        font-size: 24px;
    }

    .product-detail-section .detail-service-list {
        grid-template-columns: 1fr;
    }

    .product-detail-section .product-thumb-button {
        width: 58px;
        height: 48px;
    }
}

/* Thanh toán QR, ưu đãi và voucher: style gọn để giữ checkout dễ đọc. */
.payment-option-list {
    display: grid;
    gap: 10px;
}

.checkout-discount-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.promotion-hints {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--pcmao-border);
    border-radius: 6px;
    background: #f9fafb;
    color: #4b5563;
    font-size: 13px;
}

.promotion-hints span {
    display: block;
}

.cart-summary-line.is-discount,
.admin-order-total.is-discount {
    color: var(--pcmao-primary);
}

.checkout-item.is-gift,
.order-item-row.is-gift {
    background: #fff7f8;
}

.gift-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    color: var(--pcmao-primary);
    background: #ffe4e6;
    font-size: 13px;
    font-weight: 800;
}

.checkout-gift-note {
    margin: 10px 0 14px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.45;
}

.payment-qr-panel {
    overflow: hidden;
}

.payment-qr-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.payment-qr-image {
    padding: 12px;
    border: 1px solid var(--pcmao-border);
    border-radius: 6px;
    background: #ffffff;
}

.payment-qr-image img {
    width: 100%;
    height: auto;
    display: block;
}

.payment-info-list {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 8px 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.payment-info-list dt {
    color: var(--pcmao-muted);
    font-weight: 600;
}

.payment-info-list dd {
    margin: 0;
    color: var(--pcmao-dark);
}

.payment-info-list button {
    margin-left: 8px;
    padding: 3px 7px;
    border: 1px solid #fecdd3;
    border-radius: 5px;
    color: var(--pcmao-primary);
    background: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.product-offer-box {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #fecdd3;
    border-radius: 6px;
    background: #fff7f8;
    color: #4b5563;
    font-size: 14px;
}

.product-offer-box strong {
    color: var(--pcmao-dark);
}

.product-offer-box span {
    display: block;
}

.admin-payment-info {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 6px 10px;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid var(--pcmao-border);
    font-size: 13px;
}

.admin-payment-info dt {
    color: #6b7280;
    font-weight: 600;
}

.admin-payment-info dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.admin-table tr.is-gift-row td {
    background: #fff7f8;
}

@media (max-width: 767.98px) {
    .checkout-discount-box,
    .payment-qr-grid,
    .payment-info-list,
    .admin-payment-info {
        grid-template-columns: 1fr;
    }

    .payment-qr-image {
        max-width: 260px;
    }
}

/* Storefront UX 2026-09-29: thu gọn trang chủ theo hướng shop PC tối giản, không ảnh hưởng admin. */
body:not(.admin-body):not(.admin-auth-page) .site-header {
    background: #f8fafc;
}

body:not(.admin-body):not(.admin-auth-page) .desktop-header-card,
body:not(.admin-body):not(.admin-auth-page) .mobile-header-card,
body:not(.admin-body):not(.admin-auth-page) .home-banner-slider,
body:not(.admin-body):not(.admin-auth-page) .benefit-item,
body:not(.admin-body):not(.admin-auth-page) .product-card {
    border-color: var(--pcmao-border);
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.04);
}

body:not(.admin-body):not(.admin-auth-page) .header-main-row {
    min-height: 66px;
}

body:not(.admin-body):not(.admin-auth-page) .brand-logo {
    max-height: 48px;
}

body:not(.admin-body):not(.admin-auth-page) .search-box .form-control {
    min-height: 40px;
    font-size: 0.92rem;
}

body:not(.admin-body):not(.admin-auth-page) .search-submit {
    width: 44px;
}

body:not(.admin-body):not(.admin-auth-page) .header-action {
    min-height: 44px;
    padding: 6px 10px;
}

body:not(.admin-body):not(.admin-auth-page) .header-nav-row {
    min-height: 42px;
}

body:not(.admin-body):not(.admin-auth-page) .category-menu-button {
    min-height: 42px;
}

body:not(.admin-body):not(.admin-auth-page) .desktop-nav a {
    min-height: 40px;
    padding: 0 12px;
}

body:not(.admin-body):not(.admin-auth-page) .desktop-nav a:hover,
body:not(.admin-body):not(.admin-auth-page) .desktop-nav a:focus-visible,
body:not(.admin-body):not(.admin-auth-page) .mobile-menu-panel a:hover,
body:not(.admin-body):not(.admin-auth-page) .mobile-menu-panel a:focus-visible,
body:not(.admin-body):not(.admin-auth-page) .category-menu-button:hover,
body:not(.admin-body):not(.admin-auth-page) .category-menu-button:focus-visible {
    color: var(--pcmao-primary);
    background: var(--pcmao-primary-soft);
    outline: none;
}

body:not(.admin-body):not(.admin-auth-page) .home-banner-section {
    padding: 10px 0 8px;
}

body:not(.admin-body):not(.admin-auth-page) .banner-slide {
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
    gap: 18px;
    min-height: 270px;
    padding: 22px 30px 36px;
    background: #ffffff;
}

body:not(.admin-body):not(.admin-auth-page) .banner-content {
    min-width: 0;
}

body:not(.admin-body):not(.admin-auth-page) .banner-title {
    max-width: 500px;
    font-size: clamp(1.65rem, 2.2vw, 2rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

body:not(.admin-body):not(.admin-auth-page) .banner-subtitle {
    max-width: 500px;
    color: var(--pcmao-muted);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

body:not(.admin-body):not(.admin-auth-page) .banner-media img {
    width: min(100%, 300px);
    max-height: 220px;
}

body:not(.admin-body):not(.admin-auth-page) .home-banner-slider .btn,
body:not(.admin-body):not(.admin-auth-page) .cta-button {
    min-height: 40px;
    padding: 0.48rem 0.85rem;
    font-size: 0.88rem;
}

body:not(.admin-body):not(.admin-auth-page) .home-banner-slider .carousel-control-prev,
body:not(.admin-body):not(.admin-auth-page) .home-banner-slider .carousel-control-next {
    width: 32px;
}

body:not(.admin-body):not(.admin-auth-page) .store-benefits {
    padding: 8px 0;
}

body:not(.admin-body):not(.admin-auth-page) .benefit-item {
    min-height: 58px;
    padding: 9px 12px;
}

body:not(.admin-body):not(.admin-auth-page) .benefit-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    color: var(--pcmao-primary);
    background: #fff1f2;
}

body:not(.admin-body):not(.admin-auth-page) .benefit-icon svg {
    width: 18px;
    height: 18px;
}

body:not(.admin-body):not(.admin-auth-page) .store-section {
    padding: 14px 0 32px;
}

body:not(.admin-body):not(.admin-auth-page) .home-section-heading .h3 {
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    font-weight: 750;
}

body:not(.admin-body):not(.admin-auth-page) .home-product-grid {
    --bs-gutter-x: 0.9rem;
    --bs-gutter-y: 0.9rem;
}

body:not(.admin-body):not(.admin-auth-page) .product-card {
    background: #ffffff;
}

body:not(.admin-body):not(.admin-auth-page) .product-card:hover {
    border-color: #fecdd3;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.07);
}

body:not(.admin-body):not(.admin-auth-page) .product-image {
    height: 178px;
    padding: 10px;
}

body:not(.admin-body):not(.admin-auth-page) .product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

body:not(.admin-body):not(.admin-auth-page) .product-title a {
    color: inherit;
    text-decoration: none;
}

body:not(.admin-body):not(.admin-auth-page) .product-title a:hover,
body:not(.admin-body):not(.admin-auth-page) .product-title a:focus-visible {
    color: var(--pcmao-primary);
    outline: none;
}

body:not(.admin-body):not(.admin-auth-page) .product-actions .btn {
    min-height: 36px;
}

body:not(.admin-body):not(.admin-auth-page) .product-actions .btn:focus-visible,
body:not(.admin-body):not(.admin-auth-page) .favorite-button:focus-visible,
body:not(.admin-body):not(.admin-auth-page) .support-chat-trigger:focus-visible {
    outline: 3px solid rgba(225, 29, 72, 0.18);
    outline-offset: 2px;
}

body:not(.admin-body):not(.admin-auth-page) .site-footer .row.py-5 {
    padding-top: 1.6rem !important;
    padding-bottom: 1.6rem !important;
}

body:not(.admin-body):not(.admin-auth-page) .footer-title {
    color: var(--pcmao-dark);
}

body:not(.admin-body):not(.admin-auth-page) .support-chat-trigger {
    min-height: 42px;
    padding: 7px 10px 7px 7px;
}

@media (max-width: 991.98px) {
    body:not(.admin-body):not(.admin-auth-page) .banner-slide {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px 22px 38px;
    }

    body:not(.admin-body):not(.admin-auth-page) .banner-media img {
        max-height: 170px;
    }
}

@media (max-width: 575.98px) {
    body:not(.admin-body):not(.admin-auth-page) .mobile-header-card {
        min-height: 56px;
    }

    body:not(.admin-body):not(.admin-auth-page) .brand-logo {
        max-height: 36px;
    }

    body:not(.admin-body):not(.admin-auth-page) .home-banner-section {
        padding-top: 8px;
    }

    body:not(.admin-body):not(.admin-auth-page) .banner-slide {
        padding: 18px 16px 36px;
    }

    body:not(.admin-body):not(.admin-auth-page) .banner-title {
        font-size: 1.38rem;
    }

    body:not(.admin-body):not(.admin-auth-page) .banner-content,
    body:not(.admin-body):not(.admin-auth-page) .banner-subtitle {
        width: 100%;
        max-width: 100%;
    }

    body:not(.admin-body):not(.admin-auth-page) .banner-subtitle {
        display: none;
    }

    body:not(.admin-body):not(.admin-auth-page) .banner-media img {
        max-height: 145px;
    }

    body:not(.admin-body):not(.admin-auth-page) .benefit-item {
        min-height: 54px;
    }

    body:not(.admin-body):not(.admin-auth-page) .product-image {
        height: 168px;
    }

    body:not(.admin-body):not(.admin-auth-page) .product-actions .btn {
        min-height: 40px;
    }

    body:not(.admin-body):not(.admin-auth-page) .site-footer .row.py-5 {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    body:not(.admin-body):not(.admin-auth-page) .support-chat-trigger {
        right: 12px;
        bottom: 12px;
        width: 46px;
        min-height: 46px;
        padding: 7px;
        border-radius: 999px;
    }

    body:not(.admin-body):not(.admin-auth-page) .support-chat-trigger-text {
        display: none;
    }
}

/* Storefront compact pass 2026-09-29: một hàng header, sản phẩm lên trước, mobile 2 cột. */
body:not(.admin-body):not(.admin-auth-page) .desktop-header {
    padding: 10px 0;
}

body:not(.admin-body):not(.admin-auth-page) .desktop-header-card {
    overflow: visible;
    border-radius: 6px;
}

body:not(.admin-body):not(.admin-auth-page) .header-main-row {
    display: grid;
    grid-template-columns: 128px 150px minmax(280px, 1fr) auto;
    gap: 10px;
    min-height: 62px;
    padding: 8px 12px;
}

body:not(.admin-body):not(.admin-auth-page) .header-main-row .brand-link {
    justify-content: flex-start;
    min-width: 0;
    min-height: 44px;
}

body:not(.admin-body):not(.admin-auth-page) .header-main-row .brand-logo {
    width: auto;
    max-width: 118px;
    height: 44px;
    object-fit: contain;
}

body:not(.admin-body):not(.admin-auth-page) .desktop-search-form,
body:not(.admin-body):not(.admin-auth-page) .search-box {
    min-width: 0;
}

body:not(.admin-body):not(.admin-auth-page) .desktop-search-form .search-box {
    min-height: 42px;
}

body:not(.admin-body):not(.admin-auth-page) .desktop-search-form .form-control {
    min-width: 0;
    min-height: 42px;
}

body:not(.admin-body):not(.admin-auth-page) .desktop-search-form .search-submit {
    flex-basis: 44px;
    width: 44px;
}

body:not(.admin-body):not(.admin-auth-page) .category-dropdown {
    min-width: 0;
}

body:not(.admin-body):not(.admin-auth-page) .category-menu-button {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    text-transform: none;
}

body:not(.admin-body):not(.admin-auth-page) .desktop-header .dropdown-menu {
    z-index: 1050;
}

body:not(.admin-body):not(.admin-auth-page) .category-dropdown-menu {
    max-height: min(420px, calc(100vh - 140px));
    overflow-y: auto;
}

body:not(.admin-body):not(.admin-auth-page) .account-dropdown {
    position: relative;
}

body:not(.admin-body):not(.admin-auth-page) .account-toggle {
    border: 1px solid transparent;
    background: transparent;
}

body:not(.admin-body):not(.admin-auth-page) .account-dropdown-menu {
    min-width: 210px;
    padding: 6px;
    border-color: var(--pcmao-border);
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
}

body:not(.admin-body):not(.admin-auth-page) .account-logout-form {
    margin: 0;
}

body:not(.admin-body):not(.admin-auth-page) .header-actions {
    gap: 4px;
    white-space: nowrap;
}

body:not(.admin-body):not(.admin-auth-page) .header-action {
    min-height: 42px;
    padding: 5px 8px;
    border-left: 0;
    border-radius: 6px;
}

body:not(.admin-body):not(.admin-auth-page) .header-action strong {
    font-size: 0.86rem;
}

body:not(.admin-body):not(.admin-auth-page) .header-action small {
    font-size: 0.74rem;
}

body:not(.admin-body):not(.admin-auth-page) .header-nav-row,
body:not(.admin-body):not(.admin-auth-page) .desktop-nav {
    display: none;
}

body:not(.admin-body):not(.admin-auth-page) .mobile-header {
    padding: 8px 0;
}

body:not(.admin-body):not(.admin-auth-page) .mobile-header-card {
    grid-template-columns: 44px 1fr 44px;
    min-height: 54px;
    overflow: visible;
}

body:not(.admin-body):not(.admin-auth-page) .mobile-icon-button {
    width: 44px;
    min-height: 44px;
}

body:not(.admin-body):not(.admin-auth-page) .mobile-brand .brand-logo {
    width: auto;
    max-width: 100px;
    height: 34px;
    object-fit: contain;
}

body:not(.admin-body):not(.admin-auth-page) .mobile-search-row {
    margin-top: 8px;
}

body:not(.admin-body):not(.admin-auth-page) .mobile-search-form {
    margin-top: 0;
}

body:not(.admin-body):not(.admin-auth-page) .mobile-search-form .search-box {
    min-height: 42px;
}

body:not(.admin-body):not(.admin-auth-page) .mobile-search-form .form-control {
    min-height: 42px;
    font-size: 0.92rem;
}

body:not(.admin-body):not(.admin-auth-page) .mobile-search-form .search-submit {
    flex-basis: 44px;
}

body:not(.admin-body):not(.admin-auth-page) .mobile-menu-panel {
    margin-top: 8px;
}

body:not(.admin-body):not(.admin-auth-page) .home-banner-section {
    padding: 8px 0 6px;
}

body:not(.admin-body):not(.admin-auth-page) .banner-slide {
    grid-template-columns: minmax(0, 1.08fr) minmax(220px, 0.92fr);
    min-height: 238px;
    padding: 18px 28px 28px;
}

body:not(.admin-body):not(.admin-auth-page) .banner-title {
    max-width: 440px;
    font-size: clamp(1.55rem, 2vw, 1.85rem);
}

body:not(.admin-body):not(.admin-auth-page) .banner-subtitle {
    margin-bottom: 12px !important;
    font-size: 0.9rem;
}

body:not(.admin-body):not(.admin-auth-page) .banner-media img {
    width: min(100%, 280px);
    max-height: 190px;
    border-radius: 6px;
    object-fit: contain;
}

body:not(.admin-body):not(.admin-auth-page) .home-banner-slider .carousel-control-prev,
body:not(.admin-body):not(.admin-auth-page) .home-banner-slider .carousel-control-next {
    width: 28px;
}

body:not(.admin-body):not(.admin-auth-page) .home-banner-slider .carousel-indicators {
    bottom: 8px;
}

body:not(.admin-body):not(.admin-auth-page) .benefit-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 12px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--pcmao-border);
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    font-size: 0.92rem;
    font-weight: 700;
}

body:not(.admin-body):not(.admin-auth-page) .benefit-strip span:not(:last-child)::after {
    content: "·";
    margin-left: 12px;
    color: var(--pcmao-primary);
}

body:not(.admin-body):not(.admin-auth-page) .store-section {
    padding-top: 12px;
}

body:not(.admin-body):not(.admin-auth-page) .home-section-heading {
    margin-bottom: 12px !important;
}

body:not(.admin-body):not(.admin-auth-page) .home-section-heading .h3 {
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}

body:not(.admin-body):not(.admin-auth-page) .home-product-grid {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

body:not(.admin-body):not(.admin-auth-page) .product-card {
    overflow: hidden;
}

body:not(.admin-body):not(.admin-auth-page) .product-image {
    height: 170px;
    padding: 10px;
}

body:not(.admin-body):not(.admin-auth-page) .product-body {
    gap: 7px;
    padding: 11px;
}

body:not(.admin-body):not(.admin-auth-page) .product-meta {
    color: var(--pcmao-muted);
    font-size: 0.72rem;
}

body:not(.admin-body):not(.admin-auth-page) .product-title {
    min-height: 2.55em;
    font-size: 0.92rem;
    line-height: 1.32;
}

body:not(.admin-body):not(.admin-auth-page) .product-spec-summary {
    display: -webkit-box;
    min-height: 2.7em;
    overflow: hidden;
    color: #4b5563;
    font-size: 0.8rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body:not(.admin-body):not(.admin-auth-page) .spec-list {
    display: none;
}

body:not(.admin-body):not(.admin-auth-page) .product-price-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 5px;
    padding-top: 8px;
}

body:not(.admin-body):not(.admin-auth-page) .price {
    color: var(--pcmao-primary);
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
}

body:not(.admin-body):not(.admin-auth-page) .old-price {
    font-size: 0.76rem;
}

body:not(.admin-body):not(.admin-auth-page) .stock-status {
    font-size: 0.73rem;
}

body:not(.admin-body):not(.admin-auth-page) .product-actions {
    grid-template-columns: 1fr;
    margin-top: 8px;
}

body:not(.admin-body):not(.admin-auth-page) .product-actions form {
    min-width: 0;
}

body:not(.admin-body):not(.admin-auth-page) .product-actions .btn {
    min-height: 40px;
    padding: 0.45rem 0.55rem;
    font-size: 0.84rem;
}

body:not(.admin-body):not(.admin-auth-page) .product-card.is-out-of-stock .product-actions .btn,
body:not(.admin-body):not(.admin-auth-page) .product-actions .btn:disabled {
    color: #6b7280;
    border-color: var(--pcmao-border);
    background: #f3f4f6;
    opacity: 1;
}

body:not(.admin-body):not(.admin-auth-page) .product-badge {
    background: #6b7280;
}

body:not(.admin-body):not(.admin-auth-page) .site-footer .row.py-5 {
    padding-top: 1.4rem !important;
    padding-bottom: 1.2rem !important;
}

body:not(.admin-body):not(.admin-auth-page) .footer-bottom {
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
}

@media (max-width: 1199.98px) {
    body:not(.admin-body):not(.admin-auth-page) .header-main-row {
        grid-template-columns: 118px 138px minmax(240px, 1fr) auto;
    }

    body:not(.admin-body):not(.admin-auth-page) .header-action span small {
        display: none;
    }
}

@media (max-width: 575.98px) {
    body:not(.admin-body):not(.admin-auth-page) .banner-slide {
        grid-template-columns: minmax(0, 1fr) 112px;
        gap: 10px;
        min-height: 150px;
        padding: 12px 14px 24px;
    }

    body:not(.admin-body):not(.admin-auth-page) .banner-content .section-kicker,
    body:not(.admin-body):not(.admin-auth-page) .banner-subtitle {
        display: none;
    }

    body:not(.admin-body):not(.admin-auth-page) .banner-title {
        margin-bottom: 10px !important;
        font-size: 1.12rem;
        line-height: 1.25;
    }

    body:not(.admin-body):not(.admin-auth-page) .home-banner-slider .btn,
    body:not(.admin-body):not(.admin-auth-page) .cta-button {
        min-height: 38px;
        padding: 0.45rem 0.7rem;
        font-size: 0.82rem;
    }

    body:not(.admin-body):not(.admin-auth-page) .banner-media img {
        width: 112px;
        max-height: 102px;
    }

    body:not(.admin-body):not(.admin-auth-page) .benefit-strip {
        justify-content: flex-start;
        gap: 4px 6px;
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    body:not(.admin-body):not(.admin-auth-page) .benefit-strip span {
        min-width: 0;
    }

    body:not(.admin-body):not(.admin-auth-page) .benefit-strip span:not(:last-child)::after {
        margin-left: 6px;
    }

    body:not(.admin-body):not(.admin-auth-page) .home-section-heading {
        align-items: flex-start !important;
    }

    body:not(.admin-body):not(.admin-auth-page) .home-section-heading .btn {
        width: auto;
        min-height: 36px;
        padding: 0.38rem 0.75rem;
    }

    body:not(.admin-body):not(.admin-auth-page) .home-product-grid {
        --bs-gutter-x: 0.55rem;
        --bs-gutter-y: 0.65rem;
    }

    body:not(.admin-body):not(.admin-auth-page) .home-product-grid > [class*="col"] {
        min-width: 0;
    }

    body:not(.admin-body):not(.admin-auth-page) .product-card,
    body:not(.admin-body):not(.admin-auth-page) .product-body,
    body:not(.admin-body):not(.admin-auth-page) .product-price-row > div {
        min-width: 0;
    }

    body:not(.admin-body):not(.admin-auth-page) .product-image {
        height: 126px;
        padding: 8px;
    }

    body:not(.admin-body):not(.admin-auth-page) .favorite-button {
        width: 34px;
        height: 34px;
    }

    body:not(.admin-body):not(.admin-auth-page) .product-body {
        padding: 9px;
    }

    body:not(.admin-body):not(.admin-auth-page) .product-meta {
        font-size: 0.68rem;
    }

    body:not(.admin-body):not(.admin-auth-page) .product-title {
        font-size: 0.82rem;
        overflow-wrap: anywhere;
    }

    body:not(.admin-body):not(.admin-auth-page) .product-spec-summary {
        font-size: 0.73rem;
        overflow-wrap: anywhere;
    }

    body:not(.admin-body):not(.admin-auth-page) .price {
        font-size: 0.9rem;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    body:not(.admin-body):not(.admin-auth-page) .old-price,
    body:not(.admin-body):not(.admin-auth-page) .stock-status {
        font-size: 0.68rem;
        white-space: normal;
    }

    body:not(.admin-body):not(.admin-auth-page) .product-actions .btn {
        min-height: 38px;
        font-size: 0.78rem;
    }

    body:not(.admin-body):not(.admin-auth-page) .support-chat-trigger {
        width: 42px;
        min-height: 42px;
    }

    body:not(.admin-body):not(.admin-auth-page) .support-chat-trigger-icon {
        width: 28px;
        height: 28px;
    }

    body:not(.admin-body):not(.admin-auth-page) .category-dropdown-menu {
        max-height: min(320px, calc(100vh - 180px));
    }
}
