:root {
    --pomegranate: #72152d;
    --pomegranate-dark: #4a0c20;
    --ink: #171411;
    --ivory: #f7f1e7;
    --paper: #fffdf8;
    --brass: #a77a35;
    --stone: #cbbda8;
    --line: rgba(23, 20, 17, 0.19);
    --serif: "Prata", "Noto Naskh Arabic", Georgia, serif;
    --sans: "DM Sans", "Noto Naskh Arabic", Arial, sans-serif;
    --page-pad: clamp(1.25rem, 4vw, 4.75rem);
}

.bag-open { overflow: hidden; }
.bag-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100%, 490px); max-width: 100%; height: 100dvh; max-height: 100dvh; border: 0; padding: 28px; background: var(--paper); color: var(--ink); overflow-y: auto; }
[dir="rtl"] .bag-drawer { inset: 0 auto 0 0; }
.bag-drawer::backdrop { background: rgb(23 20 17 / 65%); }
.bag-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.bag-heading h2 { font-family: var(--serif); font-size: 1.4rem; }
.bag-heading button, .bag-quantity button { background: none; border: 1px solid var(--line); padding: 8px 12px; cursor: pointer; color: inherit; }
.bag-item { display: grid; grid-template-columns: 85px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.bag-item img { width: 85px; aspect-ratio: 4/5; object-fit: cover; background: var(--ivory); }
.bag-item a { font-weight: 600; text-decoration: none; }
.bag-item p { margin: 8px 0; }
.bag-quantity { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bag-footer { padding-top: 20px; }
.bag-footer .button-link { display: block; text-align: center; }
.muted { color: #655b50; font-size: .9rem; }
.flow-page { max-width: 1280px; margin: 0 auto; padding: 56px var(--page-pad) 90px; min-height: 65vh; }
.flow-page h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.25; font-weight: 400; margin: 8px 0 30px; }
.flow-page h2 { font-family: var(--serif); font-weight: 400; }
.flow-footer { padding: 28px var(--page-pad); background: var(--ivory); border-top: 1px solid var(--line); font-size: .85rem; text-align: center; }
.checkout-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.flow-form { max-width: 720px; }
.flow-form label { display: block; margin: 18px 0 5px; }
.flow-form input:not([type="checkbox"]), .flow-form select, .flow-form textarea, .queue-filters input, .queue-filters select { display: block; width: 100%; min-height: 48px; padding: 12px; color: var(--ink); background: var(--paper); border: 1px solid #938578; border-radius: 0; font: inherit; }
.flow-form textarea { min-height: 100px; resize: vertical; }
.flow-form fieldset { margin: 0; padding: 0; border: 0; }
.flow-form legend { font-size: 1.2rem; padding: 10px 0; }
.flow-form .checkbox-label { display: flex; gap: 12px; align-items: start; }
.checkbox-label input { margin-top: 7px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--pomegranate); }
.primary-button, .secondary-button { display: inline-block; padding: 14px 22px; border: 1px solid var(--pomegranate); font: inherit; cursor: pointer; text-decoration: none; }
.primary-button { color: white; background: var(--pomegranate); }
.secondary-button { color: var(--pomegranate); background: transparent; }
button:disabled { opacity: .5; cursor: not-allowed; }
.order-summary, .confirmation-panel, .detail-panel { padding: 30px; background: var(--ivory); }
.order-summary { position: sticky; top: 24px; }
.totals { margin: 28px 0; }
.totals div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.totals div:last-child { font-weight: 600; font-size: 1.15rem; }
.totals dd { margin: 0; }
.notice { background: #eee3d1; padding: 18px; border-inline-start: 3px solid var(--brass); }
.form-error, .field-error { color: #851630; }
.form-error { padding: 16px; border: 1px solid currentColor; margin: 20px 0; }
.field-error { display: block; }
[aria-invalid="true"] { border-color: #851630 !important; }
.order-reference { font-family: var(--sans); font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 600; overflow-wrap: anywhere; }
.action-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 24px 0; }
.status-badge { display: inline-block; padding: 5px 12px; font-size: .85rem; border: 1px solid #baaa92; background: #fffdf8; }
.status-paid, .status-delivered { border-color: #49715b; color: #244b35; }
.status-cancelled { border-color: #851630; color: #851630; }
.table-scroll { overflow-x: auto; }
.flow-page table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.flow-page th, .flow-page td { text-align: start; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.timeline { list-style: none; padding: 0; }
.timeline li { border-inline-start: 2px solid var(--brass); padding: 5px 22px 25px; }
.timeline time { display: block; color: #655b50; font-size: .85rem; }
@media(max-width: 760px) { .checkout-layout { grid-template-columns: 1fr; gap: 28px; } .order-summary { position: static; } .flow-page { padding-top: 30px; } .order-summary, .confirmation-panel, .detail-panel { padding: 20px; } .flow-page .primary-nav { display: flex; flex-wrap: wrap; } .flow-page table { min-width: 480px; } }

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
}

body,
button,
input,
select {
    font-family: var(--sans);
}

button,
input,
select,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

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

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid var(--brass);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    z-index: 100;
    inset-block-start: 0.75rem;
    inset-inline-start: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    background: var(--ink);
    transform: translateY(-160%);
}

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

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

.announcement {
    min-height: 2rem;
    display: grid;
    place-items: center;
    padding: 0.35rem var(--page-pad);
    color: var(--ivory);
    background: var(--pomegranate);
    font-size: 0.75rem;
    text-align: center;
}

.announcement p {
    margin: 0;
}

.site-header {
    position: relative;
    z-index: 10;
    min-height: 24rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    padding: 1rem var(--page-pad);
    color: var(--ivory);
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 253, 248, 0.18);
}

.site-header--solid {
    color: var(--ink);
    background: var(--paper);
    border-color: var(--line);
}
.site-header--solid .brand-monogram {
    filter: invert(1);
}

.wordmark,
.footer-wordmark {
    width: max-content;
    display: flex;
    flex-direction: column;
    font-family: var(--serif);
    font-size: 1.45rem;
    line-height: 0.88;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.brand-lockup {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    color: inherit;
    text-decoration: none;
}

.brand-name,
.footer-brand-name {
    font-family: var(--serif);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    letter-spacing: .11em;
}

.footer-brand-name {
    color: var(--brass);
    font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.brand-monogram {
    width: auto;
    max-width: 12rem;
    height: 2.8rem;
    flex: 0 0 auto;
    object-fit: contain;
    object-position: left center;
}

.footer-brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-brand-lockup .brand-monogram { width: auto; max-width: 14rem; height: 3.2rem; object-fit: contain; object-position: left center; }

.footer-full-logo {
    width: clamp(9rem, 16vw, 13rem);
    height: auto;
    display: block;
}

.wordmark span:last-child,
.footer-wordmark span:last-child {
    color: var(--brass);
    margin-inline-start: 1.2rem;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 3.25rem);
    font-size: 0.83rem;
}

.primary-nav a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.primary-nav a:hover {
    border-color: currentColor;
}

.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
}

.language-button {
    min-width: 2rem;
    padding: 0.35rem;
    border: 0;
    color: inherit;
    background: transparent;
    opacity: 0.48;
    cursor: pointer;
}

.language-button.is-active {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 0.3rem;
}

.hero {
    position: relative;
    min-height: min(50rem, calc(100vh - 8.25rem));
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
    align-items: center;
    overflow: hidden;
    padding: clamp(4rem, 9vw, 8.5rem) var(--page-pad);
    color: var(--ivory);
    background:
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 4rem 4rem,
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 4rem 4rem,
        var(--ink);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -14rem -20rem auto;
    width: 42rem;
    aspect-ratio: 1;
    border: 1px solid rgba(167, 122, 53, 0.42);
    border-radius: 50%;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 52rem;
}

.hero-note,
.section-note,
.product-category,
.campaign-place {
    margin: 0 0 1.2rem;
    color: var(--brass);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.11em;
}

.hero h1,
.section-heading h2,
.craft-copy h2,
.campaign h2,
.product-information h1,
.not-found h1 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.hero h1 {
    max-width: 13ch;
    font-size: clamp(3.2rem, 7vw, 7.4rem);
}

.hero-intro {
    max-width: 34rem;
    margin: 2rem 0;
    color: rgba(247, 241, 231, 0.72);
    font-size: clamp(1rem, 1.3vw, 1.2rem);
}

.text-link {
    display: inline-block;
    padding-block: 0.4rem;
    color: var(--pomegranate);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.text-link--light {
    color: var(--ivory);
}

.hero-object {
    position: relative;
    z-index: 1;
    justify-self: center;
    width: min(29rem, 88%);
    margin: 0;
    padding: 0.65rem;
    background: rgba(247, 241, 231, 0.07);
    border: 1px solid rgba(247, 241, 231, 0.16);
    filter: drop-shadow(0 2.5rem 2.5rem rgba(0, 0, 0, 0.45));
}

.hero-object img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.hero-object figcaption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.35rem 0.2rem;
    color: rgba(247, 241, 231, 0.78);
    font-family: var(--serif);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.hero-object figcaption span {
    color: var(--brass);
    font-family: var(--sans);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-index {
    position: absolute;
    inset: auto var(--page-pad) 2rem auto;
    z-index: 2;
    margin: 0;
    color: rgba(247, 241, 231, 0.46);
    font-size: 0.72rem;
}

.collection-section,
.category-stories,
.craft-story,
.special-order,
.campaign,
.not-found {
    padding: clamp(5rem, 10vw, 9rem) var(--page-pad);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
    gap: clamp(2rem, 8vw, 8rem);
    align-items: end;
    margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.section-heading h2,
.craft-copy h2,
.campaign h2,
.not-found h1 {
    max-width: 16ch;
    font-size: clamp(2.5rem, 5vw, 5.6rem);
}

.section-summary {
    max-width: 32rem;
    margin: 0;
    color: rgba(23, 20, 17, 0.68);
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    padding-block: 1rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.category-filters,
.catalog-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.filter-button,
.catalog-empty button {
    padding: 0.55rem 0.8rem;
    border: 0;
    border-bottom: 1px solid transparent;
    color: rgba(23, 20, 17, 0.56);
    background: transparent;
    cursor: pointer;
}

.filter-button.is-active {
    color: var(--ink);
    border-color: var(--pomegranate);
}

.catalog-fields input,
.catalog-fields select {
    min-height: 2.8rem;
    padding: 0.55rem 0.75rem;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 0;
}

.catalog-fields input {
    width: min(18rem, 70vw);
}

.catalog-status {
    min-height: 1.5rem;
    margin: 1rem 0 2rem;
    color: rgba(23, 20, 17, 0.56);
    font-size: 0.76rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 5rem) clamp(1rem, 2.5vw, 2.5rem);
}

.product-card:nth-child(6n + 2),
.product-card:nth-child(6n + 5) {
    margin-top: clamp(2rem, 6vw, 6rem);
}

.product-image-link,
.product-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0;
    background: #e5dbcb;
}

.product-image-link {
    aspect-ratio: 4 / 5;
}

.product-image-link img,
.product-gallery-item img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-link img[src=""],
.product-gallery-item img[src=""] {
    visibility: hidden;
}

.image-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, transparent 48%, rgba(114, 21, 45, 0.08) 49% 51%, transparent 52%) 0 0 / 2.6rem 2.6rem,
        linear-gradient(45deg, transparent 48%, rgba(167, 122, 53, 0.13) 49% 51%, transparent 52%) 0 0 / 2.6rem 2.6rem,
        #e9dfcf;
}

.image-fallback::before {
    content: "";
    width: 43%;
    height: 38%;
    border: 2px solid var(--pomegranate);
    background:
        radial-gradient(circle, var(--brass) 0 0.1rem, transparent 0.12rem) 0 0 / 0.85rem 0.85rem,
        rgba(114, 21, 45, 0.82);
    clip-path: polygon(9% 0, 91% 0, 100% 100%, 0 100%);
    box-shadow: 0 1.5rem 2rem rgba(74, 12, 32, 0.2);
}

.image-fallback::after {
    content: "";
    position: absolute;
    inset: 26% auto auto 39%;
    width: 22%;
    height: 20%;
    border: 0.32rem solid var(--brass);
    border-bottom: 0;
    border-radius: 50% 50% 0 0;
}

.image-fallback i {
    position: absolute;
    inset: auto 1rem 1rem auto;
    width: 2.5rem;
    height: 2.5rem;
    border-top: 1px solid var(--brass);
    border-inline-end: 1px solid var(--brass);
}

.product-card-copy {
    position: relative;
    padding: 1.4rem 0 0;
}

.product-card-copy h3 {
    max-width: 21ch;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 400;
    line-height: 1.25;
}

.product-card-copy h3 a {
    text-decoration: none;
}

.product-card-copy h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.product-category {
    margin-bottom: 0.5rem;
    color: var(--pomegranate);
}

.product-price {
    margin: 0.65rem 0 0;
    font-size: 0.86rem;
}

.product-availability {
    margin: 0.15rem 0 0;
    color: rgba(23, 20, 17, 0.5);
    font-size: 0.74rem;
}

.product-availability.is-unavailable {
    color: var(--pomegranate);
}

.catalog-empty {
    padding: 5rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.catalog-empty button {
    color: var(--pomegranate);
    border-color: currentColor;
}

.category-stories {
    color: var(--ivory);
    background: var(--pomegranate-dark);
}

.section-heading--inverse .section-note,
.section-heading--inverse h2 {
    color: var(--ivory);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(247, 241, 231, 0.28);
    border-bottom: 1px solid rgba(247, 241, 231, 0.28);
}

.category-story {
    min-height: 26rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    text-decoration: none;
    border-inline-end: 1px solid rgba(247, 241, 231, 0.28);
    background-position: center;
}

.category-story:last-child {
    border-inline-end: 0;
}

.category-story--clutch {
    background: linear-gradient(165deg, transparent 0 40%, rgba(167,122,53,.14) 40% 58%, transparent 58%);
}

.category-story--tote {
    background: radial-gradient(ellipse at 50% 24%, transparent 0 16%, rgba(247,241,231,.09) 16.5% 17%, transparent 17.5%);
}

.category-story--crossbody {
    background: repeating-linear-gradient(120deg, transparent 0 2.4rem, rgba(167,122,53,.1) 2.45rem 2.55rem);
}

.story-number {
    margin-bottom: auto;
    color: rgba(247, 241, 231, 0.5);
    font-size: 0.75rem;
}

.category-story h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.8rem);
    font-weight: 400;
}

.category-story p {
    max-width: 26rem;
    margin: 0.8rem 0 0;
    color: rgba(247, 241, 231, 0.7);
    font-size: 0.9rem;
}

.craft-story {
    display: grid;
    grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(3rem, 10vw, 10rem);
    background: var(--ivory);
}

.craft-mark {
    position: relative;
    width: min(30rem, 100%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(114, 21, 45, 0.35);
    border-radius: 50%;
}

.craft-mark::before,
.craft-mark::after,
.craft-mark span {
    content: "";
    position: absolute;
    width: 34%;
    height: 34%;
    border: 1px solid var(--pomegranate);
    transform: rotate(45deg);
}

.craft-mark::after {
    width: 21%;
    height: 21%;
    background: var(--pomegranate);
}

.craft-mark span:nth-child(1) { transform: translateX(-63%) rotate(45deg); }
.craft-mark span:nth-child(2) { transform: translateX(63%) rotate(45deg); }
.craft-mark span:nth-child(3) { transform: translateY(63%) rotate(45deg); }

.craft-copy p:last-child {
    max-width: 39rem;
    margin: 2rem 0 0;
    color: rgba(23, 20, 17, 0.68);
    font-size: 1.05rem;
}

.special-order {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr);
    gap: clamp(3rem, 10vw, 10rem);
    align-items: end;
    overflow: hidden;
    color: var(--ivory);
    background:
        radial-gradient(circle at 82% 18%, rgba(167, 122, 53, .2), transparent 30rem),
        #171411;
}

.special-order::before {
    content: "AB";
    position: absolute;
    inset: auto -0.08em -0.32em auto;
    color: rgba(247, 241, 231, .025);
    font-family: var(--serif);
    font-size: clamp(14rem, 34vw, 36rem);
    line-height: 1;
    pointer-events: none;
}

.special-order-copy,
.special-order-contact {
    position: relative;
    z-index: 1;
}

.special-order h2 {
    max-width: 12ch;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 6.5rem);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.special-order-copy > p:last-child {
    max-width: 40rem;
    margin: 2rem 0 0;
    color: rgba(247, 241, 231, .68);
    font-size: 1.05rem;
}

.special-order-contact {
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid rgba(247, 241, 231, .16);
    background: rgba(247, 241, 231, .045);
    backdrop-filter: blur(12px);
}

.special-order-contact > span {
    display: block;
    color: var(--brass);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.special-order-number {
    display: block;
    margin: 1.25rem 0 2.25rem;
    color: var(--ivory);
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    text-decoration: none;
}

.special-order-actions {
    display: flex;
    gap: .75rem;
}

.special-order-actions a {
    flex: 1;
    padding: .9rem 1.2rem;
    color: var(--ink);
    background: var(--ivory);
    border: 1px solid var(--ivory);
    font-size: .78rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.special-order-actions a:last-child {
    color: var(--ivory);
    background: transparent;
}

.campaign {
    min-height: 42rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--ivory);
    background:
        linear-gradient(90deg, rgba(13,16,24,.86) 0%, rgba(13,16,24,.52) 46%, rgba(13,16,24,.12) 78%),
        url("../images/products/pomegranate-noor-clutch-campaign.webp") center / cover no-repeat;
}

.campaign h2 {
    max-width: 13ch;
    margin-bottom: 2rem;
}

.site-footer {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    padding: 4rem var(--page-pad) 6rem;
    color: var(--ivory);
    background: var(--ink);
}

.site-footer h2 {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.site-footer p,
.site-footer a {
    display: block;
    max-width: 22rem;
    margin: 0.3rem 0;
    color: rgba(247, 241, 231, 0.64);
    font-size: 0.78rem;
    text-decoration: none;
}

.footer-legal {
    position: absolute;
    inset: auto var(--page-pad) 1.5rem;
}

.site-footer--compact {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.site-footer--compact > p:not(.footer-legal) {
    justify-self: end;
}

.product-breadcrumb {
    display: flex;
    gap: 0.6rem;
    padding: 1.4rem var(--page-pad);
    color: rgba(23, 20, 17, 0.56);
    font-size: 0.76rem;
    border-bottom: 1px solid var(--line);
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    align-items: start;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
}

.product-gallery-item {
    aspect-ratio: 4 / 5;
}

.product-gallery-item--primary {
    grid-column: 1 / -1;
    aspect-ratio: 8 / 6.2;
}

.product-information {
    position: sticky;
    inset-block-start: 1rem;
    padding: clamp(3rem, 7vw, 7rem) clamp(1.5rem, 6vw, 6rem);
}

.product-information h1 {
    max-width: 11ch;
    font-size: clamp(2.8rem, 5vw, 5.8rem);
}

.detail-price {
    margin: 1.5rem 0;
    font-size: 1rem;
}

.detail-story {
    max-width: 38rem;
    margin: 0 0 2.5rem;
    color: rgba(23, 20, 17, 0.68);
    font-size: 1.05rem;
}

.product-facts {
    margin: 0 0 2.5rem;
    border-top: 1px solid var(--line);
}

.product-facts div {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.product-facts dt {
    font-size: 0.76rem;
    font-weight: 600;
}

.product-facts dd {
    margin: 0;
    color: rgba(23, 20, 17, 0.68);
    font-size: 0.86rem;
}

.purchase-form > label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.76rem;
    font-weight: 600;
}

.purchase-row {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.7rem;
}

.purchase-row input,
.purchase-row button,
.button-link {
    min-height: 3.6rem;
    border-radius: 0;
}

.purchase-row input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--ink);
    background: transparent;
    text-align: center;
}

.purchase-row button,
.button-link {
    display: inline-grid;
    place-items: center;
    padding: 0.8rem 1.4rem;
    color: var(--ivory);
    background: var(--pomegranate);
    border: 1px solid var(--pomegranate);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.purchase-row button:disabled {
    color: rgba(23, 20, 17, 0.5);
    background: var(--stone);
    border-color: var(--stone);
    cursor: not-allowed;
}

.product-notes {
    margin-top: 2.5rem;
    padding-inline-start: 1rem;
    color: rgba(23, 20, 17, 0.58);
    font-size: 0.78rem;
    border-inline-start: 2px solid var(--brass);
}

.product-notes p {
    margin: 0.4rem 0;
}

.not-found {
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.not-found > p:not(.section-note) {
    max-width: 35rem;
    margin: 1.5rem 0 2rem;
    color: rgba(23, 20, 17, 0.64);
}

html[dir="rtl"] body {
    font-family: "Noto Naskh Arabic", var(--sans);
    font-size: 1.05rem;
}

html[dir="rtl"] .hero h1,
html[dir="rtl"] .section-heading h2,
html[dir="rtl"] .craft-copy h2,
html[dir="rtl"] .campaign h2,
html[dir="rtl"] .product-information h1,
html[dir="rtl"] .not-found h1,
html[dir="rtl"] .category-story h3 {
    font-family: "Noto Naskh Arabic", serif;
    letter-spacing: 0;
}

html[dir="rtl"] .hero-note,
html[dir="rtl"] .section-note,
html[dir="rtl"] .product-category,
html[dir="rtl"] .campaign-place {
    letter-spacing: 0;
}

@media (max-width: 960px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .primary-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
        order: 3;
        padding-top: 0.8rem;
        border-top: 1px solid rgba(255, 253, 248, 0.16);
    }

    .site-header--solid .primary-nav {
        border-color: var(--line);
    }

    .hero {
        grid-template-columns: 1fr 0.75fr;
    }

    .hero-object {
        width: min(20rem, 100%);
    }

    .section-heading,
    .product-layout {
        grid-template-columns: 1fr;
    }

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

    .product-card:nth-child(6n + 2),
    .product-card:nth-child(6n + 5) {
        margin-top: 0;
    }

    .product-card:nth-child(4n + 2),
    .product-card:nth-child(4n + 3) {
        margin-top: 3rem;
    }

    .catalog-toolbar {
        align-items: start;
        flex-direction: column;
    }

    .product-information {
        position: static;
    }
}

@media (max-width: 720px) {
    .site-header {
        min-height: 5.2rem;
        gap: 1rem;
    }

    .primary-nav {
        justify-content: flex-start;
        gap: 1.2rem;
        overflow-x: auto;
        white-space: nowrap;
    }

    .hero {
        min-height: 43rem;
        grid-template-columns: 1fr;
        align-items: start;
        padding-top: 4rem;
    }

    .hero h1 {
        max-width: 12ch;
        font-size: clamp(3.2rem, 15vw, 5.2rem);
    }

    .hero-object {
        position: absolute;
        inset: auto -3.5rem -7rem auto;
        width: 17rem;
        opacity: 0.55;
    }

    .section-heading,
    .craft-story,
    .special-order {
        grid-template-columns: 1fr;
    }

    .section-heading h2,
    .craft-copy h2,
    .campaign h2,
    .not-found h1 {
        font-size: clamp(2.5rem, 12vw, 4.2rem);
    }

    .catalog-fields,
    .search-field,
    .sort-field,
    .catalog-fields input,
    .catalog-fields select {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .product-card:nth-child(n) {
        margin-top: 0;
    }

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

    .category-story {
        min-height: 20rem;
        border-inline-end: 0;
        border-bottom: 1px solid rgba(247, 241, 231, 0.28);
    }

    .category-story:last-child {
        border-bottom: 0;
    }

    .craft-mark {
        max-width: 22rem;
        margin: auto;
    }

    .campaign {
        min-height: 34rem;
    }

    .site-footer,
    .site-footer--compact {
        grid-template-columns: 1fr;
        padding-bottom: 7rem;
    }

    .site-footer--compact > p:not(.footer-legal) {
        justify-self: start;
    }

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

    .product-gallery-item--primary {
        grid-column: auto;
        aspect-ratio: 4 / 5;
    }

    .product-information {
        padding-block: 4rem;
    }
}

@media (max-width: 390px) {
    .primary-nav {
        font-size: 0.76rem;
    }

    .hero {
        min-height: 40rem;
    }

    .category-filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .purchase-row {
        grid-template-columns: 4.8rem 1fr;
    }

    .product-facts div {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modern Heritage refinement */
.site-header {
    min-height: 5.4rem;
    padding-block: .65rem;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.brand-monogram {
    width: auto;
    max-width: 12rem;
    height: 2.8rem;
    object-fit: contain;
    object-position: left center;
}

.site-header--solid .brand-monogram {
    filter: drop-shadow(0 .2rem .4rem rgba(23, 20, 17, .16));
}

.primary-nav a {
    padding-block: .45rem;
    font-size: .78rem;
    letter-spacing: .035em;
}

.header-actions [data-cart-open] {
    min-width: auto;
    padding: .55rem .85rem;
    opacity: 1;
    border: 1px solid currentColor;
}

.hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(19rem, .85fr);
    min-height: min(52rem, calc(100vh - 7.4rem));
}

.hero-copy::before {
    content: "JW";
    position: absolute;
    inset: -8rem auto auto -2rem;
    z-index: -1;
    color: rgba(167, 122, 53, .075);
    font-family: var(--serif);
    font-size: clamp(10rem, 24vw, 25rem);
    line-height: 1;
}

.hero-object {
    transform: rotate(1.2deg);
}

.catalog-toolbar {
    padding-block: 1rem;
    border-block: 1px solid var(--line);
}

.product-image-link img {
    transition: transform .7s cubic-bezier(.2,.7,.2,1);
}

.product-card[data-category="premium"] .product-image-link {
    aspect-ratio: 3 / 2;
}

.product-card:focus-within .product-image-link img,
.product-card:hover .product-image-link img {
    transform: scale(1.025);
}

.product-card-copy {
    padding-top: 1.15rem;
}

.flow-page {
    max-width: 1180px;
    padding-top: clamp(3rem, 7vw, 6rem);
}

.flow-page > .section-note {
    color: var(--brass);
    letter-spacing: .12em;
}

.order-summary,
.confirmation-panel,
.detail-panel {
    border: 1px solid rgba(167, 122, 53, .22);
    background: linear-gradient(145deg, #fbf6ed, var(--ivory));
}

.primary-button,
.button-link {
    letter-spacing: .025em;
}

.status-out_for_delivery {
    color: #72521e;
    border-color: var(--brass);
}

.tracking-card {
    margin-top: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.tracking-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.tracking-heading h2,
.tracking-heading .section-note {
    margin: 0;
}

.tracking-heading .section-note { margin-bottom: .45rem; }

.tracking-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    margin: 2.5rem 0 .5rem;
    padding: 0;
    list-style: none;
}

.tracking-steps li {
    position: relative;
    min-width: 0;
    text-align: center;
}

.tracking-steps li::before {
    content: "";
    position: absolute;
    inset: 1rem 50% auto -50%;
    height: 1px;
    background: var(--line);
}

.tracking-steps li:first-child::before { display: none; }
.tracking-steps li.is-complete::before { background: var(--brass); }

.tracking-dot {
    position: relative;
    z-index: 1;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    margin: 0 auto .85rem;
    color: #746a5e;
    background: var(--paper);
    border: 1px solid #baaa92;
    border-radius: 50%;
    font-size: .72rem;
}

.tracking-steps .is-complete .tracking-dot {
    color: var(--paper);
    background: var(--brass);
    border-color: var(--brass);
}

.tracking-steps .is-current .tracking-dot {
    box-shadow: 0 0 0 .35rem rgba(167, 122, 53, .16);
}

.tracking-steps strong {
    display: block;
    padding-inline: .3rem;
    font-size: .74rem;
    font-weight: 500;
    line-height: 1.35;
}

.tracking-steps time {
    display: block;
    margin-top: .3rem;
    color: #746a5e;
    font-size: .64rem;
}

@media (max-width: 720px) {
    .site-header { grid-template-columns: auto 1fr; }
    .brand-monogram { width: auto; max-width: 10rem; height: 2.4rem; }
    .header-actions { gap: .2rem; }
    .hero-copy::before { inset-block-start: -3rem; }
    .tracking-heading { display: block; }
    .tracking-heading .status-badge { margin-top: 1rem; }
    .tracking-steps { grid-template-columns: 1fr; margin-top: 1.5rem; }
    .tracking-steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .8rem; min-height: 4.25rem; text-align: start; }
    .tracking-steps li::before { inset: -2.25rem auto auto 1rem; width: 1px; height: 2.4rem; }
    .tracking-dot { margin: 0; }
    .tracking-steps strong { padding: .35rem 0 0; font-size: .82rem; }
}
