.products-listing-page { background: #eff8ff; }
.products-listing-page .site-header-shell { font-family: "DM Sans", sans-serif; }

.products-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(42px, 5.2vw, 78px) clamp(20px, 4vw, 64px) clamp(56px, 6vw, 92px);
  color: #112f4b;
  background: #eff8ff;
  font-family: "DM Sans", sans-serif;
}

.products-heading { margin: 0 auto 26px; text-align: center; }
.products-heading h1 {
  margin: 0;
  color: #101b4d;
  font: 600 clamp(42px, 5vw, 68px)/1.04 "Cormorant Garamond", "Playfair Display", Georgia, serif;
  letter-spacing: -.035em;
}
.products-subheading {
  margin: 10px auto 0;
  max-width: 650px;
  color: #556788;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
}
.products-subheading strong {
  color: #101b4d;
}

/* Category Filter Pills */
.products-category-pills {
  width: min(100%, 1020px);
  margin: 0 auto clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid #dcd7fa;
  color: #24355a;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(110, 100, 190, 0.06);
  transition: all .2s ease;
}

.category-pill:hover {
  color: #e5007d;
  background: #ffffff;
  border-color: #f18eb8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 0, 125, 0.12);
}

.category-pill.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #e5007d 0%, #8f54ea 100%);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(229, 0, 125, 0.28);
  transform: translateY(-1px);
}


.products-search-form {
  width: min(100%, 700px);
  min-height: 62px;
  margin: 0 auto clamp(28px, 3vw, 42px);
  padding: 5px 7px 5px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #e4dcff;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(122, 114, 193, .12);
}

.products-search-form .products-search-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: #9b71f5;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.products-search-form input {
  min-width: 0;
  height: 48px;
  flex: 1;
  padding: 0 4px;
  color: #17234d;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
  font-size: 15px;
}

.products-search-form input::placeholder { color: #8190b4; opacity: 1; }
.products-search-form:focus-within { outline: 3px solid rgba(169, 130, 255, .24); }
.products-search-form button {
  min-width: 132px;
  min-height: 48px;
  padding: 0 24px;
  color: white;
  background: linear-gradient(105deg, #ff8dbb, #f47bac);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(245, 125, 177, .22);
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.products-search-form button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(245, 125, 177, .32); }
.products-search-form button:focus-visible { outline: 3px solid #a77cff; outline-offset: 3px; }

.products-page .product-grid {
  width: min(100%, 1500px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(14px, 1.5vw, 24px);
}

.products-page .product-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #111b50;
  background: rgba(255, 255, 255, .97);
  border: 1px solid #e5dcff;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(93, 115, 173, .10);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.products-page .product-card:hover {
  transform: translateY(-5px);
  border-color: #d9c9ff;
  box-shadow: 0 18px 38px rgba(117, 102, 179, .17);
}

.product-card__visual {
  position: relative;
  margin: 14px 14px 0;
  overflow: hidden;
  aspect-ratio: 1 / .94;
  background: linear-gradient(135deg, #f8e8ee, #edf4ff);
  border-radius: 17px;
}

.products-page .product-image {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
}

.products-page .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.products-page .product-card:hover .product-image img { transform: scale(1.035); }
.products-page .image-placeholder { font-size: clamp(56px, 7vw, 88px); }

.product-card__category {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 76px);
  padding: 9px 15px;
  overflow: hidden;
  color: #383080;
  background: rgba(240, 233, 255, .96);
  border: 1px solid rgba(214, 199, 255, .86);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-card__favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fa76a6;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(26, 35, 81, .12);
  cursor: pointer;
  transition: transform .18s ease, color .18s ease, background .18s ease;
}
.product-card__favorite svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-card__favorite:hover { transform: scale(1.08); }
.product-card__favorite.is-saved { color: #ed5c98; background: #fff0f6; }
.product-card__favorite.is-saved svg { fill: currentColor; }
.product-card__favorite:focus-visible,
.product-card__quantity button:focus-visible,
.product-card__add:focus-visible { outline: 3px solid #a67af3; outline-offset: 3px; }

.products-page .product-card-body {
  flex: 1;
  padding: 17px 18px 18px;
  display: flex;
  flex-direction: column;
}
.product-card h3,
.products-page .product-card h3,
.product-card-body h3 {
  min-height: 2.7em;
  margin: 0 0 14px;
  color: #111b50;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums proportional-nums;
}
.product-card h3 a,
.products-page .product-card h3 a,
.product-card-body h3 a {
  color: inherit;
  font-family: inherit !important;
  text-decoration: none;
}
.product-card h3 a:hover,
.products-page .product-card h3 a:hover,
.product-card-body h3 a:hover {
  color: #8c68db;
}

.product-card__purchase {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-card__price { color: #121d4c; font-size: 23px; font-weight: 700; }
.product-card__cart-form {
  display: grid;
  grid-template-columns: minmax(94px, .8fr) minmax(0, 1.2fr);
  align-items: stretch;
  gap: 10px;
}
.product-card__quantity {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(28px, 1fr) 34px minmax(28px, 1fr);
  align-items: center;
  color: #8d68e2;
  background: #fcfaff;
  border: 1px solid #e5dcff;
  border-radius: 12px;
  text-align: center;
}
.product-card__quantity button {
  height: 100%;
  padding: 0;
  color: #9164f3;
  background: transparent;
  border: 0;
  font-size: 21px;
  cursor: pointer;
}
.product-card__quantity button:disabled { color: #c9c2d8; cursor: default; }
.product-card__quantity output { color: #68769e; font-size: 14px; font-weight: 600; }
.product-card__add {
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  background: linear-gradient(105deg, #a77bf5, #ee80c2);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(183, 120, 219, .22);
  font: 600 14px "DM Sans", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.product-card__add svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.product-card__add:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(183, 120, 219, .34); }
.product-card__add:disabled { background: #b9b5c7; box-shadow: none; cursor: not-allowed; }

.products-page .empty-state {
  padding: 34px 24px;
  color: #111b50;
  background: white;
  border: 1px solid #e5dcff;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(93, 115, 173, .08);
  text-align: center;
}
.products-page .empty-state p { color: #657294; }
.saved-products-page .saved-products-intro { margin: 10px 0 0; color: #657294; }
.saved-products-page:not(.wishlist-ready) .saved-product-grid,
.saved-products-page:not(.wishlist-ready) .saved-empty { visibility: hidden; }
.saved-products-page .saved-product-grid .product-card[hidden],
.saved-products-page .saved-empty[hidden] { display: none !important; }
.saved-products-page .saved-empty:not([hidden]) { display: block; }

@media (max-width: 980px) {
  .products-page .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .product-card__visual { aspect-ratio: 1 / .9; }
  .products-page .product-card h3 { font-size: clamp(16px, 2.2vw, 19px); }
}

@media (max-width: 620px) {
  .products-page { padding: 40px 16px 58px; }
  .products-heading { margin-bottom: 21px; }
  .products-heading h1 { font-size: clamp(40px, 12vw, 54px); }
  .products-search-form { min-height: 56px; gap: 9px; margin-bottom: 24px; padding: 4px 5px 4px 14px; }
  .products-search-form .products-search-icon { width: 20px; height: 20px; }
  .products-search-form input { height: 44px; font-size: 13px; }
  .products-search-form button { min-width: 82px; min-height: 44px; padding: 0 15px; font-size: 13px; }
  .products-page .product-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .products-page .product-card { width: min(100%, 440px); margin-inline: auto; border-radius: 20px; }
  .product-card__visual { aspect-ratio: 1 / .86; margin: 12px 12px 0; }
  .products-page .product-card-body { padding: 16px; }
  .products-page .product-card h3 { min-height: 0; font-size: 18px; }
}

@media (max-width: 360px) {
  .product-card__cart-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .products-page .product-card,
  .products-page .product-image img,
  .product-card__favorite,
  .product-card__add,
  .products-search-form button { transition: none; }
}

/* Announcement scroll animation active on all pages */

.products-listing-page .site-footer { font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif; }
.products-listing-page .site-footer h3 { color: #14254d; }
.products-listing-page .site-footer h3,
.saved-products-page .site-footer h3 {
  color: #ffffff !important;
}

/* Smooth scroll & target highlight for category deep links */
html {
  scroll-behavior: smooth;
}

.product-card:target {
  outline: 3px solid #8f54ea !important;
  outline-offset: 4px;
  animation: productTargetPulse 2s ease-out;
}

@keyframes productTargetPulse {
  0% { transform: scale(1.04); box-shadow: 0 0 25px rgba(143, 84, 234, .45); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
