@import url(global-root.css);

@keyframes colorChange {
    0% {
        background-color: #b71c1c;
        color: #ffffff;
    }
    25% {
        background-color: #b54500;
        color: #ffffff;
    }
    50% {
        background-color: yellow;
        color: #000000;
    }
    75% {
        background-color: lime;
        color: #000000;
    }
    100% {
        background-color: #b71c1c;
        color: #ffffff;
    }
}
@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(0);
    }
    70% {
        transform: translateY(-5px);
    }
}

body {
    background-color: var(--root-color-bg-1) !important;
    color: var(--root-color);
}
h1,h2,h3,h4,h5,h6 {
    color: var(--root-color);
}
.h1-breadcrumb {
    display: inline;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}
.card {
    background-color: var(--root-color-bg-2);
}
.main-container {
    margin: 0 100px;
}
.content-container {
    background-color: var(--root-color-bg-1);
}
.banner-container {
}
.type-lb .sale {
    animation: colorChange 2s infinite;
}

/* Basic CSS */
.center-x {
    justify-content: center;
    display: flex;
}
.center-y {
    align-items: center;
    display: flex;
}
.right-x {
    justify-content: flex-end;
    display: flex;
}
.border-radius-5 {
    border-radius: 5px;
}
.cursor-pointer {
    cursor: pointer;
}
.cursor-none {
    cursor: none;
}
.standard-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
}
.fs12 {
    font-size: 12px !important;
}
.fs14 {
    font-size: 14px !important;
}
.fs16 {
    font-size: 16px !important;
}
.fs18 {
    font-size: 18px !important;
}
.fs20 {
    font-size: 20px !important;
}
.fs22 {
    font-size: 22px !important;
}
.fw400 {
    font-weight: 400 !important;
}
.fw-bold {
    font-weight: 700 !important;
}
/* End Basic CSS */
/* Quill Blot CSS */
.blog-container img {
    max-width: 100%;
    height: auto;
}
.blog-container {
    margin: 1rem 3rem;
}
.blog-container,
#quill-output,
#quill-editor {
    overflow-wrap: break-word;
    overflow: visible;
    white-space: normal;
}
/* End Quill Blot CSS */
/* Swiper CSS */
.swiper-container {
    width: 100%;
    overflow: hidden;
}
.swiper-container-sub-product {
    height: var(--swiper-container-sub-product-height-mobile);
    padding-top: 10px;
    background-color: var(--root-color-bg-1);
}
.swiper-container.swiper-container-blog {
    aspect-ratio: 3 / 1;
    border-radius: 10px;
}
.swiper-container-product-module,
.swiper-container-sub-product {
    visibility: hidden; /* Ẩn ban đầu */
}
.module-max-height {
    max-height: calc(24vw + 68px); /* 992 - 1199px */
}
.swiper-slide {
    margin-right: 10px;
}
.swiper-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 5px;
    cursor: pointer;
}
.swiper-container.circle-button {
    margin-top: var(--circle-button-margin-top) !important; /* 768 - 991px */
}
.circle-button:hover {
    background-color: var(--root-color);
}
.circle-button.swiper-button-prev {
    left: 16px;
}
.circle-button.swiper-button-next {
    right: 16px;
}
.circle-button.swiper-button-next,
.circle-button.swiper-button-prev {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-top: 120px;
}
.circle-button.swiper-button-next:after,
.circle-button.swiper-button-prev:after {
    font-size: 15px;
    font-weight: 700;
}
.module-title {
    text-transform: capitalize;
    color: var(--root-color);
    font-size: 26px;
}
/* End Swiper CSS */
.breadcrumb-item.active {
    color: var(--root-color-1);
}
.attr-nav > ul > li > a {
    color: var(--root-color);
    padding: 28px 15px;
}
.attr-nav > ul > li > a:hover,
.dropdown > button:hover{
    color: var(--root-color-hover) !important;
}
/* Login/user dropdown button – pill border */
.nav-info-container .dropdown > button {
    padding: 8px 16px !important;
    border-radius: 20px !important;
    border: 1.5px solid rgba(255, 215, 0, 0.45) !important;
    background: transparent !important;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.nav-info-container .dropdown > button:hover {
    background: rgba(255, 215, 0, 0.1) !important;
    border-color: #ffd700 !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    color: var(--root-color-hover) !important;
}
/* Side cart panel */
.side {
    background-color: var(--root-color-bg-2) !important;
    border-left: 3px solid var(--root-color-2);
}
.side .close-side {
    color: rgba(255, 240, 230, 0.7) !important;
    transition: color 0.2s;
}
.side .close-side:hover {
    color: var(--root-color-2) !important;
}
.cart-box {
    background: transparent !important;
    margin-top: 40px !important;
}
ul.cart-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
ul.cart-list > li {
    padding: 10px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
ul.cart-list > li.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 10px 0;
}
ul.cart-list > li span {
    color: var(--root-color) !important;
    font-size: 0.85rem;
}
/* Empty state */
ul.cart-list > li:only-child {
    text-align: center;
    padding: 32px 8px;
    border: 1.5px dashed rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    margin-top: 8px;
}
ul.cart-list > li:only-child span {
    color: rgba(255, 240, 230, 0.45) !important;
    font-size: 0.88rem;
}
/* Total/footer row */
ul.cart-list > li.total {
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    border-bottom: none;
    padding: 12px 0;
    background: rgba(255, 215, 0, 0.04);
    border-radius: 0 0 6px 6px;
}
ul.cart-list > li.total > .btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%) !important;
    color: #3a0000 !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 9px 16px !important;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.3);
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}
ul.cart-list > li.total > .btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.45);
}
.cart-box span {
    color: var(--root-color-0);
}
.profile-left-menu {
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0,0,0,0.1);
    border-left: 3px solid transparent;
    border-radius: 0;
    padding: 16px 20px;
    transition: background-color 0.2s ease, border-left-color 0.2s ease;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}
input[type="radio"] {
    border: 2px solid white;
    appearance: none;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
input[type="radio"]:checked {
    background-color: #435dd8;
    border: 2px solid #435dd8;
    -webkit-animation: puls 0.7s forwards;
    animation: pulse 0.7s forwards;
}
input[type="radio"]:checked + label {
    border-color: var(--root-color);
    color: var(--root-color-bg-1);
    background-color: var(--root-color);
}
input[type="radio"]:before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transition: all 0.1s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: var(--root-color);
    transform: scale(0);
}
input[type="radio"]:checked::before {
    transform: scale(1);
}
.btn-block-2 {
    display: block;
    width: 90%;
    margin: auto;
}
.checkout-address-div {
    padding-top: 8px !important;
    background-color: var(--root-color-bg-1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-top: 10px;
    display: none;
}
/* Form controls inside checkout address form — match dark theme */
.checkout-address-div .form-control,
.checkout-address-div .form-select {
    background-color: var(--root-color-bg-2) !important;
    color: var(--root-color) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 6px;
}
.checkout-address-div .form-control::placeholder,
.checkout-address-div .form-select option:first-child {
    color: rgba(255, 240, 230, 0.4) !important;
}
.checkout-address-div .form-control:focus,
.checkout-address-div .form-select:focus {
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.4) !important;
    border-color: rgba(255, 215, 0, 0.5) !important;
    outline: none;
}
.checkout-address-div select option {
    background-color: var(--root-color-bg-1);
    color: var(--root-color);
}
/* field-input override inside dark form */
.checkout-address-div .field-input {
    background-color: var(--root-color-bg-2) !important;
    color: var(--root-color) !important;
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.15) !important;
}
.checkout-address-div .field-input::placeholder {
    color: rgba(255, 240, 230, 0.4) !important;
}
.checkout-address-div .field-input:focus {
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.45) !important;
}
/* Labels inside checkout form */
.checkout-address-div .form-label {
    color: rgba(255, 240, 230, 0.7) !important;
    font-size: 13px;
}
/* Save/Confirm button — override blue btn-primary */
.checkout-address-div .btn-primary,
.checkout-address-div .btn-block-2 {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%) !important;
    color: #3a0000 !important;
    font-weight: 700;
    border: none !important;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(255, 215, 0, 0.3);
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}
.checkout-address-div .btn-primary:hover,
.checkout-address-div .btn-block-2:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.45);
    color: #3a0000 !important;
}
/* Checkout cards */
.checkout-info-card,
.checkout-payment-card {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: 3px solid var(--root-color-2) !important;
    border-radius: 8px !important;
    overflow: hidden;
}
.checkout-info-card .card-header,
.checkout-payment-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 12px 16px;
}
.checkout-info-card .card-header h4,
.checkout-payment-card .card-header h4 {
    font-size: 15px;
    letter-spacing: 0.04em;
    color: rgba(255, 240, 230, 0.85);
    font-weight: 600;
}
/* Shipping info text styling */
.checkout-info-card .card-body p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 2px;
}
.checkout-info-card .card-body p span.fw-bold {
    color: var(--root-color);
}
/* Payment method rows as selectable blocks */
.checkout-payment-card .card-body > .row {
    margin: 0 0 8px 0 !important;
    padding: 10px 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    transition: border-color 0.2s, background-color 0.2s;
    cursor: pointer;
}
.checkout-payment-card .card-body > .row:hover {
    border-color: rgba(255, 215, 0, 0.35);
    background-color: rgba(255, 215, 0, 0.04);
}
.checkout-payment-card .card-body > .row:has(input[type="radio"]:checked) {
    border-color: rgba(255, 215, 0, 0.6);
    background-color: rgba(255, 215, 0, 0.06);
}
/* Custom radio button */
.checkout-payment-card input[type="radio"] {
    accent-color: #ffd700;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
/* Coupon box - premium voucher style */
.coupon-box .input-group {
    border: 1.5px dashed rgba(255, 215, 0, 0.5);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.coupon-box .input-group:focus-within {
    border-color: #ffd700;
}
.coupon-box .input-group .form-control {
    background: transparent !important;
    color: var(--root-color) !important;
    border: none !important;
    border-radius: 0 !important;
    min-height: 44px;
}
.coupon-box .input-group .form-control::placeholder {
    color: rgba(255, 240, 230, 0.45);
    font-size: 13px;
}
.coupon-box .input-group .form-control:focus {
    box-shadow: none !important;
}
.coupon-box .input-group .btn-primary {
    background: transparent !important;
    border: none !important;
    border-left: 1px solid rgba(255, 215, 0, 0.35) !important;
    color: #ffd700 !important;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.03em;
    transition: background 0.2s;
}
.coupon-box .input-group .btn-primary:hover {
    background: rgba(255, 215, 0, 0.1) !important;
}
.checkout-text-price {
    color: var(--root-color-2);
    font-size: 20px;
    font-weight: bold;
}
.dropdown-short {
    min-width: 6rem !important;
}
.quantity-btn {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    color: var(--root-color);
    cursor: pointer;
    display: flex;
    font-size: 0.875rem;
    font-weight: 500;
    height: 36px;
    justify-content: center;
    width: 36px;
}
.quantity-control .quantity-btn {
    border: none;
}
.quantity-group {
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 999px;
    transition: border-color 0.2s;
}
.quantity-group:hover {
    border-color: #ffd700;
}
.quantity-group .quantity-box {
    height: 32px;
    width: 48px !important;
    cursor: auto;
}
.quantity-group .quantity-btn {
    height: 32px;
    width: 32px;
}
button.quantity-btn:hover {
    color: var(--root-color-3) !important;
}
.cart-btn {
    background: transparent !important;
    border: 2px solid #ffd700 !important;
    color: #ffd700 !important;
    overflow: visible;
    position: relative;
    width: 180px;
    font-weight: 700;
    border-radius: 6px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s !important;
}
.cart-btn:hover {
    background: rgba(255, 215, 0, 0.12) !important;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.25);
    transform: translateY(-1px);
    color: #ffd700 !important;
}
.btn-buy {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #3a0000;
    overflow: visible;
    position: relative;
    width: 180px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-buy:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 7px 22px rgba(255, 215, 0, 0.45);
    color: #3a0000;
}
.btn-order {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%) !important;
    color: #3a0000 !important;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.35);
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-cart:hover,
.btn-checkout:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.btn-order:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 7px 22px rgba(255, 215, 0, 0.5);
    color: #3a0000 !important;
}
.btn-review {
    background: transparent;
    color: var(--root-color-2) !important;
    border: 1.5px solid var(--root-color-2);
    border-radius: 8px;
    padding: 9px 18px;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-review:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.22);
    transform: translateY(-1px);
    color: var(--root-color-2) !important;
}
.btn-review .review-star {
    color: var(--root-color-2);
    font-size: 15px;
}
.btn-as-link {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
}
.product-attribute {
    color: var(--root-color);
}
.prevent-default {
    cursor: auto;
}
.variant-label:hover {
    background-color: #ffcf20 !important;
    color: black !important;
    border: 1px solid black !important;
}
.page-item .page-link {
    font-size: 13px;
}
.no-margin p,
.no-margin form {
    margin: 0 !important;
}
.btn-paginate {
    width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.product-card-content-container {
    padding: 15px 16px 4px 16px;
}
/* Product card hover & shadow */
.products-single {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.products-single:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.products-single hr {
    display: none;
}
.product-card-content-container .product-name {
    color: var(--root-color-1);
}
.product-icon-container img {
    border-radius: 5px;
    width: 64px;
    height: 64px;
    object-fit: cover;
    position: absolute;
}
.product-icon-container {
    border-radius: 5px;
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.edit-blog-img-container {
    width: 100%;
    max-height: 150px;
}
.edit-blog-img-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.blog-img-container {
    width: 100%;
    height: calc(100vw / 3) !important;
    display: flex !important;
}
.blog-img-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.login-img-container {
    position: relative;
    height: 100%;
    overflow: hidden;
}
.login-img-container img {
    height: 100%;
    width: auto;
    object-fit: cover;
}
.width84 {
    width: 84px;
}
.width95 {
    width: 95px;
}
.btn-small {
    width: 68px;
    font-size: 14px;
    margin: 0 6px 0 0;
}
.btn-large {
    padding: 10px 15px;
    border-radius: 3px;
}
.btn-tab {
    width: 100%;
}
.red-tick {
    color: red;
    font-size: 20px;
}
.strikethrough {
    text-decoration: line-through;
    color: #666666;
}
.status-label {
    display: inline-block;
    width: 7.5rem;
    padding: 4px 0px;
    color: var(--root-color);
    border: none;
    border-radius: 5px;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
}
.form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8); /* Màu nền mờ */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
.row .vertical-line {
    width: 1px;
    --bs-gutter-x: 0;
    height: 360px;
    background: #e7e7e7;
    margin-left: 16px;
    margin-right: 16px;
}
.small-price {
    font-weight: 700;
    color: black;
}
.small-price-order {
    color: var(--root-color);
    font-weight: 700;
}
.height-responsive {
    height: 100%;
}
.card-registration .select-input.form-control[readonly]:not([disabled]) {
    font-size: 1rem;
    line-height: 2.15;
    padding-left: 0.75em;
    padding-right: 0.75em;
}
.card-registration .select-arrow {
    top: 13px;
}
.form-header {
    font-weight: 500;
    font-size: 1.5rem;
}
.form-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-align: center;
    margin-bottom: 24px;
}
.sign-form-close {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}
.sign-form-close:hover {
    background: rgba(255, 215, 0, 0.25);
    color: #ffd700;
}
@keyframes popupOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.88) translateY(24px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
#loginPopup,
#registerPopup {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
    animation: popupOverlayIn 0.25s ease;
}
.link-info {
    color: #0dcaf0 !important;
}
.link-info:focus,
.link-info:hover {
    color: #3dd5f3 !important;
}
.brand-name {
    color: orange;
}
.flex-space-between {
    display: flex;
    justify-content: space-between; /* Đẩy các phần tử ra hai bên */
    align-items: center; /* Căn giữa theo chiều dọc */
}
.cart-e2-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    padding: 0;
}
.sf-navbar {
    background-color: var(--root-color-bg-1) !important;
    padding-top: 0;
    padding-bottom: 0;
}
.sf-banner {
    width: 100%;
    aspect-ratio: 3 / 1;
    object-fit: cover;
}
.sf-banner-view {
    width: 100%;
    aspect-ratio: 3 / 1;
    object-fit: cover;
}
.sf-mb-banner-view {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}
.swiper-container-blog {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.55);
    border-bottom: 3px solid var(--root-color-2);
}
.swiper-container-blog .blog-img-container {
    position: relative;
}
.swiper-container-blog .blog-img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(64, 0, 0, 0.45) 100%);
    pointer-events: none;
}
.swiper-container-blog .swiper-button-next,
.swiper-container-blog .swiper-button-prev {
    color: var(--root-color-2) !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.swiper-container-blog .swiper-button-next::after,
.swiper-container-blog .swiper-button-prev::after {
    font-size: 1.2rem;
}
.signup-form {
    background-color: var(--root-color-bg-1);
    max-width: unset;
}
.login-card {
    background-color: var(--root-color-bg-2);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    margin-top: 20px;
    overflow: hidden;
}
.login-card-mobile {
    background-color: var(--root-color-bg-2);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    margin-top: 40px;
    overflow: hidden;
}
.login-card .card-body,
.login-card-mobile .card-body {
    background-color: var(--root-color-bg-2);
}
.login-card .card-body label,
.login-card .card-body h4,
.login-card-mobile .card-body label,
.login-card-mobile .card-body h4 {
    color: rgba(255, 240, 230, 0.75) !important;
}
.login-card .form-control,
.login-card-mobile .form-control {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 215, 0, 0.25);
    color: var(--root-color) !important;
}
.login-card .form-control:focus,
.login-card-mobile .form-control:focus {
    border-color: var(--root-color-2);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.1);
}
.login-card .form-control::placeholder,
.login-card-mobile .form-control::placeholder {
    color: rgba(255, 240, 230, 0.35);
}
.login-mh-mobile {
    min-height: 60px;
}
.login-fs-mobile {
    font-size: 1.5rem;
}
.default-logo {
    height: 160px;
    width: 160px;
    object-fit: cover;
}
.main-logo {
    width: 160px;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.18), 0 2px 8px rgba(0,0,0,0.35);
    transition: box-shadow 0.3s ease;
}
.navbar-brand:hover .main-logo {
    box-shadow: 0 0 26px rgba(255, 215, 0, 0.42), 0 4px 14px rgba(0,0,0,0.45);
}
.main-logo.logo-width {
    width: 140px;
}
.custom-checkbox {
    width: 20px;
    height: 20px;
    display: inline-block;
    position: relative;
    background: #0388cc;
    outline-color: #0388cc;
}
.popup-content {
    background: linear-gradient(160deg, #5a0000 0%, #360000 100%);
    padding: 36px 32px 36px;
    border-radius: 20px;
    position: relative;
    width: 340px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 215, 0, 0.18);
    animation: popupFadeIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Login Popup - Logo Header */
.login-logo-header {
    text-align: center;
    margin-bottom: 12px;
}
.login-brand-text {
    display: inline-block;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Login Popup - Input Group */
.login-input-group {
    position: relative;
    margin-bottom: 18px;
}
.login-input-group .login-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 215, 0, 0.65);
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}
.login-input-group .form-control {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 10px;
    color: #fff;
    padding: 12px 40px 12px 38px;
    font-size: 14px;
    height: auto;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.login-input-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.45);
}
.login-input-group .form-control:focus {
    background: rgba(255, 255, 255, 0.13);
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.18);
    color: #fff;
    outline: none;
}
/* Fix browser autofill override */
.login-input-group .form-control:-webkit-autofill,
.login-input-group .form-control:-webkit-autofill:hover,
.login-input-group .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(90, 0, 0, 0.95) inset, 0 0 0 3px rgba(255, 215, 0, 0.18);
    -webkit-text-fill-color: #fff;
    border-color: #ffd700;
    transition: background-color 9999s ease-in-out 0s;
}
.login-pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    line-height: 1;
    transition: color 0.2s;
}
.login-pwd-toggle:hover {
    color: #ffd700;
}

/* Login Popup - Submit Button */
.login-submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    border: none;
    border-radius: 10px;
    color: #3a0000;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    margin-bottom: 0;
}
.login-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 7px 26px rgba(255, 215, 0, 0.45);
}
.login-submit-btn:active {
    transform: translateY(0);
}

/* Login Popup - OR Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.13);
}

/* Login Popup - Google Button */
.login-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    margin-bottom: 18px;
}
.login-google-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.38);
    color: #fff;
    text-decoration: none;
}
.login-google-btn img {
    width: 18px;
    height: 18px;
}

/* Login Popup - Footer */
.login-footer-text {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}
.login-footer-text a {
    color: #ffd700;
    text-decoration: none;
}
.login-footer-text a:hover {
    color: #ffeb8d;
}
.process-container {
    background: var(--root-color-bg-1);
}
.navbar-container {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--root-color-bg-1);
    -webkit-box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.15);
}
.breadcrumb-container {
    background: var(--root-color-bg-1);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding: 6px 0;
}
.breadcrumb-container .breadcrumb {
    margin-bottom: 0;
    background: transparent;
    flex-wrap: wrap;
}
.breadcrumb-container .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}
.breadcrumb-container .breadcrumb-item.active {
    color: var(--root-color-2);
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.breadcrumb-container .breadcrumb-item:not(.active) {
    flex-shrink: 0;
    white-space: nowrap;
}
.process-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 24px 0px;
}
.process-box li {
    font-size: 24px;
    font-weight: 700;
    line-height: 140%;
    letter-spacing: 0.008em;
    color: var(--root-color);
    padding: unset;
}
.process-box li.active {
    color: var(--root-color-4);
}
.navbar-logo {
    margin-left: 2rem;
}
.note-textarea-container {
    height: 90px;
    display: flex;
    align-items: flex-start;
    margin: 20px 0 !important;
}
.note-textarea-container .note-textarea {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: var(--root-color);
    resize: none;
    font-size: 14px;
    transition: border-color 0.2s, background 0.2s;
}
.note-textarea-container .note-textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.note-textarea-container .note-textarea:focus {
    border-color: rgba(255, 215, 0, 0.55);
    background: rgba(255, 255, 255, 0.09);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}
.language-box {
    padding: 0px 4px;
    font-size: 14px;
    width: 90px;
}
.text-description {
    text-indent: 30px;
    text-align: justify;
    font-size: 16px;
}
.simple-table {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
}
.simple-table thead th {
    vertical-align: bottom;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 240, 230, 0.7);
    font-weight: 600;
}
.simple-table th,
.simple-table td {
    background-color: var(--root-color-bg-2);
    border: none;
    padding: 14px 10px;
    text-align: left;
    vertical-align: middle;
    transition: background-color 0.18s;
}
/* Table corner radius */
.simple-table thead tr:first-child th:first-child { border-radius: 7px 0 0 0; }
.simple-table thead tr:first-child th:last-child  { border-radius: 0 7px 0 0; }
.simple-table tbody tr:last-child td:first-child  { border-radius: 0 0 0 7px; }
.simple-table tbody tr:last-child td:last-child   { border-radius: 0 0 7px 0; }
/* Row separators */
.simple-table tbody tr td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.simple-table tbody tr:last-child td {
    border-bottom: none;
}
/* Row hover */
.simple-table tbody tr:hover td {
    background-color: #4d0000;
}
/* Trash icon */
.simple-table .fa-trash {
    color: rgba(255, 240, 230, 0.5);
    transition: color 0.2s;
}
.simple-table .fa-trash:hover {
    color: #ff4444;
}
.icon-box-in-cart {
    margin-top: 16px;
    padding: 16px;
    background: white;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
}
.icon-box-in-cart img {
    display: flex;
    margin: auto;
    width: 120px;
}
.icon-box-in-cart .note-txt {
    padding-top: 16px;
    font-style: italic;
    font-size: 10px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 0.02em;
    color: var(--root-color-1);
}
.order-box {
    padding: 16px;
    background: var(--root-color-bg-2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--root-color-2);
    border-radius: 4px;
}
/* Order box premium overrides */
.order-box .title-left {
    border-bottom: 1.5px solid rgba(255, 215, 0, 0.35);
    margin-bottom: 12px;
    padding-bottom: 4px;
}
.order-box hr {
    border-color: rgba(255, 255, 255, 0.1) !important;
    border-top-width: 1px;
    margin: 6px 0;
}
.order-box .d-flex h4 {
    font-size: 14px !important;
    color: rgba(255, 240, 230, 0.65);
    line-height: 2.4 !important;
    margin: 0;
}
.order-box .d-flex .font-weight-bold,
.order-box .d-flex .fw-bold {
    font-size: 14px;
    line-height: 2.4;
}
.order-box .gr-total {
    background: rgba(255, 215, 0, 0.07);
    border-radius: 5px;
    padding: 6px 8px;
    margin: 0 -8px;
}
.order-box .gr-total h5 {
    font-size: 16px !important;
    color: var(--root-color) !important;
}
.capitalize {
    text-transform: capitalize;
}
/* Search Form CSS */
.sf-search-form .input-group {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.sf-search-form .form-control {
    border-radius: 0;
    border: none;
    transition: box-shadow 0.2s ease;
    font-size: 14px;
}
.sf-search-form .form-control:focus {
    box-shadow: inset 0 0 0 2px var(--root-color-2);
    outline: none;
}
.sf-search-form .btn-black {
    border-radius: 0;
    padding: 0 20px;
    font-size: 16px;
    min-width: 50px;
}
/* Storefront CSS*/
.empty-product-block {
    background: #f7f8f9;
    text-align: center;
    padding: 60px 20px !important;
    border-radius: 6px;
}
.empty-product-block .empty-icon {
    font-size: 52px;
    color: var(--root-color-bg-1);
    opacity: 0.35;
    margin-bottom: 16px;
    display: block;
}
.empty-product-block p {
    font-size: 17px !important;
    color: #555 !important;
    padding: 0 !important;
    margin: 0;
    font-weight: 500;
}
.empty-product-block .empty-sub {
    font-size: 13px;
    color: #999;
    margin-top: 6px;
}
.homepage-block-title {
    text-align: left;
    color: var(--root-color);
    font-size: 26px;
}
.homepage-block-title:before {
    content: "";
    background: var(--root-color-2);
    width: 60px;
    height: 4px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    z-index: 1;
    border-radius: 3px;
}
.homepage-block-title:after {
    content: "";
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    border-radius: 3px;
}
.category-dropdown-menu {
    min-width: 260px !important;
    border-radius: 0 0 6px 6px !important;
    border: none !important;
    background-color: var(--root-color-bg-1) !important;
    box-shadow: 0 10px 28px rgba(0,0,0,0.5) !important;
    border-top: 3px solid var(--root-color-2) !important;
    padding: 4px 0 8px !important;
}
.category-dropdown-menu .menu-category-part {
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sub-cate-padding {
    display: block;
    padding: 10px 20px 10px 14px;
    font-size: 0.82rem;
    letter-spacing: 0.4px;
}
.category-dropdown-menu .a-style-dark {
    color: var(--root-color) !important;
}
.category-dropdown-menu .hover-border-left:hover {
    background-color: rgba(0,0,0,0.3) !important;
    border-left-color: var(--root-color-2) !important;
}
.category-dropdown-menu .hover-border-left:hover .a-style-dark {
    color: var(--root-color-2) !important;
}
.hover-border-left {
    border-left: 3px solid transparent;
    transition: border-color 0.3s;
}
#dropdownMenu_login {
    background-color: var(--root-color-bg-1) !important;
    border: 1.5px solid rgba(255, 215, 0, 0.35) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.55) !important;
    padding: 12px 0 6px !important;
    min-width: 190px !important;
    margin-top: 0 !important;
    overflow: hidden;
}
#dropdownMenu_login li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
#dropdownMenu_login li:last-child {
    border-bottom: none;
}
#dropdownMenu_login a, #dropdownMenu_login .btn-as-link {
    min-width: 12rem;
    border-left: 3px solid transparent;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    color: var(--root-color) !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}
.hover-border-left:hover,
.profile-left-menu.active {
    background-color: #920000;
    border-left: 3px solid var(--root-color-bg-2);
    color: var(--root-color) !important;
}
#dropdownMenu_login a:hover,
#dropdownMenu_login .btn-as-link:hover {
    background-color: rgba(255, 215, 0, 0.08) !important;
    border-left-color: var(--root-color-2) !important;
    color: var(--root-color-2) !important;
}
.hover-border-left:hover .a-style-dark {
    color: white !important;
}
.footer-link-contact ul li i {
    color: var(--root-color-2);
}
/* Footer overrides */
.footer-main {
    padding-top: 40px !important;
    border-top: 2px solid var(--root-color-2);
}
.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-copyright p.footer-company {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.55) !important;
    letter-spacing: 0.5px;
}
.border-left-3 {
    border-left: 3px solid;
}
.menu-category-part-main {
    border-bottom: 3px solid transparent;
    transition: border-color 0.25s, color 0.2s;
    padding: 6px 10px 5px;
    letter-spacing: 0.04em;
    font-size: 0.82rem;
}
.menu-category-part-main:hover {
    border-bottom: 3px solid var(--root-color-2);
}
.menu-category-part-main:hover a {
    color: var(--root-color-2) !important;
}
.nav-cate-arrow {
    font-size: 1em;
    color: var(--root-color);
    margin-left: 3px;
    transition: transform 0.22s ease, color 0.22s ease;
    vertical-align: middle;
    line-height: 1;
}
.menu-category-part-main:hover .nav-cate-arrow {
    transform: rotate(-180deg);
    color: var(--root-color-2);
}
.product-section-title {
    position: relative;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    color: var(--root-color) !important;
    padding-bottom: 10px !important;
    margin-bottom: 4px;
}
.product-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--root-color-2);
    border-radius: 2px;
}
.blog-title {
    color: var(--root-color-2);
    font-size: 3rem;
}
/* End Storefront CSS */
/* Storefront product CSS */
.product-container {
    padding: 16px 16px 40px 16px;
}
.simple-table .price-col {
    width: 16%;
}
.product-name {
    text-transform: capitalize;
    color: var(--root-color);
    font-weight: 500 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    height: 2.8em;
    line-height: 1.4em !important;
    padding-bottom: 0 !important;
    margin-bottom: 6px;
}
.product-name-in-cart {
    text-transform: capitalize;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
}
.product-name-in-cart-box {
    flex-grow: 1; /* phần tử này chiếm không gian còn lại */
    min-width: 0; /* phần tử không vượt ra ngoài */
}
.in-cart-remove-btn {
    width: 80px;
    line-height: 1.4;
    font-size: 14px;
}
/* Mobile cart trash icon */
.fa-trash {
    transition: color 0.2s;
}
.fa-trash:hover {
    color: #ff4444;
}
.part-cart-container {
    display: flex;
    align-items: flex-end;
    margin: unset;
    padding: 12px 0;
}
.sale-price-num {
    font-size: 32px;
    font-weight: 700;
    line-height: 130%;
    color: var(--root-color-2) !important;
}
.price-num {
    font-size: 16px;
    font-weight: 400;
    line-height: 200%;
    letter-spacing: 0.02em;
    color: #595959;
    text-decoration: line-through;
}
.price-discount {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    text-align: center;
    white-space: nowrap;
}
.price-discount-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    overflow: hidden;
    padding: 3px 9px;
    border: none;
    border-radius: 999px;
    margin-bottom: 8px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.35);
    width: auto;
}
.note-from-brand-card {
    width: 100%;
    background-color: #fff8f2;
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-left: 4px solid var(--root-color-2);
    border-radius: 6px;
    overflow: hidden;
}
.note-from-brand-card-header {
    background-color: var(--root-color-bg-2);
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}
.note-from-brand-card-header .product-attribute {
    color: var(--root-color-2) !important;
    font-size: 0.85rem;
}
.note-from-brand-box {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis; /* Thêm dấu "..." */
    transition: max-height 0.3s ease; /* Hiệu ứng chuyển động */
    padding-bottom: 0px !important;
    margin-bottom: 6px;
}
.expanded {
    -webkit-line-clamp: unset; /* Hiển thị toàn bộ nội dung */
}
.note-from-brand-box p {
    margin: 0;
    color: var(--root-color-1);
    font-family: none;
    letter-spacing: 0.02rem;
}
.product-detail img {
    height: auto;
    width: 100%;
    object-fit: cover;
}
.navbar-collapse {
    margin-top: 50px;
    padding-right: 15px;
    padding-left: 15px;
    padding-bottom: 20px;
    border-top: 1px solid transparent !important;
    box-shadow: 0px 2px 6px 0px rgba(50, 50, 50, 0.33);
    position: absolute;
    z-index: 20;
    background: var(--root-color);
    min-height: 300px;
    max-height: calc(100vh - 60px) !important;
    height: calc(100vh - 60px);
    width: 300px;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.navbar-collapse.show {
    transform: translateX(0);
}
.navbar-expand-lg .navbar-toggler.category-toggler {
    display: block !important;
}
.navbar-expand-lg .navbar-collapse.collapse:not(.show) {
    display: none !important;
}
/* End Storefront product CSS */
/* Storefront filter-sort */
.filter-sort {
    background: var(--root-color-bg-1);
    border: none;
    border-bottom: 3px solid var(--root-color-2);
    border-radius: 3px 3px 0 0;
    cursor: pointer;
    text-align: center;
    padding: 10px 12px;
    display: inline-block;
    width: 100%;
    color: var(--root-color) !important;
    transition: background 0.2s;
}
.filter-sort:hover {
    background: var(--root-color-bg-2);
}
.filter-sort ul li {
    text-align: left;
    padding: 10px 20px 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    border-left: 3px solid transparent;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    color: var(--root-color);
}
.filter-sort ul li:hover {
    background-color: rgba(0,0,0,0.3);
    border-left-color: var(--root-color-2);
    color: var(--root-color-2) !important;
}
.filter-sort ul {
    display: none;
    width: 240px;
    position: absolute;
    right: 15px;
    background: var(--root-color-bg-1);
    border: none;
    border-top: none;
    box-shadow: 0 10px 28px rgba(0,0,0,0.5);
    border-radius: 0 0 6px 6px;
    list-style: none;
    margin: 0;
    padding: 4px 0 8px;
    z-index: 100;
}
.filter-sort-mobile {
    margin-bottom: 20px;
    width: 240px !important;
}
.filter-sort-mobile ul {
    left: auto !important;
    right: 16px !important;
    transform: none !important;
    width: 220px;
}
/* End Storefront filter-sort */
/* ── User profile / orders page ── */
.user-page-sidebar,
.user-page-card {
    background-color: var(--root-color-bg-2) !important;
    border: 1px solid rgba(255, 215, 0, 0.18) !important;
    border-radius: 8px !important;
    color: var(--root-color) !important;
}
.user-page-card > .card-header,
.user-page-sidebar > .card-header {
    background-color: var(--root-color-bg-1) !important;
    border-bottom: 2px solid var(--root-color-2) !important;
    color: var(--root-color-2) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em;
    padding: 12px 16px !important;
}
.user-page-card .card-body label,
.user-page-card .card-body p,
.user-page-card .card-footer {
    color: var(--root-color) !important;
}
.user-page-sidebar .profile-left-menu {
    background-color: transparent;
    border-color: rgba(255, 215, 0, 0.1);
}
.user-page-sidebar .profile-left-menu a {
    color: var(--root-color) !important;
}
.user-page-sidebar .profile-left-menu.active,
.user-page-sidebar .profile-left-menu:hover {
    background-color: var(--root-color-bg-1);
    border-left-color: var(--root-color-2);
}
/* Fix empty-state block inside dark user-page-card */
.user-page-card .empty-product-block {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
}
/* Order inner cards */
.order-card {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 215, 0, 0.15) !important;
    border-radius: 6px !important;
}
.order-card > .card-header {
    background-color: var(--root-color-bg-1) !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15) !important;
    color: var(--root-color) !important;
}
.order-card > .card-body {
    border-bottom: 1px solid rgba(255, 215, 0, 0.08) !important;
    color: var(--root-color) !important;
}
.order-card > .card-footer {
    background-color: rgba(0, 0, 0, 0.15) !important;
    border-top: none !important;
    color: var(--root-color) !important;
}
.user-avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--root-color-bg-1), var(--root-color-bg-2));
    border: 2px solid var(--root-color-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--root-color-2);
    flex-shrink: 0;
}
/* ── End User profile / orders page ── */
.category-toggler {
    background-color: var(--root-color-bg-2);
    border: 2px solid var(--root-color-2) !important;
    border-radius: 6px !important;
    margin-left: 15px;
    margin-right: 0 !important;
    padding: 7px 13px !important;
    position: relative;
    z-index: 20;
    transition: background-color 0.2s;
}
.category-toggler .fas {
    color: var(--root-color-2);
    font-size: 1rem;
}
.category-toggler:hover {
    background-color: var(--root-color-2);
}
.category-toggler:hover .fas {
    color: var(--root-color-bg-1);
}
/* Mobile category panel - premium styles */
.navbar-collapse .menu-category-part-main {
    border-bottom: 1px solid rgba(0,0,0,0.09);
    padding: 11px 16px;
    transition: background-color 0.18s;
}
.navbar-collapse .menu-category-part-main:hover {
    background-color: rgba(107,0,0,0.06);
}
.navbar-collapse .menu-category-part-main:hover a {
    color: var(--root-color-bg-1) !important;
}
.navbar-collapse .hover-border-left {
    border-left: 3px solid transparent;
    transition: background-color 0.18s, border-color 0.18s;
}
.navbar-collapse .hover-border-left:hover {
    background-color: rgba(107,0,0,0.07) !important;
    border-left-color: var(--root-color-2) !important;
}
.navbar-collapse .hover-border-left:hover .a-style-dark {
    color: var(--root-color-bg-1) !important;
}
.mobile-cate-toggle {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}
.mobile-cate-toggle-icon {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(107, 0, 0, 0.5);
    transition: color 0.18s;
    line-height: 1;
}
.mobile-cate-toggle:hover .mobile-cate-toggle-icon {
    color: var(--root-color-bg-1);
}
/* === Premium Category Sidebar === */
.category-sidebar {
    padding-right: 8px;
    border-right: 1px solid rgba(255, 215, 0, 0.14);
}
/* "SẢN PHẨM" / Newest Product header row */
.category-sidebar .menu-category-part.mt-3 {
    padding: 10px 14px;
    margin-bottom: 8px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.25);
}
/* Main category rows (have center-y) */
.category-sidebar .center-y.menu-category-part {
    padding: 9px 14px;
    border-radius: 0 5px 5px 0;
}
.category-sidebar .center-y.menu-category-part span {
    font-size: 0.84rem;
    letter-spacing: 0.055em;
    color: var(--root-color);
}
/* Sub-category rows */
.category-sidebar .menu-category-part:not(.center-y):not(.mt-3) {
    border-radius: 0 5px 5px 0;
}
.category-sidebar .menu-category-part:not(.center-y):not(.mt-3) .sub-cate-padding {
    color: rgba(255, 240, 230, 0.80); /* was 0.55 (~3.85:1 fail) → 0.80 (~7.13:1 pass) */
    font-size: 0.79rem;
    padding: 7px 12px 7px 26px;
    letter-spacing: 0.02em;
    display: block;
}
/* Separator between category sections */
.category-sidebar > div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 2px;
    padding-top: 2px;
}
/* Hover: override dark-red to gold accent */
.category-sidebar .hover-border-left:hover {
    background-color: rgba(255, 215, 0, 0.07) !important;
    border-left-color: var(--root-color-2) !important;
}
.category-sidebar .hover-border-left:hover span {
    color: var(--root-color-2) !important;
}
/* Active (current page) */
.category-sidebar .border-left-3 {
    border-color: var(--root-color-2) !important;
    background-color: rgba(255, 215, 0, 0.08) !important;
}
.category-sidebar .border-left-3 span {
    color: var(--root-color-2) !important;
}
/* === End Premium Category Sidebar === */
.menu-category-part {
    padding: 3px 0;
}
.hidden {
    visibility: hidden;
}
.review-star {
    color: var(--root-color-bg-1);
    font-size: 18px;
    line-height: 1.2;
}

.review-img {
    border-radius: 5px;
    margin: 0 2px 5px 0;
    max-width: 170px;
}

.review-img-admin {
    max-width: 45px !important;
}
.seo-h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.group-tab {
    border-bottom: 1px solid var(--root-color-bg-2);
    border-top: 1px solid var(--root-color-bg-2);
    background-color: var(--root-color-bg-2);
}
.btn-tab-center {
    border-left: 1px solid var(--root-color-bg-1) !important;
    border-right: 1px solid var(--root-color-bg-1) !important;
}
.text-active {
    color: var(--root-color-2);
}
.text-unactive {
    color: var(--root-color);
}
.text-note {
    color: blue;
    font-size: 14px !important;
}
.dropdown-menu {
    padding: 0;
}
@media (max-width: 399px) {
    .review-img {
        max-width: 140px;
    }
}

@media (max-width: 599px) {
    .note-textarea-container {
        margin: 12px 0 !important;
    }
}
@media (max-width: 767px) {
    .main-logo {
        width: 100px;
    }
    .process-box {
        gap: 12px;
        padding: 16px 0px;
    }
    .process-box li {
        font-size: 16px;
    }
    .pt-mobile-3 {
        padding-top: 1rem;
    }
    .language-box {
        width: 80px;
    }
    .product-container {
        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
        margin-right: auto;
        margin-left: auto;
    }
    .product-card-content-container {
        padding-top: 12px;
    }
    .product-mobile-padding {
        padding: 0 5px;
    }
    .icon-box-in-cart {
        left: 0;
        right: 0;
        display: flex;
    }
    .icon-box-in-cart img {
        max-width: 50px;
        padding-right: 8px;
    }
    .icon-box-in-cart .note-txt {
        padding-top: 0;
    }
    .navbar-collapse {
        margin-top: 45px;
        left: 0;
        width: 100vw;
        padding-right: 0;
        padding-left: 0;
    }
    .category-toggler {
        margin-left: 10px;
        margin-right: 20px !important;
    }
    .dropdown-menu.sf-navbar-dropdown.mobile {
        left: -35px;
    }
    .swiper-container.circle-button {
        display: none !important;
    }
    .product-module-body {
        padding: 0;
    }
    .swiper-container.swiper-container-blog {
        aspect-ratio: 2 / 1;
        border-radius: 5px;
    }
    .swiper-button-next,
    .swiper-button-prev {
        width: calc(var(--swiper-navigation-size-mobile) / 1.6) !important;
        height: var(--swiper-navigation-size-mobile) !important;
        margin-top: calc(
            100vw / 4 - (var(--swiper-navigation-size-mobile) / 2)
        ) !important;
    }
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 20 !important;
    }
    .module-max-height {
        max-height: calc(54vw + 114px) !important;
    }
    .blog-img-container {
        width: 100%;
        height: calc(100vw / 2) !important;
    }
    .blog-container {
        margin: 0 10px 10px 10px;
    }
    .blog-title {
        font-size: 2rem;
    }
    .text-description {
        font-size: 15px;
    }
    .checkout-payment-card .col-2 {
        padding-left: 5px;
        padding-right: unset;
    }
    .checkout-payment-card .col-10 {
        padding-left: 0px;
        padding-right: 5px;
    }
    .checkout-payment-card .card-body {
        padding: 0.5rem;
    }
}
@media (max-width: 991px) {
    .login-img-container {
        padding-top: 90%;
    }
    .login-img-container img {
        position: absolute;
        width: 100%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .row .vertical-line {
        display: none;
    }
    .mobile-font {
        font-size: 0.75rem;
    }
    .mobile-hidden {
        display: none;
    }
    .height-responsive {
        height: 100vh !important;
    }
    .sf-banner {
        aspect-ratio: 2 / 1;
    }
    .banner-container {
        /* margin: 0 15px;
        padding-top: 15px; */
    }
    .navbar-logo {
        margin-left: 1rem;
    }
    .module-max-height {
        max-height: calc(32vw + 90px); /* 768 - 991px */
    }
}
@media (max-width: 1199px) {
    .main-container {
        margin: 0;
    }
}
@media (min-width: 576px) {
    .swiper-container-sub-product {
        height: var(--swiper-container-sub-product-height-sm); /* 576 - 991px */
    }
}
@media (min-width: 768px) {
    .sf-search-form {
        width: 240px;
    }
    .review-img {
        max-width: 220px;
    }
    .review-img-admin {
        max-width: 70px !important;
    }
}
@media (min-width: 992px) {
    .sf-search-form {
        min-width: 400px;
    }
    .navbar-cart-height {
        height: 81.6px;
    }
    .popup-content {
        width: 400px;
    }
    .main-logo.logo-width {
        width: 300px;
    }
    .edit-blog-img-container {
        max-height: 300px;
    }
    .swiper-container.circle-button {
        margin-top: calc(
            var(--circle-button-margin-top) - 30px
        ) !important; /* 992 - 1199px */
    }
    .swiper-container-sub-product {
        height: var(--swiper-container-sub-product-height-lg);
    }
}
@media (min-width: 1200px) {
    .content-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .sf-search-form-container {
        margin-right: 80px;
    }
    .sf-search-form {
        min-width: 500px;
    }
    .module-max-height {
        max-height: calc(24vw + 52px);
    }
    .swiper-container.circle-button {
        margin-top: calc(
            var(--circle-button-margin-top) - 10px
        ) !important; /* 1200 - 1439px */
    }
    .swiper-button-next,
    .swiper-button-prev {
        margin-top: calc(
            (100vw - 200px) / 6 - (var(--swiper-navigation-size) / 2)
        ) !important;
    }
    .swiper-button-prev.circle-button {
        left: var(--swiper-navigation-sides-offset, 10px) !important;
        right: auto;
        margin-top: 120px !important;
    }
    .swiper-button-next.circle-button {
        right: var(--swiper-navigation-sides-offset, 10px) !important;
        left: auto;
        margin-top: 120px !important;
    }
    .swiper-button-prev {
        left: var(--swiper-navigation-sides-offset, 110px) !important;
        right: auto;
    }
    .swiper-button-next {
        right: var(--swiper-navigation-sides-offset, 110px) !important;
        left: auto;
    }
}
@media (min-width: 1350px) {
    .container {
        max-width: 1280px;
    }
    .sf-search-form-container {
        margin-right: 180px;
    }
}
@media (min-width: 1440px) {
    .container {
        max-width: 1400px !important;
    }
    .sf-search-form-container {
        margin-right: 300px;
    }
    .circle-button {
        margin-top: calc(var(--circle-button-margin-top) + 20px) !important;
    }
}
