/* ==========================================================================
   WIN Perfume — Home Page
   ========================================================================== */

:root {
    --font-inter: "Inter", sans-serif;
    --font-poppins: "Poppins", sans-serif;
    --font-volkhov: "Volkhov", serif;
    --font-digital: "Orbitron", sans-serif;

    --c-black: #000000;
    --c-dark: #484848;
    --c-gray: #8a8a8a;
    --c-gray-light: #ababab;
    --c-red: #ff4646;
    --c-footer-bg: #f6f6f6;
    --c-border: #d9d9d9;
    --c-placeholder: #b3b3b3;
    --c-tag-dark: #2c2c2c;
    --c-tag-light: #f5f5f5;
    --c-tag-on: #f5f5f5;
    --c-profile-bg: #424242;
    --c-profile-text: #ededed;

    --max-width: 1920px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin; /* Options: auto | thin | none */
    scrollbar-color: #ffff #f1f5f9;
}
.scrollable-element {
    /* Hide scrollbar for Chrome, Safari, and newer Edge */
    &::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar for Firefox */
    scrollbar-width: none;

    /* Hide scrollbar for IE 10+ and legacy Edge */
    -ms-overflow-style: none;
}
body {
    margin: 0;
    font-family: var(--font-inter);
    color: var(--c-black);
    background: #fff;
    overflow-x: clip;
}

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

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

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
p {
    margin: 0;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.v-divider {
    display: inline-block;
    width: 1px;
    background: #d9d9d9;
    flex-shrink: 0;
}

.btn-dark {
    background: #000;
    color: #fff;
    border-radius: 10px;
    height: 56px;
    padding: 0 24px;
    font-family: var(--font-poppins);
    font-size: 16px;
    box-shadow: 0 20px 35px 0 rgba(0, 0, 0, 0.15);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
/* Quieter sibling of .btn-dark — same shape and type, inverted fill, for the
   secondary action beside a solid primary. */
.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    background: transparent;
    color: #000;
    border-radius: 10px;
    height: 44px;
    padding: 0 24px;
    font-family: var(--font-poppins);
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.btn-outline-dark:hover {
    background: #1e1e1e;
    color: #fff;
}
.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 40px 0 rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Nav Bar
   ========================================================================== */

.nav-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 17.4px 0 rgba(0, 0, 0, 0.1);
}

.announcement-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30%;
    background: #000;
    color: #fff;
    min-height: 31px;
    padding: 6px 20px;
    font-size: 14px;
    text-align: center;
    flex-wrap: wrap;
}

.announcement-link {
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

.header-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: #fff;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: var(--max-width);
    padding: 10px 16px;
    min-height: 80px;
    flex-wrap: wrap;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 58px;
}
.logo img {
    height: 50px;
    width: auto;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 320px;
    max-width: 628px;
    min-width: 0;
    border: 1px solid var(--c-border);
    border-radius: 9999px;
    padding: 12px 20px;
    background: #fff;
}
.search-bar input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-family: var(--font-inter);
    font-size: 16px;
    color: var(--c-black);
    background: transparent;
}
.search-bar input::placeholder {
    color: var(--c-placeholder);
}
.search-bar .icon-btn img {
    width: 16px;
    height: 16px;
}

.pages-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    font-size: 16px;
}
.page-link {
    font-weight: 200;
    color: var(--c-black);
}
.page-link.active {
    color: #1e1e1e;
    text-decoration: underline;
    font-weight: 400;
}

.cart-btn {
    position: relative;
}
.cart-btn img {
    width: 25px;
    height: 25px;
}
.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--c-red);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    transform: scale(0);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-badge.show {
    transform: scale(1);
}
.cart-btn.bump {
    animation: cart-bump 0.4s ease-in-out;
}
@keyframes cart-bump {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.25);
    }
    60% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.fly-to-cart {
    position: fixed;
    z-index: 999;
    border-radius: 8px;
    object-fit: cover;
    pointer-events: none;
    transition:
        top 0.6s cubic-bezier(0.55, 0, 0.85, 0.35),
        left 0.6s cubic-bezier(0.55, 0, 0.85, 0.35),
        width 0.6s ease-in-out,
        height 0.6s ease-in-out,
        opacity 0.6s ease-in-out;
}

.login-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-width: 85px;
    padding: 0 16px;
    border-radius: 14px;
    background: var(--c-profile-bg);
    color: var(--c-profile-text);
    font-size: 16px;
}

.category-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
    padding: 10px 40px 20px;
}
.category-item {
    font-size: 12px;
    color: var(--c-gray-light);
    padding: 2px 0 9px;
    border-bottom: 2px solid transparent;
}
.category-item.active {
    color: var(--c-black);
    border-bottom-color: var(--c-black);
}

.filter-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0px;
    flex-wrap: wrap;
    width: 100%;
    padding: 12px 55px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0) 12px),
        #fff;
    box-shadow: inset 0 5px 7.3px 0 rgba(0, 0, 0, 0.06);
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 8px;
    background: var(--c-tag-light);
    color: var(--c-tag-dark);
    font-size: 12px;
    white-space: nowrap;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}
.tag-toggle.active {
    background: linear-gradient(180deg, #3a3a3a 0%, var(--c-tag-dark) 100%);
    color: var(--c-tag-on);
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.15);
}
.tag-toggle .tag-icon {
    width: 14px;
    height: 14px;
}

.refresh-btn img {
    width: 32px;
    height: 32px;
}

/* ---------- Logged-in nav bar: notification bell + profile ---------- */
.notification-btn {
    position: relative;
}
.notification-btn img {
    width: 22px;
    height: 22px;
}

.profile-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--c-border);
}
.navbar-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--c-profile-bg);
    color: var(--c-profile-text);
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}
.profile-btn img {
    width: 10px;
    height: 5px;
}

/* ---------- Mobile header (phone-width layout) ---------- */
.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
}
.mobile-logo {
    height: 32px;
}
.mobile-logo img {
    height: 32px;
    width: auto;
}
.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.mobile-header-actions [data-auth-block] {
    display: flex;
    align-items: center;
    gap: 16px;
}
.mobile-search-btn img {
    width: 20px;
    height: 20px;
}
.mobile-login-btn {
    height: 32px;
    min-width: auto;
    padding: 0 14px;
    font-size: 13px;
}
.mobile-header-divider {
    display: none;
    width: 100%;
    height: 1px;
    background: var(--c-border);
}
.mobile-inline-search {
    display: none;
    flex: 1;
    min-width: 0;
    margin: 0 12px;
}
.mobile-inline-search input {
    width: 100%;
    border: 1px solid var(--c-border);
    border-radius: 9999px;
    padding: 8px 16px;
    font-family: var(--font-inter);
    font-size: 14px;
    color: var(--c-black);
    outline: none;
}
.mobile-inline-search input::placeholder {
    color: var(--c-placeholder);
}
.mobile-header.search-open .mobile-logo {
    display: none;
}
.mobile-header.search-open .mobile-inline-search {
    display: flex;
}

/* ---------- Bottom tab bar (mobile only) ---------- */
.bottom-tab-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-top: 1px solid var(--c-border);
    padding: 12px 8px calc(8px + env(safe-area-inset-bottom, 0px));
}
.bottom-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1 1 0;
    width: 100%;
    font-size: 10px;
    font-weight: 500;
    color: var(--c-gray);
    text-align: center;
}
.bottom-tab-icon {
    width: 22px;
    height: 22px;
}
.bottom-tab.active {
    color: #1e1e1e;
    font-weight: 700;
}
.bottom-tab.active span {
    text-decoration: underline;
}

/* ---------- Shared dropdown panel (cart / notification / profile) ---------- */
.dropdown-menu {
    position: relative;
}
.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        visibility 0.15s ease;
    z-index: 60;
    overflow: hidden;
}
.dropdown-menu.open .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Profile panel */
.profile-dropdown {
    width: 195px;
    padding: 18px 0 10px;
}
.profile-dropdown-header {
    padding: 0 21px 12px;
}
.profile-dropdown-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-black);
}
.profile-dropdown-email {
    font-size: 10px;
    color: #6e6e6e;
}
.profile-dropdown-divider {
    height: 1px;
    background: #e4e4e4;
    margin: 0 7px;
}
.profile-dropdown-items {
    padding: 8px 0 0;
}
.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 7px 21px;
    font-size: 14px;
    font-weight: 300;
    color: var(--c-black);
}
.profile-dropdown-item img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.profile-dropdown-item:hover {
    background: var(--c-tag-light);
}
.profile-dropdown-item.logout {
    color: #dd3030;
}

/* Cart panel */
.cart-dropdown {
    width: 220px;
}
.cart-dropdown-list {
    max-height: 260px;
    overflow-y: auto;
    padding: 12px 10px 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cart-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.cart-dropdown-item-media {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.cart-dropdown-item img {
    width: 28px;
    height: 28px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}
.cart-dropdown-item-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--c-black);
    white-space: nowrap;
}
.cart-dropdown-item-price {
    font-size: 10px;
    font-weight: 200;
    color: var(--c-black);
    white-space: nowrap;
}
.cart-dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--c-border);
}
.cart-dropdown-count {
    font-size: 9px;
    font-weight: 300;
    color: #787878;
    white-space: nowrap;
}
.cart-dropdown-cta {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    border-radius: 4px;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
}

/* Notification panel */
.notification-dropdown {
    width: 200px;
    background: #f3f3f3;
}
.notification-dropdown-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.notification-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 6px;
    padding: 10px;
}
.notification-dropdown-item img {
    width: 38px;
    height: 38px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}
.notification-dropdown-item-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--c-black);
}
.notification-dropdown-item-desc {
    font-size: 10px;
    font-weight: 300;
    color: #6e6e6e;
    line-height: 1.3;
}
.notification-dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 0 8px;
    background: #fff;
    font-size: 10px;
    font-weight: 500;
    color: var(--c-black);
}

.filter-trigger-btn img {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Filter Drawer
   ========================================================================== */

.filter-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}
.filter-drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

.filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(520px, 100vw);
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.filter-drawer-overlay.show .filter-drawer {
    transform: translateX(0);
}

.filter-drawer-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.filter-drawer-title {
    font-size: 16px;
    color: var(--c-black);
}
.filter-drawer-close img {
    width: 18px;
    height: 18px;
}

.filter-drawer-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.filter-drawer-row {
    flex: 1;
    display: flex;
    min-height: 0;
}

.filter-drawer-sidebar {
    flex-shrink: 0;
    width: 130px;
    border-right: 1px solid var(--c-border);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
}
.filter-drawer-sidebar a {
    font-size: 14px;
    color: var(--c-black);
}
.filter-drawer-sidebar a.active {
    font-weight: 700;
}

.filter-drawer-content {
    flex: 1;
    overflow-y: auto;
}

.filter-section {
    padding: 40px 30px;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-margin-top: 12px;
}
.filter-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-black);
}

/* Checkbox group */
.filter-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #1e1e1e;
    cursor: pointer;
}
.filter-checkbox input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.filter-checkbox-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--c-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}
.filter-checkbox-box::after {
    content: "";
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg) translate(-1px, -1px);
    opacity: 0;
}
.filter-checkbox input:checked + .filter-checkbox-box {
    background: var(--c-tag-dark);
    border-color: var(--c-tag-dark);
}
.filter-checkbox input:checked + .filter-checkbox-box::after {
    opacity: 1;
}

/* Price slider */
.price-slider-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 300;
    color: var(--c-black);
}
.price-slider {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
}
.price-slider-track {
    position: absolute;
    left: 7px;
    right: 7px;
    height: 3px;
    border-radius: 2px;
    background: #cecece;
}
.price-slider-fill {
    position: absolute;
    height: 3px;
    border-radius: 2px;
    background: #101010;
}
.price-range {
    position: absolute;
    width: 100%;
    margin: 0;
    appearance: none;
    background: none;
    pointer-events: none;
}
.price-range::-webkit-slider-thumb {
    appearance: none;
    pointer-events: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #bcbcbc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.price-range::-moz-range-thumb {
    pointer-events: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #bcbcbc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.price-range::-webkit-slider-runnable-track,
.price-range::-moz-range-track {
    appearance: none;
    background: none;
    border: none;
}

.price-slider-inputs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.price-slider-field {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 21px;
    padding: 0 10px;
    border: 0.5px solid var(--c-border);
    border-radius: 5px;
    font-size: 11px;
    color: var(--c-black);
}
.price-slider-field span {
    font-weight: 700;
}
.price-slider-field input {
    width: 60px;
    border: none;
    outline: none;
    font-family: var(--font-inter);
    font-size: 11px;
    font-weight: 300;
    color: var(--c-black);
}

.price-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.price-tag {
    padding: 5px 10px;
    border: 1px solid var(--c-border);
    border-radius: 5px;
    font-size: 11px;
    color: var(--c-black);
    box-shadow: 0 1px 2.5px rgba(0, 0, 0, 0.17);
}
.price-tag:hover,
.price-tag.active {
    background: var(--c-tag-dark);
    color: #fff;
    border-color: var(--c-tag-dark);
}

.filter-drawer-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--c-border);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-active-chips:empty {
    display: none;
}

.filter-chip-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--c-black);
    background: #fff;
}

.filter-chip-pill button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    line-height: 1;
}

.filter-chip-pill button:hover {
    color: var(--c-black);
}

.filter-drawer-actions {
    display: flex;
    gap: 12px;
}

.filter-drawer-actions .btn-outline,
.filter-drawer-actions .btn-dark {
    flex: 1;
    height: 56px;
    border-radius: 10px;
    font-family: var(--font-poppins);
    font-size: 16px;
}

.btn-outline {
    background: #fff;
    color: var(--c-black);
    border: 1px solid var(--c-border);
    padding: 0 24px;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: var(--c-black);
}

@media (max-width: 640px) {
    .filter-drawer-row {
        flex-direction: column;
    }
    .filter-drawer-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        border-right: none;
        border-bottom: 1px solid var(--c-border);
        padding: 20px;
    }
}

/* ==========================================================================
   Slider
   ========================================================================== */

.slider {
    position: relative;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px 400px 0;
}
.slider-viewport {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.slider-track {
    display: flex;
    align-items: flex-start;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}
.slide {
    flex: 0 0 100%;
    width: 100%;
}
.slide img {
    display: block;
    width: 100%;
    height: auto;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #1e1e1e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition:
        opacity 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}
.slider:hover .slider-arrow {
    opacity: 1;
}
.slider-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}
.slider-arrow--prev {
    left: 380px;
}
.slider-arrow--next {
    right: 380px;
}

.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    padding: 0;
    transition:
        width 0.3s ease,
        background 0.3s ease;
}
.slider-dot.active {
    width: 22px;
    background: #fff;
}

/* ==========================================================================
   Promos / Hot Deals
   ========================================================================== */

.promos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 43px;
    width: 100%;
    max-width: 1155px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.promos-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 614px;
    text-align: center;
}
.promos-heading h2 {
    font-family: var(--font-volkhov);
    font-size: 46px;
    color: var(--c-dark);
}
.promos-heading p {
    font-family: var(--font-poppins);
    font-size: 16px;
    line-height: 26px;
    color: var(--c-gray);
}

.option-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    max-width: 1120px;
    height: 36px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 3px 7.5px 0 rgba(0, 0, 0, 0.15);
}
.option {
    padding-top: 7px;
    text-align: center;
    flex: 1;
    height: 100%;
    border-radius: 5px;
    font-size: 15px;
    color: var(--c-black);
    transition: background 0.15s ease;
}
.option.active {
    background: var(--c-tag-light);
    font-weight: 500;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 34px;
    width: 100%;
}

.product-card {
    background: #fff;
    border-radius: 8.7px;
    box-shadow: 0 34.8px 78.3px 0 rgba(0, 0, 0, 0.06);
    padding: 13px;
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.product-image {
    position: relative;
    border-radius: 8.7px;
    overflow: hidden;
    aspect-ratio: 306 / 223;
}
.product-image-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}
.product-image-fg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-info-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 5px;
}
.product-name {
    display: flex;
    flex-direction: column;
    font-family: var(--font-poppins);
}
.product-name .brand {
    font-size: 10.4px;
    color: var(--c-gray);
}
.product-name .name {
    font-size: 17.4px;
    color: var(--c-dark);
    font-weight: 500;
}
.stars {
    width: 82.6px;
    height: 16.5px;
    flex-shrink: 0;
}

.reviews {
    font-family: var(--font-poppins);
    font-size: 10.4px;
    font-weight: 500;
    color: var(--c-dark);
    padding: 1px 5px 1px 5px;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-poppins);
    padding: 5px;
}
.product-price-row .price {
    font-size: 12px;
    font-weight: 500;
    color: var(--c-dark);
    letter-spacing: -0.2px;
}
.product-price-row .stock {
    font-size: 10.4px;
    color: var(--c-red);
}

.view-more {
    align-self: center;
}

/* ==========================================================================
   People Also Loved
   ========================================================================== */

.loved {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    padding: 60px 20px;
}

.loved-left {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 436px;
}

.loved-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.loved-subtitle {
    font-family: var(--font-inter);
    font-size: 16px;
    line-height: 26px;
    color: var(--c-gray);
}
.loved-title {
    font-family: var(--font-volkhov);
    font-size: 46px;
    color: var(--c-dark);
}
.buy-now {
    align-self: flex-start;
}

.timer {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.timer-label {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 28px;
    color: var(--c-dark);
}
.timer-boxes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.timer-digit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 14px 1px rgba(0, 0, 0, 0.16);
    font-family: var(--font-digital);
    font-size: 30px;
    color: var(--c-dark);
}
.timer-box span {
    font-family: var(--font-inter);
    font-size: 16px;
    color: var(--c-dark);
}

.loved-right {
    display: flex;
    align-items: center;
    gap: 21px;
    flex-wrap: wrap;
    justify-content: center;
}
.loved-arrows {
    display: flex;
    gap: 16px;
}
.loved-arrow img {
    width: 48px;
    height: 48px;
}
.loved-arrow:hover img {
    opacity: 0.7;
}

.loved-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    width: 300px;
}
.loved-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.loved-image--main {
    width: 320px;
    aspect-ratio: 404/592;
}
.loved-image--last {
    width: 300px;
    aspect-ratio: 372/486;
    align-self: flex-end;
}

.loved-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    width: 175px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(3.5px);
}
.badge-percent {
    font-family: var(--font-poppins);
    font-size: 24px;
    color: var(--c-dark);
    margin-bottom: 8px;
}
.badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-poppins);
    font-size: 14px;
    color: var(--c-dark);
}
.badge-dash {
    width: 20px;
    height: 1px;
}

.loved-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.loved-col .loved-image {
    aspect-ratio: 372/486;
}

.loved-dots {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dot {
    width: 11px;
    height: 11px;
    cursor: pointer;
}
.dot--active {
    width: 27px;
    height: 27px;
}

/* ==========================================================================
   Subscribe
   ========================================================================== */

.subscribe {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    padding: 80px 20px;
    flex-wrap: wrap;
    background: #fff;
}

.subscribe-image {
    width: 260px;
    flex-shrink: 0;
}
.subscribe-image img {
    border-radius: 8px;
}
.subscribe-image--left {
    align-self: flex-end;
}
.subscribe-image--right {
    align-self: flex-start;
}

.subscribe-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 630px;
    text-align: center;
}
.subscribe-subtitle {
    font-family: var(--font-inter);
    font-size: 16px;
    line-height: 26px;
    color: var(--c-gray);
}
.subscribe-title {
    font-family: var(--font-volkhov);
    font-size: 46px;
    color: var(--c-dark);
}
.subscribe-form {
    width: 100%;
    max-width: 500px;
    background: #fff;
    box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 22%);
    border-radius: 6px;
    padding: 4px;
}
.subscribe-form input {
    width: 100%;
    border: none;
    outline: none;
    padding: 16px 20px;
    font-family: var(--font-inter);
    font-size: 20px;
    color: var(--c-gray);
    background: transparent;
    text-align: center;
}
.subscribe-btn {
    margin-top: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    width: 100%;
    background: #f6f6f6;
    box-shadow: inset 0 -3px 15.3px 0 rgba(0, 0, 0, 0.07);
    padding: 40px 20px 30px;
    border-top: 1px solid #e5e5e5;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 115px;
}
.footer-heading {
    font-size: 12px;
    font-weight: 500;
    color: var(--c-black);
}
.footer-col a {
    font-size: 12px;
    font-weight: 200;
    color: var(--c-black);
}
.footer-rule {
    display: block;
    width: 115px;
    height: 1px;
    background: #d9d9d9;
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    margin-top: 32px;
    font-size: 12px;
    font-weight: 200;
    color: var(--c-black);
}

/* ==========================================================================
   Product Detail Page
   ========================================================================== */

.pdp-main {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: center;
    width: 100%;
    max-width: 1120px;
    margin: 50px auto 0;
    padding: 0 20px;
}

/* Media gallery */
.gallery {
    display: flex;
    gap: 17px;
    flex: 1 1 460px;
    max-width: 500px;
}
.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}
.gallery-thumb {
    width: 60px;
    height: 77px;
    padding: 5px;
    border: 1px solid #fff;
    box-shadow: 0 0 0 1px #eee;
    cursor: pointer;
    overflow: hidden;
}
.gallery-thumb.active {
    border-color: #000;
    box-shadow: none;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-main {
    flex: 1;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 423 / 571;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product details column */
.pdp-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1 1 420px;
    max-width: 504px;
}

.pdp-brand {
    font-family: var(--font-volkhov);
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #666;
}
.pdp-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.pdp-title-row h1 {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 26px;
    color: #000;
}
.wishlist-btn {
    flex-shrink: 0;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wishlist-btn img {
    width: 17px;
    height: 17px;
}
.wishlist-btn.active {
    background: #fee2e2;
    border-color: #f42020;
}

.pdp-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}
.pdp-rating img {
    width: 13px;
    height: 13px;
}
.pdp-rating .review-count {
    font-family: var(--font-inter);
    font-size: 13px;
    color: #000;
    margin-left: 4px;
}

.pdp-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.pdp-price-row .price-current {
    font-family: var(--font-volkhov);
    font-size: 21px;
    color: #000;
}
.pdp-price-row .price-strike {
    font-family: var(--font-inter);
    font-size: 14px;
    color: #666;
    text-decoration: line-through;
}
.badge-sale {
    background: #da3f3f;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 2px 9px;
    border-radius: 10px;
}

.countdown-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: #fdefee;
    border: 1px solid #f8cccc;
    border-radius: 4px;
    padding: 10px 17px;
}
.countdown-banner-label {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 15px;
    color: #ff706b;
}
.countdown-blocks {
    display: flex;
    align-items: center;
    gap: 4px;
}
.countdown-blocks .cd-num {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 17px;
    color: #ff706b;
    min-width: 24px;
    text-align: center;
}
.countdown-blocks .cd-colon {
    color: #ff706b;
    font-size: 17px;
}

.stock-stat p {
    font-family: var(--font-inter);
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}
.stock-stat p b {
    color: #000;
}
.stock-bar {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #dedede;
    overflow: hidden;
}
.stock-bar-fill {
    height: 100%;
    width: 5%;
    background: #ef2d2d;
    border-radius: 2px;
}

.pdp-quantity > label {
    display: block;
    font-family: var(--font-inter);
    font-size: 14px;
    color: #000;
    margin-bottom: 8px;
}
.quantity-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 3px;
    height: 40px;
}
.quantity-input button {
    width: 37px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quantity-input button img {
    width: 10px;
    height: 10px;
}
.quantity-input input {
    width: 34px;
    border: none;
    outline: none;
    text-align: center;
    font-family: var(--font-inter);
    font-size: 14px;
}
.add-to-cart {
    flex: 1;
    min-width: 200px;
    height: 40px;
    border: 1px solid #000;
    border-radius: 4px;
    font-family: var(--font-inter);
    font-size: 14px;
    background: #fff;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}
.add-to-cart:hover {
    background: #000;
    color: #fff;
}

.product-tools {
    display: flex;
    gap: 26px;
    margin-top: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
    flex-wrap: wrap;
    background-color: #fff;
}
.product-tools button {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-inter);
    font-size: 13px;
    color: #000;
}
.product-tools img {
    width: 17px;
    height: 17px;
}

.pdp-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pdp-info-row {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: var(--font-inter);
    font-size: 13px;
    color: #000;
}
.pdp-info-row img {
    width: 17px;
    flex-shrink: 0;
}

.detail-accordion {
    width: 100%;
    background: #f2f2f2;
    border: 0.5px solid #d2d2d2;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 13px;
    color: #000;
}
.detail-accordion img {
    width: 10px;
    height: 5px;
    transition: transform 0.2s ease;
}
.detail-accordion.open img {
    transform: rotate(180deg);
}
.detail-accordion-panel {
    display: none;
    padding: 4px 20px;
    /* background: #fafafa; */
    border: 0.1px solid #d2d2d26e;
    background-color: #ffff;
    border-top: none;
    font-family: var(--font-inter);
    font-size: 13px;
    line-height: 1.7;
    color: #444;
}
.detail-accordion-panel.open {
    display: block;
}

.detail-spec-table {
    width: 100%;
    border-collapse: collapse;
}
.detail-spec-table tr {
    /* border-bottom: 1px solid #e5e5e5; */
}
.detail-spec-table tr:last-child {
    border-bottom: none;
}
.detail-spec-table td {
    padding: 12px 0;
    vertical-align: top;
}
.detail-spec-table td:first-child {
    width: 140px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
}
.detail-spec-table td:last-child {
    color: #444;
}

.payment-options {
    background: #f8f8f8;
    border-radius: 4px;
    padding: 17px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.payment-options img {
    max-width: 276px;
    width: 100%;
}
.payment-options p {
    font-family: var(--font-inter);
    font-size: 14px;
    color: #000;
}

/* Misc / trust features */
.misc-features {
    width: 100%;
    max-width: 1120px;
    margin: 50px auto 0;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 20px 26px rgba(68, 68, 68, 0.04);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
}
.feature {
    display: flex;
    align-items: center;
    gap: 16px;
}
.feature img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.feature strong {
    display: block;
    font-family: var(--font-poppins);
    font-weight: 500;
    font-size: 18px;
    color: var(--c-dark);
}
.feature span {
    font-family: var(--font-poppins);
    font-size: 12px;
    color: var(--c-dark);
}

/* Reviews */
.reviews-section {
    width: 100%;
    max-width: 1900px;
    margin: 60px auto 0;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.reviews-section h2 {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 34px;
    color: #000;
    align-self: flex-start;
    margin-left: max(0px, calc(50% - 570px));
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 16px;
    max-width: 1140px;
    width: 100%;
    position: relative;
}
.reviews-grid.collapsed .review-card:nth-child(n + 4):nth-child(-n + 6) {
    filter: blur(3px);
    user-select: none;
    pointer-events: none;
}
.reviews-grid.collapsed .review-card:nth-child(n + 7) {
    display: none;
}
.review-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    gap: 16px;
    cursor: pointer;
}
.review-card img.review-photo {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}
.review-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.review-user {
    display: flex;
    align-items: center;
    gap: 8px;
}
.review-user img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}
.review-user span {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 14px;
}
.review-stars {
    width: 90px;
    height: 15px;
}
.review-date {
    font-family: var(--font-inter);
    font-size: 13px;
    color: #3a3a3a;
}
.review-text {
    font-family: var(--font-inter);
    font-size: 13px;
    line-height: 1.5;
    color: #3a3a3a;
}

/* ---------- Review detail popup (reuses .cart-popup-overlay) ---------- */
.review-detail-popup {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 21px;
    box-shadow: 0 4px 7.65px 0 rgba(0, 0, 0, 0.14);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.review-detail-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.review-detail-rating-row {
    display: flex;
    align-items: center;
    gap: 15px;
}
.review-detail-stars {
    display: inline-flex;
    gap: 2px;
}
.review-detail-stars img {
    width: 17px;
    height: 17px;
}
.review-detail-time {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 14px;
    color: #7f7f7f;
}
.review-detail-user {
    display: flex;
    align-items: center;
    gap: 16px;
}
.review-detail-user img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}
.review-detail-user span {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 15px;
    color: #000;
}
.review-detail-variant {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 17px;
    color: #808080;
}
.review-detail-text {
    font-family: var(--font-inter);
    font-size: 14px;
    line-height: 1.6;
    color: #3a3a3a;
}
.review-detail-photos {
    display: flex;
    gap: 16px;
}
.review-detail-photo {
    flex: 1;
    height: 90px;
    border-radius: 15px;
    overflow: hidden;
}
.review-detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 640px) {
    .review-detail-popup {
        padding: 24px;
        gap: 16px;
    }
    .review-detail-photos {
        flex-wrap: wrap;
    }
    .review-detail-photo {
        flex: 1 1 calc(50% - 8px);
    }
}

.see-more-btn {
    font-family: var(--font-inter);
    font-size: 18px;
    color: #2c2c2c;
    margin-top: -10px;
}

/* You May Also Like */
.also-like {
    width: 100%;
    padding: 40px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    /* filter: drop-shadow(0 11px 9.75px rgb(252, 251, 251)); */
}
.also-like h2 {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 34px;
    color: #000;
    width: 100%;
    max-width: 1120px;
    padding: 0 20px;
}
.also-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    width: 100%;
    max-width: 1120px;
    padding: 0 20px 10px;
    scroll-snap-type: x proximity;
}
.also-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.also-card-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 268 / 322;
    background: #e3e3e3;
}
.also-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.also-card-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.also-card-name {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 15px;
    color: #1e1e1e;
}
.also-card-desc {
    font-family: var(--font-inter);
    font-weight: 200;
    font-size: 13px;
    color: #1e1e1e;
}
.also-card-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 6px;
}
.also-card-price .price-now {
    font-family: var(--font-volkhov);
    font-weight: 700;
    font-size: 18px;
    color: #1e1e1e;
}
.also-card-price .price-old {
    font-family: var(--font-inter);
    font-size: 14px;
    color: #cecece;
    text-decoration: line-through;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ---------- Tablet (landscape) / small desktop ---------- */
@media (max-width: 1024px) {
    .slider {
        padding: 30px 40px 0;
    }
    .slider-arrow--prev {
        left: 24px;
    }
    .slider-arrow--next {
        right: 24px;
    }
    /* Touch devices have no hover, so keep the arrows visible. */
    .slider-arrow {
        opacity: 1;
    }

    .header-row {
        gap: 20px;
    }
    .category-row {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 10px 20px 16px;
    }
    .category-row::-webkit-scrollbar {
        display: none;
    }
    .category-item {
        flex-shrink: 0;
    }
    .filter-row {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        gap: 20px;
        padding: 12px 20px;
    }
    .filter-row::-webkit-scrollbar {
        display: none;
    }
    .filter-group {
        flex-shrink: 0;
    }
    .filter-trigger-btn {
        position: sticky;
        right: -21px;
        z-index: 5;
        flex-shrink: 0;
        align-self: stretch;
        margin: -12px 0;
        background: #fff;
        padding: 0 20px 0 14px;
        box-shadow: -10px 0 12px -4px rgba(0, 0, 0, 0.12);
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .pdp-main {
        gap: 40px;
    }
    .misc-features {
        gap: 32px;
    }
}

/* ---------- Tablet (portrait) ---------- */
@media (max-width: 900px) {
    .header-row {
        justify-content: center;
    }
    .search-bar {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
    }
    .loved {
        flex-direction: column;
    }
    .subscribe {
        flex-direction: column;
    }
    .subscribe-image--left,
    .subscribe-image--right {
        align-self: center;
    }
    .pdp-main {
        flex-direction: column;
        align-items: center;
    }
    .gallery {
        max-width: 100%;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .reviews-section h2 {
        margin-left: 0;
    }
}

/* ---------- Large mobile ---------- */
@media (max-width: 768px) {
    .header-main {
        display: none;
    }
    .mobile-header {
        display: flex;
    }
    .mobile-header-divider {
        display: block;
    }
    .bottom-tab-bar {
        display: flex;
    }
    .has-mobile-tab-bar {
        padding-bottom: 76px;
    }

    .slider {
        padding: 24px 16px 0;
    }
    .slider-arrow--prev {
        left: 12px;
    }
    .slider-arrow--next {
        right: 12px;
    }
    .slider-arrow {
        width: 32px;
        height: 32px;
    }

    .announcement-bar {
        gap: 12px;
        font-size: 12px;
        padding: 6px 12px;
    }
    .v-divider {
        display: none;
    }
    .logo img {
        height: 40px;
    }
    .login-btn {
        min-width: auto;
        height: 32px;
        padding: 0 12px;
        font-size: 14px;
    }
    .cart-btn img {
        width: 22px;
        height: 22px;
    }
    .category-item {
        font-size: 11px;
    }
    .tag-toggle {
        padding: 6px 14px;
    }

    .loved-image--main {
        width: 220px;
    }
    .loved-col .loved-image,
    .loved-image--last {
        width: 170px;
    }
    .timer-digit {
        width: 62px;
        height: 62px;
        font-size: 24px;
    }
    .timer-label {
        font-size: 22px;
    }

    .pdp-title-row h1 {
        font-size: 22px;
    }
    .gallery {
        gap: 12px;
    }
    .gallery-thumb {
        width: 48px;
        height: 62px;
    }
    .quantity-row {
        gap: 12px;
    }
    .add-to-cart {
        min-width: 160px;
    }

    .also-card {
        flex-basis: 170px;
    }
    .also-like h2,
    .reviews-section h2,
    .cart-popup-also h3 {
        font-size: 26px;
    }

    .cart-popup {
        padding: 24px 16px;
    }
    .cart-popup-summary {
        padding: 12px;
    }
    .cart-popup-image {
        width: 72px;
        height: 86px;
    }
    .login-hero {
        display: none;
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }
    .product-card {
        padding: 10px;
        gap: 12px;
    }
    .product-image {
        aspect-ratio: 4 / 5;
    }
    .product-name .name {
        font-size: 12px;
    }
    .product-name .brand {
        font-size: 9px;
    }
    .stars {
        width: 64px;
        height: 13px;
    }
    .product-info-top {
        flex-wrap: wrap;
    }
    .product-price-row {
        flex-wrap: wrap;
        gap: 4px;
    }
    .product-price-row .price {
        font-size: 12px;
    }
    .product-price-row .stock {
        font-size: 9px;
    }
    .option-switcher {
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0px 5px;
        padding: 10px 0px 10px 0px;
    }
    .option {
        font-size: 13px;
        text-decoration: none;
        flex: 0 1 auto;
        padding: 8px 16px;
        white-space: nowrap;
    }
    .promos-heading h2,
    .loved-title,
    .subscribe-title {
        font-size: 32px;
    }
    .timer-boxes {
        justify-content: center;
    }
    .misc-features {
        gap: 24px;
    }
    .btn-dark {
        font-size: 15px;
        height: 40px;
    }
    .login-hero {
        display: none;
    }
}

/* ---------- Small mobile ---------- */
@media (max-width: 480px) {
    .slider {
        padding: 16px 12px 0;
    }
    .slider-dots {
        bottom: 10px;
        padding: 5px 8px;
    }
    .slider-dot {
        width: 6px;
        height: 6px;
    }
    .slider-dot.active {
        width: 18px;
    }

    .announcement-bar {
        flex-direction: column;
        gap: 4px;
        font-size: 11px;
    }
    .header-row {
        gap: 12px;
        padding: 10px 12px;
    }

    .promos-heading h2,
    .loved-title,
    .subscribe-title {
        font-size: 26px;
    }
    .promos {
        gap: 28px;
        margin-top: 28px;
    }
    .loved {
        padding: 40px 16px;
        gap: 28px;
    }
    .loved-image--main {
        width: 170px;
    }
    .loved-col .loved-image,
    .loved-image--last {
        width: 140px;
    }
    .loved-badge {
        width: 130px;
        padding: 10px;
    }
    .badge-percent {
        font-size: 18px;
    }
    .subscribe {
        padding: 48px 16px;
    }
    .footer-columns {
        gap: 32px;
    }
    .footer-col {
        min-width: 100px;
    }

    .pdp-main {
        padding: 0 16px;
        gap: 32px;
    }
    .countdown-banner {
        padding: 8px 12px;
    }
    .countdown-banner-label {
        font-size: 13px;
    }
    .countdown-blocks .cd-num,
    .countdown-blocks .cd-colon {
        font-size: 15px;
    }
    .quantity-row {
        flex-direction: column;
        align-items: stretch;
    }
    .quantity-input {
        align-self: flex-start;
    }
    .add-to-cart {
        min-width: 0;
        width: 100%;
    }
    .misc-features {
        padding: 16px;
    }
    .also-like h2,
    .reviews-section h2,
    .cart-popup-also h3 {
        font-size: 22px;
    }
    .also-card {
        flex-basis: 150px;
    }
    .review-card {
        flex-direction: column;
    }
    .review-card img.review-photo {
        width: 100%;
        height: 160px;
    }
    .login-hero {
        display: none;
    }
}

/* ==========================================================================
   Market (product listing)
   ========================================================================== */

.market-section {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 23px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.market-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.market-pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #e5e5e5;
    background: #fff;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}
.market-pagination-arrow img {
    width: 14px;
    height: 14px;
}
.market-pagination-arrow img.flip {
    transform: scaleX(-1);
}
.market-pagination-arrow:hover {
    border-color: #1e1e1e;
}
.market-pagination-arrow.disabled {
    opacity: 0.35;
    pointer-events: none;
}
.market-pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border-radius: 999px;
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 14px;
    color: #757575;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}
.market-pagination-page:hover {
    background: #f5f5f5;
    color: #1e1e1e;
}
.market-pagination-page.active {
    background: #1e1e1e;
    color: #fff;
}
.market-pagination-ellipsis {
    color: #b3b3b3;
    font-family: var(--font-inter);
    font-size: 14px;
    padding: 0 2px;
}

.market-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 15px;
    padding: 17px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition:
        box-shadow 0.3s ease-in-out,
        z-index 0.3s ease-in-out;
}
.market-card:hover {
    z-index: 2;
    box-shadow: 0 20px 35px 0 rgba(0, 0, 0, 0.1);
}

.market-card-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 206 / 247;
    background: #e3e3e3;
}
.market-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.market-card-ribbon {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 56px;
    height: 24px;
    background: #00de9f;
    border-top-left-radius: 15px;
    display: none;
}

.market-card-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.market-card-name {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 12px;
    color: #1e1e1e;
}
.market-card-desc {
    font-family: var(--font-inter);
    font-weight: 200;
    font-size: 12px;
    color: #1e1e1e;
}
.market-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 4px;
}
.market-card-price .price-now {
    font-family: var(--font-volkhov);
    font-weight: 700;
    font-size: 14px;
    color: #1e1e1e;
}
.market-card-price .price-old {
    font-family: var(--font-inter);
    font-size: 12px;
    color: #cecece;
    text-decoration: line-through;
}

@media (max-width: 1024px) {
    .market-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .market-section {
        padding: 32px 16px;
    }
}
@media (max-width: 640px) {
    .market-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .market-card {
        padding: 12px;
        gap: 12px;
    }
}

/* ==========================================================================
   Flash Sale slider
   ========================================================================== */

.flash-sale {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 23px;
}

.flash-sale-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.flash-sale-heading-text h2 {
    font-family: var(--font-volkhov);
    font-weight: 700;
    font-size: 28px;
    color: #1e1e1e;
}
.flash-sale-heading-text p {
    font-family: var(--font-inter);
    font-size: 14px;
    color: #757575;
    margin-top: 4px;
}

.flash-sale-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Scoped smaller countdown for the flash-sale card slider only — the base
   .timer rules stay untouched so the homepage "People Also Loved" timer
   (which reuses .timer without this class) is unaffected. */
.flash-sale-timer {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.flash-sale-timer .timer-label {
    font-size: 12px;
    white-space: nowrap;
}
.flash-sale-timer .timer-boxes {
    gap: 4px;
}
.flash-sale-timer .timer-box {
    gap: 2px;
}
.flash-sale-timer .timer-digit {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 12px;
}
.flash-sale-timer .timer-box span {
    font-size: 9px;
}

.flash-sale-arrows {
    display: flex;
    gap: 8px;
}
.flash-sale-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #1e1e1e;
    transition:
        border-color 0.15s ease,
        opacity 0.15s ease;
}
.flash-sale-arrow:hover {
    border-color: #1e1e1e;
}
.flash-sale-arrow.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.flash-sale-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.flash-sale-track::-webkit-scrollbar {
    display: none;
}

.flash-sale-card {
    flex: 0 0 calc((100% - 3 * 8px) / 4);
    min-width: 0;
    scroll-snap-align: start;
}

.flash-sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    background: #ff4747;
    color: #fff;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 999px;
}

.flash-sale-stock {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}
.flash-sale-stock-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}
.flash-sale-stock-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff8a00, #ff4747);
}
.flash-sale-stock p {
    font-family: var(--font-inter);
    font-size: 11px;
    color: #757575;
}

@media (max-width: 1024px) {
    .flash-sale {
        padding: 32px 16px;
    }
    .flash-sale-card {
        flex: 0 0 calc((100% - 2 * 8px) / 3);
    }
}
@media (max-width: 640px) {
    .flash-sale-heading {
        flex-direction: column;
        align-items: flex-start;
    }
    /* 2 full cards + a quarter of the next one peeking in, so it reads as
       scrollable instead of a plain 2-up grid. */
    .flash-sale-card {
        flex: 0 0 calc((100% - 2 * 8px) / 2.25);
    }
}

/* ==========================================================================
   Cart Popup
   ========================================================================== */

.cart-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}
.cart-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-popup {
    position: relative;
    width: 100%;
    max-width: 880px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.25);
    padding: 40px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-popup-overlay.show .cart-popup {
    transform: scale(1);
}

.cart-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #1e1e1e;
    transition: background 0.15s ease;
}
.cart-popup-close:hover {
    background: #f2f2f2;
}

.cart-popup-summary {
    /* border: 1px solid #a9a9a9;
  border-radius: 21px; */
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cart-popup-product {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cart-popup-image {
    width: 100px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 15px;
    overflow: hidden;
}
.cart-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-popup-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cart-popup-info-top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.cart-popup-brand {
    font-family: var(--font-volkhov);
    font-size: 10px;
    text-transform: uppercase;
    color: #666;
}
.cart-popup-title {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 16px;
    color: #000;
}
.cart-popup-specs {
    display: flex;
    gap: 10px;
    font-family: var(--font-inter);
    font-size: 12px;
    line-height: 1.6;
}
.cart-popup-specs-label {
    color: #808080;
    font-weight: 500;
}
.cart-popup-specs-value {
    color: #000;
}
.cart-popup-sku {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 12px;
    color: #868686;
}

.cart-popup-cta {
    flex-shrink: 0;
    background: #d9d9d9;
    color: #000;
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 12px;
    padding: 8px 22px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.cart-popup-cta:hover {
    background: #c9c9c9;
}

.cart-popup-also h3 {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 24px;
    color: #000;
    margin-bottom: 16px;
}
.cart-popup-also-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}
.cart-popup-card {
    background: #fff;
    border-radius: 11px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition:
        box-shadow 0.3s ease-in-out,
        z-index 0.3s ease-in-out;
    position: relative;
    z-index: 1;
}
.cart-popup-card:hover {
    z-index: 2;
    box-shadow: 0 20px 35px 0 rgba(0, 0, 0, 0.1);
}
.cart-popup-card-image {
    position: relative;
    border-radius: 11px;
    overflow: hidden;
    aspect-ratio: 157 / 188;
    background: #e3e3e3;
}
.cart-popup-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cart-popup-card-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.cart-popup-card-name {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 10px;
    color: #1e1e1e;
}
.cart-popup-card-desc {
    font-family: var(--font-inter);
    font-weight: 200;
    font-size: 10px;
    color: #1e1e1e;
}
.cart-popup-card-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
}
.cart-popup-card-price .price-now {
    font-family: var(--font-volkhov);
    font-weight: 700;
    font-size: 11px;
    color: #1e1e1e;
}
.cart-popup-card-price .price-old {
    font-family: var(--font-inter);
    font-size: 9px;
    color: #cecece;
    text-decoration: line-through;
}

@media (max-width: 700px) {
    .cart-popup-also-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .cart-popup-overlay {
        padding: 12px;
    }
    .cart-popup {
        padding: 20px 14px;
        border-radius: 16px;
        gap: 16px;
    }
    .cart-popup-summary {
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
    }
    .cart-popup-product {
        gap: 12px;
    }
    .cart-popup-info-top {
        gap: 12px;
    }
    .cart-popup-cta {
        align-self: stretch;
        text-align: center;
    }
}

/* ---------- Share Popup (reuses .cart-popup-overlay / .cart-popup-close) ---------- */
.share-popup {
    position: relative;
    width: 100%;
    max-width: 620px;
    background: #fff;
    border-radius: 21px;
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.25);
    padding: 56px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-popup-overlay.show .share-popup {
    transform: scale(1);
}

.share-popup-product {
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #a9a9a9;
    border-radius: 19px;
    padding: 20px;
}
.share-popup-image {
    width: 80px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}
.share-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.share-popup-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.share-popup-title {
    font-size: 18px;
    color: var(--c-black);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.share-popup-sku {
    font-size: 13px;
    font-weight: 500;
    color: #868686;
}

.share-link-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f7f7f7;
    border: 1px solid #bababa;
    border-radius: 42px;
    padding: 6px 6px 6px 20px;
    flex-wrap: wrap;
}
.share-link-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-black);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 80px;
}
.share-copy-btn {
    flex-shrink: 0;
    height: 38px;
    padding: 0 20px;
    border: 1px solid #afafaf;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-black);
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}
.share-copy-btn:hover {
    background: #f2f2f2;
}
.share-copy-btn.copied {
    background: #000;
    color: #fff;
    border-color: #000;
}

@media (max-width: 480px) {
    .share-popup {
        padding: 48px 16px 20px;
        border-radius: 16px;
        gap: 16px;
    }
    .share-popup-product {
        padding: 12px;
        gap: 12px;
    }
    .share-link-bar {
        padding: 12px;
        border-radius: 16px;
    }
    .share-copy-btn {
        width: 100%;
    }
}

/* ==========================================================================
   Login Page
   ========================================================================== */

.login-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #fff;
}

.login-hero {
    position: relative;
    flex: 0 0 45.5%;
    overflow: hidden;
}
.login-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.login-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset -50px 0 80px -60px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.login-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.login-form {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-title {
    font-weight: 700;
    font-size: 40px;
    text-align: center;
    margin-bottom: 48px;
}

.login-fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

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

.login-field label {
    font-size: 19px;
    line-height: 1.4;
}

.forgot-password {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 14px;
    color: #757575;
}

.login-input {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    border: 1.2px solid var(--c-border);
    border-radius: 10px;
    padding: 14px 19px;
}

.login-input input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-family: var(--font-inter);
    font-size: 16px;
    color: var(--c-black);
}
.login-input input::placeholder {
    color: var(--c-placeholder);
}

.login-input .icon-btn img {
    width: 22px;
    height: 18px;
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    background: #000;
    color: #fff;
    border-radius: 10px;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 16px;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px 0 rgba(0, 0, 0, 0.18);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    color: #4f4f4f;
    font-size: 14px;
}
.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #c9c9c9;
}

.login-social {
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-social .icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background 0.15s ease;
}
.login-social .icon-btn:hover {
    background: var(--c-tag-light);
}
.login-social .icon-btn img {
    width: 24px;
    height: 24px;
}

.login-register {
    text-align: center;
    font-size: 14px;
}
.login-register .light {
    font-weight: 200;
}
.login-register a {
    font-weight: 600;
    text-decoration: underline;
}

/* Tablet: keep the split layout but let the hero shrink */
@media (max-width: 1100px) {
    .login-hero {
        flex: 0 0 38%;
    }
    .login-panel {
        padding: 40px 24px;
    }
}

/* Tablet portrait / small tablet: stack hero above the form */
@media (max-width: 860px) {
    .login-page {
        flex-direction: column;
    }
    .login-hero {
        flex: 0 0 auto;
        width: 100%;
        height: 280px;
    }
    .login-panel {
        padding: 36px 24px;
    }
    .login-title {
        font-size: 34px;
        margin-bottom: 36px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .login-hero {
        height: 200px;
    }
    .login-panel {
        padding: 28px 16px;
    }
    .login-form {
        gap: 20px;
    }
    .login-fields {
        gap: 20px;
    }
    .login-title {
        font-size: 28px;
        margin-bottom: 28px;
    }
    .login-input {
        padding: 12px 16px;
    }
    .btn-login {
        height: 52px;
    }
    .subscribe-image--right {
        display: none;
    }
    .subscribe-image--left {
        display: none;
    }
}

@media (max-width: 360px) {
    .login-field-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ==========================================================================
   OTP Verification Popup
   ========================================================================== */

.otp-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}
.otp-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.otp-popup {
    position: relative;
    width: 100%;
    max-width: 380px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.25);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.otp-popup-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.otp-popup-title {
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
}
.otp-popup-subtitle {
    font-weight: 500;
    font-size: 12px;
}

.otp-popup-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.otp-code-label {
    font-weight: 700;
    font-size: 12px;
}

.otp-inputs {
    display: flex;
    gap: 9px;
    justify-content: center;
}
.otp-digit {
    width: 56px;
    height: 72px;
    border: 2px solid #dbdbdb;
    border-radius: 11px;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    color: var(--c-black);
    filter: drop-shadow(0 7px 6px rgba(0, 0, 0, 0.14));
}
.otp-digit:focus {
    outline: none;
    border-color: #2c2c2c;
}

.otp-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    width: 100%;
}

.btn-otp-submit {
    width: 100%;
    background: var(--c-tag-dark);
    color: #fff;
    border-radius: 8px;
    padding: 12px;
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 16px;
}
.btn-otp-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.otp-resend {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 12px;
}
.otp-resend .label {
    font-weight: 500;
    color: var(--c-black);
}
.otp-resend .timer {
    font-weight: 700;
    color: #aeaeae;
}
.otp-resend .resend-link {
    font-weight: 700;
    color: var(--c-black);
    text-decoration: underline;
    display: none;
}
.otp-resend.can-resend .timer {
    display: none;
}
.otp-resend.can-resend .resend-link {
    display: inline;
    cursor: pointer;
}

.btn-otp-back {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0.5px solid #bcbcbc;
    border-radius: 8px;
    padding: 12px;
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 16px;
    color: var(--c-black);
}
.btn-otp-back img {
    width: 5px;
    height: 10px;
    transform: rotate(90deg);
}

@media (max-width: 480px) {
    .otp-popup {
        padding: 32px 20px;
        gap: 24px;
    }
    .otp-popup-title {
        font-size: 19px;
    }
    .otp-digit {
        width: 48px;
        height: 62px;
        font-size: 20px;
    }
}

@media (max-width: 360px) {
    .otp-inputs {
        gap: 6px;
    }
    .otp-digit {
        width: 42px;
        height: 56px;
        font-size: 18px;
    }
}

/* ==========================================================================
   Checkout Page
   ========================================================================== */

.checkout-breadcrumb {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #efefef;
}
.checkout-breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 1040px;
}
.checkout-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}
.checkout-back-btn img {
    width: 22px;
    height: 22px;
}
.checkout-breadcrumb-title {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 20px;
    color: #333;
}

.static-page {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 40px 24px 80px;
}
.static-page-inner {
    width: 100%;
    max-width: 760px;
}
.static-page-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 24px;
}
.static-page-inner h1 {
    font-family: var(--font-inter);
    font-size: 28px;
    font-weight: 700;
    color: #1e1e1e;
    margin-bottom: 24px;
}
.static-page-body p,
.static-page-body li,
.static-page-body blockquote {
    font-family: var(--font-inter);
    font-size: 15px;
    line-height: 1.7;
    color: #3a3a3a;
    margin-bottom: 18px;
}
.static-page-body h2,
.static-page-body h3 {
    font-family: var(--font-inter);
    font-weight: 700;
    color: #1e1e1e;
    margin: 28px 0 12px;
}
.static-page-body h2 { font-size: 22px; }
.static-page-body h3 { font-size: 18px; }
.static-page-body ul,
.static-page-body ol {
    padding-left: 22px;
    margin-bottom: 18px;
}
.static-page-body ul { list-style: disc; }
.static-page-body ol { list-style: decimal; }
.static-page-body li { margin-bottom: 6px; }
.static-page-body a {
    color: #1e1e1e;
    text-decoration: underline;
}
.static-page-body blockquote {
    border-left: 3px solid #e5e5e5;
    padding-left: 16px;
    color: #6b6b6b;
}

.checkout-main {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 40px 24px;
}
.checkout-columns {
    display: flex;
    align-items: flex-start;
    gap: 56px;
    width: 100%;
    max-width: 1040px;
}

.checkout-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.checkout-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
.checkout-section-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.checkout-section-title-row h2,
.checkout-section-title-solo {
    font-family: var(--font-volkhov);
    font-weight: 700;
    font-size: 20px;
    color: #1e1e1e;
    white-space: nowrap;
}
.checkout-title-line {
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}
.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.checkout-field label {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 13px;
    color: #1e1e1e;
}
.checkout-field input,
.checkout-field select {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--font-inter);
    font-size: 14px;
    color: #1e1e1e;
    outline: none;
    background-color: #fff;
    transition: border-color 0.15s ease;
}
.checkout-field select {
    appearance: none;
    cursor: pointer;
    padding-right: 40px;
    background-image: url("/assets/icons/icon_chevron_down.svg");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
}
.checkout-field input::placeholder {
    color: #b3b3b3;
}
.checkout-field input:focus,
.checkout-field select:focus {
    border-color: #1e1e1e;
}

.checkout-address-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.checkout-address-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.checkout-address-option:has(input:checked) {
    border-color: #1e1e1e;
}
.checkout-address-option input[type="radio"] {
    /* .checkout-field input (higher up) styles inputs generically for the
       text/select fields in this form — reset everything it sets so the
       radio renders as a normal browser radio, not a giant blank box. */
    appearance: radio;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
}
.checkout-address-option-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.checkout-address-option-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.checkout-address-option-name {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 14px;
    color: #1e1e1e;
}
.checkout-address-option-phone {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 13px;
    color: #6b7280;
}
.checkout-address-option-text {
    font-family: var(--font-inter);
    font-size: 13px;
    color: #6b7280;
}

.checkout-items-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}
.checkout-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.checkout-item:last-child {
    border-bottom: none;
}
.checkout-item-image {
    flex-shrink: 0;
    width: 64px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}
.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.checkout-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.checkout-item-name {
    font-family: var(--font-volkhov);
    font-weight: 700;
    font-size: 15px;
    color: #1e1e1e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.checkout-item-variant {
    font-family: var(--font-inter);
    font-size: 12px;
    color: #757575;
}
.checkout-item-price {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 84px;
}
.checkout-item-price-old {
    font-family: var(--font-inter);
    font-size: 12px;
    color: #818181;
    text-decoration: line-through;
}
.checkout-item-price-now {
    font-family: var(--font-volkhov);
    font-weight: 700;
    font-size: 14px;
    color: #1e1e1e;
}
.checkout-stepper {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}
.checkout-stepper button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 14px;
    color: #757575;
}
.checkout-item-qty {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 32px;
    padding: 0 10px;
    border-radius: 20px;
    background: #f5f5f5;
}
.checkout-item-qty span {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 13px;
    color: #757575;
}
.checkout-stepper input {
    width: 40px;
    height: 32px;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-right: none;
    text-align: center;
    outline: none;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.checkout-right {
    flex-shrink: 0;
    width: 420px;
    position: sticky;
    top: 88px;
    align-self: flex-start;
}
.checkout-summary {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    padding: 32px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
}
.checkout-summary h2 {
    font-family: var(--font-volkhov);
    font-weight: 700;
    font-size: 20px;
    color: #1e1e1e;
}

.checkout-summary-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}
.checkout-summary-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
}
.checkout-summary-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.checkout-summary-item-name {
    font-family: var(--font-volkhov);
    font-weight: 700;
    font-size: 15px;
    color: #1e1e1e;
}
.checkout-summary-item-meta {
    display: flex;
    gap: 4px;
    font-size: 12px;
    color: #757575;
}
.checkout-summary-item-meta strong {
    font-weight: 600;
}
.checkout-summary-item-price {
    flex-shrink: 0;
    font-family: var(--font-volkhov);
    font-weight: 700;
    font-size: 14px;
    color: #1e1e1e;
    white-space: nowrap;
}

.checkout-divider {
    width: 100%;
    height: 1px;
    background: #e5e5e5;
}

.checkout-voucher-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}
.checkout-voucher-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.checkout-voucher-left img {
    width: 20px;
    height: 20px;
}
.checkout-voucher-left span {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 14px;
    color: #333;
}
.checkout-voucher-row input {
    flex: 1;
    min-width: 120px;
    border: none;
    outline: none;
    background: transparent;
    text-align: right;
    font-family: var(--font-inter);
    font-size: 13px;
    color: #1e1e1e;
}
.checkout-voucher-row input::placeholder {
    color: #b3b3b3;
}

.checkout-calc {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.checkout-calc-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    font-family: var(--font-inter);
    font-size: 14px;
}
.checkout-calc-row span:first-child {
    color: #757575;
}
.checkout-calc-row span:last-child {
    font-weight: 500;
    color: #1e1e1e;
}

.checkout-voucher-btn {
    flex-shrink: 0;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 13px;
    color: #1e1e1e;
    cursor: pointer;
    transition: color 0.15s ease;
}
.checkout-voucher-btn:hover {
    color: #26b99a;
}
.checkout-voucher-btn:disabled {
    opacity: 0.6;
    cursor: default;
}
.checkout-voucher-message {
    font-family: var(--font-inter);
    font-size: 12px;
    min-height: 14px;
}
.checkout-voucher-message.is-error {
    color: #dc2626;
}
.checkout-voucher-message.is-success {
    color: #16a34a;
}

#checkoutDiscount {
    color: #16a34a !important;
}

.checkout-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    font-family: var(--font-volkhov);
    font-weight: 700;
}
.checkout-total-row span:first-child {
    font-size: 18px;
    color: #1e1e1e;
}
.checkout-total-row span:last-child {
    font-size: 26px;
    color: #000;
}

.checkout-place-order-btn {
    width: 100%;
    padding: 16px;
    background: #000;
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 16px;
    transition: transform 0.15s ease;
}
.checkout-place-order-btn:hover {
    transform: translateY(-1px);
}

.checkout-secured {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}
.checkout-secured img {
    width: 16px;
    height: 16px;
}
.checkout-secured span {
    font-family: var(--font-inter);
    font-size: 12px;
    color: #757575;
}

@media (max-width: 900px) {
    .checkout-columns {
        flex-direction: column;
    }
    .checkout-right {
        width: 100%;
        position: static;
    }
    .checkout-summary {
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 480px) {
    .checkout-main {
        padding: 24px 16px;
    }
    .checkout-columns {
        gap: 32px;
    }
    .checkout-summary {
        padding: 20px;
    }
    .checkout-item {
        gap: 12px;
    }
    .checkout-item-image {
        width: 52px;
        height: 65px;
    }
}

/* ---------- Voucher picker popup (reuses .cart-popup-overlay) ---------- */
.voucher-picker-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-popup-overlay.show .voucher-picker-modal {
    transform: scale(1);
}
.voucher-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
}
.voucher-picker-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 18px;
    color: #1e1e1e;
}
.voucher-picker-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    color: #6b7280;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}
.voucher-picker-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 0 24px;
}
.voucher-picker-body {
    padding: 20px 24px 0;
    overflow-y: auto;
}
.voucher-picker-label {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}
.voucher-picker-code-row {
    display: flex;
    gap: 10px;
}
.voucher-picker-code-row input {
    flex: 1;
    min-width: 0;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--font-inter);
    font-size: 14px;
    outline: none;
}
.voucher-picker-code-row input:focus {
    border-color: #26b99a;
}
.voucher-picker-apply-btn {
    flex-shrink: 0;
    background: #26b99a;
    color: #fff;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 8px;
}
.voucher-picker-apply-btn:disabled {
    opacity: 0.6;
}
.voucher-picker-or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #9ca3af;
}
.voucher-picker-or-divider::before,
.voucher-picker-or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}
.voucher-picker-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
}
.voucher-picker-message {
    font-family: var(--font-inter);
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    padding: 20px 0;
}
.voucher-pick-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
}
.voucher-pick-card.is-eligible {
    border-color: #26b99a;
}
.voucher-pick-card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1f2f4;
}
.voucher-pick-card.is-eligible .voucher-pick-card-icon {
    background: rgba(38, 185, 154, 0.12);
}
.voucher-pick-card-icon img {
    width: 20px;
    height: 20px;
}
.voucher-pick-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.voucher-pick-card-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.voucher-pick-card-name {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 14px;
    color: #1e1e1e;
}
.voucher-pick-card-badge {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 20px;
    background: #f1f2f4;
    color: #6b7280;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 11px;
}
.voucher-pick-card.is-eligible .voucher-pick-card-badge {
    background: rgba(38, 185, 154, 0.12);
    color: #26b99a;
}
.voucher-pick-card-desc {
    font-family: var(--font-inter);
    font-size: 13px;
    color: #4b5563;
}
.voucher-pick-card-expiry {
    font-family: var(--font-inter);
    font-size: 12px;
    color: #9ca3af;
}
.voucher-pick-card-use {
    flex-shrink: 0;
    align-self: center;
    background: #f1f2f4;
    color: #9ca3af;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 8px;
}
.voucher-pick-card.is-eligible .voucher-pick-card-use {
    background: #26b99a;
    color: #fff;
}
.voucher-pick-card.is-selected {
    background: rgba(38, 185, 154, 0.05);
}
.voucher-picker-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e5e5;
}
.voucher-picker-footer-label {
    font-family: var(--font-inter);
    font-size: 12px;
    color: #6b7280;
}
.voucher-picker-footer-value {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 14px;
    color: #1e1e1e;
}
.voucher-picker-footer-value.is-applied {
    color: #26b99a;
}
.voucher-picker-ok-btn {
    flex-shrink: 0;
    background: #26b99a;
    color: #fff;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 32px;
    border-radius: 8px;
}

/* ---------- Confirm Checkout popup (reuses .cart-popup-overlay) ---------- */
.confirm-popup {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 16px rgba(0, 0, 0, 0.1);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-popup-overlay.show .confirm-popup {
    transform: scale(1);
}

.confirm-popup-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.confirm-popup-title {
    font-family: var(--font-volkhov);
    font-weight: 700;
    font-size: 22px;
    color: #1e1e1e;
}
.confirm-popup-desc {
    font-family: var(--font-inter);
    font-size: 15px;
    line-height: 1.45;
    color: #757575;
}

.confirm-popup-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}
.confirm-popup-actions button {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 14px;
}
.confirm-popup-cancel {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #1e1e1e;
}
.confirm-popup-cancel:hover {
    background: #f7f7f7;
}
.confirm-popup-proceed {
    background: #1e1e1e;
    color: #fff;
}
.confirm-popup-proceed:hover {
    background: #000;
}

@media (max-width: 480px) {
    .confirm-popup {
        padding: 24px;
    }
    .confirm-popup-actions {
        flex-direction: column;
    }
}

/* ---------- Write a Review popup (reuses .cart-popup-overlay) ---------- */
.review-popup {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.15);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-popup-overlay.show .review-popup {
    transform: scale(1);
}

.review-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}
.review-popup-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.review-popup-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 24px;
    color: #1e1e1e;
}
.review-popup-subtitle {
    font-family: var(--font-inter);
    font-size: 14px;
    color: #757575;
}
.review-popup-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 16px;
    background: #f3f4f6;
    transition: background 0.15s ease;
}
.review-popup-close:hover {
    background: #e5e7eb;
}
.review-popup-close img {
    width: 16px;
    height: 16px;
}

.review-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.review-field-label {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 14px;
    color: #1e1e1e;
}

.review-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.review-rating-stars {
    display: flex;
    gap: 4px;
}
.review-star-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
}
.review-star-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.review-rating-label {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 13px;
    color: #ffb800;
}

.review-input,
.review-textarea {
    width: 100%;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--font-inter);
    font-size: 14px;
    color: #1e1e1e;
}
.review-input {
    height: 44px;
}
.review-textarea {
    height: 110px;
    resize: vertical;
}
.review-input::placeholder,
.review-textarea::placeholder {
    color: #757575;
}

.review-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 24px 16px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}
.review-upload-icon {
    width: 24px;
    height: 24px;
}
.review-upload-title {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 14px;
    color: #1e1e1e;
}
.review-upload-desc {
    font-family: var(--font-inter);
    font-size: 12px;
    color: #757575;
}

.review-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: #111827;
    border-radius: 8px;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    transition: background 0.15s ease;
}
.review-submit-btn:hover {
    background: #000;
}

@media (max-width: 480px) {
    .review-popup {
        padding: 24px;
    }
}

/* ==========================================================================
   Success Order Page
   ========================================================================== */

.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 17px;
    min-height: 100vh;
    width: 100%;
    padding: 10px;
    background: #f4f4f4;
}

.success-card {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    max-width: 480px;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 16px rgba(0, 0, 0, 0.1);
}

.success-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}
.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 32px;
    background: #ebfdf5;
}
.success-icon img {
    width: 28px;
    height: 28px;
}
.success-title {
    font-family: var(--font-volkhov);
    font-weight: 700;
    font-size: 24px;
    color: #1e1e1e;
    text-align: center;
}
.success-subtitle {
    font-family: var(--font-inter);
    font-size: 15px;
    line-height: 1.45;
    color: #757575;
    text-align: center;
}

.success-divider {
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

.success-summary-label {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #757575;
}
.success-summary-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
}
.success-summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-inter);
    font-size: 14px;
}
.success-summary-row .label {
    color: #757575;
    flex-shrink: 0;
}
.success-summary-row .value {
    font-weight: 600;
    color: #1e1e1e;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.success-summary-row .value.strong {
    font-weight: 700;
}
.success-payment-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.success-payment-badge img {
    width: 16px;
    height: 16px;
}
.success-payment-badge span {
    font-weight: 500;
    color: #1e1e1e;
    font-size: 14px;
}

.success-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}
.success-notice img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}
.success-notice p {
    flex: 1;
    min-width: 0;
    font-family: var(--font-inter);
    font-size: 13px;
    line-height: 1.4;
    color: #757575;
}

.success-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
.success-done-btn {
    width: 100%;
    padding: 14px 16px;
    background: #1e1e1e;
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 15px;
    transition: background 0.15s ease;
}
.success-done-btn:hover {
    background: #000;
}

.success-redirect-note {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 15px;
    color: #1e1e1e;
}

@media (max-width: 480px) {
    .success-card {
        padding: 24px;
        gap: 20px;
    }
    .success-redirect-note {
        font-size: 13px;
        text-align: center;
        padding: 0 12px;
    }
}

/* ==========================================================================
   Cart Page
   ========================================================================== */

.cart-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f6f6f6;
}

.cart-breadcrumb {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #efefef;
}
.cart-breadcrumb-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1120px;
}
.cart-breadcrumb-left {
    display: flex;
    align-items: center;
    gap: 24px;
}
.cart-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 350px;
    max-width: 100%;
    padding: 10px 16px;
    background: #f6f6f6;
    border-radius: 2px;
}
.cart-search-bar input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-inter);
    font-size: 14px;
    color: #1e1e1e;
}
.cart-search-bar input::placeholder {
    color: #757575;
}
.cart-search-bar img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.cart-main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 24px 24px 0;
}
.cart-container {
    width: 100%;
    max-width: 1120px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-bottom: 24px;
}

.cart-row-grid {
    display: grid;
    grid-template-columns: 1fr 110px 130px 130px 90px;
    align-items: center;
    gap: 24px;
}

.cart-table-header {
    position: sticky;
    top: 65px;
    z-index: 20;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.06);
    padding: 18px 24px;
}
.cart-table-header span {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 14px;
    color: #757575;
}
.cart-table-header .cart-col-product {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #333;
    font-weight: 600;
}
.cart-table-header .cart-col-price,
.cart-table-header .cart-col-qty {
    text-align: center;
}

/* Custom checkbox (shared: item rows + select-all) */
.cart-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}
.cart-checkbox input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.cart-checkbox-box {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}
.cart-checkbox-box::after {
    content: "";
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
    opacity: 0;
}
.cart-checkbox input:checked + .cart-checkbox-box {
    background: #000;
    border-color: #000;
}
.cart-checkbox input:checked + .cart-checkbox-box::after {
    opacity: 1;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px 0;
}
.cart-item-card.removing {
    opacity: 0;
    transform: scale(0.98);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.cart-item-row {
    padding: 0 24px;
}
.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.cart-product-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}
.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-product-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.cart-product-name {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 15px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cart-variation {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 2px;
    width: fit-content;
}
.cart-variation span {
    font-family: var(--font-inter);
    font-size: 12px;
    color: #757575;
}
.cart-variation img {
    width: 8px;
    height: 8px;
}

.cart-unit-price {
    text-align: center;
    font-family: var(--font-inter);
    font-size: 15px;
    color: #333;
}

.cart-qty-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.cart-qty-error {
    font-family: var(--font-inter);
    font-size: 11px;
    color: #dc2626;
    min-height: 12px;
    text-align: center;
}

.cart-total-price {
    text-align: center;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 15px;
    color: #000;
}

.cart-actions-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.cart-delete-btn {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 14px;
    color: #333;
}
.cart-delete-btn:hover {
    color: #dd3030;
}
.cart-find-similar {
    font-family: var(--font-inter);
    font-weight: 300;
    font-size: 12px;
    color: #333;
}

.cart-perk-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px 0;
}
.cart-perk-row img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.cart-perk-row span {
    font-family: var(--font-inter);
    font-size: 14px;
}
.cart-voucher-label {
    color: #333;
    cursor: pointer;
}
.cart-voucher-label:hover {
    color: #26b99a;
}
.cart-shipping-text {
    color: #757575;
}
.cart-learn-more {
    color: #26b99a;
    font-weight: 500;
    cursor: pointer;
}

.cart-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 80px 24px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
}
.cart-empty.show {
    display: flex;
}
.cart-empty p {
    font-family: var(--font-inter);
    color: #757575;
    font-size: 15px;
}
.cart-empty a {
    padding: 12px 24px;
    background: #000;
    color: #fff;
    border-radius: 6px;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 14px;
}

.cart-sticky-footer {
    position: sticky;
    bottom: 0;
    z-index: 30;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 24px;
    background: #f6f6f6;
}
.cart-sticky-footer-inner {
    width: 100%;
    max-width: 1120px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 16px;
}

.cart-voucher-platform {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: #fff;
    border-radius: 4px;
    flex-wrap: wrap;
}
.cart-voucher-platform-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cart-voucher-platform-left img {
    width: 18px;
    height: 18px;
}
.cart-voucher-platform-left span {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 14px;
    color: #333;
}
.cart-voucher-platform-action {
    font-family: var(--font-inter);
    font-size: 14px;
    color: #1e1e1e;
    cursor: pointer;
}
.cart-voucher-platform-action:hover {
    color: #26b99a;
}

.cart-checkout-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}
.cart-checkout-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cart-select-all {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-select-all span {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 13px;
    color: #333;
}
.cart-checkout-left button {
    font-family: var(--font-inter);
    font-size: 13px;
    color: #333;
}
.cart-checkout-left button:hover {
    color: #dd3030;
}

.cart-checkout-right {
    display: flex;
    align-items: center;
    gap: 24px;
}
.cart-total-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.cart-total-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.cart-total-line span:first-child {
    font-family: var(--font-inter);
    font-size: 14px;
    color: #333;
}
.cart-total-line span:last-child {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 20px;
    color: #000;
}
.cart-savings-note {
    font-family: var(--font-inter);
    font-size: 12px;
    color: #757575;
}
.cart-checkout-btn {
    flex-shrink: 0;
    padding: 16px 48px;
    background: #000;
    color: #fff;
    border-radius: 5px;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 16px;
    transition: background 0.15s ease;
}
.cart-checkout-btn:hover:not([aria-disabled="true"]) {
    background: #1e1e1e;
}
.cart-checkout-btn[aria-disabled="true"] {
    background: #cecece;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 900px) {
    .cart-row-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .cart-table-header {
        display: none;
    }
    .cart-unit-price,
    .cart-total-price {
        text-align: left;
    }
    .cart-qty-col {
        justify-content: flex-start;
    }
    .cart-actions-col {
        align-items: flex-start;
        flex-direction: row;
        gap: 16px;
    }
    .cart-checkout-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .cart-checkout-right {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .cart-breadcrumb-inner {
        justify-content: flex-start;
    }
    .cart-search-bar {
        display: none;
    }
    .cart-product-image {
        width: 64px;
        height: 64px;
    }
    .cart-checkout-right {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .cart-total-stack {
        align-items: flex-start;
    }
    .cart-checkout-btn {
        padding: 14px 24px;
    }
}

/* ==========================================================================
   Profile Page
   ========================================================================== */

.profile-page {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    min-height: 100vh;
    width: 100%;
    padding: 40px 122px;
}

.profile-sidebar {
    flex-shrink: 0;
    width: 240px;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: #fff;
}

.profile-nav-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 22px;
    color: #333;
}
.profile-nav-group-title img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
a.profile-nav-group-title {
    color: #333;
}
a.profile-nav-group-title:hover,
button.profile-nav-group-title:hover {
    color: #000;
}

.profile-back-link {
    display: none;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding-bottom: 4px;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 15px;
    color: #333;
}
.profile-back-link img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.profile-nav-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.profile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 34px;
}
.profile-nav-link {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 20px;
    color: #333;
    text-align: left;
}
.profile-nav-link:hover {
    color: #000;
}
.profile-nav-link.active {
    font-weight: 700;
}

.profile-main {
    flex: 1;
    min-width: 0;
}

.profile-header {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 48px;
}
.profile-header h1 {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 28px;
    color: #333;
}
.profile-header p {
    font-family: var(--font-inter);
    font-size: 22px;
    color: #757575;
}

.profile-content-split {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.profile-form {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.profile-form-row {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.profile-label {
    flex-shrink: 0;
    width: 160px;
    text-align: right;
    font-family: var(--font-inter);
    font-size: 22px;
    color: #757575;
}
.profile-value {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 22px;
    color: #333;
}
.profile-value-group {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;
}
.profile-value-group span:first-child {
    font-family: var(--font-inter);
    font-size: 22px;
    color: #333;
}
.profile-change-link {
    font-family: var(--font-inter);
    font-size: 20px;
    color: #0055aa;
}
.profile-change-link:hover {
    text-decoration: underline;
}

.profile-input {
    width: 100%;
    max-width: 518px;
    padding: 16px;
    border: 1.6px solid #ccc;
    border-radius: 3px;
    font-family: var(--font-inter);
    font-size: 22px;
    color: #333;
    outline: none;
}
.profile-input:focus {
    border-color: #1e1e1e;
}

.profile-verified-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    background: rgba(38, 185, 154, 0.08);
    border-radius: 160px;
    flex-shrink: 0;
}
.profile-verified-badge img {
    width: 16px;
    height: 16px;
}
.profile-verified-badge span {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 16px;
    color: #26b99a;
}

.profile-radio-group {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}
.profile-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.profile-radio input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.profile-radio-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.6px solid #ccc;
    flex-shrink: 0;
    position: relative;
}
.profile-radio input:checked + .profile-radio-indicator {
    border-color: #000;
}
.profile-radio input:checked + .profile-radio-indicator::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: #000;
}
.profile-radio span:last-child {
    font-family: var(--font-inter);
    font-size: 22px;
    color: #333;
}

.profile-submit-row {
    display: flex;
    align-items: center;
    gap: 25px;
}
.profile-save-btn {
    padding: 19px 44px;
    background: #000;
    color: #fff;
    border-radius: 3px;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 22px;
    transition: background 0.15s ease;
}
.profile-save-btn:hover {
    background: #1e1e1e;
}

.profile-divider-vertical {
    width: 1px;
    align-self: stretch;
    background: #efefef;
}

.profile-avatar-column {
    flex-shrink: 0;
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding-top: 32px;
}
.profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 176px;
    height: 176px;
    border-radius: 88px;
    background: #4a5568;
    color: #fff;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 76px;
}
.profile-select-image-btn {
    padding: 13px 26px;
    background: #fff;
    border: 1.6px solid #ccc;
    border-radius: 3px;
    font-family: var(--font-inter);
    font-size: 20px;
    color: #333;
    transition: border-color 0.15s ease;
}
.profile-select-image-btn:hover {
    border-color: #1e1e1e;
}
.profile-helper-text {
    font-family: var(--font-inter);
    font-size: 19px;
    color: #757575;
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 1300px) {
    .profile-page {
        padding: 40px 48px;
    }
}

@media (max-width: 1024px) {
    .profile-content-split {
        flex-direction: column;
    }
    .profile-divider-vertical {
        width: 100%;
        height: 1px;
    }
    .profile-avatar-column {
        width: 100%;
        padding-top: 0;
    }
}

@media (max-width: 860px) {
    .profile-page {
        flex-direction: column;
        align-items: stretch;
        padding: 24px 24px 40px;
    }
    .profile-back-link {
        display: flex;
    }
    .profile-sidebar {
        display: none;
    }
}

@media (max-width: 480px) {
    .profile-page {
        padding: 20px 16px 32px;
    }
    .profile-form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .profile-label {
        width: auto;
        text-align: left;
    }
    .profile-header h1 {
        font-size: 24px;
    }
    .profile-header p {
        font-size: 16px;
    }
}

/* ==========================================================================
   Page Menu (mobile account menu, reached via the profile pages' back link)
   ========================================================================== */

.page-menu {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 480px;
    margin: 0 auto;
    background: #fdfdfd;
    padding: 8px 20px 120px;
}
.page-menu-title-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}
.page-menu-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 20px;
    color: #1e1e1e;
}

.page-menu-profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.05);
}
.page-menu-avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 32px;
    background: #024c3e;
    color: #fff;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 32px;
}
.page-menu-user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.page-menu-user-name {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 18px;
    color: #1e1e1e;
}
.page-menu-user-email {
    font-family: var(--font-inter);
    font-size: 13px;
    color: #616161;
}

.page-menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0 8px;
}
.page-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 4px 0;
    color: #1e1e1e;
    text-align: left;
}
.page-menu-icon-box {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f5f5f5;
}
.page-menu-icon-box img {
    width: 20px;
    height: 20px;
}
.page-menu-icon-box-danger {
    background: #fee2e2;
}
.page-menu-item-label {
    flex: 1;
    min-width: 0;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 16px;
    color: #1e1e1e;
}
.page-menu-chevron {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}
.page-menu-group.open .page-menu-chevron {
    transform: rotate(180deg);
}
.page-menu-item-logout .page-menu-item-label {
    font-weight: 500;
    color: #ef4444;
}

.page-menu-subpanel {
    display: none;
    flex-direction: column;
    gap: 14px;
    margin-left: 52px;
    padding: 18px 20px;
    background: #f6f6f6;
    border-radius: 6px;
}
.page-menu-group.open .page-menu-subpanel {
    display: flex;
}
.page-menu-sublink {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 16px;
    color: #1e1e1e;
}
.page-menu-sublink.active {
    font-weight: 700;
}

/* ==========================================================================
   Notification Order Page
   ========================================================================== */

/* This page has a nav bar above it (unlike profile.html), so the sidebar
   shouldn't independently stick to the viewport top and fight the nav bar
   for the same position. */
.notification-order-page .profile-sidebar {
    position: static;
}

.notif-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.notif-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 24px;
    border-bottom: 1px solid #efefef;
    flex-wrap: wrap;
}
.notif-card-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 18px;
    color: #111;
}
.notif-card-subtitle {
    font-family: var(--font-inter);
    font-size: 14px;
    color: #757575;
}

.notif-mark-all {
    padding: 24px;
    border-bottom: 1px solid #efefef;
    font-family: var(--font-inter);
    font-size: 14px;
    color: #757575;
    text-align: left;
    transition: color 0.15s ease;
}
.notif-mark-all:hover {
    color: #1a1a1a;
}

.notif-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid #efefef;
}
.notif-row:last-child {
    border-bottom: none;
}
.notif-row.is-read {
    background: #fafafa;
}

.notif-thumbnail {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}
.notif-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notif-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.notif-title {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 16px;
    color: #111;
}
.notif-desc {
    font-family: var(--font-inter);
    font-size: 14px;
    line-height: 1.4;
    color: #757575;
}
.notif-time {
    font-family: var(--font-inter);
    font-size: 12px;
    color: #757575;
}

.notif-action-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border: 1px solid #efefef;
    border-radius: 4px;
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 13px;
    color: #1a1a1a;
    white-space: nowrap;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}
.notif-action-btn:hover {
    border-color: #ccc;
    background: #fafafa;
}

@media (max-width: 640px) {
    .notif-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    .notif-content {
        flex-basis: calc(100% - 84px);
    }
    .notif-action-btn {
        margin-left: 84px;
    }
}

/* ==========================================================================
   My Purchase Page
   ========================================================================== */

.my-purchase-page .profile-sidebar {
    position: static;
}

.purchase-tablist {
    display: flex;
    align-items: center;
    overflow-x: auto;
    background: #fff;
    box-shadow: 0 2px 2.25px rgba(0, 0, 0, 0.25);
    border-radius: 4px 4px 0 0;
}
.purchase-tab {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    min-width: 130px;
    font-family: var(--font-inter);
    font-size: 16px;
    color: #000;
}
.purchase-tab-underline {
    height: 2px;
    width: 100%;
    background: transparent;
}
.purchase-tab.active .purchase-tab-underline {
    background: #000;
}
.purchase-tab.active {
    font-weight: 500;
}

.purchase-orders {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 40px;
}

.order-card {
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 4px;
    overflow: hidden;
}

.review-reply {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f7f7f7;
    border-left: 3px solid #1e1e1e;
    border-radius: 6px;
}
.review-reply-label {
    font-family: var(--font-inter);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b6b6b;
}
.review-reply-text {
    font-family: var(--font-inter);
    font-size: 13px;
    color: #3a3a3a;
    margin-top: 4px;
    line-height: 1.5;
}
.order-refund-banner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 16px 12px;
    padding: 10px 14px;
    border-radius: 10px;
    border-left: 3px solid;
}
.order-refund-headline {
    font-family: var(--font-inter);
    font-size: 13px;
    font-weight: 600;
}
.order-refund-meta {
    font-family: var(--font-inter);
    font-size: 12px;
    color: #6b6b6b;
}
.order-refund-banner-pending {
    background: #fff8e6;
    border-left-color: #e0a11b;
}
.order-refund-banner-pending .order-refund-headline {
    color: #8a5d00;
}
.order-refund-banner-rejected {
    background: #fdecec;
    border-left-color: #d64545;
}
.order-refund-banner-rejected .order-refund-headline {
    color: #a12626;
}
.order-refund-banner-refunded {
    background: #eaf7ee;
    border-left-color: #2f9e5a;
}
.order-refund-banner-refunded .order-refund-headline {
    color: #1d6b3c;
}
.order-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}
.order-detail-refund {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 3px solid #cfcfcf;
    background: #f7f7f7;
}
.order-detail-refund-headline {
    font-family: var(--font-inter);
    font-size: 14px;
    font-weight: 700;
    color: #1e1e1e;
}
.order-detail-refund-line {
    font-family: var(--font-inter);
    font-size: 13px;
    color: #3a3a3a;
    margin-top: 4px;
}
.order-detail-steps {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.order-detail-step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.order-detail-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d9d9d9;
    margin-top: 5px;
    flex-shrink: 0;
}
.order-detail-step-line {
    width: 1px;
    background: #e5e5e5;
    margin-left: 4px;
    min-height: 18px;
}
.order-detail-step.is-done .order-detail-step-dot {
    background: #2f9e5a;
}
.order-detail-step.is-current .order-detail-step-dot {
    background: #1e1e1e;
    box-shadow: 0 0 0 3px rgba(30, 30, 30, 0.12);
}
.order-detail-step-label {
    font-family: var(--font-inter);
    font-size: 13px;
    color: #6b6b6b;
    padding-bottom: 10px;
}
.order-detail-step.is-current .order-detail-step-label {
    color: #1e1e1e;
    font-weight: 600;
}
/* ===== Live chat widget ===== */
.chat-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    font-family: var(--font-inter);
}
.chat-launcher {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #1e1e1e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    transition: transform 0.15s ease;
}
.chat-launcher:hover {
    transform: scale(1.06);
}
.chat-launcher-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: #d64545;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* display:flex on .chat-panel beats the UA stylesheet's [hidden] rule, which
   is exactly why the panel could never close — the attribute was set but the
   class kept it visible. The attribute selector has to win explicitly. */
.chat-panel[hidden] {
    display: none !important;
}
.chat-panel {
    position: absolute;
    right: 0;
    bottom: 64px;
    width: 340px;
    max-width: calc(100vw - 44px);
    height: 440px;
    max-height: 70vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 16px;
    background: #1e1e1e;
    color: #fff;
}
.chat-panel-title {
    font-size: 15px;
    font-weight: 700;
}
.chat-panel-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
}
.chat-panel-close {
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fafafa;
}
.chat-empty {
    font-size: 13px;
    color: #8a8a8a;
    text-align: center;
    margin: auto 12px;
}
.chat-bubble {
    max-width: 78%;
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
    white-space: pre-line;
}
.chat-bubble-mine {
    align-self: flex-end;
    background: #1e1e1e;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-bubble-admin {
    align-self: flex-start;
    background: #fff;
    color: #1e1e1e;
    border: 1px solid #ececec;
    border-bottom-left-radius: 4px;
}
.chat-attach {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e2e2e2;
    background: #fff;
    color: #6b6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.chat-attach:hover {
    color: #1e1e1e;
    border-color: #1e1e1e;
}
.chat-attach-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid #eee;
    background: #fff;
}
.chat-attach-preview img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}
.chat-attach-preview button {
    border: none;
    background: #f1f1f1;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: #555;
}
.chat-bubble-image {
    display: block;
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 4px;
    cursor: zoom-in;
}
.chat-compose {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fff;
}
.chat-input {
    flex: 1;
    border: 1px solid #e2e2e2;
    border-radius: 20px;
    padding: 9px 15px;
    font-size: 14px;
    font-family: var(--font-inter);
    outline: none;
}
.chat-input:focus {
    border-color: #1e1e1e;
}
.chat-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #1e1e1e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .chat-panel {
        height: 60vh;
    }
}
.order-card-clickable {
    cursor: pointer;
}
.order-card-clickable:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.order-detail-popup {
    max-height: 86vh;
    overflow-y: auto;
}
.order-detail-loading {
    font-family: var(--font-inter);
    font-size: 14px;
    color: #6b6b6b;
    padding: 24px 0;
    text-align: center;
}
.order-detail-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 4px;
}
.order-detail-value {
    font-family: var(--font-inter);
    font-size: 14px;
    font-weight: 600;
    color: #1e1e1e;
}
.order-detail-tracking {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 14px;
}
.order-detail-tracking-number {
    font-family: var(--font-inter);
    font-size: 15px;
    font-weight: 700;
    color: #1e1e1e;
    letter-spacing: 0.02em;
    word-break: break-all;
}
.order-detail-tracking-courier {
    font-family: var(--font-inter);
    font-size: 12px;
    color: #6b6b6b;
    margin-top: 2px;
}
.order-detail-section {
    margin-top: 18px;
}
.order-detail-items {
    margin-top: 8px;
}
.order-detail-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.order-detail-item:last-child {
    border-bottom: none;
}
.order-detail-item-name {
    font-family: var(--font-inter);
    font-size: 14px;
    color: #1e1e1e;
}
.order-detail-item-meta {
    font-family: var(--font-inter);
    font-size: 12px;
    color: #6b6b6b;
}
.order-detail-item-price {
    font-family: var(--font-inter);
    font-size: 14px;
    font-weight: 600;
    color: #1e1e1e;
    white-space: nowrap;
}
.order-detail-totals {
    margin-top: 8px;
}
.order-detail-total-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-inter);
    font-size: 14px;
    color: #3a3a3a;
    padding: 4px 0;
}
.order-detail-total-row-final {
    font-weight: 700;
    color: #1e1e1e;
    border-top: 1px solid #e5e5e5;
    margin-top: 6px;
    padding-top: 10px;
}
.order-detail-address {
    font-family: var(--font-inter);
    font-size: 14px;
    color: #3a3a3a;
    line-height: 1.6;
    white-space: pre-line;
    margin-top: 6px;
}
.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #efefef;
    flex-wrap: wrap;
}
.order-shop-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.order-star-badge {
    background: #000;
    color: #fff;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
}
.order-shop-name {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 14px;
    color: #333;
}
.order-chat-btn,
.order-viewshop-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 4px;
    font-family: var(--font-inter);
    font-size: 12px;
}
.order-chat-btn {
    background: rgba(38, 185, 154, 0.06);
    border: 1px solid #26b99a;
    color: #26b99a;
    font-weight: 600;
}
.order-viewshop-btn {
    border: 1px solid #e0e0e0;
    color: #757575;
}
.order-chat-btn img,
.order-viewshop-btn img {
    width: 14px;
    height: 14px;
}

.order-status-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.order-status-highlight img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.order-status-message {
    font-family: var(--font-inter);
    font-size: 13px;
    color: #00bfa5;
}
.order-status-divider {
    width: 1px;
    height: 12px;
    background: #d9d9d9;
    flex-shrink: 0;
}
.order-status-label {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 14px;
    color: #000;
    white-space: nowrap;
}

.order-product-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #efefef;
}
.order-product-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}
.order-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.order-product-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.order-product-name {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 16px;
    color: #333;
}
.order-product-variation {
    font-family: var(--font-inter);
    font-size: 13px;
    color: #757575;
}
.order-product-qty {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 13px;
    color: #333;
}
.order-price-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}
.order-price-old {
    font-family: var(--font-inter);
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}
.order-price-now {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 16px;
    color: #000;
}

.order-total-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px;
}
.order-total-label {
    font-family: var(--font-inter);
    font-size: 14px;
    color: #333;
}
.order-total-value {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 20px;
    color: #000;
}

.order-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: #eefbf8;
    flex-wrap: wrap;
}
.order-note {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.order-note img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.order-note span {
    font-family: var(--font-inter);
    font-size: 13px;
    color: #00bfa5;
}

.order-button-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.order-btn {
    padding: 10px 16px;
    border-radius: 4px;
    font-family: var(--font-inter);
    font-size: 14px;
    white-space: nowrap;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}
.order-btn-disabled {
    border: 1px solid #e0e0e0;
    color: #999;
    font-weight: 600;
    cursor: not-allowed;
}
.order-btn-outline {
    border: 1px solid #e0e0e0;
    color: #757575;
    background: #fff;
}
.order-btn-outline:hover {
    border-color: #ccc;
}
.order-btn-outline-dark {
    border: 1px solid #757575;
    color: #333;
    font-weight: 600;
    background: #fff;
}
.order-btn-outline-dark:hover {
    background: #f5f5f5;
}
.order-btn-active {
    background: #000;
    color: #fff;
    font-weight: 600;
    border: 1px solid #000;
}
.order-btn-active:hover {
    background: #1e1e1e;
}

@media (max-width: 640px) {
    .order-actions-row {
        flex-direction: column;
        align-items: stretch;
    }
    .order-button-group {
        justify-content: flex-start;
    }
    .order-product-row {
        flex-wrap: wrap;
    }
    .order-price-section {
        margin-left: 96px;
    }
}

/* ==========================================================================
   Notification Page (Order Updates + Promos panels)
   ========================================================================== */

.notification-page .profile-sidebar {
    position: static;
}

.notif-panel {
    display: none;
}
.notif-panel.active {
    display: flex;
    flex-direction: column;
}

.promo-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}
.promo-icon img {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Account Settings Pages (Banks & Cards, Addresses, Change Password,
   Notification Setting, Privacy Settings, Voucher)
   ========================================================================== */

.banks-cards-page .profile-sidebar,
.addresses-page .profile-sidebar,
.change-password-page .profile-sidebar,
.notification-settings-page .profile-sidebar,
.privacy-settings-page .profile-sidebar,
.voucher-page .profile-sidebar {
    position: static;
}

.settings-header {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 48px;
}
.settings-header-split {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.settings-add-btn {
    flex-shrink: 0;
    height: 50px;
    padding: 0 32px;
    background: #000;
    color: #fff;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 15px;
    border-radius: 2px;
    transition: background 0.15s ease;
}
.settings-add-btn:hover {
    background: #1e1e1e;
}

/* ---------- Banks & Cards ---------- */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.card-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border: 1px solid #efefef;
    border-radius: 8px;
}
.card-list-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-list-icon img {
    width: 22px;
    height: 22px;
    filter: invert(1);
}
.card-list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.card-list-name {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 18px;
    color: #333;
}
.card-list-number {
    font-family: var(--font-inter);
    font-size: 15px;
    color: #757575;
    letter-spacing: 0.5px;
}
.card-list-badge {
    flex-shrink: 0;
    padding: 6px 13px;
    background: rgba(38, 185, 154, 0.08);
    color: #26b99a;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 13px;
    border-radius: 160px;
}
.card-list-setdefault {
    flex-shrink: 0;
    padding: 10px 16px;
    border: 1px solid #000;
    border-radius: 4px;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 13px;
    color: #333;
    transition: background 0.15s ease;
}
.card-list-setdefault:hover {
    background: #f7f7f7;
}
.card-list-remove {
    flex-shrink: 0;
    font-family: var(--font-inter);
    font-size: 14px;
    color: #f42020;
}
.card-list-remove:hover {
    text-decoration: underline;
}
.card-list-empty {
    font-family: var(--font-inter);
    font-size: 16px;
    color: #757575;
    text-align: center;
    padding: 48px 0;
}

.add-card-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.add-card-row {
    display: flex;
    gap: 16px;
}
.add-card-row .checkout-field {
    flex: 1;
}

/* ---------- Addresses ---------- */
.address-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.address-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.address-list-info {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.address-list-name-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.address-list-name {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 18px;
    color: #333;
}
.address-list-phone {
    font-family: var(--font-inter);
    font-weight: 200;
    font-size: 15px;
    color: #333;
}
.address-badge-default {
    padding: 4px 11px;
    background: rgba(38, 185, 154, 0.08);
    color: #26b99a;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 12px;
    border-radius: 160px;
}
.address-list-text {
    font-family: var(--font-inter);
    font-size: 18px;
    color: #757575;
}
.address-list-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.address-btn-outline {
    height: 50px;
    padding: 0 24px;
    border: 1px solid #000;
    border-radius: 2px;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 15px;
    color: #000;
    transition: background 0.15s ease;
}
.address-btn-outline:hover {
    background: #f7f7f7;
}
.address-btn-primary {
    height: 50px;
    padding: 0 24px;
    background: #000;
    color: #fff;
    border-radius: 2px;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 15px;
    transition: background 0.15s ease;
}
.address-btn-primary:hover {
    background: #1e1e1e;
}
.address-btn-primary:disabled {
    background: #ccc;
    cursor: default;
}

/* ---------- Change Password ---------- */
.password-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 420px;
}
.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.password-input-wrap input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-family: var(--font-inter);
    font-size: 15px;
    color: #333;
    outline: none;
}
.password-input-wrap input:focus {
    border-color: #1e1e1e;
}
.password-toggle-eye {
    position: absolute;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.password-toggle-eye img {
    width: 20px;
    height: 16px;
}
.password-form .checkout-field label {
    font-size: 16px;
    color: #1e1e1e;
}
.password-submit-btn {
    height: 54px;
    background: #1e1e1e;
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 16px;
    transition: background 0.15s ease;
}
.password-submit-btn:hover {
    background: #000;
}

/* ---------- Notification Setting ---------- */
.toggle-list {
    display: flex;
    flex-direction: column;
}
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 24px 0;
    border-bottom: 1px solid #efefef;
}
.toggle-row:last-child {
    border-bottom: none;
}
.toggle-row-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 530px;
}
.toggle-row-title {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 18px;
    color: #333;
}
.toggle-row-desc {
    font-family: var(--font-inter);
    font-size: 15px;
    color: #757575;
}
.toggle-switch {
    flex-shrink: 0;
    position: relative;
    width: 52px;
    height: 28px;
    cursor: pointer;
}
.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.toggle-switch-track {
    position: absolute;
    inset: 0;
    background: #e8e8e8;
    border-radius: 30px;
    transition: background 0.15s ease;
}
.toggle-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.17);
    transition: transform 0.15s ease;
}
.toggle-switch input:checked + .toggle-switch-track {
    background: #000;
}
.toggle-switch input:checked + .toggle-switch-track::after {
    transform: translateX(24px);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}
.toggle-switch input:disabled + .toggle-switch-track {
    cursor: not-allowed;
    opacity: 0.6;
}
.toggle-switch:has(input:disabled) {
    cursor: not-allowed;
}

/* ---------- Privacy Settings ---------- */
.privacy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.privacy-row-title {
    font-family: var(--font-inter);
    font-size: 22px;
    color: #333;
}
.btn-danger {
    height: 50px;
    padding: 0 32px;
    background: #f42020;
    color: #fff;
    border-radius: 2px;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 15px;
    transition: background 0.15s ease;
}
.btn-danger:hover {
    background: #d21414;
}

/* ---------- My Voucher ---------- */
.voucher-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.voucher-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border: 1px dashed #ccc;
    border-radius: 8px;
}
.voucher-card.is-used {
    opacity: 0.5;
}
.voucher-badge-discount {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    padding: 8px;
}
.voucher-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.voucher-title {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 18px;
    color: #333;
}
.voucher-desc {
    font-family: var(--font-inter);
    font-size: 14px;
    color: #757575;
}
.voucher-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-inter);
    font-size: 13px;
    color: #26b99a;
}
.voucher-code {
    padding: 3px 10px;
    border: 1px dashed #26b99a;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.voucher-expiry {
    color: #757575;
}
.voucher-use-btn {
    flex-shrink: 0;
    height: 44px;
    padding: 12px 28px;
    border: 1px solid #000;
    border-radius: 4px;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 14px;
    color: #333;
    transition: background 0.15s ease;
}
.voucher-use-btn:hover {
    background: #f7f7f7;
}

@media (max-width: 720px) {
    .settings-header-split {
        flex-direction: column;
        align-items: flex-start;
    }
    .address-list-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .address-list-actions {
        width: 100%;
    }
    .card-list-item {
        flex-wrap: wrap;
    }
    .toggle-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .voucher-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   POS (Point of Sale)
   ========================================================================== */

.pos-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: #f8fafc;
}

/*
 * layouts.ecommerce.app wraps @yield('content') in .page-wrapper >
 * .main-content > main.content — plain unstyled block divs on this
 * stylesheet (they're only given flex/height rules by the admin
 * Tailwind build). .pos-topbar/.pos-main need to reach body's 100vh
 * through that chain for their own flex-basis + overflow rules to mean
 * anything, so it's re-established here, scoped to this page only.
 */
body.pos-page .page-wrapper,
body.pos-page .main-content,
body.pos-page .content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.pos-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 76px;
    padding: 0 32px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.pos-topbar-brand img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.pos-topbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
}

.pos-nav-tab {
    padding: 10px 22px;
    border-radius: 8px;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
}

.pos-nav-tab.active {
    background: #1e1e1e;
    color: #ffffff;
}

.pos-topbar-user-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 6px 8px;
    border-radius: 10px;
}

.pos-topbar-user-btn:hover {
    background: #f8fafc;
}

.pos-topbar-chevron {
    width: 10px;
    height: 5px;
    opacity: 0.5;
}

.pos-topbar-user-info {
    text-align: right;
}

.pos-topbar-user-name {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}

.pos-topbar-user-role {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: #b8860b;
}

.pos-topbar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
}

.pos-topbar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pos-main {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-height: 0;
}

.pos-catalog {
    flex: 1;
    min-width: 0;
    padding: 28px 32px;
    overflow-y: auto;
}

.pos-toolbar {
    position: sticky;
    top: -30px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: -28px -32px 24px;
    padding: 28px 32px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #eef0f2;
}

.pos-category-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pos-pill {
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 13px;
    color: #334155;
    white-space: nowrap;
}

.pos-pill.active {
    background: #1e1e1e;
    border-color: #1e1e1e;
    color: #ffffff;
}

.pos-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 260px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.pos-search input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-inter);
    font-size: 14px;
    color: #0f172a;
    background: transparent;
}

.pos-search input::placeholder {
    color: #b3b3b3;
}

.pos-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
}

.pos-search button img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.pos-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pos-product-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #eef0f2;
    border-radius: 14px;
    overflow: hidden;
}

.pos-product-card[hidden] {
    display: none;
}

.pos-product-image {
    height: 180px;
    background: #0f0f0f;
}

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

.pos-product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pos-product-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.pos-product-name {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
}

.pos-product-price {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 15px;
    color: #b8860b;
    white-space: nowrap;
}

.pos-product-size {
    font-family: var(--font-inter);
    font-size: 13px;
    color: #94a3b8;
}

.pos-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.pos-product-stock {
    font-family: var(--font-inter);
    font-size: 12px;
    color: #94a3b8;
}

.pos-add-to-cart {
    display: flex;
    align-items: center;
    gap: 0px;
    padding: 9px 14px;
    border-radius: 8px;
    background: #1e1e1e;
    border: none;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-transform: uppercase;
}

.pos-add-to-cart img {
    width: 11px;
    height: 11px;
    filter: invert(1);
}

.pos-add-to-cart:disabled {
    background: #e2e8f0;
    color: #94a3b8;
}

.pos-add-to-cart:disabled img {
    filter: none;
    opacity: 0.4;
}

.pos-product-card.is-out-of-stock .pos-product-image {
    opacity: 0.55;
}

.pos-product-stock-out {
    color: #ef4444;
    font-weight: 600;
}

.pos-price-unavailable {
    color: #94a3b8;
    font-weight: 500;
}

.pos-product-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 0;
    color: #94a3b8;
    font-family: var(--font-inter);
    font-size: 14px;
}

.pos-order-empty {
    text-align: center;
    padding: 32px 0;
    color: #94a3b8;
    font-family: var(--font-inter);
    font-size: 13px;
}

.pos-grid-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 13px;
    color: #94a3b8;
}

.pos-grid-loader.is-done {
    color: #16a34a;
}

.pos-grid-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    border-top-color: #1e1e1e;
    animation: pos-spin 0.7s linear infinite;
}

@keyframes pos-spin {
    to {
        transform: rotate(360deg);
    }
}

.pos-order-panel {
    position: sticky;
    top: 0;
    flex-shrink: 0;
    width: 440px;
    height: 100%;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    padding: 24px 28px 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pos-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pos-panel-header h2 {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 20px;
    color: #0f172a;
}

.pos-panel-header-sm h3 {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #b8860b;
}

.pos-btn-outline {
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 12px;
    color: #334155;
}

.pos-order-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eef0f2;
}

.pos-order-item {
    display: flex;
    gap: 12px;
}

.pos-order-item-image {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #0f0f0f;
    flex-shrink: 0;
}

.pos-order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pos-order-item-body {
    flex: 1;
    min-width: 0;
}

.pos-order-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.pos-order-item-name {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}

.pos-order-item-size {
    font-family: var(--font-inter);
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.pos-order-item-price {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 13px;
    color: #b8860b;
    white-space: nowrap;
}

.pos-order-item-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.pos-stepper-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: none;
    background: #1e1e1e;
    color: #ffffff;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

.pos-panel-section {
    padding-top: 4px;
    border-bottom: 1px solid #eef0f2;
    padding-bottom: 20px;
}

.pos-panel-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pos-section-label {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #b8860b;
    margin-bottom: 14px;
}

.pos-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.pos-payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.pos-payment-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pos-radio-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    position: relative;
}

.pos-payment-option input:checked + .pos-radio-dot {
    border-color: #1e1e1e;
}

.pos-payment-option input:checked + .pos-radio-dot::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #1e1e1e;
}

.pos-payment-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pos-payment-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}

.pos-payment-desc {
    font-family: var(--font-inter);
    font-size: 12px;
    color: #94a3b8;
}

.pos-payment-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #475569;
}

.pos-payment-icon img {
    width: 20px;
    height: 20px;
}

.pos-vip-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.pos-vip-input img {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

.pos-vip-input input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-inter);
    font-size: 13px;
    color: #0f172a;
}

.pos-badge-verified {
    padding: 4px 12px;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 11px;
}

.pos-badge-verified.is-hidden {
    display: none;
}

.pos-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-inter);
    font-size: 13px;
    color: #64748b;
    padding: 6px 0;
}

.pos-summary-discount span:last-child {
    color: #16a34a;
    font-weight: 600;
}

.pos-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid #eef0f2;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
}

.pos-summary-total span:last-child {
    font-size: 24px;
    color: #b8860b;
}

.pos-checkout-btn {
    width: 100%;
    margin-top: 18px;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: #1e1e1e;
    color: #ffffff;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 14px;
}

/* Narrower desktop / tablet landscape (e.g. iPad 1024px landscape) — keep
   the split-pane cashier layout, just give the catalog more room. */
@media (max-width: 1024px) {
    .pos-order-panel {
        width: 340px;
        padding: 20px 20px 28px;
    }
    .pos-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet portrait and smaller (iPad mini 768px and below) — the fixed-width
   side panel no longer fits comfortably next to a usable product grid, so
   stack the cart under the catalog and let the page scroll normally instead
   of each pane scrolling independently. */
@media (max-width: 860px) {
    .pos-page {
        height: auto;
        overflow: visible;
    }
    .pos-main {
        flex-direction: column;
    }
    .pos-catalog {
        overflow-y: visible;
    }
    .pos-order-panel {
        position: static;
        width: 100%;
        height: auto;
        padding: 24px 28px 32px;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    .pos-catalog {
        padding: 24px 20px;
    }
    .pos-toolbar {
        margin: -24px -20px 20px;
        padding: 24px 20px 14px;
    }
    .pos-pill {
        padding: 8px 14px;
        font-size: 12px;
    }
    .pos-search {
        min-width: 180px;
    }
}

@media (max-width: 640px) {
    .pos-topbar {
        padding: 0 16px;
    }
    .pos-topbar-user-info {
        display: none;
    }
    .pos-catalog {
        padding: 20px 16px;
    }
    .pos-toolbar {
        margin: -20px -16px 20px;
        padding: 20px 16px 14px;
    }
    .pos-product-grid {
        grid-template-columns: 1fr;
    }
    .pos-order-panel {
        padding: 20px 16px 28px;
    }
}

/* ==========================================================================
   POS — Payment Popups (QRIS / Cash / Card)
   ========================================================================== */

.pos-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 7, 6, 0.72);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.pos-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.pos-popup-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    background: #18160f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: scale(0.94);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pos-popup-overlay.show .pos-popup-card {
    transform: scale(1);
}

.pos-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
}

.pos-popup-header {
    padding-right: 32px;
}

.pos-popup-eyebrow {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #cba876;
    margin-bottom: 4px;
}

.pos-popup-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 20px;
    color: #f5f2ec;
}

.pos-popup-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 -28px;
}

.pos-popup-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pos-popup-label {
    font-family: var(--font-inter);
    font-size: 13px;
    color: #9c968a;
}

.pos-popup-label-center {
    text-align: center;
}

.pos-popup-label-caps {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    font-size: 11px;
    color: #cba876;
}

.pos-popup-inline-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pos-popup-inline-amount {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 18px;
    color: #f5f2ec;
}

.pos-popup-cta {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: none;
    background: #cba876;
    color: #1a1613;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pos-popup-cta:disabled {
    opacity: 0.7;
}

/* --- QRIS --- */

.pos-qris-amount {
    text-align: center;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 30px;
    color: #cba876;
    margin: 2px 0 6px;
}

.pos-qris-code {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    padding: 24px;
    background: #f5f2ec;
    border-radius: 14px;
}

.pos-qris-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-family: var(--font-inter);
    font-size: 13px;
    color: #9c968a;
}

.pos-qris-timer span {
    font-weight: 700;
    color: #f5f2ec;
}

/* --- Cash --- */

.pos-cash-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #141210;
    border: 1px solid #cba876;
}

.pos-cash-input-prefix {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 18px;
    color: #f5f2ec;
}

.pos-cash-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 18px;
    color: #f5f2ec;
}

.pos-cash-edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #cba876;
    flex-shrink: 0;
}

.pos-cash-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pos-cash-quick-btn {
    padding: 12px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 13px;
    color: #d8d3c9;
}

.pos-cash-quick-btn.active {
    background: rgba(203, 168, 118, 0.14);
    border-color: #cba876;
    color: #cba876;
}

.pos-cash-exact-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 13px;
    color: #d8d3c9;
}

.pos-cash-change {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.4);
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 14px;
    color: #4ade80;
}

/* --- Credit / Debit Card --- */

.pos-card-networks-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.pos-card-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-card-badge {
    padding: 4px 10px;
    border-radius: 5px;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.03em;
    border: 1px solid currentColor;
}

.pos-card-badge-visa {
    color: #7ea6ff;
}

.pos-card-badge-mastercard {
    color: #ff6b6b;
}

.pos-card-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #141210;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cba876;
}

.pos-card-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: #f5f2ec;
}

.pos-card-text-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    background: #141210;
    border: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 14px;
    color: #f5f2ec;
}

.pos-card-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-inter);
    font-size: 12px;
    color: #9c968a;
}

.pos-card-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cba876;
    flex-shrink: 0;
}

/* --- Charge confirmation --- */

.pos-popup-confirm-actions {
    display: flex;
    gap: 12px;
}

.pos-popup-confirm-actions .pos-popup-cta {
    flex: 1;
}

.pos-popup-cancel {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    color: #d8d3c9;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* --- Completed purchase --- */

.pos-popup-header-center {
    text-align: center;
    padding-right: 0;
}

.pos-popup-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(203, 168, 118, 0.14);
    color: #cba876;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pos-completed-amount {
    text-align: center;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 32px;
    color: #cba876;
    margin: 2px 0 4px;
}

.pos-completed-meta {
    text-align: center;
    font-family: var(--font-inter);
    font-size: 13px;
    color: #9c968a;
    margin: 0 0 4px;
}

/* --- Toasts (modern alert() replacement) --- */

.pos-toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.pos-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 10px;
    background: #1e1e1e;
    color: #f5f2ec;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border-left: 3px solid #f59e0b;
    opacity: 0;
    transform: translateY(-12px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
    pointer-events: auto;
}

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

.pos-toast svg {
    flex-shrink: 0;
    color: #f59e0b;
}

/* ==========================================================================
   POS — Printable receipt (struk)
   ========================================================================== */

.pos-receipt {
    display: none;
}

/*
 * CSS @page can't express "80mm wide, height auto-fit-to-content" — Chrome
 * only accepts size as either two explicit lengths or the bare `auto`
 * keyword, not a mix (`size: 80mm auto` silently falls back to the default
 * Letter page). So the real content height gets measured in JS instead: this
 * class renders .pos-receipt off-screen with the exact print styling applied
 * (see @media print below) so offsetHeight is accurate, then that height is
 * injected as an explicit @page size right before window.print().
 */
.pos-receipt-measuring {
    display: block !important;
    position: fixed;
    top: -200vh;
    left: -200vh;
    visibility: hidden;
    width: 80mm;
    padding: 6mm;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
}

.pos-receipt-header {
    text-align: center;
    margin-bottom: 10px;
}

.pos-receipt-brand {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.05em;
    margin: 0 0 2px;
}

.pos-receipt-header p {
    margin: 2px 0;
}

.pos-receipt-divider {
    border-top: 1px dashed #000000;
    margin: 8px 0;
}

.pos-receipt-item {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 8px;
    margin-bottom: 4px;
}

.pos-receipt-item-name {
    grid-column: 1 / -1;
    font-weight: 700;
}

.pos-receipt-item-qty {
    color: #333333;
}

.pos-receipt-item-amount {
    text-align: right;
}

.pos-receipt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3px 0;
}

.pos-receipt-total {
    font-weight: 700;
    font-size: 14px;
}

.pos-receipt-footer {
    text-align: center;
    margin-top: 12px;
}

.pos-receipt-footer p {
    margin: 2px 0;
}

@media print {
    /*
     * "Print Struk" is clicked from inside the still-open completed-purchase
     * popup, so that overlay is visibility:visible at print time — and
     * .pos-popup-overlay.show (2 classes) beats the old `body * {visibility:
     * hidden}` approach (1 element + universal) on specificity, leaving its
     * dark backdrop layered (z-index 300) over the receipt. Hiding the top
     * level sections outright with !important sidesteps that fight entirely
     * — nothing left to layer over the receipt, and nothing above it in the
     * DOM reserves layout space for .pos-receipt to escape via position:absolute.
     */
    .pos-topbar,
    .pos-main,
    .pos-popup-overlay {
        display: none !important;
    }

    /*
     * Without this, the browser prints .pos-receipt at whatever its default
     * paper size is (Letter/A4) — the 80mm-wide content just sits in the
     * corner of a huge blank sheet. A CSS named page scopes the paper size
     * to just this element (a plain top-level `@page { size: 80mm auto }`
     * would also resize the unrelated invoice print-out below, since both
     * share this stylesheet).
     */
    /*
     * `size: 80mm auto` isn't valid (Chrome needs two explicit lengths, see
     * .pos-receipt-measuring above) — this generous fixed height is only a
     * fallback for JS failing to run; the print button normally overwrites
     * this rule with the real measured height via #posReceiptPageSize.
     */
    @page pos-receipt-page {
        size: 80mm 200mm;
        margin: 0;
    }

    .pos-receipt {
        display: block;
        page: pos-receipt-page;
        width: 80mm;
        padding: 6mm;
        font-family: "Courier New", Courier, monospace;
        font-size: 12px;
        color: #000000;
    }
}

@media (max-width: 480px) {
    .pos-popup-card {
        padding: 22px;
    }
    .pos-popup-divider {
        margin: 0 -22px;
    }
}

/* ==========================================================================
   Invoice
   ========================================================================== */

.invoice-page {
    min-height: 100vh;
    background: #f1f5f9;
}

.invoice-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 24px 0;
}

.invoice-toolbar-back {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 14px;
    color: #334155;
}

.invoice-toolbar-back img {
    width: 16px;
    height: 16px;
}

.invoice-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.invoice-toolbar-btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 13px;
    color: #334155;
}

.invoice-toolbar-btn-primary {
    background: #1e1e1e;
    border-color: #1e1e1e;
    color: #ffffff;
}

.invoice-sheet-wrap {
    padding: 24px;
    display: flex;
    justify-content: center;
}

.invoice-sheet {
    width: 100%;
    max-width: 960px;
    background: #ffffff;
    border-top: 4px solid #111111;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    padding: 40px 48px 48px;
}

.invoice-muted {
    color: #6b7280;
    font-family: var(--font-inter);
    font-size: 13px;
    margin: 2px 0;
}

.invoice-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.invoice-brand {
    font-family: var(--font-volkhov);
    font-size: 28px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 8px;
}

.invoice-head-meta {
    text-align: right;
}

.invoice-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.invoice-title {
    font-family: var(--font-volkhov);
    font-size: 28px;
    font-weight: 700;
    color: #111111;
    margin: 0;
}

.invoice-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.04em;
    background: #f1f5f9;
    color: #475569;
}

.invoice-badge-paid {
    background: #d1fae5;
    color: #047857;
}

.invoice-meta-line {
    font-family: var(--font-inter);
    font-size: 13px;
    color: #374151;
    margin: 3px 0;
}

.invoice-meta-line span {
    font-weight: 700;
    color: #111111;
}

.invoice-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 28px 0;
}

.invoice-parties {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.invoice-party {
    flex: 1;
    min-width: 220px;
}

.invoice-party-label {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111111;
    margin: 0 0 8px;
}

.invoice-party-name {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 14px;
    color: #111111;
    margin: 0 0 2px;
}

.invoice-items {
    width: 100%;
    border-collapse: collapse;
    margin-top: 28px;
}

.invoice-items th {
    text-align: left;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
    padding-bottom: 10px;
    border-bottom: 2px solid #111111;
}

.invoice-items td {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    font-family: var(--font-inter);
    font-size: 14px;
    color: #111111;
}

.invoice-col-qty {
    text-align: center;
    width: 70px;
}

.invoice-col-price {
    text-align: right;
    width: 130px;
}

.invoice-col-amount {
    text-align: right;
    width: 130px;
    font-weight: 700;
}

.invoice-item-name {
    font-weight: 700;
    margin: 0 0 3px;
}

.invoice-footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.invoice-terms {
    flex: 1.1;
    min-width: 260px;
}

.invoice-section-heading {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 14px;
    color: #111111;
    margin: 0 0 12px;
}

.invoice-terms-list {
    margin: 0;
    padding-left: 18px;
    color: #6b7280;
    font-family: var(--font-inter);
    font-size: 12.5px;
    line-height: 1.7;
}

.invoice-terms-list li {
    margin-bottom: 6px;
}

.invoice-summary {
    flex: 0.9;
    min-width: 260px;
    background: #f7f7f7;
    border-radius: 12px;
    padding: 24px;
}

.invoice-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-inter);
    font-size: 13px;
    color: #4b5563;
    padding: 6px 0;
}

.invoice-summary-free {
    color: #047857;
    font-weight: 700;
}

.invoice-summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
    font-family: var(--font-inter);
    font-weight: 700;
    color: #111111;
}

.invoice-summary-total span:last-child {
    font-size: 22px;
}

.invoice-secure-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 14px 0 0;
    font-family: var(--font-inter);
    font-size: 11px;
    color: #9ca3af;
}

.invoice-thanks {
    text-align: center;
    font-family: var(--font-volkhov);
    font-style: italic;
    color: #6b7280;
    font-size: 14px;
    padding: 24px 0 4px;
}

@media (max-width: 720px) {
    .invoice-sheet {
        padding: 28px 20px 32px;
    }
    .invoice-head-meta {
        text-align: left;
    }
    .invoice-title-row {
        justify-content: flex-start;
    }
}

/* Printing this page directly (Print button) is the only PDF/print path now
   — no separate invoice-pdf view — so strip the toolbar and the on-screen
   "floating sheet on a gray canvas" chrome down to just the document. */
@media print {
    .invoice-toolbar {
        display: none;
    }
    .invoice-page {
        background: #ffffff;
    }
    .invoice-sheet-wrap {
        padding: 0;
    }
    .invoice-sheet {
        max-width: none;
        box-shadow: none;
        padding: 0;
    }
}

/* ---------- Request Refund popup (reuses .cart-popup-overlay) ---------- */
.refund-popup {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.15);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-popup-overlay.show .refund-popup {
    transform: scale(1);
}

.refund-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}
.refund-popup-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.refund-popup-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 24px;
    color: #1e1e1e;
}
.refund-popup-subtitle {
    font-family: var(--font-inter);
    font-size: 14px;
    color: #757575;
}
.refund-popup-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 16px;
    background: #f3f4f6;
    transition: background 0.15s ease;
}
.refund-popup-close:hover {
    background: #e5e7eb;
}
.refund-popup-close img {
    width: 16px;
    height: 16px;
}

.refund-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.refund-field-label {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 14px;
    color: #1e1e1e;
}
.refund-order-number {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 14px;
    color: #757575;
}

.refund-type-options {
    display: flex;
    gap: 12px;
}
.refund-type-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: var(--font-inter);
    font-size: 14px;
    color: #1e1e1e;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.refund-type-option:has(input:checked) {
    border-color: #111827;
    background: #f3f4f6;
}
.refund-type-option input {
    accent-color: #111827;
}

.refund-select,
.refund-textarea {
    width: 100%;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--font-inter);
    font-size: 14px;
    color: #1e1e1e;
}
.refund-select {
    height: 44px;
}
.refund-textarea {
    height: 100px;
    resize: vertical;
}
.refund-textarea::placeholder {
    color: #757575;
}

.refund-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 24px 16px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}
.refund-upload-icon {
    width: 24px;
    height: 24px;
}
.refund-upload-title {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 14px;
    color: #1e1e1e;
}
.refund-upload-desc {
    font-family: var(--font-inter);
    font-size: 12px;
    color: #757575;
}
.refund-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.refund-upload-preview:empty {
    display: none;
}
.refund-upload-preview-item {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.refund-upload-preview-item img,
.refund-upload-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.refund-popup-error {
    font-family: var(--font-inter);
    font-size: 13px;
    color: #dc2626;
    display: none;
}
.refund-popup-error.show {
    display: block;
}

.refund-popup-actions {
    display: flex;
    gap: 12px;
}
.refund-cancel-btn,
.refund-submit-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 8px;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 15px;
    transition: background 0.15s ease;
}
.refund-cancel-btn {
    background: #f3f4f6;
    color: #1e1e1e;
}
.refund-cancel-btn:hover {
    background: #e5e7eb;
}
.refund-submit-btn {
    background: #111827;
    color: #fff;
}
.refund-submit-btn:hover {
    background: #000;
}
.refund-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .refund-popup {
        padding: 24px;
    }
    .refund-type-options {
        flex-direction: column;
    }
}

/* Checkout T&C inside the confirm popup */
.confirm-popup:has(.checkout-terms-box) {
    max-width: 560px;
}
.checkout-terms-box {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    font-family: var(--font-inter);
    font-size: 13px;
    line-height: 1.55;
    color: #374151;
    background: #fafafa;
}
.checkout-terms-title {
    font-weight: 600;
    margin-bottom: 6px;
}
.checkout-terms-note {
    font-family: var(--font-inter);
    font-size: 13px;
    color: #6b7280;
}
.checkout-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-inter);
    font-size: 14px;
    color: #111827;
    cursor: pointer;
}
.checkout-terms-check input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #111827;
}
.confirm-popup-proceed:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


/* Cart / checkout line partly at the flash price */
.cart-price-split {
    font-family: var(--font-inter);
    font-size: 12px;
    color: #b91c1c;
    margin-top: 4px;
}


/* Flash sale card once its quota is used up */
.flash-sale-card.is-sold-out .market-card-image img {
    filter: grayscale(0.6);
    opacity: 0.7;
}
.flash-sale-badge.flash-sale-badge-soldout {
    background: #6b7280;
}

/* Images placed in page content from the admin editor */
.static-page-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 16px auto;
    border-radius: 8px;
}
