/*
Theme Name: Suay
Author: John Holdun
Author URI: https://johnholdun.com
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.0
Version: 1.1
Text Domain: suay
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

html {
  font: 16px/1.6 Helvetica, sans-serif;
}

body,
body.login {
  font: inherit;
  color: #000;
  letter-spacing: .5px;
  background: rgb(249, 248, 245);
  min-block-size: 100vh;
  margin: 0 auto;
  display: grid;
  grid-gap: 0;
  grid-template-rows:
    [pre-header] auto
    [header] 5.5rem
    [pre-main] auto
    [main] 1fr
    [footer] auto
    ;
  grid-template-columns:
    [fullbleed-start] 1fr [main-start] clamp(300px, 80vw, 130ch) [main-end] 1fr [fullbleed-end];
}

@media (max-width: 600px) {
  body,
  body.login {
    grid-template-columns:
    [fullbleed-start] 1rem [main-start] 1fr [main-end] 1rem [fullbleed-end];
  }
}

header {
  --height: 44px;

  grid-area: header / fullbleed;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  font-size: .75rem;
  font-family: commuters-sans, sans-serif;
  position: relative;
  z-index: 100;

  &:has(+ main > .fullbleed:first-child) {
    color: #4B8DFD;
  }

  @media (max-width: 960px) {
    position: fixed;
    color: inherit;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(249, 248, 245, .5);

    &:has(:popover-open) {
      background-color: #000;
      color: #fff;
    }
  }

  @media (min-width: 1200px) {
    padding-inline: 0;
    grid-area: header / main;
  }

  h1 {
    grid-row: 1;
    grid-column: 2;
    margin: 0 auto;
    font-size: inherit;
    width: 200px;
    height: 100%;
    background-color: currentColor;
    mask-image: url("/wp-content/themes/suay/logo.svg");
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: 99%;
    overflow: hidden;
    text-indent: -100vw;

    a {
      display: block;
      color: inherit;
      text-decoration: none;
      width: 100%;
      height: 100%;
    }
  }

  button.menu {
    border: 0;
    width: 3rem;
    height: 3rem;
    overflow: hidden;
    text-indent: -100vw;
    background-size: contain;
    cursor: pointer;
    display: none;
    color: inherit;
    background: none;

    svg {
      display: block;
      width: 100%;
      height: 100%;
    }

    @media (max-width: 960px) {
      display: block;
    }
  }

  .cart-icon {
    display: none;
    position: relative;

    @media (max-width: 960px) {
      display: flex;
      justify-content: flex-end;
    }

    a {
      display: block;
      width: 3rem;
      height: 3rem;
      text-decoration: none;
      color: inherit;

      svg {
        display: block;
        width: 100%;
        height: 100%;
      }

      .label {
        display: block;
        overflow: hidden;
        text-indent: -100vw;
      }

      .count {
        color: #fff;
        background-color: #000;
        width: 1.25rem;
        height: 1.25rem;
        line-height: 1.25rem;
        font-size: .5rem;
        text-align: center;
        position: absolute;
        right: -.25rem;
        top: -.25rem;
        border-radius: 50%;
        font-weight: bold;
      }
    }
  }

  .left {
    grid-row: 1;
    grid-column: 1;
    margin-inline: -.5rem;
    height: 100%;
    align-content: center;
  }

  .right {
    grid-row: 1;
    grid-column: 3;
    height: 100%;
    align-content: center;

    ul.nav {
      justify-content: flex-end;
    }
  }

  ul.nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;

    @media (max-width: 960px) {
      display: none;
    }

    li {
      display: block;
      height: var(--height);
      position: relative;
    }

    > li > a,
    label {
      display: block;
      text-decoration: none;
      line-height: 1rem;
      padding-block: calc((var(--height) - 1rem) / 2);
      padding-inline: .5rem;
      font-weight: bold;
      text-transform: uppercase;
      cursor: pointer;
      color: inherit;
    }

    form {
      position: relative;
    }

    input {
      border: 0;
      border-bottom: 1px solid currentColor;
      background-color: transparent;
      border-radius: 0;
      width: 10ch;
      padding-inline: 0;
    }

    input:not(:focus):not([value]) {
      pointer-events: none;
      opacity: 0;
      position: absolute;
    }

    form:has(input[type="search"]:is(:focus, [value])) label {
      display: none;
    }
  }

  ul.nav > li > a:hover,
  ul.nav > li:has(ul):hover {
    background-color: beige;
  }

  ul.nav-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    background-color: beige;
    display: none;
    min-width: 20ch;
    z-index: 100;
    padding: .5rem;

    a {
      display: block;
      text-decoration: none;
      padding: .5rem .5rem;
      text-transform: uppercase;
      border-radius: .25rem;

      &:hover {
        background-color: #E3D9CF;
      }
    }
  }

  ul.nav > li:hover ul.nav-submenu {
    display: block;
  }
}

#menu {
  position: fixed;
  background-color: #000;
  color: #fff;
  border: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  top: 4rem;
  height: calc(100dvh - 4rem);
  font-size: 1.5rem;
  line-height: 2rem;

  li {
    list-style: none;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  label {
    display: none;
  }

  input {
    color: inherit;
    background: none;
    font: inherit;
    border: 0;
    border-bottom: 1px solid transparent;
    padding: 0;

    &::placeholder {
      color: inherit;
    }

    &:focus {
      outline: 0;
      border-bottom-color: currentColor;

      &::placeholder {
        opacity: .5;
      }
    }
  }
}

nav.employee-bar {
  background: #fff;
  padding: 1rem;
  grid-area: pre-main / main;
  line-height: 1rem;
  border-radius: .25rem;
}

@media (min-width: 600px) {
  nav.employee-bar > div {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
  }
}

nav.employee-bar a {
  color: inherit;
  text-decoration: none;
}

main {
  grid-area: main / fullbleed;
  display: grid;
  grid-template-columns: subgrid;

  &:has(> .fullbleed:first-child) {
    grid-row: header / main;
  }

  > * {
    grid-column: main;
  }
}

main p {
  margin: 1rem 0;
}

main > img {
  display: block;
  max-width: 80%;
  margin-block: 2rem;
  height: auto;
}

main > h1 {
  margin-bottom: 1rem;
  color: rgb(40, 40, 40);
  text-transform: uppercase;
  text-wrap: balance;
}

summary {
  cursor: pointer;
}

.form-field {
  display: block;
  margin-block-end: 1rem;
}

.form-field label {
  display: block;
  cursor: pointer;
  padding-block-end: .25rem;
}

input, textarea {
  font: inherit;
  display: block;
  width: 100%;
  appearance: none;
  border-radius: .2rem;
  background-color: #fff;
  color: #111;
  padding: calc(.5rem - 1px) calc(1rem - 1px);
  line-height: 1rem;
  font-size: 1rem;
  border: 1px solid currentColor;
}

:is(input[type="checkbox"], input[type="radio"]) {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

:is(input[type="checkbox"], input[type="radio"]) + label:before {
  content: " ";
  display: inline-block;
  border: 1px solid currentColor;
  width: 1rem;
  height: 1rem;
  margin-right: .5rem;
  vertical-align: middle;
  line-height: 1rem;
  text-align: center;
  text-indent: .125rem;
}

:is(input[type="checkbox"], input[type="radio"]):checked + label:before {
  content: "✔";
}

fieldset.radio-buttons {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  flex-wrap: balance;
  border: 0;
  margin-block: 1rem;

  legend {
    display: block;
    text-transform: uppercase;
    font-size: .875rem;
  }

  input[type="radio"] {
    & + label {
      display: block;
      background-color: #fff;
      text-transform: uppercase;
      padding: .25rem;
      border: 2px solid currentColor;
      cursor: pointer;
      font-size: .875rem;

      &:before {
        display: none;
      }
    }

    &:checked + label {
      background-color: #000;
      border-color: #000;
      color: #fff;
    }
  }
}

select {
  font: inherit;
  display: block;
  width: 100%;
  appearance: none;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  border-radius: .2rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M12.707 14.707a1 1 0 0 1-1.414 0l-5-5a1 1 0 0 1 1.414-1.414L12 12.586l4.293-4.293a1 1 0 1 1 1.414 1.414l-5 5Z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center right;
  background-size: contain;
  background-color: #fff;
  color: #111;
  border: 0;
  padding: calc(.5rem - 1px) calc(2rem - 1px) calc(.5rem - 1px) calc(1rem - 1px);
  line-height: 1rem;
  font-size: 1rem;
  white-space: nowrap;
  border: 1px solid currentColor;
}

.btn, .button {
  display: block;
  width: fit-content;
  appearance: none;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  border-radius: .2rem;
  background-color: #111;
  color: #fff;
  padding: calc(.5rem - 1px) calc(1rem - 1px);
  line-height: 1rem;
  font-size: 1rem;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn[disabled] {
  opacity: .7;
  cursor: not-allowed;
}

.btn--inverted {
  background-color: #fff;
  color: #111;
  border-color: currentColor;
}

.btn--add-to-cart {
  width: 100%;
  margin-block: 1rem;
  text-transform: uppercase;
  font-size: 1.125rem;
  padding-block: .75rem;
}

.download-controls {
  display: flex;
  justify-content: flex-end;
  margin: -3rem 0 1rem;
}

.download-controls a {
  font-size: .75rem;
}

.download-controls a[disabled] {
  opacity: .8;
  font-style: italic;
  text-decoration: none;
  cursor: default;
}

form.search {
  background-color: #eee;
  padding: .5rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}

form.search > * {
  flex: 0 0 fit-content;
}

form.search input[type="search"] {
  max-width: 20ch;
}

form.search label {
  display: block;
  font-size: .75rem;
  line-height: 1rem;
  padding-bottom: .25rem;
}

form.search .btn--inverted {
  font-size: .75rem;
  padding: .5rem;
}

form.search .form-field {
  margin: 0;
}

ul.filter-errors {
  background-color: #892E30;
  color: #fff;
  padding: .5rem;
  white-space: nowrap;
}

table {
  width: 100%;
  margin-inline: -.5rem;
}

th {
  text-align: left;
  padding-inline: .5rem;
}

td {
  padding-inline: .5rem;
  white-space: nowrap;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

td:first-child a {
  color: inherit;
  white-space: nowrap;
  font-weight: bold;
  text-decoration: none;
}

.dye-bath-orders {
  margin-block: 1rem;
}

.dye-bath-orders a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
  padding-block: .5rem;
}

.dye-bath-orders .order-number {
  flex: 0 0 10ch;
}

.dye-bath-orders .customer-name {
  flex: 1 1 25%;
  text-align: left;
}

.dye-bath-items a {
  display: block;
  color: inherit;
  display: flex;
  text-decoration: none;
  justify-content: space-between;
  gap: 1rem;
  line-height: 3rem;
  padding-block: .5rem;
}

table img {
  display: block;
  width: 5rem;
  height: 5rem;
  object-fit: cover;
}

.dye-bath-item {
  border: 1px solid #999;
  padding: calc(1rem - 1px);
  margin: 1rem 0;
}

.pagination {
  display: flex;
  justify-content: stretch;
  align-items: center;
  gap: 1rem;
  font-size: .75rem;
}

.pagination > * {
  flex: 0 0 calc(20% - .8rem);
  text-align: center;
}

.pagination span {
  opacity: .7;
  font-style: italic;
  font-size: 1rem;
}

.pagination a {
  display: block;
  color: inherit;
  text-decoration: none;
  text-align: inherit;
  font-size: 1rem;
}

[data-date-filter] fieldset {
  position: absolute;
  background-color: #fff;
  padding: .5rem;
}

.dye-bath-form-line-item {
  border: 0;
  outline: 0;
  background-color: #eee;
  border-radius: .25rem;
  border: 1px solid #ddd;
  padding: 1rem;
  margin-bottom: 1rem;
  gap: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
}

.dye-bath-form-line-item .form-field {
  margin: 0;
  grid-column: 1 / span 2;
  display: grid;
  grid-template-columns: subgrid;
}

.dye-bath-form-line-item .form-field label {
  padding: 0;
  line-height: 1.5rem;
  align-self: center;
}

.dye-bath-form-line-item .form-field:has([data-remove-line-item]) {
  display: flex;
  justify-content: flex-end;
}

.dye-bath-form-result {
  display: none;
}

.dye-bath-form-result.visible {
  position: fixed;
  z-index: 999;
  background-color: #00000080;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-content: center;
}

.dye-bath-form-result-inner {
  background-color: #fff;
  text-align: center;
  padding: 1rem;
}

.dye-bath-form-result-inner p {
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.uploads-complete {
  background-color: #67DF3C;
  padding: 1rem;
  margin: 1rem 0;
}

header .user {
  position: relative;
}

.user-menu {
  position: absolute;
  background-color: #fff;
  color: #000;
  border: 1px solid currentColor;
  padding: calc(.5rem - 1px);
  right: 0;
}

.user-menu a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  padding: .5rem;
}

dialog {
  padding: 2rem;
  align-self: center;
  margin: 2rem auto;
}

.label-option {
  margin-bottom: 2rem;
}

.label-option div {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.label-option div + div {
  margin-top: .5rem;
}

.label-option + .label-option {
  padding-top: calc(2rem - 2px);
  border-top: 2px solid currentColor;
  margin-bottom: 2rem;
}

.order-actions {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.order-actions > .btn {
  flex: 0 0 auto;
}

.order-actions-appendix {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.card {
  margin: 1rem 0;
  padding: 1rem;
  background-color: #fff;
  box-shadow: 1px 1px 1px #00000030;
  border-radius: .5rem;
}

.card > *:last-child,
.card > *:last-child > *:last-child {
  margin-bottom: 0;
}

.item a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1rem 0;
}

.items .item:not(:last-child) {
  border-bottom: 2px solid currentColor;
}

.item .index {
  font-size: 1.5rem;
  line-height: 1.5rem;
  font-weight: bold;
  margin-bottom: .5rem;
}

.item .note {
  white-space: pre-wrap;
  font-weight: bold;
}

.item .photo {
  max-width: 500px;

  img {
    width: 100%;
    height: auto;
    max-width: 80vw;
  }
}

.card .notes {
  white-space: pre-wrap;
  font-weight: bold;
  border: 2px solid currentColor;
  padding: .5rem 0;
  border-width: 2px 0;
  margin: .5rem 0;
}

body.login {
  display: flex;
  flex-direction: row;
}

body.login h1 {
  background-color: rgb(40, 40, 40);
  color: rgb(249, 248, 245);
}

body.login #login {
  padding: 1rem;
  margin: 0;
  width: 100%;
}

body.login h1 {
  padding: 1rem;
  margin: -1rem -1rem 2rem;
}

body.login h1 a {
  background: url("https://suayla.com/cdn/shop/files/suay.png?v=1713129896&amp;width=600");
  display: block;
  width: 100%;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  height: 3.5rem;
}

body.login #login > *:not(h1) {
  margin: 2rem auto;
  max-width: 500px;
}

#backtoblog {
  display: none;
}

aside.current-user {
  background-color: #fff;
  border: 1px solid currentColor;
  border-radius: .125rem;
  padding: calc(1rem - 1px);
  text-align: center;
  margin: 1rem 0;
}

aside.current-user strong {
  display: inline-block;
  white-space: nowrap;
  max-width: calc(100% - .5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

a {
  color: #282828;
  text-underline-offset: .3rem;
  text-decoration-thickness: .1rem;
}

.customer-order {
  margin-top: 2rem;
  border-top: 2px solid currentColor;
  padding-top: calc(2rem - 2px);
}

.customer-order h2,
.customer-order p {
  margin: 0 0 .5rem;
}

.customer-order details {
  margin-top: .5rem;
}

.customer-order summary {
  display: block;
  line-height: 1.5rem;
  -webkit-user-select: none;
  user-select: none;
}

.customer-order details[open] summary {
  margin-bottom: .25rem;
}

.customer-order input[type="file"] {
  max-width: 20rem;
}

.customer-order .btn {
  margin-top: 1rem;
}

.customer-order details[open] + figure {
  display: none;
}

.customer-order img {
  display: block;
  width: auto;
  max-height: 50vh;
  margin: 0;
}

dropdown-filter [data-filter] {
  --max-height: 100vh;
  position: absolute;

  z-index: 1000;

  width: max-content;
  max-width: 50vw;
  top: 0;
  left: 0;
  background-color: #fff;
  border: 1px solid currentColor;
  border-radius: 1rem;
  box-shadow: .25rem .25rem .25rem #00000030;
  padding: calc(1rem - 1px) calc(1rem - 1px);
  overflow: auto;
  max-height: calc(var(--max-height) - 2rem);
  transform: translateY(0.5rem);
}

dropdown-filter button {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: calc(2rem - 1px) !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M12.707 14.707a1 1 0 0 1-1.414 0l-5-5a1 1 0 0 1 1.414-1.414L12 12.586l4.293-4.293a1 1 0 1 1 1.414 1.414l-5 5Z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center right;
}

.dropdown-filter-section-header {
  color: #333;
  font-weight: bold;
  font-size: .75rem;
  padding: .25rem 0;
}

.dropdown-filter-section-header:first-child {
  padding-top: 0;
}

.order-emails > div:not(:last-child) {
  padding-bottom: 1rem;
  border-bottom: .125rem solid currentColor;
  margin-bottom: 1rem;
}

.product-categories {
  margin-block: 1rem;
  font-size: .875rem;
  line-height: 1.2rem;

  a {
    text-decoration: none;
  }

  a + a:before {
    content: " > ";
  }
}

.single-product-details {
  display: flex;
  gap: 1rem;

  @media (max-width: 800px) {
    flex-direction: column;
  }

  image-gallery {
    display: grid;
    flex: 1 0 60%;
    position: relative;

    @media (max-width: 800px) {
      flex: 1 1 auto;
    }

    img {
      grid-row: 1;
      grid-column: 1;
      display: block;
      width: 100%;
      height: auto;
      transition: opacity .1s linear;

      &[hidden] {
        opacity: 0;
        pointer-events: none;
      }
    }

    button {
      position: absolute;
      top: 0;
      height: 100%;
      opacity: 0;
      cursor: pointer;
      padding-inline: 1rem;
      background: none;
      border: 0;
      font: inherit;

      &:hover {
        opacity: 1;
      }

      &[data-direction="-1"] {
        left: 0;
        width: 30%;
        text-align: left;
      }

      &[data-direction="1"] {
        left: 30%;
        width: 70%;
        text-align: right;
      }
    }
  }

  .detail-bullets {
    margin-block: 1rem;
    list-style-position: inside;
  }

  .fun-fact {
    background-color: #fdf630;
    padding: 5px;
    border-radius: 1px;
    text-align: center;
    font-size: 17.5px;
    color: #000;
    line-height: 27px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-block: 1rem;
  }

  h2, summary {
    font-weight: normal;
    font-size: inherit;
    text-transform: uppercase;
    margin-block: 1rem;
  }
}

.products {
  --columns: 4;
  display: grid;
  grid-template-columns: repeat(var(--columns), 1fr);
  grid-gap: 4rem;

  @media (max-width: 800px) {
    grid-template-columns: 1fr;
  }

  > div {
    position: relative;
  }

  &.small {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;

    > div {
      flex-basis: 200px;
    }
  }

  a {
    display: block;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .875rem;
    font-weight: bold;
  }

  img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: opacity .1s linear;

    + img {
      position: absolute;
      left: 0;
      top: 0;
      opacity: 0;
    }
  }

  a:hover img + img {
    opacity: 1;
  }

  .details {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-block-start: .25rem;

    > *:first-child {
      padding-inline-end: 1rem;
    }
  }
}

.woocommerce-pagination .page-numbers {
  list-style: none;
  display: flex;
  margin-block: 1rem;
  gap: .5rem;
  justify-content: center;
}

.wp-block-paragraph > img {
  max-width: 100%;
  height: auto;
}

.wp-block-paragraph.has-text-align-center .btn:only-child {
  margin-inline: auto;
}

.wp-block-details {
  margin-block: 2rem;
  border-block: 1px solid currentColor;
  padding-block: 1rem;
  max-width: 40vw;
  margin-inline: auto;
  display: block;
  position: relative;

  &:after {
    content: " ";
    transform-origin: center center;
    transform: translateY(0) rotate(45deg);
    position: absolute;
    right: .25rem;
    width: .75rem;
    height: .75rem;
    border: 1px solid currentColor;
    border-width: 0 1px 1px 0;
    top: 1rem;
    line-height: 1.2rem;
    transition: .1s linear transform;
  }

  &[open]:after {
    transform: translateY(.5rem) rotate(-135deg);
  }

  summary {
    font-size: 1.2rem;
    text-transform: uppercase;
    list-style: none;
    padding-right: 3rem;
  }

  &:has(+ &) {
    margin-bottom: 0;
  }

  & + & {
    margin-top: 0;
    border-top: 0;
  }
}

footer {
  grid-column: fullbleed;
  grid-row: footer;
  display: grid;
  grid-template-columns: subgrid;
  background-color: #282828;
  color: #fff;
  padding-block: 3rem;

  @media (max-width: 800px) {
    padding-block: 1rem;
  }

  .inner {
    grid-column: main;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-gap: 3rem;

    @media (max-width: 800px) {
      grid-template-columns: 1fr;
      grid-gap: 1rem;
    }
  }

  img {
    display: block;
    width: 80%;
    height: auto;

    @media (max-width: 800px) {
      width: 200px;
    }
  }

  ul {
    list-style-type: none;
    columns: 2;
  }

  a {
    color: inherit;
    display: block;
    width: fit-content;
    text-decoration: none;
    font-size: .875rem;
    line-height: 1;
    padding-block: .125rem;
  }

  label {
    display: block;
    margin: 0;
    padding: 0;
  }

  input {
    display: block;
    margin-block: .5rem;
  }

  input, button.btn {
    color: inherit;
    border: 1px solid currentColor;
    background-color: transparent;
  }
}

.dye-bath-colors {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  flex-wrap: wrap;
  flex-wrap: balance;
  text-transform: uppercase;
  margin-block: 2rem;

  > * {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-width: 200px;
  }

  img {
    display: block;
    width: 200px;
    height: 200px;
  }
}

.pdp-swatch {
  width: 2rem;
  height: 2rem;

  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

[data-swatch-title] {
  opacity: .7;
}

.dye-bath-banner {
  grid-column: fullbleed;

  a {
    display: block;
    position: relative;
    min-height: 500px;
    color: #fff;
    text-decoration: none;
  }

  img {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  img.wide {
    display: none;
  }

  @media (min-width: 750px) {
    img.wide {
      display: block;
    }

    img.narrow {
      display: none;
    }
  }

  strong {
    position: absolute;
    bottom: 1vw;
    left: 1vw;
    right: 1vw;
    display: flex;
    justify-content: space-between;
    z-index: 3;
    font-size: clamp(1.25rem, 4vw, 2.1875rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    text-decoration: underline;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
  }
}

.product-carousel {
  margin-block: 3rem;

  h2 {
    text-transform: uppercase;
    margin-block-end: 1rem;
  }
}

.suay-banner {
  grid-area: pre-header / fullbleed;
  background-color: #CBEB43;
  color: #1E2124;
  font-family: commuters-sans, sans-serif;
  text-align: center;
  padding: .5rem;
  font-weight: 700;
  text-transform: uppercase;

  a {
    display: block;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
      text-decoration-thickness: 1px;
    }

    &:after {
      content: " ";
      display: inline-block;
      width: 1rem;
      height: 1rem;
      vertical-align: middle;
      transform: translateY(-.125rem);
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 14 10'%3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M8.537.808a.5.5 0 0 1 .817-.162l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 1 1-.708-.708L11.793 5.5H1a.5.5 0 0 1 0-1h10.793L8.646 1.354a.5.5 0 0 1-.109-.546'/%3E%3C/svg%3E") no-repeat center center;
    }
  }
}

figure.fullbleed {
  height: 100dvh;
  grid-column: fullbleed;

  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  &.hero-cta {
    position: relative;

    figcaption {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      display: grid;
      place-items: center;

      > div {
        background-color: rgb(249, 248, 245);
        padding: 1rem;
        text-align: center;
        text-transform: uppercase;
        max-width: 70ch;
      }

      h2 {
        font-family: commuters-sans, sans-serif;
        text-wrap: balance;
      }

      p {
        text-wrap: balance;
      }

      .btn {
        display: block;
        margin-inline: auto;
      }
    }
  }
}

.tnp form {
  background-color: #fff;
  padding: 1rem;
  border: 1px solid currentColor;
}
