/* Rosaline V1 — additions on top of the vendor styles.css.
   Kept in a separate file so the vendor bundle stays untouched and this layer
   can be read (or dropped) on its own. */

/* --------------------------------------------------------------------------
   1. Button resets.
   Several controls that ship as <a> in the template are <button> in V1 (a
   wishlist/compare toggle is a state change, not navigation). These rules make
   a button render identically to the anchor it replaced.
   -------------------------------------------------------------------------- */
/* Buttons whose class ALREADY supplies background/padding (.tf-btn sets
   `background: var(--color-ink-strong)`, .tf-btn-rounded sets white): strip only the UA
   border and font so the template's own styling survives. Resetting background
   or padding here would flatten them into plain text. */
button.tf-btn,
button.tf-btn-rounded {
    border: 0;
    font: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

/* Buttons replacing text/icon anchors, which have no background of their own. */
button.box-icon,
button.tf-btn-line,
button.btn-quantity,
button.remove-cart {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

button.box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   2. Active navigation state.
   Static HTML has no router, so app.js sets .activeMenu / aria-current by
   matching location.pathname.
   -------------------------------------------------------------------------- */
.box-nav-menu .item-link.activeMenu .text,
.box-nav-menu .item-link[aria-current="page"] .text {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-ul-mb-2 .mb-nav-link[aria-current="page"] {
    font-weight: 600;
}

.nav-ul-mb-2 .mb-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.nav-ul-mb-2 .sub-nav-menu {
    padding: 8px 0 8px 16px;
    display: grid;
    gap: 10px;
}

.nav-ul-mb-2 .sub-nav-link {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   3. Toggle states for wishlist / compare.
   Uses the project's single primary so the V1 overlay does not drift from the
   core theme.
   -------------------------------------------------------------------------- */
.js-wishlist.active,
.js-compare.active {
    color: var(--color-brand-primary);
}

.js-wishlist.active .icon,
.js-compare.active .icon {
    color: inherit;
}

/* Empty (unfilled) rating star. */
.star-wrap .icon.star-empty {
    opacity: 0.28;
}

/* --------------------------------------------------------------------------
   4. Toast — used for newsletter, contact form, compare cap and checkout stub.
   -------------------------------------------------------------------------- */
.rs-toast-wrap {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.rs-toast {
    min-width: 260px;
    max-width: 360px;
    background: var(--color-ink-strong);
    color: var(--color-surface-raised);
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.45;
    box-shadow: 0 10px 30px var(--overlay-black-18);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.rs-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.rs-toast.is-error {
    background: var(--color-status-error-strong);
}

@media (max-width: 575px) {
    .rs-toast-wrap {
        right: 12px;
        left: 12px;
        bottom: 12px;
    }

    .rs-toast {
        min-width: 0;
        max-width: none;
    }
}

/* --------------------------------------------------------------------------
   5. Empty / not-found states.
   -------------------------------------------------------------------------- */
.rs-empty {
    text-align: center;
    padding: 64px 20px;
}

.rs-empty .rs-empty__title {
    margin-bottom: 12px;
}

.rs-empty .rs-empty__text {
    margin-bottom: 24px;
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   6. Shop layout helpers.
   -------------------------------------------------------------------------- */
.rs-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.rs-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* styles.css sets a global `select { display: block; width: 100% }`, which would
   make each filter span the whole toolbar — pin them back to their content. */
.rs-filters select,
.rs-filters input:not(.quantity-product) {
    display: inline-block;
    width: auto;
    min-width: 150px;
    max-width: 220px;
    height: auto;
    padding: 8px 12px;
    border: 1px solid var(--color-border-muted);
    background: var(--color-surface);
    font: inherit;
    border-radius: 2px;
}

.rs-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 48px;
    flex-wrap: wrap;
}

.rs-pagination a,
.rs-pagination span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border-muted);
    text-decoration: none;
    color: inherit;
    padding: 0 10px;
}

.rs-pagination .is-current {
    background: var(--color-ink-strong);
    color: var(--color-surface-raised);
    border-color: var(--color-ink-strong);
}

.rs-pagination .is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Category hero banner. */
.rs-cat-hero {
    display: grid;
    gap: 24px;
    align-items: center;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .rs-cat-hero {
        grid-template-columns: 1fr 1fr;
    }
}

.rs-cat-hero img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------------------
   7. Cart page.
   -------------------------------------------------------------------------- */
.rs-cart-table {
    width: 100%;
    border-collapse: collapse;
}

.rs-cart-table th {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid var(--color-border-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.rs-cart-table td {
    padding: 20px 8px;
    border-bottom: 1px solid var(--color-border-muted);
    vertical-align: middle;
}

.rs-cart-table .tf-cart-item_product {
    display: flex;
    gap: 16px;
    align-items: center;
}

.rs-cart-table .img-box img {
    width: 80px;
    height: auto;
    display: block;
}

.rs-cart-table .cart-title {
    color: inherit;
    text-decoration: none;
}

.rs-summary {
    border: 1px solid var(--color-border-muted);
    padding: 24px;
}

.rs-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.rs-summary__row.is-total {
    border-top: 1px solid var(--color-border-muted);
    margin-top: 8px;
    padding-top: 16px;
    font-size: 18px;
}

/* Stack the cart table into cards on small screens. */
@media (max-width: 767px) {
    .rs-cart-table thead {
        display: none;
    }

    .rs-cart-table,
    .rs-cart-table tbody,
    .rs-cart-table tr,
    .rs-cart-table td {
        display: block;
        width: 100%;
    }

    .rs-cart-table tr {
        border-bottom: 1px solid var(--color-border-muted);
        padding: 16px 0;
    }

    .rs-cart-table td {
        border: 0;
        padding: 6px 0;
    }

    .rs-cart-table td[data-cart-title]::before {
        content: attr(data-cart-title) ": ";
        opacity: 0.6;
        margin-right: 8px;
    }
}

/* Compare offcanvas items (rendered by app.js). */
.tf-compare-item .icon.remove {
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   8. Accordion.
   The product page uses Bootstrap's accordion, whose default active state is
   blue (--bs-accordion-active-bg). styles.css does not restyle it, so tone it
   down to the template's neutral palette.
   -------------------------------------------------------------------------- */
.accordion-item {
    border: 0;
    border-bottom: 1px solid var(--color-border-muted);
    background: transparent;
}

.accordion-button {
    background: transparent;
    color: inherit;
    font: inherit;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 13px;
    padding: 18px 0;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background: transparent;
    color: inherit;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    margin-left: auto;
}

.accordion-body {
    padding: 0 0 20px;
}

/* No horizontal page scroll: peeking swipers must not extend the document. */
body {
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   9. Brand logo styling
   -------------------------------------------------------------------------- */
.logo-site {
    max-width: none;
}

.logo-site img {
    height: 60px;
    width: auto;
    max-height: 70px;
    object-fit: contain;
    display: block;
}

.header-center .logo-site img {
    height: 76px;
    max-height: 84px;
    width: auto;
}

@media (max-width: 991px) {
    .header-center .logo-site img {
        height: 58px;
        max-height: 64px;
    }
}

@media (max-width: 575px) {
    .header-center .logo-site img {
        height: 54px;
        max-height: 60px;
    }
}

.ft-contact .logo-site img,
.footer-v2 .logo-site img,
.footer-inner .logo-site img {
    height: 60px;
    max-height: 68px;
    width: auto;
}

.canvas-header .logo-site img {
    height: 52px;
    max-height: 58px;
    width: auto;
}

/* --------------------------------------------------------------------------
   10. Spacing & layout utilities
   -------------------------------------------------------------------------- */
.mt-40 {
    margin-top: 48px !important;
}

@media (max-width: 767px) {
    .mt-40 {
        margin-top: 32px !important;
    }
}

/* --------------------------------------------------------------------------
   11. Cart count badges & mobile notifications
   -------------------------------------------------------------------------- */
.nav-icon-item.shop-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--color-ink-strong);
    color: var(--color-surface-raised) !important;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1.5px solid var(--color-surface-raised);
    pointer-events: none;
    z-index: 2;
}

.cart-dot-indicator {
    position: absolute;
    top: -1px;
    right: -3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-orange-600);
    border: 1.5px solid var(--color-surface-raised);
    pointer-events: none;
    z-index: 2;
}

.mb-cart-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--color-ink-strong);
    color: var(--color-surface-raised);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
}

/* --------------------------------------------------------------------------
   12. Product card action button responsive typography
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .product-action_bot button {
        font-size: 12px !important;
        padding: 0 8px !important;
        height: 36px !important;
        line-height: 36px !important;
        letter-spacing: 0px !important;
        white-space: nowrap !important;
    }
    .product-action_bot .icon {
        font-size: 15px !important;
    }
}

.col-right .product-action_bot button {
    font-size: 12px !important;
    padding: 0 8px !important;
    height: 36px !important;
    line-height: 36px !important;
    letter-spacing: 0px !important;
    white-space: nowrap !important;
}

.col-right .product-action_bot .icon {
    font-size: 15px !important;
}

/* --------------------------------------------------------------------------
   13. Category section progressbar separation
   -------------------------------------------------------------------------- */
.section-category .swiper {
    padding-top: 36px;
}

@media (max-width: 767px) {
    .section-category .swiper {
        padding-top: 28px;
    }
}

/* --------------------------------------------------------------------------
   14. Desktop header cart typography
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .cart-count-badge {
        display: none !important;
    }

    .nav-icon-list .nav-icon-item.is-text .number-order {
        display: inline !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        color: inherit !important;
        border-radius: 0 !important;
        font-size: inherit !important;
        line-height: inherit !important;
        vertical-align: baseline !important;
    }
}

/* --------------------------------------------------------------------------
   15. Page heading banner padding & layout
   -------------------------------------------------------------------------- */
.tf-page-heading {
    padding-top: 56px;
    padding-bottom: 56px;
}

.tf-page-heading + .flat-spacing {
    padding-top: 60px;
}

@media (max-width: 991px) {
    .tf-page-heading {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .tf-page-heading + .flat-spacing {
        padding-top: 40px;
    }
}

@media (max-width: 575px) {
    .tf-page-heading {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .tf-page-heading + .flat-spacing {
        padding-top: 32px;
    }
}

/* --------------------------------------------------------------------------
   16. Mobile footer newsletter subscribe button
   -------------------------------------------------------------------------- */
@media (max-width: 575px) {
    .form-subcribe {
        gap: 12px;
    }

    .form-subcribe .btn-action {
        padding: 0 16px;
        min-width: 44px;
        justify-content: center;
        flex-shrink: 0;
    }

    .form-subcribe fieldset input {
        font-size: 13px;
    }
}

/* --------------------------------------------------------------------------
   17. Shop Filter Animations, Micro-Interactions & Transitions
   -------------------------------------------------------------------------- */
.filter-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 140px;
    max-width: 240px;
    cursor: pointer;
    transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.filter-select-wrap:active {
    transform: scale(0.97);
}

.rs-filters .filter-select-wrap select {
    width: 100%;
    min-width: 140px;
    max-width: 240px;
    height: 42px;
    padding: 8px 36px 8px 18px;
    border-radius: 99px;
    border: 1px solid var(--color-border-input);
    background-color: var(--color-surface-raised);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-ink-deep);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none !important;
    transition: border-color 200ms cubic-bezier(0.23, 1, 0.32, 1),
                background-color 200ms cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 200ms cubic-bezier(0.23, 1, 0.32, 1),
                color 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.rs-filters .filter-select-wrap:hover select {
    border-color: var(--color-ink-deep);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.rs-filters .filter-select-wrap select:focus {
    border-color: var(--color-ink-deep);
    box-shadow: 0 0 0 3px rgba(216, 0, 39, 0.15);
}

/* Active filter state: highlighted pill with primary tint */
.rs-filters .filter-select-wrap.is-active select {
    border-color: var(--color-brand-primary);
    background-color: rgba(216, 0, 39, 0.05);
    color: var(--color-brand-primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(216, 0, 39, 0.1);
}

/* Custom chevron icon with smooth rotation on open/focus */
.filter-select-wrap::after {
    font-family: "icomoon";
    content: "\e95d";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--color-ink-deep);
    pointer-events: none;
    transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1),
                color 200ms ease;
    z-index: 2;
}

.filter-select-wrap:hover::after {
    color: var(--color-brand-primary);
}

.filter-select-wrap:has(select:focus)::after {
    transform: translateY(-50%) rotate(180deg);
}

.filter-select-wrap.is-active::after {
    color: var(--color-brand-primary);
}

/* Active filter chips (applied tags) */
.meta-filter-shop .filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 99px;
    border: 1px solid var(--color-border-input);
    background-color: var(--color-surface-raised);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-ink-deep);
    cursor: pointer;
    outline: none;
    transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1),
                background-color 180ms ease,
                border-color 180ms ease,
                box-shadow 180ms ease,
                color 180ms ease;
}

.meta-filter-shop .filter-tag:hover {
    background-color: var(--color-surface-offwhite);
    border-color: var(--color-ink-deep);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.meta-filter-shop .filter-tag:active {
    transform: scale(0.96);
}

.meta-filter-shop .filter-tag .icon-Close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--color-ink-secondary);
    transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1), color 180ms ease;
}

.meta-filter-shop .filter-tag:hover .icon-Close {
    color: var(--color-brand-primary);
    transform: rotate(90deg) scale(1.15);
}

.meta-filter-shop .filter-tag.clear-all {
    background-color: transparent;
    border-style: dashed;
    color: var(--color-brand-primary);
    border-color: rgba(216, 0, 39, 0.4);
}

.meta-filter-shop .filter-tag.clear-all:hover {
    background-color: rgba(216, 0, 39, 0.08);
    border-color: var(--color-brand-primary);
    border-style: solid;
    transform: translateY(-1px);
}

/* Fluid transition group for filter tags */
.filter-chip-enter-active {
    transition: opacity 220ms cubic-bezier(0.23, 1, 0.32, 1),
                transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

.filter-chip-leave-active {
    transition: opacity 180ms ease-out,
                transform 180ms ease-out;
}

.filter-chip-enter-from {
    opacity: 0;
    transform: scale(0.85) translateY(4px);
}

.filter-chip-leave-to {
    opacity: 0;
    transform: scale(0.85) translateY(-4px);
}

.filter-chip-move {
    transition: transform 250ms cubic-bezier(0.23, 1, 0.32, 1);
}

/* Smooth fade-slide for the entire active filter bar */
.fade-slide-enter-active,
.fade-slide-leave-active {
    transition: opacity 220ms cubic-bezier(0.23, 1, 0.32, 1),
                transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-slide-enter-from,
.fade-slide-leave-to {
    opacity: 0;
    transform: translateY(-6px);
}

/* Dynamic counter transition */
.shop-count-wrap {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

.count-flip-enter-active,
.count-flip-leave-active {
    transition: opacity 180ms cubic-bezier(0.23, 1, 0.32, 1),
                transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.count-flip-enter-from {
    opacity: 0;
    transform: translateY(4px);
}

.count-flip-leave-to {
    opacity: 0;
    transform: translateY(-4px);
}

/* Non-blocking hairline loading shimmer */
.filter-loading-bar {
    height: 2px;
    width: 100%;
    margin-top: -16px;
    margin-bottom: 24px;
    opacity: 0;
    border-radius: 2px;
    overflow: hidden;
    background-color: transparent;
    transition: opacity 200ms ease-out;
}

.filter-loading-bar.is-loading {
    opacity: 1;
    background: linear-gradient(90deg, transparent 0%, var(--color-brand-primary) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: filterShimmer 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes filterShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Product grid smooth transition */
.shop-grid-wrapper {
    transition: opacity 220ms cubic-bezier(0.23, 1, 0.32, 1),
                transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

.shop-grid-wrapper.is-pending {
    opacity: 0.55;
    transform: scale(0.995);
}

/* Tablet responsive 4-column filter layout */
@media (min-width: 576px) and (max-width: 991px) {
    .rs-toolbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 24px;
        width: 100%;
    }

    .rs-toolbar > .rs-filters:first-child {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        width: 100%;
    }

    .rs-toolbar > .rs-filters:first-child .filter-select-wrap {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .rs-toolbar > .rs-filters:last-child {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .rs-toolbar > .rs-filters:last-child .filter-select-wrap {
        width: auto;
        min-width: 160px;
        max-width: 220px;
    }

    .rs-filters .filter-select-wrap select {
        width: 100%;
        min-width: 0 !important;
        font-size: 13px;
        padding: 8px 28px 8px 12px;
        text-overflow: ellipsis;
        height: 40px;
    }

    .filter-select-wrap::after {
        right: 10px;
        font-size: 12px;
    }
}

/* Mobile responsive 2-column filter layout */
@media (max-width: 575px) {
    .rs-toolbar {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-bottom: 20px;
    }

    .rs-toolbar > .rs-filters:first-child {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .rs-toolbar > .rs-filters:last-child {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .filter-select-wrap {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .rs-filters .filter-select-wrap select {
        width: 100%;
        min-width: 0 !important;
        max-width: none !important;
        font-size: 12.5px;
        padding: 8px 28px 8px 12px;
        text-overflow: ellipsis;
        height: 38px;
    }

    .filter-select-wrap::after {
        right: 10px;
        font-size: 12px;
    }
}

/* ==========================================================================
   18. QuickView Modal Close Button
   ========================================================================== */

.modal-quickview .btn-close-popup {
    z-index: 25;
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
}

@media (max-width: 767px) {
    .modal-quickview .btn-close-popup {
        position: fixed;
        top: 16px;
        right: 16px;
        z-index: 1060;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--color-ink-deep);
        font-size: 15px;
        padding: 0;
        line-height: 1;
        transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.2s ease;
    }

    .modal-quickview .btn-close-popup:active {
        transform: scale(0.92);
        background: var(--color-surface-raised);
    }
}

@media (min-width: 768px) {
    .modal-quickview .btn-close-popup {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(245, 245, 245, 0.85);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--color-ink-deep);
        font-size: 15px;
        padding: 0;
        line-height: 1;
        transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.2s ease;
    }

    .modal-quickview .btn-close-popup:hover {
        background: rgba(0, 0, 0, 0.08);
        transform: rotate(90deg);
    }
}

.modal-quickview .quickview-media {
    height: 100%;
}

.modal-quickview .quickview-media .item {
    height: 100%;
}

.modal-quickview .quickview-media .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 0.8277310924;
}

/* ==========================================================================
   19. Product Detail Reviews & Testimonials Slider
   ========================================================================== */

.product-reviews-slider-wrap {
    position: relative;
}

.product-reviews-swiper {
    overflow: hidden;
    padding: 8px 4px 16px;
}

.product-review-card {
    padding: 32px 28px;
    border: 1px solid var(--color-border-muted);
    border-radius: 12px;
    background: var(--color-surface-offwhite);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-review-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
    background: var(--color-surface-raised);
}

.review-verified-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}

.review-stars-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border-muted);
    padding: 4px 10px;
    border-radius: 999px;
}

.review-stars-wrap .stars-gold {
    color: #d97706;
    font-size: 13px;
    line-height: 1;
}

.review-stars-wrap .rating-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-ink-deep);
}

.review-skintone-pill {
    display: inline-block;
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-ink-secondary);
    font-size: 11.5px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 999px;
}

.review-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-ink-deep);
    line-height: 1.4;
}

.review-comment {
    line-height: 1.65;
    color: var(--color-ink-secondary);
}

/* Slider Navigation Buttons */
.btn-slider-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--color-border-muted);
    background: var(--color-surface-raised);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-ink-deep);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    outline: none;
    padding: 0;
}

.btn-slider-arrow:hover {
    background: var(--color-ink-deep);
    border-color: var(--color-ink-deep);
    color: var(--color-surface-raised);
    transform: scale(1.05);
}

.btn-slider-arrow.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

/* Review Form Wrap with Luxurious Padding */
.product-review-form-wrap {
    padding: 48px 44px;
    border: 1px solid var(--color-border-muted);
    border-radius: 16px;
    background: var(--color-surface-raised);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
    margin-top: 48px;
}

.product-review-form-wrap .form-control,
.product-review-form-wrap .form-select {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid var(--color-border-muted);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-review-form-wrap .form-control:focus,
.product-review-form-wrap .form-select:focus {
    border-color: var(--color-brand-primary);
    box-shadow: 0 0 0 3px rgba(216, 0, 39, 0.15);
}

/* Variant Pill Selectors */
#productVariants {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#productVariants .js-variant {
    min-width: 52px;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--color-border-muted);
    background: var(--color-surface-raised);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-ink-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

#productVariants .js-variant:hover {
    border-color: var(--color-ink-deep);
}

#productVariants .js-variant.active {
    background: var(--color-ink-deep);
    border-color: var(--color-ink-deep);
    color: var(--color-surface-raised);
}

@media (max-width: 767px) {
    .product-review-card {
        padding: 24px 20px;
    }

    .product-review-form-wrap {
        padding: 28px 20px;
        margin-top: 36px;
    }
}

/* Skin Tone Badges */
.tone-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.2s ease;
}

.tone-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* Product Gallery & Thumbnails */
.product-gallery-wrap {
    position: relative;
    width: 100%;
}

.product-gallery-main {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background-color: var(--color-surface-offwhite);
    border: 1px solid var(--color-border-muted);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.product-gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-ink-deep);
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    z-index: 2;
}

.product-gallery-nav-btn:hover {
    background: var(--color-ink-deep);
    color: var(--color-surface-raised);
    transform: translateY(-50%) scale(1.06);
}

.product-gallery-nav-btn.btn-prev {
    left: 14px;
}

.product-gallery-nav-btn.btn-next {
    right: 14px;
}

.product-gallery-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(26, 26, 26, 0.75);
    backdrop-filter: blur(6px);
    color: var(--color-surface-raised);
    font-size: 11.5px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.product-gallery-thumb-item {
    width: 76px;
    height: 76px;
    min-width: 76px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: var(--color-surface-offwhite);
    cursor: pointer;
    position: relative;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.product-gallery-thumb-item:hover {
    opacity: 0.95;
    border-color: #d1d5db;
}

.product-gallery-thumb-item.is-active {
    opacity: 1;
    border-color: var(--color-ink-deep);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.product-gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-thumb-tag {
    position: absolute;
    bottom: 3px;
    left: 3px;
    right: 3px;
    background: rgba(0, 0, 0, 0.65);
    color: var(--color-surface-raised);
    font-size: 8.5px;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    padding: 1px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 767px) {
    .product-gallery-thumb-item {
        width: 66px;
        height: 66px;
        min-width: 66px;
    }
}

/* --------------------------------------------------------------------------
   Page Transitions & Route Loading Indicator
   -------------------------------------------------------------------------- */
.page-enter-active,
.page-leave-active {
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-enter-from {
    opacity: 0;
    transform: translateY(4px);
}

.page-leave-to {
    opacity: 0;
    transform: translateY(-4px);
}

.page-loader-container {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
    z-index: 99999999999 !important;
}

.fade-loader-enter-active,
.fade-loader-leave-active {
    transition: opacity 0.2s ease;
}

.fade-loader-enter-from,
.fade-loader-leave-to {
    opacity: 0;
}

/* --------------------------------------------------------------------------
   Quantity Selector Normalization
   -------------------------------------------------------------------------- */
.wg-quantity {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.wg-quantity .quantity-product {
    min-width: 0 !important;
    max-width: none !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    width: 38px !important;
    height: 100% !important;
    text-align: center !important;
    font-weight: 500 !important;
    color: var(--color-ink-strong) !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
}

.wg-quantity .btn-quantity {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

/* --------------------------------------------------------------------------
   Product Detail Page — Tablet Grid Layout (768px - 991px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 991px) {
    .product-details-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .product-details-grid > .gallery-col {
        grid-column: 1;
        grid-row: 1;
        width: 100% !important;
        max-width: 100% !important;
    }

    .product-details-grid > .summary-col {
        grid-column: 1 / -1;
        display: contents !important;
    }

    .summary-col > .product-summary-container {
        display: contents !important;
    }

    .product-summary-header {
        grid-column: 2;
        grid-row: 1;
    }

    .product-summary-actions {
        grid-column: 1 / -1 !important;
        grid-row: 2;
        display: flex !important;
        align-items: center;
        gap: 16px;
        margin-top: 12px;
        margin-bottom: 24px !important;
        width: 100%;
    }

    .product-summary-actions .wg-quantity {
        width: 130px;
        flex-shrink: 0;
        height: 52px;
        padding: 0 16px;
    }

    .product-summary-actions .js-add-cart {
        flex: 1;
        height: 52px;
        font-size: 14px;
        letter-spacing: 0.5px;
        margin: 0;
    }

    .product-summary-description {
        grid-column: 1 / -1 !important;
        grid-row: 3;
        font-size: 15px;
        line-height: 1.8;
        padding-top: 24px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
}

/* --------------------------------------------------------------------------
   Product Detail Page — Mobile Actions Layout (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .product-summary-actions {
        display: flex !important;
        align-items: center;
        gap: 12px;
        width: 100%;
        margin-bottom: 24px !important;
    }

    .product-summary-actions .wg-quantity {
        width: 110px;
        height: 48px;
        flex-shrink: 0;
        padding: 0 12px;
    }

    .product-summary-actions .js-add-cart {
        flex: 1;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        letter-spacing: 0.5px;
        margin: 0;
        white-space: nowrap;
    }
}




