/* ==============================
   LUXURYHOME - CSS DÙNG CHUNG
   Bao gồm: Storefront (index/khach), Đăng nhập, Quản trị Admin
============================== */

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

:root {
    --brown-dark: #382c22;
    --brown-main: #79552f;
    --gold-main: #bd955c;
    --gold-dark: #a87639;
    --bg-cream: #faf8f4;
    --bg-sand: #f4f0e9;
    --bg-admin: #f5f3ef;
    --border-soft: #e7dfd4;
    --text-muted: #7a6e63;
    --danger: #b84b3d;
    --success: #2e7d4f;
    --warning: #c87d19;
    --info: #2d6a9f;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 3px 14px rgba(56, 44, 34, 0.06);
    --shadow-md: 0 10px 30px rgba(56, 44, 34, 0.11);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
    background: var(--bg-cream);
    color: var(--brown-dark);
    line-height: 1.5;
}

button, input, select, textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

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

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

/* ==============================
   TOAST THÔNG BÁO
============================== */
.toast-container {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: var(--brown-dark);
    color: #fff;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    border-left: 4px solid var(--gold-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    animation: slideInToast 0.25s ease;
}

.toast.success { border-left-color: #4caf50; }
.toast.error { border-left-color: #e5534b; }
.toast.info { border-left-color: var(--gold-main); }

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

/* ==============================
   TRANG ĐĂNG NHẬP / ĐĂNG KÝ
============================== */
body.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #2d2219, #79552f 55%, #bd955c);
    color: var(--brown-dark);
}

.login-box {
    width: min(100%, 470px);
    background: #fff;
    border-radius: 20px;
    padding: 34px;
    box-shadow: 0 20px 60px rgba(28, 18, 12, 0.38);
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brown-main);
    margin-bottom: 14px;
}

.back-home-link:hover {
    color: var(--gold-dark);
}

.brand-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #f4eee5;
    font-size: 32px;
}

.login-box h2 {
    text-align: center;
    color: var(--brown-main);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 1px;
}

.login-box h2 span {
    color: var(--gold-main);
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin: 6px 0 22px;
}

.role-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.role-btn {
    border: 1px solid var(--border-soft);
    background: var(--bg-cream);
    color: var(--brown-main);
    border-radius: 9px;
    padding: 12px;
    font-weight: 700;
    font-size: 13.5px;
    transition: 0.2s;
}

.role-btn.active {
    background: var(--brown-main);
    color: #fff;
    border-color: var(--brown-main);
}

.auth-mode-tabs {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 14px;
    font-size: 13.5px;
}

.auth-mode-tabs label {
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-alert {
    display: none;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: #fdecea;
    color: #b71c1c;
    border: 1px solid #f5c6cb;
}

.auth-alert.success {
    background: #eaf7ef;
    color: #1f6b3d;
    border-color: #b9e2c8;
}

.input-group {
    margin: 14px 0;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.password-wrap {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.password-wrap input {
    padding-right: 44px;
}

.toggle-pass-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-muted);
    padding: 4px;
}

.input-group input:focus {
    border-color: var(--gold-main);
    box-shadow: 0 0 0 3px rgba(189, 149, 92, 0.16);
}

.btn-primary {
    width: 100%;
    border: 0;
    border-radius: 9px;
    padding: 13px;
    background: var(--brown-main);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    margin-top: 8px;
    transition: 0.2s;
}

.btn-primary:hover {
    background: var(--gold-main);
}

.btn-secondary-outline {
    width: 100%;
    border: 1px dashed var(--gold-main);
    border-radius: 9px;
    padding: 10px;
    background: #faf6ee;
    color: var(--brown-main);
    font-weight: 600;
    font-size: 12.5px;
    margin-top: 10px;
    transition: 0.2s;
}

.btn-secondary-outline:hover {
    background: #f1e8d9;
}

.hint {
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-cream);
    border-radius: 8px;
    color: #7c6853;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.65;
}

.login-footer {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: #888;
}

/* ==============================
   GIAO DIỆN QUẢN TRỊ ADMIN
============================== */
body.admin-body {
    background: var(--bg-admin);
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    background: var(--brown-dark);
    color: #fff;
    padding: 26px 18px;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar h2 {
    text-align: center;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.sidebar h2 span {
    color: var(--gold-main);
}

.sidebar p {
    text-align: center;
    color: #c7b8a5;
    font-size: 11px;
    letter-spacing: 1px;
    margin: 6px 0 30px;
}

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

.sidebar nav button,
.sidebar-link,
.logout {
    border: 0;
    padding: 12px 14px;
    border-radius: 8px;
    text-align: left;
    background: transparent;
    color: #eee5d9;
    font: 600 13.5px inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.2s;
}

.sidebar nav button.active,
.sidebar nav button:hover,
.sidebar-link:hover {
    background: var(--brown-main);
    color: #fff;
}

.nav-badge {
    background: var(--gold-main);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
}

.sidebar-bottom {
    margin-top: auto;
    display: grid;
    gap: 8px;
}

.sidebar-link {
    background: rgba(255, 255, 255, 0.07);
    justify-content: center;
}

.logout {
    background: #a84d3c;
    justify-content: center;
    color: #fff;
}

.logout:hover {
    background: #8e3c2d;
}

.main {
    margin-left: 250px;
    padding: 28px 32px;
    max-width: 1550px;
}

.main header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    background: #fff;
    padding: 18px 22px;
    border-radius: 13px;
    box-shadow: var(--shadow-sm);
}

.main header small {
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
}

.main h1 {
    margin-top: 4px;
    font-size: 24px;
}

.admin-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-cream);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brown-main);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.stats article,
.panel {
    background: #fff;
    padding: 22px;
    border-radius: 13px;
    box-shadow: var(--shadow-sm);
}

.stats article {
    border-top: 3px solid var(--gold-main);
}

.stats span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.stats strong {
    display: block;
    color: var(--brown-main);
    font-size: 24px;
    margin-top: 8px;
}

.stats small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #998c7e;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 18px;
}

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

.cat-stat-row {
    display: grid;
    gap: 6px;
    font-size: 13px;
}

.cat-stat-top {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.cat-stat-bar {
    height: 8px;
    background: #efeae2;
    border-radius: 99px;
    overflow: hidden;
}

.cat-stat-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--brown-main), var(--gold-main));
    border-radius: 99px;
}

.panel h2 {
    font-size: 18px;
    margin-bottom: 16px;
}

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

.panel-head h2 {
    margin-bottom: 0;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-toolbar input,
.admin-toolbar select {
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 13px;
    outline: none;
    background: #fff;
}

.admin-toolbar input {
    min-width: 240px;
    flex: 1;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.table-wrap {
    overflow: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 680px;
}

th, td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    vertical-align: middle;
}

th {
    background: var(--bg-cream);
    color: var(--brown-main);
    font-weight: 700;
}

td img {
    width: 52px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    background: #f0ebe2;
}

.primary {
    border: 0;
    background: var(--brown-main);
    color: #fff;
    padding: 10px 15px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 13px;
    transition: 0.2s;
}

.primary:hover {
    background: var(--gold-main);
}

.btn-outline {
    border: 1px solid #d9cfc2;
    background: #fff;
    color: var(--brown-dark);
    padding: 9px 14px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 13px;
}

.btn-outline:hover {
    background: var(--bg-cream);
}

.danger {
    border: 0;
    background: var(--danger);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.edit {
    border: 0;
    background: var(--gold-main);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 4px;
}

.btn-view {
    border: 1px solid var(--border-soft);
    background: var(--bg-cream);
    color: var(--brown-main);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.product-form {
    display: none;
    background: var(--bg-cream);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 18px;
    border: 1px solid var(--border-soft);
}

.product-form.show {
    display: block;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-grid label {
    font-size: 13px;
    font-weight: 700;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 7px;
    margin-top: 6px;
    font: inherit;
    font-size: 13.5px;
    background: #fff;
}

.form-grid textarea {
    min-height: 76px;
    resize: vertical;
}

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

.actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.actions button[type=button] {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 7px;
    padding: 10px 16px;
}

.status-select {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    background: #fff;
}

.badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-pending { background: #fff4e0; color: #a76309; }
.badge-shipping { background: #e6f2fc; color: #1b5c94; }
.badge-done { background: #e6f6ec; color: #1e6e3e; }
.badge-cancel { background: #fdecea; color: #a83226; }

/* ==============================
   GIAO DIỆN KHÁCH HÀNG (STOREFRONT)
============================== */
.header {
    width: 100%;
    min-height: 78px;
    padding: 10px 6%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--brown-main);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.logo span,
.footer span {
    color: var(--gold-main);
}

.navbar {
    display: flex;
    gap: 24px;
}

.navbar a {
    color: #514234;
    font-size: 14px;
    font-weight: 600;
    transition: 0.25s;
}

.navbar a:hover {
    color: var(--gold-dark);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cart-button,
.user-button,
.orders-button {
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.cart-button {
    background: var(--brown-main);
    color: #fff;
}

.cart-button:hover {
    background: var(--gold-dark);
}

.cart-button span,
.orders-button span {
    background: var(--gold-main);
    color: #fff;
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 11.5px;
}

.orders-button {
    background: #f5efe6;
    color: var(--brown-main);
}

.orders-button:hover {
    background: #eadfce;
}

.user-button {
    background: #eee8df;
    color: var(--brown-main);
}

.user-button:hover {
    background: #e1d7c8;
}

.user-greeting {
    font-size: 13px;
    font-weight: 600;
    color: var(--brown-dark);
    padding: 0 4px;
}

/* HERO */
.hero {
    min-height: 550px;
    background:
        linear-gradient(90deg, rgba(31, 22, 15, 0.82), rgba(31, 22, 15, 0.25)),
        url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?w=1800&auto=format&fit=crop&q=80")
        center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 70px 8%;
}

.hero-content {
    max-width: 650px;
    color: #fff;
}

.hero-label {
    color: #e6c289;
    letter-spacing: 3px;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-block;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.22;
    margin: 18px 0;
}

.hero p {
    font-size: 15px;
    line-height: 1.85;
    color: #eee9e2;
    max-width: 540px;
    margin-bottom: 28px;
}

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

.hero-btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 7px;
    background: var(--gold-main);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    transition: 0.25s;
}

.hero-btn:hover {
    background: var(--brown-main);
    transform: translateY(-2px);
}

.hero-btn-outline {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: 0.25s;
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* CAM KẾT DỊCH VỤ */
.highlights-bar {
    background: #fff;
    padding: 26px 8%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    border-bottom: 1px solid var(--border-soft);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.highlight-item .hi-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f5efe6;
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.highlight-item h4 {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 2px;
}

.highlight-item p {
    font-size: 12px;
    color: var(--text-muted);
}

/* SECTION CHUNG */
.section-padding {
    padding: 72px 7%;
}

.section-heading {
    text-align: center;
    margin-bottom: 38px;
}

.section-heading span,
.about-content span {
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-heading h2 {
    font-size: 31px;
    margin: 10px 0;
    color: var(--brown-dark);
}

.section-heading p {
    color: var(--text-muted);
    font-size: 14px;
}

/* DANH MỤC */
.category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 14px;
}

.category-card {
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: #fff;
    padding: 20px 8px;
    transition: 0.25s;
    color: var(--brown-dark);
    text-align: center;
}

.category-card:hover,
.category-card.active {
    background: var(--brown-main);
    color: #fff;
    border-color: var(--brown-main);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.category-card span {
    display: block;
    font-size: 30px;
    margin-bottom: 10px;
}

.category-card h3 {
    font-size: 13px;
    font-weight: 700;
}

/* SẢN PHẨM */
.products-section {
    background: var(--bg-sand);
}

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

.toolbar-left {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-toolbar select,
.product-toolbar input {
    padding: 11px 14px;
    border: 1px solid #dfd6ca;
    border-radius: 8px;
    background: #fff;
    color: var(--brown-dark);
    font-size: 13.5px;
    outline: none;
}

.product-toolbar select {
    min-width: 190px;
}

.product-toolbar input {
    width: 290px;
}

.product-toolbar input:focus,
.product-toolbar select:focus {
    border-color: var(--gold-main);
}

.product-count-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

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

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: 0.25s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image {
    height: 225px;
    position: relative;
    overflow: hidden;
    background: #eee9e1;
    cursor: pointer;
}

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

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--brown-main);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.product-badge-sale {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    background: var(--danger);
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    font-size: 15.5px;
    line-height: 1.45;
    margin-bottom: 6px;
    cursor: pointer;
}

.product-info h3:hover {
    color: var(--brown-main);
}

.product-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.product-price {
    color: var(--gold-dark);
    font-size: 18px;
    font-weight: 800;
}

.product-old-price {
    color: #a39a90;
    font-size: 13px;
    text-decoration: line-through;
}

.stock-info {
    color: #7c7166;
    font-size: 12px;
    margin: 7px 0 14px;
}

.stock-info.out {
    color: var(--danger);
    font-weight: 700;
}

.product-card-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.add-cart-btn {
    width: 100%;
    padding: 11px 12px;
    border: none;
    background: var(--brown-main);
    color: #fff;
    border-radius: 7px;
    font-weight: 600;
    font-size: 13px;
    transition: 0.25s;
}

.add-cart-btn:hover:not(:disabled) {
    background: var(--gold-main);
}

.add-cart-btn:disabled {
    background: #cfc8be;
    cursor: not-allowed;
}

.detail-btn {
    padding: 11px 12px;
    border: 1px solid var(--border-soft);
    background: var(--bg-cream);
    color: var(--brown-main);
    border-radius: 7px;
    font-weight: 600;
    font-size: 13px;
}

.detail-btn:hover {
    background: #ebe2d4;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 55px 20px;
    background: #fff;
    border-radius: 12px;
    color: #888;
}

.no-products div {
    font-size: 44px;
    margin-bottom: 12px;
}

.no-products h3 {
    color: var(--brown-main);
    margin-bottom: 8px;
}

/* GIỚI THIỆU */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.about-image img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}

.about-content h2 {
    font-size: 32px;
    line-height: 1.35;
    margin: 14px 0 18px;
}

.about-content p {
    color: #6b6056;
    font-size: 14.5px;
    line-height: 1.9;
    margin-bottom: 14px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 22px 0 26px;
}

.about-stats div {
    background: #fff;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    text-align: center;
}

.about-stats strong {
    display: block;
    font-size: 20px;
    color: var(--brown-main);
}

.about-stats small {
    font-size: 12px;
    color: var(--text-muted);
}

/* LIÊN HỆ */
.contact-section {
    background: #f0ebe2;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
    align-items: start;
}

.contact-cards {
    display: grid;
    gap: 14px;
}

.contact-card {
    background: #fff;
    padding: 18px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.contact-card span {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f4eee5;
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-card strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.contact-card p {
    font-size: 13px;
    color: var(--text-muted);
}

.contact-form-box {
    background: #fff;
    padding: 26px;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.contact-form-box h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--brown-dark);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-form-box input,
.contact-form-box textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13.5px;
    outline: none;
    margin-bottom: 12px;
}

.contact-form-box textarea {
    min-height: 95px;
    resize: vertical;
}

.contact-form-box input:focus,
.contact-form-box textarea:focus {
    border-color: var(--gold-main);
}

/* FOOTER */
.footer {
    background: var(--brown-dark);
    color: #fff;
    text-align: center;
    padding: 42px 15px;
}

.footer h2 {
    font-size: 25px;
    margin-bottom: 12px;
}

.footer p {
    font-size: 13px;
    color: #d2c5b5;
    margin: 6px 0;
}

/* ==============================
   MODAL DÙNG CHUNG
============================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 14, 10, 0.58);
    z-index: 2500;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.modal.show {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    animation: hienLen 0.22s ease;
}

.modal-content.wide-modal {
    max-width: 780px;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.modal-header h2 {
    font-size: 19px;
}

.close-btn {
    background: #f5f1ea;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 22px;
    color: #666;
    display: grid;
    place-items: center;
}

.close-btn:hover {
    background: #e9e1d4;
    color: var(--brown-dark);
}

/* PRODUCT DETAIL MODAL */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 24px;
    align-items: start;
}

.product-detail-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    background: #eee9e1;
}

.detail-cat-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 99px;
    background: #f5efe6;
    color: var(--brown-main);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-detail-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.detail-specs {
    margin: 14px 0;
    padding: 12px;
    background: var(--bg-cream);
    border-radius: 9px;
    font-size: 13px;
    display: grid;
    gap: 6px;
}

.detail-desc {
    font-size: 13.5px;
    color: #5e5349;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* CART & CHECKOUT */
.empty-cart {
    text-align: center;
    padding: 36px 15px;
    color: #8f8479;
    font-size: 15px;
}

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

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    background: #eee;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.cart-item-info p {
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 13px;
}

.quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.quantity button {
    width: 27px;
    height: 27px;
    border: none;
    background: #eee8df;
    color: var(--brown-main);
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
}

.remove-btn {
    border: none;
    background: #fdecea;
    color: var(--danger);
    width: 30px;
    height: 30px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
}

.cart-summary-box {
    margin: 18px 0;
    padding: 14px 16px;
    background: var(--bg-cream);
    border-radius: 10px;
    display: grid;
    gap: 8px;
    font-size: 14px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-summary-row.total {
    border-top: 1px dashed #d8cebf;
    padding-top: 10px;
    font-weight: 700;
    font-size: 16px;
}

.cart-summary-row.total strong {
    color: var(--gold-dark);
    font-size: 20px;
}

.cart-footer-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
}

.checkout-btn {
    width: 100%;
    padding: 13px 16px;
    border: none;
    background: var(--brown-main);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14.5px;
    transition: 0.2s;
}

.checkout-btn:hover {
    background: var(--gold-main);
}

.checkout-content {
    max-width: 560px;
}

.checkout-content label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
}

.checkout-content input,
.checkout-content textarea,
.checkout-content select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ddd;
    border-radius: 7px;
    outline: none;
    margin-bottom: 14px;
    font-size: 14px;
    background: #fff;
}

.checkout-content textarea {
    height: 80px;
    resize: vertical;
}

.checkout-content input:focus,
.checkout-content textarea:focus,
.checkout-content select:focus {
    border-color: var(--gold-main);
}

.bank-info-box {
    display: none;
    padding: 13px 15px;
    margin-bottom: 14px;
    border-radius: 9px;
    background: #f6f1e8;
    border: 1px dashed var(--gold-main);
    font-size: 13px;
    line-height: 1.7;
}

.bank-info-box.show {
    display: block;
}

/* MY ORDERS MODAL */
.order-history-card {
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    background: var(--bg-cream);
}

.order-history-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e6ddd0;
    margin-bottom: 10px;
}

.order-items-mini {
    display: grid;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 10px;
}

.order-history-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13.5px;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 1150px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .highlights-bar {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 900px) {
    .header {
        padding: 12px 4%;
        flex-wrap: wrap;
    }

    .about-section,
    .contact-layout,
    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        width: auto;
    }

    .sidebar p {
        margin-bottom: 16px;
    }

    .sidebar nav {
        grid-template-columns: repeat(3, 1fr);
    }

    .main {
        margin-left: 0;
        padding: 18px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .header {
        justify-content: center;
        text-align: center;
    }

    .navbar {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
    }

    .header-right {
        width: 100%;
        justify-content: center;
    }

    .hero {
        min-height: 450px;
        padding: 46px 6%;
    }

    .highlights-bar,
    .product-grid,
    .contact-form-grid,
    .about-stats {
        grid-template-columns: 1fr;
    }

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

    .product-toolbar input,
    .product-toolbar select {
        width: 100%;
    }

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

    .stats,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .wide {
        grid-column: auto;
    }

    .section-padding {
        padding: 50px 5%;
    }
}
