@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=DM+Sans:wght@400;500;700&display=swap");
:root {
  --ink: #17211b;
  --paper: #f4f0e7;
  --lime: #c7f36b;
  --orange: #f26c3d;
  --line: #d5d1c8;
  --muted: #68716a;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
.button,
input,
select,
textarea {
  font: inherit;
}
.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
  padding: 24px 6vw;
  position: relative;
}
.brand {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}
.brand span {
  color: var(--orange);
}
.site-nav {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: flex-end;
}
.site-nav a {
  line-height: 1.3;
  white-space: nowrap;
}
.site-nav a:hover,
.site-footer a:hover {
  color: var(--orange);
}
.nav-toggle {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: none;
  height: 42px;
  padding: 10px 12px;
  width: 42px;
}
.nav-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 5px 0;
  width: 18px;
}
.cart-link b {
  background: var(--orange);
  border-radius: 50%;
  display: inline-grid;
  height: 23px;
  margin-left: 4px;
  place-items: center;
  width: 23px;
}
.cart-menu {
  position: relative;
}
.cart-menu summary {
  cursor: pointer;
  list-style: none;
}
.cart-menu summary::-webkit-details-marker {
  display: none;
}
.cart-dropdown {
  background: var(--white);
  border: 1px solid var(--line);
  min-width: 300px;
  padding: 20px;
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  z-index: 2;
}
.cart-dropdown .eyebrow {
  margin-top: 0;
}
.cart-dropdown ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.cart-dropdown li {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 12px 0;
}
.cart-dropdown li span,
.cart-dropdown li small {
  display: block;
}
.cart-dropdown li small {
  color: var(--muted);
  margin-top: 4px;
}
.cart-dropdown .notice {
  padding: 0 0 14px;
}
.hero {
  background: var(--lime);
  min-height: 520px;
  padding: 10vw 12vw;
  position: relative;
  overflow: hidden;
}
.hero:after {
  border: 1px solid var(--ink);
  border-radius: 50%;
  content: "";
  height: 520px;
  position: absolute;
  right: 4%;
  top: -230px;
  width: 520px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero h1,
.page-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(70px, 11vw, 150px);
  line-height: 0.82;
  margin: 18px 0;
  text-transform: uppercase;
}
.hero p:not(.eyebrow) {
  font-size: 18px;
  max-width: 430px;
}
.button {
  border: 0;
  cursor: pointer;
  display: inline-block;
  padding: 14px 20px;
}
.button-dark {
  background: var(--ink);
  color: var(--paper);
}
.button-orange {
  background: var(--orange);
  color: var(--white);
}
.section,
.page {
  padding: 75px 6vw;
}
.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-heading h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 60px;
  line-height: 0.8;
  margin: 12px 0;
  text-transform: uppercase;
}
.product-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, 1fr);
}
.category-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}
.category-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 26px;
}
.category-card img {
  aspect-ratio: 2 / 1;
  display: block;
  margin: -26px -26px 24px;
  object-fit: cover;
  width: calc(100% + 52px);
}
.category-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.category-card h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 42px;
  line-height: 0.9;
  margin: 8px 0;
  text-transform: uppercase;
}
.category-card p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 22px;
}
.category-card .button {
  align-self: start;
  margin-top: auto;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
}
.product-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 20px;
}
.product-card img {
  aspect-ratio: 1.25;
  display: block;
  object-fit: cover;
  width: 100%;
}
.product-card .eyebrow,
.product-card h2,
.product-card .product-price {
  margin-left: 20px;
  margin-right: 20px;
}
.product-card .eyebrow {
  margin-bottom: 0;
  margin-top: 20px;
}
.product-card h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 32px;
  line-height: 0.9;
  margin-bottom: 8px;
  margin-top: 6px;
  text-transform: uppercase;
}
.product-card .product-price {
  color: var(--muted);
  margin-bottom: 18px;
  margin-top: 0;
}
.product-card .button {
  align-self: flex-start;
  margin-left: 20px;
  margin-top: auto;
}
.product-meta,
.total-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
.price {
  font-weight: 700;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 25px 0;
}
.filters select,
.search-box input,
.form input,
.form select,
.form textarea {
  background: transparent;
  border: 1px solid var(--line);
  padding: 12px;
}
.search-box {
  display: flex;
  gap: 8px;
}
.search-box input {
  min-width: 260px;
}
.product-detail {
  display: grid;
  gap: 55px;
  grid-template-columns: 1.1fr 0.9fr;
}
.product-detail img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}
.product-detail h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 80px;
  line-height: 0.83;
  margin: 15px 0;
  text-transform: uppercase;
}
.detail-price {
  font-size: 24px;
  font-weight: 700;
}
.quantity {
  border: 1px solid var(--line);
  display: inline-flex;
  margin: 25px 0;
}
.quantity button {
  background: none;
  border: 0;
  padding: 12px 18px;
}
.quantity input {
  background: none;
  border: 0;
  text-align: center;
  width: 45px;
}
.add-to-cart-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.add-to-cart-form .quantity {
  margin: 0;
}
.cart-table {
  background: var(--white);
  border-collapse: collapse;
  width: 100%;
}
.cart-table th,
.cart-table td {
  border-bottom: 1px solid var(--line);
  padding: 18px;
  text-align: left;
}
.cart-summary {
  margin-left: auto;
  margin-top: 25px;
  max-width: 390px;
}
.total-row {
  border-top: 2px solid var(--ink);
  font-size: 20px;
  margin: 20px 0;
  padding-top: 16px;
}
.checkout-layout {
  display: grid;
  gap: 50px;
  grid-template-columns: 1fr 0.7fr;
}
.form {
  display: grid;
  gap: 16px;
  max-width: 600px;
}
.form label {
  display: grid;
  gap: 7px;
}
.form textarea {
  min-height: 110px;
}
.account-layout {
  display: grid;
  gap: 35px;
  grid-template-columns: 220px 1fr;
}
.account-nav {
  border-right: 1px solid var(--line);
  display: grid;
  align-content: start;
  gap: 4px;
  padding-right: 25px;
}
.account-nav a {
  padding: 12px;
}
.account-nav a:hover,
.account-nav .active {
  background: var(--lime);
}
.account-content {
  max-width: 800px;
}
.stat-grid,
.admin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.stat,
.admin-grid div {
  border-top: 4px solid var(--orange);
  padding: 18px 0;
}
.stat strong,
.stat span,
.admin-grid strong,
.admin-grid span {
  display: block;
}
.table {
  border-collapse: collapse;
  width: 100%;
}
.table td,
.table th {
  border-bottom: 1px solid var(--line);
  padding: 15px;
  text-align: left;
}
.site-footer {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 40px;
  justify-content: space-between;
  padding: 45px 6vw;
}
.site-footer div {
  display: flex;
  gap: 20px;
}
.notice {
  color: var(--muted);
  padding: 20px 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 25px;
}
.back-link {
  display: inline-block;
  margin-bottom: 25px;
}
@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: row;
    gap: 16px;
  }
  .site-nav {
    justify-content: flex-start;
    width: 100%;
  }
}
@media (max-width: 720px) {
  .site-header {
    align-items: center;
    gap: 16px;
    padding: 20px 18px;
  }
  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }
  .site-nav {
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 10px 25px rgba(23, 33, 27, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    left: 0px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 16px;
    pointer-events: none;
    position: absolute;
    right: 18px;
    top: calc(100% + 0px);
    transform: translateY(-6px);
    transition:
      max-height 0.28s ease,
      opacity 0.2s ease,
      padding 0.2s ease,
      transform 0.25s ease;
    z-index: 20;
  }
  .site-nav.is-open {
    max-height: 500px;
    opacity: 1;
    padding: 16px;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-nav a {
    font-size: 0.95rem;
    width: 100%;
  }
  .cart-dropdown {
    min-width: min(300px, calc(100vw - 30px));
    right: -10px;
  }
  .hero {
    min-height: 450px;
    padding: 75px 28px;
  }
  .hero h1,
  .page-title {
    font-size: 82px;
  }
  .section,
  .page {
    padding: 55px 20px;
  }
  .section-heading {
    align-items: start;
    display: block;
  }
  .product-grid,
  .category-grid,
  .product-detail,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-nav {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    display: flex;
    flex-wrap: wrap;
    padding: 0 0 15px;
  }
  .cart-table {
    font-size: 13px;
  }
  .cart-table th:nth-child(2),
  .cart-table td:nth-child(2) {
    display: none;
  }
  .site-footer {
    display: block;
  }
  .site-footer div {
    margin-top: 20px;
  }
  .stat-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .search-box input {
    min-width: 0;
    width: 100%;
  }
}
