/* ==========================================================================
   MIRADERM — shop page
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shop hero
   -------------------------------------------------------------------------- */
.shop-hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 5vw;
  align-items: center;
  padding: 72px var(--gutter);
  background:
    radial-gradient(circle at 14% 14%, rgba(234, 208, 203, .8) 0, transparent 40%),
    var(--cream);
}
.shop-hero h1 {
  margin: 16px 0 26px;
  font-size: clamp(42px, 6vw, 96px);
  line-height: .92;
}
.shop-hero h1 em { color: var(--burgundy); }
.shop-hero-copy > p {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}
.shop-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.shop-hero-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.shop-hero-visual {
  position: relative;
  aspect-ratio: 1.15;
  border-radius: 180px 180px 22px 22px;
  overflow: hidden;
  background: var(--blush);
}
.shop-hero-visual img {
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.shop-hero-visual:hover img { transform: scale(1.05); }
.shop-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(41, 11, 19, .6));
}
.shop-hero-visual span {
  position: absolute;
  right: 26px; bottom: 22px;
  z-index: 2;
  color: #fff;
  text-align: right;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .2em;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Toolbar
   -------------------------------------------------------------------------- */
.shop-shell { padding: 66px var(--gutter) 110px; }

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.category-pills button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.category-pills button span { opacity: .5; margin-left: 7px; }
.category-pills button:hover,
.category-pills button.is-active {
  background: var(--burgundy-deep);
  border-color: var(--burgundy-deep);
  color: #fff;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 0 0 auto;
}
.toolbar-actions > button {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.toolbar-actions label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.toolbar-actions select {
  border: 0;
  background: transparent;
  margin-left: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  outline: 0;
  cursor: pointer;
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 38px;
  font-size: 13px;
  color: var(--muted);
}
.catalog-meta > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.catalog-meta i {
  width: 24px;
  height: 1px;
  background: var(--rose);
}

/* --------------------------------------------------------------------------
   Catalogue grid
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 18px;
}
/* the shop grid adds a description line, so it needs a grid — not the
   two-item flex row the homepage rail uses */
.product-grid .product-info {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  padding-top: 15px;
}
.product-grid .product-desc {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.no-results {
  display: none;
  text-align: center;
  padding: 100px 20px;
}
.no-results.is-shown { display: block; }
.no-results span {
  font-family: var(--serif);
  font-size: 90px;
  color: var(--blush);
  line-height: 1;
}
.no-results h2 { margin: 6px 0 8px; font-size: 44px; }
.no-results p { color: var(--muted); margin-bottom: 24px; }

/* --------------------------------------------------------------------------
   Editorial band
   -------------------------------------------------------------------------- */
.shop-editorial {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  min-height: 620px;
  background: var(--burgundy-deep);
  color: #fff;
}
.editorial-image img { height: 100%; object-fit: cover; }
.editorial-copy {
  padding: 8vw 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.editorial-copy h2 {
  margin: 16px 0 24px;
  font-size: clamp(38px, 5vw, 78px);
  line-height: .96;
}
.editorial-copy h2 em { color: var(--rose); }
.editorial-copy > p {
  color: rgba(255, 255, 255, .78);
  line-height: 1.8;
  margin-bottom: 30px;
}
.editorial-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Search overlay
   -------------------------------------------------------------------------- */
.search-overlay,
.quickview {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(35, 8, 15, .8);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
  display: grid;
  place-items: center;
  padding: 24px;
}
.search-overlay.is-open,
.quickview.is-open { opacity: 1; visibility: visible; }

.search-close {
  position: absolute;
  right: 30px; top: 22px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 38px;
  cursor: pointer;
}
.search-box {
  width: min(780px, 90vw);
  color: #fff;
}
.search-box small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--rose);
}
.search-box input {
  width: 100%;
  margin: 20px 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  background: transparent;
  color: #fff;
  padding: 16px 0;
  outline: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 46px);
}
.search-box input::placeholder { color: rgba(255, 255, 255, .35); }
.search-box p { color: rgba(255, 255, 255, .6); font-size: 13px; margin: 0; }

/* --------------------------------------------------------------------------
   Quick view
   -------------------------------------------------------------------------- */
.quickview-card {
  position: relative;
  width: min(960px, 94vw);
  max-height: 90vh;
  background: var(--paper);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.quickview-card > button {
  position: absolute;
  right: 16px; top: 10px;
  z-index: 3;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 34px;
  cursor: pointer;
}
.quickview-image { background: var(--blush); }
.quickview-image img { height: 100%; object-fit: cover; }
.quickview-copy {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.quickview-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.02;
}
.quickview-copy > p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 14px;
  margin: 0;
}
.qv-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0;
}
.qv-benefits span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.qv-bottom {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.qv-bottom strong { font-family: var(--serif); font-size: 30px; }
.quickview-copy .text-link { margin-top: 18px; align-self: flex-start; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-hero { grid-template-columns: 1fr; }
  .shop-hero-visual { aspect-ratio: 1.35; }
  .shop-editorial { grid-template-columns: 1fr; }
  .editorial-image { min-height: 320px; }
}

@media (max-width: 860px) {
  .shop-toolbar { flex-direction: column; align-items: flex-start; gap: 18px; }
  .toolbar-actions { width: 100%; justify-content: space-between; }
  .quickview-card { grid-template-columns: 1fr; overflow-y: auto; }
  .quickview-image { height: 38vh; }
  .quickview-copy { padding: 28px 22px; }
}

@media (max-width: 620px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 12px; }
  .product-grid .product-info { flex-direction: column; gap: 8px; }
  .product-grid .product-price { text-align: left; }
  .product-grid .product-desc { display: none; }
  .catalog-meta > div { display: none; }
  .category-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .category-pills::-webkit-scrollbar { display: none; }
  .category-pills button { flex: 0 0 auto; }
  .product-actions { transform: none; }
  .editorial-actions { flex-direction: column; align-items: stretch; }
}

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