/* ========================================================================== */
/* Kashish V4 — collection-page refinements                                   */
/* This layer is intentionally linked only from collection.html.              */
/* ========================================================================== */

body[data-page="collection"] {
  --plp-page-padding: var(--gutter);
}

/* Match the left edge of the header logo and the right edge of the bag icon. */
body[data-page="collection"] main > .shell {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--plp-page-padding);
}

/* A calmer title scale keeps collection imagery and navigation in the first view. */
body[data-page="collection"] .page-hero .display {
  font-size: clamp(2.8rem, 5.2vw, 5.5rem) !important;
  line-height: .94;
}

/* The compact Women campaign banner needs a correspondingly quieter heading. */
body[data-page="collection"][data-collection-handle="women"] .page-hero-women .display,
body[data-page="collection"][data-collection-handle="women"] .page-hero-women h1 {
  font-size: clamp(2.2rem, 3.7vw, 3.4rem) !important;
}

/* The editorial collection banner uses white copy over its campaign image. */
body.collection-women-variant .page-hero-women {
  color: #fff !important;
}

body.collection-women-variant .page-hero-women .eyebrow,
body.collection-women-variant .page-hero-women .display,
body.collection-women-variant .page-hero-women h1,
body.collection-women-variant .page-hero-women p,
body.collection-women-variant .page-hero-women > p:last-child {
  color: #fff !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}

body.collection-women-variant .page-hero-women::after {
  background: linear-gradient(90deg, rgba(7, 5, 4, .76), rgba(7, 5, 4, .42) 48%, rgba(7, 5, 4, .7)) !important;
}

/* Product imagery is the only hover interaction on the PLP. */
body[data-page="collection"] .collection-grid .product-gallery-controls,
body[data-page="collection"] .collection-grid .wishlist {
  display: none !important;
}

body[data-page="collection"] .collection-grid .product-gallery-image {
  opacity: 1;
  transition: opacity .22s ease;
}

body[data-page="collection"] .collection-grid .product-gallery-image.is-swapping {
  opacity: .72;
}

body[data-page="collection"] .collection-grid .product-media-wrap,
body[data-page="collection"] .collection-grid .product-media,
body[data-page="collection"] .collection-grid .product-gallery-image {
  cursor: pointer;
}

/* Retain the two useful shopping actions, but keep both visually quiet. */
body[data-page="collection"] .collection-grid .product-card-actions {
  display: grid !important;
}

body[data-page="collection"] .collection-grid .product-card-actions .quick-view,
body[data-page="collection"] .collection-grid .product-card-actions .quick-add {
  display: block !important;
  color: #0b0b0a !important;
  background: rgba(255, 255, 255, .97) !important;
  border: 1px solid #0b0b0a !important;
  box-shadow: none !important;
}

@media (min-width: 901px) {
  body[data-page="collection"] .collection-grid .product-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body[data-page="collection"] .collection-grid .product-card-actions .quick-view:hover,
body[data-page="collection"] .collection-grid .product-card-actions .quick-view:focus-visible,
body[data-page="collection"] .collection-grid .product-card-actions .quick-add:hover,
body[data-page="collection"] .collection-grid .product-card-actions .quick-add:focus-visible {
  color: #fff !important;
  background: #0b0b0a !important;
}

/* Keep every collection stamp quiet, graphic and legible over photography. */
body[data-page="collection"] .collection-grid .product-badge {
  color: #0b0b0a !important;
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid #0b0b0a !important;
  box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="collection"] .collection-grid .product-gallery-image {
    transition: none;
  }
}

@media (max-width: 680px) {
  body[data-page="collection"] {
    --plp-page-padding: var(--content-gutter, var(--gutter));
  }

  body[data-page="collection"] .page-hero .display {
    font-size: clamp(2.45rem, 11vw, 3.5rem) !important;
  }

  body[data-page="collection"][data-collection-handle="women"] .page-hero-women .display,
  body[data-page="collection"][data-collection-handle="women"] .page-hero-women h1 {
    font-size: clamp(2.05rem, 9vw, 2.4rem) !important;
  }
}
