/**
 * WooCommerce layer.
 *
 * WooCommerce's own stylesheets are dequeued in inc/assets.php and its markup
 * is replaced by the overrides in woocommerce/, so this file styles our own
 * classes rather than undoing Woo's defaults. Selectors that keep Woo's
 * original class names do so because Woo's JavaScript or a core hook depends on
 * them -- those are marked.
 */

@layer woo {
  /* Notices
     ---------------------------------------------------------------------- */

  .woocommerce-notices-wrapper:empty {
    display: none;
  }

  .notice-banner {
    display: flex;
    align-items: center;
    margin: 0 0 28px;
    padding: var(--space-4);
    border-left: 2px solid var(--ink);
    background: var(--bone);
    font-size: 14px;
    gap: var(--space-4);
  }

  .notice-banner--error {
    border-left-color: #a63025;
  }

  .notice-banner__list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .notice-banner .button {
    margin-left: auto;
    white-space: nowrap;
  }

  /* Shop archive
     ---------------------------------------------------------------------- */

  .shop-page {
    padding-top: clamp(54px, 7vw, 110px);
  }

  .shop-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
    align-items: end;
    margin-bottom: clamp(42px, 6vw, 88px);
    gap: var(--space-6);
  }

  .shop-intro .eyebrow {
    margin: 0;
    grid-column: 1 / -1;
  }

  .shop-intro h1 {
    margin: 0;
    font-size: var(--display-1);
    letter-spacing: -0.065em;
    line-height: 0.86;
  }

  .shop-intro > p:last-child {
    max-width: 310px;
    margin: 0 0 var(--space-1);
    color: var(--muted);
  }

  .breadcrumb {
    margin: 0 0 26px;
    color: var(--muted-soft);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .catalog-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: var(--space-4);
  }

  .catalog-bar .woocommerce-result-count {
    margin: 0;
    color: var(--muted-soft);
    font-size: var(--text-sm);
  }

  .catalog-bar .woocommerce-ordering {
    margin: 0;
  }

  .catalog-bar select {
    width: auto;
    min-width: 220px;
    min-height: 42px;
    padding: 0 40px 0 var(--space-3);
    font-size: var(--text-sm);
  }

  /* Product loop. `products` is kept because wc_get_loop_prop consumers and
     third-party scripts look for it. */
  ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    gap: clamp(16px, 2vw, 34px);
    list-style: none;
  }

  .product-card__image {
    /* Anchors the sale flash, which Woo prints inside this link. */
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--bone);
  }

  .product-card__image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform var(--transition-slow);
  }

  .product-card__image:hover img {
    transform: scale(1.02);
  }

  .product-card__meta {
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-4);
    gap: var(--space-4);
  }

  .product-card__meta h2 {
    margin: 0;
    font-size: var(--text-lg);
    letter-spacing: var(--tracking-tight);
  }

  .product-card__detail {
    margin-top: var(--space-1);
    color: var(--muted-soft);
    font-size: var(--text-xs);
  }

  .onsale {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    padding: 6px var(--space-2);
    background: var(--ink);
    color: var(--on-ink);
    font-size: 9px;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
  }

  /* Editorial colourway grid on the shop archive
     ---------------------------------------------------------------------- */

  .colour-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: clamp(18px, 2vw, 32px);
  }

  .colour-card:nth-child(1) {
    grid-column: span 5;
  }

  .colour-card:nth-child(2) {
    padding-top: 82px;
    grid-column: span 4;
  }

  .colour-card:nth-child(3) {
    padding-top: 26px;
    grid-column: span 3;
  }

  .colour-card:nth-child(4) {
    padding-top: 46px;
    grid-column: 5 / span 5;
  }

  .colour-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--bone);
  }

  .colour-card__image img {
    width: 100%;
    min-height: 400px;
    object-fit: cover;
    transition: transform var(--transition-slow);
  }

  .colour-card__image:hover img {
    transform: scale(1.025);
  }

  .colour-card__index {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    color: var(--on-ink);
    font-size: var(--text-2xs);
    letter-spacing: var(--tracking-wide);
  }

  .colour-card__meta {
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-4);
    gap: var(--space-4);
  }

  .colour-card__meta .eyebrow {
    margin: 0 0 6px;
    color: var(--muted-soft);
  }

  .colour-card__meta h2 {
    margin: 0;
    color: var(--ink);
    font-size: var(--text-xl);
    letter-spacing: var(--tracking-tight);
  }

  .colour-card__price {
    flex: 0 0 auto;
    padding-top: var(--text-xl);
    color: var(--ink);
    font-size: var(--text-sm);
  }

  /* Pagination
     ---------------------------------------------------------------------- */

  .pagination {
    margin-top: 56px;
  }

  .pagination ul {
    display: flex;
    margin: 0;
    padding: 0;
    gap: var(--space-2);
    list-style: none;
  }

  .pagination a,
  .pagination span {
    display: grid;
    min-width: 38px;
    height: 38px;
    padding: 0 var(--space-2);
    border: 1px solid var(--line);
    font-size: var(--text-sm);
    place-items: center;
  }

  .pagination .current,
  .pagination a:hover {
    background: var(--ink);
    color: var(--on-ink);
  }

  /* Single product
     ---------------------------------------------------------------------- */

  /* Stacks the layout, the tabs and the related products. Keeping those last
     two out of `.product-layout` matters: a sticky grid item is constrained by
     the grid, so while the tabs sat inside it the summary stayed pinned well
     past the gallery and overlapped the sections below. */
  .product-single {
    display: grid;
    gap: clamp(32px, 5vw, 84px);
  }

  .product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: clamp(32px, 5vw, 84px);
  }

  .product-layout__gallery {
    /*
     * Positioned so the sale flash, which Woo hooks in here, can anchor.
     * `z-index: 0` is load-bearing: it makes the gallery its own stacking
     * context so the photoswipe trigger inside it cannot paint above the
     * summary column -- and so above the size guide dialog that lives there.
     */
    position: relative;
    z-index: 0;
    grid-column: 1;
  }

  .product-layout__summary {
    position: sticky;
    top: var(--space-6);
    grid-column: 2;
  }

  /* `woocommerce-product-gallery` is required by Woo's gallery script. */
  .woocommerce-product-gallery {
    position: relative;
  }

  .woocommerce-product-gallery__wrapper {
    overflow: hidden;
    background: var(--bone);
  }

  .woocommerce-product-gallery__image img {
    width: 100%;
  }

  .woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    margin: var(--space-2) 0 0;
    padding: 0;
    gap: var(--space-2);
    list-style: none;
  }

  .woocommerce-product-gallery .flex-control-thumbs li {
    width: 82px;
  }

  /* Photoswipe trigger. Positioned and skinned by woocommerce.css previously. */
  .woocommerce-product-gallery__trigger {
    position: absolute;
    z-index: 2;
    top: var(--space-3);
    right: var(--space-3);
    display: grid;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgb(251 250 247 / 90%);
    color: var(--ink);
    place-items: center;
  }

  /*
   * Woo's gallery script hard-codes a magnifier emoji into the trigger and
   * gives us no filter for it, so the glyph is hidden and replaced with the
   * Lucide `zoom-in` icon as a mask -- masked rather than a background image so
   * it takes `color` like every other icon in the theme.
   */
  .woocommerce-product-gallery__trigger > span {
    display: none;
  }

  .woocommerce-product-gallery__trigger::after {
    width: 16px;
    height: 16px;
    background: currentcolor;
    content: "";
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3Cpath d='M11 8v6'/%3E%3Cpath d='M8 11h6'/%3E%3C/svg%3E")
      center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3Cpath d='M11 8v6'/%3E%3Cpath d='M8 11h6'/%3E%3C/svg%3E")
      center / contain no-repeat;
  }

  .woocommerce-product-gallery__trigger img {
    width: 16px;
    height: 16px;
  }

  .product_title {
    margin: 0 0 var(--space-3);
    font-size: clamp(42px, 4vw, 66px);
    letter-spacing: -0.05em;
    line-height: 0.96;
  }

  .product-layout__summary > .price,
  .woocommerce-variation-price .price {
    display: block;
    margin: 0 0 28px;
    color: var(--ink);
    font-size: var(--text-lg);
    font-weight: 500;
  }

  .woocommerce-product-details__short-description {
    max-width: 470px;
    margin: 30px 0;
    color: var(--muted);
  }

  /* Variation form. `variations` and `variations_form` are required by
     add-to-cart-variation.js. */
  form.cart {
    display: flex;
    flex-wrap: wrap;
    margin: var(--space-6) 0;
    gap: var(--space-2);
  }

  .variations {
    display: grid;
    width: 100%;
    margin: 0 0 var(--space-3);
    gap: 12px;
  }

  .variation-row {
    display: grid;
    min-height: 60px;
    grid-template-columns: var(--label-column) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-4);
  }

  .variation-row__label {
    font-size: var(--text-2xs);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
  }

  .variation-row__value {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
    gap: var(--space-3);
  }

  /*
   * The native select stays in the DOM because Woo's variation script reads and
   * writes it, but the visible control is the button picker beside it. One rule,
   * no `!important` -- the woo layer already outranks everything above it.
   */
  .variation-row__select {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /*
   * A flex sibling of the picker rather than absolutely positioned beyond the
   * column, which overflowed the summary at narrow widths.
   */
  .reset_variations {
    color: var(--muted-soft);
    font-size: var(--text-2xs);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    white-space: nowrap;
  }

  /*
   * `single_variation_wrap` is injected by Woo's variation script, so the
   * add-to-cart row is laid out here rather than in the template.
   */
  .single_variation_wrap {
    width: 100%;
  }

  .woocommerce-variation-price:empty,
  .woocommerce-variation-description:empty,
  .woocommerce-variation-availability:empty {
    display: none;
  }

  .woocommerce-variation-description {
    margin-bottom: var(--space-3);
    color: var(--muted);
    font-size: 14px;
  }

  .woocommerce-variation-availability {
    margin-bottom: var(--space-3);
    color: var(--muted-soft);
    font-size: var(--text-sm);
  }

  .woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
  }

  .quantity {
    flex: 0 0 auto;
  }

  .quantity .qty {
    width: 68px;
    padding: 0 12px;
    text-align: center;
  }

  .single_add_to_cart_button {
    min-width: 190px;
  }

  .stock.out-of-stock {
    color: var(--oxblood);
    font-size: 14px;
  }

  .product_meta {
    display: grid;
    padding-top: var(--space-5);
    border-top: 1px solid var(--line);
    color: var(--muted-soft);
    font-size: var(--text-xs);
    gap: var(--space-2);
  }

  .product_meta span {
    display: block;
  }

  /* Product tabs
     ---------------------------------------------------------------------- */

  .product-tabs {
    margin-top: 60px;
    padding-top: 52px;
    border-top: 1px solid var(--line);
  }

  .product-tabs__list {
    display: flex;
    margin: 0 0 30px;
    padding: 0;
    border-bottom: 1px solid var(--line);
    gap: 28px;
    list-style: none;
  }

  .product-tabs__list a {
    display: block;
    padding: 0 0 12px;
    border-bottom: 2px solid transparent;
    color: var(--muted-soft);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .product-tabs__list [aria-selected="true"] {
    border-bottom-color: var(--ink);
    color: var(--ink);
  }

  .product-tabs__panel {
    max-width: 760px;
    color: var(--muted);
  }

  .product-tabs__panel[hidden] {
    display: none;
  }

  .product-tabs__panel > h2 {
    margin: 0 0 var(--space-4);
    color: var(--ink);
    font-size: var(--display-4);
  }

  .product-tabs__panel p {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
  }

  .product-details dl {
    display: grid;
    margin: 28px 0 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
  }

  .product-details dl > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--line);
    gap: var(--space-3);
  }

  .product-details dt {
    color: var(--ink);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
  }

  .product-details dd {
    margin: 0;
  }

  .related {
    margin-top: 30px;
  }

  .related > h2 {
    margin-bottom: 30px;
    font-size: var(--display-3);
  }

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

  .shop_table th {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--text-2xs);
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }

  .shop_table td {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
  }

  .shop_table .product-thumbnail img {
    width: 88px;
    height: 110px;
    background: var(--bone);
    object-fit: cover;
  }

  .shop_table .product-name a {
    font-size: 14px;
  }

  .shop_table .product-remove a {
    color: var(--oxblood);
    font-size: var(--text-xl);
  }

  .cart-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: var(--space-5) 0 56px;
    gap: var(--space-4);
  }

  .coupon {
    display: flex;
    gap: var(--space-2);
  }

  .coupon .input-text {
    max-width: 190px;
  }

  .cart-collaterals {
    display: flex;
    justify-content: flex-end;
  }

  .cart_totals {
    width: min(430px, 100%);
  }

  .cart_totals h2,
  .checkout-review__title {
    margin-bottom: 20px;
    font-size: 28px;
  }

  .cart_totals .shop_table td,
  .cart_totals .shop_table th {
    padding: 13px 0;
  }

  /* Shipping methods and the address calculator inside cart totals
     ---------------------------------------------------------------------- */

  .woocommerce-shipping-methods {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .woocommerce-shipping-methods li {
    margin: 0 0 6px;
  }

  .woocommerce-shipping-methods label {
    display: inline;
    font-size: 14px;
  }

  .woocommerce-shipping-destination {
    margin: var(--space-2) 0 0;
    color: var(--muted-soft);
    font-size: var(--text-sm);
  }

  .shipping-calculator-button {
    display: inline-block;
    margin-top: var(--space-2);
    padding-bottom: 2px;
    border-bottom: 1px solid currentcolor;
    color: var(--muted);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
  }

  /*
   * Collapsed until "Change address" is clicked. Woo's cart script slideToggles
   * this and writes inline styles, so it still opens; without this rule the
   * whole address form sits permanently inside the totals box.
   */
  .shipping-calculator-form {
    display: none;
    margin-top: var(--space-3);
  }

  .shipping-calculator-form .form-row {
    margin-bottom: var(--space-2);
  }

  .wc-proceed-to-checkout {
    margin-top: 22px;
  }

  .wc-proceed-to-checkout .button {
    width: 100%;
  }

  /* Checkout
     ---------------------------------------------------------------------- */

  .checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: clamp(38px, 7vw, 100px);
  }

  .checkout-layout h3 {
    margin: 0 0 22px;
    font-size: 28px;
  }

  .form-row {
    margin-bottom: var(--space-4);
  }

  /*
   * Password reveal. WooCommerce's script injects this button and its own
   * stylesheet positioned it with an icon-font glyph; both are gone, so the
   * theme supplies the placement and an inline SVG icon. Woo toggles
   * `.display-password` on the button and updates its (translated) aria-label.
   */
  .password-input {
    position: relative;
    display: block;
  }

  .show-password-input {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23%37%34%37%35%36%65' stroke-width='1.5'%3E%3Cpath d='M1.5 12S5 5.5 12 5.5 22.5 12 22.5 12 19 18.5 12 18.5 1.5 12 1.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
    cursor: pointer;
    transform: translateY(-50%);
  }

  .show-password-input.display-password {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23%30%63%30%64%30%63' stroke-width='1.5'%3E%3Cpath d='M1.5 12S5 5.5 12 5.5 22.5 12 22.5 12 19 18.5 12 18.5 1.5 12 1.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E");
  }

  .form-row label {
    margin-bottom: 7px;
    font-size: var(--text-2xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .checkout-review {
    padding: 26px;
    background: var(--bone);
  }

  .checkout-review table {
    margin-bottom: var(--space-5);
  }

  #payment ul.payment_methods {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #payment ul.payment_methods li {
    margin: 0 0 var(--space-3);
  }

  #payment div.payment_box {
    margin: 12px 0;
    padding: var(--space-3);
    background: rgb(255 255 255 / 56%);
    font-size: var(--text-sm);
  }

  /* My account
     ---------------------------------------------------------------------- */

  .account-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 70px;
  }

  .account-nav ul {
    display: grid;
    margin: 0;
    padding: 0;
    gap: var(--space-3);
    list-style: none;
  }

  .account-nav a {
    padding-bottom: 5px;
    color: var(--muted);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
  }

  .account-nav .is-active a {
    border-bottom: 1px solid var(--ink);
    color: var(--ink);
  }

  .account-content {
    max-width: 800px;
  }

  .woocommerce-account .woocommerce-products-header {
    margin: 0 0 34px;
  }

  .woocommerce-account .woocommerce-products-header h1 {
    color: var(--muted-soft);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: var(--leading-snug);
    text-transform: uppercase;
  }

  .account-content p {
    color: var(--muted);
  }

  .login-page--split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
  }

  .login-page h2 {
    margin: 0 0 20px;
    font-size: var(--display-2);
    letter-spacing: var(--tracking-display);
  }

  .login-card {
    padding: clamp(28px, 4vw, 46px);
    border: 1px solid var(--line);
    background: var(--bone);
  }

  .login-card .form-row {
    margin-bottom: var(--space-5);
  }

  /*
   * The remember-me row is a flex container in the template, so it needs no
   * clearfix suppression or float unwinding.
   */
  .login-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0 0;
    gap: 22px;
  }

  .login-card__remember {
    display: flex;
    align-items: center;
    margin: 0;
    color: var(--muted);
    font-size: var(--text-xs);
    gap: 9px;
    letter-spacing: var(--tracking-wide);
    order: 2;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .login-card__remember input {
    width: auto;
    min-height: 0;
  }

  .login-card__submit {
    flex: 0 0 188px;
    order: 1;
  }

  .lost_password {
    margin: 28px 0 0;
  }

  .lost_password a {
    display: inline-block;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--ink);
    font-size: var(--text-md);
  }

  /* Responsive
     ---------------------------------------------------------------------- */

  @media (width <= 900px) {
    ul.products {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-layout,
    .checkout-layout,
    .account-layout {
      grid-template-columns: 1fr;
      gap: 42px;
    }

    .product-layout__gallery,
    .product-layout__summary {
      grid-column: auto;
    }

    /* Only the summary is sticky; the gallery keeps `relative` so the sale
       flash stays anchored to it. */
    .product-layout__summary {
      position: static;
    }

    .checkout-review {
      grid-row: 1;
    }

    .account-nav ul {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-2) 20px;
    }

    .colour-card:nth-child(1) {
      grid-column: span 7;
    }

    .colour-card:nth-child(2) {
      padding-top: 44px;
      grid-column: span 5;
    }

    .colour-card:nth-child(3) {
      padding-top: 0;
      grid-column: 1 / span 5;
    }

    .colour-card:nth-child(4) {
      padding-top: 58px;
      grid-column: 6 / span 7;
    }
  }

  @media (width <= 620px) {
    ul.products {
      grid-template-columns: 1fr;
    }

    .catalog-bar select {
      width: 100%;
    }

    .product_title {
      font-size: 45px;
    }

    .variation-row {
      min-height: 0;
      grid-template-columns: 1fr;
      gap: 7px;
    }

    .product-tabs__list {
      overflow-x: auto;
      gap: var(--space-4);
    }

    .product-details dl,
    .product-details dl > div {
      grid-template-columns: 1fr;
      gap: 7px;
    }

    /*
     * Stack the cart line items. Scoped to the line-item table so the totals
     * and order-review tables stay as ordinary label/value pairs.
     */
    .woocommerce-cart-form__contents thead,
    .woocommerce-cart-form__contents .product-thumbnail {
      display: none;
    }

    .woocommerce-cart-form__contents tr {
      display: block;
      padding: var(--space-4) 0;
      border-bottom: 1px solid var(--line);
    }

    .woocommerce-cart-form__contents td {
      display: block;
      padding: var(--space-2) 0;
      border-bottom: 0;
    }

    /*
     * Row labels. The column headings are hidden when stacked, so each cell
     * names itself from the `data-title` WooCommerce already emits -- otherwise
     * price and subtotal are two unlabelled numbers. Woo's own stylesheet did
     * this; it is dequeued, so the theme does it here.
     */
    .woocommerce-cart-form__contents td[data-title]::before {
      display: block;
      margin-bottom: var(--space-1);
      color: var(--muted-soft);
      content: attr(data-title);
      font-size: var(--text-2xs);
      letter-spacing: var(--tracking-wide);
      text-transform: uppercase;
    }

    .cart-actions,
    .coupon {
      flex-wrap: wrap;
    }

    .coupon .input-text {
      max-width: none;
      flex: 1;
    }

    .notice-banner {
      flex-direction: column;
      align-items: flex-start;
    }

    .notice-banner .button {
      margin-left: 0;
    }

    .shop-intro {
      grid-template-columns: 1fr;
      margin-bottom: 42px;
    }

    .shop-intro h1 {
      font-size: clamp(48px, 14vw, 72px);
    }

    .colour-grid {
      grid-template-columns: 1fr;
    }

    .colour-card:nth-child(n) {
      padding-top: 0;
      grid-column: auto;
    }

    .colour-card__image img {
      min-height: 0;
      aspect-ratio: 4 / 5;
    }

    .login-page--split {
      grid-template-columns: 1fr;
    }

    .login-card {
      padding: 26px 22px;
    }

    .login-card__actions {
      flex-direction: column;
      align-items: stretch;
      gap: var(--space-4);
    }

    .login-card__remember {
      order: 1;
    }

    .login-card__submit {
      width: 100%;
      flex-basis: auto;
      order: 2;
    }
  }
}
