.product-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-grid--featured {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .product-grid--featured {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .product-grid--featured {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.product-card__link {
  text-decoration: none;
  color: inherit;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__media {
  position: relative;
  aspect-ratio: 1;
  background: var(--color-taupe);
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-coming-soon {
  position: absolute;
  bottom: var(--space-sm);
  left: 50%;
  transform: translateX(-50%);
  background: #8fff84;
  color: #0d1f0a;
  font-size: calc(var(--font-size-xs) * 1);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: calc(var(--space-xs) * 1) calc(var(--space-sm) * 1);
  border-radius: var(--radius-sm);
  border: 1px solid #3d6040;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 1px 4px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  z-index: 2;
  max-width: calc(100% - var(--space-md));
  text-align: center;
  line-height: 1.25;
}

.media-coming-soon--compact {
  font-size: 0.65rem;
  padding: 2px 6px;
  letter-spacing: 0.1em;
  bottom: 4px;
  max-width: 94%;
}

.product-card__krew {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 3;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.product-card__krew--lady {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
  color: #880e4f;
  border: 1px solid rgba(136, 14, 79, 0.18);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.product-card__krew--plumber {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #0d47a1;
  border: 1px solid rgba(13, 71, 161, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.product-card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 3;
  background: var(--color-olive);
  color: var(--color-white);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

.product-card__badge--new {
  background: #9e1f2f;
  color: var(--color-white);
}

.product-card__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__type {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-olive);
  margin-bottom: var(--space-xs);
}

.product-card__title {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.product-card__price {
  font-weight: 700;
  font-size: var(--font-size-lg);
  margin-top: auto;
}

.product-card__cta {
  margin: 0 var(--space-md) var(--space-md);
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.filter-pill {
  font-family: var(--font-heading);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-sm) var(--space-md);
  border-radius: 999px;
  border: 2px solid var(--color-olive);
  background: transparent;
  color: var(--color-olive);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.filter-pill:hover,
.filter-pill.is-active {
  background: var(--color-olive);
  color: var(--color-white);
}

.sort-select {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-size: var(--font-size-sm);
  min-width: 12rem;
}

/* Full-bleed horizontal scroll: outer avoids vertical clipping from overflow-x on the flex row */
.section--collections {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-4xl);
}

.collections-scroll-outer {
  --_gutter: max(1.5rem, var(--space-lg));
  margin-left: calc(-1 * var(--_gutter));
  margin-right: calc(-1 * var(--_gutter));
  padding-left: var(--_gutter);
  padding-right: var(--_gutter);
  padding-bottom: var(--space-md);
}

.collections-scroll {
  display: flex;
  align-items: stretch;
  gap: var(--space-md);
  overflow-x: auto;
  overflow-y: visible;
  padding: var(--space-md) 0 calc(var(--space-2xl) + 6px);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-taupe) transparent;
}

.collections-scroll::-webkit-scrollbar {
  height: 8px;
}

.collections-scroll::-webkit-scrollbar-thumb {
  background: var(--color-taupe);
  border-radius: 4px;
}

.collections-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 4px;
}

.collection-card {
  flex: 0 0 min(280px, 85vw);
  scroll-snap-align: start;
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--color-olive);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.collection-card:nth-child(2) {
  border-left-color: var(--color-moss);
}

.collection-card:nth-child(3) {
  border-left-color: var(--color-taupe);
}

.collection-card:nth-child(4) {
  border-left-color: var(--color-deep-forest);
}

.collection-card--lady {
  border-left-color: #c77b9e !important;
}

.collection-card--lady .tagline {
  color: #c77b9e;
}

.collection-card--diesel {
  border-left-color: #1a1a1a !important;
}

.collection-card__subline {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #c77b9e;
  margin: calc(var(--space-sm) * -1) 0 var(--space-md);
  letter-spacing: 0.02em;
}

.collection-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.collection-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-xs);
}

.collection-card .tagline {
  font-size: var(--font-size-sm);
  color: var(--color-moss);
  margin-bottom: var(--space-lg);
}

.breadcrumb {
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-lg);
  color: var(--color-moss);
}

.breadcrumb a {
  color: var(--color-olive);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.product-detail {
  padding: var(--space-2xl) 0;
}

.product-detail__grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}

@media (min-width: 768px) {
  .product-detail__grid {
    grid-template-columns: 3fr 2fr;
  }
}

.product-detail__media {
  position: sticky;
  top: calc(var(--header-height) + var(--announcement-height, 2.5rem) + var(--space-md));
}

.product-detail__media-inner {
  position: relative;
  display: block;
}

.product-detail__media img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--color-taupe);
}

.gallery-thumbs {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.gallery-thumbs button {
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.gallery-thumbs button.is-active,
.gallery-thumbs button:hover {
  opacity: 1;
  border-color: var(--color-olive);
}

.gallery-thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.product-detail__badge {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-sand);
  color: var(--color-deep-forest);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.product-detail__type {
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-moss);
  margin-bottom: var(--space-sm);
}

.product-detail__title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
}

.product-detail__price {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-xl);
}

.option-label {
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: block;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.swatch:hover {
  transform: scale(1.06);
}

.swatch.is-selected {
  box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-olive);
}

.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.size-pill {
  min-width: 44px;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.size-pill:hover,
.size-pill.is-selected {
  background: var(--color-olive);
  border-color: var(--color-olive);
  color: var(--color-white);
}

.size-guide-link {
  font-size: var(--font-size-sm);
  color: var(--color-olive);
  text-decoration: underline;
  margin-bottom: var(--space-lg);
  display: inline-block;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.qty-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: var(--color-white);
  font-size: var(--font-size-xl);
  line-height: 1;
}

.qty-input {
  width: 3rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
}

.product-detail__shipping-note {
  font-size: var(--font-size-sm);
  color: var(--color-moss);
  margin-top: var(--space-md);
}

.accordion {
  margin-top: var(--space-2xl);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.accordion__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.accordion__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--font-size-md);
  text-align: left;
}

.accordion__icon {
  transition: transform 0.25s ease;
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(180deg);
}

.accordion__panel {
  display: none;
  padding-bottom: var(--space-lg);
  font-size: var(--font-size-sm);
  line-height: 1.65;
}

.accordion__item.is-open .accordion__panel {
  display: block;
}

.accordion__panel ul {
  list-style: disc;
  padding-left: var(--space-xl);
}

.accordion__panel li + li {
  margin-top: var(--space-xs);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal__box {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-card-hover);
}

.modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  line-height: 1;
}

.modal__close:hover {
  background: var(--color-sand);
}

.size-chart {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
  margin-top: var(--space-md);
}

.size-chart th,
.size-chart td {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: var(--space-sm) var(--space-md);
  text-align: left;
}

.size-chart th {
  background: var(--color-sand);
}

.empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
}

.empty-state p {
  color: var(--color-moss);
  margin: var(--space-md) 0 var(--space-xl);
}

.brands-story {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .brands-story {
    grid-template-columns: 1fr 1fr;
  }
}

.brands-story__media {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-off-white);
  min-height: 200px;
}

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

.brands-story__media:not(:has(img)) {
  background: var(--color-olive);
  opacity: 0.25;
}

.section--story {
  position: relative;
  z-index: 0;
}

.values-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background: var(--color-off-white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.value-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-black);
}

.value-card p {
  color: var(--color-deep-forest);
}

.cta-strip {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  background: var(--color-deep-forest);
  color: var(--color-white);
}

.cta-strip h2 {
  margin-bottom: var(--space-lg);
}
