/* ───────────────────────────────────────────────────────────────
   Yard Toolkit — public store stylesheet. Loaded after app.css, which
   supplies the tokens and the shared components (card, btn, field,
   badge, flash, table). Phone-first: single column, large tap targets.
   ─────────────────────────────────────────────────────────────── */

.store { min-height: 100vh; display: flex; flex-direction: column; }

.store__header {
    background: var(--color-primary-darker);
    padding: 0.7rem 1rem;
}
.store__header-inner {
    max-width: 46rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.store__brand { display: inline-flex; align-items: center; gap: 0.75rem; min-width: 0; }
.store__brand:hover { text-decoration: none; }
.store__logo { width: 3.4rem; height: 3.4rem; object-fit: contain; flex: none; }
.store__wordmark { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.store__name {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.store__tagline {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}
.store__phone {
    flex: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-pill);
    white-space: nowrap;
}
.store__phone:hover { background: rgba(255, 255, 255, 0.10); text-decoration: none; }
@media (max-width: 480px) {
    .store__logo { width: 2.8rem; height: 2.8rem; }
    .store__name { font-size: 0.98rem; letter-spacing: 0.1em; }
    .store__phone { font-size: 0.8rem; padding: 0.4rem 0.65rem; }
}

.store__main {
    flex: 1;
    width: 100%;
    max-width: 46rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}
.store__main .flash-strip { padding: 0 0 1rem; }

.store__footer {
    text-align: center;
    padding: 1.6rem 1rem 1.8rem;
    font-size: 0.8rem;
    line-height: 1.7;
    background: var(--color-primary-darker);
    color: rgba(255, 255, 255, 0.5);
}
.store__footer a { color: rgba(255, 255, 255, 0.8); }
.store__footer-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.store-hero { margin-bottom: 1.5rem; }
.store-hero h1 { font-size: 1.9rem; line-height: 1.15; }
.store-hero p { color: var(--color-text-muted); margin-top: 0.5rem; }
.store-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
}
.store-hero__eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; opacity: 0.7; }

/* With a banner photo: the heading sits on the photo under a dark wash. */
.store-hero--photo {
    position: relative;
    margin: -1.5rem -1rem 1.5rem;
    padding: 3.2rem 1.4rem 1.6rem;
    background-size: cover;
    background-position: center;
    color: #fff;
}
.store-hero--photo::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.58); }
.store-hero--photo > * { position: relative; }
.store-hero--photo h1 { color: #fff; font-size: 2.3rem; }
.store-hero--photo p { color: rgba(255, 255, 255, 0.85); }
.store-hero--photo .store-hero__eyebrow { color: rgba(255, 255, 255, 0.8); }
.store-hero--photo .store-facts span {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}
@media (min-width: 48rem) {
    .store-hero--photo { margin: 0 0 1.5rem; border-radius: var(--radius); overflow: hidden; padding: 4.5rem 2rem 2rem; }
}
.store-facts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.store-facts span {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-pill);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

/* ─── Steps ──────────────────────────────────────────────────── */
.store-step { margin-top: 1rem; }
.store-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    margin-right: 0.5rem;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    vertical-align: 0.1em;
}

/* ─── Products ───────────────────────────────────────────────── */
.store-category { margin-top: 1.2rem; }
.store-category:first-of-type { margin-top: 0; }
.store-category h3 { font-size: 1rem; }
.store-category__days { font-size: 0.82rem; color: var(--color-text-muted); margin: 0.1rem 0 0.6rem; }

.store-product {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
}
.store-product + .store-product { margin-top: 0.5rem; }
.store-product.is-chosen { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(43, 130, 79, 0.10); }
.store-product.is-sold-out { background: var(--color-bg-soft); }
.store-product.is-sold-out .store-product__name,
.store-product.is-sold-out .store-product__price { color: var(--color-text-mutest); }
.store-product__image {
    width: 4.5rem;
    height: 4.5rem;
    flex: none;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-soft);
}
.store-product__body { flex: 1; min-width: 0; }
.store-product__name { font-weight: 500; }
.store-product__desc { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 0.1rem; }
.store-product__price { font-weight: 600; color: var(--color-primary-darker); white-space: nowrap; }
.store-product__qty { width: 4.2rem; flex: none; }
.store-product__qty input {
    width: 100%;
    padding: 0.5rem 0.4rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 1rem;
    background: var(--color-bg);
}
.store-product__qty input:focus { outline: none; border-color: var(--color-primary); }

.store-subtotal {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--color-border-soft);
    font-weight: 600;
}

/* ─── Form rows ──────────────────────────────────────────────── */
.store-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.8rem; }
.store-row--address { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 560px) {
    .store-row, .store-row--address { grid-template-columns: 1fr; }
    .store-hero h1 { font-size: 1.6rem; }
    .store-hero--photo h1 { font-size: 1.9rem; }
    .store-facts span { border-radius: var(--radius-sm); }

    /* Product name gets the full width; price and quantity sit beneath it. */
    .store-product { flex-wrap: wrap; row-gap: 0.5rem; }
    .store-product__body { flex-basis: 100%; }
    .store-product__image + .store-product__body { flex-basis: calc(100% - 5.4rem); }
    .store-product__price { margin-right: auto; }
}
.store .field input, .store .field select, .store .field textarea { font-size: 1rem; padding: 0.65rem 0.75rem; }
.store-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.store-submit { margin-top: 1.2rem; }
.store-submit .btn { width: 100%; padding: 0.85rem 1rem; font-size: 1rem; }
.store-submit .btn + .btn { margin-top: 0.5rem; }
.store-pay-note { text-align: center; font-size: 0.85rem; color: var(--color-text-muted); margin-top: 0.7rem; }

/* ─── Summary (review + placed order) ────────────────────────── */
.store-summary { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.store-summary td { padding: 0.45rem 0; vertical-align: top; }
.store-summary td:last-child { text-align: right; white-space: nowrap; }
.store-summary tr.is-total td {
    border-top: 1px solid var(--color-border);
    padding-top: 0.7rem;
    font-weight: 600;
    font-size: 1.05rem;
}
.store-details { display: grid; grid-template-columns: 8rem 1fr; gap: 0.5rem 0.9rem; font-size: 0.92rem; }
.store-details dt { color: var(--color-text-muted); font-size: 0.85rem; }
@media (max-width: 560px) {
    .store-details { grid-template-columns: 1fr; gap: 0.1rem; }
    .store-details dd { margin-bottom: 0.6rem; }
}

/* ─── Order progress ─────────────────────────────────────────── */
.store-progress { display: flex; gap: 0.3rem; margin: 0.9rem 0 0.4rem; }
.store-progress__step { flex: 1; height: 0.35rem; border-radius: var(--radius-pill); background: var(--color-border); }
.store-progress__step.is-done { background: var(--color-primary); }
.store-progress__labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--color-text-muted);
}
