:root {
    --primary-color: #604c39;
    --btn-color: #604c39;
    --container-color: #604c39;
    --surface-tint: #ebd8c0;
    --theme-text-color: #3d3127;
    --theme-on-primary: #f8efe3;
    --theme-danger: #b00020;
    --theme-warning: #8f3f08;
    --theme-radius: 18px;
    --theme-bg-start: #c3a17d;
    --theme-bg-mid: #efe0cf;
    --theme-bg-end: #b08967;
    --theme-card-bg: rgba(255, 250, 242, 0.72);
    --theme-card-strong: rgba(255, 247, 236, 0.9);
    --theme-card-border: rgba(255, 255, 255, 0.52);
    --theme-muted: rgba(61, 49, 39, 0.72);
    --theme-nav-bg: rgba(247, 238, 228, 0.58);
    --theme-nav-border: rgba(255, 255, 255, 0.62);
    --theme-nav-hover: rgba(255, 255, 255, 0.62);
    --theme-shadow: 0 24px 60px rgba(56, 36, 19, 0.16);
    --theme-shadow-soft: 0 14px 35px rgba(56, 36, 19, 0.1);
    --theme-ring: rgba(96, 76, 57, 0.16);
    --cursor-aura: rgba(255, 255, 255, 0.24);
    --cursor-core: rgba(255, 255, 255, 0.56);
    --cursor-border: rgba(255, 255, 255, 0.7);
}

body[data-theme-variant="heritage"] {
    --theme-bg-start: #c3a17d;
    --theme-bg-mid: #efe0cf;
    --theme-bg-end: #b08967;
    --theme-card-bg: rgba(255, 250, 242, 0.72);
    --theme-card-strong: rgba(255, 247, 236, 0.9);
    --theme-nav-bg: rgba(247, 238, 228, 0.58);
    --theme-shadow: 0 24px 60px rgba(56, 36, 19, 0.16);
}

body[data-theme-variant="frost"] {
    --primary-color: #51606f;
    --btn-color: #51606f;
    --container-color: #51606f;
    --surface-tint: #edf3f7;
    --theme-text-color: #283443;
    --theme-bg-start: #d3dde6;
    --theme-bg-mid: #f7fbff;
    --theme-bg-end: #b4c3d0;
    --theme-card-bg: rgba(250, 253, 255, 0.74);
    --theme-card-strong: rgba(255, 255, 255, 0.92);
    --theme-card-border: rgba(255, 255, 255, 0.68);
    --theme-nav-bg: rgba(245, 250, 255, 0.58);
    --theme-nav-hover: rgba(255, 255, 255, 0.74);
    --theme-muted: rgba(40, 52, 67, 0.72);
    --theme-shadow: 0 24px 60px rgba(42, 57, 73, 0.14);
    --theme-shadow-soft: 0 14px 35px rgba(42, 57, 73, 0.08);
    --theme-ring: rgba(81, 96, 111, 0.16);
}

body[data-theme-variant="terracotta"] {
    --primary-color: #8f4e35;
    --btn-color: #8f4e35;
    --container-color: #8f4e35;
    --surface-tint: #f4dbc7;
    --theme-text-color: #4c2d1f;
    --theme-bg-start: #d1a182;
    --theme-bg-mid: #f7e5d7;
    --theme-bg-end: #b77758;
    --theme-card-bg: rgba(255, 247, 240, 0.7);
    --theme-card-strong: rgba(255, 250, 246, 0.92);
    --theme-card-border: rgba(255, 255, 255, 0.5);
    --theme-nav-bg: rgba(252, 242, 233, 0.58);
    --theme-nav-hover: rgba(255, 255, 255, 0.68);
    --theme-muted: rgba(76, 45, 31, 0.72);
    --theme-shadow: 0 24px 60px rgba(92, 45, 24, 0.16);
    --theme-shadow-soft: 0 14px 35px rgba(92, 45, 24, 0.1);
    --theme-ring: rgba(143, 78, 53, 0.16);
}

body[data-theme-variant="sage"] {
    --primary-color: #51644e;
    --btn-color: #51644e;
    --container-color: #51644e;
    --surface-tint: #e3ead9;
    --theme-text-color: #2f3d2c;
    --theme-bg-start: #b8c7a9;
    --theme-bg-mid: #eef5e5;
    --theme-bg-end: #8ea182;
    --theme-card-bg: rgba(248, 252, 243, 0.72);
    --theme-card-strong: rgba(251, 255, 247, 0.92);
    --theme-card-border: rgba(255, 255, 255, 0.58);
    --theme-nav-bg: rgba(245, 250, 240, 0.58);
    --theme-nav-hover: rgba(255, 255, 255, 0.7);
    --theme-muted: rgba(47, 61, 44, 0.72);
    --theme-shadow: 0 24px 60px rgba(39, 53, 33, 0.14);
    --theme-shadow-soft: 0 14px 35px rgba(39, 53, 33, 0.08);
    --theme-ring: rgba(81, 100, 78, 0.16);
}

body[data-theme-variant="midnight"] {
    --primary-color: #1f2a44;
    --btn-color: #1f2a44;
    --container-color: #1f2a44;
    --surface-tint: #162033;
    --theme-text-color: #f3ebde;
    --theme-on-primary: #f7e7cb;
    --theme-danger: #ff8f8f;
    --theme-warning: #f7c56b;
    --theme-bg-start: #0f1727;
    --theme-bg-mid: #22314d;
    --theme-bg-end: #35261a;
    --theme-card-bg: rgba(20, 28, 43, 0.76);
    --theme-card-strong: rgba(27, 38, 60, 0.9);
    --theme-card-border: rgba(255, 255, 255, 0.16);
    --theme-nav-bg: rgba(16, 24, 39, 0.72);
    --theme-nav-hover: rgba(200, 169, 107, 0.18);
    --theme-muted: rgba(243, 235, 222, 0.72);
    --theme-shadow: 0 24px 60px rgba(7, 11, 20, 0.32);
    --theme-shadow-soft: 0 14px 35px rgba(7, 11, 20, 0.22);
    --theme-ring: rgba(200, 169, 107, 0.22);
    --cursor-aura: rgba(200, 169, 107, 0.18);
    --cursor-core: rgba(255, 255, 255, 0.46);
    --cursor-border: rgba(233, 218, 192, 0.5);
}

body[data-theme-variant="champagne"] {
    --primary-color: #8c6b3f;
    --btn-color: #8c6b3f;
    --container-color: #8c6b3f;
    --surface-tint: #f6ecdd;
    --theme-text-color: #4c3a24;
    --theme-bg-start: #ead6b3;
    --theme-bg-mid: #fbf5ea;
    --theme-bg-end: #d6bf9e;
    --theme-card-bg: rgba(255, 250, 242, 0.8);
    --theme-card-strong: rgba(255, 252, 247, 0.94);
    --theme-card-border: rgba(255, 255, 255, 0.62);
    --theme-nav-bg: rgba(255, 250, 243, 0.68);
    --theme-nav-hover: rgba(255, 255, 255, 0.78);
    --theme-muted: rgba(76, 58, 36, 0.72);
    --theme-shadow: 0 24px 60px rgba(104, 80, 42, 0.14);
    --theme-shadow-soft: 0 14px 35px rgba(104, 80, 42, 0.08);
    --theme-ring: rgba(140, 107, 63, 0.18);
}

body[data-theme-variant="rose"] {
    --primary-color: #8a5161;
    --btn-color: #8a5161;
    --container-color: #8a5161;
    --surface-tint: #f2dde3;
    --theme-text-color: #512c36;
    --theme-bg-start: #ddb4c2;
    --theme-bg-mid: #faeef1;
    --theme-bg-end: #c892a3;
    --theme-card-bg: rgba(255, 247, 249, 0.78);
    --theme-card-strong: rgba(255, 251, 252, 0.93);
    --theme-card-border: rgba(255, 255, 255, 0.58);
    --theme-nav-bg: rgba(255, 247, 249, 0.66);
    --theme-nav-hover: rgba(255, 255, 255, 0.76);
    --theme-muted: rgba(81, 44, 54, 0.7);
    --theme-shadow: 0 24px 60px rgba(94, 45, 60, 0.14);
    --theme-shadow-soft: 0 14px 35px rgba(94, 45, 60, 0.08);
    --theme-ring: rgba(138, 81, 97, 0.18);
}

body[data-theme-variant="custom"] {
    --theme-bg-start: color-mix(in srgb, var(--primary-color) 26%, white 74%);
    --theme-bg-mid: color-mix(in srgb, var(--surface-tint) 74%, white 26%);
    --theme-bg-end: color-mix(in srgb, var(--primary-color) 18%, var(--surface-tint) 82%);
    --theme-card-bg: color-mix(in srgb, var(--surface-tint) 78%, white 22%);
    --theme-card-strong: color-mix(in srgb, var(--surface-tint) 90%, white 10%);
    --theme-card-border: color-mix(in srgb, var(--primary-color) 12%, white 88%);
    --theme-nav-bg: color-mix(in srgb, var(--surface-tint) 60%, white 40%);
    --theme-nav-border: color-mix(in srgb, var(--primary-color) 14%, white 86%);
    --theme-nav-hover: color-mix(in srgb, var(--surface-tint) 40%, white 60%);
    --theme-muted: color-mix(in srgb, var(--theme-text-color) 72%, transparent 28%);
    --theme-on-primary: color-mix(in srgb, var(--surface-tint) 86%, white 14%);
    --theme-shadow: 0 24px 60px color-mix(in srgb, var(--primary-color) 22%, transparent 78%);
    --theme-shadow-soft: 0 14px 35px color-mix(in srgb, var(--primary-color) 12%, transparent 88%);
    --theme-ring: color-mix(in srgb, var(--primary-color) 20%, transparent 80%);
}

body[data-theme-variant="onyx"] {
    --primary-color: #1c1c1e;
    --btn-color: #1c1c1e;
    --container-color: #1c1c1e;
    --surface-tint: #2a2a2e;
    --theme-text-color: #ececec;
    --theme-on-primary: #f5f5f7;
    --theme-bg-start: #181818;
    --theme-bg-mid: #242428;
    --theme-bg-end: #0e0e10;
    --theme-card-bg: rgba(40, 40, 46, 0.82);
    --theme-card-strong: rgba(50, 50, 58, 0.92);
    --theme-card-border: rgba(255, 255, 255, 0.12);
    --theme-nav-bg: rgba(28, 28, 32, 0.72);
    --theme-nav-border: rgba(255, 255, 255, 0.14);
    --theme-nav-hover: rgba(255, 255, 255, 0.08);
    --theme-muted: rgba(236, 236, 236, 0.66);
    --theme-shadow: 0 26px 64px rgba(0, 0, 0, 0.6);
    --theme-shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.42);
    --theme-ring: rgba(255, 255, 255, 0.14);
    --cursor-aura: rgba(255, 255, 255, 0.16);
    --cursor-core: rgba(255, 255, 255, 0.5);
    --cursor-border: rgba(255, 255, 255, 0.4);
}

body[data-theme-variant="linen"] {
    --primary-color: #6b5b48;
    --btn-color: #6b5b48;
    --container-color: #6b5b48;
    --surface-tint: #f5efe6;
    --theme-text-color: #3a322a;
    --theme-on-primary: #f8f3eb;
    --theme-bg-start: #efe7d8;
    --theme-bg-mid: #fbf6ee;
    --theme-bg-end: #d8cab2;
    --theme-card-bg: rgba(255, 252, 246, 0.78);
    --theme-card-strong: rgba(255, 253, 248, 0.94);
    --theme-card-border: rgba(255, 255, 255, 0.66);
    --theme-nav-bg: rgba(248, 244, 236, 0.6);
    --theme-nav-border: rgba(255, 255, 255, 0.7);
    --theme-nav-hover: rgba(255, 255, 255, 0.78);
    --theme-muted: rgba(58, 50, 42, 0.7);
    --theme-shadow: 0 24px 60px rgba(78, 64, 46, 0.12);
    --theme-shadow-soft: 0 14px 35px rgba(78, 64, 46, 0.08);
    --theme-ring: rgba(107, 91, 72, 0.16);
}

body[data-theme-variant="indigo"] {
    --primary-color: #3b3f7a;
    --btn-color: #3b3f7a;
    --container-color: #3b3f7a;
    --surface-tint: #e6e8f4;
    --theme-text-color: #1d2046;
    --theme-on-primary: #eef0fb;
    --theme-bg-start: #d4d8ee;
    --theme-bg-mid: #f4f5fc;
    --theme-bg-end: #aab1d8;
    --theme-card-bg: rgba(252, 253, 255, 0.78);
    --theme-card-strong: rgba(255, 255, 255, 0.94);
    --theme-card-border: rgba(255, 255, 255, 0.6);
    --theme-nav-bg: rgba(244, 246, 253, 0.6);
    --theme-nav-border: rgba(255, 255, 255, 0.66);
    --theme-nav-hover: rgba(255, 255, 255, 0.74);
    --theme-muted: rgba(29, 32, 70, 0.68);
    --theme-shadow: 0 26px 60px rgba(28, 32, 80, 0.16);
    --theme-shadow-soft: 0 14px 36px rgba(28, 32, 80, 0.1);
    --theme-ring: rgba(59, 63, 122, 0.18);
}

body[data-theme-variant="olive"] {
    --primary-color: #5a6b3a;
    --btn-color: #5a6b3a;
    --container-color: #5a6b3a;
    --surface-tint: #ecefd9;
    --theme-text-color: #2f3a1f;
    --theme-on-primary: #f4f7e6;
    --theme-bg-start: #d6dcb7;
    --theme-bg-mid: #f3f5e2;
    --theme-bg-end: #b6c187;
    --theme-card-bg: rgba(252, 253, 244, 0.78);
    --theme-card-strong: rgba(255, 255, 248, 0.94);
    --theme-card-border: rgba(255, 255, 255, 0.6);
    --theme-nav-bg: rgba(243, 246, 226, 0.6);
    --theme-nav-border: rgba(255, 255, 255, 0.68);
    --theme-nav-hover: rgba(255, 255, 255, 0.76);
    --theme-muted: rgba(47, 58, 31, 0.7);
    --theme-shadow: 0 26px 60px rgba(50, 64, 24, 0.14);
    --theme-shadow-soft: 0 14px 36px rgba(50, 64, 24, 0.08);
    --theme-ring: rgba(90, 107, 58, 0.18);
}

body[data-theme-variant="plum"] {
    --primary-color: #5d2a52;
    --btn-color: #5d2a52;
    --container-color: #5d2a52;
    --surface-tint: #ecdcef;
    --theme-text-color: #34173b;
    --theme-on-primary: #f6e9f7;
    --theme-bg-start: #d3b4d8;
    --theme-bg-mid: #f1e3f4;
    --theme-bg-end: #ad7eb4;
    --theme-card-bg: rgba(254, 250, 255, 0.78);
    --theme-card-strong: rgba(255, 252, 255, 0.94);
    --theme-card-border: rgba(255, 255, 255, 0.6);
    --theme-nav-bg: rgba(245, 234, 248, 0.6);
    --theme-nav-border: rgba(255, 255, 255, 0.66);
    --theme-nav-hover: rgba(255, 255, 255, 0.74);
    --theme-muted: rgba(52, 23, 59, 0.7);
    --theme-shadow: 0 26px 60px rgba(70, 26, 78, 0.18);
    --theme-shadow-soft: 0 14px 36px rgba(70, 26, 78, 0.1);
    --theme-ring: rgba(93, 42, 82, 0.18);
}

body {
    color: var(--theme-text-color, #333);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 30%),
        linear-gradient(140deg, var(--theme-bg-start) 0%, var(--theme-bg-mid) 42%, var(--theme-bg-end) 100%) !important;
}

body::after {
    content: "";
    display: none;
}

:root {
    --header-offset: 92px;
}

body.nav-open {
    overflow: hidden;
}

@media (pointer: fine) {
    body.cursor-ready[data-cursor-effect="glass"]::after,
    body.cursor-ready[data-cursor-effect="subtle"]::after {
        display: block;
        position: fixed;
        left: var(--cursor-x, 50vw);
        top: var(--cursor-y, 50vh);
        width: 28px;
        height: 28px;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        background: radial-gradient(circle at 30% 30%, var(--cursor-core), var(--cursor-aura));
        border: 1px solid var(--cursor-border);
        backdrop-filter: blur(18px) saturate(180%);
        box-shadow: 0 10px 24px rgba(255, 255, 255, 0.18);
        pointer-events: none;
        z-index: 9999;
        transition:
            width 0.18s ease,
            height 0.18s ease,
            opacity 0.18s ease,
            transform 0.08s linear;
    }

    body.cursor-ready[data-cursor-effect="subtle"]::after {
        width: 18px;
        height: 18px;
        opacity: 0.64;
    }

    body.cursor-ready.cursor-glass-hover[data-cursor-effect="glass"]::after {
        width: 38px;
        height: 38px;
    }

    body[data-cursor-effect="off"]::after {
        display: none !important;
    }
}

.site-header {
    background: transparent;
    border-bottom: none !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 120;
}

.site-header,
.site-header.header-active,
header.site-header.header-active {
    background-color: transparent !important;
    backdrop-filter: none !important;
}

.header-bar {
    position: relative;
    padding-top: 14px;
    padding-bottom: 0;
}

.header-island {
    position: relative;
    z-index: 104;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
    min-height: 74px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--theme-nav-bg);
    border: 1px solid var(--theme-nav-border);
    box-shadow: var(--theme-shadow);
    backdrop-filter: blur(18px) saturate(190%);
    overflow: visible;
}

.site-header.header-active .header-island {
    background: color-mix(in srgb, var(--surface-tint) 76%, white 24%);
    box-shadow: 0 18px 44px rgba(56, 36, 19, 0.2);
}

.nav-island {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    height: auto;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    /* Center the middle links (Home / Shop / Contact …) between the logo
       on the left and the action icons on the right. */
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent !important;
    border: none !important;
    box-shadow: none;
    backdrop-filter: none;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
}

.nav-island::-webkit-scrollbar {
    display: none;
}

.nav-island li {
    flex: 0 0 auto;
    position: relative;
}

.header-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.nav-island .nav-link,
.nav-island .nav-icon-btn,
.nav-island .country-selector-toggle {
    transition:
        transform 0.22s ease,
        background-color 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease;
}

.nav-island .nav-link {
    color: var(--theme-text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 42px;
    min-width: 42px;
    padding: 10px;
    border-radius: 999px;
    white-space: nowrap;
    position: relative;
}

.nav-island .nav-link .bx {
    font-size: 1.2rem;
    line-height: 1;
}

.nav-link-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-island li .nav-link::after {
    content: attr(data-label);
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translate(-50%, -4px);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(45, 32, 22, 0.92);
    color: #fff8ef;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 12px 24px rgba(45, 32, 22, 0.18);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 6;
}

.nav-island li:hover .nav-link,
.nav-island .nav-link:hover,
.nav-island .nav-link-active {
    transform: translateY(-2px) scale(1.06);
    background: var(--theme-nav-hover);
    box-shadow: 0 10px 20px rgba(68, 49, 33, 0.12);
    color: var(--primary-color);
}

.nav-island li:hover .nav-link::after,
.nav-island .nav-link:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

@supports selector(li:has(+ li:hover)) {
    .nav-island li:has(+ li:hover) .nav-link,
    .nav-island li:hover + li .nav-link {
        transform: translateY(-1px) scale(1.02);
        background: rgba(255, 255, 255, 0.3);
    }
}

.brand-logo-image {
    position: static;
    display: block;
    width: auto;
    height: 52px;
    max-width: min(180px, 28vw);
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(61, 42, 26, 0.16));
}

.site-header .logo img {
    left: auto !important;
    transform: none !important;
}

.nav-icon-btn {
    width: 40px;
    height: 40px;
    margin: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--theme-text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.38);
    color: var(--primary-color);
}

.header-cart-icon {
    font-size: 1.2rem;
}

.header-close-icon {
    color: #c62828;
}

.account-nav-icon {
    font-size: 20px;
}

.nav-link--danger {
    color: #c62828 !important;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    min-width: fit-content;
}

.header-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.28);
}

.header-menu-toggle .line1,
.header-menu-toggle .line2,
.header-menu-toggle .line3 {
    width: 16px;
    background: var(--theme-text-color) !important;
}

.header-utility-link {
    text-decoration: none;
}

.country-selector {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.country-selector-toggle {
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    gap: 6px;
}

.country-selector-toggle:hover {
    background: rgba(255, 255, 255, 0.26);
}

.country-flag {
    height: 20px;
    vertical-align: middle;
}

.country-code-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--theme-text-color);
}

.country-selector-list {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(252, 244, 232, 0.95);
    list-style: none;
    padding: 6px;
    border: 1px solid rgba(96, 76, 57, 0.16);
    margin: 0;
    border-radius: 14px;
    box-shadow: var(--theme-shadow-soft);
    min-width: 180px;
    max-width: min(280px, 86vw);
    z-index: 140;
    overflow: hidden;
}

.country-selector-list li {
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.country-selector-list li:hover {
    background: rgba(96, 76, 57, 0.1);
}

.country-selector-heading {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(96, 76, 57, 0.75);
    cursor: default !important;
}

.country-selector-heading:hover {
    background: transparent !important;
}

.footerx,
.blankfooter {
    background-color: var(--primary-color) !important;
}

.footer-logo-image {
    width: 100px;
    height: auto;
    display: block;
}

.footer-tagline {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.85;
}

.footer-payment-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.footer-payment-logo {
    height: 20px;
    width: auto;
    display: block;
}

.black-btn,
button.black-btn,
a.black-btn {
    background: color-mix(in srgb, var(--primary-color) 92%, black 8%) !important;
    color: var(--theme-on-primary) !important;
    border: none !important;
    outline-color: var(--primary-color) !important;
}

.black-btn:hover,
button.black-btn:hover,
a.black-btn:hover {
    background: color-mix(in srgb, var(--primary-color) 82%, black 18%) !important;
    color: var(--theme-on-primary) !important;
}

.white-btn,
button.white-btn,
a.white-btn {
    background: var(--theme-card-strong) !important;
    color: var(--theme-text-color) !important;
    border: 1px solid var(--theme-card-border) !important;
    outline-color: color-mix(in srgb, var(--primary-color) 42%, transparent 58%) !important;
}

.white-btn:hover,
button.white-btn:hover,
a.white-btn:hover {
    background: color-mix(in srgb, var(--theme-card-strong) 82%, var(--surface-tint) 18%) !important;
    color: var(--primary-color) !important;
}

.black-btn:disabled,
.white-btn:disabled,
button.black-btn:disabled,
button.white-btn:disabled {
    opacity: 0.64;
}

.social .bx,
#msgbox,
.floating-cart {
    background: color-mix(in srgb, var(--primary-color) 88%, black 12%) !important;
}

#msgbox,
#msgbox p {
    color: var(--theme-on-primary) !important;
}

.product,
.cart-overlay,
.search-input,
.category-select,
.checkoutinfo select,
.white-btn,
.black-btn,
.faq-question,
.faq-answer,
.settings-shell input,
.settings-shell textarea,
.settings-shell select,
.customize-wrap textarea,
.customize-wrap button {
    border-radius: var(--theme-radius, 18px);
}

.product,
.search-input,
.category-select,
.checkoutinfo select,
.cart-overlay,
.settings-shell .tab-content > div,
.settings-shell #catalog-list > div,
.faq-question,
.faq-answer,
.customize-wrap .notice {
    background: color-mix(in srgb, var(--surface-tint) 84%, white 16%);
    border-color: var(--theme-card-border);
}

.black-btn {
    background: var(--primary-color);
    outline-color: var(--primary-color);
}

.white-btn {
    color: var(--theme-text-color);
}

.cart-overlay,
.product,
.faq-question,
.faq-answer,
.settings-shell .site-panel,
.customize-wrap .notice,
.customize-wrap textarea {
    box-shadow: var(--theme-shadow-soft);
}

.cart-overlay {
    top: var(--header-offset);
    height: calc(100dvh - var(--header-offset));
}

.cart-backdrop {
    top: 0;
    height: 100dvh;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
    background: color-mix(in srgb, var(--surface-tint) 82%, white 18%) !important;
    color: var(--theme-text-color) !important;
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, white 82%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

input::placeholder,
textarea::placeholder {
    color: var(--theme-muted) !important;
    opacity: 0.94;
}

input:disabled,
textarea:disabled,
select:disabled {
    background: color-mix(in srgb, var(--surface-tint) 64%, white 36%) !important;
    color: var(--theme-muted) !important;
}

.product,
.review-box,
.featured-product-row,
.addonitem,
.featured-option-dialog,
.featured-option-choice,
.featured-products .table,
.featured-products .table tbody,
.container.cart,
.accountinfo,
.checkoutinfo,
.paymentinfo,
.cart-total table,
.fin-card,
#entryModal > div,
#create-user-modal > div,
.modal-content.white-transparent,
.modal-content.deeppurple-transparent,
.modal-content.dark-green-transparent {
    background: var(--theme-card-bg) !important;
    color: var(--theme-text-color) !important;
    border-color: var(--theme-card-border) !important;
}

.featured-option-overlay,
#entryModal,
#create-user-modal,
#previewOverlay {
    background: color-mix(in srgb, var(--primary-color) 36%, transparent 64%) !important;
}

.featured-products h3,
.featured-products hr,
.cart h3,
.cart p,
.cart span,
.cart td,
.cart .product-info p,
.cart .special,
.customer_reviews h3,
.customer_reviews p,
.customer_reviews h4,
.reviews-section h3,
.reviews-section p,
.reviews-section h4 {
    color: var(--theme-text-color) !important;
    border-color: color-mix(in srgb, var(--primary-color) 30%, transparent 70%) !important;
}

.profile-img,
.featured-product-row img {
    border: 1px solid var(--theme-card-border);
}

.featured-option-close,
.search-icon,
.faq-icon {
    color: var(--theme-text-color) !important;
}

.review-box h4,
.review-box p,
.review-box span,
.featured-option-dialog h4,
.featured-option-dialog p,
.featured-option-choice strong,
.featured-option-choice span,
.featured-product-row .product-name,
.featured-product-row .product-price,
.featured-product-row .current-price {
    color: var(--theme-text-color) !important;
}

.featured-product-row .featured-discount,
.cart .remove-btn,
.accountpage .remove-btn,
.cart-total table tr:nth-child(2) span,
.cart-total table tr:nth-child(3) span,
.cart-total table tr:nth-child(4) span {
    color: var(--theme-danger) !important;
}

.featured-product-row .featured-stock-note {
    color: var(--theme-warning) !important;
}

.faq-answer p {
    color: var(--theme-text-color);
}

.country-selector-list,
.pagination a,
.search-input,
.category-select,
.checkoutinfo select,
.cart td input,
.single_product input,
.addonitem,
.featured-option-choice {
    background: color-mix(in srgb, var(--surface-tint) 84%, white 16%) !important;
    color: var(--theme-text-color) !important;
    border-color: var(--theme-card-border) !important;
}

.featured-option-dialog,
.featured-product-row,
.products-containerx .featured-product-row,
.products-containerx .featured-product-row td,
.featured-products .table,
.cart-shit,
.price-table,
.cart-total table,
.checkoutdetails > div,
.contact-meta-card,
.details-page .information,
.details-page .table,
.details-page .table td,
.details-page .table th {
    background: var(--theme-card-bg) !important;
    color: var(--theme-text-color) !important;
}

.cart th,
.accountpage th,
.fin-card--highlight,
.price-table th {
    background: var(--primary-color) !important;
    color: var(--theme-on-primary) !important;
    border-color: var(--primary-color) !important;
}

.country-selector-list li,
.pagination a,
.search-icon,
.breadcrumb a,
.message-remaining-chars,
.cart-total table td,
.price-table td,
.price-table th {
    color: var(--theme-text-color) !important;
}

.pagination a.active {
    background: var(--theme-text-color) !important;
    border-color: var(--theme-text-color) !important;
    color: transparent !important;
    -webkit-text-stroke: 1px color-mix(in srgb, white 82%, var(--theme-text-color) 18%);
    font-weight: 800;
    text-shadow: none !important;
    box-shadow: 0 10px 20px rgba(27, 17, 9, 0.12);
    transform: translateY(-1px);
}

.pagination a:hover:not(.active) {
    background: color-mix(in srgb, var(--surface-tint) 72%, white 28%) !important;
    color: var(--theme-text-color) !important;
}

.cart-shit,
.price-table,
.checkoutdetails > div,
.details-page .information {
    border: 1px solid color-mix(in srgb, var(--theme-card-border) 78%, white 22%) !important;
    border-radius: calc(var(--theme-radius, 18px) - 2px);
}

.featured-products .table,
.price-table,
.details-page .table {
    border-radius: calc(var(--theme-radius, 18px) - 2px);
    overflow: hidden;
}

.price-table td,
.price-table th,
.details-page .table th,
.details-page .table td {
    border-bottom-color: color-mix(in srgb, var(--theme-card-border) 74%, transparent 26%) !important;
}

.faq-section .faq-title {
    font-size: x-large;
    text-align: center;
}

.faq-section .faq-divider {
    width: 42%;
    margin: auto;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-question {
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 15px;
    font-size: 1.2rem;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.22s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background-color: color-mix(in srgb, var(--surface-tint) 68%, var(--primary-color) 12%);
    transform: translateY(-1px);
}

.faq-answer {
    display: none;
    padding: 10px 14px;
    border: 1px solid var(--primary-color);
    margin-top: 10px;
}

.faq-answer p {
    margin: 0;
    font-size: 1rem;
    color: #111;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--theme-text-color);
}

.faq-question.open .faq-icon {
    transform: rotate(45deg);
}

.settings-shell {
    max-width: 980px !important;
    margin: calc(var(--header-offset) + 18px) auto 34px !important;
    padding: 0 20px 36px !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    scroll-margin-top: calc(var(--header-offset) + 16px);
}

.settings-shell > h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    letter-spacing: 0.03em;
}

.settings-tabbar {
    display: flex;
    gap: 6px;
    border-bottom: 2px solid rgba(96, 76, 57, 0.16);
    margin-bottom: 24px;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(14px) saturate(120%);
    scrollbar-width: none;
}

.settings-tabbar::-webkit-scrollbar {
    display: none;
}

.settings-shell .tab-btn,
.settings-shell .subtab-btn {
    border-radius: 999px;
}

.settings-shell .tab-btn {
    padding: 10px 18px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    color: var(--theme-text-color);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.settings-shell .tab-btn:hover,
.settings-shell .subtab-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(27, 17, 9, 0.08);
}

.settings-shell .tab-btn.is-active,
.settings-shell .subtab-btn.is-active {
    background: rgba(255, 255, 255, 0.56);
}

.settings-shell .subtab-btn {
    padding: 8px 14px;
    border: 1px solid rgba(96, 76, 57, 0.16);
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

.settings-shell form input[type="text"],
.settings-shell form input[type="url"],
.settings-shell form input[type="email"],
.settings-shell form input[type="number"],
.settings-shell form input[type="password"],
.settings-shell form input[type="file"],
.settings-shell form textarea,
.settings-shell form select {
    border: 1px solid rgba(96, 76, 57, 0.18);
    background: rgba(255, 255, 255, 0.56);
    color: var(--theme-text-color);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.settings-shell .tab-content {
    min-height: 280px;
}

.settings-shell #integrations-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    align-items: start;
}

.settings-form-stack label {
    font-weight: 600;
    color: var(--theme-text-color);
}

.settings-glass-card,
.settings-upload-card,
.settings-shell #integrations-grid > div,
.settings-shell #catalog-list > div,
.settings-shell #tab-catalog > div > div,
.settings-shell #tab-operations > div > div,
.settings-shell #tab-countries > div > div {
    background: color-mix(in srgb, var(--surface-tint) 78%, white 22%);
    border: 1px solid color-mix(in srgb, var(--theme-card-border) 78%, white 22%) !important;
    border-radius: calc(var(--theme-radius, 18px) + 6px);
    box-shadow: var(--theme-shadow-soft);
    backdrop-filter: blur(16px) saturate(130%);
}

.settings-glass-card {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.settings-upload-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    margin-top: 8px;
}

.settings-logo-preview {
    max-height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255,255,255,0.55);
    padding: 8px;
}

.settings-modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(39, 27, 16, 0.34);
    backdrop-filter: blur(12px);
    z-index: 170;
}

.settings-modal-card {
    width: min(640px, 100%);
    background: color-mix(in srgb, var(--surface-tint) 82%, white 18%);
    color: var(--theme-text-color);
    border-radius: calc(var(--theme-radius, 18px) + 8px);
    border: 1px solid color-mix(in srgb, var(--theme-card-border) 75%, white 25%);
    box-shadow: 0 24px 60px rgba(22, 14, 8, 0.22);
    padding: 20px;
}

.floating-strip {
    width: min(1120px, calc(100% - 28px));
    margin: 10px auto 0;
    position: relative;
    z-index: 3;
}

.floating-strip__inner {
    background: color-mix(in srgb, var(--surface-tint) 88%, white 12%);
    color: var(--theme-text-color);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    box-shadow: 0 16px 34px rgba(27, 17, 9, 0.12);
    backdrop-filter: blur(16px) saturate(130%);
    padding: 10px 18px;
    text-align: center;
    font-weight: 600;
}

.floating-strip--placeholder .floating-strip__inner {
    visibility: hidden;
    pointer-events: none;
}

.floating-strip--news .floating-strip__inner {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.26), rgba(255,255,255,0.04)),
        color-mix(in srgb, var(--surface-tint) 84%, white 16%);
    color: var(--theme-text-color);
}

.floating-strip--alert .floating-strip__inner {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02)),
        color-mix(in srgb, var(--primary-color) 16%, var(--surface-tint) 84%);
    color: color-mix(in srgb, var(--theme-text-color) 78%, #6a170f 22%);
}

.floating-strip-timer {
    display: inline-flex;
    margin-inline: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.country-cities-editor {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid color-mix(in srgb, var(--theme-card-border) 68%, white 32%);
    min-width: 0;
}

.country-cities-editor textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.5);
    color: var(--theme-text-color);
    box-sizing: border-box;
}

.country-pickup-card,
.country-shipping-editor,
.country-shipping-matrix,
.country-delivery-profile {
    min-width: 0;
}

.country-cities-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.contact-shell,
.signup-shell {
    margin-top: calc(var(--header-offset) + 14px);
    display: grid;
    gap: 20px;
}

.contact-hero-card,
.contact-form-card,
.signup-intro-card,
.signup-card {
    background: color-mix(in srgb, var(--surface-tint) 78%, white 22%);
    border: 1px solid color-mix(in srgb, var(--theme-card-border) 76%, white 24%);
    border-radius: calc(var(--theme-radius, 18px) + 10px);
    box-shadow: var(--theme-shadow-soft);
    backdrop-filter: blur(16px) saturate(125%);
    padding: 24px;
}

.contact-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: var(--theme-muted);
    margin: 0 0 10px;
}

.contact-copy {
    color: var(--theme-muted);
    max-width: 60ch;
}

.contact-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.contact-meta-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.38);
    color: inherit;
    text-decoration: none;
}

.contact-form-grid,
.signup-card {
    gap: 12px;
}

.signup-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 14px;
}

.signup-social .social-btn {
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 16px;
    padding: 12px 16px;
    min-width: 210px;
    cursor: pointer;
}

.signup-social .facebook-btn {
    background: #3b5998;
    color: #fff;
}

.signup-social .google-btn {
    background: #db4437;
    color: #fff;
}

.addonitem[data-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}

.body-overlay .details-page,
.body-overlay .details-page.cart,
body[data-overlay="true"] .details-page,
body[data-overlay="true"] .details-page.cart {
    background: color-mix(in srgb, var(--surface-tint) 72%, white 28%);
    border: 1px solid color-mix(in srgb, var(--theme-card-border) 72%, white 28%);
    border-radius: calc(var(--theme-radius, 18px) + 8px);
    box-shadow: 0 24px 60px rgba(23, 14, 8, 0.16);
    backdrop-filter: blur(16px) saturate(125%);
}

body[data-overlay="true"] {
    background: transparent !important;
}

.modal-overlay {
    padding: clamp(14px, 2vw, 24px);
    overflow: auto;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--primary-color) 22%, rgba(20, 14, 10, 0.52) 78%) !important;
}

.modal-content {
    width: min(1180px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
    height: min(920px, calc(100vh - 28px)) !important;
    max-height: calc(100vh - 28px) !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: auto;
    border-radius: calc(var(--theme-radius, 18px) + 10px);
    border: 1px solid color-mix(in srgb, var(--theme-card-border) 78%, white 22%);
    box-shadow: 0 32px 80px rgba(24, 14, 8, 0.22);
    overflow: hidden;
}

.modal-content iframe {
    border-radius: inherit;
}

body[data-overlay="true"] .details-page,
body.body-overlay .details-page {
    width: min(1120px, 100%);
    max-width: 1120px;
    min-height: calc(100vh - 32px);
    margin: 0 auto;
    padding: clamp(14px, 2vw, 24px);
}

@media (max-width: 900px) {
    .modal-overlay {
        padding: 10px;
    }

    .modal-content {
        width: calc(100vw - 12px) !important;
        max-width: calc(100vw - 12px) !important;
        height: calc(100vh - 12px) !important;
        max-height: calc(100vh - 12px) !important;
        border-radius: 24px;
    }

    body[data-overlay="true"] .details-page,
    body.body-overlay .details-page {
        width: 100%;
        max-width: none;
        min-height: auto;
        padding: 12px;
    }
}

.receipt-shell .receipt-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.receipt-shell .receipt-order-id {
    opacity: 0.76;
    font-weight: 700;
}

.receipt-shell .receipt-company-block p {
    margin: 3px 0;
    font-size: 13px;
    line-height: 1.4;
}

.receipt-shell .receipt-information p {
    display: grid;
    grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
    align-items: start;
    gap: 6px 14px;
    margin-bottom: 8px;
}

.receipt-shell .receipt-information .receipt-value {
    text-align: left;
    justify-self: start;
    white-space: normal;
    word-break: break-word;
}

.receipt-shell .receipt-items .table th,
.receipt-shell .receipt-items .table td {
    vertical-align: top;
}

.dashboard-card,
.status-card {
    background: color-mix(in srgb, var(--surface-tint) 80%, white 20%) !important;
    border: 1px solid color-mix(in srgb, var(--theme-card-border) 76%, white 24%) !important;
    border-radius: calc(var(--theme-radius, 18px) + 4px) !important;
    color: var(--theme-text-color) !important;
    box-shadow: var(--theme-shadow-soft) !important;
    backdrop-filter: blur(14px) saturate(120%) !important;
}

.dashboard-card h3,
.status-card h3,
.dashboard-card p,
.status-card p,
.dashboard-card a,
.status-card a {
    color: var(--theme-text-color) !important;
}

@media print {
    /* Default: adapt to whatever paper size the user picked in the print dialog
       (A4, Letter, Legal, etc.). Thermal-receipt overrides live in the narrow
       paper @media query below — they only kick in when paper width <= 100mm. */
    @page {
        margin: 12mm;
    }

    .details-page {
        background: #fff !important;
        box-shadow: none !important;
        border: none !important;
        color: #111 !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 12.5px !important;
    }

    .receipt-shell {
        background: #fff !important;
    }

    .receipt-shell .receipt-header {
        padding: 0 0 12px !important;
        margin-bottom: 14px !important;
        border-bottom: 1px dashed rgba(0,0,0,0.22) !important;
    }

    .receipt-shell .receipt-company-block {
        position: static !important;
        visibility: visible !important;
        text-align: center !important;
        margin: 0 0 14px !important;
    }

    .receipt-shell .receipt-company-block img {
        height: 56px !important;
        width: auto !important;
        margin-bottom: 6px !important;
        filter: grayscale(100%) brightness(0%) !important;
    }

    .details-page .table,
    .details-page .cart-total table {
        background: #fff !important;
        color: #111 !important;
        width: 100% !important;
        font-size: 12.5px !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .receipt-shell .table thead th {
        font-size: 11.5px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
    }

    .details-page button,
    .site-header,
    .footerx,
    .blankfooter,
    .floating-strip {
        display: none !important;
    }

    .details-page h1,
    .details-page h2,
    .details-page h3 {
        font-size: 18px !important;
        margin: 0 0 6px !important;
    }

    .details-page p,
    .details-page td,
    .details-page th,
    .details-page span {
        color: #111 !important;
        line-height: 1.45 !important;
        text-align: left !important;
    }

    .details-page .information,
    .details-page .orderitems,
    .details-page .cart-total {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 0 14px !important;
    }

    .receipt-shell .information p {
        display: grid !important;
        grid-template-columns: minmax(120px, 170px) minmax(0, 1fr) !important;
        justify-content: start !important;
        align-items: start !important;
        gap: 4px 12px !important;
        margin: 0 0 4px !important;
        font-size: 12px !important;
        text-align: left !important;
    }

    .receipt-shell .information p strong {
        font-weight: 700 !important;
        flex: 0 0 auto !important;
    }

    .receipt-shell .information .receipt-value {
        display: block !important;
        text-align: left !important;
        justify-self: start !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    .receipt-shell .cart-total {
        display: flex !important;
        justify-content: flex-end !important;
    }

    .receipt-shell .cart-total table {
        border-top: 1px dashed rgba(0,0,0,0.22) !important;
        margin-top: 10px !important;
        max-width: 360px !important;
        width: auto !important;
    }

    .details-page .table th,
    .details-page .table td,
    .details-page .cart-total td {
        padding: 6px 4px !important;
        border-color: rgba(0,0,0,0.16) !important;
    }

    .receipt-shell .cart-total td:last-child,
    .receipt-shell .table td:last-child,
    .receipt-shell .table th:last-child {
        text-align: right !important;
    }

    .receipt-shell .table td:first-child,
    .receipt-shell .table th:first-child,
    .receipt-shell .receipt-company-block,
    .receipt-shell .receipt-company-block p,
    .receipt-shell .receipt-order-id {
        text-align: left !important;
    }

    .receipt-shell .cart-total table tr:last-child td {
        border-top: 1px solid rgba(0,0,0,0.32) !important;
        padding-top: 8px !important;
        font-size: 15px !important;
        font-weight: 800 !important;
    }

    .receipt-shell .cart-total table tr:last-child td:first-child {
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
    }

    .receipt-shell::after {
        content: "Thank you for your order!" !important;
        display: block !important;
        margin-top: 18px !important;
        padding-top: 10px !important;
        text-align: center !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase !important;
        color: #111 !important;
        border-top: 1px dashed rgba(0,0,0,0.22) !important;
    }

    .receipt-shell .receipt-order-id {
        font-size: 13px !important;
        opacity: 0.84 !important;
        margin: 4px 0 0 !important;
    }
}

/* Thermal / POS receipt overrides — only when the chosen paper is narrow (<=100mm).
   Triggers automatically when an admin selects 80mm/3-inch thermal paper in the
   browser print dialog. Standard A4/Letter prints fall through to the rules above. */
@media print and (max-width: 100mm) {
    @page {
        margin: 4mm;
    }

    .details-page {
        font-size: 10.5px !important;
        max-width: 100% !important;
    }

    .details-page h1,
    .details-page h2,
    .details-page h3 {
        font-size: 13px !important;
        margin: 0 0 4px !important;
    }

    .receipt-shell .receipt-company-block img {
        height: 36px !important;
        margin-bottom: 4px !important;
    }

    .receipt-shell .receipt-header {
        padding: 0 0 8px !important;
        margin-bottom: 8px !important;
    }

    .details-page .table,
    .details-page .cart-total table {
        font-size: 10.5px !important;
    }

    .receipt-shell .table thead th {
        font-size: 10px !important;
    }

    .details-page p,
    .details-page td,
    .details-page th,
    .details-page span {
        line-height: 1.35 !important;
    }

    .receipt-shell .information p {
        font-size: 10.5px !important;
        margin: 0 0 3px !important;
        grid-template-columns: 90px minmax(0, 1fr) !important;
        gap: 3px 8px !important;
    }

    .details-page .table th,
    .details-page .table td,
    .details-page .cart-total td {
        padding: 4px 0 !important;
    }

    .receipt-shell .cart-total {
        display: block !important;
    }

    .receipt-shell .cart-total table {
        max-width: none !important;
        width: 100% !important;
        margin-top: 6px !important;
    }

    .receipt-shell .cart-total table tr:last-child td {
        font-size: 13px !important;
        padding-top: 6px !important;
    }

    .receipt-shell::after {
        font-size: 10.5px !important;
        margin-top: 12px !important;
        padding-top: 8px !important;
    }

    .receipt-shell .receipt-order-id {
        font-size: 11px !important;
    }
}

.theme-preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.theme-preset-card {
    border: 1px solid rgba(96, 76, 57, 0.14);
    border-radius: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.theme-preset-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow-soft);
}

.theme-preset-card.is-active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--theme-ring);
    background: rgba(255, 255, 255, 0.76);
}

.theme-preset-swatches {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.theme-preset-swatches span {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 10px rgba(34, 23, 16, 0.08);
}

.theme-preset-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--theme-text-color);
}

.theme-preset-card small,
.field-note,
.settings-shell .help-copy {
    color: var(--theme-muted);
    display: block;
    font-size: 12px;
}

.settings-inline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.settings-inline-grid--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-select {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    box-sizing: border-box;
}

.customize-wrap {
    max-width: 980px;
    margin: calc(var(--header-offset) + 12px) auto 24px;
    padding: 0 20px;
    color: var(--theme-text-color);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    scroll-margin-top: calc(var(--header-offset) + 16px);
}

.admin-shell-offset {
    position: relative;
    z-index: 1;
    margin-top: calc(var(--header-offset) + 12px) !important;
    scroll-margin-top: calc(var(--header-offset) + 16px);
}

.customize-wrap h1 {
    font-size: 22px;
    margin: 0 0 6px;
}

.customize-wrap p.sub {
    color: var(--theme-muted);
    font-size: 13px;
    margin: 0 0 24px;
}

.customize-wrap .notice {
    border-left: 4px solid #ff9800;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    border-radius: 12px;
}

.customize-wrap .notice.ok {
    background: rgba(232, 245, 233, 0.9);
    border-color: #4caf50;
}

.customize-wrap label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-top: 18px;
    margin-bottom: 6px;
}

.customize-wrap textarea {
    width: 100%;
    border: 1px solid rgba(96, 76, 57, 0.18);
    padding: 10px;
    font-family: Menlo, Consolas, monospace;
    font-size: 13px;
    resize: vertical;
}

.customize-wrap textarea[name="custom_home_html"] {
    height: 280px;
}

.customize-wrap textarea[name="custom_css"] {
    height: 200px;
}

.customize-wrap .row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.customize-wrap button {
    padding: 10px 22px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.customize-wrap button.reset {
    background: #888;
}

.customize-wrap small {
    color: var(--theme-muted);
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

@media (min-width: 776px) {
    :root {
        --header-offset: 104px;
    }

    .site-header {
        height: 108px;
    }

    .header-bar {
        padding-top: 12px;
    }

    .header-island {
        min-height: 78px;
        padding: 11px 16px;
    }

    .navbar.nav-island .nav-link {
        padding-inline: 12px;
    }

    .brand-logo-image {
        height: 58px !important;
        max-width: min(190px, 24vw);
    }
}

@media (max-width: 775px) {
    :root {
        --header-offset: 82px;
    }

    .site-header,
    .header-bar,
    .header-island {
        overflow: visible !important;
    }

    .site-header {
        height: 88px;
    }

    .header-bar {
        padding-top: 10px;
    }

    .header-island {
        min-height: 66px;
        padding: 10px 12px;
        gap: 10px;
        border-radius: 24px;
    }

    .header-menu-toggle {
        display: inline-flex;
        order: 4;
    }

    .header-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .brand-logo-image {
        height: 44px;
        max-width: 132px;
    }

    .header-actions {
        gap: 6px;
    }

    .nav-island {
        position: fixed;
        top: calc(var(--header-offset) - 8px);
        right: -120%;
        left: auto;
        width: min(82vw, 300px);
        max-width: 300px;
        height: calc(100dvh - (var(--header-offset) - 8px));
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 4px;
        padding: 12px 10px 22px;
        background: color-mix(in srgb, var(--surface-tint) 88%, white 12%) !important;
        border: 1px solid rgba(255, 255, 255, 0.42) !important;
        border-right: none !important;
        box-shadow: -10px 0 32px rgba(56, 36, 19, 0.16);
        backdrop-filter: blur(18px) saturate(190%);
        border-radius: 22px 0 0 22px;
        opacity: 1;
        pointer-events: none;
        transform: none;
        transition: right 0.28s cubic-bezier(.075, .82, .165, 1);
        overflow-x: visible;
        overflow-y: auto;
        z-index: 130;
    }

    .nav-island.open-menu {
        right: -21px;
        pointer-events: auto;
    }

    .nav-island li {
        width: auto;
    }

    .nav-island .nav-link {
        width: 48px;
        min-width: 0;
        justify-content: center;
        gap: 0;
        padding: 11px;
        border-radius: 999px;
    }

    .nav-island li .nav-link::after {
        display: block;
        top: 50%;
        left: auto;
        right: calc(100% + 12px);
        transform: translate(6px, -50%);
    }

    .nav-island li:hover .nav-link::after,
    .nav-island .nav-link:focus-visible::after,
    .nav-island .nav-link:active::after {
        transform: translate(0, -50%);
    }

    .country-selector-list {
        right: 0;
        left: auto;
    }

    .nav-icon-btn {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 720px) {
    .settings-inline-grid,
    .settings-inline-grid--triple {
        grid-template-columns: 1fr;
    }

    .theme-preset-grid {
        grid-template-columns: 1fr;
    }

    #integrations-grid,
    #tab-catalog > div,
    #tab-countries > div {
        grid-template-columns: 1fr !important;
        display: grid !important;
    }

    .settings-tabbar {
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 6px;
        flex-wrap: nowrap;
    }

    .settings-shell .tab-btn,
    .settings-shell .subtab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .footer-payment-row {
        justify-content: center;
    }
}

@media (max-width: 980px) {
    #integrations-grid,
    #tab-catalog > div {
        grid-template-columns: 1fr !important;
    }
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider,
.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 22px;
    transition: 0.3s;
}

.toggle-switch .slider::before,
.toggle-slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .slider,
.toggle-switch input:checked + .toggle-slider {
    background: var(--primary-color);
}

.toggle-switch input:checked + .slider::before,
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(18px);
}

/* ─── Dark-theme corrections (midnight + onyx) ──────────────────────────────
   The legacy home.php hard-codes Selenyz's brown palette directly in inline
   <style> blocks (#604c39, #ebd8c0, #ffe9cf, etc.). Rather than rewrite that
   file and risk regressing the light themes, we re-skin those selectors here
   so they look intentional in the dark themes too. */

body[data-theme-variant="midnight"],
body[data-theme-variant="onyx"] {
    color: var(--theme-text-color);
    background:
        radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--primary-color) 30%, var(--theme-bg-start)), transparent 65%),
        linear-gradient(180deg, var(--theme-bg-start), var(--theme-bg-mid) 52%, var(--theme-bg-end));
}

body[data-theme-variant="midnight"] .herobara,
body[data-theme-variant="onyx"]     .herobara {
    color: var(--theme-text-color);
    background-image: linear-gradient(rgba(8, 10, 18, 0.78), rgba(8, 10, 18, 0.78)), var(--hero-bg, none);
}
body[data-theme-variant="midnight"] .herobara h1,
body[data-theme-variant="midnight"] .herobara h2,
body[data-theme-variant="midnight"] .herobara p,
body[data-theme-variant="onyx"]     .herobara h1,
body[data-theme-variant="onyx"]     .herobara h2,
body[data-theme-variant="onyx"]     .herobara p {
    color: var(--theme-text-color);
}

body[data-theme-variant="midnight"] .glow-text,
body[data-theme-variant="onyx"]     .glow-text {
    text-shadow: 0 0 14px color-mix(in srgb, var(--primary-color) 60%, white 0%);
}

/* Cards used on home, fragrances, candle pages */
body[data-theme-variant="midnight"] .category-card,
body[data-theme-variant="midnight"] .review-box,
body[data-theme-variant="onyx"]     .category-card,
body[data-theme-variant="onyx"]     .review-box {
    background: var(--theme-card-bg);
    color: var(--theme-text-color);
    border: 1px solid var(--theme-card-border);
    box-shadow: var(--theme-shadow-soft);
}
body[data-theme-variant="midnight"] .category-card h2,
body[data-theme-variant="midnight"] .review-box h4,
body[data-theme-variant="onyx"]     .category-card h2,
body[data-theme-variant="onyx"]     .review-box h4 {
    color: var(--theme-text-color);
}

/* Section headings + horizontal rule */
body[data-theme-variant="midnight"] h1,
body[data-theme-variant="midnight"] h2,
body[data-theme-variant="midnight"] h3,
body[data-theme-variant="onyx"]     h1,
body[data-theme-variant="onyx"]     h2,
body[data-theme-variant="onyx"]     h3 {
    color: var(--theme-text-color);
}
body[data-theme-variant="midnight"] hr,
body[data-theme-variant="onyx"]     hr {
    background-color: color-mix(in srgb, var(--theme-text-color) 60%, transparent 40%);
}

/* Newsletter input box on home page */
body[data-theme-variant="midnight"] #sustonews_form input,
body[data-theme-variant="onyx"]     #sustonews_form input {
    background: var(--theme-card-bg);
    color: var(--theme-text-color);
    outline-color: var(--primary-color);
}
body[data-theme-variant="midnight"] #sustonews_form input::placeholder,
body[data-theme-variant="onyx"]     #sustonews_form input::placeholder {
    color: var(--theme-muted);
}

/* Profile + scrollbar on testimonials */
body[data-theme-variant="midnight"] .profile-img,
body[data-theme-variant="onyx"]     .profile-img {
    border-color: var(--primary-color);
}
body[data-theme-variant="midnight"] .reviews-container::-webkit-scrollbar-thumb,
body[data-theme-variant="onyx"]     .reviews-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}

/* `.black-btn` on home/page bodies — make hover text contrast against dark bg */
body[data-theme-variant="midnight"] .black-btn,
body[data-theme-variant="onyx"]     .black-btn {
    background-color: var(--primary-color);
    color: var(--theme-on-primary);
    border-color: var(--primary-color);
}
body[data-theme-variant="midnight"] .black-btn:hover,
body[data-theme-variant="onyx"]     .black-btn:hover {
    background-color: transparent;
    color: var(--theme-text-color);
}

/* Generic surfaces that hard-coded `#ebd8c0` for backgrounds — neutralise */
body[data-theme-variant="midnight"] .frosty-backdrop,
body[data-theme-variant="onyx"]     .frosty-backdrop {
    background-color: rgba(0, 0, 0, 0.78);
}
