[x-cloak] {
    display: none !important;
}

:root {
    --color-primary: #000;
    --color-secondary: #0366cc;
    --color-accent: #be293b;
    --color-background: #faf8f5;
    --color-background-overlay: #faf8f5;
    --color-text: #000;
    /* --color-text-secondary: #727272; */
    --color-text-secondary:#A4A4A4;
    --color-border: #d2d2d7;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Inter';
    src: url('/assets/font/InterVariable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: optional;
}

html {
    font-size: 62.5%;
    /* 16px * 62.5% = 10px */
}

body {
    margin: 0;
    padding: 0;

    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    font-size: 1.6rem;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main {
    flex: 1 0 auto
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
    line-height: 1;
}

a {
    text-decoration: none;
}

.text-center {
    text-align: center;
}

.text-end {
    text-align: right;
}

.container-standard {
    max-width: 140rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 0 1.6rem;
}

.d-none {
    display: none !important;
}

/* -------------------- Common -------------------- */

.popup-notification {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.popup-notification .popup-notification-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    width: 300px;
    height: 130px;
    color: #fff;
    border-radius: 6px;
    padding: 0 15px;
    font-size: 1.5rem;
    text-align: center;
}

.popup-notification .popup-notification-wrap svg {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.popup-notification .popup-notification-icon-success path {
    fill: #43af34;
}

.popup-notification .popup-notification-icon-error path {
    fill: #e5484d;
}

.popup-notification .popup-notification-icon-error,
.popup-notification.is-error .popup-notification-icon-success {
    display: none;
}

.popup-notification.is-error .popup-notification-icon-error {
    display: block;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--color-text);
    background-color: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    transition: transform 0.4s ease;
}

header.is-hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

/* ---- Promo banner ---- */
.promo-banner {
    background-color: var(--color-primary);
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    color: #fff;

    opacity: 1;
    transition:
        opacity 0.3s ease,
        height 0.3s ease,
        visibility 0.3s;
}

header:has(+ main .promo-banner) .promo-banner {
    height: 0;
    opacity: 0;
    visibility: hidden;
}

/* main .promo-banner{
               height: 64px;
            } */

.promo-banner a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

header .logo img {
    height: 3.2rem;
    display: block;
    margin: 0 auto;
}

header nav {
    display: flex;
    align-items: center;
}

header nav > * {
    flex: 1;
}

header nav ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul.nav-left {
    justify-content: flex-start;
    align-items: center;
}

header nav ul.nav-left li {
    margin-right: 3rem;
}

header nav ul.nav-left li a {
    font-size: 2rem;
    letter-spacing: -0.1rem;
    display: block;
}

header nav ul.nav-left li a img {
    height: 3.2rem;
    display: block;
    margin: 0 auto;
}

header nav ul.nav-right {
    justify-content: flex-end;
    align-items: center;
}

header nav ul.nav-right li {
    margin-left: 2rem;
}

header nav ul li a {
    text-decoration: none;
    font-size: 1.3rem;
    color: var(--color-text);
    text-transform: uppercase;
}

header nav ul li a:hover {
    text-decoration: underline;
}

header nav ul.nav-right li.bag {
    position: relative;
}

header nav ul.nav-right li.bag .bag-count {
    height: 1em;
    min-height: 15px;
    aspect-ratio: 1;
    box-shadow: 0 0 0 2px var(--color-background);
    background-color: #000;
    color: #fff;
    border-radius: 100%;
    transition: transform .2s ease-in-out;
    position: absolute;
    font-size: 10px;
    inset-block-start: -4px;
    inset-inline-end: -8px;
    transform: scale(0);
    display: flex;
    align-items: center;
    justify-content: center;
}

header nav ul.nav-right li.bag .bag-count[data-count]:not([data-count="0"]) {
    transform: scale(1);
}

header nav ul.nav-right li.search input {
    font-size: 1.3rem;
    width: 100%;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--color-text);
}

header nav ul.nav-right li.search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

header nav ul.nav-right li.search .search-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    bottom: -2px;
    width: 200px;
    height: 2rem;
    border-bottom: 1px solid var(--color-text);
}

header nav ul.nav-right li.search .search-box.search-enter {
    overflow: hidden;
    transition:
        width 0.3s ease,
        opacity 0.3s ease;
}

header nav ul.nav-right li.search .search-box.search-enter-start {
    width: 0;
    opacity: 0;
}

header nav ul.nav-right li.search .search-box.search-enter-end {
    width: 200px;
    opacity: 1;
}

header nav ul.nav-right li.search .search-clear {
    display: flex;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    position: relative;
    bottom: 2px;
}

header nav ul.menu {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

header nav.nav-main {
    padding-top: 2rem;
}

.video-wide .video-player {
    width: 100%;
    height: auto;
}

.section-hero {
    display: flex;
    justify-content: center;
    overflow: hidden;
    height: 600px;
}

.section-hero img {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
    flex-shrink: 0;
}

/* .section-banner, .section-content{
               margin-top: 7rem;
            } */

h2.heading {
    font-size: 5rem;
    font-weight: 300;
    margin-top: 7rem;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.1rem;
}

h2.heading img {
    height: 24px;
}

.product-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
    display: flex;
    flex-direction: column;
    margin-top: 3rem;
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.product-card a .label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 2px 6px;
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    z-index: 1;
}

.product-card .price-container {
    margin-top: 1.4rem;
}

.product-card .price-container .price {
    color: #000;
    font-weight: 500;
    font-size: 2rem;
    padding-left: 1rem;
}

.product-card .price-container .price:after {
    content: '₫';
    position: relative;
    font-weight: 300;
    font-size: 1.2rem;
    bottom: 0.5rem;
}

.product-card__image {
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease;
    border-radius: 8px;
}

.product-card__image:after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--color-background-overlay);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.product-card__image:hover {
    transform: scale(1.03);
}

.product-card__image img {
    width: 100%;

    object-fit: contain;
    object-position: center;
    display: block;
}

.product-card__sub-title {
    font-size: 2rem;
    padding: 0.6rem 1.6rem 0.6rem 1rem;
    font-weight: 300;
    letter-spacing: -0.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.product-card__title {
    font-size: 1.5rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    padding: 0 1.6rem 1.6rem 1rem;
    letter-spacing: -0.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card__btn {
    text-align: center;
    /*border: 1px solid var(--color-primary);*/
    color: var(--color-text);
    border: 1px solid var(--color-text);
    background: #fff;
    padding: 1.4rem;
    font-size: 1.3rem;
    letter-spacing: 0.075rem;
    font-weight: 400;
    cursor: pointer;
    text-transform: uppercase;
    transition:
        background 0.4s ease,
        color 0.4s ease;
}

.product-card__btn:hover {
    /*background: #CC4E61;*/
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: #fff;
}

/* Video section */
.slide-container {
    width: 100%;
    position: relative;
    /* height: 600px; */
    display: flex;
    align-items: center;
    padding: 0 6.4rem;
    margin: 3rem auto;
}

.product-video .slide-container {
    width: 1190px;
    padding: 0;
}

.section-video {
    overflow-anchor: none;
}

.carousel-viewport {
    width: 100%;
    /* min-height: 500px; */
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
}

.carousel-viewport:active {
    cursor: grabbing;
}

.video-carousel {
    display: flex;
    gap: 1.6rem;
    /* Khoảng cách giữa các slide */
    will-change: transform;
    align-items: center;
    min-height: 500px;
    --card-w: 300px;
    padding-left: calc(50% - var(--card-w) / 2);
}

.video-carousel.has-transition {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 2. SLIDE CARD: 300x400 (Normal) -> 300x500 (Active) */
.video-card {
    flex: 0 0 var(--card-w);
    height: 400px;
    position: relative;
    opacity: 0.7;
    transition:
        height 0.4s ease,
        opacity 0.4s ease;
    cursor: pointer;
}

.video-card.is-active {
    height: 500px;
    opacity: 1;
}

.product-video {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.product-video .video-carousel {
    --card-w: 230px;
    min-height: 400px;
}

.product-video .video-card {
    height: 350px;
}

.product-video .video-card.is-active {
    height: 400px;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* 3. NÚT ĐIỀU KHIỂN - CHỈ HIỆN KHI ACTIVE */
.video-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-card.is-active .video-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.video-card .video-player {
    border-radius: 8px;
}

.btn-control {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-control svg {
    width: 24px;
    height: 24px;
    display: block;
    pointer-events: none;
}

/* image slider */
.image-slider__inner {
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    height: 700px;
}

.image-slider {
    margin-top: 5rem;
    /*margin-bottom: 2rem;*/
}

.image-slider__inner:active {
    cursor: grabbing;
}

.image-slider__track {
    display: flex;
    gap: 1.6rem;
    will-change: transform;
    height: 100%;
}

.image-slider__track.has-transition {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-slider__card {
    /*flex: 0 0 87%;*/
    /*aspect-ratio: 3 / 4;*/
    position: relative;
    display: block;
    -webkit-user-drag: none;
}

.image-slider__card img {
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}

.image-slider__card span {
    position: absolute;
    left: 16px;
    top: 16px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.section-banner {
    margin-top: 4rem;
}

/* Content section */
.banner-grid {
    display: flex;
    gap: 2.4rem;
}

.banner-card {
    flex: 1;
}

.banner-bg .banner-card {
    padding: 4rem 0;
}

.banner-card a {
    display: block;
    overflow: hidden;
    /* border-radius: 0.8rem; */
}

.banner-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.banner-bg {
    background-color: var(--color-background);
    /* margin-top: 8rem; */
}

.banner-card-banner {
    flex: 1;
    display: flex;
    align-items: center;
}

.banner-card-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.banner-card-content-body {
    padding: 0 6rem;
}

.banner-card-content-body h2 {
    font-size: 3.6rem;
    font-weight: 300;
    letter-spacing: -0.1rem;
    margin-bottom: 1.8rem;
}

.banner-card-content-body h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #000;
    letter-spacing: -0.08rem;
    /* color: var(--color-primary); */
}

.banner-card-content-body h4 {
    font-size: 2.3rem;
    font-weight: 500;
    margin-top: 2.6rem;
}

.banner-card-content-body p {
    margin-top: 0.5rem;
    font-size: 1.7rem;
    line-height: 3rem;
    font-weight: 300;
    margin-bottom: 2.4rem;
}

/*
* ============================== Footer section ==============================
*/
footer.site-footer {
    background: var(--color-background);
    margin-top: 8rem;
}

.footer-inner {
    margin: 0 auto;
    padding-top: 4rem;
    padding-bottom: 1rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0fcfd3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.footer-links {
    display: flex;
    gap: 96px;
    flex-wrap: wrap;
}

.footer-col h4,
.footer-company h4 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 1.2rem 0;
    color: var(--color-text);
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-col a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 1.4rem;
    line-height: 1.4;
}

.footer-col .social-icons {
    display: flex;
    gap: 2px;
    margin: 1.6rem 0 0 -12px;
}

.footer-col .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #271f1f;
    transition: color .15s cubic-bezier(.4, 0, .2, 1);
}

.footer-col .social-icons a:hover {
    color: #756e65;
}

.footer-col .social-icons svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-legal a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 1.3rem;
}

/* -------------------- Footer: thông tin doanh nghiệp -------------------- */
.footer-company {
    color: var(--color-text-secondary);
    font-size: 1.3rem;
    line-height: 1.6;
}

.footer-company-info {
    font-size: 1.4rem;
    margin: 0 0 4px 0;
}


.footer-company a,
.footer-copyright {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.footer-copyright {
    margin: 0;
    font-size: 1.3rem;
}

.footer-company-label {

}


@media (max-width: 700px) {
    .footer-top {
        flex-direction: column;
    }

    .footer-links {
        gap: 3.2rem;
    }
}

.section-headline {
    /*color: #0366CC;*/
    background: #eeeec8;

    /*background: #BDCBC2;*/

    text-transform: uppercase;
    text-align: center;
    padding: 2rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    display: none;
}

.mt-4 {
    margin-top: 4rem;
}

#main.htmx-swapping,
#product-review.htmx-swapping {
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

#main.htmx-settling,
#product-review.htmx-settling {
    opacity: 1;
    transition: opacity 0.15s ease-in;
}

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 2.4rem 0;
    font-size: 1.6rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '';
    width: 16px;
    height: 16px;
    margin: 0 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='%23999' stroke-linecap='round' stroke-linejoin='round' d='m6 12 4-4-4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.breadcrumb a {
    color: #000;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-info {
    display: flex;
    gap: 5rem;
}

.product-info .photo {
    flex: 5;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.product-info .photo img {
    max-width: 100%;
    display: block;
}

.product-info .photo .thumbs {
    order: 1;
    position: relative;
    display: flex;
    width: 100%;
    margin-top: 1.5rem;
}

.product-info .photo .thumbs > button {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 0;
    transform: translateY(-50%);
    transition: opacity 0.2s;
}

.product-info .photo .thumbs > .thumbs-prev {
    left: 0;
}

.product-info .photo .thumbs > .thumbs-next {
    right: 0;
}

.product-info .photo .thumbs > button:disabled {
    opacity: 0;
    pointer-events: none;
}

.product-info .photo .thumbs > button svg {
    transform: rotate(-90deg);
}

.product-info .photo .thumbs-list {
    flex: 1;
    display: flex;
    min-width: 0;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.product-info .photo .thumbs-list::-webkit-scrollbar {
    display: none;
}

.product-info .photo .thumbs-list button {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    padding: 0;
    overflow: hidden;
    background: none;
    border: none;
    cursor: pointer;
    scroll-snap-align: start;
    border: 1px solid #f3f3f3;
}

.product-info .photo .thumbs-list button::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.product-info .photo .thumbs-list button:hover::after {
    border-color: #757575;
}

.product-info .photo .thumbs-list button.is-active::after {
    border-color: #000;
}

.product-info .photo .thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info .photo .thumbs-list .btn-play-pause {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
}

.product-info .photo .thumbs-list .btn-play-pause svg {
    width: 18px;
    height: 18px;
}

.product-info .photo .main-photo {
    width: 100%;
    margin: 0 auto;
}

.product-info .photo .main-slides {
    --gap: 1.6rem;
    display: flex;
    gap: var(--gap);
    overflow-x: hidden;
}

.product-info .photo .main-slide {
    position: relative;
    flex: 0 0 100%;
    aspect-ratio: 1;
    transform: translateX(calc(var(--i, 0) * (-100% - var(--gap))));
    transition: transform 0.5s ease;
}

.product-info .photo .main-slide .btn-play-pause {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%);
}

.product-info .photo .main-slide .btn-play-pause svg {
    width: 40px;
    height: 40px;
}

.product-info .photo .main-photo a {
    cursor: zoom-in;
    display: block;
    height: 100%;
}

.product-info .photo .main-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info .description {
    flex: 4;
    min-width: 0;
}

.product-info .description-inner {
    padding-left: 1rem;
}

.product-info .description-inner h1,
.product-info .description-inner h2 {
    line-height: 1.5;
}

.product-info .description h1 {
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: -0.08rem;
    padding-bottom: 0.8rem;
}

.product-info .description .variant-heading {
    margin-top: 1rem;
    font-size: 1.6rem;
}

.product-info .description .variant-heading div {
    margin-bottom: 1rem;
}

.product-info .description .variant-heading .variant-value {
    font-weight: 600;
}

.product-info .description .variants {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.product-info .description .variants .palette {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* border: 1px solid #000;
               padding: 2px; */
    background-clip: content-box;
    box-sizing: border-box;
    display: inline-block;
    overflow: hidden;
}

.product-info .description .variants .palette img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.product-info .description .variants .palette.active {
    border: 2px solid #000;
    padding: 2px;
}

.product-info .description .buy-action {
    margin-top: 3rem;
    background-color: #f5f5f7;
    background-color: var(--color-background);
    border-radius: 8px;
    padding: 40px;
}

.product-info .description .buy-now {
    text-align: center;
    padding: 1.4rem 4rem;
    font-size: 1.3rem;
    letter-spacing: 0.075rem;
    border: none;
    border-radius: 4px;
    font-weight: 400;
    cursor: pointer;
    text-transform: uppercase;
    transition:
        background 0.4s ease,
        color 0.4s ease;
}

.product-info .description .price-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.product-info .description .price-container .price {
    font-size: 3.6rem;
    /*color: #CC4E61;*/
    /* color: var(--color-primary); */
    font-weight: 600;
    flex: 1;
}

.product-info .description .price-container .price:after {
    content: '₫';
    font-size: 1.8rem;
    font-weight: 300;
    position: relative;
    top: -10px;
    color: #444;
}

.product-info .description .price-container .price-group {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 1.6rem;
}

.product-info .description .price-container .price-group .price {
    flex: none;
}

.product-info .description .price-container .price-old {
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    text-decoration: line-through;
}

.product-info .description .price-container .price-old:after {
    font-size: 1.2rem;
    top: -6px;
}

.product-info .description .buy-now {
    flex: 1;
    color: #fff;
    border: none;
    background: #000;
    font-size: 1.6rem;
}

.product-info .description .buy-now:hover {
    opacity: 0.85;
}

.product-info .description .buy-action .policy-container {
    margin-top: 3rem;
}

.product-info .description .buy-action .policy-container ul {
    list-style-position: outside;
    padding-left: 2rem;
    margin-left: 0;
    font-size: 1.4rem;
    color: #1d1d1f;
    line-height: 2.8rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
}

.product-info .description .combo-container {
    margin-top: 3rem;
    padding: 4rem 3rem;
    background-color: #f5f5f7;
    border-radius: 18px;
}

.product-info .description .combo-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.product-info .description .combo-header h3 {
    font-size: 2.2rem;
    font-weight: 400;
    margin: 0;
}

.product-info .description .combo-saving {
    font-size: 1.4rem;
    color: #6e6e73;
    white-space: nowrap;
}

.product-info .description .combo-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.product-info .description .combo-item {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.product-info .description .combo-item.is-checked {
    opacity: 1;
}

.product-info .description .combo-check {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.product-info .description .combo-check.disable {
    cursor: default;
    accent-color: var(--color-primary);
}

.product-info .description .combo-image {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
}

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

.product-info .description .combo-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.product-info .description .combo-name {
    font-size: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info .description .combo-variant {
    font-size: 1.3rem;
    color: var(--color-text-secondary);
}

.product-info .description .combo-variant.has-select {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
}

.product-info .description .combo-variant.has-select select {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

.product-info .description .combo-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    white-space: nowrap;
}

.product-info .description .combo-container .price-sale {
    font-size: 1.5rem;
    color: #1d1d1f;
}

.product-info .description .combo-container .price-old {
    font-size: 1.3rem;
    color: #6e6e73;
    text-decoration: line-through;
}

.product-info .description .combo-container .price-sale:after,
.product-info .description .combo-container .price-old:after {
    content: '₫';
    font-size: 0.6em;
    font-weight: 300;
    right: 1px;
    color: #444;
    position: relative;
    top: -5px;
}

.product-info .description .combo-saving .price-sale {
    font-size: inherit;
    color: inherit;
}

.product-info .description button.buy-combo {
    width: 100%;
    margin-top: 2.4rem;
    padding: 1.5rem 2rem;
    color: #fff;
    background: var(--color-accent);
    font-size: 1.6rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.product-info .description button.buy-combo:hover {
    opacity: 0.85;
}

.product-info .description button.buy-combo .price-sale {
    color: #fff;
    font-size: inherit;
}

.product-info .description button.buy-combo .price-sale:after,
.product-info .description button.buy-combo .price-old:after {
    color: inherit;
}

.product-info .description button.buy-combo .price-old {
    margin-left: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    font-size: 1.5rem;
}

.product-detail-container {
    margin-top: 4rem;
    width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.product-detail-container > h2 {
    font-size: 3.2rem;
    font-weight: 500;
    letter-spacing: -0.06rem;
}

.product-detail-container .product-detail-section {
    display: flex;
    gap: 2rem;
}

.product-detail-container .product-detail-section > h3 {
    font-size: 3rem;
    font-weight: 500;
    width: 200px;
    padding: 4rem 0;
}

.product-detail-container .product-detail-section-content {
    flex: 1;
    padding: 4rem 0;
    border-bottom: 1px solid var(--color-border);
}

.product-detail-container
    .product-detail-section:last-of-type
    .product-detail-section-content {
    border-bottom: none;
    padding-bottom: 0;
}

.product-detail-container .product-detail-section-content p:first-child {
    margin-top: 0;
}

.product-detail-container .product-detail-section-content ul {
    list-style-position: outside;
    padding-left: 2rem;
    margin-left: 0;
}

.product-detail-container .tag-container .tag {
    color: var(--color-text);
    margin-left: 1rem;
}

.product-detail-container .tag-container .tag:before {
    content: '#';
}

.product-detail-container .tag-container .tag:hover {
    color: var(--color-primary);
}

.product-detail-container .product-collapse-item-content-inner h1,
.product-detail-container .product-collapse-item-content-inner h2,
.product-detail-container .product-collapse-item-content-inner h3,
.product-detail-container .product-collapse-item-content-inner h4,
.product-detail-container .product-collapse-item-content-inner h5,
.product-detail-container .product-collapse-item-content-inner h6 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 3rem;
}

.product-detail-container .product-collapse-item-content-inner strong,
.product-detail-container .product-collapse-item-content-inner b {
    font-weight: 600;
}

#product-banner-content {
    margin-top: 4rem;
}

#productDetailFade,
#productDetailSpecFade,
#product-banner-content-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

#product-banner-content-toggle.is-open svg {
    transform: rotate(180deg);
}

#productDetailToggle a,
#productDetailSpecToggle a,
#product-banner-content-toggle a {
    display: flex;
    justify-content: center;
    color: #000;
}

#productDetailToggle a:hover,
#productDetailSpecToggle,
#product-banner-content-toggle a:hover {
    color: var(--color-primary);
}

.product-detail-container .product-spec-table {
    margin-top: 1.6rem;
}

.product-detail-container .product-spec-table .product-spec-key {
    font-weight: 600;
    padding-bottom: 1rem;
    white-space: nowrap;
}

.product-detail-container .product-spec-table .product-spec-value {
    padding-left: 1rem;
    padding-bottom: 1rem;
}

.product-detail-container .product-spec-table .product-spec-value a {
    color: var(--color-text);
    text-decoration: none;
}

.product-detail-container .product-spec-table .product-spec-value a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.product-detail-container .product-spec-table .product-spec-value.ingredients {
    font-size: 1.2rem;
}

/** FAQ **/
.faq-list {
    display: flex;
    flex-direction: column;
    width: 88%;
}

.faq-item {
    border-bottom: 1px solid #e8e8e8;
}

.faq-item:first-child .faq-question {
    padding-top: 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    width: 100%;
    padding: 1.6rem 0;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    user-select: none;
}

.faq-question-text {
    line-height: 1.4;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.faq-question-text b {
    font-weight: 500 !important;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    margin-right: 0.6rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--color-text-secondary);
}

.faq-icon svg {
    display: block;
}

.faq-item.is-open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.35s ease;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
    padding-bottom: 1rem;
}

.faq-answer-inner {
    min-height: 0;
    overflow: hidden;
    margin-top: -4px;
    padding: 0 2.4rem 0 0;
}

.faq-answer p {
    margin: 0;
    padding-bottom: 1.6rem;
    opacity: 0;
    transform: translateY(-4px);
    transition:
        opacity 0.25s ease,
        transform 0.35s ease;
}

.faq-item.is-open .faq-answer p {
    opacity: 1;
    transform: translateY(0);
}

/*sub-collection nav*/
.sub-collection-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 100%;
    overflow-x: auto;
    margin-top: -1.5rem;
}

.sub-collection-nav a {
    padding: 0.7rem 2rem;
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    white-space: nowrap;
    text-transform: uppercase;
}


.sub-collection-nav a.active {
    font-weight: 500;
    color: var(--color-text);
}
.sub-collection-nav a:hover{
    text-decoration: underline;
}

/* product collapse */
.product-collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    width: 100%;
    padding: 3.2rem 0;
    border: none;
    background: none;
    cursor: pointer;
    user-select: none;
}

.product-collapse h3 {
    font-size: 3rem;
    font-weight: 500;
}

.product-collapse-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #000;
}

.product-collapse-item {
    border-bottom: 1px solid var(--color-border);
}

.product-collapse-icon-v {
    transform-origin: center;
    transform-box: fill-box;
    transition: transform 0.3s ease;
}

.product-collapse-item.is-open .product-collapse-icon-v {
    transform: rotate(90deg);
}

.product-collapse-item-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.product-collapse-item-content-inner {
    overflow: hidden;
    width: 760px;
    margin-left: auto;
}

.product-collapse-item.is-open .product-collapse-item-content {
    grid-template-rows: 1fr;
}

.product-collapse-item.is-open .product-collapse {
    padding-bottom: 0;
}

.product-collapse-item.is-open .product-collapse-item-content-inner {
    padding-bottom: 3.2rem;
}

/* ------------- Reviews --------------------------------- */
#collection-body,
#product-review {
    scroll-margin-top: 150px;
}
.review-card {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
}

.review-card:first-child {
    padding-top: 0;
}

.review-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-pagination {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 2rem;
}

.review-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: #e2e2e5;
    color: #707070;
    cursor: pointer;
    border-radius: 50%;
}

.review-page-btn:enabled:hover {
    background: #e8e8eb;
}

.review-page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.review-page-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.review-page-btn-prev svg {
    transform: rotate(180deg);
}

.review-card-main {
    flex: 7;
    min-width: 0;
}

.review-card-head {
    display: flex;
    gap: 1.6rem;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.review-avatar-fallback svg {
    width: 60%;
    height: 60%;
    fill: none;
    stroke: #c6c6c6;
}

.review-card-body {
    flex: 1;
    min-width: 0;
}

.review-card-name {
    font-weight: 600;
    font-size: 1.5rem;
}

.review-card-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 0.4rem;
}

.review-stars {
    display: flex;
    gap: 0.2rem;
}

.review-star {
    width: 1.3rem;
    height: 1.3rem;
    margin-right: 0.125rem;
    fill: none;
    stroke: var(--color-accent);
}

.review-star.is-on {
    fill: var(--color-accent);
}

.review-card-date {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
}

.review-card-comment {
    font-size: 1.5rem;
    line-height: 1.7;
    white-space: pre-wrap;
    margin: 0.8rem 0 0 6rem;
}

.review-media-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: flex-end;
    gap: 0.8rem;
    flex: 3;
    min-width: 0;
}

.review-media-images {
    display: contents;
}

.review-media-thumb {
    position: relative;
    width: 65px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-border);
}

.review-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-media-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.review-media-play svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* ------------- 404 --------------------------------- */
.page-404 {
    /*background: var(--color-background);*/
    min-height: calc(100vh - 22rem);
    display: flex;
    align-items: center;
    padding: 8rem 0;
}
body:has(.page-404) footer.site-footer {
    margin-top: 0;
}
.page-404__inner {
    max-width: 72rem;
    margin: 0 auto;
    text-align: center;
}

.page-404__eyebrow {
    margin: 0 0 1.6rem;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.28rem;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.page-404__code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    color: var(--color-text);
    line-height: 0.85;
    user-select: none;
}

.page-404__code span {
    font-size: 16rem;
    font-weight: 200;
    letter-spacing: -0.6rem;
}

.page-404__compact {
    width: 11.2rem;
    height: 11.2rem;
    flex-shrink: 0;
    display: block;
    color: var(--color-text);
}

.page-404__title {
    margin-top: 3.2rem;
    font-size: 4.8rem;
    font-weight: 300;
    letter-spacing: -0.12rem;
    line-height: 1.15;
}

.page-404__text {
    max-width: 52rem;
    margin: 1.6rem auto 0;
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.page-404__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 4rem;
}

.page-404__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22rem;
    padding: 1.4rem 2.4rem;
    border: 1px solid var(--color-primary);
    background: #fff;
    color: var(--color-text);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.075rem;
    transition:
        background 0.4s ease,
        color 0.4s ease,
        border-color 0.4s ease;
}

.page-404__btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.page-404__btn--primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* .page-404__btn--primary:hover {
               background: #0256ad;
               border-color: #0256ad;
             }*/

.page-404__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 2.4rem;
    margin: 4.8rem 0 0;
}

.page-404__links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
}

.page-404__links a:hover {
    color: var(--color-primary);
}

@media (max-width: 700px) {
    .page-404 {
        min-height: auto;
        padding: 6rem 0;
    }

    .page-404__code {
        gap: 0.6rem;
    }

    .page-404__code span {
        font-size: 9.6rem;
        letter-spacing: -0.32rem;
    }

    .page-404__compact {
        width: 6.8rem;
        height: 6.8rem;
    }

    .page-404__title {
        font-size: 3.2rem;
    }

    .page-404__text {
        font-size: 1.6rem;
    }

    .page-404__btn {
        min-width: 100%;
    }
}

/* ---------------------------- CART PAGE ---------------------------- */

.cart-empty {
    font-size: 1.5rem;
    padding: 4rem 0;
    text-align: center;
    color: var(--color-text-secondary);
}

.cart-empty a {
    color: var(--color-text);
    text-decoration: underline;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32rem;
    gap: 2.4rem;
    align-items: start;
}

.cart-page .price:after {
    content: '₫';
    font-size: 0.7em;
    margin-left: 1px;
    position: relative;
    top: -4px;
}

/* --- Items table --- */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.4rem;
}

.cart-table th,
.cart-table td {
    padding: 1.6rem;
    vertical-align: middle;
}

.cart-table th {
    background: #f5f5f7;
    color: var(--color-text-secondary);
    font-size: 1.3rem;
    font-weight: 400;
    white-space: nowrap;
}

.cart-table tbody tr {
    border-bottom: 1px solid var(--color-border);
}

.cart-product__inner {
    display: grid;
    grid-template-columns: 8rem 1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: 1.2rem;
    justify-items: start;
}

.cart-product img {
    grid-row: 1 / 4;
    width: 8rem;
    height: 8rem;
    object-fit: contain;
    background: #f5f5f7;
    border-radius: 0.4rem;
}

.cart-product__link {
    display: contents;
    color: var(--color-text);
    text-decoration: none;
}

.cart-product__link:hover h3 {
    text-decoration: underline;
}

.cart-product h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.cart-product p {
    color: var(--color-text-secondary);
    margin-bottom: 0.8rem;
}

.cart-variant {
    position: relative;
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.2rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 0.4rem;
    font-size: 1.3rem;
    color: var(--color-text-secondary);
}

.cart-variant.has-select {
    border-color: var(--color-border);
}

.cart-variant.has-select select {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

.cart-remove {
    align-self: end;
    border: 0;
    background: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    font-size: 1.3rem;
    color: var(--color-text-secondary);
    cursor: pointer;
}

.cart-remove:hover {
    color: var(--color-accent);
}

.cart-price {
    font-weight: 500;
    font-size: 1.4rem;
    white-space: nowrap;
}

.cart-price .price {
    display: block;
}

.cart-price .price-old {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    text-decoration: line-through;
}

.cart-line-total {
    font-weight: 600;
    white-space: nowrap;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 0.4rem;
}

.cart-qty button {
    border: 0;
    background: none;
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.6rem;
    cursor: pointer;
}

.cart-qty button:disabled {
    color: var(--color-border);
    cursor: default;
}

.cart-qty span {
    min-width: 3.2rem;
    text-align: center;
}

.cart-continue {
    color: var(--color-text);
    text-decoration: none;
}

.cart-continue:hover {
    text-decoration: underline;
}

.cart-subtotal strong {
    margin-left: 1.6rem;
    font-size: 1.6rem;
    color: var(--color-accent);
}

/* --- Summary --- */
.cart-summary {
    position: sticky;
    top: 2rem;
    border-top: 3px solid var(--color-primary);
    background: #fff;
    padding: 1.6rem;
    font-size: 1.4rem;
}

.cart-summary h2 {
    font-size: 1.6rem;
    font-weight: 500;
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--color-border);
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.cart-summary__row .cart-summary__saving {
    color: var(--color-accent);
}

.cart-summary__total {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--color-border);
}

.cart-summary__total strong {
    font-size: 1.8rem;
    color: var(--color-accent);
}

.cart-summary__note {
    color: var(--color-text-secondary);
    font-size: 1.2rem;
    margin-bottom: 1.6rem;
}

.cart-checkout {
    display: block;
    text-align: center;
    padding: 1.4rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    border-radius: 0.4rem;
    text-decoration: none;
    cursor: pointer;
}

.cart-checkout:hover {
    opacity: 0.85;
}

/* -------------------- Checkout page -------------------- */
.checkout-page {
    padding-top: 1.6rem;
    padding-bottom: 6rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
    gap: 3.2rem;
    align-items: start;
}

.checkout-box + .checkout-box {
    margin-top: 3.2rem;
}

.checkout-box h2,
.checkout-right h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.6rem;
}

.checkout-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.checkout-form__full {
    grid-column: 1 / -1;
}

.checkout-field {
    position: relative;
    display: block;
}

.checkout-field input,
.checkout-field select {
    width: 100%;
    height: 5.2rem;
    padding: 2rem 1.4rem 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    background: #fff;
    color: var(--color-text);
    font-size: 1.5rem;
    font-family: inherit;
}

.checkout-field span {
    position: absolute;
    left: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    pointer-events: none;
    transition:
        top 0.15s,
        font-size 0.15s;
}

.checkout-field input:focus + span,
.checkout-field input:not(:placeholder-shown) + span,
.checkout-field select + span {
    top: 1.4rem;
    font-size: 1.2rem;
}

.checkout-field input:focus,
.checkout-field select:focus {
    outline: none;
    border-color: var(--color-text);
}

.checkout-field .is-error,
.checkout-field .is-error:focus {
    border: 1.5px solid var(--color-accent);
}

.checkout-field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 3rem;
    background: #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23727272' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E")
        no-repeat right 1.2rem center / 1.4rem;
    text-overflow: ellipsis;
    cursor: pointer;
}

.checkout-field select:disabled {
    background-color: #f7f7f7;
    cursor: default;
}

.checkout-error {
    margin: 0.4rem 0 0 0.4rem;
    color: var(--color-accent);
    font-size: 1.2rem;
}

.checkout-payment {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.6rem;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.checkout-payment + .checkout-payment {
    margin-top: 1rem;
}

.checkout-payment:has(input:checked) {
    border-color: var(--color-text);
}

.checkout-payment input {
    width: 1.8rem;
    height: 1.8rem;
    accent-color: var(--color-text);
}

.checkout-right {
    position: sticky;
    top: 2rem;
    font-size: 1.4rem;
}

.checkout-empty {
    color: var(--color-text-secondary);
}

.checkout-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checkout-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.2rem 0;
}

.checkout-item__image {
    width: 90px;
    height: 90px;
    background: #f5f5f7;
    border-radius: 0.8rem;
    overflow: hidden;
}

.checkout-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item__info {
    flex: 1;
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.checkout-item__info h3 {
    font-size: 1.4rem;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.checkout-item__info p {
    margin-top: 0.4rem;
    color: var(--color-text-secondary);
    font-size: 1.2rem;
}

.checkout-item__price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: auto;
    padding-top: 0.6rem;
    font-weight: 500;
}

.checkout-item__price del {
    margin-left: 0.6rem;
    color: var(--color-text-secondary);
    font-size: 1.2rem;
    font-weight: 400;
}

.checkout-item__price span + span {
    color: var(--color-text-secondary);
    font-size: 1.4rem;
    font-weight: 400;
}

.checkout-summary {
    margin-top: 1.2rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--color-border);
}

.checkout-summary div {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
}

.checkout-summary .checkout-summary__total {
    align-items: baseline;
    margin-top: 0.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--color-border);
    font-size: 1.5rem;
    font-weight: 600;
}

.checkout-summary p {
    color: var(--color-text-secondary);
    font-size: 1.2rem;
    margin: 0;
}

.checkout-summary__total strong {
    color: var(--color-text);
    font-size: 2rem;
}

.checkout-submit {
    display: block;
    width: 100%;
    margin-top: 1.6rem;
    padding: 1.4rem;
    border: 0;
    border-radius: 0.8rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.checkout-submit:hover {
    opacity: 0.85;
}

.checkout-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* -------------------- Order success page -------------------- */
.success-head {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-bottom: 3.2rem;
    font-size: 1.4rem;
}

.success-icon {
    flex: 0 0 4.8rem;
    color: #43af34;
}

.success-title {
    margin: 0 0 0.6rem;
    font-size: 2.2rem;
    font-weight: 600;
}

.success-text {
    margin: 0 0 0.2rem;
    color: var(--color-text-secondary);
}

.success-code {
    color: var(--color-text);
    font-weight: 600;
}

.success-box {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    padding: 1.6rem;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    font-size: 1.4rem;
}

.success-group__title {
    margin: 0 0 0.8rem;
    font-size: 1.6rem;
    font-weight: 500;
}

.success-group__text {
    margin: 0;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.success-continue {
    margin-top: 2.4rem;
    text-align: center;
    text-decoration: none;
}

/* -------------------- My orders page -------------------- */
.orders-page {
    max-width: 80rem;
    padding-top: 1.6rem;
    padding-bottom: 6rem;
}

.orders-title {
    margin-bottom: 2.4rem;
    font-size: 2.2rem;
    font-weight: 600;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-card {
    padding: 0.4rem 1.6rem 1.6rem;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    font-size: 1.4rem;
}

.order-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--color-border);
}

.order-card__code {
    font-weight: 600;
}

.order-card__date {
    margin-left: 1.2rem;
    color: var(--color-text-secondary);
    font-size: 1.3rem;
}

.order-status {
    flex-shrink: 0;
    padding: 0.4rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 500;
}

.order-status--1 { color: var(--color-secondary); border-color: currentColor; }
.order-status--5 { color: #43af34; border-color: currentColor; }
.order-status--6 { color: var(--color-accent); border-color: currentColor; }

.order-card__foot {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    padding-top: 1.2rem;
    border-top: 1px solid var(--color-border);
}

.order-card__total {
    margin-left: 0.4rem;
    font-size: 1.6rem;
    font-weight: 500;
}

/* -------------------- Page (content zone PAGE) -------------------- */
.page-content {
    max-width: 140rem;
    margin-top: 3rem;
}

.page-content p {
    margin: 0;
}

.page-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 2.4rem;
}
