/* Ultra Westcoast — a working skeleton. Deliberately plain: the visual design is a separate
   decision, and a half-styled house look is harder to replace than an unstyled one. */
:root {
    --ink: #1b1d1c;
    --muted: #5c6360;
    --rule: #dcdfdd;
    --ground: #ffffff;
    --accent: #14606b;
    --warn-bg: #f7efdd;
    --warn-line: #9a6410;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}

header, main, footer { max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }

.site-nav { display: flex; align-items: baseline; gap: 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.site-nav .brand { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.site-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a.active, .site-nav a:hover { color: var(--accent); }

main { padding-top: 2.5rem; padding-bottom: 4rem; }

h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; text-wrap: balance; margin: 0 0 .75rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 .5rem; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 38em; }

.button {
    display: inline-block; padding: .6rem 1.1rem; background: var(--accent);
    color: #fff; text-decoration: none; border-radius: 3px;
}

.steps { max-width: 40em; }
.steps li { margin: .5rem 0; }

.products { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.product { border: 1px solid var(--rule); padding: 1.1rem; }
.product h2 { margin: 0 0 .25rem; font-size: 1.05rem; }
.product .pack { color: var(--muted); font-size: .85rem; margin: 0 0 .6rem; }
.product .blurb { font-size: .95rem; }
.product .price { font-weight: 700; font-size: 1.1rem; }

.notice { background: var(--warn-bg); border-left: 4px solid var(--warn-line); padding: 1rem 1.15rem; margin: 1.5rem 0; }

.order { display: flex; flex-direction: column; gap: .9rem; max-width: 32rem; }
.order label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; color: var(--muted); }
.order input, .order select, .order textarea {
    font: inherit; padding: .5rem; border: 1px solid var(--rule); border-radius: 3px; color: var(--ink);
}
.order button { padding: .65rem 1.1rem; font: inherit; border: 0; border-radius: 3px; background: var(--accent); color: #fff; }
.order[inert] { opacity: .55; }

footer { border-top: 1px solid var(--rule); padding-top: 1.25rem; padding-bottom: 3rem; color: var(--muted); font-size: .9rem; }
footer p { margin: .2rem 0; }

.hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice.error { background: #fbeceb; border-left-color: #a3352b; }
.summary { display: grid; gap: .1rem; margin: 1.5rem 0; max-width: 34rem; }
.summary > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.summary dt { color: var(--muted); font-size: .9rem; }
.summary dd { margin: 0; }
.muted { color: var(--muted); font-size: .9rem; }

/* --- product imagery and detail --- */
.product .shot { display: block; margin: -1.1rem -1.1rem .9rem; background: #f4f6f5; text-align: center; }
.product .shot img { height: 190px; width: auto; max-width: 100%; object-fit: contain; padding: .8rem 0; }
.product h2 a { color: inherit; text-decoration: none; }
.product h2 a:hover { color: var(--accent); }
.product .actions { display: flex; align-items: center; gap: 1rem; margin-bottom: 0; }
.product .more { font-size: .9rem; color: var(--muted); }

.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

.detail { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: start; }
.detail-shot { background: #f4f6f5; padding: 1.25rem; text-align: center; }
.detail-shot img { height: 340px; width: auto; max-width: 100%; object-fit: contain; }
.detail-body h1 { margin-top: 0; }
.detail-body h2 { font-size: 1.05rem; margin: 1.75rem 0 .4rem; }
.detail-body .description { font-size: 1.05rem; max-width: 40em; }
.features { margin: .5rem 0; padding-left: 1.2rem; }
.features li { margin: .3rem 0; }
.ingredients { color: var(--muted); font-size: .92rem; max-width: 44em; }

/* Pack sizes. One row per bag: size, price, and a link straight to the order form with that
   item code already chosen. The row is the price list, so it stays legible at narrow widths
   rather than collapsing into a table. */
.packs { list-style: none; margin: .6rem 0; padding: 0; }
.packs li {
    display: flex; align-items: baseline; gap: .75rem;
    padding: .4rem 0; border-bottom: 1px solid var(--rule);
}
.packs li:last-child { border-bottom: 0; }
.packs .size { flex: 0 0 3.5rem; color: var(--muted); font-size: .9rem; }
.packs .amount { flex: 0 0 5rem; font-weight: 700; }
.packs .perkg { flex: 1 1 auto; color: var(--muted); font-size: .85rem; }
.packs .pick { font-size: .9rem; }

.sizes { max-width: 26rem; margin-bottom: .4rem; }
.sizes li { padding: .55rem 0; }
.sizes .size { flex: 0 0 4rem; font-size: 1rem; color: var(--ink); }
.sizes .amount { flex: 0 0 5.5rem; font-size: 1.05rem; }
.sizes .perkg { flex: 1 1 auto; }
.sizes .button { padding: .35rem .8rem; font-size: .85rem; }

.notice p { margin: .35rem 0; }
.notice p:first-child { margin-top: 0; }
.notice p:last-child { margin-bottom: 0; }

.order optgroup { font-style: normal; }

.summary .saving { color: #1f7a3d; }

/* Price matrix on the order form. The two dropdowns cannot show a price between them, so this is
   where the customer checks what the pair they picked costs. Wide content scrolls inside its own
   box rather than pushing the page sideways. */
.table-scroll { overflow-x: auto; margin: .5rem 0 1.5rem; }
.pricing { border-collapse: collapse; font-size: .95rem; min-width: 28rem; }
.pricing caption { caption-side: bottom; text-align: left; color: var(--muted); font-size: .85rem; padding-top: .5rem; }
.pricing th, .pricing td { padding: .45rem .9rem; border-bottom: 1px solid var(--rule); text-align: right; }
.pricing thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
/* The product column is left-aligned in the body, so its column header has to be too. */
.pricing th[scope="row"], .pricing thead th:first-child { text-align: left; font-weight: 400; }
.pricing thead th:first-child { font-weight: 700; }
.pricing tbody tr:last-child th, .pricing tbody tr:last-child td { border-bottom: 0; }
.pricing .perkg { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }

@media (max-width: 44rem) {
    .detail { grid-template-columns: 1fr; gap: 1.5rem; }
    .detail-shot img { height: 260px; }
}
