/*
  The storefront's stylesheet.

  Written to match the shop this replaces: a white header with the departments centred, a grid of
  square product tiles on a very light grey, and one accent colour used for exactly one thing -
  the button that buys something. Nothing here is a framework; a shop of eight products does not
  need 200 KB of utility classes to look like this.

  Layout is CSS grid with a single container width, and every interactive control keeps a visible
  focus ring. The checkout in particular has to work on a phone and with a keyboard, which is why
  the size and colour pickers are real radio inputs with their labels styled, rather than divs.
*/

:root {
    --ink: #111418;
    --ink-soft: #3f454d;
    --muted: #6b7280;
    --line: #e4e6ea;
    --line-strong: #c9ced6;
    --surface: #f4f4f6;
    --surface-alt: #f7f8fa;
    --white: #ffffff;
    --accent: #1355ff;
    --accent-dark: #0f45cc;
    --danger: #b42318;
    --success: #067647;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;

    --shadow-card: 0 1px 2px rgba(16, 24, 40, .06);
    --shadow-pop: 0 4px 14px rgba(16, 24, 40, .1);

    --wrap: 1240px;
    --header-height: 72px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--white);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -.01em;
}

p {
    margin: 0 0 12px;
}

/* A visible focus ring everywhere. Removing it is the single most common accessibility
   regression on a styled checkout, so it is set once here rather than per control. */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 13px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: var(--white);
    padding: 10px 16px;
    z-index: 100;
}

.skip-link:focus {
    left: 8px;
    top: 8px;
}

/* ---------------------------------------------------------------- header */

.announcement {
    background: var(--ink);
    color: var(--white);
    text-align: center;
    font-size: 13px;
    padding: 9px 16px;
}

.announcement-closed {
    background: #8a3b12;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.brand {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.brand:hover {
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    height: 100%;
}

.main-nav a {
    font-size: 15px;
    color: var(--ink-soft);
    height: 100%;
    display: flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--ink);
    text-decoration: none;
}

.main-nav a.is-active {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.icon-button:hover {
    background: var(--surface);
    text-decoration: none;
}

.cart-count {
    font-size: 14px;
    min-width: 18px;
    text-align: center;
}

.search-panel {
    border-top: 1px solid var(--line);
    background: var(--white);
}

.search-panel[hidden] {
    display: none;
}

.search-form {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
}

/* ---------------------------------------------------------------- buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.button:hover {
    background: var(--accent-dark);
    text-decoration: none;
}

.button[disabled],
.button.is-disabled {
    background: var(--line);
    color: var(--muted);
    cursor: not-allowed;
}

.button-lg {
    height: 54px;
    width: 100%;
    font-size: 16px;
}

.button-dark {
    background: var(--ink);
}

.button-dark:hover {
    background: #000;
}

.button-quiet {
    background: var(--white);
    color: var(--ink);
    border-color: var(--line-strong);
    font-weight: 500;
}

.button-quiet:hover {
    background: var(--surface);
}

.button-small {
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.link-button {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    color: var(--muted);
    text-decoration: underline;
    cursor: pointer;
}

/* ---------------------------------------------------------------- forms */

input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 11px 12px;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 38px;
}

.field {
    margin: 0 0 16px;
}

.field label {
    display: block;
    font-size: 14px;
    color: var(--ink-soft);
    margin: 0 0 6px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field-error {
    display: block;
    color: var(--danger);
    font-size: 13px;
    margin-top: 5px;
}

.flash {
    border-radius: var(--radius);
    padding: 12px 16px;
    margin: 20px 0 0;
    font-size: 14px;
}

.flash-success {
    background: #ecfdf3;
    color: var(--success);
}

.flash-error,
.alert-error {
    background: #fef3f2;
    color: var(--danger);
}

.alert-error {
    border-radius: var(--radius);
    padding: 12px 16px;
    margin: 0 0 16px;
    font-size: 14px;
}

.alert-error:empty,
.alert-error ul:empty {
    display: none;
}

.alert-error ul {
    margin: 0;
    padding-left: 18px;
}

.notice {
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 14px;
    margin: 0 0 16px;
}

/* ---------------------------------------------------------------- page heads */

.page-head {
    padding: 34px 0 18px;
}

.page-head h1 {
    font-size: 27px;
}

.page-head p {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 62ch;
}

.crumbs {
    font-size: 13px;
    color: var(--muted);
    padding: 18px 0 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.crumbs a:hover {
    color: var(--ink);
}

.listing-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 18px;
    flex-wrap: wrap;
}

.listing-bar form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.listing-bar select {
    width: auto;
    min-width: 190px;
}

/* ---------------------------------------------------------------- product grid */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 34px 26px;
    padding: 0 0 48px;
    list-style: none;
    margin: 0;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-media {
    position: relative;
    display: block;
    background: var(--surface);
    border-radius: var(--radius);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
}

/* The placeholder a product with no photograph gets. Deliberately plain and labelled: an
   invented stock image would be a lie about what is being sold. */
.product-media .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    color: var(--muted);
    font-size: 13px;
}

.quick-view {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
}

.quick-view:hover {
    background: var(--surface);
    text-decoration: none;
}

.product-info {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 0;
}

.product-name {
    font-size: 15px;
    font-weight: 500;
}

.product-name a:hover {
    text-decoration: underline;
}

.product-price {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.product-compare {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
    text-decoration: line-through;
}

.product-subtitle {
    color: var(--muted);
    font-size: 14px;
    margin: 2px 0 0;
}

.sold-out-note {
    font-size: 13px;
    color: var(--muted);
}

.swatch-row {
    display: flex;
    gap: 7px;
    margin: 10px 0 0;
    flex-wrap: wrap;
}

.swatch {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: inline-block;
}

.swatch-more {
    font-size: 12px;
    color: var(--muted);
}

.empty-state {
    padding: 60px 0 80px;
    text-align: center;
    color: var(--muted);
}

/* ---------------------------------------------------------------- pagination */

.pager {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 0 0 60px;
}

.pager a,
.pager span {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.pager .is-current {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
}

/* ---------------------------------------------------------------- product page */

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 56px;
    padding: 24px 0 60px;
    align-items: start;
}

.gallery-main {
    background: var(--surface);
    border-radius: var(--radius-lg);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 36px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin: 14px 0 0;
    flex-wrap: wrap;
}

.gallery-thumbs button {
    width: 68px;
    height: 68px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.gallery-thumbs button[aria-current="true"] {
    border-color: var(--accent);
}

.gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.product-header h1 {
    font-size: 26px;
}

.product-header .price {
    font-size: 22px;
    font-weight: 600;
    white-space: nowrap;
}

.product-item {
    color: var(--muted);
    font-size: 15px;
    margin: 4px 0 0;
}

.option-group {
    margin: 26px 0 0;
}

.option-label {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 10px;
}

.option-label strong {
    color: var(--ink);
    font-weight: 500;
}

.option-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* The colour and size pickers are real radio inputs: the label is what is styled, so keyboard
   navigation, screen readers and a form post with no scripting all work unchanged. */
.option-row input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    cursor: pointer;
    display: inline-block;
    position: relative;
}

.color-option.has-no-hex {
    width: auto;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 13px;
    background: var(--white);
}

input[type="radio"]:checked + .color-option {
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--accent);
}

input[type="radio"]:focus-visible + .color-option,
input[type="radio"]:focus-visible + .size-option {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.size-option {
    min-width: 92px;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    background: var(--white);
    position: relative;
}

input[type="radio"]:checked + .size-option {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}

/* Unavailable combinations keep their place and are struck through, exactly as the shop this
   replaces showed them - a size that vanishes is a size the shopper thinks they misread. */
.size-option.is-unavailable {
    color: var(--muted);
    cursor: not-allowed;
    background:
        linear-gradient(to top left,
            transparent calc(50% - 1px), var(--line-strong) 50%, transparent calc(50% + 1px));
}

.size-guide {
    float: right;
    font-size: 13px;
    color: var(--muted);
}

.buy-row {
    margin: 28px 0 0;
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.qty-field {
    width: 88px;
}

.policy-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 0;
    font-size: 14px;
    color: var(--ink-soft);
}

.stock-note {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--danger);
}

.accordion {
    margin: 30px 0 0;
    border-top: 1px solid var(--line);
}

.accordion details {
    border-bottom: 1px solid var(--line);
}

.accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 0;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: "+";
    font-size: 20px;
    color: var(--muted);
    font-weight: 400;
}

.accordion details[open] summary::after {
    content: "\2212";
}

.accordion .panel {
    padding: 0 0 20px;
    color: var(--ink-soft);
    font-size: 14px;
}

.accordion .panel ul {
    margin: 0;
    padding-left: 18px;
}

.related {
    padding: 10px 0 70px;
}

.related h2 {
    font-size: 20px;
    margin: 0 0 22px;
}

/* ---------------------------------------------------------------- cart */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, .9fr);
    gap: 40px;
    padding: 10px 0 70px;
    align-items: start;
}

.cart-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.cart-line {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}

.cart-line .thumb {
    width: 96px;
    height: 96px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cart-line .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.cart-line .line-title {
    font-weight: 500;
}

.cart-line form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 10px 0 0;
}

.cart-line input[type="number"] {
    width: 74px;
}

.cart-line .line-total {
    font-weight: 600;
    white-space: nowrap;
}

/* ---------------------------------------------------------------- summary panel */

.summary {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.summary h2 {
    font-size: 17px;
    margin: 0 0 16px;
}

.summary-lines {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    gap: 14px;
}

.summary-lines li {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: start;
    font-size: 14px;
}

.summary-lines .thumb {
    width: 56px;
    height: 56px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.summary-lines .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
    padding: 5px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 17px;
    font-weight: 600;
    border-top: 1px solid var(--line);
    margin-top: 10px;
    padding-top: 14px;
}

.promo-form {
    display: flex;
    gap: 8px;
    margin: 16px 0 0;
}

.free-shipping-note {
    background: var(--surface-alt);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 13px;
    margin: 14px 0 0;
}

/* ---------------------------------------------------------------- checkout */

.checkout-page {
    background: var(--surface-alt);
    padding: 26px 0 70px;
    min-height: 60vh;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .9fr);
    gap: 32px;
    align-items: start;
}

.step-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 0 0 20px;
    box-shadow: var(--shadow-card);
}

.step-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--ink-soft);
}

.step-head h2 {
    font-size: 17px;
}

.choice-list {
    display: grid;
    gap: 10px;
}

.choice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 14px 16px;
    cursor: pointer;
}

.choice:has(input:checked) {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.choice input {
    margin: 2px 0 0;
}

.choice .choice-body {
    flex: 1;
}

.choice .choice-title {
    font-weight: 500;
}

.choice .choice-price {
    font-weight: 600;
    white-space: nowrap;
}

.checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 12px;
}

.checkbox-row input {
    margin: 3px 0 0;
}

.consent-copy {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 16px;
}

.pay-note {
    font-size: 13px;
    color: var(--muted);
    margin: 14px 0 0;
    text-align: center;
}

/* ---------------------------------------------------------------- order pages */

.order-page {
    padding: 30px 0 70px;
    max-width: 760px;
}

.order-head {
    border-bottom: 1px solid var(--line);
    padding: 0 0 20px;
    margin: 0 0 20px;
}

.order-head h1 {
    font-size: 25px;
}

.status-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 13px;
    background: var(--surface);
    color: var(--ink-soft);
}

.status-badge.is-paid {
    background: #ecfdf3;
    color: var(--success);
}

.status-badge.is-unpaid {
    background: #fff6ed;
    color: #b54708;
}

.status-badge.is-cancelled {
    background: #fef3f2;
    color: var(--danger);
}

.order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 24px 0 0;
}

.order-block h2 {
    font-size: 15px;
    margin: 0 0 8px;
}

.order-lines {
    list-style: none;
    margin: 0;
    padding: 0;
}

.order-lines li {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.order-lines .thumb {
    width: 64px;
    height: 64px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.order-lines .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.prose {
    max-width: 68ch;
}

.prose p {
    margin: 0 0 14px;
    color: var(--ink-soft);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 44px 0 30px;
    margin-top: 40px;
    background: var(--white);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
}

.footer-name {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 6px;
}

.footer-heading {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    margin: 0 0 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.footer-links a {
    color: var(--ink-soft);
}

.footer-legal {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
    .product-layout {
        gap: 34px;
    }

    .main-nav {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .header-inner {
        grid-template-columns: auto 1fr;
        row-gap: 0;
        height: auto;
        padding: 12px 20px;
    }

    .header-actions {
        order: 2;
    }

    /* The departments drop to their own scrollable row rather than into a hamburger: six links
       that are the whole shop are better visible than hidden behind a menu button. */
    .main-nav {
        order: 3;
        grid-column: 1 / -1;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 4px 0 2px;
        gap: 18px;
        border-top: 1px solid var(--line);
        margin-top: 10px;
    }

    .main-nav a {
        height: 40px;
    }

    .product-layout,
    .cart-layout,
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .summary {
        position: static;
    }
}

@media (max-width: 600px) {
    .wrap,
    .header-inner,
    .search-form {
        padding-left: 16px;
        padding-right: 16px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 24px 16px;
    }

    .field-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .cart-line {
        grid-template-columns: 72px 1fr;
    }

    .cart-line .line-total {
        grid-column: 2;
    }

    .product-header {
        flex-direction: column;
        gap: 6px;
    }
}

@media print {
    .site-header,
    .site-footer,
    .buy-row,
    .pager {
        display: none;
    }
}
