/*
 * Empora theme stylesheet: one file for English and Arabic (LTR and RTL).
 *
 * Layers, in this order. Later tasks add rules to their own layer and never above the tokens:
 *   1. tokens       :root custom properties (brand colours verbatim, type, spacing, stacking)
 *   2. base         reset, typography, links, forms, focus; nop core UI (notifications, loading)
 *   3. utilities    .serif .sr .u .lnk .eyebrow .badge .btn .btn.ghost
 *   4. shell        .ann  .hdr (.hdr.over, .hdr-panel)  .drawer  .ft  .toast
 *   5. components   .rail (.cards .railwrap .float)  .grid  .card  .panel .knot .etile  .sec .sh .act .arw
 *                   (the quick-add sheet and its toast are in empora-checkout.css, section 7)
 *   6. pages        body page classes (mapping below)
 *   7. [dir=rtl]    transforms and icon flips only
 *
 * Rules for every layer:
 *   - mobile first; breakpoints are only @media (min-width:768px) (tablet) and @media (min-width:1280px) (desktop)
 *   - logical properties for everything on the inline axis (margin-inline, inset-inline-start, text-align:start...)
 *   - colours only through the tokens; language-specific values (fonts, letter-spacing) switch with :lang(ar) in
 *     the tokens, not with [dir=rtl]
 *
 * Page classes on <body>: Empora's Views/Shared/_CurrentPageClass.cshtml emits nop's class followed by an alias;
 * style the aliases:
 *   .page-home       home
 *   .page-category   category, manufacturer, vendor and product-tag listings
 *   .page-product    product details
 *   .page-lifestyle  InstaCatalog look pages (/Instalooks/...)
 *   .page-account    customer area (info, addresses, orders, ...)
 *   .page-cart       shopping cart
 *   .page-checkout   checkout
 *   .page-search     search results (the body also carries .page-category: same crumb, tools row, grid, filter panel)
 *   .page-topic      topic pages
 *   .page-content    shared layout of text, form and table pages: the account area, topics, sign in, register, blog,
 *                    contact us, sitemap, wishlist, 404 and the index pages (the fallback for any other page)
 *
 * Header layouts (pure CSS), as the reference: phone = menu + search | logo | icons, the menu in the drawer;
 * from 768px = logo | navigation | icons (the navigation row scrolls sideways, without a scroll bar, when the
 * menu is longer than the space; sub-menus drop down from 1280px). On home the header lies over the hero (.hdr.over).
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
    /* brand */
    --plum: #4B252F;
    --plumdk: #3A1B23;
    --gold: #A78F72;
    --goldlt: #C9B597;
    --ivory: #F6F2EC;
    --sand: #EDE5D9;
    --ink: #241B1E;
    --muted: #5E5357;
    --line: #E2D8CA;
    --bronze: #7A6548;
    /* tints the reference uses */
    --muted2: #6A5F63;       /* card colour name, field labels */
    --stone: #D6CABA;        /* size buttons, inputs */
    --pebble: #8F837D;       /* out of stock */
    --dot: #CFC3B3;          /* gallery dots */
    --white: #FFFFFF;        /* field and option surfaces (the reference's .fl inputs) */
    --scrim: rgba(36, 27, 30, .45);       /* ink: drawer and sheet backdrops */
    --ivory-veil: rgba(246, 242, 236, .92); /* round arrows over images */
    --ivory-line: rgba(246, 242, 236, .6);  /* rule under the hero text */
    --blush: #DFD6D1;                       /* hero cell behind the model (under the logo) */
    --shade-hi: rgba(36, 27, 30, .35);      /* hero gradient: top (under the header), */
    --shade-lo: rgba(36, 27, 30, .55);      /* bottom (under the text) and the clear middle */
    --shade-0: rgba(36, 27, 30, 0);
    --ban-hi: rgba(30, 14, 18, .55);        /* banner caption gradient */
    --ban-0: rgba(30, 14, 18, 0);

    /* type */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: Barlow, system-ui, sans-serif;
    --font-ar: 'IBM Plex Sans Arabic', Barlow, system-ui, sans-serif;
    --font-body: var(--font-sans);
    --tracking: 1;           /* multiplies the wide letter-spacing of caps labels; 0 for Arabic (joined script) */

    /* layout */
    --m: 10px;               /* page gutter: 10px phone, 23px from tablet */
    --ann-h: 34px;
    --hdr-h: 52px;

    /* stacking */
    --z-hdr: 5;
    --z-drawer: 20;
    --z-sheet: 25;
    --z-toast: 30;
}

:root:lang(ar) {
    --font-body: var(--font-ar);
    --font-serif: 'Cormorant Garamond', 'IBM Plex Sans Arabic', Georgia, serif;
    --tracking: 0;
}

@media (min-width: 768px) {
    :root {
        --m: 23px;
    }
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

html,
body {
    margin: 0;
    background: var(--ivory);
}

body {
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 .5em;
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--plum);
}

h1 {
    font-weight: 500;
    font-size: 36px;
    line-height: 1;
}

h2 {
    font-size: 24px;
    line-height: 28px;
}

h3 {
    font-size: 20px;
    line-height: 24px;
}

h4 {
    font-size: 18px;
    line-height: 22px;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--plum);
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--plum);
    outline-offset: 2px;
}

::selection {
    background: var(--sand);
}

@media (min-width: 768px) {
    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 28px;
        line-height: 30px;
    }
}

@media (min-width: 1280px) {
    h1 {
        font-size: 56px;
    }
}

/* nop core UI shown by its scripts: bar notification, "please wait" overlay */
.bar-notification-container {
    position: fixed;
    inset-inline: 0;
    inset-block-start: 0;
    z-index: var(--z-toast);
}

.bar-notification {
    display: none;
    position: relative;
    padding-block: 14px;
    padding-inline: var(--m) 52px;
    background: var(--plum);
    color: var(--ivory);
    font-size: 14px;
}

.bar-notification.error {
    background: var(--ink);
}

.bar-notification .content {
    margin: 0;
}

.bar-notification .content a {
    color: inherit;
    text-decoration: underline;
}

.bar-notification .close {
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 0;
    width: 44px;
    height: 100%;
    cursor: pointer;
}

.bar-notification .close::before {
    content: "\00d7";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 20px;
}

.ajax-loading-block-window {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-toast);
    background: var(--ivory-veil);
}

/* ==========================================================================
   3. Utilities
   ========================================================================== */
.serif {
    font-family: var(--font-serif);
}

.sr,
.ui-helper-hidden-accessible {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.u {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lnk {
    background: none;
    border: 0;
    padding: 12px 0;
    color: var(--plum);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.eyebrow {
    font-size: 12px;
    color: var(--bronze);
    text-transform: uppercase;
    letter-spacing: calc(.14em * var(--tracking));
}

/* "[New in]" label in a corner of a positioned image */
.badge {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    color: var(--plum);
    font-size: 12px;
}

.btn,
.page-content .button-1,
.order-completed-page .button-1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 62px;
    padding: 19px 28px;
    border: 0;
    background: var(--plum);
    color: var(--ivory);
    text-transform: uppercase;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.btn:hover,
.page-content .button-1:hover,
.order-completed-page .button-1:hover {
    background: var(--plumdk);
}

/* nop's secondary buttons (Edit, Delete, Update, Details...) are the ghost look */
.btn.ghost,
.page-content .button-2,
.order-completed-page .button-2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--plum);
    color: var(--plum);
    text-transform: uppercase;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.btn.ghost:hover,
.page-content .button-2:hover,
.order-completed-page .button-2:hover {
    background: var(--plum);
    color: var(--ivory);
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: .5;
    cursor: default;
}

/* ==========================================================================
   4. Shell: announcement, header, drawer, footer, toast
   ========================================================================== */

/* ---- announcement marquee: two identical groups move by half the track, endlessly ---- */
.ann {
    display: flex;
    align-items: center;
    height: var(--ann-h);
    overflow: hidden;
    background: var(--plum);
    color: var(--goldlt);
    font-size: 10.5px;
    letter-spacing: calc(.1em * var(--tracking));
    text-transform: uppercase;
}

.ann .track {
    display: flex;
    width: max-content;
    animation: empora-ann 40s linear infinite;
}

.ann .grp {
    display: flex;
    gap: 28px;
    padding-inline-end: 28px;
    white-space: nowrap;
}

.ann a {
    color: inherit;
}

.ann:hover .track {
    animation-play-state: paused;
}

@keyframes empora-ann {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@keyframes empora-ann-rtl {
    from { transform: translateX(50%); }
    to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .ann .track {
        animation: none;
    }
}

/* ---- header ---- */
.hdr {
    position: relative;
    z-index: var(--z-hdr);
    background: var(--ivory);
    border-block-end: 1px solid var(--line);
}

/* home: over the hero, transparent, ivory navigation and icons (the wordmark stays plum) */
/* it stays in the flow (under the admin bar and the announcement, whatever their height) and the page below
   is pulled up under it by its own height, rather than pinned at a fixed top that the admin bar would overlap */
.hdr.over {
    margin-block-end: calc(-1 * var(--hdr-h));
    background: transparent;
    border-block-end: 0;
}

.hdr-in {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "tools logo icons";
    align-items: center;
    gap: 12px;
    height: var(--hdr-h);
    padding: 4px 6px 0;
}

.hdr .logo {
    grid-area: logo;
    display: block;
}

.hdr .logo img {
    position: relative;
    inset-block-start: 4px;
    width: auto;
    height: 16px;
}

.hdr .tools {
    grid-area: tools;
    display: flex;
    align-items: center;
}

.hdr .nav {
    grid-area: nav;
    display: none;
}

.hdr .icons {
    grid-area: icons;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
}

/* 44px icon button */
.ib {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
}

.hdr.over .ib,
.hdr.over .lang {
    color: var(--ivory);
}

.hdr .shopping-cart-link {
    display: flex;
}

/* bag count */
.hdr .ib > .count {
    position: absolute;
    inset-block-start: 6px;
    inset-inline-end: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--plum);
    color: var(--ivory);
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}

.hdr.over .ib > .count {
    background: var(--ivory);
    color: var(--plum);
}

/* language toggle "EN · عربي" (header from tablet, drawer) */
.lang {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--ink);
}

.lang a {
    color: inherit;
}

/* the drawer marks the current language; the header toggle does not (as the reference) */
.drawer .lang .on {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lang [lang="ar"] {
    font-family: var(--font-ar);
}

/* the reference's "EN · عربي": a word space (.2em) either side of the dot */
.hdr .icons .lang {
    display: none;
    gap: .2em;
    margin-inline: 4px 6px;
}

/* the second search button and the wishlist belong to the wider headers */
.hdr .search-btn.end,
.hdr .wishlist-btn {
    display: none;
}

/* desktop navigation (root categories and topics, one dropdown level) */
.hdr .nav .menu {
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
}

.hdr .nav .menu-item {
    position: relative;
    flex: none;
}

/* items sit at the inline end; an auto margin (unlike justify-content) keeps the start reachable when it scrolls */
.hdr .nav .menu > :first-child {
    margin-inline-start: auto;
}

.hdr .nav .menu > .menu-item > a {
    display: flex;
    align-items: center;
    height: var(--hdr-h);
    color: var(--ink);
    white-space: nowrap;
}

.hdr.over .nav .menu > .menu-item > a {
    color: var(--ivory);
}

/* the current section: the page itself (aria-current="page") or one inside it ("true") */
.hdr .nav a:hover,
.hdr .nav a[aria-current] {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.hdr .nav .menu-sub {
    display: none;
    position: absolute;
    inset-block-start: 100%;
    inset-inline-start: -16px;
    z-index: 1;
    min-width: 200px;
    margin: 0;
    padding: 12px 16px;
    list-style: none;
    background: var(--ivory);
    border: 1px solid var(--line);
}

.hdr .nav .menu-sub a {
    display: block;
    padding: 6px 0;
    color: var(--ink);
}

.hdr .nav .menu-sub .menu-sub {
    display: none;
}

/* panel below the header: search */
.hdr-panel {
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    z-index: 1;
    padding: 16px var(--m) 20px;
    background: var(--ivory);
    border-block: 1px solid var(--line);
}

.hdr-panel[hidden] {
    display: none;
}

/* search open on home: the header turns solid so the panel joins it instead of hanging under the photo */
.hdr.over.panel-open {
    background: var(--ivory);
}

.hdr.over.panel-open .ib,
.hdr.over.panel-open .lang,
.hdr.over.panel-open .nav .menu > .menu-item > a {
    color: var(--ink);
}

.hdr.over.panel-open .ib > .count {
    background: var(--plum);
    color: var(--ivory);
}

.hdr-search form {
    display: flex;
    gap: 12px;
    max-width: 640px;
    margin-inline: auto;
}

.hdr-search .search-box-text {
    flex: 1;
    min-width: 0;
    height: 43px;
    padding: 10px 0;
    border: 0;
    border-block-end: 1px solid var(--ink);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
    outline: none;
}

.hdr-search .search-box-button {
    min-height: 43px;
    padding: 0 20px;
    border: 0;
    background: var(--plum);
    color: var(--ivory);
    font-size: 13px;
    text-transform: uppercase;
}

.hdr-search .search-box {
    position: relative;
    max-width: 640px;
    margin-inline: auto;
}

/* the suggestions float under the field (jQuery UI writes inline top/left/width, hence !important),
   a short scrolling list, so the panel itself stays one row high */
.hdr-search .ui-autocomplete {
    position: absolute !important;
    inset-block-start: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2;
    width: auto !important;
    max-height: min(60vh, 432px);
    margin: 0;
    padding: 8px 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    background: var(--ivory);
    border: 1px solid var(--line);
    box-shadow: 0 24px 48px -24px rgba(26, 20, 22, .35);
}

.hdr-search .ui-autocomplete span {
    font-size: 13px;
}

.hdr-search .ui-autocomplete a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    color: var(--ink);
    cursor: pointer;
}

.hdr-search .ui-autocomplete img {
    width: 40px;
    height: 50px;
    object-fit: cover;
    background: var(--sand);
}

.hdr-search .ui-state-active,
.hdr-search .ui-autocomplete a:hover {
    background: var(--sand);
}

@media (min-width: 768px) {
    .ann {
        font-size: 11px;
        letter-spacing: calc(.12em * var(--tracking));
    }

    .hdr-in {
        gap: 32px;
        padding: 0 var(--m);
    }

    .hdr .logo img {
        inset-block-start: 3px;
        height: 20px;
    }

    .hdr .icons {
        gap: 2px;
    }

    .hdr .icons .lang,
    .hdr .wishlist-btn {
        display: flex;
    }

    /* logo | navigation | icons */
    .hdr-in {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "logo nav icons";
    }

    .hdr .tools {
        display: none;
    }

    .hdr .nav,
    .hdr .search-btn.end {
        display: flex;
    }

    .hdr .nav {
        min-width: 0;
    }

    /* a long menu scrolls sideways inside its row, never the page */
    .hdr .nav .menu {
        flex: 1;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hdr .nav .menu::-webkit-scrollbar {
        display: none;
    }
}

@media (min-width: 1280px) {
    /* wide screens: the row no longer scrolls, so the sub-menus can drop down */
    .hdr .nav .menu {
        overflow-x: visible;
    }

    .hdr .nav .menu > .has-sub:hover > .menu-sub,
    .hdr .nav .menu > .has-sub:focus-within > .menu-sub {
        display: block;
    }
}

/* ---- drawer (phone): slides in from the inline-start side ---- */
.drawer {
    position: fixed;
    inset: 0;
    z-index: var(--z-drawer);
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear .3s;
}

.drawer.open {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

html.drawer-open {
    overflow: hidden;
}

.drawer .bg {
    position: absolute;
    inset: 0;
    background: var(--scrim);
    opacity: 0;
    transition: opacity .3s;
}

.drawer.open .bg {
    opacity: 1;
}

.drawer .pane {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: min(86vw, 340px);
    padding: 16px 20px;
    overflow-y: auto;
    background: var(--ivory);
    transition: transform .3s ease;
}

.drawer:not(.open) .pane {
    transform: translateX(-100%);
}

.drawer .drawer-close {
    align-self: flex-end;
    flex: none;
}

.drawer .menu,
.drawer .menu-sub {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.drawer .drawer-home,
.drawer .menu > .menu-item > a {
    display: block;
    padding: 8px 0;
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--plum);
}

.drawer .menu-sub {
    gap: 2px;
    margin-block-end: 8px;
}

.drawer .menu-sub a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: var(--ink);
}

.drawer .menu-sub .menu-sub {
    display: none;
}

.drawer .drawer-foot {
    margin-block-start: auto;
    padding-block-start: 16px;
}

.drawer .lang {
    font-size: 13px;
    color: var(--muted);
}

/* ---- side drawer (account): slides in from the inline-end side, as the bag does; full width on phones ---- */
.side-drawer {
    position: fixed;
    inset: 0;
    z-index: var(--z-drawer);
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear .3s;
}

.side-drawer.open {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.side-drawer .bg {
    position: absolute;
    inset: 0;
    background: var(--scrim);
    opacity: 0;
    transition: opacity .3s;
}

.side-drawer.open .bg {
    opacity: 1;
}

.side-drawer .pane {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    display: flex;
    flex-direction: column;
    width: min(100%, 440px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--ivory);
    color: var(--ink);
    transition: transform .3s ease;
}

.side-drawer:not(.open) .pane {
    transform: translateX(100%);
}

.sd-head {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    padding: 16px var(--m) 4px;
}

.sd-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.1;
    color: var(--plum);
}

/* not an .ib: the header's icon buttons are measured, and the transparent home header colours them ivory */
.sd-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-inline-end: -10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--plum);
    cursor: pointer;
}

.sd-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 20px;
    padding: 12px var(--m) calc(24px + env(safe-area-inset-bottom, 0px));
}

.acct-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.acct-benefits,
.acct-hello {
    margin: 0;
}

.acct-benefits {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}

.acct-hello {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--plum);
}

.acct-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.acct-actions .btn {
    width: 100%;
}

.acct-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-block-start: 1px solid var(--line);
}

.acct-list li {
    border-block-end: 1px solid var(--line);
}

.acct-list a {
    display: block;
    padding: 13px 0;
    font-size: 15px;
    color: var(--plum);
}

.acct-list a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* currency and language, under a hairline */
.acct-prefs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-block-start: auto;
    padding-block-start: 18px;
    border-block-start: 1px solid var(--line);
}

.sel-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sel-label {
    font-size: 11px;
    letter-spacing: calc(.12em * var(--tracking));
    text-transform: uppercase;
    color: var(--muted);
}

.seg {
    display: flex;
    border: 1px solid var(--stone);
}

.seg > a,
.seg > span {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
    text-align: center;
    color: var(--ink);
}

.seg > * + * {
    border-inline-start: 1px solid var(--stone);
}

.seg > .on {
    background: var(--plum);
    color: var(--ivory);
}

.seg [lang="ar"] {
    font-family: var(--font-ar);
}

/* the select fallback (more than four currencies, or languages): the theme's look, chevron on the inline-end side (flips in RTL) */
.acct-prefs select.sel {
    width: 100%;
    height: 44px;
    padding-block: 0;
    padding-inline: 12px 40px;
    border: 1px solid var(--stone);
    border-radius: 0;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%234B252F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    color: var(--ink);
    font-size: 14px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.acct-prefs select.sel:focus-visible {
    outline: 2px solid var(--plum);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .sd-head {
        padding: 22px 24px 6px;
    }

    .sd-title {
        font-size: 32px;
    }

    .sd-body {
        padding-inline: 24px;
    }
}

/* phones: the account panel is a small card under the header, like search (account, currency, language),
   not a full-height drawer. --acct-top is the header's bottom edge, set by empora.js when it opens */
@media (max-width: 767px) {
    .hdr .acct-drawer .bg {
        inset-block-start: var(--acct-top, 0px);
    }

    .hdr .acct-drawer .pane {
        inset-block: var(--acct-top, 0px) auto;
        inset-inline: 0;
        width: auto;
        max-height: calc(100dvh - var(--acct-top, 0px) - 24px);
        border-block: 1px solid var(--line);
        box-shadow: 0 24px 48px -24px rgba(26, 20, 22, .35);
        transition: transform .2s ease, opacity .2s ease;
    }

    .hdr .acct-drawer.side-drawer:not(.open) .pane {
        transform: translateY(-8px);
        opacity: 0;
    }

    .acct-drawer .sd-head {
        padding: 8px var(--m) 0;
    }

    .acct-drawer .sd-title {
        font-size: 20px;
    }

    .acct-drawer .sd-body {
        flex: none;
        gap: 14px;
        padding: 4px var(--m) 18px;
    }

    .acct-drawer .acct-links {
        gap: 12px;
    }

    .acct-drawer .acct-benefits {
        display: none;
    }

    .acct-drawer .acct-hello {
        font-size: 20px;
    }

    .acct-drawer .acct-actions {
        flex-direction: row;
    }

    .acct-drawer .acct-actions .btn {
        flex: 1 1 0;
        min-width: 0;
    }

    .acct-drawer .acct-list a {
        padding: 10px 0;
        font-size: 14px;
    }

    .acct-drawer .acct-prefs {
        gap: 12px;
        margin-block-start: 0;
        padding-block-start: 14px;
    }

    /* home: the transparent header turns solid while the card hangs under it */
    .hdr.over.acct-open {
        background: var(--ivory);
    }

    .hdr.over.acct-open .ib {
        color: var(--ink);
    }

    .hdr.over.acct-open .ib > .count {
        background: var(--plum);
        color: var(--ivory);
    }
}

@media (prefers-reduced-motion: reduce) {
    .side-drawer,
    .side-drawer .bg,
    .side-drawer .pane {
        transition: none;
    }
}

/* ---- footer ---- */
.ft {
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    background: var(--ivory);
    border-block-start: 1px solid var(--line);
}

.ft .cols {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 28px 22px 12px;
    background: var(--ivory);
    border-radius: 16px 16px 0 0;
}

.ft ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ft li {
    line-height: 21px;
}

.ft li a {
    color: var(--plum);
    font-size: 14px;
    font-weight: 500;
}

.ft li a:hover {
    color: var(--bronze);
}

.ft .copy {
    margin: 0;
    padding: 12px 22px 24px;
    background: var(--ivory);
    border-radius: 0 0 16px 16px;
    color: var(--plum);
    font-size: 11px;
    text-align: center;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .ft {
        padding: 28px var(--m);
    }

    .ft .cols {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 48px;
        padding: 40px 40px 24px;
    }

    .ft .cols ul {
        flex: 0 1 260px;
    }

    .ft .copy {
        padding: 16px 40px 32px;
    }
}

/* ---- toast: window.Empora.toast(message) ---- */
.toast {
    position: fixed;
    inset-inline-start: 50%;
    inset-block-end: 110px;
    z-index: var(--z-toast);
    max-width: calc(100% - 32px);
    padding: 14px 22px;
    background: var(--plum);
    color: var(--ivory);
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity .25s;
}

.toast.show {
    opacity: 1;
}

/* ==========================================================================
   5. Components: .rail (horizontal scroller), .grid (product grid), .card (product card)
   The product card task fills in the card; these are the reference's base rules.
   ========================================================================== */
.rail {
    display: grid;
    grid-auto-flow: column;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.rail::-webkit-scrollbar {
    display: none;
}

.rail > * {
    scroll-snap-align: start;
}

/* .grid is the markup contract; the listing pages' .item-grid gets the same rules because the AjaxFilters widget
   replaces the server markup with its own .product-grid > .item-grid (no .grid class) */
.grid,
.product-grid > .item-grid,
.product-list > .item-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 2px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--ink);
}

.card .im {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--ivory);
}

.card .im img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .35s;
}

.card .im img.alt {
    position: absolute;
    inset: 0;
    opacity: 0;
}

@media (hover: hover) {
    .card:hover .im img.alt {
        opacity: 1;
    }
}

.card .info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 8px 0;
    font-size: 13px;
    line-height: 19.5px;
}

.card .info .c {
    color: var(--muted2);
}

/* the name is the card's one link, stretched over the whole card (the quick-add trigger sits above it) */
.card .product-title {
    margin: 0;
    font-family: var(--font-body);
    font-size: inherit;
    font-weight: 500;
    line-height: inherit;
    color: inherit;
}

.card .product-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    color: inherit;
}

.card .product-title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.card .prices {
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
}

.card .old-price {
    color: var(--muted2);
    text-decoration: line-through;
}

.card .im.no-stock > img:first-child {
    opacity: .55;
}

/* quick add-to-cart trigger (opens the size sheet): plum on ivory, 40px, bottom inline-end corner of the image */
.card .product-box-add-to-cart-button {
    position: absolute;
    inset-block-end: 8px;
    inset-inline-end: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ivory-veil);
    color: var(--plum);
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.card .product-box-add-to-cart-button:hover {
    background: var(--plum);
    color: var(--ivory);
}

.card .product-box-add-to-cart-button.is-loading {
    opacity: .5;
    pointer-events: none;
}

/* list view: image beside the text */
.grid.is-list,
.product-list > .item-grid {
    grid-template-columns: minmax(0, 1fr);
}

.grid.is-list .card,
.product-list .card {
    flex-direction: row;
    gap: 14px;
}

.grid.is-list .card .im,
.product-list .card .im {
    flex: 0 0 120px;
}

.grid.is-list .card .info,
.product-list .card .info {
    justify-content: center;
    padding-block: 0;
}

/* a rail of cards: phone shows about 1.5 cards with snap, tablet and up four with arrows */
.cards {
    grid-auto-columns: min(300px, 65%);
    gap: 1px;
}

.railwrap {
    position: relative;
}

.float {
    display: none;
    position: absolute;
    inset-block-start: calc(50% - 48px);
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ivory-veil);
    color: var(--plum);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.float.prev {
    inset-inline-start: 24px;
}

.float.next {
    inset-inline-end: 24px;
}

/* section: header (title + text, then "Show all" and the arrows) over a rail or grid */
.sec {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-block: 40px;
}

.sh {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-inline: var(--m);
}

.sh h2 {
    margin: 0;
    font-size: 24px;
    line-height: 28px;
}

.sh p {
    margin: 2px 0 0;
    font-size: 14px;
    line-height: 21px;
    color: var(--muted);
}

.act {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.act .lnk {
    white-space: nowrap;
}

.arws {
    display: none;
    gap: 4px;
}

.arw {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--plum);
    cursor: pointer;
}

/* "Show all" turns the rail into a grid: no arrows */
.sec.is-grid .arws,
.sec.is-grid .float {
    display: none;
}

.sec .grid {
    padding-inline: 2px;
}

/* ProductTags collections (plugin widget): title, rail of cards, "show all" button */
.pcollectionMainWrapper {
    padding-block: 24px;
}

/* a product collection is a section: same 40px block padding as .sec (the rule above is for the plugin's other boxes) */
.pcollectionMainWrapper.sec {
    padding-block: 40px;
}

.pcollectionMainWrapper .collection-title {
    margin: 0;
    padding: 0 var(--m) 16px;
    font-size: 28px;
    line-height: 30px;
}

/* in the section header the title follows .sh h2 (24px on phones, 28px from 768px) */
.pcollectionMainWrapper .sh .collection-title {
    padding: 0;
    font-size: 24px;
    line-height: 28px;
}

.pcollectionMainWrapper .buttons-top,
.pcollectionMainWrapper .buttons.bottom {
    padding: 16px var(--m) 0;
}

/* knot pattern and plum panel: the editorial tile of the shop grid, banners on home */
.knot {
    background: var(--gold) url("../images/knot-tile.png") repeat;
    background-size: 70px 103px;
}

.panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: 360px;
    padding: 28px 24px;
    background: var(--plum);
    text-align: start;
}

.panel .t {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
    color: var(--ivory);
}

.panel .l {
    font-size: 14px;
    line-height: 21px;
    color: var(--goldlt);
}

.panel .u {
    font-size: 14px;
    color: var(--ivory);
}

.etile {
    display: flex;
    align-items: flex-end;
    grid-column: 1 / -1;
    min-height: 170px;
}

.etile .panel {
    gap: 6px;
    margin: 8px;
    padding: 16px 18px;
}

.etile .panel .t {
    font-size: 26px;
}

/* picture tile: the category / manufacturer picture fills the cell, the plum panel is its caption */
.etile-pic {
    position: relative;
    overflow: hidden;
    background: var(--plum);
}

.etile-pic > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.etile-pic .panel {
    position: relative;
}

.etile-pic .panel .t {
    margin: 0;
}

.etile-pic .panel .l {
    margin: 0;
}

@media (min-width: 768px) {
    .grid,
    .product-grid > .item-grid,
    .product-list > .item-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
    }

    .cards {
        grid-auto-columns: calc((100% - 6px) / 4);
        gap: 2px;
    }

    .float {
        display: flex;
    }

    .arws {
        display: flex;
    }

    .sh h2,
    .pcollectionMainWrapper .sh .collection-title {
        font-size: 28px;
        line-height: 30px;
    }

    .panel {
        padding: 48px 40px;
    }

    .panel .t {
        font-size: 40px;
    }

    .etile {
        grid-column: span 2;
        min-height: 300px;
    }

    .etile .panel {
        gap: 14px;
        margin: 23px;
        max-width: 340px;
        padding: 32px;
    }

    .etile .panel .t {
        font-size: 36px;
    }
}

/* ==========================================================================
   6. Pages (body classes, see the mapping at the top)
   ========================================================================== */

/* every page: the content column */
.master-wrapper-content {
    display: block;
    min-width: 0;
}

/* .page-home: hero and rails. The banners (AnywhereSliders) and experience tiles (Branches plugin) carry their own CSS. */
.page-home .fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* hero: the model photo drops below the logo (hz); a second photo from 768px; text over a gradient */
.page-home .hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    background: var(--plumdk);
    overflow: hidden;
}

.page-home .hero .cell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
}

.page-home .hero .cell.hz {
    aspect-ratio: auto;
    padding-block-start: 62px;
    background: var(--blush);
}

.page-home .hero .cell.hz .fill {
    position: relative;
    inset: auto;
    display: block;
    height: auto;
    aspect-ratio: 2 / 3;
}

.page-home .hero .cell.b {
    display: none;
    aspect-ratio: auto;
}

.page-home .shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--shade-hi) 0%, var(--shade-0) 22%, var(--shade-0) 55%, var(--shade-lo) 100%);
    pointer-events: none;
}

.page-home .hero .txt {
    position: absolute;
    inset-inline-start: 16px;
    inset-block-end: 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--ivory);
}

.page-home .hero h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1;
    color: var(--ivory);
}

.page-home .hero .txt a {
    color: var(--ivory);
    font-size: 16px;
}

.page-home .hero .rule,
.page-home .hero .sub {
    display: none;
}

.page-home .hero .rule {
    width: 280px;
    height: 1px;
    margin-block: 24px;
    background: var(--ivory-line);
}

/* "Show all" toggle and header of the New in section */
.page-home .pcollectionMainWrapper.sec {
    padding-block-start: 20px;
}

@media (min-width: 768px) {
    .page-home .hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-home .hero .cell.hz {
        padding-block-start: 84px;
    }

    .page-home .hero .cell.b {
        display: block;
    }

    .page-home .hero .txt {
        inset-inline-start: 48px;
        inset-block-end: 56px;
    }

    .page-home .hero h1 {
        font-size: 56px;
    }

    .page-home .hero .rule {
        display: block;
    }

    .page-home .hero .sub {
        display: block;
        font-size: 16px;
    }

    .page-home .hero .sub.serif {
        font-size: 40px;
        line-height: 1;
    }
}

/* .page-category: breadcrumb, tabs, tools, grid, pager, filter panel (category, manufacturer, vendor, tag and search listings) */
.page-category .crumb,
.page-product .crumb,
.page-content .breadcrumb {
    padding: 15px var(--m) 7px;
    font-size: 12px;
    line-height: 18px;
    color: var(--muted);
}

.page-category .crumb ol,
.page-product .crumb ol,
.page-content .breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-category .crumb li,
.page-product .crumb li,
.page-content .breadcrumb li {
    display: flex;
    gap: 6px;
}

.page-category .crumb a,
.page-product .crumb a,
.page-content .breadcrumb a {
    color: var(--muted);
}

.page-category .crumb .current-item,
.page-product .crumb .current-item,
.page-content .breadcrumb .current-item {
    font-weight: 500;
    color: var(--ink);
}

.tabs {
    display: flex;
    height: 47px;
    margin: 10px 2px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 0 12px;
    border-block-end: 2px solid transparent;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.tab.on {
    border-block-end-color: var(--plum);
}

.product-selectors {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    padding-inline: var(--m);
    font-size: 13px;
    color: var(--muted);
}

.product-selectors .count {
    white-space: nowrap;
}

/* the AjaxFilters stylesheet adds clearfix ::after boxes (extra flex items) and a 0 5px margin to these */
.product-selectors::after,
.product-sorting::after,
.product-viewmode::after {
    content: none;
}

.product-selectors > div,
.product-selectors .product-sorting,
.product-selectors .product-viewmode {
    margin: 0;
}

.product-selectors .tools-end {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-selectors .tool-btn {
    min-height: 44px;
    padding: 0 8px;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}

.product-selectors .product-viewmode {
    display: flex;
}

.product-selectors .viewmode-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--pebble);
}

.product-selectors .viewmode-icon.selected {
    color: var(--plum);
}

.product-selectors .product-sorting {
    position: relative;
}

/* sort: a popover of radio rows under the "Sort by" button (the radios are what the AjaxFilters widget reads) */
.product-selectors .sorting-form {
    position: absolute;
    inset-block-start: 100%;
    inset-inline-end: 0;
    z-index: 3;
    display: none;
    min-width: 220px;
    border: 1px solid var(--line);
    background: var(--ivory);
}

.product-selectors .sortfilter-open .sorting-form {
    display: block;
}

.product-selectors .sorting-form fieldset {
    margin: 0;
    padding: 4px 0;
    border: 0;
}

.product-selectors .inputlabel {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    color: var(--ink);
    font-size: 14px;
    cursor: pointer;
}

.product-selectors .inputlabel input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-selectors .inputlabel input:checked + span {
    color: var(--plum);
    font-weight: 600;
}

.product-selectors .inputlabel input:focus-visible + span {
    outline: 2px solid var(--plum);
    outline-offset: 4px;
}

.product-grid .item-box,
.product-list .item-box {
    display: contents;
}

.page-category .pager {
    padding: 48px var(--m) 64px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.page-category .pager ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-category .pager li a,
.page-category .pager li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
}

.page-category .pager li.current-page span {
    color: var(--ink);
    border-block-end: 2px solid var(--plum);
}

.page-category .no-result,
.page-category .warning {
    padding: 48px var(--m);
    text-align: center;
    color: var(--muted);
}

.page-category .featured-product-grid {
    margin-block-end: 24px;
}

/* the categories are the tabs; nop's side blocks (category navigation, recently viewed...) are not part of the listing */
.page-category .blocks-wrapper,
.page-category .filter-opener {
    display: none;
}

/* filters: a panel from the inline end, opened by the Filter button in the tools row (body.filters-open) */
.page-category .filters-holder {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: var(--z-sheet);
    width: min(360px, 100%);
    padding: 20px;
    overflow-y: auto;
    background: var(--ivory);
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .3s, visibility 0s linear .3s;
}

.page-category .overlaybox {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-sheet) - 1);
    background: var(--scrim);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.filters-open .filters-holder {
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

.filters-open .overlaybox {
    opacity: 1;
    pointer-events: auto;
}

.filters-open {
    overflow: hidden;
}

.page-category .filtersTitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-block-end: 16px;
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--plum);
}

/* the lists inside (blocks, check boxes, swatches, sliders) are the plugin's Empora skin: Plugins/Widgets.AjaxFilters/Themes/Empora/Content/AjaxFilters.css */
.page-category .filters-holder .close-filters {
    display: none;
}

.page-category .filter-close {
    width: 44px;
    height: 44px;
    overflow: hidden;
    font-size: 0;
    cursor: pointer;
}

.page-category .filter-close::before {
    content: "\00d7";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-family: var(--font-sans);
    font-size: 28px;
    font-weight: 400;
}

@media (min-width: 768px) {
    .tabs {
        margin: 18px 4px 0;
    }

    .tab {
        padding: 0 19px;
    }

    .product-grid > .item-grid,
    .product-list > .item-grid {
        padding-inline: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-category .filters-holder,
    .page-category .overlaybox {
        transition: none;
    }
}

/* .page-product: breadcrumb (from 768px), .pdp = .pgal (gallery) + .right (buy box) + .left (accordions), the rails,
   the phone sticky bar and the size guide. Phone: one column in that order, the gallery a swipe rail with dots.
   From 768px: the reference's accordions | gallery | buy box (322fr / 644fr / 322fr, side columns sticky). */
.page-product {
    padding-block-end: 68px; /* room for the sticky bar over the footer */
}

.page-product .crumb {
    display: none;
}

.pdp {
    display: flex;
    flex-direction: column;
}

/* gallery: a rail on phone, a column of 4:5 pictures from 768px */
.pgal {
    position: relative;
    min-width: 0;
}

.gal {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.gal::-webkit-scrollbar {
    display: none;
}

.gal:focus-visible {
    outline-offset: -2px;
}

.gal .g {
    position: relative;
    margin: 0;
    height: 469px;
    overflow: hidden;
    background: var(--ivory);
    scroll-snap-align: start;
}

.gal .g[hidden] {
    display: none;
}

.gal .g img,
.gal .g video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dots {
    position: absolute;
    inset-block-end: 4px;
    inset-inline: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.dots button {
    width: 18px;
    height: 24px;
    padding: 0;
    border: 0;
    background: linear-gradient(var(--dot), var(--dot)) center / 100% 2px no-repeat;
}

.dots button[aria-current="true"] {
    background-image: linear-gradient(var(--plum), var(--plum));
}

/* buy box */
.pdp .right {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px var(--m) 0;
}

.pbadge {
    display: none;
    font-size: 12px;
    color: var(--plum);
}

.ptitle {
    margin: 6px 0 0;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 26px;
    line-height: 28px;
    color: var(--plum);
    overflow-wrap: anywhere;
}

.pdp .prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    font-size: 16px;
    line-height: 24px;
}

.pdp .prices s {
    color: var(--muted);
}

.pdp .base-price-pangv,
.pdp .tax-shipping-info {
    flex-basis: 100%;
    font-size: 12px;
    color: var(--muted);
}

.pdp .product-reviews-overview {
    font-size: 13px;
}

.pdp .product-review-box {
    display: none;
}

.pdp .product-review-links a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.pdp .discontinued-product h4 {
    margin: 8px 0 0;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--bronze);
}

.lbl {
    font-size: 14px;
    line-height: 21px;
}

.pdp .opt {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-block-start: 16px;
}

.pdp .opt-colour {
    margin-block-start: 23px;
}

.pdp .opt[hidden] {
    display: none;
}

.sw-label .v {
    color: var(--muted);
}

/* colour swatches */
.sw {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.sw button {
    flex: 0 0 44px;
    height: 55px;
    padding: 0;
    border: 1px solid transparent;
    background: var(--sand);
    overflow: hidden;
}

.sw button.on {
    border-color: var(--plum);
}

.sw img,
.sw .chip {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* sizes: four per row */
.opt-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 12px;
}

.size-guide-link {
    padding: 12px 0;
    border: 0;
    background: none;
    color: var(--plum);
    font-size: 13px;
}

.sizes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.sizes button {
    min-height: 48px;
    padding: 4px;
    border: 1px solid var(--stone);
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
}

.sizes button.on {
    border-color: var(--plum);
    background: var(--plum);
    color: var(--ivory);
}

.sizes button.out {
    color: var(--pebble);
    text-decoration: line-through;
}

.sizes button.out.on {
    color: var(--ivory);
}

.sizes button:disabled {
    cursor: default;
}

/* any other attribute: nop's controls */
.pdp .opt-other select,
.pdp .opt-other .textbox,
.pdp .opt-other textarea {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--stone);
    border-radius: 0;
    background: transparent;
}

.pdp .select-wrap .select-box {
    display: none;
}

.pdp .opt-other .option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pdp .opt-other .required {
    color: var(--bronze);
}

.note {
    min-height: 20px;
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 20px;
    color: var(--bronze);
}

.note.warn {
    color: var(--plum);
}

/* quantity, CTA, wishlist */
.pdp .buy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-block-start: 12px;
}

.pdp .add-to-cart-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdp .qty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    font-size: 14px;
}

.pdp .common-buttons-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--stone);
}

.pdp .common-buttons-wrapper button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: 18px;
}

.pdp .qty-input {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    text-align: center;
}

.pdp .qty-dropdown {
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--stone);
    background: transparent;
}

.pdp .add-to-cart-button,
.pdp .add-to-wishlist-button {
    width: 100%;
}

.pdp .add-to-wishlist,
.pdp .overview-buttons:empty {
    display: none;
}

.pdp .min-qty-notification,
.pdp .pre-order-availability-date,
.pdp .customer-entered-price {
    font-size: 13px;
    color: var(--muted);
}

/* "✓" ticks: from 768px */
.feat {
    display: none;
    flex-direction: column;
    gap: 3px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    line-height: 20px;
}

.feat li::before {
    content: "\2713";
    content: "\2713" / "";
    margin-inline-end: 6px;
}

/* accordions */
.pdp .left {
    min-width: 0;
    margin-block-start: 24px;
    padding-inline: var(--m);
}

.pdp-acc details {
    border-block-start: 1px solid var(--line);
}

.pdp-acc details:last-child {
    border-block-end: 1px solid var(--line);
}

.pdp-acc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 6px 0;
    font-size: 15.6px;
    line-height: 22px;
    list-style: none;
    cursor: pointer;
}

.pdp-acc summary::-webkit-details-marker {
    display: none;
}

.pdp-acc summary::after {
    content: "+";
    color: var(--muted);
}

.pdp-acc details[open] summary::after {
    content: "\2013";
}

.acc-b {
    padding-block-end: 20px;
    padding-inline-end: 4px;
    font-size: 14px;
    line-height: 21px;
    color: var(--muted);
}

.acc-b > :last-child {
    margin-block-end: 0;
}

.acc-b h3 {
    margin: 8px 0 4px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.specs {
    margin: 0;
}

.specs .spec {
    display: flex;
    flex-wrap: wrap;
    gap: 0 6px;
}

.specs dt {
    color: var(--ink);
}

.specs dt::after {
    content: ":";
}

.specs dd {
    margin: 0;
}

.specs .chip {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

/* widgets rendered into the product grid take a whole row */
.pdp > :not(.pgal):not(.right):not(.left) {
    flex-basis: 100%;
}

/* sticky bar (phone), as the sample: the last element of the product content, stuck to the bottom of the screen from load
   and resting above the footer at the end of the page (never over it) */
.pdp-sticky {
    position: sticky;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: auto;
    padding: 10px;
    background: var(--ivory);
    border-top: 1px solid var(--line);
}

.sinfo {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    font-size: 15px;
}

.sname {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pdp-sticky .btn {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 28px;
}

/* size guide */
.size-guide {
    width: min(92vw, 720px);
    max-height: 90vh;
    padding: 0 0 16px;
    border: 0;
    background: var(--ivory);
    color: var(--ink);
}

.size-guide::backdrop {
    background: var(--scrim);
}

.sg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 8px;
    padding-inline: 16px 4px;
}

.sg-head h2 {
    margin: 0;
}

/* the EmporaSizeGuide topic: a note and a size table */
.sg-body {
    padding-inline: 16px;
    font-size: 14px;
    line-height: 21px;
}

.sg-body p {
    margin: 0 0 12px;
    color: var(--muted);
}

.sg-body img {
    margin-inline: auto;
}

.sg-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.sg-table caption {
    padding-block-end: 8px;
    text-align: start;
    font-weight: 600;
}

.sg-table th,
.sg-table td {
    padding: 8px 12px;
    border-block-end: 1px solid var(--line);
    text-align: start;
}

.sg-table th {
    font-weight: 600;
    color: var(--plum);
}

/* the rails under the product */
.pdp-also,
.pdp-also-purchased {
    padding-block-start: 48px;
}

@media (min-width: 768px) {
    .page-product {
        padding-block-end: 0;
    }

    .page-product .crumb {
        display: block;
    }

    /* the reference's three columns from 768px: accordions | gallery | buy box, side columns sticky */
    .pdp {
        display: grid;
        grid-template-columns: minmax(0, 322fr) minmax(0, 644fr) minmax(0, 322fr);
        align-items: start;
        gap: 48px 53px;
        padding: 24px var(--m) 16px;
    }

    .pdp > :not(.pgal):not(.right):not(.left) {
        grid-column: 1 / -1;
    }

    .pdp .left {
        grid-column: 1;
        grid-row: 1;
        position: sticky;
        inset-block-start: 24px;
        margin: 0;
        padding: 340px 0 0;
    }

    .pgal {
        grid-column: 2;
        grid-row: 1;
    }

    .pdp .right {
        grid-column: 3;
        grid-row: 1;
        position: sticky;
        inset-block-start: 24px;
        padding: 52px 0 0;
    }

    .gal {
        display: flex;
        flex-direction: column;
        gap: 24px;
        overflow: visible;
    }

    .gal .g {
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .dots,
    .pgal .badge,
    .pdp-sticky {
        display: none;
    }

    .pbadge {
        display: block;
    }

    .ptitle {
        margin-block-start: 19px;
        font-size: 28px;
        line-height: 30px;
    }

    .sw {
        flex-wrap: wrap;
        overflow: visible;
    }

    .sw button {
        flex: 0 0 38px;
        width: 38px;
        height: 48px;
    }

    .sizes button {
        min-height: 44px;
        font-size: 14px;
    }

    .pdp .add-to-wishlist,
    .feat {
        display: flex;
    }

    .pdp-acc summary {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gal {
        scroll-behavior: auto;
    }
}

/* .page-lifestyle: InstaCatalog looks (lifestyle task) */

/* .page-content: every text, form and table page that is not a product listing, product, cart or checkout page:
   sign in, register, password recovery, the account area (.page-account), topics (.page-topic), blog, news, wishlist,
   contact us, sitemap, 404, manufacturer / vendor / tag indexes. Form fields, buttons and labels reuse the cart and
   checkout styles (empora-checkout.css section 1 and .btn / .btn.ghost above): nothing is redrawn here. */
.page-content .master-column-wrapper {
    max-width: 1180px;
    margin-inline: auto;
    padding: 20px var(--m) 72px;
}

.page-content .center-1,
.page-content .center-2 {
    min-width: 0;
}

/* nop's side blocks (category navigation, recently viewed...) are not part of these pages; the account menu stays */
.page-content:not(.page-account) .side-2,
.page-content .blocks-wrapper,
.page-content .filter-opener,
.page-content .filters-holder,
.page-content .overlaybox {
    display: none;
}

.page-content .page-title,
.page-content .collection-title {
    margin: 8px 0 24px;
}

/* a feed link (RSS) sits at the end of the title row */
.page-content .page-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 16px;
}

.page-content .link-rss {
    order: 2;
    margin-inline-start: auto;
    color: var(--muted);
    font-size: 12px;
}

.page-content .page-title h1,
.page-content .collection-title h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
}

.page-content .collection-title h1 strong {
    font-weight: inherit;
}

.page-content p {
    line-height: 1.7;
}

/* links inside running text are underlined; lists, cards and titles are not */
.page-topic .page-body a,
.not-found-page .page-body a,
.page-content .tooltip a,
.page-content .no-data a,
.post-body a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* the container already pads the crumb */
.page-content .breadcrumb {
    padding-inline: 0;
}

.page-content .no-data {
    padding: 40px 0;
    color: var(--muted);
}

/* sections of a form: Cormorant title over a --line rule */
.page-content .fieldset {
    margin: 0 0 28px;
}

.page-content .fieldset .title,
.page-content .customer-blocks .title {
    margin: 0 0 16px;
    padding-block-end: 10px;
    border-block-end: 1px solid var(--line);
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--plum);
}

.page-content .fieldset .title strong,
.page-content .customer-blocks .title strong {
    font-weight: inherit;
}

/* a row: label (the reference's .fl) over the field, the asterisk beside the field, the message under it */
.page-content .inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
    align-items: center;
    margin: 0 0 16px;
}

.page-content .inputs > label {
    grid-column: 1 / -1;
    margin: 0 0 6px;
    color: var(--muted2);
    font-size: 12px;
    font-weight: 500;
}

.page-content .inputs .required {
    color: var(--plum);
    font-size: 16px;
}

.page-content .inputs > span[data-valmsg-for],
.page-content .inputs > .field-validation-error {
    grid-column: 1 / -1;
}

.page-content .field-validation-valid:empty {
    display: none;
}

.page-content .field-validation-error {
    display: block;
    margin-block-start: 4px;
    color: var(--plum);
    font-size: 12px;
}

.page-content .input-validation-error {
    border-color: var(--plum);
    box-shadow: inset 0 -2px 0 var(--plum);
}

.page-content .message-error,
.page-content .validation-summary-errors {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--plum);
    color: var(--plum);
    font-size: 13px;
}

.page-content .validation-summary-errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-content .result {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: var(--sand);
    font-size: 13px;
}

.page-content .tooltip {
    margin: 0 0 20px;
    color: var(--muted);
}

/* check boxes: the box first, its text after, whatever the order in the markup */
.page-content .inputs.checkbox-for-newsletter,
.page-content .inputs.reversed,
.page-content .accept-consent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.page-content .inputs.checkbox-for-newsletter > label,
.page-content .inputs.reversed label,
.page-content .accept-consent label {
    order: 2;
    margin: 0;
    color: var(--ink);
    font-size: 14px;
}

.page-content input[type="checkbox"],
.page-content input[type="radio"] {
    order: 1;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--plum);
}

.page-content .accept-consent {
    margin: 0 0 16px;
}

.page-content .accept-consent .read {
    order: 3;
}

.page-content .accept-consent .read,
.page-content .forgot-password a {
    color: var(--plum);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.page-content .inputs.reversed {
    justify-content: space-between;
}

.page-content .inputs.reversed .remember {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* gender radios and the date of birth selects */
.page-content .inputs .gender,
.page-content .inputs.date-of-birth .date-picker-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.page-content .inputs.date-of-birth select {
    flex: 1 1 0;
    width: auto;
}

.page-content .inputs .gender span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-content .vat-note,
.page-content .please-wait {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 12px;
}

/* the actions under a form */
.page-content .buttons {
    margin-block: 8px 0;
}

.page-content .buttons .button-1,
.page-content .buttons .button-2 {
    width: 100%;
}

.page-content .button-2 {
    min-height: 48px;
    padding: 0 20px;
}

.page-content .button-2:disabled,
.page-content .button-1:disabled {
    opacity: .5;
    cursor: default;
}

/* the staff bar (Administration, Manage page, impersonation), only seen when signed in as staff */
.admin-header-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 20px;
    padding: 6px var(--m);
    background: var(--ink);
    color: var(--ivory);
    font-size: 12px;
}

.admin-header-links a {
    color: var(--ivory);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* sign in | register */
.page-content .customer-blocks {
    display: grid;
    gap: 24px;
}

.page-content .customer-blocks > .wrapper {
    min-width: 0;
    margin: 0;
    padding: 24px 20px;
    border: 1px solid var(--line);
}

.page-content .registration-page .wrapper.fieldset {
    max-width: 560px;
    margin-inline: auto;
}

/* the page shows both forms: the "Register" link would only repeat the second one */
.page-content .have-account,
.page-content .other-options .or-txt {
    display: none;
}

.page-content .other-options {
    margin-block-start: 20px;
    text-align: center;
}

.page-content .login-with {
    display: block;
    margin-block-end: 8px;
    color: var(--muted2);
    font-size: 12px;
}

.page-content .external-authentication {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin-block-start: 16px;
}

.page-content .external-authentication .title {
    flex: 0 0 100%;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--muted2);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.page-content .external-authentication .buttons {
    margin: 0;
}

.page-content .external-authentication .buttons a {
    display: block;
}

/* account area: the menu is a row of tabs on phones and a column from 768px */
.page-account .center-side-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.page-account .account-title,
.page-account .accounts-avatar,
.mobile-heading {
    display: none;
}

.page-account .block-account-navigation .list {
    display: flex;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
    border-block-end: 1px solid var(--line);
}

.page-account .block-account-navigation .list::-webkit-scrollbar {
    display: none;
}

.page-account .block-account-navigation .list a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-block-end: 2px solid transparent;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}

.page-account .block-account-navigation .list .active a {
    border-block-end-color: var(--plum);
    color: var(--plum);
}

.page-account .accounts-frame,
.page-account .page.account-page > .page-title,
.page-account .page.account-page > .page-body {
    max-width: 760px;
}

/* address and order cards */
.page-account .address-list,
.page-account .order-list {
    display: grid;
    gap: 16px;
    margin-block-end: 24px;
}

.page-account .address-item {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--line);
}

.page-account .address-item .info {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.6;
}

.page-account .address-item .info .name {
    margin-block-end: 6px;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--plum);
}

.page-account .address-item .info label {
    color: var(--muted2);
    font-size: 12px;
}

.page-account .address-item .buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.page-account .address-item .buttons .button-2 {
    width: auto;
    min-height: 44px;
}

.page-account .order-status {
    font-weight: 600;
}

.page-account .order-status.cancelled {
    color: var(--muted2);
}

/* tables (downloads, recurring payments, shipments, notes): scroll inside their box, never the page */
.page-content .table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 12px 10px;
    border-block-end: 1px solid var(--line);
    text-align: start;
}

.data-table th {
    color: var(--muted2);
    font-size: 12px;
    font-weight: 500;
}

.data-table .footable-element,
.data-table .item-count {
    display: none;
}

.page-account .avatar-img img {
    max-width: 160px;
}

/* wishlist: a row per item (picture | name, size, price | quantity | remove) */
.wishlist-page .table-wrapper table.cart,
.wishlist-page .table-wrapper table.cart tbody {
    display: block;
}

.wishlist-page .table-wrapper table.cart colgroup,
.wishlist-page .table-wrapper table.cart thead,
.wishlist-page .cart td.footable-element,
.wishlist-page .cart td.sku,
.wishlist-page .cart td.subtotal {
    display: none;
}

.wishlist-page .cart-item-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    grid-template-areas:
        "pic prod rm"
        "pic price qty"
        "pic buy buy";
    gap: 4px 12px;
    align-items: start;
    padding-block: 16px;
    border-block-end: 1px solid var(--line);
}

.wishlist-page .cart-item-row td {
    display: block;
    padding: 0;
    border: 0;
}

.wishlist-page td.product-picture {
    grid-area: pic;
}

.wishlist-page td.product {
    grid-area: prod;
    min-width: 0;
}

.wishlist-page td.remove-from-cart {
    grid-area: rm;
    position: relative;
}

.wishlist-page td.unit-price {
    grid-area: price;
    align-self: center;
}

.wishlist-page td.quantity {
    grid-area: qty;
}

.wishlist-page td.add-to-cart {
    grid-area: buy;
}

.wishlist-page .product-picture img {
    width: 84px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.wishlist-page .product-name {
    display: block;
    color: var(--ink);
    font-size: 14px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.wishlist-page .attributes {
    margin-block-start: 4px;
    color: var(--muted);
    font-size: 13px;
}

.wishlist-page .product-unit-price {
    font-weight: 600;
}

/* the field look is in empora-checkout.css, here only the small size */
.wishlist-page .cart-item-row .qty-input {
    width: 64px;
    min-height: 44px;
    padding-inline: 8px;
    text-align: center;
}

.wishlist-page .remove-from-cart input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wishlist-page .remove-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    color: var(--ink);
}

.wishlist-page .remove-btn::before {
    content: "\00d7";
    font-size: 24px;
    line-height: 44px;
}

.wishlist-page .add-to-cart .buy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 13px;
    cursor: pointer;
}

.wishlist-page .wishlist-content .buttons,
.wishlist-page .share-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block: 20px 0;
}

.wishlist-page .wishlist-content .buttons .button-2 {
    width: auto;
    flex: 1 1 auto;
}

.wishlist-page .share-info,
.wishlist-page .tax-shipping-info {
    color: var(--muted);
    font-size: 13px;
}

/* blog and news: the posts, then the archive and tags (beside the posts from 768px) */
.blog-page,
.news-list-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "title"
        "posts"
        "aside";
    gap: 8px 0;
}

.blog-page > .page-title,
.news-list-page > .page-title {
    grid-area: title;
}

.blog-page > .page-body,
.news-list-page > .page-body {
    grid-area: posts;
    min-width: 0;
}

.blog-block-wrapper {
    grid-area: aside;
    margin-block-start: 32px;
}

.blog-block-wrapper .block {
    margin-block-end: 28px;
}

.blog-block-wrapper .block .title {
    margin: 0 0 12px;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--plum);
}

.blog-block-wrapper .block .title strong {
    font-weight: inherit;
}

.blog-block-wrapper ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.blog-block-wrapper .sublist {
    margin-inline-start: 14px;
}

.blog-block-wrapper li {
    padding-block: 4px;
}

.blog-block-wrapper .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.blog-block-wrapper .tags li a {
    line-height: 1.4;
}

.post {
    margin: 0 0 32px;
    padding-block-end: 32px;
    border-block-end: 1px solid var(--line);
}

.post-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-block-end: 14px;
}

.post-title,
.blogpost-page .post-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--plum);
    text-decoration: none;
}

.post-date {
    color: var(--bronze);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: calc(.12em * var(--tracking));
}

.post-body {
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.post-body img {
    margin-block: 16px;
}

.blog-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-block-start: 16px;
    font-size: 13px;
}

.blog-details .tags label {
    display: none;
}

.blog-details .tags ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-details .tags li:not(.separator) a {
    color: var(--muted);
}

.blog-details .tags li.separator {
    margin-inline-end: 6px;
}

.blog-details .buttons {
    display: flex;
    gap: 16px;
    margin: 0;
}

.blog-details .read-more {
    color: var(--plum);
    font-weight: 600;
}

.blog-details .read-comments {
    color: var(--muted);
}

.blogpost-page .comments .title,
.blogpost-page .new-comment .title {
    margin-block-end: 16px;
}

.blogpost-page .comment {
    padding-block: 16px;
    border-block-end: 1px solid var(--line);
    font-size: 14px;
}

.blogpost-page .comment-info,
.blogpost-page .comment-time {
    color: var(--muted);
    font-size: 12px;
}

.blogpost-page .avatar,
.blogpost-page .avatar-img {
    display: none;
}

/* sitemap */
.sitemap-page .description {
    margin-block-end: 28px;
    color: var(--muted);
}

.sitemap-page .page-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 40px;
}

.sitemap-page .description {
    grid-column: 1 / -1;
}

.sitemap-page .entity {
    margin-block-end: 28px;
}

.sitemap-page .entity-title h2 {
    margin: 0 0 10px;
    padding-block-end: 8px;
    border-block-end: 1px solid var(--line);
    font-size: 22px;
}

.sitemap-page ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.sitemap-page li {
    padding-block: 4px;
}

.sitemap-page ul ul {
    margin-inline-start: 16px;
}

/* topics and the 404 page: readable text, the editor's pictures never wider than the page */
.page-topic .page-body,
.not-found-page .page-body {
    max-width: 760px;
    overflow-wrap: anywhere;
}

.page-topic .page-body img,
.not-found-page .page-body img {
    max-width: 100%;
    height: auto;
}

.not-found-page .page-body {
    margin-inline: auto;
}

.not-found-page .page-title {
    text-align: center;
}

.not-found-page ul {
    padding-inline-start: 20px;
}

/* contact us, password recovery, change password, avatar...: one narrow column */
.contact-page .page-body,
.password-recovery-page .page-body,
.page-account .change-password-page .page-body {
    max-width: 560px;
}

/* index pages: manufacturers and vendors (a grid of names with their pictures), product tags */
/* the search box takes the field look (empora-checkout.css), here only its size */
.manufacturer-list-page .brand-search-box-text {
    max-width: 420px;
    margin-block-end: 20px;
}

.manufacturer-list-page .ln-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-block-end: 20px;
}

.manufacturer-list-page .ln-letters a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
}

.manufacturer-grid .item-grid,
.vendor-grid .item-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
}

.manufacturer-grid .selected-letter {
    grid-column: 1 / -1;
    margin-block-start: 12px;
    padding-block-end: 6px;
    border-block-end: 1px solid var(--line);
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--plum);
}

.manufacturer-item .picture,
.vendor-item .picture {
    display: block;
    margin-block-end: 8px;
    background: var(--sand);
}

.manufacturer-item .title,
.vendor-item .title {
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
}

.manufacturer-item .title a,
.vendor-item .title a {
    color: inherit;
}

.product-tags-all-page .product-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* manufacturer, vendor, tag and search listings: their title above the tools row (the category's is the tabs) */
.page-category .page-title {
    padding: 4px var(--m) 8px;
}

.page-category .page-title h1 {
    margin: 0;
}

.page-category .manufacturer-description,
.page-category .vendor-description {
    max-width: 760px;
    padding: 0 var(--m) 12px;
    color: var(--muted);
    line-height: 1.6;
}

.page-category .contact-vendor {
    padding: 0 var(--m) 12px;
}

.page-category .featured-product-grid .title {
    padding: 8px var(--m);
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--plum);
}

.page-category .featured-product-grid .title strong {
    font-weight: inherit;
}

/* checkout completed (thank you, or the payment did not go through) and the order it summarises */
.order-completed-page {
    max-width: 720px;
    margin-inline: auto;
    padding: 24px var(--m) 72px;
}

.order-completed-page .page-title {
    margin-block-end: 24px;
}

.checkout-page.order-completed-page .page-title {
    justify-content: center;
}

.order-completed-page .page-title h1 {
    margin: 0;
    font-size: 34px;
}

/* the thank-you / payment-error block is centred; the order information page (same wrapper class) is not */
.section.order-completed {
    text-align: center;
}

/* Print and PDF invoice: a row beside the title */
.order-completed-page .page-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}

.order-completed-page .page-title .buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.order-completed-page .page-title .buttons .button-2 {
    width: auto;
    min-height: 44px;
}

.order-completed .iconbox svg {
    display: block;
    margin: 0 auto 16px;
}

.order-completed .icon-ok {
    color: var(--plum);
}

.order-completed .icon-err {
    color: var(--bronze);
}

.order-completed .details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-block-end: 28px;
}

.order-completed .proceed-txt {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--plum);
}

.order-completed .check-email {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.order-completed .buttons .button-1 {
    min-width: 220px;
}

/* checkout steps (Cart > Address > Payment > Confirm) of the step-by-step checkout pages */
.order-progress ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: 13px;
}

.order-progress li a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
}

.order-progress li.active-step a {
    color: var(--plum);
    font-weight: 600;
}

.order-progress li img {
    width: 8px;
    height: auto;
    opacity: .5;
}

.order-overview {
    text-align: start;
}

.order-overview .customer-order-status h2,
.order-overview .completed-product .title {
    margin: 0 0 12px;
    font-size: 22px;
}

.order-step-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.order-step-nav li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-block-start: 10px;
    border-block-start: 2px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.order-step-nav li.active {
    border-block-start-color: var(--plum);
    color: var(--plum);
}

.order-step-nav .counts {
    font-weight: 600;
}

.order-step-nav strong {
    font-weight: 500;
}

.orders-frame {
    display: grid;
    gap: 12px 24px;
    margin-block-end: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    font-size: 14px;
}

.orders-frame .orderdetail p {
    margin: 2px 0 0;
    line-height: 1.5;
}

.orders-frame .orderdetail > strong {
    color: var(--muted2);
    font-size: 12px;
    font-weight: 500;
}

.completed-product .cart-colums {
    padding-block: 16px;
    border-block-end: 1px solid var(--line);
}

.completed-product .cat-mobile-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
}

.completed-product .product-picture img {
    width: 84px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.completed-product .product {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    font-size: 14px;
}

.completed-product .product-name {
    color: var(--ink);
    overflow-wrap: anywhere;
}

.completed-product .attributes,
.completed-product .sku,
.completed-product .quantity {
    color: var(--muted);
    font-size: 13px;
}

.completed-product .product-subtotal {
    font-weight: 600;
}

.order-completed-totals table.cart-total {
    width: 100%;
    margin-block-start: 20px;
    border-collapse: collapse;
    font-size: 14px;
}

.order-completed-totals .cart-total td {
    padding-block: 6px;
}

.order-completed-totals .cart-total-left {
    width: 100%;
    text-align: start;
}

.order-completed-totals .cart-total-right {
    text-align: end;
    white-space: nowrap;
}

.order-completed-totals .order-total td {
    padding-block-start: 12px;
    border-block-start: 1px solid var(--line);
    font-weight: 600;
}

.order-overview .section {
    margin-block: 24px 0;
}

.order-overview .section .title {
    margin: 0 0 8px;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--plum);
}

.order-overview .section .title strong {
    font-weight: inherit;
}

.order-details-page .buttons.actions,
.order-completed-page .buttons.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (min-width: 768px) {
    .page-content .master-column-wrapper {
        padding-block-start: 32px;
    }

    .page-content .page-title h1,
    .page-content .collection-title h1,
    .order-completed-page .page-title h1 {
        font-size: 44px;
    }

    .page-content .customer-blocks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px;
        align-items: start;
    }

    .page-content .customer-blocks > .wrapper {
        padding: 32px;
    }

    .page-content .buttons .button-1 {
        width: auto;
        min-width: 220px;
    }

    .page-content .customer-blocks .buttons .button-1 {
        width: 100%;
    }

    .page-account .center-side-wrapper {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 48px;
    }

    .page-account .block-account-navigation .list {
        display: block;
        overflow: visible;
        border-block-end: 0;
    }

    .page-account .block-account-navigation .list a {
        min-height: 48px;
        padding: 0 16px;
        border-block-end: 0;
        border-inline-start: 2px solid transparent;
    }

    .page-account .block-account-navigation .list .active a {
        border-inline-start-color: var(--plum);
        background: var(--sand);
    }

    .page-account .account-title {
        display: block;
        margin: 0 0 12px;
        font-size: 28px;
    }

    .page-account .accounts-avatar {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-block-end: 16px;
    }

    .page-account .accounts-avatar img {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        object-fit: cover;
    }

    .page-account .address-list,
    .page-account .order-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wishlist-page .cart-item-row {
        grid-template-columns: 100px minmax(0, 1fr) 110px 76px 150px 44px;
        grid-template-areas: "pic prod price qty buy rm";
        gap: 16px;
        align-items: center;
    }

    .wishlist-page .product-picture img {
        width: 100px;
    }

    .blog-page,
    .news-list-page {
        grid-template-columns: minmax(0, 1fr) 260px;
        grid-template-areas:
            "title title"
            "posts aside";
        gap: 8px 56px;
    }

    .blog-block-wrapper {
        margin-block-start: 0;
    }

    .post-title,
    .blogpost-page .post-title {
        font-size: 34px;
    }

    .sitemap-page .page-body {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manufacturer-grid .item-grid,
    .vendor-grid .item-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 28px 16px;
    }

    .page-category .page-title {
        padding-block: 8px 12px;
    }

    .page-category .manufacturer-description,
    .page-category .vendor-description,
    .page-category .contact-vendor {
        padding-block-end: 16px;
    }

    .orders-frame {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 20px;
    }
}

@media (min-width: 1280px) {
    .page-content .page-title h1,
    .page-content .collection-title h1 {
        font-size: 48px;
    }

    .page-account .center-side-wrapper {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 72px;
    }

    .sitemap-page .page-body {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .manufacturer-grid .item-grid,
    .vendor-grid .item-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* ==========================================================================
   7. RTL: transforms and icon flips only (everything else is logical)
   ========================================================================== */
[dir="rtl"] .acct-prefs select.sel {
    background-position: left 14px center;
}

[dir="rtl"] .ann .track {
    animation-name: empora-ann-rtl;
}

[dir="rtl"] .drawer:not(.open) .pane {
    transform: translateX(100%);
}

[dir="rtl"] .side-drawer:not(.open) .pane {
    transform: translateX(-100%);
}

[dir="rtl"] .toast {
    transform: translateX(50%);
}

[dir="rtl"] .order-progress li img,
[dir="rtl"] .float svg,
[dir="rtl"] .arw svg {
    transform: scaleX(-1);
}

[dir="rtl"] .page-category .filters-holder {
    transform: translateX(-100%);
}

[dir="rtl"] .filters-open .filters-holder {
    transform: none;
}
