body {
    margin: 0;
    font-family: "Inter", "Segoe UI", sans-serif;
    background: #f7f9fb;
    color: #191c1e;
}

.container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: #6e1b22;
    color: #fff;
    padding: 16px 0;
}

.site-header .container,
nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-header .container {
    justify-content: space-between;
}

.brand,
nav a,
nav button {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

main.container {
    padding: 32px 0;
}

.hero {
    background: linear-gradient(135deg, #f4eaea, #ffffff);
    padding: 40px;
    border-radius: 16px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #8f555a;
    margin: 0;
    font-size: 11px;
    font-weight: 700;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 12px;
    border-bottom: 1px solid #e8edf3;
    text-align: left;
}

.table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #657183;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.form-grid .wide {
    grid-column: 1 / -1;
}

input,
textarea,
button {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    box-sizing: border-box;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    background: #6e1b22;
    color: #fff;
    border: none;
    text-decoration: none;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 700;
    padding: 10px 14px;
}

.button-soft {
    background: #e7edf7;
    color: #12223d;
}

.inline-form {
    display: inline;
}

.admin-page {
    display: grid;
    gap: 20px;
}

.page-actions,
.filters-bar,
.admin-panels,
.stats-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.filters-bar {
    justify-content: flex-start;
    background: #fff;
    border: 1px solid #e1e8f2;
    border-radius: 14px;
    padding: 12px;
}

.filters-bar input,
.filters-bar select {
    min-width: 220px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card,
.panel {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e1e8f2;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 14px 40px rgba(20, 25, 35, 0.05);
}

.stat-label,
.muted {
    color: #657183;
}

.stat-card {
    display: grid;
    gap: 6px;
}

.stat-value {
    font-size: 1.8rem;
    font-family: "Manrope", sans-serif;
}

.admin-panels {
    align-items: stretch;
}

.admin-panels .panel {
    flex: 1 1 320px;
}

.quality-list,
.image-paths {
    margin: 0;
    padding-left: 18px;
}

.status-banner,
.validation-summary {
    background: #fbeef0;
    border: 1px solid #efc5cc;
    color: #6e1b22;
    border-radius: 10px;
    padding: 12px 14px;
}

.validation-summary:empty {
    display: none;
}

.checkbox-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.checkbox-row input {
    width: auto;
}

.checkbox-row label {
    margin: 0;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

select {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    box-sizing: border-box;
}

.admin-shell {
    background: radial-gradient(circle at top left, #f6e8ea, #fbf7f7 42%, #f8f2f2 100%);
}

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

.admin-sidebar {
    background: linear-gradient(180deg, #521317 0%, #24090b 100%);
    color: #e7edf7;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-right: 1px solid #6d242b;
}

.admin-brand-block {
    display: grid;
    gap: 10px;
}

.admin-brand-block .muted {
    color: #d6b4b8;
    margin: 0;
    font-size: 13px;
}

.admin-brand {
    display: block;
    color: #fff;
    text-decoration: none;
    font-family: "Manrope", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

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

.admin-nav a,
.admin-logout button {
    border-radius: 12px;
    padding: 11px 12px;
    text-decoration: none;
    color: inherit;
    background: transparent;
    border: 1px solid transparent;
    text-align: left;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.admin-nav a .material-symbols-outlined,
.admin-logout .material-symbols-outlined {
    font-size: 19px;
}

.admin-nav a:hover,
.admin-logout button:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.11);
}

.admin-nav a.is-active {
    background: linear-gradient(135deg, #8b1e26, #65171d);
    border-color: rgba(219, 131, 141, 0.55);
    color: #fff;
    box-shadow: 0 12px 26px rgba(110, 27, 34, 0.34);
}

.nav-group-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #c4949a;
    margin-top: 16px;
    margin-bottom: 2px;
    padding-left: 12px;
    font-weight: 800;
}

.nav-sep {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

.admin-logout {
    margin-top: auto;
}

.admin-content-wrap {
    min-width: 0;
}

.admin-topbar {
    padding: 24px 30px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.admin-topbar h1 {
    margin: 6px 0 0;
    font-family: "Manrope", sans-serif;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -.03em;
}

.topbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-content {
    padding: 22px 30px 40px;
}

.quality-list li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f5;
}

.quality-list li:last-child {
    border-bottom: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.status-live {
    background: #dff5e7;
    color: #0f6b3b;
}

.status-muted {
    background: #eef2f6;
    color: #5f6b7a;
}

.pagination-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.pagination-link {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #d8e2ee;
    color: #1f2b3d;
    font-weight: 700;
    text-decoration: none;
}

.pagination-link:hover {
    border-color: #92a7c5;
}

.pagination-link.is-active {
    background: #6e1b22;
    border-color: #6e1b22;
    color: #fff;
}

.nav-highlight {
    background: rgba(255, 215, 0, 0.08) !important;
    border-color: rgba(255, 215, 100, 0.2) !important;
    color: #ffd86f !important;
}

.nav-highlight:hover {
    background: rgba(255, 215, 0, 0.15) !important;
}

.safe-rich-text {
    white-space: pre-line;
    word-break: break-word;
}

.bg-primary {
    background-color: #6e1b22;
}

.bg-primary\/10 {
    background-color: rgba(110, 27, 34, 0.1);
}

.text-primary {
    color: #6e1b22;
}

.shadow-primary\/30 {
    box-shadow: 0 20px 40px rgba(110, 27, 34, 0.3);
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover\:-translate-y-1:hover {
    transform: translateY(-4px);
}

@media (max-width: 980px) {
    .admin-frame {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        border-right: 0;
        border-bottom: 1px solid #1f3458;
    }

    .admin-topbar,
    .admin-content {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .site-header .container,
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-actions,
    .filters-bar {
        align-items: stretch;
    }

    .filters-bar input,
    .filters-bar select {
        min-width: 100%;
    }

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

/* Storefront motion + hero slider */
.reveal-up {
    animation: revealUp 700ms ease both;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 740px;
    background: #3f0f16;
}

.hero-track {
    display: flex;
    transition: transform 700ms ease;
    height: 100%;
}

.hero-slide {
    position: relative;
    min-width: 100%;
    min-height: 740px;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(118deg, rgba(33, 7, 11, .82) 0%, rgba(88, 20, 29, .64) 48%, rgba(143, 34, 47, .34) 100%);
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
    min-height: 740px;
    display: flex;
    align-items: center;
    width: min(1220px, calc(100% - 48px));
    margin: 0 auto;
}

.hero-card {
    width: min(640px, 100%);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 28px;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 32px 80px rgba(5, 19, 31, .35);
    padding: 36px;
    backdrop-filter: blur(9px);
}

.hero-kicker {
    display: block;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .2em;
}

.hero-card h1 {
    margin: 0 0 14px;
    color: #fff;
    font-family: "Manrope", sans-serif;
    font-size: clamp(2rem, 4.8vw, 4rem);
    line-height: 1.05;
}

.hero-card p {
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 1.08rem;
    line-height: 1.7;
    max-width: 90%;
}

.hero-actions {
    margin-top: 26px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 13px 22px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 12px;
    font-weight: 800;
    transition: all .25s ease;
}

.hero-btn-primary {
    background: #fff4f4;
    color: #8b1e26;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(91, 17, 26, .24);
}

.hero-btn-ghost {
    border: 1px solid rgba(255, 255, 255, .36);
    color: #fff;
}

.hero-btn-ghost:hover {
    background: rgba(255, 255, 255, .14);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(67, 16, 24, .48);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
}

.hero-arrow:hover {
    background: rgba(98, 24, 34, .78);
}

.hero-arrow-left {
    left: 18px;
}

.hero-arrow-right {
    right: 18px;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: all .2s ease;
}

.hero-dot.is-active {
    width: 30px;
    background: #fff;
}

.brand-marquee-shell {
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.brand-marquee-title {
    margin: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: #8f555a;
    font-weight: 700;
}

.brand-marquee {
    overflow: hidden;
    padding: 18px 0 24px;
}

.brand-marquee-track {
    display: flex;
    width: max-content;
    animation: brandMarqueeMove var(--brand-marquee-duration, 90s) linear infinite;
    will-change: transform;
}

.brand-marquee-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 10px;
}

.brand-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 999px;
    border: 1px solid #ead7da;
    background: #fff;
    color: #47262b;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    padding: 12px 22px;
    white-space: nowrap;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
    box-shadow: 0 10px 24px rgba(110, 27, 34, 0.06);
}

.brand-marquee-item:hover {
    border-color: #8b1e26;
    color: #8b1e26;
    transform: translateY(-1px);
}

.brand-marquee-item img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(var(--product-grid-columns, 4), minmax(0, 1fr)) !important;
    gap: 2rem;
    align-items: start;
}

.floating-contact {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    display: grid;
    gap: 12px;
}

.floating-contact__item {
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(43, 12, 16, 0.2);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.floating-contact__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(43, 12, 16, 0.26);
}

.floating-contact__item svg {
    width: 24px;
    height: 24px;
}

.floating-contact__item--facebook {
    background: linear-gradient(135deg, #8b1e26, #5a1318);
}

.floating-contact__item--zalo {
    background: linear-gradient(135deg, #8b1e26, #5a1318);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.zalo-popup {
    position: fixed;
    right: 88px;
    bottom: 24px;
    z-index: 61;
    min-width: 240px;
    border: 1px solid #ead7da;
    border-radius: 18px;
    background: rgba(255, 250, 250, 0.98);
    box-shadow: 0 20px 48px rgba(43, 12, 16, 0.16);
    padding: 18px 18px 16px;
}

.zalo-popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 0;
    background: #f8e8ea;
    color: #8b1e26;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.zalo-popup__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9f7579;
}

.zalo-popup__phone {
    margin-top: 10px;
    font-size: 24px;
    font-weight: 800;
    color: #3f171b;
}

@keyframes brandMarqueeMove {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-1 * var(--brand-marquee-shift, 50%)));
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-marquee-track {
        animation: none;
    }
}

@media (max-width: 840px) {

    .hero-slider,
    .hero-slide,
    .hero-content-wrap {
        min-height: 620px;
    }

    .hero-card {
        padding: 24px;
        border-radius: 20px;
    }

    .hero-card p {
        max-width: 100%;
        font-size: 1rem;
    }

    .hero-arrow {
        width: 32px;
        height: 32px;
    }

    .hero-arrow-left {
        left: 10px;
    }

    .hero-arrow-right {
        right: 10px;
    }

    .floating-contact {
        right: 14px;
        bottom: 14px;
    }

    .zalo-popup {
        right: 14px;
        bottom: 82px;
        min-width: 220px;
    }
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 520px) {
    .product-grid {
        grid-template-columns: 1fr !important;
    }
}
