:root {
    --sand: #f2eadf;
    --ivory: #fbf8f3;
    --clay: #c79a45;
    --terracotta: #9b6a32;
    --stone: #e4d6c4;
    --olive: #5f513f;
    --gold: #c79a45;
    --charcoal: #26231f;
    --muted: #70675c;
    --line: rgba(38, 35, 31, 0.12);
    --shadow: 0 12px 28px rgba(38, 35, 31, 0.08);
    --focus: #9b6a32;
    --success: #4e6a45;
    --danger: #9a4638;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    color: var(--charcoal);
    background: #f8f3eb;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body.is-scroll-locked {
    overflow: hidden;
}

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

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

input,
select,
textarea,
button {
    max-width: 100%;
}

main:focus {
    outline: none;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    transform: translateY(-150%);
    border-radius: 8px;
    background: var(--charcoal);
    color: #fff;
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 95;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(43, 41, 38, 0.1);
    border-radius: 999px;
    background: rgba(38, 35, 31, 0.92);
    color: #fff;
    box-shadow: 0 16px 34px rgba(38, 35, 31, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.75rem);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.2s ease;
}

.back-to-top:hover {
    background: #1d1a17;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top span[aria-hidden="true"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.95rem;
    line-height: 1;
}

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--focus), transparent 15%);
    outline-offset: 3px;
}

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

.container {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

.soft-wrap {
    overflow-wrap: anywhere;
}

.site-frame {
    position: relative;
    z-index: 30;
    padding-top: 0.75rem;
}

.header-utility,
.header-inner,
.hero-grid,
.feature-grid,
.two-column,
.filters,
.checkout-grid,
.account-grid,
.dashboard-shell,
.stat-grid,
.footer-grid {
    display: grid;
    gap: 1.5rem;
}

.two-column {
    align-items: start;
}

.header-utility,
.header-inner,
.card-grid,
.meta-row,
.button-row,
.form-grid,
.table-actions,
.summary-list,
.locale-list {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.header-utility {
    justify-content: space-between;
}

.header-note {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

.header-utility-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.locale-caption {
    font-size: 0.72rem;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
    color: var(--muted);
}

.site-header {
    background: rgba(251, 248, 243, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(38, 35, 31, 0.06);
    overflow: hidden;
}

.header-utility {
    padding: 0.72rem 1.15rem;
    border-bottom: 1px solid rgba(43, 41, 38, 0.08);
}

.header-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.15rem;
}

.brand-block {
    flex-shrink: 0;
    min-width: 0;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-logo {
    width: 3.6rem;
    height: 3.6rem;
    flex-shrink: 0;
}

.brand-logo-full {
    width: auto;
    height: 3.9rem;
    max-width: min(18rem, 100%);
    object-fit: contain;
}

.header-main .brand-logo-full {
    height: 4.1rem;
    max-width: min(17rem, 100%);
}

.brand-lockup > span,
.brand-lockup > div {
    display: grid;
    gap: 0.18rem;
}

.brand-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.16rem;
    text-transform: uppercase;
    color: var(--muted);
}

.brand {
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.03rem;
    text-transform: uppercase;
    line-height: 1;
    color: var(--olive);
}

.nav-links a,
.locale-list button,
.link-button {
    font-size: 0.95rem;
    color: var(--muted);
}

button.link-button {
    background: transparent;
    color: var(--muted);
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

button.link-button:hover {
    transform: none;
    opacity: 1;
}

.header-actions button.link-button.header-action {
    padding: 0.7rem 0.95rem;
    border-radius: 8px;
}

.nav-links a:hover,
.link-button:hover {
    color: var(--charcoal);
}

.nav-primary {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    align-items: center;
    padding: 0.45rem;
    border-radius: 10px;
    background: rgba(38, 35, 31, 0.035);
    border: 1px solid rgba(43, 41, 38, 0.06);
}

.nav-primary a {
    padding: 0.68rem 0.9rem;
    border-radius: 7px;
    color: var(--charcoal);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-primary a:hover {
    background: rgba(43, 41, 38, 0.06);
}

.nav-primary a.is-active,
.nav-primary a[aria-current="page"] {
    background: #fff;
    color: var(--charcoal);
    box-shadow: inset 0 0 0 1px rgba(38, 35, 31, 0.08);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.65rem;
    justify-self: end;
    padding: 0.72rem 0.95rem;
    border-radius: 8px;
    border: 1px solid rgba(43, 41, 38, 0.1);
    background: rgba(255, 255, 255, 0.66);
    color: var(--charcoal);
}

.nav-toggle-icon {
    display: grid;
    gap: 0.22rem;
    width: 1.05rem;
}

.nav-toggle-icon span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.header-action {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    padding: 0.64rem 0.78rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.header-action:hover {
    color: var(--charcoal);
    background: rgba(255, 255, 255, 0.58);
    border-color: rgba(43, 41, 38, 0.08);
}

.cart-link {
    background: var(--charcoal);
    color: #fff;
    border-color: var(--charcoal);
}

.cart-link:hover {
    color: #fff;
    background: var(--olive);
    border-color: var(--olive);
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.78rem;
    margin-inline-start: 0.35rem;
}

.locale-list-compact {
    gap: 0.2rem;
}

.locale-switch {
    padding: 0.22rem;
    border-radius: 8px;
    background: rgba(43, 41, 38, 0.06);
    border: 1px solid rgba(43, 41, 38, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.locale-switch form {
    margin: 0;
}

.currency-switch-form {
    margin: 0;
}

.currency-switch-select {
    min-width: 8.6rem;
    width: auto;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    border-color: rgba(43, 41, 38, 0.12);
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    line-height: 1;
}

.locale-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0.55rem 0.9rem;
    border-radius: 6px;
    border: 0;
    background: transparent;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

button.link-button.locale-link {
    padding: 0.55rem 0.9rem;
    border-radius: 6px;
}

.locale-link.is-active {
    background: var(--charcoal);
    color: #fff;
    box-shadow: none;
}

.locale-link.is-active:hover {
    color: #fff;
}

.locale-link:not(.is-active):hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--olive);
}

.hero {
    padding: 2rem 0 2.5rem;
}

.hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
}

.hero .hero-grid {
    position: relative;
    grid-template-columns: 1fr;
    min-height: clamp(480px, 64vh, 660px);
    overflow: hidden;
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid rgba(38, 35, 31, 0.1);
}

.hero-copy {
    padding: 2.4rem;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: var(--radius);
    box-shadow: none;
}

.hero .hero-copy {
    position: relative;
    z-index: 2;
    width: min(720px, 100%);
    align-self: end;
    padding: clamp(1.3rem, 4vw, 3rem);
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #fff;
    text-shadow: 0 2px 18px rgba(24, 22, 19, 0.34);
}

.hero .hero-copy p,
.hero .hero-copy .eyebrow {
    color: rgba(255, 255, 255, 0.88);
}

.hero .hero-copy .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
}

.eyebrow {
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: var(--olive);
    font-size: 0.72rem;
    font-weight: 700;
}

h1,
h2,
h3,
h4 {
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    margin: 0 0 1rem;
    font-weight: 600;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.55rem, 5.4vw, 5rem);
}

h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.85rem);
}

p {
    color: var(--muted);
    line-height: 1.68;
    margin: 0 0 1rem;
}

.hero-visual,
.image-cover,
.dashboard-card,
.card,
.surface,
.table-wrap {
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    box-shadow: none;
}

.surface .surface {
    box-shadow: none;
    background: rgba(43, 41, 38, 0.035);
    border-color: rgba(43, 41, 38, 0.06);
}

.surface-body {
    display: grid;
    gap: 0.85rem;
    align-content: start;
}

.surface-body > h1,
.surface-body > h2,
.surface-body > h3,
.surface-body > h4,
.surface-body > p {
    margin-bottom: 0;
}

.hero-visual img,
.image-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-visual.tall {
    min-height: 540px;
}

.hero .hero-visual.tall {
    position: absolute;
    inset: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.hero .hero-visual.tall::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(24, 22, 19, 0.66), rgba(24, 22, 19, 0.18) 58%, rgba(24, 22, 19, 0.02));
}

.section {
    padding: 3rem 0;
}

.section-flush {
    padding-top: 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
}

.section-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.carousel-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.carousel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgba(43, 41, 38, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--charcoal);
    box-shadow: 0 10px 18px rgba(38, 35, 31, 0.04);
    cursor: pointer;
}

.carousel-button:hover {
    background: #fff;
    border-color: rgba(155, 106, 50, 0.35);
}

.carousel-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.carousel-button span {
    font-size: 1.15rem;
    line-height: 1;
}

.carousel-status {
    min-width: 4rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
}

.category-carousel-shell {
    display: grid;
}

.category-carousel-slide {
    display: block;
}

.category-carousel-slide[hidden] {
    display: none;
}

.product-grid,
.feature-grid,
.testimonial-grid,
.stat-grid,
.category-grid,
.gallery-grid,
.gallery-mosaic {
    display: grid;
    gap: 1.5rem;
}

.product-grid,
.category-grid,
.gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.testimonial-grid,
.stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid > .surface,
.support-grid > .surface {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(251, 248, 243, 0.82)),
        #fff;
    border-color: rgba(43, 41, 38, 0.1);
}

.feature-grid > .surface .surface-body,
.support-grid > .surface .surface-body {
    position: relative;
    padding-top: 1.45rem;
}

.feature-grid > .surface .surface-body::before,
.support-grid > .surface .surface-body::before {
    content: "";
    position: absolute;
    inset-inline-start: 1.15rem;
    top: 1.05rem;
    width: 2.35rem;
    height: 2px;
    border-radius: 999px;
    background: var(--clay);
}

.feature-grid > .surface h3,
.support-grid > .surface h3 {
    max-width: 18rem;
}

.product-card {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: none;
    border: 1px solid rgba(43, 41, 38, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(38, 35, 31, 0.08);
}

.product-card .thumb {
    display: block;
    aspect-ratio: 4 / 4.35;
    background: linear-gradient(135deg, var(--stone), var(--sand));
}

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

.product-card .content,
.card-body,
.surface-body,
.dashboard-card,
.table-wrap,
.form-card {
    padding: 1.35rem;
}

.product-card .content {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.product-topline {
    justify-content: space-between;
    margin-bottom: 0;
}

.product-copy {
    display: grid;
    gap: 0.45rem;
}

.product-copy p {
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
}

.product-facts {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.product-fact {
    display: inline-flex;
    align-items: center;
    padding: 0.36rem 0.68rem;
    border-radius: 6px;
    background: rgba(43, 41, 38, 0.05);
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.1;
}

.product-card-footer {
    align-items: end;
    justify-content: space-between;
    gap: 0.8rem;
}

.price-stack {
    display: grid;
    gap: 0.2rem;
    font-size: 1.08rem;
    line-height: 1.15;
}

.price-line-secondary {
    font-size: 0.84rem;
    color: var(--muted);
}

.price-line-secondary s {
    color: inherit;
    text-decoration-thickness: 2px;
    text-decoration-color: currentColor;
}

.price-line-secondary strong {
    font-size: 0.94rem;
    letter-spacing: -0.01em;
}

.product-card-action {
    margin-left: auto;
}

.product-card-action button {
    padding: 0.78rem 1.1rem;
}

.product-card.is-unavailable .thumb img {
    filter: grayscale(0.25);
    opacity: 0.72;
}

.price {
    font-size: 1.15rem;
    color: var(--charcoal);
}

.price s {
    color: var(--muted);
    font-size: 0.9rem;
}

.badge {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.16);
    color: var(--olive);
    font-size: 0.82rem;
    line-height: 1.2;
}

.stock-badge.is-in-stock {
    background: rgba(79, 111, 69, 0.12);
    color: var(--success);
}

.stock-badge.is-out-of-stock {
    background: rgba(159, 77, 58, 0.12);
    color: var(--danger);
}

.btn,
button,
input[type="submit"] {
    border: 0;
    border-radius: 8px;
    background: var(--charcoal);
    color: #fff;
    padding: 0.86rem 1.15rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn,
button {
    min-height: 2.75rem;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-1px);
    opacity: 0.94;
}

button:disabled,
input[type="submit"]:disabled,
.btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.56;
    transform: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(38, 35, 31, 0.18);
    color: var(--charcoal);
}

.input,
select,
textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(43, 41, 38, 0.12);
    background: rgba(255, 255, 255, 0.85);
    font: inherit;
}

.input:focus,
select:focus,
textarea:focus {
    border-color: color-mix(in srgb, var(--focus), transparent 45%);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus), transparent 88%);
    outline: none;
}

.input.is-invalid,
select.is-invalid,
textarea.is-invalid {
    border-color: color-mix(in srgb, var(--danger), transparent 30%);
    background: color-mix(in srgb, #fff, var(--danger) 3%);
}

.field-error {
    display: block;
    margin-top: 0.38rem;
    color: var(--danger);
    font-size: 0.82rem;
    line-height: 1.45;
}

label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
    color: var(--charcoal);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.filters {
    grid-template-columns: 280px 1fr;
    align-items: start;
}

.filters .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.sidebar-card,
.summary-card {
    position: sticky;
    top: 1rem;
}

.sidebar-card {
    background:
        linear-gradient(180deg, #fff, rgba(251, 248, 243, 0.86)),
        #fff;
}

.summary-card {
    background:
        linear-gradient(180deg, #fff, rgba(251, 248, 243, 0.9)),
        #fff;
    border-color: rgba(43, 41, 38, 0.1);
}

.filters .sidebar-card {
    max-height: calc(100vh - 2rem);
}

.filters .sidebar-card .surface-body {
    max-height: inherit;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.checkout-stack {
    display: grid;
    gap: 1.2rem;
}

.cart-layout {
    grid-template-columns: 1.4fr 0.6fr;
}

.checkout-layout {
    grid-template-columns: 1.3fr 0.7fr;
}

.checkout-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1.2rem 0 0.8rem;
}

.checkout-mode-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(43, 41, 38, 0.1);
    background: rgba(250, 247, 242, 0.74);
    cursor: pointer;
}

.checkout-mode-card:has(input:checked),
.payment-option:has(input:checked) {
    border-color: color-mix(in srgb, var(--olive), transparent 35%);
    box-shadow: 0 14px 34px rgba(110, 113, 88, 0.12);
}

.checkout-mode-card input {
    margin-top: 0.3rem;
}

.checkout-mode-copy {
    display: grid;
    gap: 0.24rem;
}

.checkout-mode-copy small {
    color: var(--muted);
    line-height: 1.55;
}

.checkout-intro-card,
.checkout-form-card {
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(43, 41, 38, 0.1);
}

.checkout-helper {
    font-size: 0.95rem;
}

.checkout-helper a {
    color: var(--charcoal);
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.checkout-section + .checkout-section,
.checkout-toggle + .checkout-section {
    margin-top: 1.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}

.section-heading.compact {
    margin-bottom: 1rem;
}

.check-row {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    font-size: 0.96rem;
}

.check-row input {
    width: 1rem;
    height: 1rem;
}

.payment-options {
    display: grid;
    gap: 0.8rem;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    border-radius: 8px;
    border: 1px solid rgba(43, 41, 38, 0.1);
    background: rgba(250, 247, 242, 0.7);
}

.payment-option input {
    margin-top: 0.3rem;
}

.payment-option span {
    display: grid;
    gap: 0.25rem;
}

.payment-option small {
    color: var(--muted);
    line-height: 1.55;
}

.checkout-actions {
    margin-top: 1.8rem;
}

.payment-reference-grid,
.summary-helper,
.action-row,
.wishlist-form,
.inset-panel {
    margin-top: 1rem;
}

.coupon-form {
    display: grid;
    gap: 0.8rem;
    margin: 1rem 0;
}

.quantity-input {
    max-width: 6.5rem;
}

.summary-list {
    justify-content: space-between;
}

.summary-list span {
    color: var(--muted);
}

.summary-list strong {
    text-align: end;
}

.summary-list + .summary-list {
    padding-top: 0.8rem;
    border-top: 1px solid var(--line);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.95rem 0.8rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.table-wrap {
    overflow-x: auto;
}

.table thead th {
    white-space: nowrap;
}

.table td,
.table th {
    min-width: 8rem;
}

.table td:first-child,
.table th:first-child {
    min-width: 11rem;
}

.pagination-pad {
    padding: 1rem;
}

.dashboard-stack {
    margin-top: 2rem;
}

.dashboard-even-column {
    grid-template-columns: 1fr 1fr;
}

.detail-two-column {
    grid-template-columns: 1fr 0.8fr;
}

.field-block {
    margin: 1rem 0;
}

.field-block:first-of-type {
    margin-top: 0;
}

.shop-results-column {
    min-width: 0;
}

.shop-quick-filter {
    position: sticky;
    top: 0.75rem;
    z-index: 20;
    margin-bottom: 1rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(251, 248, 243, 0.96);
    backdrop-filter: blur(10px);
}

.shop-quick-filter-form {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) minmax(10rem, 0.48fr) auto auto;
    gap: 0.65rem;
    align-items: center;
}

.shop-quick-filter-form .input,
.shop-quick-filter-form select {
    min-height: 2.8rem;
    padding-block: 0.72rem;
}

.shop-quick-filter-form button,
.shop-filter-jump {
    min-height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0.72rem 0.95rem;
}

.shop-active-filters {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.7rem;
}

.shop-results-heading {
    margin-bottom: 1.2rem;
}

.full-span {
    grid-column: 1 / -1;
}

.empty-state .surface-body {
    display: grid;
    justify-items: start;
    gap: 0.8rem;
}

.empty-state {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 234, 223, 0.76)),
        #fff;
}

.empty-state h1,
.empty-state h3,
.empty-state p {
    margin-bottom: 0;
}

.pagination-wrap {
    margin-top: 1.5rem;
}

.pagination-wrap.padded {
    padding: 1rem;
    margin-top: 0;
}

.pagination {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.page-link,
.page-item span {
    display: inline-flex;
    min-width: 2.25rem;
    min-height: 2.25rem;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(43, 41, 38, 0.1);
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
}

.page-item.active .page-link,
.page-item.active span {
    background: var(--charcoal);
    color: #fff;
    border-color: var(--charcoal);
}

.page-item.disabled .page-link,
.page-item.disabled span {
    opacity: 0.45;
}

.flash {
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.flash-success {
    background: rgba(110, 113, 88, 0.12);
    color: var(--olive);
}

.flash-error {
    background: rgba(164, 93, 65, 0.12);
    color: var(--terracotta);
}

.page-header {
    padding: 2rem 0 1.2rem;
}

.page-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    align-items: start;
}

.page-hero-copy {
    padding: 1.6rem 0;
}

.shop-hero-card-body {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.shop-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.shop-hero-stat {
    display: grid;
    gap: 0.2rem;
    padding: 0.95rem;
    border-radius: 8px;
    background: rgba(43, 41, 38, 0.04);
    border: 1px solid rgba(43, 41, 38, 0.06);
}

.shop-hero-stat strong {
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1;
}

.shop-hero-stat span {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.shop-hero-pills {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.shop-hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.72rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(43, 41, 38, 0.08);
    color: var(--charcoal);
    font-size: 0.82rem;
}

.story-showcase {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 1.5rem;
    align-items: start;
}

.page-header .story-showcase {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.home-service-panel {
    display: grid;
    grid-template-columns: minmax(14rem, 0.38fr) minmax(0, 0.86fr) minmax(13rem, 0.36fr);
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: center;
    padding: clamp(1rem, 2.8vw, 2rem);
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
}

.home-service-media {
    height: 100%;
    min-height: 18rem;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--stone), var(--sand));
}

.home-service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-service-copy {
    display: grid;
    gap: 1rem;
    align-content: center;
}

.home-service-copy h2 {
    max-width: 14ch;
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.home-service-copy p {
    max-width: 42rem;
    margin-bottom: 0;
}

.home-service-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.home-service-item {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.home-service-item span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
}

.home-service-item strong {
    color: var(--charcoal);
    font-size: 1rem;
    line-height: 1.35;
}

.story-panel {
    display: grid;
    gap: 1.2rem;
    padding: 1.7rem;
    align-content: start;
    min-width: 0;
}

.page-header .story-panel {
    padding: clamp(1.25rem, 3vw, 2.4rem);
}

.story-panel h1 {
    max-width: 11ch;
    font-size: clamp(2.2rem, 4.8vw, 4.1rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
}

.story-panel h2 {
    max-width: 14ch;
}

.story-panel p {
    max-width: 48rem;
    margin: 0;
}

.story-visual {
    min-height: 0;
    height: 100%;
}

.page-header .story-visual {
    min-height: min(52vh, 600px);
}

.about-portrait-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(15rem, 0.94fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
    align-items: stretch;
    width: 100%;
}

.about-portrait-card {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(43, 41, 38, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(242, 234, 223, 0.9));
    box-shadow: var(--shadow);
    min-height: 0;
}

.about-portrait-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-portrait-card-1 img {
    object-position: center 40%;
}

.about-portrait-card-2 img {
    object-position: center 36%;
}

.about-portrait-card-3 img {
    object-position: center 38%;
}

.about-portrait-card-4 img {
    object-position: center 28%;
}

.about-portrait-card-1 {
    grid-column: 1 / span 1;
    grid-row: 1 / span 3;
    aspect-ratio: 4 / 5.9;
}

.about-portrait-card-2 {
    grid-column: 2 / span 1;
    grid-row: 1 / span 1;
    aspect-ratio: 4 / 3.6;
}

.about-portrait-card-3 {
    grid-column: 2 / span 1;
    grid-row: 2 / span 1;
    aspect-ratio: 4 / 3.6;
}

.about-portrait-card-4 {
    grid-column: 2 / span 1;
    grid-row: 3 / span 1;
    aspect-ratio: 4 / 3.6;
}

.story-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.story-metric {
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(43, 41, 38, 0.04);
    border: 1px solid rgba(43, 41, 38, 0.06);
}

.story-metric strong {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1;
}

.story-metric span {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.category-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(43, 41, 38, 0.18);
}

.category-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--stone), var(--sand));
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card .surface-body {
    gap: 0.55rem;
}

.gallery-link {
    position: relative;
    display: block;
    min-height: 18rem;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--stone), var(--sand));
    border: 1px solid rgba(43, 41, 38, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-link:hover {
    transform: translateY(-2px);
}

.gallery-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-link:hover img {
    transform: scale(1.035);
}

.gallery-mosaic {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr) minmax(0, 0.95fr);
    grid-auto-rows: clamp(15rem, 22vw, 24rem);
    gap: 1rem;
}

.gallery-mosaic .gallery-link {
    min-height: 0;
}

.gallery-mosaic .gallery-link:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.gallery-mosaic .gallery-link:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.gallery-mosaic .gallery-link:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

.gallery-mosaic .gallery-link:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

.gallery-mosaic .gallery-link:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
}

.gallery-mosaic .gallery-link:nth-child(6) {
    display: none;
}

.gallery-mosaic .gallery-link:nth-child(n+7) {
    display: none;
}

.gallery-mosaic .gallery-link:nth-child(1) img,
.gallery-mosaic .gallery-link:nth-child(3) img,
.gallery-mosaic .gallery-link:nth-child(5) img {
    object-position: center;
}

.gallery-mosaic .gallery-link:nth-child(2) img,
.gallery-mosaic .gallery-link:nth-child(4) img {
    object-position: center 42%;
}

.gallery-caption {
    position: absolute;
    inset-inline: 0.85rem;
    bottom: 0.85rem;
    display: grid;
    gap: 0.18rem;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    background: rgba(251, 248, 243, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow: 0 10px 22px rgba(38, 35, 31, 0.1);
    transform: translateY(calc(100% + 1.2rem));
    transition: transform 0.25s ease;
}

.gallery-link:hover .gallery-caption,
.gallery-link:focus-visible .gallery-caption {
    transform: translateY(0);
}

.gallery-caption span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.gallery-caption strong {
    color: var(--charcoal);
    font-size: 0.95rem;
    line-height: 1.25;
}

.product-detail-layout,
.split-layout {
    grid-template-columns: 1fr 1fr;
}

.product-support-layout {
    grid-template-columns: 1.1fr 0.9fr;
}

.order-detail-layout {
    grid-template-columns: 1.2fr 0.8fr;
}

.contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
}

.contact-layout > .surface:first-child,
.faq-aside {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 234, 223, 0.78)),
        #fff;
}

.contact-layout .summary-list {
    padding: 0.8rem 0;
}

.contact-layout .summary-list strong,
.contact-layout .summary-list span,
.contact-layout p,
.contact-layout h1,
.contact-layout h2 {
    overflow-wrap: anywhere;
}

.product-media {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.product-main-image {
    min-height: 600px;
    margin: 0;
    overflow: hidden;
}

.product-main-image.easyzoom {
    display: block;
    width: 100%;
    height: 100%;
}

.product-main-image > a,
.product-main-image > a > img {
    display: block;
    width: 100%;
    height: 100%;
}

.product-main-image > a > img {
    object-fit: cover;
}

.product-main-image.easyzoom.is-ready img {
    cursor: crosshair;
}

.product-main-image .easyzoom-flyout {
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(122, 94, 46, 0.12);
}

.product-main-image .easyzoom-flyout img {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: initial;
}

.product-main-image .easyzoom-notice {
    border-radius: 8px;
    background: rgba(255, 250, 242, 0.96);
    color: var(--charcoal);
    box-shadow: 0 12px 24px rgba(34, 30, 26, 0.12);
}

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

.product-thumb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-thumb {
    aspect-ratio: 1;
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.product-thumb:hover,
.product-thumb:focus-visible,
.product-thumb.is-active {
    border-color: var(--gold);
}

.product-thumb:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(180, 138, 44, 0.18);
}

.product-summary {
    align-self: start;
    position: sticky;
    top: 1rem;
    background:
        linear-gradient(180deg, #fff, rgba(251, 248, 243, 0.9)),
        #fff;
}

.product-summary .surface-body {
    display: grid;
    gap: 1rem;
}

.product-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.product-detail-title {
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    margin-bottom: 0;
}

.product-detail-price {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    flex-wrap: wrap;
    font-size: 1.35rem;
}

.product-spec-list {
    display: grid;
    gap: 0.8rem;
}

.purchase-row {
    margin-top: 0.3rem;
}

.purchase-row button {
    flex: 1 1 12rem;
}

.review-stack {
    display: grid;
    gap: 0.9rem;
}

.review-card {
    display: grid;
    gap: 0.55rem;
    padding: 0 0 0.9rem;
    border-bottom: 1px solid var(--line);
}

.review-card:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.review-card p {
    margin-bottom: 0;
}

.review-form {
    margin-top: 1.2rem;
}

.cart-product {
    display: grid;
    grid-template-columns: 4rem minmax(12rem, 1fr);
    gap: 0.85rem;
    align-items: center;
}

.cart-product-thumb {
    width: 4rem;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: var(--sand);
}

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

.cart-product small {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted);
}

.cart-quantity-form {
    flex-wrap: nowrap;
}

.narrow-container {
    max-width: 900px;
}

.stacked-container {
    margin-top: 2rem;
}

.dashboard-actions {
    margin-bottom: 1rem;
}

.account-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
    background:
        linear-gradient(135deg, #fff, rgba(242, 234, 223, 0.74)),
        #fff;
}

.stat-card .surface-body {
    gap: 0.45rem;
}

.stat-card h2 {
    margin-bottom: 0;
}

.account-overview-panel,
.confirmation-panel {
    background:
        linear-gradient(135deg, #fff, rgba(251, 248, 243, 0.86)),
        #fff;
}

.inset-table {
    padding: 0;
    background: rgba(255, 255, 255, 0.72);
}

.confirmation-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.confirmation-status-grid .summary-list {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem;
    border: 1px solid rgba(43, 41, 38, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

.confirmation-status-grid .summary-list + .summary-list {
    border-top: 1px solid rgba(43, 41, 38, 0.08);
}

.confirmation-status-grid .summary-list strong {
    text-align: start;
}

.address-card {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.spaced-copy {
    margin-top: 1rem;
}

.settings-editor {
    display: grid;
    gap: 2rem;
}

.homepage-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1rem 0 1.2rem;
}

.homepage-section-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(43, 41, 38, 0.1);
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.homepage-section-nav a:hover {
    color: var(--charcoal);
    border-color: rgba(43, 41, 38, 0.2);
}

.homepage-editor {
    margin-top: 1rem;
}

.homepage-editor .surface-body {
    display: grid;
    gap: 1.5rem;
}

.homepage-editor-grid {
    display: grid;
    gap: 1.25rem;
}

.homepage-card,
.homepage-gallery-surface {
    border-radius: 18px;
}

.homepage-card-body {
    display: grid;
    gap: 1.1rem;
}

.homepage-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.homepage-card-header h2 {
    margin-bottom: 0.15rem;
}

.homepage-card-header p {
    color: var(--muted);
    margin-bottom: 0;
    max-width: 58rem;
}

.homepage-card-meta {
    flex-shrink: 0;
}

.homepage-selection-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(43, 41, 38, 0.04);
    border: 1px dashed rgba(43, 41, 38, 0.12);
}

.selection-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(43, 41, 38, 0.1);
    font-size: 0.92rem;
}

.picker-grid {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.7rem;
}

.picker-grid-products {
    grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
    max-height: 28rem;
    overflow: auto;
    padding-right: 0.2rem;
}

.picker-grid-categories {
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    max-height: 22rem;
    overflow: auto;
    padding-right: 0.2rem;
}

.picker-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.picker-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.picker-card-shell {
    display: grid;
    gap: 0.7rem;
    height: 100%;
    padding: 0.75rem;
    border-radius: 16px;
    border: 1px solid rgba(43, 41, 38, 0.12);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 22px rgba(38, 35, 31, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.picker-card:hover .picker-card-shell {
    border-color: rgba(155, 106, 50, 0.35);
    transform: translateY(-1px);
}

.picker-card input:checked + .picker-card-shell {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(155, 106, 50, 0.1);
}

.picker-card input:focus-visible + .picker-card-shell {
    outline: 3px solid color-mix(in srgb, var(--focus), transparent 20%);
    outline-offset: 2px;
}

.picker-card-media {
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--stone), var(--sand));
}

.picker-card-product .picker-card-media {
    aspect-ratio: 4 / 3;
}

.picker-card-category .picker-card-media {
    aspect-ratio: 1 / 1;
}

.picker-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.picker-card-body {
    display: grid;
    gap: 0.4rem;
    align-content: start;
}

.picker-card-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: space-between;
}

.picker-card-title {
    font-size: 1rem;
    line-height: 1.15;
}

.picker-card-subtitle {
    color: var(--muted);
    font-size: 0.82rem;
}

.homepage-locale-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.homepage-locale-card {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(43, 41, 38, 0.1);
}

.homepage-locale-card-head h3 {
    margin: 0.25rem 0 0;
}

.homepage-gallery-surface {
    margin-top: 1.25rem;
}

.homepage-gallery-upload {
    margin: 1rem 0 1.4rem;
}

.homepage-save-actions {
    padding-top: 0.25rem;
}

.settings-section {
    display: grid;
    gap: 1.2rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid var(--line);
}

.settings-section:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.settings-section h2,
.settings-section p {
    margin-bottom: 0;
}

.settings-actions {
    padding-top: 0.5rem;
}

.editorial-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.5rem;
    align-items: start;
}

.editorial-copy {
    display: grid;
    gap: 0.9rem;
}

.stack-grid {
    display: grid;
    gap: 1rem;
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 1.5rem;
    align-items: start;
}

.faq-page {
    display: grid;
    gap: 1.5rem;
}

.faq-shell {
    display: grid;
    grid-template-columns: minmax(18rem, 0.42fr) minmax(0, 0.58fr);
    gap: clamp(1rem, 3vw, 2.2rem);
    align-items: start;
    padding: clamp(1rem, 3vw, 2rem);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(242, 234, 223, 0.72)),
        #fff;
}

.faq-intro {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.faq-intro h1 {
    max-width: 10ch;
    margin-bottom: 0;
    font-size: clamp(2rem, 3.8vw, 3.35rem);
}

.faq-intro p {
    max-width: 26rem;
    margin-bottom: 0;
}

.faq-help-card {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.3rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(43, 41, 38, 0.08);
    background: rgba(255, 255, 255, 0.64);
}

.faq-help-card span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

.faq-help-card strong {
    color: var(--charcoal);
    font-size: 1rem;
    line-height: 1.35;
}

.faq-aside .surface-body {
    display: grid;
    gap: 1rem;
    height: 100%;
    align-content: start;
}

.faq-stack {
    display: grid;
    gap: 0.65rem;
    align-content: start;
    width: 100%;
    margin-inline: auto;
}

.faq-item summary span:first-child {
    max-width: 44rem;
}

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

.testimonial-card,
.testimonial-card .surface-body {
    height: 100%;
}

.testimonial-card .surface-body {
    display: grid;
    gap: 1rem;
    align-content: space-between;
}

.testimonial-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 248, 243, 0.88)),
        #fff;
}

.testimonial-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.testimonial-head h3 {
    margin-bottom: 0.35rem;
}

.testimonial-card p {
    margin: 0;
}

.testimonial-heading {
    align-items: center;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.testimonial-control {
    min-width: 6.75rem;
    padding-inline: 1rem;
}

.testimonial-page-indicator {
    min-width: 4.5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(43, 41, 38, 0.08);
    border-radius: 8px;
    box-shadow: none;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item:hover,
.faq-item[open] {
    border-color: rgba(43, 41, 38, 0.18);
    background: #fff;
}

.faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.45;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 6px;
    background: rgba(43, 41, 38, 0.06);
    color: var(--charcoal);
    flex-shrink: 0;
}

.faq-item[open] .faq-marker {
    background: var(--charcoal);
    color: #fff;
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1rem 1rem;
}

.faq-answer p {
    margin: 0;
}

.faq-support-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.faq-support-strip > div {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-right: 1px solid var(--line);
}

.faq-support-strip > div:last-child {
    border-right: 0;
}

.faq-support-strip span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
}

.faq-support-strip strong {
    color: var(--charcoal);
    font-size: 1rem;
    line-height: 1.35;
}

.page-hero-card .surface-body {
    height: auto;
}

.page-hero-card .surface {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 234, 223, 0.72)),
        #fff;
}

.page-hero-card .surface-body {
    gap: 1rem;
}

.shop-hero-card-body .button-row {
    padding-top: 0.2rem;
}

.page-meta-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.page-stat {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(43, 41, 38, 0.08);
    color: var(--charcoal);
    font-size: 0.88rem;
}

.filter-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

#shop-filters .field-block {
    margin: 0.8rem 0;
}

#shop-filters label {
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
}

#shop-filters .input,
#shop-filters select {
    padding: 0.72rem 0.8rem;
}

#shop-filters button[type="submit"] {
    width: 100%;
    margin-top: 0.35rem;
}

.text-link {
    font-size: 0.9rem;
    color: var(--muted);
}

.text-link:hover {
    color: var(--charcoal);
}

.section-heading.compact {
    margin-bottom: 0;
}

.section-heading.compact h2,
.section-heading.compact h3 {
    margin-bottom: 0;
}

.support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
}

.support-grid .surface-body,
.feature-grid .surface-body,
.testimonial-grid .surface-body {
    padding: 1.15rem 1.2rem;
}

.two-column .surface-body > :last-child,
.feature-grid .surface-body > :last-child,
.testimonial-grid .surface-body > :last-child,
.product-card .content > :last-child {
    margin-bottom: 0;
}

.footer {
    margin-top: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--line);
    background:
        linear-gradient(180deg, #f3eadf, #efe3d3),
        #f3eadf;
}

.footer-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(8rem, 0.7fr) minmax(8rem, 0.7fr) minmax(12rem, 0.9fr);
    align-items: start;
}

.footer-brand-block {
    display: grid;
    gap: 0.9rem;
}

.footer-brand {
    margin-bottom: 0;
}

.footer-brand .brand-logo-full {
    width: auto;
    height: 3.55rem;
    max-width: min(16rem, 100%);
}

.footer-brand-block p {
    max-width: 34rem;
    margin-bottom: 0;
}

.footer-links,
.footer-contact {
    display: grid;
    gap: 0.55rem;
}

.footer h4 {
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.footer a {
    color: var(--muted);
    line-height: 1.4;
}

.footer a:hover {
    color: var(--charcoal);
}

.footer-contact {
    padding: 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(43, 41, 38, 0.08);
    background: rgba(255, 255, 255, 0.38);
}

.auth-container {
    max-width: 720px;
}

.auth-card {
    background: #fff;
}

.auth-card .surface-body {
    padding: clamp(1.2rem, 4vw, 2rem);
}

.auth-card h1 {
    font-size: clamp(1.9rem, 4vw, 2.35rem);
}

.auth-card form {
    margin-top: 1.2rem;
}

.auth-form-footer {
    justify-content: space-between;
}

.auth-form-footer label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
}

.auth-form-footer a {
    color: var(--charcoal);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.dashboard-shell {
    grid-template-columns: 282px minmax(0, 1fr);
    min-height: 100vh;
    gap: 0;
    background: linear-gradient(90deg, #2b2824 0 282px, #f7f4ef 282px 100%);
    position: relative;
    align-items: stretch;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 282px;
    min-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    background: #2b2824;
    color: #f8f3eb;
    padding: 1.35rem 1.2rem;
    border-right: 1px solid rgba(38, 35, 31, 0.12);
    z-index: 40;
}

.dashboard-mobile-bar,
.dashboard-backdrop,
.sidebar-close {
    display: none;
}

.dashboard-mobile-bar {
    margin-bottom: 1rem;
}

.dashboard-nav-toggle,
.sidebar-close {
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 1px solid rgba(43, 41, 38, 0.12);
    background: #fff;
    color: var(--charcoal);
    box-shadow: 0 8px 22px rgba(38, 35, 31, 0.08);
}

.dashboard-nav-toggle {
    display: inline-flex;
    padding: 0.72rem 0.95rem;
    border-radius: 8px;
}

.sidebar-mobile-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.sidebar-close {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    padding: 0;
    font-size: 1.4rem;
    line-height: 1;
}

.sidebar a {
    display: flex;
    align-items: center;
    min-height: 2.65rem;
    padding: 0.72rem 0.85rem;
    border-radius: 7px;
    color: rgba(248, 243, 235, 0.72);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.sidebar .sidebar-return {
    margin-bottom: 0.75rem;
    border: 1px solid rgba(248, 243, 235, 0.16);
    background: rgba(248, 243, 235, 0.08);
    color: #fff;
}

.sidebar .sidebar-return:hover {
    background: rgba(248, 243, 235, 0.14);
}

.sidebar a + a {
    margin-top: 0.12rem;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.4rem 0 1rem;
    margin-bottom: 1rem !important;
    border-bottom: 1px solid rgba(248, 243, 235, 0.14);
}

.sidebar-brand .brand-logo {
    width: auto;
    height: 4.1rem;
    max-width: 14rem;
    filter: brightness(1.12);
}

.sidebar-brand-caption {
    color: rgba(245, 239, 230, 0.65);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16rem;
    text-transform: uppercase;
}

.sidebar-brand .brand {
    color: #f5efe6;
    font-size: 1.05rem;
    letter-spacing: 0.02rem;
}

.sidebar-brand .brand-kicker {
    color: rgba(245, 239, 230, 0.62);
    letter-spacing: 0.08rem;
}

.dashboard-main {
    grid-column: 2;
    min-width: 0;
    padding: 1.35rem 1.5rem 1.5rem;
    position: relative;
    z-index: 1;
}

.dashboard-main > .section-heading:first-child {
    margin-top: 0;
}

.dashboard-main .section-heading {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.dashboard-main .section-heading h1 {
    font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.dashboard-main .stat-grid {
    gap: 1rem;
}

.dashboard-main .stat-grid .surface {
    background:
        linear-gradient(135deg, #fff, rgba(242, 234, 223, 0.72)),
        #fff;
    border-color: rgba(38, 35, 31, 0.1);
}

.dashboard-main .stat-grid h2 {
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    margin-bottom: 0;
}

.dashboard-main .stat-grid .surface-body {
    gap: 0.55rem;
}

.dashboard-main .table-wrap {
    background: #fff;
    border-color: rgba(38, 35, 31, 0.1);
}

.dashboard-main .table th {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    background: #fbf8f3;
}

.dashboard-main .table td {
    background: #fff;
}

.dashboard-main .table tbody tr:hover td {
    background: rgba(242, 234, 223, 0.42);
}

.dashboard-main .table-actions {
    gap: 0.45rem;
    justify-content: flex-end;
}

.dashboard-main form {
    margin: 0;
}

.dashboard-main .table-actions a,
.dashboard-main .table-actions .link-button {
    display: inline-flex;
    align-items: center;
    min-height: 2.1rem;
    padding: 0.42rem 0.62rem;
    border-radius: 6px;
    background: rgba(38, 35, 31, 0.045);
    color: var(--charcoal);
    font-size: 0.82rem;
    font-weight: 600;
}

.dashboard-main .table-actions .link-button {
    color: var(--danger);
}

.inline-copy-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.inline-copy-group code {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(38, 35, 31, 0.1);
    background: rgba(38, 35, 31, 0.04);
    color: var(--charcoal);
    font-size: 0.86rem;
    font-weight: 700;
}

.copy-token {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.32rem 0.68rem;
    border: 1px solid rgba(38, 35, 31, 0.12);
    border-radius: 999px;
    background: #fff;
    color: var(--charcoal);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.copy-token:hover {
    background: rgba(38, 35, 31, 0.05);
}

.copy-token.is-copied {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: #fff;
}

.price-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.price-line strong {
    color: var(--charcoal);
    font-size: 0.98rem;
    font-weight: 700;
}

.price-line-highlight {
    padding-top: 0.35rem;
    border-top: 1px solid var(--line);
}

.price-line-highlight strong {
    font-size: 1.08rem;
}

.product-price-emphasis .price-line-highlight strong {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.product-price-emphasis {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(38, 35, 31, 0.08);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 240, 229, 0.92));
}

.product-short-description {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.availability-note {
    padding: 0.8rem 0.95rem;
    border-radius: 10px;
    background: rgba(38, 35, 31, 0.04);
    color: var(--olive);
    font-size: 0.92rem;
    font-weight: 600;
}

.product-description-details {
    display: grid;
    gap: 0.75rem;
}

.product-description-details summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--olive);
}

.review-locked-message {
    padding: 0.85rem 0.95rem;
    border-radius: 10px;
    background: rgba(38, 35, 31, 0.04);
    color: var(--muted);
}

.gallery-admin-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
}

.gallery-admin-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
}

.gallery-admin-preview {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #f3eadf;
}

.gallery-admin-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-admin-form {
    gap: 0.85rem;
}

.admin-gallery-item {
    position: relative;
    display: grid;
    gap: 0.5rem;
}

.admin-gallery-remove {
    position: absolute;
    top: 0.5rem;
    inset-inline-end: 0.5rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.55rem;
    border: 0;
    border-radius: 999px;
    background: rgba(24, 22, 19, 0.86);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(24, 22, 19, 0.22);
    cursor: pointer;
}

.admin-gallery-remove:hover {
    background: rgba(155, 70, 56, 0.94);
}

.admin-gallery-remove:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--focus), transparent 20%);
    outline-offset: 2px;
}

.home-notes-panel {
    display: grid;
}

.home-notes-copy {
    display: grid;
    gap: 0.75rem;
}

.home-gallery-upload {
    margin-bottom: 1.2rem;
}

.delivery-region-form {
    display: grid;
    gap: 0.5rem;
}

.summary-stack {
    display: grid;
    gap: 0.75rem;
}

.price-preview-panel {
    background:
        linear-gradient(180deg, rgba(251, 248, 243, 0.92), rgba(255, 255, 255, 0.96)),
        #fff;
}

.preview-grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preview-grid .summary-list {
    margin: 0;
}

.muted-line {
    display: block;
    margin-top: 0.22rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-product-thumb {
    display: block;
    width: 4.7rem;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(43, 41, 38, 0.1);
    background: linear-gradient(135deg, var(--stone), var(--sand));
}

.admin-product-thumb img,
.admin-featured-preview img,
.admin-gallery-preview img,
.admin-upload-preview-grid img,
.delete-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-image-preview-panel {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(43, 41, 38, 0.08);
    background: rgba(255, 255, 255, 0.62);
}

.admin-current-image-grid {
    display: grid;
    grid-template-columns: minmax(12rem, 0.4fr) minmax(0, 0.6fr);
    gap: 1rem;
    align-items: start;
}

.admin-featured-preview,
.admin-gallery-preview figure,
.admin-upload-preview-grid figure {
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(43, 41, 38, 0.1);
    background: linear-gradient(135deg, var(--stone), var(--sand));
}

.admin-featured-preview {
    position: relative;
    aspect-ratio: 4 / 3;
}

.admin-featured-preview figcaption {
    position: absolute;
    inset-inline: 0.6rem;
    bottom: 0.6rem;
    padding: 0.38rem 0.55rem;
    border-radius: 6px;
    background: rgba(251, 248, 243, 0.9);
    color: var(--charcoal);
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-gallery-preview,
.admin-upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.admin-gallery-preview figure,
.admin-upload-preview-grid figure {
    aspect-ratio: 1;
}

.admin-upload-preview-grid:empty {
    display: none;
}

.delete-preview-dialog {
    width: min(520px, calc(100% - 2rem));
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
}

.delete-preview-dialog::backdrop {
    background: rgba(24, 22, 19, 0.42);
}

.delete-preview-card {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
}

.delete-preview-card img {
    aspect-ratio: 1;
    border-radius: 8px;
    background: var(--sand);
}

.delete-preview-card h2,
.delete-preview-card p {
    margin-bottom: 0;
}

.dashboard-main .form-card,
.dashboard-main form.surface,
.dashboard-main .surface {
    border-color: rgba(38, 35, 31, 0.1);
}

.settings-editor .surface,
.dashboard-main .form-card {
    background: #fff;
}

.dashboard-main form.surface,
.settings-editor {
    background:
        linear-gradient(180deg, #fff, rgba(251, 248, 243, 0.88)),
        #fff;
}

.dashboard-main form.surface .surface-body,
.settings-editor {
    gap: 1rem;
}

.rtl {
    direction: rtl;
}

[dir="rtl"] body {
    font-family: "Montserrat", Tahoma, Arial, sans-serif;
}

[dir="rtl"] .dashboard-shell {
    grid-template-columns: minmax(0, 1fr);
    background: linear-gradient(270deg, #2b2824 0 282px, #f7f4ef 282px 100%);
    padding-right: 282px;
}

[dir="rtl"] .dashboard-main {
    grid-column: auto;
    direction: rtl;
}

[dir="rtl"] .sidebar {
    position: fixed;
    inset: 0 0 0 auto;
    width: 282px;
    height: 100vh;
    border-right: 0;
    border-left: 1px solid rgba(38, 35, 31, 0.12);
    direction: rtl;
}

[dir="rtl"] .dashboard-mobile-bar {
    justify-content: flex-end;
}

[dir="rtl"] .dashboard-main .section-heading {
    flex-direction: row-reverse;
}

[dir="rtl"] .dashboard-main .table {
    direction: ltr;
}

[dir="rtl"] .dashboard-main .table th,
[dir="rtl"] .dashboard-main .table td {
    direction: rtl;
    text-align: start;
}

[dir="rtl"] .dashboard-main .table-actions {
    justify-content: flex-start;
}

[dir="rtl"] .dashboard-main .table-actions a,
[dir="rtl"] .dashboard-main .table-actions .link-button {
    direction: rtl;
}

@media (max-width: 980px) {
    .header-utility {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }

    .header-main {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .header-main .brand-logo-full {
        height: 3.45rem;
        max-width: min(13.5rem, 100%);
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-primary,
    .header-actions {
        grid-column: 1 / -1;
        width: 100%;
    }

    .js .site-header:not(.is-nav-open) [data-nav-menu] {
        display: none;
    }

    .site-header.is-nav-open {
        position: relative;
        z-index: 80;
    }

    .nav-primary,
    .header-actions {
        justify-content: flex-start;
    }

    .header-utility-group {
        justify-content: space-between;
        width: 100%;
    }

    .homepage-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .homepage-section-nav {
        margin-top: 0.75rem;
    }

    .hero-grid,
    .story-showcase,
    .editorial-grid,
    .faq-layout,
    .faq-shell,
    .page-hero,
    .filters,
    .checkout-grid,
    .account-grid,
    .dashboard-shell,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        gap: 1rem;
    }

    .footer-brand-block {
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(43, 41, 38, 0.1);
    }

    .footer-links,
    .footer-contact {
        padding: 0;
    }

    .footer-contact {
        padding: 0.85rem;
    }

    .support-grid,
    .faq-support-strip,
    .filters .product-grid,
    .product-grid,
    .category-grid,
    .gallery-grid,
    .testimonial-grid,
    .feature-grid,
    .stat-grid,
    .story-metrics,
    .shop-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(14rem, 26vw);
    }

    .gallery-mosaic .gallery-link:nth-child(n) {
        display: block;
        grid-column: auto;
        grid-row: span 1;
    }

    .gallery-mosaic .gallery-link:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .product-summary,
    .summary-card {
        position: static;
    }

    .filters .sidebar-card {
        order: 2;
        position: static;
    }

    .shop-results-column {
        order: 1;
    }

    .shop-quick-filter {
        top: 0.5rem;
    }

    .shop-quick-filter-form {
        grid-template-columns: minmax(12rem, 1fr) auto auto;
    }

    .home-service-panel {
        grid-template-columns: minmax(12rem, 0.42fr) minmax(0, 1fr);
    }

    .home-service-list {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-top: 1px solid var(--line);
    }

    .home-service-item {
        padding: 0.95rem;
        border-bottom: 0;
        border-right: 1px solid var(--line);
    }

    .home-service-item:last-child {
        border-right: 0;
    }

    .shop-quick-filter-form select {
        display: none;
    }

    .product-main-image,
    .story-visual,
    .hero-visual.tall {
        min-height: 420px;
    }

    .hero .hero-grid {
        min-height: 520px;
    }

    .page-header .story-showcase {
        grid-template-columns: 1fr;
    }

    .story-panel h1 {
        max-width: 15ch;
        font-size: clamp(2.15rem, 7vw, 3.4rem);
    }

    .page-header .story-visual {
        min-height: 420px;
    }

    .gallery-admin-grid {
        grid-template-columns: 1fr;
    }

    .delete-preview-card {
        grid-template-columns: 1fr;
    }

    .dashboard-shell {
        grid-template-columns: 1fr;
        background: #f7f4ef;
    }

    .dashboard-backdrop {
        position: fixed;
        inset: 0;
        z-index: 89;
        border: 0;
        background: rgba(24, 22, 19, 0.38);
        padding: 0;
        cursor: pointer;
    }

    .dashboard-shell.is-sidebar-open .dashboard-backdrop {
        display: block;
    }

    .dashboard-mobile-bar {
        display: flex;
        justify-content: flex-start;
        position: sticky;
        top: 0.5rem;
        z-index: 82;
        margin-bottom: 0.85rem;
        padding: 0.4rem 0;
        background: linear-gradient(180deg, rgba(247, 244, 239, 0.95), rgba(247, 244, 239, 0.84));
        backdrop-filter: blur(10px);
    }

    .dashboard-mobile-bar .dashboard-nav-toggle {
        width: 100%;
        justify-content: center;
    }

    .sidebar {
        position: fixed;
        inset-block: 0;
        inset-inline-start: 0;
        z-index: 90;
        width: min(88vw, 21rem);
        min-height: 100vh;
        height: 100vh;
        padding: 1rem;
        border-right: 1px solid rgba(38, 35, 31, 0.12);
        border-bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.24s ease;
        box-shadow: 0 24px 44px rgba(24, 22, 19, 0.22);
    }

    [dir="rtl"] .sidebar {
        transform: translateX(100%);
    }

    .dashboard-shell.is-sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-mobile-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.85rem;
    }

    .sidebar-close {
        display: inline-flex;
        flex: 0 0 auto;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        border-color: rgba(248, 243, 235, 0.18);
        box-shadow: none;
    }

    .sidebar-brand {
        margin-bottom: 0.75rem !important;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(248, 243, 235, 0.14);
    }

    .sidebar .sidebar-brand {
        border-right: 0;
        padding-right: 0;
        margin-right: 0;
    }

    .sidebar a {
        white-space: normal;
    }

    .dashboard-main {
        grid-column: auto;
        padding: 1rem;
    }

    .preview-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-even-column,
    .detail-two-column,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-layout > .surface:first-child {
        order: 2;
    }

    .contact-layout > .surface:last-child {
        order: 1;
    }

    .admin-current-image-grid {
        grid-template-columns: 1fr;
    }

    .admin-gallery-preview,
    .admin-upload-preview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .support-grid,
    .filters .product-grid,
    .category-grid,
    .gallery-grid,
    .testimonial-grid,
    .feature-grid,
    .stat-grid,
    .form-grid,
    .story-metrics,
    .shop-hero-stats,
    .checkout-mode-grid,
    .product-thumb-grid,
    .account-stat-grid,
    .confirmation-status-grid {
        grid-template-columns: 1fr;
    }

    .faq-shell {
        padding: 1rem;
        gap: 1rem;
    }

    .faq-intro h1 {
        max-width: 100%;
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .faq-help-card {
        padding: 0.85rem;
    }

    .faq-item summary {
        padding: 0.9rem;
        font-size: 0.96rem;
    }

    .faq-answer {
        padding: 0 0.9rem 0.9rem;
    }

    .faq-support-strip > div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .faq-support-strip > div:last-child {
        border-bottom: 0;
    }

    .homepage-section-nav a {
        flex: 1 1 auto;
        justify-content: center;
    }

    .homepage-card-header {
        gap: 0.75rem;
    }

    .homepage-locale-grid {
        grid-template-columns: 1fr;
    }

    .gallery-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .gallery-mosaic .gallery-link:nth-child(n) {
        display: block;
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 4 / 3;
    }

    .gallery-caption {
        transform: translateY(0);
    }

    .header-inner,
    .header-utility,
    .section-heading {
        align-items: start;
    }

    body {
        background: #f8f3eb;
    }

    .nav-primary {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        border-radius: 8px;
        padding: 0.35rem;
        background: rgba(255, 255, 255, 0.72);
    }

    .nav-primary a {
        min-height: 2.7rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.65rem 0.7rem;
        font-size: 0.76rem;
        letter-spacing: 0.08rem;
    }

    .brand {
        font-size: 1.25rem;
        letter-spacing: 0.05rem;
    }

    .brand-logo {
        width: 2.6rem;
        height: 2.6rem;
    }

    .header-main .brand-logo-full {
        height: 3rem;
        max-width: min(11.8rem, 100%);
    }

    .brand-kicker,
    .header-note {
        display: none;
    }

    .product-copy p {
        font-size: 0.86rem;
        line-height: 1.45;
        -webkit-line-clamp: 2;
    }

    .product-facts {
        gap: 0.32rem;
    }

    .product-fact {
        padding: 0.28rem 0.5rem;
        font-size: 0.7rem;
    }

    h1 {
        font-size: clamp(2.05rem, 11vw, 2.75rem);
    }

    h2 {
        font-size: clamp(1.7rem, 8vw, 2.15rem);
    }

    p {
        line-height: 1.62;
    }

    .dashboard-main {
        grid-column: auto;
        padding: 0.75rem;
    }

    .dashboard-main .section-heading {
        padding: 0.85rem;
    }

    .dashboard-main .table th,
    .dashboard-main .table td {
        padding: 0.78rem 0.65rem;
    }

    .contact-layout .surface-body {
        padding: 1rem;
    }

    .contact-layout h1,
    .contact-layout h2 {
        font-size: clamp(2rem, 10vw, 2.75rem);
        line-height: 1.08;
    }

    .contact-layout .summary-list {
        display: grid;
        gap: 0.3rem;
        justify-content: flex-start;
    }

    .contact-layout .summary-list strong {
        text-align: start;
    }

    .sidebar-brand .brand-kicker {
        display: block;
    }

    .site-frame {
        padding-top: 0.5rem;
    }

    .container {
        width: min(100% - 1.2rem, 1180px);
    }

    .site-header {
        border-radius: 8px;
    }

    .header-utility {
        justify-content: flex-end;
        padding: 0.55rem 0.75rem;
    }

    .header-main {
        gap: 0.75rem;
        padding: 0.78rem;
    }

    .back-to-top {
        right: 0.75rem;
        bottom: 0.75rem;
        padding: 0.72rem 0.82rem;
    }

    .back-to-top span:last-child {
        display: none;
    }

    .hero-copy,
    .story-panel {
        padding: 1rem;
    }

    .locale-caption {
        display: none;
    }

    button.link-button.locale-link {
        padding: 0.45rem 0.68rem;
        font-size: 0.7rem;
    }

    .nav-toggle {
        padding: 0.64rem 0.78rem;
        gap: 0.48rem;
    }

    .header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .section-heading,
    .page-meta-row,
    .button-row,
    .meta-row,
    .summary-list,
    .locale-list {
        align-items: stretch;
    }

    .section-heading {
        gap: 0.6rem;
    }

    .section-heading > a,
    .section-heading > .btn,
    .section-heading .btn,
    .section-heading .text-link {
        width: 100%;
    }

    .header-action,
    .header-actions button.link-button.header-action {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0.62rem 0.78rem;
    }

    .hero {
        padding: 1rem 0 1.7rem;
    }

    .section {
        padding: 1.9rem 0;
    }

    .section-flush {
        padding-top: 0;
    }

    .product-main-image,
    .story-visual,
    .hero-visual.tall {
        min-height: 320px;
    }

    .hero .hero-grid {
        min-height: 390px;
        border-radius: 8px;
    }

    .hero .hero-visual.tall {
        border-radius: 8px;
    }

    .hero .hero-copy {
        padding: 1.1rem;
    }

    .hero .hero-copy p {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .hero .hero-visual.tall::after {
        background: linear-gradient(180deg, rgba(24, 22, 19, 0.12), rgba(24, 22, 19, 0.78));
    }

    .button-row {
        gap: 0.55rem;
    }

    .button-row .btn {
        flex: 1 1 9rem;
        text-align: center;
        padding: 0.78rem 0.9rem;
    }

    .section-heading {
        display: grid;
        gap: 0.35rem;
        margin-bottom: 1rem;
    }

    .product-grid,
    .filters .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .product-card {
        border-radius: 8px;
        box-shadow: none;
    }

    .product-card .thumb {
        aspect-ratio: 1 / 1.08;
    }

    .product-card .content {
        gap: 0.55rem;
        padding: 0.72rem;
        grid-template-rows: auto minmax(0, 1fr) auto auto;
    }

    .product-topline .badge:not(:first-child) {
        display: none;
    }

    .badge {
        max-width: 100%;
        padding: 0.28rem 0.52rem;
        font-size: 0.7rem;
    }

    .product-title {
        font-size: 0.98rem;
        line-height: 1.2;
    }

    .product-card-footer {
        display: grid;
        align-items: stretch;
        gap: 0.55rem;
    }

    .price-stack {
        font-size: 0.95rem;
    }

    .product-card-action {
        margin-left: 0;
    }

    .product-card-action button {
        width: 100%;
        padding: 0.66rem 0.5rem;
        font-size: 0.84rem;
    }

    .surface,
    .card,
    .dashboard-card,
    .table-wrap {
        border-radius: 8px;
    }

    .product-card .content,
    .card-body,
    .surface-body,
    .dashboard-card,
    .table-wrap,
    .form-card {
        padding: 1rem;
    }

    .product-card .content {
        padding: 0.72rem;
    }

    .story-showcase {
        gap: 0.85rem;
    }

    .about-portrait-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0.85rem;
    }

    .about-portrait-card {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 4 / 4.85;
    }

    .story-panel h1 {
        max-width: 100%;
        font-size: clamp(2rem, 10vw, 2.85rem);
        line-height: 1.08;
    }

    .story-metric {
        padding: 0.85rem;
    }

    .home-service-panel {
        grid-template-columns: 1fr;
        padding: 0;
        overflow: hidden;
    }

    .home-service-media {
        min-height: 13rem;
        border-radius: 0;
    }

    .home-service-copy {
        padding: 1rem;
    }

    .home-service-copy h2 {
        max-width: 100%;
    }

    .home-service-list {
        grid-template-columns: 1fr;
        padding: 0 1rem 1rem;
        border-top: 0;
    }

    .home-service-item {
        padding: 0.85rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .home-service-item:last-child {
        border-bottom: 0;
    }

    .page-header {
        padding: 1.2rem 0 0.8rem;
    }

    .page-hero-copy {
        padding: 0.4rem 0;
    }

    .shop-quick-filter {
        margin-bottom: 0.85rem;
        padding: 0.62rem;
    }

    .shop-quick-filter-form {
        grid-template-columns: 1fr auto;
        gap: 0.5rem;
    }

    .shop-filter-jump {
        grid-column: 1 / -1;
    }

    .shop-active-filters {
        margin-top: 0.55rem;
    }

    .shop-hero-card-body {
        gap: 0.75rem;
    }

    .footer {
        margin-top: 1.2rem;
        padding: 1.35rem 0;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.1rem 0.9rem;
    }

    .footer-brand-block,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .footer-brand {
        align-items: center;
        gap: 0.75rem;
    }

    .footer-brand .brand-logo-full {
        height: 2.9rem;
        max-width: min(13rem, 100%);
    }

    .footer-brand-block p {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .footer h4 {
        font-size: 0.9rem;
    }

    .footer-links,
    .footer-contact {
        gap: 0.45rem;
    }

    .admin-product-thumb {
        width: 3.8rem;
    }

    .admin-gallery-preview,
    .admin-upload-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .delete-preview-card {
        grid-template-columns: 1fr;
    }

    .table-wrap {
        overflow: visible;
    }

    .table.table-stack-ready,
    .table.table-stack-ready thead,
    .table.table-stack-ready tbody,
    .table.table-stack-ready tr,
    .table.table-stack-ready th,
    .table.table-stack-ready td {
        display: block;
        width: 100%;
    }

    .table.table-stack-ready thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .table.table-stack-ready tbody tr {
        padding: 0.9rem;
        border-bottom: 1px solid var(--line);
    }

    .table.table-stack-ready tbody tr:last-child {
        border-bottom: 0;
    }

    .table.table-stack-ready td,
    .dashboard-main .table.table-stack-ready td {
        min-width: 0;
        padding: 0.45rem 0;
        border: 0;
        background: transparent;
    }

    .table.table-stack-ready td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.2rem;
        color: var(--muted);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.05rem;
        text-transform: uppercase;
    }

    .table.table-stack-ready td:not([data-label])::before,
    .table.table-stack-ready td[data-label=""]::before {
        display: none;
    }

    .table.table-stack-ready .table-actions,
    .dashboard-main .table.table-stack-ready .table-actions {
        justify-content: flex-start;
        padding-top: 0.65rem;
    }

    .inline-copy-group {
        width: 100%;
    }

    .inline-copy-group code {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
    }

    .copy-token {
        flex: 0 0 auto;
    }

    .cart-product {
        grid-template-columns: 3.4rem minmax(9rem, 1fr);
    }

    .cart-quantity-form {
        flex-wrap: wrap;
    }

    .table td,
    .table th {
        min-width: 7rem;
    }
}

@media (max-width: 380px) {
    .container {
        width: min(100% - 0.8rem, 1180px);
    }

    .brand {
        font-size: 1.05rem;
    }

    .product-grid,
    .filters .product-grid {
        gap: 0.55rem;
    }

    .product-card .content {
        padding: 0.62rem;
    }

    .product-card-action button {
        font-size: 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
