
/* ==========================================
   NEATLY CLIP MARKETPLACE
   File: css/shop.css
   Premium responsive storefront
========================================== */

.shop-page {
  background: #fff;
  color: #111;
}

.shop-page *,
.shop-page *::before,
.shop-page *::after {
  box-sizing: border-box;
}

.shop-page .shop-container {
  width: min(100% - 48px, 1360px);
  margin-inline: auto;
}

.shop-page .shop-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}

/* HERO */

.shop-page .shop-hero {
  display: flex;
  align-items: center;
  min-height: clamp(390px, 43vw, 650px);
  padding: 88px 24px;
  background: #080808;
  color: #fff;
  text-align: center;
}

.shop-page .shop-hero-inner {
  width: min(100%, 950px);
  margin: auto;
}

.shop-page .shop-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 6.2vw, 88px);
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: -.055em;
}

.shop-page .shop-hero-description {
  max-width: 640px;
  margin: 24px auto 30px;
  color: #d1d1d1;
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1.65;
}

.shop-page .shop-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #bbb;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}

/* CATALOG */

.shop-page .shop-catalog {
  padding: clamp(54px, 6vw, 96px) 0;
}

.shop-page .shop-catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.shop-page .shop-catalog-heading h2,
.shop-page .shop-promise h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.shop-page .shop-catalog-heading p:not(.shop-eyebrow) {
  margin: 0;
  color: #606060;
  font-size: 16px;
  line-height: 1.6;
}

.shop-page .shop-count {
  flex-shrink: 0;
  color: #686868;
  font-size: 14px;
}

/* TOOLBAR */

.shop-page .shop-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px 210px;
  gap: 12px;
  margin-bottom: 30px;
}

.shop-page .shop-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #fff;
}

.shop-page .shop-search i {
  color: #777;
}

.shop-page .shop-search input {
  width: 100%;
  min-width: 0;
  height: 50px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111;
  font: inherit;
}

.shop-page .shop-select-label select {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font: inherit;
  cursor: pointer;
}

.shop-page .shop-search:focus-within,
.shop-page select:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* PRODUCT GRID */

.shop-page .shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.shop-page .shop-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  background: #fff;
}

.shop-page .shop-product-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
  overflow: hidden;
}

.shop-page .shop-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}

@media (hover: hover) {
  .shop-page .shop-product:hover img {
    transform: scale(1.035);
  }
}

.shop-page .shop-product-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #aaa;
  font-size: 42px;
}

.shop-page .shop-product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.shop-page .shop-product-category {
  margin: 0 0 10px;
  color: #737373;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.shop-page .shop-product h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.shop-page .shop-product-description {
  margin: 0 0 18px;
  color: #606060;
  font-size: 14px;
  line-height: 1.65;
}

.shop-page .shop-product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-bottom: 20px;
}

.shop-page .shop-product-price {
  font-size: 20px;
  font-weight: 700;
}

.shop-page .shop-product-code {
  font-size: 12px;
  color: #777;
}

/* BUTTONS */

.shop-page .shop-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid #111;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.shop-page .shop-button-dark {
  background: #111;
  color: #fff;
}

.shop-page .shop-button-dark:hover {
  background: #333;
  color: #fff;
}

.shop-page .shop-button:focus-visible {
  outline: 3px solid #777;
  outline-offset: 3px;
}

/* STATUS AND EMPTY RESULTS */

.shop-page .shop-status {
  padding: 24px 0;
  color: #606060;
}

.shop-page .shop-status[hidden],
.shop-page .shop-empty[hidden] {
  display: none !important;
}

.shop-page .shop-empty {
  padding: 70px 20px;
  border-radius: 16px;
  background: #f7f7f7;
  text-align: center;
}

.shop-page .shop-empty > i {
  font-size: 32px;
  color: #777;
}

.shop-page .shop-empty h3 {
  margin: 18px 0 6px;
  font-size: 24px;
}

.shop-page .shop-empty p {
  margin: 0 0 24px;
  color: #666;
}

/* BRAND VALUES */

.shop-page .shop-promise {
  padding: 70px 0 86px;
  background: #f6f6f6;
  text-align: center;
}

.shop-page .shop-promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 38px;
}

.shop-page .shop-promise-grid article {
  padding: 24px;
}

.shop-page .shop-promise-grid i {
  font-size: 26px;
}

.shop-page .shop-promise-grid h3 {
  margin: 16px 0 8px;
  font-size: 19px;
}

.shop-page .shop-promise-grid p {
  max-width: 310px;
  margin: auto;
  color: #626262;
  font-size: 14px;
  line-height: 1.65;
}

/* ACCESSIBILITY */

.shop-page .shop-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* TABLET */

@media (max-width: 1000px) {
  .shop-page .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-page .shop-toolbar {
    grid-template-columns: minmax(0, 1fr) 180px 180px;
  }
}

/* MOBILE */

@media (max-width: 700px) {
  .shop-page .shop-container {
    width: min(100% - 32px, 1360px);
  }

  .shop-page .shop-hero {
    min-height: 430px;
    padding: 70px 20px;
  }

  .shop-page .shop-hero h1 {
    font-size: clamp(36px, 9vw, 56px);
  }

  .shop-page .shop-catalog-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .shop-page .shop-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-page .shop-search {
    grid-column: 1 / -1;
  }

  .shop-page .shop-grid {
    gap: 14px;
  }

  .shop-page .shop-product-body {
    padding: 17px;
  }

  .shop-page .shop-product h3 {
    font-size: 18px;
  }

  .shop-page .shop-product-meta {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .shop-page .shop-promise-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* SMALL MOBILE */

@media (max-width: 480px) {
  .shop-page .shop-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .shop-page .shop-toolbar {
    grid-template-columns: 1fr;
  }

  .shop-page .shop-search {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-page .shop-product-media img {
    transition: none;
  }

  .shop-page .shop-product:hover img {
    transform: none;
  }
}
