/* ==========================================================================
   TextileERP - storefront design system
   Mobile first. All spacing, colour and motion runs off the tokens below, so
   rebranding the site is a matter of changing this block.
   ========================================================================== */

:root {
    /* Brand */
    --tx-wine:        #7b1f2b;
    --tx-wine-dark:   #5d151f;
    --tx-wine-soft:   #f6ecee;
    --tx-gold:        #b8873a;
    --tx-gold-soft:   #f8f0e2;

    /* Neutrals */
    --tx-ink:         #241c1f;
    --tx-body:        #4a4144;
    --tx-muted:       #857a7d;
    --tx-line:        #e8e0d7;
    --tx-line-soft:   #f2ece4;
    --tx-cream:       #faf7f2;
    --tx-white:       #ffffff;

    /* Status */
    --tx-ok:          #1e7a45;
    --tx-ok-soft:     #e7f4ec;
    --tx-warn:        #a56a00;
    --tx-warn-soft:   #fdf2dd;
    --tx-fail:        #b02a2a;
    --tx-fail-soft:   #fbeaea;
    --tx-info:        #1f5f8b;
    --tx-info-soft:   #e8f1f8;

    /* Type */
    --tx-font-body:    "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --tx-font-display: Georgia, "Times New Roman", "Noto Serif", serif;
    /* The shop name only - loaded from Google Fonts by _Layout, Georgia if not. */
    --tx-font-brand:   "Cormorant Garamond", Georgia, "Times New Roman", serif;

    /* Space */
    --tx-gap-xs: 4px;
    --tx-gap-sm: 8px;
    --tx-gap:    16px;
    --tx-gap-md: 24px;
    --tx-gap-lg: 40px;
    --tx-gap-xl: 64px;

    /* Shape */
    --tx-radius-sm: 4px;
    --tx-radius:    8px;
    --tx-radius-lg: 16px;
    --tx-radius-pill: 999px;

    /* Depth */
    --tx-shadow-sm: 0 1px 2px rgba(36, 28, 31, .06), 0 1px 3px rgba(36, 28, 31, .05);
    --tx-shadow:    0 2px 6px rgba(36, 28, 31, .07), 0 6px 18px rgba(36, 28, 31, .06);
    --tx-shadow-lg: 0 8px 24px rgba(36, 28, 31, .10), 0 20px 48px rgba(36, 28, 31, .10);

    /* Motion - short and consistent. Nothing here should make the page feel slow. */
    --tx-ease:      cubic-bezier(.22, .61, .36, 1);
    --tx-fast:      140ms;
    --tx-normal:    240ms;
    --tx-slow:      420ms;

    --tx-shell:     1240px;
    --tx-header-h:  64px;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--tx-font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--tx-body);
    background: var(--tx-cream);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--tx-wine); text-decoration: none; transition: color var(--tx-fast) var(--tx-ease); }
a:hover { color: var(--tx-wine-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--tx-font-display); color: var(--tx-ink); margin: 0 0 var(--tx-gap-sm); font-weight: 600; line-height: 1.25; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
p  { margin: 0 0 var(--tx-gap); }
ul, ol { margin: 0 0 var(--tx-gap); padding-left: 20px; }
hr { border: 0; border-top: 1px solid var(--tx-line); margin: var(--tx-gap-md) 0; }

@media (min-width: 768px) {
    body { font-size: 16px; }
    h1 { font-size: 42px; }
    h2 { font-size: 30px; }
    h3 { font-size: 21px; }
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.tx-shell { width: 100%; max-width: var(--tx-shell); margin: 0 auto; padding: 0 var(--tx-gap); }

/* Vertical padding only: these are often put on the same element as tx-shell,
   and a shorthand here would wipe out the shell's side gutter on a phone. */
.tx-section { padding-top: var(--tx-gap-lg); padding-bottom: var(--tx-gap-lg); }
.tx-section--tight { padding-top: var(--tx-gap-md); padding-bottom: var(--tx-gap-md); }
.tx-section--alt { background: var(--tx-white); }

@media (min-width: 768px) {
    .tx-shell { padding-left: var(--tx-gap-md); padding-right: var(--tx-gap-md); }
    .tx-section { padding-top: var(--tx-gap-xl); padding-bottom: var(--tx-gap-xl); }
    .tx-section--tight { padding-top: var(--tx-gap-md); padding-bottom: var(--tx-gap-md); }
}

.tx-section-head {
    display: flex; flex-wrap: wrap; align-items: flex-end;
    justify-content: space-between; gap: var(--tx-gap);
    margin-bottom: var(--tx-gap-md);
}
.tx-section-head h2 { margin: 0; }
.tx-section-head .tx-eyebrow {
    display: block; font-family: var(--tx-font-body); font-size: 12px;
    letter-spacing: .16em; text-transform: uppercase; color: var(--tx-gold);
    margin-bottom: var(--tx-gap-xs); font-weight: 600;
}
.tx-section-head p { margin: var(--tx-gap-xs) 0 0; color: var(--tx-muted); max-width: 60ch; }

.tx-grid { display: grid; gap: var(--tx-gap); }
/* The columns are already minmax(0,1fr); the items need telling too, or a wide
   child - a spec table, a long product code - overflows its own cell. */
.tx-grid > * { min-width: 0; }
.tx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tx-grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tx-grid--cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 640px) {
    .tx-grid--cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .tx-grid { gap: var(--tx-gap-md); }
    .tx-grid--products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tx-grid--cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    .tx-grid--products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
/* Announcement bar: deep wine, gold hairline, small spaced capitals */
.tx-topbar {
    background: var(--tx-wine-dark); color: rgba(255, 255, 255, .82);
    border-bottom: 1px solid rgba(184, 135, 58, .45);
    font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
}
.tx-topbar .tx-shell { display: flex; align-items: center; justify-content: flex-end; gap: var(--tx-gap-md); min-height: 36px; }
.tx-topbar a { color: #e9cf9f; letter-spacing: .08em; }
.tx-topbar a:hover { color: #fff; }
/* Phones give the whole strip to the news; the number is in the footer. */
.tx-topbar__phone { flex: 0 0 auto; display: none; padding-left: var(--tx-gap-md); border-left: 1px solid rgba(233, 207, 159, .25); }
@media (min-width: 768px) { .tx-topbar__phone { display: block; } }

/* Scrolling news: fades in and out at the edges, pauses under the pointer */
.tx-ticker {
    flex: 1 1 auto; min-width: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.tx-ticker__track { display: flex; width: max-content; animation: txTicker 40s linear infinite; }
.tx-ticker:hover .tx-ticker__track, .tx-ticker:focus-within .tx-ticker__track { animation-play-state: paused; }
.tx-ticker__list { display: flex; flex: 0 0 auto; list-style: none; margin: 0; padding: 0; }
.tx-ticker__list li { display: flex; align-items: center; white-space: nowrap; padding: 9px 0; }
/* A small gold diamond between messages */
.tx-ticker__list li::before {
    content: ""; flex: 0 0 auto; width: 5px; height: 5px; margin: 0 26px;
    background: var(--tx-gold); transform: rotate(45deg);
}
.tx-ticker__list a { color: #fff; letter-spacing: inherit; }
.tx-ticker__list a:hover { color: #e9cf9f; }
@keyframes txTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Asked for less motion: the first message stands still instead. */
@media (prefers-reduced-motion: reduce) {
    .tx-ticker { -webkit-mask-image: none; mask-image: none; }
    .tx-ticker__track { animation: none; width: auto; }
    .tx-ticker__list[aria-hidden] { display: none; }
    .tx-ticker__list li:first-child::before { display: none; }
    .tx-ticker__list li + li { display: none; }
    .tx-ticker__list li span, .tx-ticker__list li a { overflow: hidden; text-overflow: ellipsis; }
}

.tx-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--tx-line);
    transition: box-shadow var(--tx-normal) var(--tx-ease);
}
.tx-header.is-stuck { box-shadow: var(--tx-shadow); }

/* Three zones: search | brand | account + cart. On wide screens the equal
   outer columns keep the brand exactly centred whatever sits either side. */
.tx-header__bar {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
    gap: var(--tx-gap-sm); min-height: 72px; padding: 8px 0;
}
.tx-header__side { display: flex; align-items: center; gap: 4px; min-width: 0; }
.tx-header__side--end { justify-content: flex-end; }
@media (min-width: 900px) {
    .tx-header__bar {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: var(--tx-gap-md); min-height: 104px; padding: 12px 0;
        transition: min-height var(--tx-normal) var(--tx-ease);
    }
    .tx-header.is-stuck .tx-header__bar { min-height: 80px; }
}

/* Brand lockup */
.tx-brand { display: inline-flex; align-items: center; justify-self: center; gap: 10px; min-width: 0; max-width: 100%; color: var(--tx-ink); }
.tx-brand:hover { color: var(--tx-ink); }
.tx-brand__mark {
    flex: 0 0 auto; width: 42px; height: 42px; object-fit: contain;
    transition: width var(--tx-normal) var(--tx-ease), height var(--tx-normal) var(--tx-ease);
}
.tx-brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1; }
.tx-brand__name {
    font-family: var(--tx-font-brand); font-weight: 600; font-size: 19px;
    letter-spacing: .1em; text-transform: uppercase; color: var(--tx-wine-dark);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tx-brand__tag {
    display: none; margin-top: 7px; padding-top: 6px; border-top: 1px solid rgba(184, 135, 58, .5);
    font-size: 10.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--tx-gold);
}
@media (min-width: 900px) {
    .tx-brand { gap: 16px; }
    .tx-brand__mark { width: 76px; height: 76px; }
    .tx-header.is-stuck .tx-brand__mark { width: 58px; height: 58px; }
    .tx-brand__name { font-size: 34px; letter-spacing: .14em; }
    .tx-brand__tag { display: block; align-self: flex-start; }
}

/* Slim header for sign-in, register and password pages: logo and a way back. */
.tx-slimhead { background: #fff; border-bottom: 1px solid var(--tx-line); }
.tx-slimhead::before {
    content: ""; display: block; height: 3px;
    background: linear-gradient(90deg, var(--tx-wine-dark), var(--tx-gold) 50%, var(--tx-wine-dark));
}
.tx-slimhead__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--tx-gap); min-height: 76px; }
.tx-slimhead .tx-brand { justify-self: auto; }
.tx-slimhead .tx-brand__mark { width: 52px; height: 52px; }
.tx-slimhead .tx-brand__name { font-size: 22px; }
.tx-slimhead__back {
    display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
    font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-body);
}
.tx-slimhead__back:hover { color: var(--tx-wine); }
@media (min-width: 900px) { .tx-slimhead .tx-brand__name { font-size: 26px; } }

.tx-search { position: relative; flex: 1 1 auto; max-width: 300px; display: none; }
@media (min-width: 900px) { .tx-search { display: block; } }
.tx-search input {
    width: 100%; border: 1px solid var(--tx-line); background: var(--tx-cream);
    border-radius: var(--tx-radius-pill); padding: 10px 40px 10px 18px; font-size: 13.5px;
    transition: border-color var(--tx-fast) var(--tx-ease), box-shadow var(--tx-fast) var(--tx-ease), background var(--tx-fast) var(--tx-ease);
}
.tx-search input:focus {
    outline: none; background: #fff; border-color: var(--tx-wine);
    box-shadow: 0 0 0 3px var(--tx-wine-soft);
}
.tx-search__btn {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    border: 0; background: none; cursor: pointer; color: var(--tx-muted); padding: 6px 10px;
}
.tx-search__btn:hover { color: var(--tx-wine); }

.tx-suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50;
    background: #fff; border: 1px solid var(--tx-line); border-radius: var(--tx-radius);
    box-shadow: var(--tx-shadow-lg); overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity var(--tx-fast) var(--tx-ease), transform var(--tx-fast) var(--tx-ease), visibility var(--tx-fast);
}
.tx-suggest.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.tx-suggest a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--tx-line-soft); color: var(--tx-ink); }
.tx-suggest a:last-child { border-bottom: 0; }
.tx-suggest a:hover { background: var(--tx-wine-soft); }
.tx-suggest img { width: 34px; height: 44px; object-fit: cover; border-radius: var(--tx-radius-sm); }
.tx-suggest__name { font-size: 14px; line-height: 1.3; }
.tx-suggest__meta { font-size: 12px; color: var(--tx-muted); }

.tx-iconbtn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--tx-radius-pill);
    border: 0; background: none; cursor: pointer; color: var(--tx-ink);
    transition: background var(--tx-fast) var(--tx-ease), color var(--tx-fast) var(--tx-ease);
}
.tx-iconbtn:hover { background: var(--tx-wine-soft); color: var(--tx-wine); }
.tx-iconbtn__count {
    position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px;
    border-radius: var(--tx-radius-pill); background: var(--tx-wine); color: #fff;
    font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; padding: 0 5px;
}

/* Category menu: centred spaced capitals between hairlines, gold underline */
.tx-nav { border-top: 1px solid var(--tx-line-soft); display: none; }
@media (min-width: 900px) { .tx-nav { display: block; } }
.tx-nav .tx-shell { overflow-x: auto; scrollbar-width: none; }
.tx-nav .tx-shell::-webkit-scrollbar { display: none; }
/* max-content + auto margins centres the row, yet a row wider than the
   screen still scrolls from its first item instead of being clipped. */
.tx-nav ul {
    display: flex; gap: 36px; width: max-content; margin: 0 auto;
    list-style: none; padding: 0;
}
.tx-nav a {
    display: block; padding: 14px 0; font-size: 12.5px; font-weight: 600; color: var(--tx-body);
    letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; position: relative;
}
.tx-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px;
    background: var(--tx-gold); transform: scaleX(0); transform-origin: center;
    transition: transform var(--tx-normal) var(--tx-ease);
}
.tx-nav a:hover, .tx-nav a.is-active { color: var(--tx-wine); }
.tx-nav a:hover::after, .tx-nav a.is-active::after { transform: scaleX(1); }

/* Mobile drawer */
.tx-burger { display: inline-flex; }
@media (min-width: 900px) { .tx-burger { display: none; } }
.tx-drawer {
    position: fixed; inset: 0 30% 0 0; max-width: 320px; z-index: 60;
    background: #fff; box-shadow: var(--tx-shadow-lg);
    transform: translateX(-100%); transition: transform var(--tx-normal) var(--tx-ease);
    overflow-y: auto; padding: var(--tx-gap);
}
.tx-drawer.is-open { transform: translateX(0); }
.tx-drawer h4 { font-family: var(--tx-font-body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-muted); margin: var(--tx-gap) 0 var(--tx-gap-sm); }
.tx-drawer a { display: block; padding: 9px 0; border-bottom: 1px solid var(--tx-line-soft); color: var(--tx-ink); }
.tx-scrim {
    position: fixed; inset: 0; z-index: 55; background: rgba(36, 28, 31, .45);
    opacity: 0; visibility: hidden; transition: opacity var(--tx-normal) var(--tx-ease), visibility var(--tx-normal);
}
.tx-scrim.is-open { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.tx-hero { position: relative; background: var(--tx-ink); overflow: hidden; }
.tx-hero__track { position: relative; height: 380px; }
@media (min-width: 768px) { .tx-hero__track { height: 480px; } }
@media (min-width: 1100px) { .tx-hero__track { height: 560px; } }

.tx-hero__slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    transition: opacity var(--tx-slow) var(--tx-ease), visibility var(--tx-slow);
}
.tx-hero__slide.is-active { opacity: 1; visibility: visible; }
.tx-hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.tx-hero__slide.is-active img { transform: scale(1); }
.tx-hero__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tx-hero__veil {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(20, 12, 14, .78) 0%, rgba(20, 12, 14, .45) 45%, rgba(20, 12, 14, .12) 100%);
}
.tx-hero__body {
    position: absolute; inset: 0; display: flex; align-items: center;
}
.tx-hero__copy { max-width: 560px; color: #fff; }
.tx-hero__copy .tx-eyebrow { color: var(--tx-gold); letter-spacing: .18em; text-transform: uppercase; font-size: 12px; font-weight: 600; display: block; margin-bottom: 10px; }
.tx-hero__copy h1 { color: #fff; margin-bottom: 12px; }
.tx-hero__copy p { color: rgba(255, 255, 255, .86); font-size: 16px; margin-bottom: var(--tx-gap-md); }
.tx-hero__slide.is-active .tx-hero__copy > * { animation: txRise var(--tx-slow) var(--tx-ease) both; }
.tx-hero__slide.is-active .tx-hero__copy > *:nth-child(2) { animation-delay: 90ms; }
.tx-hero__slide.is-active .tx-hero__copy > *:nth-child(3) { animation-delay: 170ms; }
.tx-hero__slide.is-active .tx-hero__copy > *:nth-child(4) { animation-delay: 250ms; }
.tx-hero__slide[data-align="center"] .tx-hero__copy { margin: 0 auto; text-align: center; }
.tx-hero__slide[data-align="right"]  .tx-hero__copy { margin-left: auto; text-align: right; }

.tx-hero__dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.tx-hero__dots button {
    width: 28px; height: 3px; border: 0; padding: 0; cursor: pointer; border-radius: 2px;
    background: rgba(255, 255, 255, .38); transition: background var(--tx-fast) var(--tx-ease), width var(--tx-fast) var(--tx-ease);
}
.tx-hero__dots button.is-active { background: var(--tx-gold); width: 44px; }

@keyframes txRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.tx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border: 1px solid transparent; border-radius: var(--tx-radius-pill);
    font-size: 14px; font-weight: 600; letter-spacing: .02em; cursor: pointer;
    background: var(--tx-wine); color: #fff; text-align: center;
    transition: background var(--tx-fast) var(--tx-ease), transform var(--tx-fast) var(--tx-ease),
                box-shadow var(--tx-fast) var(--tx-ease), border-color var(--tx-fast) var(--tx-ease), color var(--tx-fast) var(--tx-ease);
}
.tx-btn:hover { background: var(--tx-wine-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--tx-shadow); }
.tx-btn:active { transform: translateY(0); box-shadow: var(--tx-shadow-sm); }
.tx-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--tx-wine-soft); }
.tx-btn[disabled], .tx-btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.tx-btn--ghost { background: transparent; color: var(--tx-wine); border-color: var(--tx-wine); }
.tx-btn--ghost:hover { background: var(--tx-wine); color: #fff; }
.tx-btn--light { background: #fff; color: var(--tx-ink); border-color: var(--tx-line); }
.tx-btn--light:hover { background: var(--tx-cream); color: var(--tx-ink); border-color: var(--tx-gold); }
.tx-btn--gold { background: var(--tx-gold); }
.tx-btn--gold:hover { background: #9c7130; }
.tx-btn--sm { padding: 7px 15px; font-size: 13px; }
.tx-btn--lg { padding: 14px 30px; font-size: 15px; }
.tx-btn--block { display: flex; width: 100%; }

/* --------------------------------------------------------------------------
   Cards - category and product
   -------------------------------------------------------------------------- */
.tx-cat {
    position: relative; display: block; border-radius: var(--tx-radius-lg); overflow: hidden;
    background: var(--tx-ink); aspect-ratio: 4 / 3; box-shadow: var(--tx-shadow-sm);
    transition: transform var(--tx-normal) var(--tx-ease), box-shadow var(--tx-normal) var(--tx-ease);
}
.tx-cat:hover { transform: translateY(-4px); box-shadow: var(--tx-shadow-lg); }
.tx-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--tx-slow) var(--tx-ease); }
.tx-cat:hover img { transform: scale(1.07); }
.tx-cat__body {
    position: absolute; inset: auto 0 0 0; padding: var(--tx-gap);
    background: linear-gradient(180deg, rgba(20, 12, 14, 0) 0%, rgba(20, 12, 14, .82) 70%);
    color: #fff;
}
.tx-cat__body strong { font-family: var(--tx-font-display); font-size: 17px; display: block; }
.tx-cat__body span { font-size: 12px; color: rgba(255, 255, 255, .78); }

.tx-card {
    position: relative; background: #fff; border: 1px solid var(--tx-line);
    border-radius: var(--tx-radius-lg); overflow: hidden; display: flex; flex-direction: column;
    transition: transform var(--tx-normal) var(--tx-ease), box-shadow var(--tx-normal) var(--tx-ease), border-color var(--tx-normal) var(--tx-ease);
}
.tx-card:hover { transform: translateY(-4px); box-shadow: var(--tx-shadow-lg); border-color: var(--tx-line-soft); }
.tx-card__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--tx-line-soft); }
.tx-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--tx-slow) var(--tx-ease); }
.tx-card:hover .tx-card__media img { transform: scale(1.06); }

.tx-card__flags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.tx-flag {
    display: inline-block; padding: 3px 9px; border-radius: var(--tx-radius-sm);
    font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.tx-flag--save { background: var(--tx-wine); }
.tx-flag--new  { background: var(--tx-gold); }
.tx-flag--best { background: var(--tx-ink); }
.tx-flag--out  { background: var(--tx-muted); }

.tx-card__quick {
    position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
    opacity: 0; transform: translateY(8px);
    transition: opacity var(--tx-normal) var(--tx-ease), transform var(--tx-normal) var(--tx-ease);
}
.tx-card:hover .tx-card__quick { opacity: 1; transform: translateY(0); }
@media (hover: none) { .tx-card__quick { opacity: 1; transform: none; } }

.tx-card__body { padding: var(--tx-gap); display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.tx-card__cat { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-gold); font-weight: 600; }
.tx-card__name { font-family: var(--tx-font-display); font-size: 16px; color: var(--tx-ink); line-height: 1.35; margin: 0; }
.tx-card__name a { color: inherit; }
.tx-card__name a:hover { color: var(--tx-wine); }
.tx-card__price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.tx-price { font-size: 18px; font-weight: 700; color: var(--tx-ink); font-family: var(--tx-font-body); }
.tx-price--was { font-size: 13px; color: var(--tx-muted); text-decoration: line-through; font-weight: 400; }
.tx-price--off { font-size: 12px; color: var(--tx-ok); font-weight: 700; }

.tx-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--tx-muted); }
.tx-stars { color: var(--tx-gold); letter-spacing: 1px; font-size: 13px; }

.tx-stockline { font-size: 12px; color: var(--tx-muted); }
.tx-stockline--low { color: var(--tx-warn); font-weight: 600; }
.tx-stockline--out { color: var(--tx-fail); font-weight: 600; }

/* --------------------------------------------------------------------------
   Shop layout - filter rail + grid
   -------------------------------------------------------------------------- */
.tx-shop { display: grid; gap: var(--tx-gap-md); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .tx-shop { grid-template-columns: 260px minmax(0, 1fr); } }

.tx-rail {
    background: #fff; border: 1px solid var(--tx-line); border-radius: var(--tx-radius-lg);
    padding: var(--tx-gap); position: sticky; top: calc(var(--tx-header-h) + 12px);
}
.tx-rail__group { padding: var(--tx-gap) 0; border-bottom: 1px solid var(--tx-line-soft); }
.tx-rail__group:first-child { padding-top: 0; }
.tx-rail__group:last-child { border-bottom: 0; padding-bottom: 0; }
.tx-rail__group > h4 {
    font-family: var(--tx-font-body); font-size: 12px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--tx-muted); margin: 0 0 10px;
}
.tx-check { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; font-size: 14px; }
.tx-check input { accent-color: var(--tx-wine); width: 15px; height: 15px; }
.tx-check span { flex: 1 1 auto; }
.tx-check em { font-style: normal; color: var(--tx-muted); font-size: 12px; }

.tx-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.tx-swatch { position: relative; cursor: pointer; }
.tx-swatch input { position: absolute; opacity: 0; width: 0; height: 0; }
.tx-swatch span {
    display: block; width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid var(--tx-line); box-shadow: inset 0 0 0 2px #fff;
    transition: transform var(--tx-fast) var(--tx-ease), border-color var(--tx-fast) var(--tx-ease);
}
.tx-swatch:hover span { transform: scale(1.12); }
.tx-swatch input:checked + span { border-color: var(--tx-wine); transform: scale(1.12); }

.tx-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: var(--tx-gap); margin-bottom: var(--tx-gap);
}
.tx-toolbar__count { font-size: 14px; color: var(--tx-muted); }
.tx-chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--tx-gap); }
.tx-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
    border-radius: var(--tx-radius-pill); background: var(--tx-wine-soft);
    color: var(--tx-wine); font-size: 12.5px; font-weight: 600;
}
.tx-chip a { color: inherit; font-size: 14px; line-height: 1; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.tx-field { margin-bottom: var(--tx-gap); }
.tx-field > label { display: block; font-size: 13px; font-weight: 600; color: var(--tx-ink); margin-bottom: 6px; }
.tx-field .tx-hint { font-size: 12px; color: var(--tx-muted); margin-top: 5px; }

.tx-input, .tx-select, .tx-textarea {
    width: 100%; padding: 10px 13px; border: 1px solid var(--tx-line);
    border-radius: var(--tx-radius); background: #fff; font-size: 14px;
    transition: border-color var(--tx-fast) var(--tx-ease), box-shadow var(--tx-fast) var(--tx-ease);
}
.tx-input:focus, .tx-select:focus, .tx-textarea:focus {
    outline: none; border-color: var(--tx-wine); box-shadow: 0 0 0 3px var(--tx-wine-soft);
}
.tx-textarea { min-height: 120px; resize: vertical; }
.tx-select {
    appearance: none; padding-right: 34px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3e%3cpath fill='%23857a7d' d='M1 1l5 5 5-5'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 11px;
}
.tx-input.input-validation-error, .tx-textarea.input-validation-error, .tx-select.input-validation-error {
    border-color: var(--tx-fail); box-shadow: 0 0 0 3px var(--tx-fail-soft);
}
.field-validation-error, .tx-error { display: block; color: var(--tx-fail); font-size: 12.5px; margin-top: 5px; }
.validation-summary-errors { background: var(--tx-fail-soft); border: 1px solid #f0c9c9; color: var(--tx-fail); border-radius: var(--tx-radius); padding: 10px 14px; margin-bottom: var(--tx-gap); }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }

.tx-qty { display: inline-flex; align-items: center; border: 1px solid var(--tx-line); border-radius: var(--tx-radius-pill); overflow: hidden; }
.tx-qty button { width: 38px; height: 40px; border: 0; background: #fff; cursor: pointer; color: var(--tx-ink); font-size: 17px; transition: background var(--tx-fast) var(--tx-ease); }
.tx-qty button:hover { background: var(--tx-wine-soft); color: var(--tx-wine); }
.tx-qty input { width: 46px; height: 40px; border: 0; text-align: center; font-weight: 600; }
.tx-qty input:focus { outline: none; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
/* min-width:0 is what makes the overflow-x actually work inside a grid or
   flex parent. Without it the wrapper inherits min-width:auto, reports the
   table.s 560px minimum as its own, and pushes the whole page sideways on a
   phone instead of scrolling the table on its own. */
.tx-tablewrap { overflow-x: auto; min-width: 0; border: 1px solid var(--tx-line); border-radius: var(--tx-radius-lg); background: #fff; }
.tx-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.tx-table th, .tx-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--tx-line-soft); vertical-align: middle; }
.tx-table thead th {
    background: var(--tx-cream); font-size: 11.5px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--tx-muted); font-weight: 700; white-space: nowrap;
}
.tx-table tbody tr { transition: background var(--tx-fast) var(--tx-ease); }
.tx-table tbody tr:hover { background: var(--tx-cream); }
.tx-table tbody tr:last-child td { border-bottom: 0; }
.tx-table .tx-num { text-align: right; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Badges, alerts, toasts, empty and loading states
   -------------------------------------------------------------------------- */
.tx-badge {
    display: inline-block; padding: 3px 10px; border-radius: var(--tx-radius-pill);
    font-size: 12px; font-weight: 600;
    /* A badge usually holds a short status label, but it can also hold data of
       unknown length - an invoice number such as INV/2026-2027/00107. That one
       badge was pushing a whole phone page sideways, so a badge may never
       exceed its container: it wraps instead of overflowing. */
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}
.tx-badge-ok      { background: var(--tx-ok-soft);   color: var(--tx-ok); }
.tx-badge-warn    { background: var(--tx-warn-soft); color: var(--tx-warn); }
.tx-badge-fail    { background: var(--tx-fail-soft); color: var(--tx-fail); }
.tx-badge-info    { background: var(--tx-info-soft); color: var(--tx-info); }
.tx-badge-primary { background: var(--tx-wine-soft); color: var(--tx-wine); }

.tx-alert { border-radius: var(--tx-radius); padding: 12px 16px; margin-bottom: var(--tx-gap); border: 1px solid transparent; font-size: 14px; }
.tx-alert--ok   { background: var(--tx-ok-soft);   border-color: #c7e6d3; color: var(--tx-ok); }
.tx-alert--warn { background: var(--tx-warn-soft); border-color: #f0dcb0; color: var(--tx-warn); }
.tx-alert--fail { background: var(--tx-fail-soft); border-color: #f0c9c9; color: var(--tx-fail); }
.tx-alert--info { background: var(--tx-info-soft); border-color: #c6dcec; color: var(--tx-info); }

.tx-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.tx-toast {
    display: flex; gap: 10px; align-items: flex-start; padding: 12px 15px;
    background: var(--tx-ink); color: #fff; border-radius: var(--tx-radius);
    box-shadow: var(--tx-shadow-lg); font-size: 14px;
    animation: txToastIn var(--tx-normal) var(--tx-ease) both;
}
.tx-toast.is-leaving { animation: txToastOut var(--tx-normal) var(--tx-ease) both; }
.tx-toast--ok   { background: #14532d; }
.tx-toast--fail { background: #7f1d1d; }
.tx-toast button { background: none; border: 0; color: rgba(255,255,255,.7); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 0 0 6px; }
@keyframes txToastIn  { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes txToastOut { to { opacity: 0; transform: translateY(8px) scale(.98); } }

.tx-empty { text-align: center; padding: var(--tx-gap-xl) var(--tx-gap); color: var(--tx-muted); }
.tx-empty__art { width: 88px; height: 88px; margin: 0 auto var(--tx-gap); opacity: .55; }
.tx-empty h3 { color: var(--tx-ink); margin-bottom: 6px; }
.tx-empty p { max-width: 46ch; margin: 0 auto var(--tx-gap); }

.tx-skel { background: linear-gradient(90deg, var(--tx-line-soft) 25%, #f8f4ee 37%, var(--tx-line-soft) 63%); background-size: 400% 100%; animation: txShimmer 1.3s ease-in-out infinite; border-radius: var(--tx-radius-sm); }
.tx-skel--card { aspect-ratio: 3 / 4; border-radius: var(--tx-radius-lg); }
.tx-skel--line { height: 12px; margin-top: 10px; }
.tx-skel--line.w60 { width: 60%; }
@keyframes txShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.tx-spinner {
    width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff; border-radius: 50%; animation: txSpin .6s linear infinite; display: inline-block;
}
@keyframes txSpin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Modal / confirm
   -------------------------------------------------------------------------- */
.tx-modal {
    position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
    padding: var(--tx-gap); opacity: 0; visibility: hidden;
    transition: opacity var(--tx-normal) var(--tx-ease), visibility var(--tx-normal);
}
.tx-modal.is-open { opacity: 1; visibility: visible; }
.tx-modal__scrim { position: absolute; inset: 0; background: rgba(36, 28, 31, .5); }
.tx-modal__box {
    position: relative; background: #fff; border-radius: var(--tx-radius-lg);
    box-shadow: var(--tx-shadow-lg); width: 100%; max-width: 460px; padding: var(--tx-gap-md);
    transform: translateY(14px) scale(.98); transition: transform var(--tx-normal) var(--tx-ease);
}
.tx-modal.is-open .tx-modal__box { transform: none; }
.tx-modal__foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: var(--tx-gap-md); }

/* --------------------------------------------------------------------------
   Pager
   -------------------------------------------------------------------------- */
.tx-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: var(--tx-gap-lg); }
.tx-pager a, .tx-pager span {
    min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    padding: 0 12px; border: 1px solid var(--tx-line); border-radius: var(--tx-radius);
    font-size: 14px; color: var(--tx-body); background: #fff;
    transition: all var(--tx-fast) var(--tx-ease);
}
.tx-pager a:hover { border-color: var(--tx-wine); color: var(--tx-wine); }
.tx-pager .is-current { background: var(--tx-wine); border-color: var(--tx-wine); color: #fff; font-weight: 600; }
.tx-pager .is-disabled { opacity: .4; }

/* --------------------------------------------------------------------------
   Product detail
   -------------------------------------------------------------------------- */
.tx-pdp { display: grid; gap: var(--tx-gap-md); grid-template-columns: 1fr; }
@media (min-width: 900px) { .tx-pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--tx-gap-lg); } }

.tx-gallery__main {
    border: 1px solid var(--tx-line); border-radius: var(--tx-radius-lg); overflow: hidden;
    background: #fff; aspect-ratio: 3 / 4;
}
.tx-gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--tx-normal) var(--tx-ease); }
.tx-gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; }
.tx-gallery__thumbs button {
    width: 68px; border: 1px solid var(--tx-line); border-radius: var(--tx-radius); overflow: hidden;
    padding: 0; cursor: pointer; background: #fff; aspect-ratio: 3 / 4;
    transition: border-color var(--tx-fast) var(--tx-ease), transform var(--tx-fast) var(--tx-ease);
}
.tx-gallery__thumbs button:hover { transform: translateY(-2px); }
.tx-gallery__thumbs button.is-active { border-color: var(--tx-wine); }
.tx-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.tx-pdp__price { display: flex; align-items: baseline; gap: 12px; margin: var(--tx-gap-sm) 0 var(--tx-gap); }
.tx-pdp__price .tx-price { font-size: 30px; }
.tx-optionrow { margin-bottom: var(--tx-gap); }
.tx-optionrow > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.tx-optionrow > label em { font-style: normal; color: var(--tx-muted); font-weight: 400; }
.tx-pill {
    display: inline-flex; align-items: center; justify-content: center; min-width: 46px;
    padding: 7px 14px; margin: 0 8px 8px 0; border: 1px solid var(--tx-line);
    border-radius: var(--tx-radius-pill); background: #fff; cursor: pointer; font-size: 13.5px;
    transition: all var(--tx-fast) var(--tx-ease);
}
.tx-pill:hover { border-color: var(--tx-wine); color: var(--tx-wine); }
.tx-pill.is-active { background: var(--tx-wine); border-color: var(--tx-wine); color: #fff; }
.tx-pill.is-out { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

.tx-spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.tx-spec th { text-align: left; padding: 8px 14px 8px 0; color: var(--tx-muted); font-weight: 500; width: 42%; vertical-align: top; }
.tx-spec td { padding: 8px 0; color: var(--tx-ink); }

.tx-tabs { display: flex; gap: var(--tx-gap-md); border-bottom: 1px solid var(--tx-line); margin-bottom: var(--tx-gap-md); overflow-x: auto; }
.tx-tabs button {
    background: none; border: 0; padding: 12px 0; cursor: pointer; font-size: 14.5px; font-weight: 600;
    color: var(--tx-muted); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: color var(--tx-fast) var(--tx-ease), border-color var(--tx-fast) var(--tx-ease);
}
.tx-tabs button:hover { color: var(--tx-ink); }
.tx-tabs button.is-active { color: var(--tx-wine); border-bottom-color: var(--tx-wine); }
.tx-tabpanel { display: none; }
.tx-tabpanel.is-active { display: block; animation: txFade var(--tx-normal) var(--tx-ease) both; }
@keyframes txFade { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   Offers, reviews, trust strip
   -------------------------------------------------------------------------- */
.tx-offer {
    display: flex; gap: var(--tx-gap); align-items: center; padding: var(--tx-gap);
    border: 1px dashed var(--tx-gold); border-radius: var(--tx-radius-lg); background: var(--tx-gold-soft);
    transition: transform var(--tx-normal) var(--tx-ease);
}
.tx-offer:hover { transform: translateY(-3px); }
.tx-offer__code {
    font-family: var(--tx-font-body); font-weight: 700; letter-spacing: .1em;
    background: #fff; border: 1px dashed var(--tx-gold); border-radius: var(--tx-radius-sm);
    padding: 7px 12px; color: var(--tx-wine); font-size: 13px; white-space: nowrap; cursor: pointer;
}
.tx-offer strong { display: block; color: var(--tx-ink); font-family: var(--tx-font-display); font-size: 17px; }
.tx-offer span { font-size: 13px; color: var(--tx-body); }

.tx-review {
    background: #fff; border: 1px solid var(--tx-line); border-radius: var(--tx-radius-lg);
    padding: var(--tx-gap-md); height: 100%;
    transition: transform var(--tx-normal) var(--tx-ease), box-shadow var(--tx-normal) var(--tx-ease);
}
.tx-review:hover { transform: translateY(-3px); box-shadow: var(--tx-shadow); }
.tx-review blockquote { margin: 10px 0 var(--tx-gap); font-size: 14.5px; color: var(--tx-body); }
.tx-review__who { display: flex; align-items: center; gap: 10px; }
.tx-review__avatar {
    width: 38px; height: 38px; border-radius: 50%; background: var(--tx-wine-soft); color: var(--tx-wine);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.tx-review__who strong { display: block; font-size: 14px; color: var(--tx-ink); font-family: var(--tx-font-body); }
.tx-review__who span { font-size: 12px; color: var(--tx-muted); }

/* --------------------------------------------------------------------------
   Home: "What our customers say" - ivory cards on a wine silk background.
   Three images come in as custom properties from the view (Url.Content), so
   they resolve the same whether this file is served alone or bundled:
     --tx-t-drape   the silk, stretched to fill (it has no motif to distort)
     --tx-t-butta   the paisley field, tiled at a fixed size
     --tx-t-border  the zari temple border, repeated along top and bottom
   Keeping the motifs as fixed-size tiles is what stops them ballooning on a
   phone, where this section is far taller than it is wide.
   -------------------------------------------------------------------------- */
.tx-testimonials {
    position: relative; overflow: hidden;
    padding: 108px 0 116px; color: #fff;
    background:
        var(--tx-t-butta, none) 0 0 / 140px 120px repeat,
        radial-gradient(ellipse 70% 60% at 50% 45%, rgba(26, 8, 12, .1), rgba(26, 8, 12, .5)),
        var(--tx-t-drape, none) center / 100% 100% no-repeat,
        #4a1019;
}
.tx-testimonials::before,
.tx-testimonials::after {
    content: ""; position: absolute; left: 0; right: 0; height: 56px; pointer-events: none;
    background: var(--tx-t-border, none) 0 0 / 48px 56px repeat-x;
}
.tx-testimonials::before { top: 0; }
.tx-testimonials::after  { bottom: 0; transform: scaleY(-1); }

.tx-testimonials__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.tx-testimonials__head .tx-eyebrow { color: #e9cf9f; letter-spacing: .28em; }
.tx-testimonials__head h2 {
    margin: 10px 0 0; color: #fff; font-family: var(--tx-font-brand); font-weight: 600;
    font-size: clamp(30px, 4.4vw, 46px); letter-spacing: .02em; line-height: 1.12;
}
/* Gold rule - diamond - gold rule under the heading */
.tx-testimonials__ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px 0 16px; }
.tx-testimonials__ornament::before,
.tx-testimonials__ornament::after { content: ""; width: 64px; height: 1px; background: linear-gradient(90deg, transparent, #e9cf9f); }
.tx-testimonials__ornament::after { transform: scaleX(-1); }
.tx-testimonials__ornament i { width: 7px; height: 7px; background: #e3bd76; transform: rotate(45deg); }
.tx-testimonials__score { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .78); }
.tx-testimonials__score strong { color: #fff; font-weight: 700; }
.tx-testimonials__stars {
    display: inline-block; margin-right: 8px; font-size: 16px; letter-spacing: 2px; vertical-align: -1px;
    background: linear-gradient(90deg, #e3bd76 var(--tx-fill, 100%), rgba(255, 255, 255, .25) var(--tx-fill, 100%));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.tx-testimonials__grid {
    display: grid; gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.tx-testimonial {
    position: relative; display: flex; flex-direction: column; margin: 0;
    padding: 34px 28px 26px; border-radius: var(--tx-radius-lg);
    background: #fffdf8; color: var(--tx-body);
    border-top: 3px solid #c99a4f;
    box-shadow: 0 18px 40px rgba(20, 5, 9, .35);
    transition: transform var(--tx-normal) var(--tx-ease), box-shadow var(--tx-normal) var(--tx-ease);
}
.tx-testimonial.is-in:hover, .tx-testimonial:not(.tx-reveal):hover {
    transform: translateY(-6px); box-shadow: 0 26px 56px rgba(20, 5, 9, .45);
}
.tx-testimonial__quote {
    position: absolute; top: 6px; right: 22px; font-family: var(--tx-font-brand);
    font-size: 110px; line-height: 1; color: #c99a4f; opacity: .22; pointer-events: none;
}
.tx-testimonial__stars { display: flex; gap: 3px; font-size: 16px; color: #e6dccd; }
.tx-testimonial__stars .is-on { color: #c99a4f; }
.tx-testimonial__title {
    margin: 14px 0 0; font-family: var(--tx-font-brand); font-weight: 700; font-size: 22px;
    line-height: 1.2; color: var(--tx-wine-dark);
}
.tx-testimonial__text {
    flex: 1 1 auto; margin: 10px 0 22px; font-size: 15px; line-height: 1.7; color: var(--tx-body);
}
.tx-testimonial__who {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding-top: 18px; border-top: 1px solid #efe5d6;
}
.tx-testimonial__avatar {
    flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--tx-wine), var(--tx-wine-dark)); color: #f3dcae;
    box-shadow: 0 0 0 2px #fffdf8, 0 0 0 3px #c99a4f;
    font-family: var(--tx-font-brand); font-size: 21px; font-weight: 700;
}
.tx-testimonial__meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.tx-testimonial__meta strong { font-size: 14.5px; color: var(--tx-ink); }
.tx-testimonial__meta span { font-size: 12.5px; color: var(--tx-muted); overflow-wrap: anywhere; }
.tx-testimonial__meta .tx-testimonial__verified {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 3px;
    color: var(--tx-ok); font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
}

@media (max-width: 639px) {
    .tx-testimonials { padding: 88px 0 96px; }
    .tx-testimonials__head { margin-bottom: 32px; }
    .tx-testimonial { padding: 30px 22px 22px; }
}

.tx-trust { display: grid; gap: var(--tx-gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .tx-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tx-trust__item { text-align: center; padding: var(--tx-gap); }
.tx-trust__item strong { display: block; font-family: var(--tx-font-display); font-size: 16px; color: var(--tx-ink); margin-bottom: 3px; }
.tx-trust__item span { font-size: 13px; color: var(--tx-muted); }
.tx-trust__icon { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--tx-gold); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
/* Near-black with a faint wine glow, a gold hairline on top, gold headings. */
.tx-footer {
    position: relative; margin-top: var(--tx-gap-xl); padding: 64px 0 0;
    color: rgba(255, 255, 255, .7);
    background:
        radial-gradient(ellipse 60% 80% at 0% 0%, rgba(123, 31, 43, .38), transparent 70%),
        radial-gradient(ellipse 50% 70% at 100% 100%, rgba(123, 31, 43, .22), transparent 70%),
        #1a1215;
}
.tx-footer::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--tx-gold) 20%, #e9cf9f 50%, var(--tx-gold) 80%, transparent);
}
.tx-footer h4 {
    position: relative; color: #e9cf9f; font-family: var(--tx-font-body);
    font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
    margin: 6px 0 22px; padding-bottom: 14px;
}
.tx-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 1px; background: var(--tx-gold); }
.tx-footer a { color: rgba(255, 255, 255, .72); transition: color var(--tx-fast) var(--tx-ease); }
.tx-footer a:hover { color: #e9cf9f; }
.tx-footer ul { list-style: none; padding: 0; margin: 0; }
.tx-footer li { margin-bottom: 11px; font-size: 14px; }
.tx-footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tx-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .tx-footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1.4fr; gap: 48px; } }

.tx-footer__brand p { max-width: 380px; margin: 20px 0 0; font-size: 14px; line-height: 1.75; }
.tx-footer__lockup { display: inline-flex; align-items: center; gap: 16px; }
.tx-footer__lockup:hover .tx-footer__name { color: #fff; }
/* The mark keeps its colours on a light disc ringed in gold. */
.tx-footer__medallion {
    flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
    width: 84px; height: 84px; padding: 5px; border-radius: 50%;
    background: #fff; box-shadow: 0 0 0 1px rgba(184, 135, 58, .7), 0 0 0 5px rgba(184, 135, 58, .14);
}
.tx-footer__medallion img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.tx-footer__name {
    display: block; font-family: var(--tx-font-brand); font-weight: 600; font-size: 28px; line-height: 1.1;
    letter-spacing: .12em; text-transform: uppercase; color: #fff; transition: color var(--tx-fast) var(--tx-ease);
}
.tx-footer__tag { display: block; margin-top: 6px; font-family: var(--tx-font-brand); font-style: italic; font-size: 16px; color: #e9cf9f; }

.tx-footer__social { display: flex; gap: 10px; margin-top: 24px; }
.tx-footer__social a {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(233, 207, 159, .35); color: #e9cf9f;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background var(--tx-fast) var(--tx-ease), border-color var(--tx-fast) var(--tx-ease), color var(--tx-fast) var(--tx-ease), transform var(--tx-fast) var(--tx-ease);
}
.tx-footer__social a:hover { background: var(--tx-gold); border-color: var(--tx-gold); color: #1a1215; transform: translateY(-2px); }

.tx-footer__reach li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.55; }
.tx-footer__reach svg { flex: 0 0 auto; margin-top: 3px; color: var(--tx-gold); }
.tx-footer__reach span { min-width: 0; overflow-wrap: anywhere; }
.tx-footer__reach small {
    display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .45);
}

.tx-footer__base {
    border-top: 1px solid rgba(233, 207, 159, .16); margin-top: 56px;
    padding: 20px 0 22px; font-size: 12.5px; letter-spacing: .04em; color: rgba(255, 255, 255, .5);
    display: flex; flex-wrap: wrap; gap: 8px var(--tx-gap); justify-content: space-between;
}
.tx-footer__powered { letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }

/* --------------------------------------------------------------------------
   Breadcrumb, page head
   -------------------------------------------------------------------------- */
.tx-crumb { font-size: 13px; color: var(--tx-muted); padding: var(--tx-gap) 0 0; }
.tx-crumb a { color: var(--tx-muted); }
.tx-crumb a:hover { color: var(--tx-wine); }
.tx-crumb span { margin: 0 7px; opacity: .5; }

.tx-pagehead { background: var(--tx-white); border-bottom: 1px solid var(--tx-line); padding: var(--tx-gap-md) 0; }
.tx-pagehead h1 { margin: 0; }
.tx-pagehead p { margin: 6px 0 0; color: var(--tx-muted); }

/* --------------------------------------------------------------------------
   Scroll reveal - opt in with data-reveal, degrades to visible without JS
   -------------------------------------------------------------------------- */
.tx-reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--tx-slow) var(--tx-ease), transform var(--tx-slow) var(--tx-ease); }
.tx-reveal.is-in { opacity: 1; transform: none; }

/* Anyone who has asked their system to stop moving things gets a still page. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .tx-reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.tx-muted   { color: var(--tx-muted); }
.tx-small   { font-size: 13px; }
.tx-strong  { font-weight: 600; color: var(--tx-ink); }
.tx-center  { text-align: center; }
.tx-right   { text-align: right; }
.tx-nowrap  { white-space: nowrap; }
.tx-mt0 { margin-top: 0; }
.tx-mb0 { margin-bottom: 0; }
.tx-mt  { margin-top: var(--tx-gap); }
.tx-mb  { margin-bottom: var(--tx-gap); }
.tx-mt-md { margin-top: var(--tx-gap-md); }
.tx-flex { display: flex; gap: var(--tx-gap); align-items: center; }
.tx-flex--between { justify-content: space-between; }
.tx-flex--wrap { flex-wrap: wrap; }
.tx-hide { display: none !important; }
.tx-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Cart row that needs attention (stock changed under the shopper) */
.tx-row-warn { background: var(--tx-warn-soft) !important; }
.tx-cart-qty { display: inline-block; }

/* --------------------------------------------------------------------------
   Account, checkout and payment
   -------------------------------------------------------------------------- */
.tx-authbox {
    max-width: 420px; margin: 0 auto; background: #fff;
    border: 1px solid var(--tx-line); border-radius: var(--tx-radius-lg);
    padding: var(--tx-gap-md);
}

/* Label with a link on the right, e.g. Password ... Forgot password? */
.tx-labelrow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.tx-labelrow > label { font-size: 13px; font-weight: 600; color: var(--tx-ink); margin: 0; }

.tx-authlinks {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px;
    margin-top: var(--tx-gap); padding-top: var(--tx-gap); border-top: 1px solid var(--tx-line-soft);
    font-size: 14px;
}
.tx-authlinks a { padding: 4px 0; }

/* One-time code: spaced digits, easy to read back from a phone. */
.tx-codeinput { letter-spacing: .4em; font-size: 20px !important; font-weight: 600; text-align: center; }

.tx-account { display: grid; gap: var(--tx-gap-md); grid-template-columns: 1fr; align-items: start; }
/* Grid items default to min-width:auto, so one wide child stretches the whole
   column. Every account page has at least one. */
.tx-account > * { min-width: 0; }
@media (min-width: 900px) { .tx-account { grid-template-columns: 232px minmax(0, 1fr); } }

.tx-acctnav {
    background: #fff; border: 1px solid var(--tx-line);
    border-radius: var(--tx-radius-lg); padding: var(--tx-gap-sm);
    position: sticky; top: calc(var(--tx-header-h) + 12px);
}
.tx-acctnav__who {
    display: flex; gap: 10px; align-items: center;
    padding: var(--tx-gap-sm) var(--tx-gap-sm) var(--tx-gap);
    border-bottom: 1px solid var(--tx-line-soft); margin-bottom: var(--tx-gap-sm);
}
.tx-acctnav__who strong { display: block; font-size: 14px; color: var(--tx-ink); }
.tx-acctnav__item {
    display: block; padding: 9px 12px; border-radius: var(--tx-radius);
    color: var(--tx-body); font-size: 14px;
    transition: background var(--tx-fast) var(--tx-ease), color var(--tx-fast) var(--tx-ease);
}
.tx-acctnav__item:hover { background: var(--tx-cream); color: var(--tx-wine); }
.tx-acctnav__item.is-active { background: var(--tx-wine-soft); color: var(--tx-wine); font-weight: 600; }

.tx-stat {
    background: #fff; border: 1px solid var(--tx-line);
    border-radius: var(--tx-radius-lg); padding: var(--tx-gap);
}
.tx-stat__label { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-muted); }
.tx-stat__value { display: block; font-family: var(--tx-font-display); font-size: 28px; color: var(--tx-ink); margin-top: 4px; }

.tx-checkout { display: grid; gap: var(--tx-gap-md); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .tx-checkout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.tx-checkout__summary { position: sticky; top: calc(var(--tx-header-h) + 12px); }

.tx-addresspick__item {
    display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
    border: 1px solid var(--tx-line); border-radius: var(--tx-radius);
    padding: 12px 14px; margin-bottom: 10px;
    transition: border-color var(--tx-fast) var(--tx-ease), background var(--tx-fast) var(--tx-ease);
}
.tx-addresspick__item:hover { border-color: var(--tx-wine); }
.tx-addresspick__item input { accent-color: var(--tx-wine); margin-top: 3px; }
.tx-addresspick__item span { display: block; }
.tx-addresspick__item strong { display: inline-block; margin-right: 8px; color: var(--tx-ink); }
.tx-addresspick__item input:checked + span { color: var(--tx-ink); }
.tx-addresspick__item:has(input:checked) { border-color: var(--tx-wine); background: var(--tx-wine-soft); }

/* Payment step tracker */
.tx-paysteps { display: flex; flex-wrap: wrap; gap: var(--tx-gap); }
.tx-paysteps__step {
    display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tx-muted);
}
.tx-paysteps__step b {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%; font-size: 12px;
    background: var(--tx-line-soft); color: var(--tx-muted);
}
.tx-paysteps__step.is-done { color: var(--tx-ok); }
.tx-paysteps__step.is-done b { background: var(--tx-ok-soft); color: var(--tx-ok); }
.tx-paysteps__step.is-current { color: var(--tx-wine); font-weight: 600; }
.tx-paysteps__step.is-current b { background: var(--tx-wine); color: #fff; }

.tx-qrpay { display: grid; gap: var(--tx-gap-md); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 640px) { .tx-qrpay { grid-template-columns: 240px minmax(0, 1fr); } }
.tx-qrpay__code {
    border: 1px solid var(--tx-line); border-radius: var(--tx-radius-lg);
    padding: var(--tx-gap); background: #fff; text-align: center;
}
.tx-qrpay__code img { width: 100%; max-width: 220px; margin: 0 auto; }

/* Order progress timeline */
.tx-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.tx-timeline::before {
    content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px;
    width: 2px; background: var(--tx-line);
}
.tx-timeline__item { display: flex; gap: 14px; padding: 8px 0; position: relative; }
.tx-timeline__dot {
    width: 14px; height: 14px; border-radius: 50%; background: var(--tx-wine);
    border: 3px solid #fff; box-shadow: 0 0 0 1px var(--tx-line);
    flex: 0 0 auto; margin-top: 5px; position: relative; z-index: 1;
}
.tx-timeline__item:last-child .tx-timeline__dot { background: var(--tx-ok); }
.tx-timeline__item strong { display: block; color: var(--tx-ink); font-size: 14px; }

/* ==========================================================================
   Phones and small tablets
   Most shoppers and a good share of staff open this on a phone, so these rules
   tune the shared components for a narrow screen and a thumb instead of a mouse.
   ========================================================================== */

/* iOS zooms the whole page into any field whose text is under 16px and never
   zooms back out. 16px on small screens keeps the page where the user left it. */
@media (max-width: 767px) {
    .tx-input, .tx-select, .tx-textarea,
    .tx-search input, .tx-qty input { font-size: 16px; }
}

/* A two-up grid is too tight below ~640px for anything but small tiles, so it
   stacks. tx-grid--2-keep opts back in for product cards and stat tiles. */
@media (max-width: 639px) {
    .tx-grid--2:not(.tx-grid--2-keep) { grid-template-columns: minmax(0, 1fr); }
}

/* Offer card: let the code chip drop under the text instead of squeezing it. */
.tx-offer { flex-wrap: wrap; }
.tx-offer > * { min-width: 0; }

/* Touch targets. Small links and buttons get enough height to hit with a thumb. */
@media (hover: none), (max-width: 767px) {
    .tx-btn--sm { min-height: 38px; }
    .tx-drawer a { padding: 12px 0; }
    .tx-check { padding: 8px 0; }
    .tx-check input { width: 18px; height: 18px; }
    .tx-swatch span { width: 32px; height: 32px; }
    .tx-acctnav__item { padding: 11px 12px; }
    .tx-pager a, .tx-pager span { min-width: 42px; height: 42px; }
}

/* The hero dots are 3px bars. The bar stays the same, but the button around it
   grows so it can be tapped. */
.tx-hero__dots button { height: 23px; padding: 10px 0; background-clip: content-box; }

/* Gallery thumbs scroll sideways instead of spilling off the screen. */
.tx-gallery__thumbs { overflow-x: auto; scrollbar-width: none; }
.tx-gallery__thumbs::-webkit-scrollbar { display: none; }
.tx-gallery__thumbs button { flex: 0 0 auto; }

/* Toasts span the bottom of a phone screen instead of a fixed 340px box. */
@media (max-width: 639px) {
    .tx-toasts { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: none; }
}

/* Confirm dialog: thumb-sized buttons, sharing the row. */
@media (max-width: 479px) {
    .tx-modal__box { padding: var(--tx-gap); }
    .tx-modal__foot .tx-btn { flex: 1 1 0; }
}

/* A table that only has a couple of columns does not need the 560px floor. */
.tx-table--fit { min-width: 0; }

/* --------------------------------------------------------------------------
   Shop filters: a bottom sheet on phones, the usual rail on desktop
   -------------------------------------------------------------------------- */
.tx-filters__toggle, .tx-filters__head, .tx-filters__scrim { display: none; }
.tx-filters__dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--tx-wine); display: inline-block;
}

@media (max-width: 899px) {
    .tx-filters__toggle { display: flex; }
    .tx-filters__scrim { display: block; }
    .tx-filters .tx-rail {
        position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 70;
        max-height: 85vh; overflow-y: auto; overscroll-behavior: contain;
        border-radius: var(--tx-radius-lg) var(--tx-radius-lg) 0 0; border-bottom: 0;
        padding-bottom: calc(var(--tx-gap) + env(safe-area-inset-bottom, 0px));
        box-shadow: var(--tx-shadow-lg);
        transform: translateY(100%); visibility: hidden;
        transition: transform var(--tx-normal) var(--tx-ease), visibility var(--tx-normal);
    }
    .tx-filters.is-open .tx-rail { transform: none; visibility: visible; }
    .tx-filters.is-open .tx-filters__scrim { opacity: 1; visibility: visible; }
    .tx-filters__head {
        display: flex; align-items: center; justify-content: space-between;
        position: sticky; top: calc(-1 * var(--tx-gap)); z-index: 1;
        margin: calc(-1 * var(--tx-gap)) calc(-1 * var(--tx-gap)) 0; padding: 10px var(--tx-gap);
        background: #fff; border-bottom: 1px solid var(--tx-line-soft);
    }
    .tx-filters__head strong { font-size: 16px; color: var(--tx-ink); }
    .tx-filters .tx-rail__group:nth-child(2) { padding-top: var(--tx-gap); }
    body.tx-noscroll { overflow: hidden; }
    .tx-toolbar { gap: var(--tx-gap-sm); }
}

/* --------------------------------------------------------------------------
   Product page buy bar (phones only)
   -------------------------------------------------------------------------- */
.tx-buybar { display: none; }
@media (max-width: 899px) {
    .tx-buybar {
        display: flex; align-items: center; gap: 8px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
        border-top: 1px solid var(--tx-line); box-shadow: 0 -4px 16px rgba(36, 28, 31, .08);
        transform: translateY(110%); visibility: hidden;
        transition: transform var(--tx-normal) var(--tx-ease), visibility var(--tx-normal);
    }
    .tx-buybar.is-shown { transform: none; visibility: visible; }
    .tx-buybar__price { flex: 1 1 auto; min-width: 0; font-weight: 700; color: var(--tx-ink); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tx-buybar .tx-btn { padding: 11px 16px; flex: 0 0 auto; }
    body.tx-has-buybar .tx-footer { padding-bottom: 72px; }
    body.tx-has-buybar .tx-toasts { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* --------------------------------------------------------------------------
   Account menu: a swipeable strip above the page instead of a tall list
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
    .tx-acctnav {
        position: static; display: flex; gap: 6px; padding: 6px;
        overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .tx-acctnav::-webkit-scrollbar { display: none; }
    .tx-acctnav__who { display: none; }
    .tx-acctnav__item { flex: 0 0 auto; white-space: nowrap; }
}

/* --------------------------------------------------------------------------
   Tables that become cards on a phone
   Opt in with tx-table--cards. site.js copies each column heading onto its
   cells as data-label, so the markup stays an ordinary table.
     - The first cell becomes the card title.
     - Every other cell is a "label ... value" line.
     - A cell with no heading (row actions) spans the card.
   tx-table--lines is the same idea for item lists that start with a
   thumbnail: the picture sits on the left and the rest stacks beside it.
   -------------------------------------------------------------------------- */
@media (max-width: 639px) {
    .tx-table--cards, .tx-table--lines { min-width: 0; }
    .tx-table--cards thead, .tx-table--lines thead { display: none; }

    .tx-table--cards tbody tr, .tx-table--lines tbody tr {
        display: block; padding: 12px 14px; border-bottom: 1px solid var(--tx-line);
    }
    .tx-table--cards tbody tr:last-child, .tx-table--lines tbody tr:last-child { border-bottom: 0; }
    .tx-table--cards tbody tr:hover, .tx-table--lines tbody tr:hover { background: transparent; }

    .tx-table--cards td, .tx-table--lines td {
        display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
        padding: 4px 0; border: 0; text-align: right; min-width: 0; overflow-wrap: anywhere;
    }
    .tx-table--cards td::before, .tx-table--lines td::before {
        content: attr(data-label); flex: 0 0 auto; max-width: 45%;
        text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
        color: var(--tx-muted); font-weight: 600;
    }
    .tx-table--cards td:not([data-label])::before,
    .tx-table--cards td[data-label=""]::before,
    .tx-table--lines td:not([data-label])::before,
    .tx-table--lines td[data-label=""]::before { display: none; }

    /* Title cell, heading-less cells and full-width message rows read left to right. */
    .tx-table--cards td:first-child,
    .tx-table--cards td:not([data-label]),
    .tx-table--cards td[data-label=""],
    .tx-table--cards td[colspan] { display: block; text-align: left; }
    .tx-table--cards td:first-child { font-size: 15px; padding-bottom: 6px; }
    .tx-table--cards td:first-child::before { display: none; }

    .tx-table--cards .tx-rowactions, .tx-table--lines .tx-rowactions { justify-content: flex-start; flex-wrap: wrap; padding-top: 6px; }

    /* Thumbnail layout */
    .tx-table--lines tbody tr {
        display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px;
        grid-auto-flow: row dense;
    }
    .tx-table--lines td { grid-column: 2; }
    .tx-table--lines td:first-child { grid-column: 1; grid-row: 1 / span 8; display: block; width: auto !important; padding: 2px 0 0; }
    .tx-table--lines td:first-child img { width: 64px !important; height: 82px !important; }
    .tx-table--lines td:nth-child(2) { display: block; text-align: left; }
    .tx-table--lines td:not([data-label]),
    .tx-table--lines td[data-label=""] { justify-content: flex-start; }
}
