:root {
  color-scheme: light;
  --dark: #111111;
  --aqua: #86ebe4;
  --cream: #f7f5f0;
  --paper: #ffffff;
  --text: #444444;
  --muted: #6c6a66;
  --line: #e5e1da;
  --warn: #9d3a1f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  background: var(--cream);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.announcement {
  background: var(--aqua);
  color: var(--dark);
  text-align: center;
  font-family: "League Spartan", "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.announcement-track {
  padding: 13px 18px 12px;
}

.announcement a {
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding: 18px clamp(20px, 3vw, 34px);
  border-bottom: 1px solid #d8d8d8;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(320px, 42vw);
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  font-family: "League Spartan", "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  color: var(--dark);
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-color: var(--aqua);
}

.nav-cta {
  background: var(--dark);
  color: #fff !important;
  border: 2px solid var(--dark) !important;
  padding: 13px 20px;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px clamp(18px, 4vw, 56px) 64px;
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(34px, 7vw, 84px) clamp(18px, 5vw, 72px);
  background: var(--aqua);
  border-bottom: 4px solid var(--dark);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text);
}

h1,
h2,
h3 {
  font-family: "League Spartan", "DM Sans", sans-serif;
  letter-spacing: 0;
  color: inherit;
}

h1 {
  font-size: clamp(50px, 6.5vw, 84px);
  line-height: .82;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: .92;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h3 {
  font-size: 24px;
  line-height: .95;
  margin: 0;
  text-transform: uppercase;
}

p {
  color: var(--text);
  line-height: 1.6;
}

.lede {
  max-width: 560px;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 500;
}

.hero-actions,
.actions,
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

button,
.button {
  appearance: none;
  border: 2px solid var(--dark);
  background: var(--dark);
  color: #fff;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.secondary,
.button.secondary {
  background: transparent;
  color: var(--dark);
}

button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.hero-product-stage {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-product {
  display: block;
  background: #fff;
  border: 3px solid var(--dark);
  border-radius: 8px;
  box-shadow: 14px 14px 0 rgba(17, 17, 17, .18);
  object-fit: cover;
  object-position: center bottom;
}

.hero-product-main {
  width: min(420px, 72%);
  height: min(430px, 58vw);
  position: relative;
  z-index: 2;
}

.hero-product-side {
  width: min(220px, 34%);
  height: 300px;
  position: absolute;
  z-index: 1;
}

.hero-product-side.top {
  right: 0;
  top: 16px;
}

.hero-product-side.bottom {
  left: 0;
  bottom: 4px;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 4px solid var(--dark);
  background: var(--dark);
  color: #fff;
}

.brand-strip div {
  min-height: 104px;
  padding: 20px clamp(18px, 4vw, 44px);
  border-right: 1px solid #333;
}

.brand-strip div:last-child {
  border-right: 0;
}

.brand-strip span,
.brand-strip strong {
  display: block;
}

.brand-strip span {
  color: var(--aqua);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.brand-strip strong {
  margin-top: 8px;
  font-family: "League Spartan", sans-serif;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: .95;
  text-transform: uppercase;
}

.story-band {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(260px, .9fr) minmax(190px, .7fr);
  align-items: stretch;
  gap: 0;
  border-bottom: 4px solid var(--dark);
  background: #fff;
}

.story-band > div {
  padding: clamp(28px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-band img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.section-heading {
  margin-bottom: 18px;
}

.notice {
  border: 2px solid var(--dark);
  background: #fff;
  color: var(--dark);
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 6px 6px 0 rgba(134, 235, 228, .65);
}

.store-closed .shop-hero,
.store-closed .brand-strip,
.store-closed .story-band,
.store-closed .section-heading {
  display: none;
}

.store-closed .wrap {
  min-height: calc(100vh - 132px);
  display: grid;
  place-items: center;
  padding-top: clamp(54px, 8vw, 104px);
  padding-bottom: clamp(54px, 8vw, 104px);
}

.closed-panel {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(28px, 5vw, 58px);
  background: #fff;
  border: 3px solid var(--dark);
  border-radius: 8px;
  box-shadow: 12px 12px 0 rgba(134, 235, 228, .75);
}

.closed-panel h2 {
  font-size: clamp(44px, 7vw, 88px);
  line-height: .88;
  margin-bottom: 18px;
}

.closed-panel p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 auto 22px;
  font-size: 18px;
}

.closed-panel .hero-actions {
  justify-content: center;
}

.layout {
  display: block;
}

.catalog {
  display: grid;
  gap: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 18px;
}

.catalog-intro {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 0;
  padding: 0 0 8px;
  background: transparent;
  color: var(--dark);
  border-bottom: 2px solid var(--dark);
}

.catalog-intro p {
  color: var(--text);
  max-width: 520px;
  margin: 0;
}

.catalog-intro .eyebrow {
  color: var(--text);
}

.catalog-intro h2 {
  margin-bottom: 0;
}

.card {
  border: 2px solid var(--dark);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform .16s ease, box-shadow .16s ease;
}

.card:hover,
.card:focus-visible {
  box-shadow: 8px 8px 0 rgba(134, 235, 228, .7);
  outline: 0;
  transform: translate(-2px, -2px);
}

.product-media {
  position: relative;
  background: #f9f7f2;
  border-bottom: 2px solid var(--dark);
}

.product-media img,
.card > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-height: 28px;
  padding: 6px 9px 4px;
  border: 2px solid var(--dark);
  border-radius: 8px;
  background: var(--aqua);
  color: var(--dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gallery-controls {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 2px solid var(--dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  color: var(--dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-controls button {
  width: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 6px;
  font-size: 22px;
  line-height: 1;
}

.card-body {
  padding: 16px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.card-body > p:not(.meta) {
  display: -webkit-box;
  min-height: 76px;
  margin: 10px 0 14px;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 0;
  font-weight: 700;
}

.price {
  flex: 0 0 auto;
  font-weight: 900;
  color: var(--dark);
}

.sale-price {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: var(--warn);
}

.old-price {
  color: var(--muted);
  font-size: 13px;
  text-decoration: line-through;
}

.note-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 14px;
}

.note-row span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
}

.tag.warn {
  color: var(--warn);
  border-color: #e7bca9;
  background: #fff1ec;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 30px);
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, .72);
}

.product-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(860px, 92vh);
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(320px, 1.05fr);
  overflow: auto;
  background: #fff;
  border: 3px solid var(--dark);
  border-radius: 8px;
  box-shadow: 14px 14px 0 rgba(134, 235, 228, .8);
}

.product-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 8px;
  font-size: 26px;
  line-height: 1;
}

.product-modal-media {
  padding: clamp(16px, 3vw, 26px);
  background: #f9f7f2;
  border-right: 2px solid var(--dark);
}

.product-modal-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border: 2px solid var(--dark);
  border-radius: 8px;
  background: #fff;
}

.product-modal-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.product-modal-thumbs button {
  min-height: 0;
  padding: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.product-modal-thumbs button.active {
  box-shadow: 0 0 0 3px var(--aqua);
}

.product-modal-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.product-modal-copy {
  padding: clamp(22px, 4vw, 42px);
}

.product-modal-copy h2 {
  font-size: clamp(38px, 5vw, 66px);
}

.product-modal-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0;
}

.product-modal-size {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 800;
}

.product-modal-description {
  font-size: 17px;
  margin: 0 0 16px;
}

.product-modal-notes {
  margin: 0 0 24px;
}

.cart {
  border: 2px solid var(--dark);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 8px 8px 0 rgba(17, 17, 17, .1);
}

.cart-floating {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 80;
  width: min(340px, calc(100vw - 28px));
}

.cart-items {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 16px 0;
  padding: 12px 0;
}

.image-band {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  margin: 0 0 32px;
}

.image-band img,
.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border: 2px solid var(--dark);
  border-radius: 8px;
  display: block;
}

.table-wrap {
  overflow-x: auto;
  border: 2px solid var(--dark);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

th {
  color: var(--dark);
  font-weight: 900;
  background: var(--aqua);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
  background: #fff;
}

input,
select {
  min-height: 38px;
}

textarea {
  min-height: 92px;
  padding: 10px;
  resize: vertical;
}

.product-admin-cell {
  min-width: 360px;
}

.admin-product-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.admin-product-head img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid var(--dark);
  border-radius: 8px;
  background: var(--cream);
}

.admin-field {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  font-family: "League Spartan", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  margin: 0 0 16px;
}

.admin-product-list {
  display: grid;
  gap: 16px;
}

.admin-product-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 2px solid var(--dark);
  border-radius: 8px;
  background: #fff;
  box-shadow: 6px 6px 0 rgba(134, 235, 228, .55);
}

.admin-card-main {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 2px solid var(--dark);
  border-radius: 8px;
  background: var(--cream);
}

.admin-card-copy {
  min-width: 0;
}

.admin-title-row,
.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-title-row h3 {
  font-size: clamp(22px, 3vw, 34px);
}

.admin-quick-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.admin-details {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-details summary {
  cursor: pointer;
  font-family: "League Spartan", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-details summary:hover {
  color: var(--text);
}

.admin-card-actions {
  align-items: center;
  justify-content: flex-start;
}

.save-status {
  min-height: 26px;
}

.admin-access {
  display: grid;
  gap: 8px;
  max-width: 520px;
  margin: 0 0 18px;
  padding: 16px;
  border: 2px solid var(--dark);
  border-radius: 8px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--aqua);
}

.admin-access label {
  font-family: "League Spartan", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-access .row {
  gap: 10px;
}

.admin-access input {
  flex: 1 1 240px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.admin-tabs button {
  min-height: 42px;
  padding: 0 18px;
  border: 2px solid var(--dark);
  border-radius: 8px;
  background: #fff;
  color: var(--dark);
}

.admin-tabs button.active {
  background: var(--dark);
  color: #fff;
}

.orders-panel {
  border: 2px solid var(--dark);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.orders-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--cream);
}

.order-card ul {
  margin: 8px 0;
  padding-left: 20px;
}

@media (max-width: 980px) {
  .shop-hero,
  .layout,
  .story-band,
  .image-band {
    grid-template-columns: 1fr;
  }

  .hero-product-stage {
    min-height: 320px;
  }

  .hero-product-main {
    width: min(360px, 70vw);
    height: 300px;
  }

  .hero-product-side {
    width: min(190px, 32vw);
    height: 250px;
  }

  .story-band img {
    min-height: 220px;
  }

  .brand-strip {
    grid-template-columns: 1fr;
  }

  .brand-strip div {
    border-right: 0;
    border-bottom: 1px solid #333;
  }

  .cart-floating {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
  }

  .catalog-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-modal-panel {
    grid-template-columns: 1fr;
  }

  .product-modal-media {
    border-right: 0;
    border-bottom: 2px solid var(--dark);
  }
}

@media (max-width: 640px) {
  .announcement {
    font-size: 11px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    position: static;
  }

  .brand {
    width: min(290px, 84vw);
  }

  .nav {
    justify-content: flex-start;
    gap: 14px;
  }

  .shop-hero {
    padding-top: 30px;
  }

  .hero-product-side {
    display: none;
  }

  .hero-product-main {
    width: min(340px, 90%);
    height: 300px;
  }

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

  .product-modal {
    padding: 10px;
  }

  .product-modal-panel {
    max-height: 94vh;
  }

  .product-modal-copy {
    padding: 20px;
  }

  .product-modal-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-modal-copy .card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-floating {
    max-height: 52vh;
    overflow: auto;
  }

  .admin-toolbar,
  .admin-card-main,
  .admin-quick-grid {
    grid-template-columns: 1fr;
  }

  .admin-thumb {
    width: 100%;
    height: 180px;
  }
}
