/* ==========================================================================
   Gearbox skin for Dawn pages: product, collection, cart, search, content,
   account, blog, 404. Loaded after gs-theme.css.
   ========================================================================== */

/* ---------- Global rhythm ---------- */
.page-width,
.page-width.page-width--narrow { padding-inline: var(--gs-gutter); }
.page-width--narrow { max-width: 92rem; }

::selection { background: var(--gs-blue); color: #fff; }
a { text-underline-offset: 0.25em; }
.rte a, .link { color: var(--gs-ink); }
.rte a:hover, .link:hover { color: var(--gs-blue); }
.rte { color: var(--gs-ink); line-height: 1.55; }

h1, .h1, .title, .main-page-title {
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  word-spacing: 0.06em;
}
.h0 { font-size: clamp(38px, 5.2vw, 72px); font-weight: 900; letter-spacing: -0.03em; }
h2, .h2 { font-size: clamp(26px, 3.2vw, 44px); font-weight: 900; letter-spacing: -0.025em; }
h3, .h3 { font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.015em; }

/* Section heading rule (like the mockup) */
.title-wrapper-with-link,
.related-products__heading,
.collection-list-title { position: relative; }
.related-products__heading {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 900;
}
.related-products__heading::after { content: ''; flex: 1; height: 1px; background: var(--gs-ink); margin-bottom: 8px; }
.related-products { padding-top: 24px; }

/* ---------- Buttons ---------- */
.button,
.button--primary,
.shopify-challenge__button,
.customer button,
.cart__checkout-button,
.product-form__submit {
  min-height: 52px;
  padding-inline: 28px;
  border-radius: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.button--secondary { color: var(--gs-ink); }
.button:not([disabled]):hover { background-color: var(--gs-blue-dark); }
.button--secondary:not([disabled]):hover { background-color: var(--gs-ink); color: #fff; }

/* ---------- Inputs ---------- */
.field__input,
.select__select,
.text-area,
.customer .field input,
.quantity {
  font-family: var(--gs-font);
  font-size: 16px;
  color: var(--gs-ink);
}
.field__label { font-size: 16px; letter-spacing: 0; color: var(--gs-muted); }
.field__input:focus-visible,
.select__select:focus-visible { outline-color: var(--gs-blue); }

/* ---------- Badges ---------- */
.badge {
  border-radius: 0;
  padding: 0.5rem 1rem;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
}

/* ---------- Prices ---------- */
.price { font-weight: 900; letter-spacing: -0.01em; color: var(--gs-ink); }
.price .price-item { font-weight: 900; }
.price--on-sale .price-item--sale { color: var(--gs-blue); }
.price .price__sale s, .price .price-item--regular { color: inherit; }
.price--on-sale .price-item--regular { font-weight: 500; color: var(--gs-muted); }

/* ==========================================================================
   Product cards (collection, search, related)
   ========================================================================== */
.card-wrapper { color: var(--gs-ink); }
.card__inner { background: #fff; }
.card .media > img,
.card__media .media > img { object-fit: contain; }
.card--standard > .card__content,
.card--card > .card__content { padding-top: 1.4rem; }
.card__heading,
.card__heading a {
  font-size: clamp(16px, 1.3vw, 18px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--gs-ink);
}
.card-information .price { font-size: clamp(17px, 1.5vw, 20px); }
.card-wrapper:hover .card__heading a { color: var(--gs-blue); text-decoration: none; }
.card-wrapper .card__inner { transition: box-shadow 0.15s ease; }
.card-wrapper:hover .card__inner { box-shadow: 0 0 0 2px var(--gs-blue); }
.card__badge .badge { position: relative; }
.quick-add__submit { min-height: 44px; }

/* ==========================================================================
   Collection page
   ========================================================================== */
.gs-collection-hero {
  padding-block-start: clamp(16px, 2.6vw, 36px);
}

.gs-collection-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.gs-collection-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: clamp(156px, 19vw, 248px);
  padding: clamp(16px, 3vw, 48px);
  border: 1px solid rgb(11 11 11 / 18%);
  border-inline-end: 0;
}

.gs-collection-hero__catalog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gs-blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.gs-collection-hero__catalog:hover { text-decoration: underline; }
.gs-collection-hero__catalog svg { width: 16px; height: 16px; transform: rotate(180deg); }

.gs-collection-hero__title {
  margin: 14px 0 0;
  font-size: clamp(36px, 7vw, 100px);
  letter-spacing: -0.05em;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.gs-collection-hero__description {
  max-width: 56ch;
  margin-block-start: 16px;
  color: var(--gs-muted);
  font-size: clamp(14px, 1.4vw, 17px);
}

.gs-collection-hero__description > :first-child { margin-top: 0; }
.gs-collection-hero__description > :last-child { margin-bottom: 0; }

.gs-collection-hero__art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgb(255 255 255 / 84%);
  background-color: var(--gs-blue);
  background-image:
    linear-gradient(rgb(255 255 255 / 14%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 14%) 1px, transparent 1px);
  background-size: 32px 32px;
}

.gs-collection-hero__art .gs-logo__mark {
  position: absolute;
  width: min(86%, 380px);
  height: auto;
  transform: translateX(12%) rotate(-20deg);
}

.gs-collection-hero__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gs-collection .facets-wrapper { margin-block: 0 18px; }
.gs-collection .facets-container {
  margin-block: 0;
  padding-block: 8px;
  border-block: 1px solid rgb(11 11 11 / 16%);
}

.gs-collection-grid {
  --grid-desktop-horizontal-spacing: 16px;
  --grid-desktop-vertical-spacing: 20px;
  --grid-mobile-horizontal-spacing: 10px;
  --grid-mobile-vertical-spacing: 12px;
}

.gs-collection-grid product-component { display: block; height: 100%; }

.gs-collection-grid .card {
  height: 100%;
  border: 1px solid rgb(11 11 11 / 18%);
  background: #fff;
}

.gs-collection-grid .card-wrapper:is(:hover, :focus-within) .card { border-color: var(--gs-blue); }

.gs-collection-grid .card .card__inner {
  min-height: 0;
  border: 0;
  background: #f0efeb;
}

.gs-collection-grid .card .card__inner::before { padding-bottom: min(var(--ratio-percent), 24rem); }
.gs-collection-grid .card .card__inner::after { box-shadow: none; }
.gs-collection-grid .card-wrapper:hover .card__inner { box-shadow: none; }
.gs-collection-grid .card__media .media > img { object-fit: contain; }

.gs-collection-grid .card .card__inner:not(:has(.card__media)) {
  background-image:
    radial-gradient(circle at center, transparent 7px, rgb(11 11 11 / 18%) 8px 9px, transparent 10px 17px,
      rgb(11 11 11 / 18%) 18px 19px, transparent 20px),
    linear-gradient(rgb(11 11 11 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(11 11 11 / 5%) 1px, transparent 1px);
  background-position: center;
  background-size: 100% 100%, 24px 24px, 24px 24px;
}

.gs-collection-grid .card > .card__content {
  padding: clamp(12px, 1.5vw, 20px);
  border-top: 1px solid rgb(11 11 11 / 12%);
}

.gs-collection-grid .card > .card__content .card__information { padding: 0; min-width: 0; }
.gs-collection-grid .card__heading a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  overflow-wrap: anywhere;
}

.gs-part-card__arrow {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--gs-blue);
}

.gs-part-card__arrow svg { width: 17px; height: 17px; }

.gs-part-card__sku {
  margin-block: 4px 0;
  color: var(--gs-muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.facets-container,
.facets-wrapper { margin-block: 20px 12px; }
.facets__summary,
.facets__heading,
.facet-filters__label,
.facet-filters__field .select__select { font-weight: 600; color: var(--gs-ink); }
.facets__display,
.facets__disclosure-vertical,
.facets__disclosure { border-radius: 0; border-color: var(--gs-line); }
.facets__summary { padding-block: 8px; }
.product-count { color: var(--gs-muted); font-weight: 500; }
.active-facets__button-inner,
.active-facets .facets__button { border-radius: 0; background: var(--gs-ink); color: #fff; }
.pagination__list .pagination__item { font-weight: 700; }
.pagination__item--current::after { background: var(--gs-blue); }

/* ==========================================================================
   Product page
   ========================================================================== */
.product__title,
.product__title h1 { margin-bottom: 8px; }
.product__title h1,
.product__title > h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1; font-weight: 900; }
.product__text.caption-with-letter-spacing {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gs-blue);
  text-transform: uppercase;
}
.product__info-container .price { font-size: clamp(26px, 2.6vw, 36px); }
.product__info-container .price__container { align-items: center; }
.product__tax { color: var(--gs-muted); }
.product__sku { color: var(--gs-muted); font-weight: 600; }

.product__media-wrapper .product-media-container,
.product__media-item .media { background: #fff; }
.product__media-list .product__media-item { border-radius: 0; }

.product-form__input .form__label,
.quantity__label { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gs-muted); }
.product-form__input input[type='radio'] + label { border-radius: 0; font-weight: 700; color: var(--gs-ink); }
.product-form__input input[type='radio']:checked + label { background: var(--gs-ink); color: #fff; border-color: var(--gs-ink); }
.product-form__input input[type='radio']:disabled + label { opacity: 0.45; }

.quantity { border-radius: 0; }
.quantity__button { color: var(--gs-ink); }

.product-form__submit { width: 100%; }
.shopify-payment-button__button--unbranded,
.shopify-payment-button .shopify-payment-button__button {
  border-radius: 0;
  min-height: 52px;
  font-weight: 700;
  font-size: 17px;
  background: var(--gs-ink);
  color: #fff;
}
.shopify-payment-button__button--unbranded:hover:not([disabled]) { background: #2a2a2a; }
.product__description { color: var(--gs-ink); }
.product-form__buttons { max-width: none; }

/* Accordions / collapsible tabs */
.accordion { border-color: var(--gs-line); }
.accordion summary { font-weight: 800; font-size: 18px; }

/* Perks block */
.gs-perks {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--gs-line);
}
.gs-perks__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(11, 11, 11, 0.18);
}
.gs-perks__icon { display: inline-flex; width: 28px; height: 28px; flex: none; color: var(--gs-blue); }
.gs-perks__icon svg { width: 100%; height: 100%; }
.gs-perks__text { display: grid; gap: 2px; color: var(--gs-ink); }
.gs-perks__text strong { font-weight: 800; font-size: 16px; }
.gs-perks__text span { color: var(--gs-muted); font-size: 14px; }

/* ==========================================================================
   Cart page + drawer
   ========================================================================== */
.title--primary,
.cart__warnings .cart__empty-text { color: var(--gs-ink); }
.cart .title-wrapper-with-link { border-bottom: 1px solid var(--gs-line); padding-bottom: 12px; }
.cart-items thead th,
.cart-items .caption-with-letter-spacing {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gs-muted);
}
.cart-items thead { border-bottom: 1px solid var(--gs-line); }
.cart-item { border-bottom: 1px solid rgba(11, 11, 11, 0.18); }
.cart-item__name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--gs-ink); text-decoration: none; }
.cart-item__name:hover { color: var(--gs-blue); }
.cart-item__media .cart-item__image { background: #fff; border: 1px solid var(--gs-line); }
.cart-item__totals .price { font-size: 20px; }

.cart__footer { border-top: 0; }
.totals { align-items: baseline; }
.totals__total { font-size: 16px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.totals__total-value { font-size: clamp(28px, 3vw, 40px); font-weight: 900; letter-spacing: -0.02em; color: var(--gs-ink); }
.tax-note { color: var(--gs-muted); }
.cart__ctas .button,
.cart__checkout-button { width: 100%; }

cart-drawer .drawer__inner,
.cart-notification { border-radius: 0; background: var(--gs-bg); border-left: 1px solid var(--gs-line); }
.drawer__heading { font-size: 28px; font-weight: 900; }
.drawer__header { border-bottom: 1px solid var(--gs-line); }
.drawer__footer { border-top: 1px solid var(--gs-line); }
.cart-drawer__overlay { background: rgba(11, 11, 11, 0.45); }

/* ==========================================================================
   Search
   ========================================================================== */
.template-search__header { padding-top: clamp(16px, 3vw, 40px); }
.template-search__search { max-width: 72rem; margin-inline: 0; }
.template-search__results { color: var(--gs-muted); }
.search__input,
.template-search .field__input { font-weight: 600; }

/* ==========================================================================
   Content pages, contact, blog
   ========================================================================== */
.main-page-title { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--gs-line); }
.page-width--narrow .rte { font-size: 18px; }
.contact .title,
.contact__heading { font-size: clamp(30px, 3.4vw, 48px); }
.contact__fields .field { margin-bottom: 12px; }

.blog-articles { margin-top: 12px; }
.article-card__title,
.article-card__title a { font-weight: 800; letter-spacing: -0.01em; color: var(--gs-ink); }
.card--article .card__inner { background: #fff; }
.article-template__title { font-size: clamp(34px, 4.4vw, 60px); font-weight: 900; }
.article-template__link { font-weight: 700; }

/* ==========================================================================
   404
   ========================================================================== */
.template-404 { text-align: left; padding-block: clamp(40px, 8vw, 120px); }
.template-404__code {
  margin: 0;
  font: 900 clamp(120px, 24vw, 320px) / 0.85 var(--gs-font);
  letter-spacing: -0.06em;
  color: var(--gs-blue);
}
.template-404__title { margin: 12px 0 28px; font-size: clamp(32px, 4.6vw, 64px); }

/* ==========================================================================
   Customer account
   ========================================================================== */
.customer { max-width: 62rem; }
.customer h1, .customer .customer__title { font-size: clamp(34px, 4vw, 56px); font-weight: 900; margin-bottom: 24px; }
.customer a { color: var(--gs-ink); font-weight: 600; }
.customer a:hover { color: var(--gs-blue); }
.customer table { border-collapse: collapse; }
.customer th { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gs-muted); }
.customer td, .customer th { border-color: rgba(11, 11, 11, 0.18); }
.order-details, .account__address { border: 1px solid var(--gs-line); padding: 20px; }

/* ==========================================================================
   Footer newsletter
   ========================================================================== */
.gs-footer__news { grid-column: 1 / -1; }
.gs-news__row { display: flex; border: 1px solid var(--gs-line); background: #fff; }
.gs-news__row input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  font: 500 16px/1 var(--gs-font);
  color: var(--gs-ink);
  outline-offset: -2px;
}
.gs-news__row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  border: 0;
  background: var(--gs-blue);
  color: #fff;
  cursor: pointer;
}
.gs-news__row button:hover { background: var(--gs-blue-dark); }
.gs-news__row button svg { width: 22px; height: 22px; }
.gs-news__msg { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--gs-blue); }
.gs-news__msg--error { color: #c4141c; }
@media screen and (min-width: 750px) {
  .gs-footer__news { grid-column: auto; }
}

/* ==========================================================================
   Password page
   ========================================================================== */
.password-main, .password-header { background: var(--gs-bg); }
.password__title, .password-main h1 { font-weight: 900; }

/* ==========================================================================
   Mobile polish
   ========================================================================== */
@media screen and (max-width: 749px) {
  .gs-collection-hero__layout { grid-template-columns: minmax(0, 1fr) minmax(72px, 28%); }
  .gs-collection-hero__art .gs-logo__mark { width: 145%; }
  .gs-part-card__arrow { width: 26px; height: 26px; }
  .gs-part-card__arrow svg { width: 14px; height: 14px; }
  .related-products__heading { font-size: 30px; }
  .template-404__code { font-size: 38vw; }
  .gs-perks__item { padding-block: 12px; }
}
