/* =====================================================================
   Salty C's Treasures — front-end stylesheet
   Minimalist coastal boutique: navy, teal, muted gold, cream, white.
   Mobile-first. No framework, no build step.
   ===================================================================== */

:root {
    /* Brand palette */
    --navy:        #1e3a5f;
    --navy-deep:   #16293f;
    --teal:        #4a9b9b;
    --teal-soft:   #e8f1f0;
    --gold:        #c9a961;
    --gold-soft:   #f3ead8;
    --white:       #ffffff;
    --cream:       #faf9f6;
    --cream-deep:  #f2efe8;
    --ink:         #111111;
    --gray:        #6b7280;
    --gray-light:  #9ca3af;
    --line:        #e7e3da;

    /* Type */
    --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
    --sans:  "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Rhythm */
    --wrap:      1240px;
    --wrap-slim: 780px;
    --gut:       clamp(1.25rem, 4vw, 3rem);
    --section:   clamp(4rem, 9vw, 7.5rem);

    --shadow-sm: 0 1px 2px rgba(30, 58, 95, .05);
    --shadow-md: 0 12px 32px -12px rgba(30, 58, 95, .18);
    --ease:      cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------- Reset */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal); }

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ----------------------------------------------------------- Typography */

h1, h2, h3, h4, h5 {
    font-family: var(--serif);
    font-weight: 400;
    color: var(--navy);
    line-height: 1.18;
    margin: 0 0 .6em;
    letter-spacing: -.005em;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }

.lede {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--gray);
    line-height: 1.8;
}

.eyebrow {
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 700;
    margin: 0 0 1rem;
    display: block;
}

.script-accent {
    font-family: var(--serif);
    font-style: italic;
    color: var(--gold);
}

/* --------------------------------------------------------------- Layout */

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gut);
}

.wrap-slim { max-width: var(--wrap-slim); }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--cream { background: var(--cream); }
.section--navy  { background: var(--navy); color: rgba(255,255,255,.82); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .eyebrow { color: var(--gold); }

.section-head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.section-head p { color: var(--gray); }

.rule {
    width: 56px;
    height: 1px;
    background: var(--gold);
    border: 0;
    margin: 1.5rem auto;
}
.rule--left { margin-inline: 0; }

/* -------------------------------------------------------------- Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .95rem 2.1rem;
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    border: 1px solid var(--navy);
    background: var(--navy);
    color: var(--white);
    cursor: pointer;
    border-radius: 0;
    transition: background .25s var(--ease), color .25s var(--ease),
                border-color .25s var(--ease), transform .2s var(--ease);
}
.btn:hover:not(:disabled) {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
    transform: translateY(-1px);
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover:not(:disabled) { background: var(--navy); color: var(--white); border-color: var(--navy); }

.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn--gold:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: var(--white); }

.btn--light { background: transparent; border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--light:hover:not(:disabled) { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn--sm    { padding: .7rem 1.4rem; font-size: .7rem; }
.btn--block { width: 100%; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--navy);
    border-bottom: 1px solid var(--gold);
    padding-bottom: .3rem;
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------- Announcement */

.announce {
    background: var(--navy);
    color: rgba(255,255,255,.9);
    text-align: center;
    font-size: .74rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .6rem 1rem;
}

/* --------------------------------------------------------------- Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-shrink: 0;
}
.brand__mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
    font-family: var(--serif);
    font-size: 1.22rem;
    color: var(--navy);
    letter-spacing: .01em;
    white-space: nowrap;
}
.brand__tag {
    font-size: .58rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: .18rem;
}

.nav { display: none; }

.nav a {
    font-size: .78rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--navy);
    padding: .4rem 0;
    position: relative;
    font-weight: 400;
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: 0;
    height: 1px;
    background: var(--gold);
    transition: right .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--teal); }

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

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: none;
    border: 0;
    color: var(--navy);
    cursor: pointer;
    position: relative;
    border-radius: 2px;
}
.icon-btn:hover { color: var(--teal); }

.cart-count {
    position: absolute;
    top: 5px; right: 3px;
    min-width: 18px; height: 18px;
    padding: 0 4px;
    background: var(--gold);
    color: var(--navy-deep);
    border-radius: 9px;
    font-size: .64rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    letter-spacing: 0;
}
.cart-count[hidden] { display: none; }

/* Mobile drawer */
.nav-toggle { display: inline-flex; }

.mobile-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(84vw, 340px);
    background: var(--white);
    border-left: 1px solid var(--line);
    padding: 5.5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform .38s var(--ease);
    z-index: 90;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav a {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--navy);
    padding: .7rem 0;
    border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-nav .btn { margin-top: 1.5rem; }

.nav-close {
    position: absolute;
    top: 1.35rem; right: 1.35rem;
    width: 44px; height: 44px;
    background: none; border: 0;
    color: var(--navy);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.scrim {
    position: fixed;
    inset: 0;
    background: rgba(22, 41, 63, .38);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s;
    z-index: 80;
}
.scrim.is-open { opacity: 1; visibility: visible; }

@media (min-width: 900px) {
    .nav { display: flex; align-items: center; gap: clamp(1.4rem, 2.6vw, 2.6rem); }
    .nav-toggle { display: none; }
}

/* ----------------------------------------------------------------- Hero */

.hero {
    position: relative;
    background: var(--cream);
    padding-block: clamp(4rem, 11vw, 8.5rem);
    overflow: hidden;
    text-align: center;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .5;
}
.hero__inner { position: relative; z-index: 2; max-width: 46rem; margin-inline: auto; }

.hero__logo {
    width: clamp(170px, 26vw, 260px);
    height: auto;
    margin: 0 auto clamp(1.25rem, 3vw, 2rem);
}

.hero h1 { margin-bottom: 1.25rem; }

/* ---- Split hero: wording one side, photograph the other ---- */

.hero--split {
    padding-block: clamp(2.25rem, 5vw, 4.25rem);
    text-align: left;
}

.hero-split {
    position: relative;
    z-index: 2;
    display: grid;
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: center;
}

@media (min-width: 900px) {
    .hero-split { grid-template-columns: 1.05fr 1fr; }
}

.hero-split__text { text-align: center; }

/* Slightly tighter than the standard button so the pair sits on one line
   inside the narrower hero column. */
.hero-split__text .hero__actions .btn { padding-inline: 1.35rem; }

.hero-split__text h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    margin-bottom: 1rem;
}
.hero-split__text .rich p {
    color: var(--gray);
    font-size: clamp(.98rem, 1.3vw, 1.08rem);
    line-height: 1.8;
    max-width: 34rem;
    margin-inline: auto;
    margin-bottom: 0;
}
.hero-split__text .hero__actions { margin-top: 1.75rem; }

.hero-split__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
}
.hero-split__media img,
.hero-split__media picture { width: 100%; height: 100%; display: block; }
.hero-split__media img { object-fit: cover; }

/* Standing in with the logo until a real photo is chosen — contain, not crop. */
.hero-split__media--logo {
    background: var(--white);
    border-color: transparent;
    display: grid;
    place-items: center;
}
.hero-split__media--logo img {
    object-fit: contain;
    width: min(78%, 320px);
    height: auto;
}
.hero .lede { margin-bottom: 2.25rem; }

/* The hero copy comes from the CMS, so style its paragraphs as the lede
   whether or not the owner remembers to add the class. */
.hero .rich p {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 0;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }

.hero--image {
    background: var(--navy-deep);
    color: var(--white);
    text-align: center;
    background-size: cover;
    background-position: center;
}
.hero--image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22,41,63,.55), rgba(22,41,63,.72));
}
.hero--image h1 { color: var(--white); }
.hero--image .lede { color: rgba(255,255,255,.86); }

/* ----------------------------------------------------------- Page intro */

.page-head {
    background: var(--cream);
    padding-block: clamp(2.75rem, 6vw, 5rem);
    text-align: center;
    border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: .5rem; }
.page-head p { color: var(--gray); max-width: 38rem; margin-inline: auto; }

.crumbs {
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 1rem;
}
.crumbs a { color: var(--gray); }
.crumbs span { margin-inline: .5rem; }

/* ------------------------------------------------------ Category tiles */

.cat-grid {
    display: grid;
    gap: clamp(1rem, 2.4vw, 1.75rem);
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.cat-card {
    position: relative;
    display: block;
    background: var(--cream);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cat-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.cat-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cream-deep);
}
.cat-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease);
}
.cat-card:hover .cat-card__media img { transform: scale(1.05); }
.cat-card__body { padding: 1.5rem 1.5rem 1.75rem; text-align: center; }
.cat-card__body h3 { margin-bottom: .4rem; font-size: 1.3rem; }
.cat-card__body p { font-size: .9rem; color: var(--gray); line-height: 1.65; margin: 0; }
.cat-card__cta {
    display: inline-block;
    margin-top: 1rem;
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 700;
}

/* -------------------------------------------------------- Product grid */

.product-grid {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.75rem) clamp(1rem, 2.2vw, 1.75rem);
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
@media (max-width: 560px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem .9rem; }
}

.product-card { display: flex; flex-direction: column; }

.product-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--cream);
    overflow: hidden;
    border: 1px solid var(--line);
}
.product-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease), opacity .4s var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.045); }

.badge {
    position: absolute;
    top: .75rem; left: .75rem;
    background: var(--white);
    color: var(--navy);
    font-size: .62rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
    padding: .35rem .7rem;
    border: 1px solid var(--line);
}
.badge--gold  { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.badge--muted { background: rgba(255,255,255,.94); color: var(--gray); }

.product-card__body { padding-top: 1rem; text-align: center; flex: 1; display: flex; flex-direction: column; }
.product-card__cat {
    font-size: .64rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: .45rem;
}
.product-card__name {
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--navy);
    margin: 0 0 .4rem;
    line-height: 1.35;
}
.product-card__name a:hover { color: var(--teal); }
.product-card__price { color: var(--ink); font-size: .95rem; margin-bottom: .9rem; }
.product-card__price s { color: var(--gray-light); margin-right: .4rem; }
.product-card form, .product-card > .product-card__body > .btn { margin-top: auto; }

/* ------------------------------------------------------------- Filters */

.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: clamp(1.75rem, 4vw, 3rem);
    border-bottom: 1px solid var(--line);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.filter-btn {
    background: none;
    border: 1px solid transparent;
    padding: .5rem 1.05rem;
    font-size: .72rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gray);
    cursor: pointer;
    transition: all .22s var(--ease);
    white-space: nowrap;
}
.filter-btn:hover { color: var(--navy); border-color: var(--line); }
.filter-btn.is-active {
    color: var(--navy);
    border-color: var(--navy);
    font-weight: 700;
}

.sort-select {
    border: 1px solid var(--line);
    background: var(--white);
    padding: .6rem 2.2rem .6rem .9rem;
    font-size: .78rem;
    color: var(--navy);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231e3a5f' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
}

.result-count { font-size: .8rem; color: var(--gray); }

/* --------------------------------------------------------- Product page */

.product-layout {
    display: grid;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}
@media (min-width: 900px) {
    .product-layout { grid-template-columns: 1.05fr .95fr; }
}

.gallery__main {
    aspect-ratio: 1 / 1;
    background: var(--cream);
    border: 1px solid var(--line);
    overflow: hidden;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: .6rem;
    margin-top: .6rem;
}
.gallery__thumb {
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    background: var(--cream);
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active, .gallery__thumb:hover { border-color: var(--gold); }

.product-detail__cat {
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 700;
    margin-bottom: .9rem;
}
.product-detail h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: .6rem; }
.product-detail__price {
    font-size: 1.5rem;
    color: var(--navy);
    font-family: var(--serif);
    margin-bottom: 1.5rem;
}
.product-detail__desc { color: var(--gray); line-height: 1.85; }
.product-detail__desc p { margin-bottom: 1rem; }

.buy-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: stretch;
    margin: 2rem 0 1.5rem;
}

.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
}
.qty button {
    width: 46px; height: 100%;
    min-height: 48px;
    background: none;
    border: 0;
    font-size: 1.15rem;
    color: var(--navy);
    cursor: pointer;
    line-height: 1;
}
.qty button:hover { background: var(--cream); }
.qty input {
    width: 52px;
    height: 100%;
    min-height: 48px;
    text-align: center;
    border: 0;
    border-inline: 1px solid var(--line);
    background: none;
    font-size: .95rem;
    -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.meta-list {
    list-style: none;
    margin: 2rem 0 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--line);
    font-size: .875rem;
    color: var(--gray);
}
.meta-list li { display: flex; gap: .75rem; padding: .4rem 0; }
.meta-list svg { flex-shrink: 0; color: var(--teal); margin-top: .3rem; }

/* ------------------------------------------------------- Custom cards */

.custom-grid {
    display: grid;
    gap: clamp(1rem, 2.4vw, 1.75rem);
    grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
}

.custom-card {
    background: var(--white);
    border: 1px solid var(--line);
    padding: clamp(1.75rem, 3vw, 2.4rem) clamp(1.25rem, 2.4vw, 1.9rem);
    text-align: center;
    transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.custom-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.custom-card__icon {
    width: 46px; height: 46px;
    margin: 0 auto 1.25rem;
    color: var(--teal);
}
.custom-card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.custom-card p { font-size: .9rem; color: var(--gray); line-height: 1.7; margin: 0; }

.section--cream .custom-card { background: var(--white); }

/* ------------------------------------------------------------- Process */

.steps {
    display: grid;
    gap: clamp(1.75rem, 4vw, 3rem);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    counter-reset: step;
}
.step { text-align: center; }
.step::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    font-family: var(--serif);
    font-size: 2.1rem;
    color: var(--gold);
    margin-bottom: .6rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step p { font-size: .9rem; color: var(--gray); margin: 0; }

/* --------------------------------------------------------------- Forms */

.form-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 700px) {
    .form-grid--2 { grid-template-columns: 1fr 1fr; }
    .form-grid .full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: .45rem; }

.field label {
    font-size: .72rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--navy);
    font-weight: 700;
}
.field .hint { font-size: .8rem; color: var(--gray-light); letter-spacing: 0; text-transform: none; font-weight: 400; }
.req { color: var(--gold); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="number"],
.field input[type="date"],
.field input[type="password"],
.field select,
.field textarea {
    width: 100%;
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-size: .95rem;
    border-radius: 0;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }

.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-soft);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
    border-color: #c0564a;
}
.field-error { font-size: .8rem; color: #c0564a; }

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .9rem;
    color: var(--gray);
}
.checkbox-row input { margin-top: .35rem; width: 17px; height: 17px; accent-color: var(--teal); }

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Drag & drop image field (public custom-order form) */
.dropzone {
    border: 1.5px dashed var(--line);
    background: var(--cream);
    padding: 2.25rem 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .25s var(--ease), background .25s var(--ease);
}
.dropzone:hover, .dropzone.is-over {
    border-color: var(--teal);
    background: var(--teal-soft);
}
.dropzone__icon { width: 34px; height: 34px; color: var(--teal); margin: 0 auto .75rem; }
.dropzone__title { font-weight: 700; color: var(--navy); font-size: .95rem; }
.dropzone__hint { font-size: .82rem; color: var(--gray); margin-top: .3rem; }

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: .6rem;
    margin-top: .9rem;
}
.preview-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--cream);
}
.preview-tile img { width: 100%; height: 100%; object-fit: cover; }
.preview-tile button {
    position: absolute;
    top: 4px; right: 4px;
    width: 24px; height: 24px;
    border: 0;
    border-radius: 50%;
    background: rgba(22,41,63,.82);
    color: #fff;
    font-size: .85rem;
    line-height: 1;
    cursor: pointer;
}

/* --------------------------------------------------------------- Alerts */

.alert {
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--teal);
    background: var(--teal-soft);
    color: var(--navy);
    font-size: .92rem;
    margin-bottom: 1.5rem;
}
.alert--error   { border-color: #c0564a; background: #fbeeec; color: #8c3a30; }
.alert--success { border-color: var(--teal); background: var(--teal-soft); }
.alert--info    { border-color: var(--gold); background: var(--gold-soft); color: #6d5a2c; }
.alert a { text-decoration: underline; }

/* ----------------------------------------------------------------- Cart */

.cart-layout { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 900px) {
    .cart-layout { grid-template-columns: 1fr 350px; }
}

.cart-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}
@media (min-width: 700px) {
    .cart-item { grid-template-columns: 110px 1fr auto; align-items: center; }
}
.cart-item__media {
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    background: var(--cream);
    overflow: hidden;
}
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-family: var(--serif); font-size: 1.1rem; color: var(--navy); margin: 0 0 .2rem; }
.cart-item__cat { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gray-light); margin-bottom: .7rem; }
.cart-item__controls { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .6rem; }
.cart-item__total { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); white-space: nowrap; }
.remove-link {
    background: none; border: 0; padding: 0;
    font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--gray); cursor: pointer; text-decoration: underline;
}
.remove-link:hover { color: #c0564a; }

.summary {
    background: var(--cream);
    border: 1px solid var(--line);
    padding: clamp(1.5rem, 3vw, 2rem);
    position: sticky;
    top: 100px;
}
.summary h2 { font-size: 1.4rem; margin-bottom: 1.25rem; }
.summary__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem 0;
    font-size: .93rem;
    color: var(--gray);
}
.summary__row--total {
    border-top: 1px solid var(--line);
    margin-top: .75rem;
    padding-top: 1rem;
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--navy);
}
.summary .btn { margin-top: 1.25rem; }
.summary__note { font-size: .78rem; color: var(--gray-light); margin-top: 1rem; text-align: center; line-height: 1.6; }

.empty-state {
    text-align: center;
    padding: clamp(3rem, 8vw, 6rem) 1rem;
}
.empty-state svg { width: 64px; height: 64px; color: var(--line); margin: 0 auto 1.5rem; }
.empty-state h2 { font-size: 1.6rem; }
.empty-state p { color: var(--gray); margin-bottom: 1.75rem; }

/* ---------------------------------------------------------------- Toast */

.toast-stack {
    position: fixed;
    right: 1rem; bottom: 1rem;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    max-width: min(92vw, 360px);
}
.toast {
    background: var(--navy);
    color: #fff;
    padding: .9rem 1.15rem;
    font-size: .88rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: .7rem;
    animation: toast-in .35s var(--ease);
}
.toast--error { background: #a4453a; }
.toast a { color: var(--gold); text-decoration: underline; }
@keyframes toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Social */

.social-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---- Follow-along cards (Instagram / TikTok) ---- */

.social-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.social-card {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    padding: .8rem 1.6rem .8rem .9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
    min-width: 232px;
}
.social-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
    color: var(--navy);
}

.social-card__icon {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
}
.social-card--ig .social-card__icon {
    background: linear-gradient(45deg, #f9ce34, #ee2a7b 45%, #6228d7);
    color: #fff;
}
.social-card--tt .social-card__icon { background: #111; color: #fff; }

.social-card__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.social-card__text strong { font-size: .95rem; font-weight: 700; }
.social-card__text span {
    font-size: .82rem;
    color: var(--gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.social-card--tt {
    background: #111;
    border-color: #111;
    color: #fff;
}
.social-card--tt:hover { color: #fff; border-color: #111; }
.social-card--tt .social-card__icon { background: #fff; color: #111; }
.social-card--tt .social-card__text span { color: rgba(255,255,255,.68); }

/* ---- TikTok embed ---- */

.tiktok-embed {
    margin: clamp(2rem, 4vw, 3rem) auto 0;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 9 / 16;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
}
.tiktok-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border: 1px solid var(--line);
    color: var(--navy);
    transition: all .25s var(--ease);
}
.social-link:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.section--navy .social-link { border-color: rgba(255,255,255,.28); color: rgba(255,255,255,.85); }
.section--navy .social-link:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------------------------------------------------------------- Footer */

.site-footer {
    background: var(--navy-deep);
    color: rgba(255,255,255,.62);
    padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
    font-size: .9rem;
}
.footer-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (min-width: 760px) {
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2rem; }
}
.footer-grid h4 {
    color: var(--white);
    font-family: var(--sans);
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.footer-brand__logo {
    width: 76px;
    height: auto;
    margin-bottom: 1rem;
    /* The badge is drawn for light backgrounds; soften it against the navy. */
    opacity: .92;
}
.footer-brand .brand__name { color: var(--white); font-size: 1.35rem; display: block; }
.footer-brand p { margin-top: .9rem; line-height: 1.75; max-width: 30ch; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { color: rgba(255,255,255,.62); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.75rem;
    font-size: .78rem;
    color: rgba(255,255,255,.42);
}
.footer-bottom a { color: rgba(255,255,255,.55); }

.newsletter-form { display: flex; gap: 0; margin-top: .5rem; }
.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: .8rem .9rem;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.05);
    color: var(--white);
    font-size: .88rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form input:focus { outline: none; border-color: var(--gold); }
.newsletter-form button {
    padding: .8rem 1.15rem;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: var(--navy-deep);
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
}
.newsletter-form button:hover { background: var(--white); border-color: var(--white); }

/* ------------------------------------------------------- Rich text (CMS) */

.rich h2 { margin-top: 2.5rem; }
.rich h2:first-child { margin-top: 0; }
.rich h3 { margin-top: 2rem; }
.rich p, .rich li { color: var(--gray); line-height: 1.85; }
.rich ul, .rich ol { padding-left: 1.35rem; margin-bottom: 1.5rem; }
.rich li { margin-bottom: .5rem; }
.rich img { margin: 2rem 0; border: 1px solid var(--line); }
.rich blockquote {
    margin: 2rem 0;
    padding: .5rem 0 .5rem 1.5rem;
    border-left: 2px solid var(--gold);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--navy);
}
.rich a { text-decoration: underline; text-underline-offset: 3px; }
.rich hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* ------------------------------------------------------ Editorial split */

.split {
    display: grid;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
@media (min-width: 860px) {
    .split { grid-template-columns: 1fr 1fr; }
    .split--reverse .split__media { order: 2; }
}
.split__media {
    aspect-ratio: 4 / 5;
    background: var(--cream);
    border: 1px solid var(--line);
    overflow: hidden;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------ Utilities */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1.25rem; }
.muted { color: var(--gray); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy);
    color: #fff;
    padding: .75rem 1.25rem;
    z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* Lazy-loaded images fade in once decoded. */
img[loading="lazy"] { background: var(--cream); }

@media print {
    .site-header, .site-footer, .btn, .announce, .mobile-nav, .scrim { display: none !important; }
    body { color: #000; }
}
