
/* CAI DAT CHUNG */

:root {
    --white: #ffffff;
    --cream: #f8f6f2;
    --soft: #f0ede8;
    --dark: #262626;
    --gold: #a38c71;
    --gray: #777777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* THANH THONG BAO */

.topbar {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 9px 10px;
    font-size: 10px;
    letter-spacing: 2px;
}

/* HEADER */

.header {
    background: white;
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    min-height: 95px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    flex-shrink: 0;
}

.brand-main {
    font-family: Georgia, serif;
    font-size: 26px;
    letter-spacing: 2px;
    font-weight: bold;
}

.brand-sub {
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 2.5px;
    padding-left: 4px;
    margin-top: 5px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.menu a {
    font-size: 13px;
    transition: color 0.3s;
}

.menu a:hover {
    color: var(--gold);
}

.cart {
    border: 1px solid #dddddd;
    border-radius: 30px;
    padding: 10px 15px;
    background: white;
    white-space: nowrap;
    transition: 0.3s;
    font-size: 13px;
}

.cart:hover {
    background: var(--dark);
    color: white;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 25px;
}

/* HERO */

.hero {
    padding: 65px 0;
    background: var(--cream);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 65px;
}

.eyebrow,
.section-label {
    font-size: 11px;
    color: var(--gold);
    font-weight: bold;
    letter-spacing: 3px;
}

.hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(36px, 4vw, 62px);
    line-height: 1.2;
    font-weight: normal;
    margin: 23px 0;
}

.hero h1 span {
    display: block;
    color: var(--gold);
    font-style: italic;
}

.hero-description {
    color: var(--gray);
    font-size: 15px;
    max-width: 440px;
    margin-bottom: 35px;
}

.main-button {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    background: var(--dark);
    color: white;
    padding: 16px 24px;
    font-size: 11px;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

.main-button:hover {
    background: var(--gold);
}

.main-button span {
    font-size: 20px;
    line-height: 1;
}

.hero-note {
    color: #aaa;
    font-size: 10px;
    letter-spacing: 2px;
    margin-top: 35px;
}

.hero-photo {
    position: relative;
    height: 540px;
    background: #e9e5df;
    overflow: hidden;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hero-photo:hover img {
    transform: scale(1.04);
}

.photo-label {
    position: absolute;
    left: 25px;
    bottom: 25px;
    background: rgba(255,255,255,0.94);
    padding: 18px 25px;
}

.photo-label small {
    display: block;
    color: var(--gold);
    letter-spacing: 2px;
    font-size: 10px;
}

.photo-label strong {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: normal;
}

/* GIOI THIEU NGAN */

.features {
    border-bottom: 1px solid #eeeeee;
    padding: 27px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 15px;
}

.feature-grid div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.feature-grid span {
    color: var(--gold);
    font-size: 25px;
}

.feature-grid p {
    font-size: 10px;
    letter-spacing: 1.5px;
}

/* TIEU DE CAC KHU VUC */

.section {
    padding: 90px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2 {
    font-family: Georgia, serif;
    font-size: 39px;
    font-weight: normal;
    margin: 10px 0;
}

.section-heading > p:last-child {
    color: var(--gray);
    font-size: 14px;
}

/* DANH MUC */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    min-height: 205px;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.category-card:hover {
    background: var(--soft);
    transform: translateY(-5px);
}

.category-card span {
    font-family: Georgia, serif;
    font-size: 48px;
    color: var(--gold);
    line-height: 1.2;
}

.category-card h3 {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: normal;
    margin-top: 12px;
}

.category-card p {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--gray);
    margin-top: 5px;
}

/* SAN PHAM */

.products-section {
    background: var(--cream);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    background: white;
    overflow: hidden;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px #00000012;
}

.product-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #eae7e2;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-info {
    padding: 22px 17px;
    text-align: center;
}

.product-type {
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 2px;
}

.product-info h3 {
    font-family: Georgia, serif;
    font-weight: normal;
    font-size: 18px;
    margin: 10px 0;
    min-height: 48px;
}

.price {
    font-size: 16px;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 18px;
}

.add-button {
    background: var(--dark);
    color: white;
    border: none;
    padding: 13px 10px;
    width: 100%;
    font-size: 12px;
    transition: 0.3s;
}

.add-button:hover {
    background: var(--gold);
}

.demo-note {
    margin-top: 20px;
    text-align: center;
    color: var(--gray);
    font-size: 12px;
}

/* GIOI THIEU THUONG HIEU */

.about-section {
    padding: 105px 20px;
    text-align: center;
    background: #ffffff;
}

.about-content {
    max-width: 760px;
}

.about-section h2 {
    font-family: Georgia, serif;
    font-size: 47px;
    font-weight: normal;
    margin-top: 14px;
    letter-spacing: 4px;
}

.about-subtitle {
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 4px;
}

.about-line {
    width: 55px;
    height: 1px;
    margin: 30px auto;
    background: var(--gold);
}

.about-description {
    color: var(--gray);
    line-height: 2;
    font-size: 15px;
    margin-bottom: 35px;
}

.outline-button {
    display: inline-block;
    border: 1px solid var(--dark);
    padding: 13px 27px;
    font-size: 11px;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

.outline-button:hover {
    color: white;
    background: var(--dark);
}

/* LIEN HE */

.contact-section {
    background: var(--cream);
}

.contact-box {
    max-width: 540px;
    margin: auto;
    background: white;
    padding: 35px;
    text-align: center;
}

.contact-box h3 {
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 12px;
}

.contact-box p {
    color: var(--gray);
    font-size: 14px;
}

/* FOOTER */

.footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 55px 20px 30px;
}

.footer h2 {
    font-family: Georgia, serif;
    font-weight: normal;
    font-size: 29px;
    letter-spacing: 3px;
}

.footer-brand {
    color: #c4b3a1;
    font-size: 10px;
    letter-spacing: 3px;
    margin-top: 8px;
}

.footer-line {
    height: 1px;
    max-width: 400px;
    margin: 30px auto;
    background: #555;
}

.footer-copy {
    color: #aaa;
    font-size: 11px;
}

/* THONG BAO GIO HANG */

.toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--dark);
    color: white;
    padding: 15px 22px;
    font-size: 13px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* GIAO DIEN MAY TINH BANG */

@media (max-width: 1050px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .menu {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .hero-content {
        gap: 35px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* GIAO DIEN DIEN THOAI */

@media (max-width: 700px) {
    .topbar {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .header-inner {
        min-height: 75px;
        gap: 10px;
    }

    .brand-main {
        font-size: 20px;
    }

    .brand-sub {
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .menu {
        display: none;
        order: 4;
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
        border-top: 1px solid #eeeeee;
    }

    .menu.open {
        display: flex;
    }

    .cart {
        font-size: 11px;
        padding: 7px 10px;
    }

    .hero {
        padding: 45px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero-photo {
        height: 380px;
    }

    .features {
        padding: 20px 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .section {
        padding: 60px 0;
    }

    .section-heading h2 {
        font-size: 31px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        min-height: 170px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-info {
        padding: 16px 10px;
    }

    .product-info h3 {
        font-size: 15px;
        min-height: 50px;
    }

    .add-button {
        font-size: 11px;
        padding: 12px 5px;
    }

    .about-section {
        padding: 70px 15px;
    }

    .about-section h2 {
        font-size: 38px;
    }
}

@media (max-width: 390px) {
    .brand-main {
        font-size: 17px;
    }

    .cart {
        font-size: 10px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}


/* SUA LOI FONT CHU TIENG VIET */

body,
button,
.menu,
.product-type,
.price,
.section-label,
.eyebrow,
.brand-sub {
    font-family: "Be Vietnam Pro", Arial, sans-serif;
}

/* FONT CHU TIEU DE CAO CAP */

.hero h1,
.hero h1 span,
.section-heading h2,
.category-card h3,
.product-info h3,
.about-section h2,
.contact-box h3,
.footer h2,
.brand-main,
.photo-label strong {
    font-family: "Noto Serif", "Be Vietnam Pro", serif;
}

/* SUA KHOANG CACH CHU */

.hero h1 {
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 1.4;
}

.hero h1 span {
    font-style: normal;
    letter-spacing: -1px;
}

.category-card h3,
.product-info h3 {
    letter-spacing: 0;
    line-height: 1.6;
    word-break: normal;
}

/* LOGO THUONG HIEU */

.brand-main {
    font-weight: 600;
    letter-spacing: 1px;
}

.brand-sub {
    letter-spacing: 1.5px;
}


/* ===== BUOC 4: CHI TIET SAN PHAM + GIO HANG ===== */

.detail-link {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: #8b745d;
    text-decoration: underline;
}

.detail-page {
    padding-top: 35px;
    padding-bottom: 90px;
    min-height: 65vh;
}

.breadcrumb {
    font-size: 13px;
    color: #777;
    margin-bottom: 28px;
}

.breadcrumb a:hover, .back-link:hover {
    color: #a38c71;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: start;
}

.detail-photo {
    background: #f1efec;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info h1 {
    font-family: "Noto Serif", Georgia, serif;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.4;
    margin: 14px 0;
}

.detail-price {
    color: #9a7653;
    font-weight: bold;
    font-size: 25px;
    margin: 16px 0 25px;
}

.detail-description {
    color: #666;
    margin-bottom: 22px;
}

.detail-info > p {
    margin-top: 12px;
}

.detail-qty-label {
    display: block;
    margin-top: 26px;
    margin-bottom: 8px;
    font-weight: 600;
}

#detailQty {
    width: 86px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
}

.detail-add-button, .continue-button {
    display: block;
    width: 100%;
    background: #262626;
    color: white;
    border: 0;
    padding: 16px;
    margin-top: 22px;
    transition: background 0.2s;
}

.detail-add-button:hover, .continue-button:hover {
    background: #a38c71;
}

.back-link {
    display: inline-block;
    margin-top: 25px;
    text-decoration: underline;
    color: #777;
    font-size: 13px;
}

/* GIO HANG DANG BANG TRUOT */

[hidden] { display: none !important; }
body.cart-open { overflow: hidden; }

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 300;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(450px, 100%);
    z-index: 301;
    background: white;
    padding: 22px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px #0002;
}

.cart-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.cart-heading h2 {
    font-size: 21px;
    font-weight: 600;
}

.cart-close {
    border: 0;
    background: transparent;
    font-size: 24px;
    padding: 3px 10px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.empty-cart {
    color: #777;
    text-align: center;
    padding: 30px 0;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 85px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0ede8;
}

.cart-item-content { flex: 1; font-size: 13px; }
.cart-item-content > strong { display: block; margin-bottom: 8px; }
.qty-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.qty-actions button { border: 1px solid #ddd; background: white; padding: 3px 10px; }
.qty-actions .remove-item { margin-left: auto; color: #9b4439; }
.cart-bottom { border-top: 1px solid #eee; padding-top: 20px; }
.cart-total-row { display: flex; justify-content: space-between; gap: 10px; font-size: 19px; }
.cart-notice { color: #777; font-size: 12px; margin-top: 12px; }

@media (max-width: 700px) {
    .detail-layout { grid-template-columns: 1fr; gap: 25px; }
    .detail-page { padding-bottom: 55px; }
    .cart-panel { padding: 16px; }
}


/* BUOC 5.3 - TIM KIEM VA LOC SAN PHAM */

.shop-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 14px;
    margin: 28px 0 14px;
}

.shop-filters input,
.shop-filters select {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #ded8d3;
    border-radius: 8px;
    background: #ffffff;
    color: #302b29;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.shop-filters input:focus,
.shop-filters select:focus {
    outline: none;
    border-color: #98796d;
    box-shadow: 0 0 0 3px rgba(152, 121, 109, 0.12);
}

.shop-filters select {
    cursor: pointer;
}

.filter-count {
    font-size: 13px;
    color: #77716d;
    margin: 0 0 20px;
}

.filter-empty {
    text-align: center;
    padding: 35px 15px;
    color: #77716d;
    font-size: 15px;
}

/* An san pham khong phu hop */
.product-grid .product-card[hidden],
.filter-empty[hidden] {
    display: none !important;
}

/* Giao dien tren dien thoai */
@media (max-width: 768px) {
    .shop-filters {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 20px 0 12px;
    }

    .shop-filters input,
    .shop-filters select {
        min-height: 48px;
        font-size: 14px;
    }
}


/* HIEN THI TEN VA GIA BEN DUOI ANH SAN PHAM */

.product-grid .product-card {
    display: flex;
    flex-direction: column;
    height: auto !important;
    overflow: visible !important;
}

.product-grid .product-image {
    display: block;
    width: 100%;
    height: 340px !important;
    overflow: hidden;
}

.product-grid .product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-grid .product-info {
    display: block !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding: 18px 14px;
    text-align: center;
}

.product-info .product-type {
    font-size: 12px;
    color: #8b817c;
    margin-bottom: 8px;
}

.product-info h3 {
    font-size: 17px;
    margin: 8px 0;
    line-height: 1.5;
}

.product-info h3 a {
    color: #2e2e2e;
    text-decoration: none;
}

.product-info .price {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: #9b7464;
    margin: 10px 0 14px;
}

.product-info .add-button {
    display: block;
    width: 100%;
    cursor: pointer;
}

.product-info .detail-link {
    display: inline-block;
    margin-top: 12px;
}



/* BUOC 5.4 - BO LOC NANG CAO */

.shop-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: center;
}

.reset-filters {
    min-height: 50px;
    padding: 12px 18px;
    border: 1px solid #a88c7c;
    border-radius: 8px;
    background: #fff;
    color: #745747;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.reset-filters:hover {
    background: #745747;
    color: white;
}

.reset-filters:focus-visible {
    outline: 3px solid #b69b8b;
    outline-offset: 2px;
}

/* MAY TINH BANG */
@media (max-width: 1100px) {
    .shop-filters {
        grid-template-columns: 1fr 1fr;
    }

    .shop-filters input {
        grid-column: 1 / -1;
    }
}

/* DIEN THOAI */
@media (max-width: 768px) {
    .shop-filters {
        grid-template-columns: 1fr;
    }

    .shop-filters input {
        grid-column: auto;
    }

    .reset-filters {
        width: 100%;
    }
}

/* AN SAN PHAM KHONG PHU HOP */
.product-grid .product-card[hidden],
.filter-empty[hidden] {
    display: none !important;
}



/* BUOC 5.5 - NHAN SAN PHAM */

.product-grid .product-card {
    position: relative;
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 7px 12px;
    background: #ffffff;
    color: #745747;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.product-info .old-price {
    display: inline-block;
    margin-left: 10px;
    font-size: 13px;
    font-weight: 400;
    color: #999;
}

.quick-view-button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border: 1px solid #b9a99e;
    background: transparent;
    color: #745747;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.quick-view-button:hover {
    background: #745747;
    color: #ffffff;
}

/* CUA SO XEM NHANH */

.quick-view-layer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quick-view-layer[hidden],
.quick-view-old-price[hidden] {
    display: none !important;
}

.quick-view-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.quick-view-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    background: #ffffff;
    color: #302b29;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.18);
}

.quick-view-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #333;
    font-size: 20px;
    cursor: pointer;
}

.quick-view-image {
    min-height: 350px;
    background: #f5f2ef;
}

.quick-view-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-view-content {
    padding: 42px 28px;
}

.quick-view-category {
    font-size: 12px;
    letter-spacing: 1px;
    color: #967969;
    margin-bottom: 12px;
}

.quick-view-content h2 {
    font-size: 27px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.quick-view-price {
    font-size: 22px;
    font-weight: 700;
    color: #966e5d;
    margin-bottom: 10px;
}

.quick-view-old-price {
    color: #999;
    font-size: 14px;
}

.quick-view-content p {
    line-height: 1.7;
}

.quick-view-add {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: #745747;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-family: inherit;
    cursor: pointer;
}

.quick-view-add:hover {
    background: #563e33;
}

.quick-view-detail {
    display: block;
    margin-top: 18px;
    text-align: center;
    color: #745747;
    text-decoration: underline;
}

.quick-view-open {
    overflow: hidden;
}

.quick-view-button:focus-visible,
.quick-view-close:focus-visible,
.quick-view-add:focus-visible,
.quick-view-detail:focus-visible {
    outline: 3px solid #b69b8b;
    outline-offset: 3px;
}

/* DIEN THOAI */

@media (max-width: 768px) {
    .quick-view-dialog {
        grid-template-columns: 1fr;
        max-width: 440px;
    }

    .quick-view-image {
        min-height: 0;
        height: 230px;
    }

    .quick-view-content {
        padding: 22px;
    }

    .quick-view-content h2 {
        font-size: 21px;
    }
}


/* BUOC 5.8 - GALLERY ANH SAN PHAM */

.detail-photo {
    height: auto !important;
    overflow: visible !important;
}

.detail-photo .gallery-main-image {
    display: block;
    width: 100%;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.gallery-thumbnail {
    width: 76px;
    height: 76px;
    padding: 3px;
    border: 2px solid #e5dfda;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.gallery-thumbnail.active {
    border-color: #96715f;
}

.gallery-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.gallery-thumbnail:hover {
    border-color: #96715f;
}

.gallery-thumbnail:focus-visible {
    outline: 3px solid #96715f;
    outline-offset: 3px;
}

/* SAN PHAM GOI Y */

.detail-recommendations {
    max-width: 1200px;
    margin: 70px auto;
    padding: 0 20px;
}

.detail-recommendations h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 12px;
}

.recommendation-subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 30px;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.recommendation-card {
    min-width: 0;
    padding-bottom: 15px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}

.recommendation-card img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.recommendation-category {
    font-size: 11px;
    color: #98867b;
    margin: 16px 10px 7px;
}

.recommendation-card h3 {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 10px 10px;
}

.recommendation-card h3 a {
    color: #302b29;
    text-decoration: none;
}

.recommendation-card h3 a:hover {
    text-decoration: underline;
}

.recommendation-price {
    font-size: 16px;
    font-weight: 600;
    color: #96715f;
    margin-bottom: 15px;
}

.recommendation-add {
    width: calc(100% - 24px);
    padding: 12px 8px;
    border: 1px solid #96715f;
    background: #96715f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}

.recommendation-add:hover {
    background: #745747;
}

/* TABLET */

@media (max-width: 900px) {
    .recommendation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* DIEN THOAI */

@media (max-width: 480px) {
    .detail-recommendations {
        margin: 40px auto;
        padding: 0 15px;
    }

    .detail-recommendations h2 {
        font-size: 24px;
    }

    .recommendation-grid {
        gap: 12px;
    }

    .recommendation-card img {
        height: 180px;
    }

    .recommendation-card h3 {
        font-size: 14px;
    }

    .recommendation-add {
        font-size: 12px;
    }

    .gallery-thumbnail {
        width: 64px;
        height: 64px;
    }
}


/* BUOC 5.9 - TRANG THAI TON KHO */

.stock-status {
    display: block;
    margin: 12px 0;
    font-size: 13px;
    font-weight: 600;
    color: #278553;
}

/* Sap het hang */
.stock-status.stock-low {
    color: #a66a16;
}

/* Het hang */
.stock-status.stock-empty {
    color: #b83c3c;
}

/* Khoa nut them gio hang khi het hang */
.add-button:disabled,
.detail-add-button:disabled,
.quick-view-add:disabled,
.recommendation-add:disabled {
    background: #dddddd !important;
    color: #777777 !important;
    border-color: #dddddd !important;
    cursor: not-allowed !important;
    opacity: 0.8;
}

/* Khoa nut tang so luong khi dat gioi han */
.qty-actions button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Trang thai trong danh sach san pham */
.product-info .stock-status {
    text-align: center;
}

/* Trang thai trong trang chi tiet */
.detail-info .stock-status {
    font-size: 14px;
    margin: 15px 0;
}

/* Trang thai trong cua so Xem nhanh */
.quick-view-content .stock-status {
    margin: 12px 0;
}

/* Trang thai trong san pham goi y */
.recommendation-card .stock-status {
    text-align: center;
    margin: 10px;
}


/* BUOC 6.3 - NUT DAT HANG */

.order-button {
    display: block;
    width: 100%;
    min-height: 52px;
    margin-top: 15px;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    background: #745747;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.7px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.order-button:hover {
    background: #563e33;
}

.order-button:disabled {
    background: #dddddd;
    color: #777777;
    cursor: not-allowed;
}

.order-button:focus-visible {
    outline: 3px solid #b89c8b;
    outline-offset: 3px;
}

.order-notice {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: #77716d;
}

