.web-store {
    color: var(--c-ink);
    overflow-wrap: anywhere;
}

.web-store .wrap { max-width: 1320px; }
.web-store h1,
.web-store h2,
.web-store h3,
.web-store p { margin: 0; }

.web-intro {
    padding: clamp(24px, 5vw, 64px) 0;
    background: var(--c-soft);
    border-bottom: 1px solid var(--c-line);
}

.web-intro h1:not(:first-child),
.web-intro p { margin-top: 12px; }
.web-intro p { max-width: 70ch; color: var(--c-text); }

.web-search {
    display: flex;
    gap: 8px;
    max-width: 540px;
    margin-top: 20px;
}

.web-search input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 8px 14px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: var(--c-bg);
    color: var(--c-ink);
    font: inherit;
}

.web-search button { flex-shrink: 0; }

.web-store .web-content { padding-block: clamp(24px, 4vw, 48px); }
.web-categories { margin-bottom: 24px; }

.web-pills,
.web-grid {
    margin: 0;
    padding: 0;
    list-style: none;
}

.web-pills,
.web-pagination,
.web-product-nav,
.web-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.web-section-head { justify-content: space-between; }
.web-section-head a,
.web-product-nav a { font-weight: 600; }

.web-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 2vw, 24px);
}

.web-store h2 + .web-grid,
.web-store .web-section-head + .web-grid,
.web-store .web-count + .web-grid,
.web-store .web-empty { margin-top: 16px; }

.web-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    color: var(--c-ink);
    text-decoration: none;
}

.web-card:hover { border-color: var(--c-brand); }
.web-card:hover h2,
.web-card:hover h3 { text-decoration: underline; }

.web-image {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--c-soft);
    color: var(--c-muted);
    text-align: center;
}

.web-card .web-image { border-radius: var(--radius) var(--radius) 0 0; }
.web-image span { padding: 12px; }

.web-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.web-card-copy { padding: clamp(10px, 1.6vw, 18px); }

.web-card-copy h2,
.web-card-copy h3 { font-size: clamp(15px, 1.5vw, 19px); line-height: 1.4; }
.web-card-copy .web-price { margin-top: 6px; }

.web-price { color: var(--c-brand-ink); font-weight: 700; }
.web-stock { color: var(--c-muted); font-size: var(--t-small); }
.web-stock.is-available { color: var(--c-brand-ink); }

.web-pagination { justify-content: center; margin-top: 24px; }
.web-product-nav { margin-bottom: 20px; }

.web-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(20px, 4vw, 52px);
}

.web-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px;
    margin: 8px -4px 0;
}

.web-thumbnails button {
    flex: 0 0 68px;
    padding: 1px;
    cursor: pointer;
    border: 1px solid var(--c-line);
    border-radius: 8px;
    background: var(--c-soft);
}

.web-thumbnails img { display: block; object-fit: contain; border-radius: 6px; }
.web-thumbnails button[aria-pressed="true"] { border-color: var(--c-brand); }

.web-product-state { margin-top: 12px; }
.web-product-state .web-price { font-size: clamp(22px, 3vw, 30px); }

.web-variants {
    min-inline-size: 0;
    margin: 20px 0 0;
    padding: 0;
    border: 0;
}

.web-variants legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.web-variants button[aria-pressed="true"] {
    border-color: var(--c-brand);
    background: var(--c-soft);
    color: var(--c-brand-ink);
}

.web-store :focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }

.web-description,
.web-related {
    margin-top: clamp(24px, 5vw, 52px);
    padding-top: clamp(20px, 3vw, 32px);
    border-top: 1px solid var(--c-line);
}

.web-description p { margin-top: 12px; max-width: 70ch; color: var(--c-text); }

@media (min-width: 641px) {
    .web-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .web-product { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .web-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.web-cart-nav { display: flex; justify-content: flex-end; }
.web-cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    flex: none;
    color: var(--c-brand-ink);
    font-weight: 700;
}
.web-cart-icon {
    position: relative;
    width: 17px;
    height: 12px;
    margin-bottom: 5px;
    border: 2px solid currentColor;
    border-radius: 2px 2px 4px 4px;
    transform: skew(-8deg);
}
.web-cart-icon::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -6px;
    width: 5px;
    height: 5px;
    border-top: 2px solid;
    border-right: 2px solid;
}
.web-cart-icon::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 1px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 8px 0 currentColor;
}
.web-order,
.web-order-grid,
.web-form,
.web-panel { display: grid; gap: 16px; }
.web-order-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}
.web-order [hidden] { display: none; }
.web-order > a,
.web-order .btn { justify-self: start; }
.web-panel {
    padding: clamp(14px, 3vw, 24px);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: var(--c-soft);
}
.web-form { max-width: 640px; }
.web-form label { display: grid; gap: 4px; font-weight: 600; min-width: 0; }
.web-form input,
.web-form select,
.web-form textarea,
.web-cart-table input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px;
    border: 1px solid var(--c-line);
    border-radius: 8px;
    color: var(--c-ink);
    background: var(--c-bg);
    font: inherit;
}
.web-form textarea { resize: vertical; }
.web-form .btn { justify-self: start; min-height: 44px; }
.web-store button:disabled { opacity: .65; cursor: default; }
.web-add { margin-top: 20px; }
.web-add input { max-width: 90px; }
.web-field-error { color: #a12621; }
.web-order :is(p, span):empty,
.web-add p:empty { display: none; }
.web-totals {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 12px;
    margin: 0;
}
.web-totals dd { margin: 0; text-align: right; }
.web-order-lines { list-style: none; margin: 0; padding: 0; }
.web-order-lines li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-block: 8px;
    border-bottom: 1px solid var(--c-line);
}
.web-order-lines strong { flex: none; }
.web-cart-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: var(--t-small); }
.web-cart-table th { text-align: left; }
.web-cart-table th:first-child { width: 45%; }
.web-cart-table th:nth-child(2) { width: 24%; }
.web-cart-table :is(th, td) { padding: 8px 4px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.web-cart-table img { display: block; width: 48px; height: 48px; object-fit: contain; margin-bottom: 4px; }
.web-cart-table .btn { min-height: 44px; padding-inline: 8px; }
.web-cart-table input { max-width: 80px; }
.web-qr { max-width: 100%; height: auto; }
@media (min-width: 641px) {
    .web-order-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
@media (max-width: 768px) {
    .hd .web-cart-link { margin-left: auto; }
    .hd .web-cart-link + .menu-btn { margin-left: 0; }
}
