/* Research-led polish layer for the Hip Discovery storefront.
   Loaded after merch.css and merch-cart.css so the existing purchase logic
   stays untouched while the visual hierarchy is upgraded. */
.merch-page{
  --shop-accent:#82ffff;
  --premium-bg:#04080b;
  --premium-panel:#081116;
  --premium-panel-2:#0b151b;
  --premium-text:#f5f8f9;
  --premium-muted:#9cadb3;
  --premium-dim:#6f8188;
  --premium-line:rgba(196,229,232,.14);
  --premium-line-strong:rgba(130,255,255,.34);
  --premium-radius:18px;
  background:
    radial-gradient(circle at 78% 0%,rgba(130,255,255,.08),transparent 34rem),
    radial-gradient(circle at 8% 34rem,rgba(130,255,255,.045),transparent 28rem),
    linear-gradient(180deg,#071015 0,#04080b 36rem,#04080b 100%);
  color:var(--premium-text);
}
.merch-page .merch-shell{max-width:1380px;padding-bottom:64px}

/* Editorial hero */
.merch-shop-head{
  min-height:470px;
  margin:26px 0 0;
  padding:clamp(42px,5vw,70px);
  grid-template-columns:minmax(310px,.8fr) minmax(520px,1.2fr);
  gap:clamp(34px,5vw,76px);
  overflow:hidden;
  border:1px solid rgba(130,255,255,.14);
  border-radius:28px;
  background:
    linear-gradient(90deg,rgba(6,15,20,.96) 0%,rgba(6,15,20,.9) 37%,rgba(6,15,20,.55) 58%,rgba(6,15,20,.15) 100%),
    radial-gradient(circle at 80% 35%,rgba(130,255,255,.16),transparent 34rem),
    #061015;
  box-shadow:0 30px 90px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.04);
}
.merch-shop-head::before{
  content:"";position:absolute;inset:auto -12% -48% 34%;height:80%;
  background:radial-gradient(ellipse at center,rgba(130,255,255,.1),transparent 66%);
  pointer-events:none;
}
.merch-hero-copy{max-width:560px}
.merch-hero-copy .merch-kicker{font-size:.68rem;letter-spacing:.19em;color:#a9ffff}
.merch-hero-copy .merch-kicker::before{width:46px;background:linear-gradient(90deg,#82ffff,rgba(130,255,255,0))}
.merch-shop-head h1{
  margin-top:14px;
  font-size:clamp(5.7rem,8.5vw,9rem);
  line-height:.76;
  letter-spacing:-.09em;
  text-wrap:balance;
}
.merch-shop-head p{
  max-width:500px;
  margin-top:28px;
  color:#becbd0;
  font-size:clamp(1rem,1.3vw,1.16rem);
  line-height:1.65;
  font-weight:600;
}
.merch-hero-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:28px}
.merch-hero-cta{
  min-height:50px;margin-top:0;padding:0 20px;
  border-color:#82ffff;border-radius:12px;
  background:#82ffff;color:#061115;
  font-size:.72rem;letter-spacing:.015em;
  box-shadow:0 12px 30px rgba(0,0,0,.18);
}
.merch-hero-cta span{color:#061115}
.merch-hero-cta:hover{background:#b8ffff;border-color:#b8ffff;color:#041013;transform:translateY(-2px)}
.merch-hero-count{color:#93a5ab;font-size:.68rem;font-weight:800;letter-spacing:.035em}

/* Hero product collage */
.merch-hero-showcase{
  height:360px;
  overflow:visible;
  border:0;border-radius:0;
  background:none;box-shadow:none;
}
.merch-hero-watermark{
  left:auto;right:-34px;top:-44px;
  color:rgba(255,255,255,.055);
  font-size:clamp(5rem,8vw,8rem);letter-spacing:-.075em;
  transform:rotate(90deg) translateX(100%);transform-origin:right top;
}
.merch-hero-tile{
  border:1px solid rgba(255,255,255,.28);
  border-radius:22px;
  background:linear-gradient(145deg,#edf2f3,#ced8db);
  box-shadow:0 26px 70px rgba(0,0,0,.35);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.merch-hero-tile:hover{border-color:rgba(130,255,255,.78);box-shadow:0 34px 90px rgba(0,0,0,.44)}
.merch-hero-tile-back{left:0;bottom:6px;width:33%;height:252px;transform:rotate(-5deg)}
.merch-hero-tile-back:hover{transform:rotate(-3deg) translateY(-4px)}
.merch-hero-tile-mid{right:0;top:9px;width:32%;height:270px;transform:rotate(5deg)}
.merch-hero-tile-mid:hover{transform:rotate(3deg) translateY(-4px)}
.merch-hero-tile-front{
  left:32%;top:-4px;width:39%;height:330px;
  border-color:rgba(130,255,255,.52);
  box-shadow:0 32px 90px rgba(0,0,0,.42),0 0 0 1px rgba(130,255,255,.08);
}
.merch-hero-tile-front:hover{transform:translateY(-5px)}
.merch-hero-garment{padding:8px;object-fit:contain}
.merch-hero-product-label{
  left:12px;bottom:12px;max-width:calc(100% - 24px);
  padding:8px 10px;border-color:rgba(255,255,255,.15);border-radius:9px;
  background:rgba(4,10,14,.88);color:#f6fbfc;
  font-size:.53rem;letter-spacing:.08em;
}
.merch-hero-rail{left:0;right:0;bottom:-26px;justify-content:center;color:#7d9097;font-size:.58rem;letter-spacing:.12em}

/* Trust strip: important costs and policies before product exploration. */
.merch-trust-rail{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  margin:18px 0 48px;
  border:1px solid var(--premium-line);border-radius:16px;
  background:rgba(8,17,22,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.merch-trust-item{display:grid;gap:5px;min-width:0;padding:18px 20px;position:relative}
.merch-trust-item+.merch-trust-item::before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:1px;background:var(--premium-line)}
.merch-trust-item span{color:#72858c;font-size:.56rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.merch-trust-item strong{color:#e9f2f4;font-size:.77rem;font-weight:850;line-height:1.3}

/* Catalog heading / filtering */
.merch-catalog{padding-top:0}
.merch-catalog-bar{
  align-items:center;
  padding:0 0 20px;
  border-top:0;border-bottom:1px solid var(--premium-line);
}
.merch-catalog-heading{align-items:flex-end;gap:15px}
.merch-section-kicker{font-size:.59rem;letter-spacing:.17em;color:#82ffff}
.merch-catalog-heading h2{margin-top:6px;font-size:clamp(2rem,3vw,2.8rem);letter-spacing:-.055em}
.merch-catalog-heading>span{padding-bottom:5px;color:#81939a;font-size:.7rem;font-weight:800}
.merch-catalog-meta{gap:14px}
.merch-lock-chip{color:#82949a;font-size:.61rem;letter-spacing:.1em}
.merch-bag-btn{
  min-height:42px;padding:0 15px;border-radius:11px;
  border-color:rgba(130,255,255,.42);background:rgba(130,255,255,.065);
  font-size:.66rem;letter-spacing:.035em;
}
.merch-bag-btn:hover{background:rgba(130,255,255,.13)}
.merch-bag-count{min-width:21px;height:21px;font-size:.6rem}
.merch-reset-filters{font-size:.66rem}
.merch-filter-stack{
  align-items:flex-start;justify-content:flex-start;gap:28px;
  padding:18px 0 26px;
}
.merch-filter-group{gap:11px}
.merch-filter-label{padding-top:11px;color:#71838a;font-size:.57rem;letter-spacing:.12em}
.merch-filter-row{gap:8px}
.merch-filter{
  min-height:40px;padding:0 14px;border:1px solid rgba(190,223,227,.16);
  border-radius:10px;background:#081116;color:#adbbc0;
  font:inherit;font-size:.66rem;font-weight:850;white-space:nowrap;cursor:pointer;
}
.merch-filter:hover{border-color:rgba(130,255,255,.45);color:#fff;background:#0b161c}
.merch-filter[aria-pressed="true"]{border-color:#82ffff;background:#82ffff;color:#061115}

/* Product grid: photo-first and less noisy. */
.merch-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 18px;grid-auto-rows:auto}
.merch-card{
  border-color:var(--premium-line);border-radius:18px;background:#071015;
  box-shadow:none;overflow:hidden;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.merch-card:hover{transform:translateY(-4px);border-color:rgba(130,255,255,.34);box-shadow:0 28px 70px rgba(0,0,0,.24)}
.merch-card-media{
  aspect-ratio:1/1;
  border-bottom-color:rgba(17,34,41,.12);
  background:
    radial-gradient(circle at 50% 22%,rgba(255,255,255,.88),transparent 35%),
    linear-gradient(145deg,#eef3f4,#cad5d8);
}
.merch-card-garment{filter:drop-shadow(0 18px 22px rgba(40,54,60,.13));transform:scale(1.01)}
.merch-card:hover .merch-card-garment{transform:scale(1.045)}
.merch-card-media>.merch-fit-badge{top:12px;left:12px}
.merch-fit-badge{
  min-height:26px;padding:0 9px;border-radius:999px;
  border-color:rgba(255,255,255,.18);background:rgba(4,10,14,.82);
  font-size:.51rem;letter-spacing:.1em;
}
.merch-card-media::before{
  content:"OFFICIAL";position:absolute;z-index:5;top:12px;right:12px;
  min-height:26px;display:grid;place-items:center;padding:0 9px;
  border:1px solid rgba(5,20,24,.12);border-radius:999px;
  background:rgba(245,251,251,.88);color:#10272d;
  font-size:.48rem;font-weight:950;letter-spacing:.1em;
}
.merch-card-body{min-height:0;padding:17px 17px 16px}
.merch-card-copy{display:grid;gap:9px}
.merch-card-title{min-height:2.35em;font-size:1.02rem;line-height:1.17;letter-spacing:-.026em}
.merch-card-pricing{margin-top:0;gap:3px}
.merch-card-price-row strong{font-size:1rem;color:#f7fbfb}
.merch-card-price-row span{color:#819299;font-size:.6rem;line-height:1.4}
.merch-card-meta{margin-top:2px;color:#819299;font-size:.59rem}
.merch-card-meta::before{content:"Official print";color:#9babb0;font-weight:800}
.merch-card-meta span:first-child{display:none}
.merch-card-meta span:last-child{margin-left:auto;color:#aab8bc;font-size:.6rem}
.merch-card-options:not(:has(button)){display:none}
.merch-card-options{min-height:auto;margin-top:14px;padding-top:13px}
.merch-customize-btn{
  min-height:44px;margin-top:16px;padding:0 13px;border-radius:10px;
  border-color:rgba(130,255,255,.27);background:rgba(130,255,255,.055);
  font-size:.66rem;letter-spacing:.01em;
}
.merch-customize-btn:hover{border-color:#82ffff;background:rgba(130,255,255,.12)}
.merch-card-media[data-image-error="true"]::after{font-size:.75rem;color:#455960}

/* Product details */
.merch-detail-dialog{
  width:min(1220px,calc(100vw - 36px));max-height:min(900px,calc(100dvh - 30px));
  border-color:rgba(130,255,255,.2);border-radius:24px;background:#061015;
  box-shadow:0 44px 130px rgba(0,0,0,.72);
}
.merch-detail-dialog::backdrop{background:rgba(0,3,5,.86);backdrop-filter:blur(12px)}
.merch-dialog-shell{grid-template-columns:minmax(0,1.05fr) minmax(410px,.95fr);max-height:min(900px,calc(100dvh - 30px))}
.merch-dialog-gallery{padding:24px;border-right-color:var(--premium-line);background:#071116}
.merch-detail-stage{
  aspect-ratio:1/1;max-height:none;
  border-radius:18px;border-color:rgba(17,42,49,.12);
  background:radial-gradient(circle at 50% 18%,rgba(255,255,255,.9),transparent 38%),linear-gradient(145deg,#edf2f3,#c8d4d8);
}
.merch-detail-stage>img:first-child{filter:drop-shadow(0 24px 28px rgba(37,51,57,.14))}
.merch-detail-view-label{left:14px;bottom:14px;padding:7px 10px;border-radius:999px;font-size:.56rem;letter-spacing:.04em}
.merch-dialog-copy{padding:42px clamp(32px,4vw,54px) 38px}
.merch-dialog-meta{gap:10px}
.merch-dialog-maker{color:#82939a;font-size:.62rem;letter-spacing:.1em}
.merch-dialog-copy h2{margin-top:12px;font-size:clamp(2.35rem,3.5vw,3.6rem);line-height:.92}
.merch-dialog-price-row{margin-top:18px;padding-bottom:18px}
.merch-dialog-price{font-size:1.25rem}
.merch-dialog-price-row>span{max-width:440px;color:#82949b;font-size:.61rem;line-height:1.55}
.merch-estimate{margin-top:14px;padding:14px 15px;border-radius:12px;background:#09141a}
.merch-estimate-row{padding:4px 0;font-size:.68rem}
.merch-estimate-row strong{font-size:.7rem}
.merch-estimate-total{margin-top:6px;padding-top:10px}
.merch-estimate-total strong{font-size:.9rem}
.merch-estimate-note{font-size:.58rem;line-height:1.55}
.merch-dialog-description{margin-top:18px;color:#aebcc1;font-size:.78rem;line-height:1.7}
.merch-detail-facts{gap:8px;margin-top:16px}
.merch-detail-facts span{padding:7px 9px;border-radius:9px;color:#95a6ac;font-size:.58rem}
.merch-detail-section{margin-top:24px}
.merch-detail-fixed{padding:14px 15px;border-radius:12px}
.merch-detail-fixed span{font-size:.58rem}.merch-detail-fixed strong{font-size:.68rem}
.merch-detail-control legend,.merch-detail-size-head>span{font-size:.68rem}
.merch-detail-size-head{margin-top:20px}
.merch-detail-size-head a{font-size:.59rem}
.merch-detail-options{gap:8px}
.merch-detail-option{min-width:52px;min-height:44px;padding:0 14px;border-radius:10px;font-size:.64rem}
.merch-detail-option[aria-pressed="true"]{border-color:#82ffff;background:#82ffff;color:#061115;box-shadow:none}
.merch-detail-service-grid{gap:10px;margin-top:24px}
.merch-detail-service{padding:13px 14px;border-radius:11px;background:#081319}
.merch-detail-service strong{font-size:.64rem}.merch-detail-service span,.merch-detail-service a{font-size:.56rem;line-height:1.55}
.merch-detail-status{margin-top:14px;padding:13px 14px;border-radius:11px}
.merch-detail-status strong{font-size:.64rem}.merch-detail-status span{font-size:.57rem;line-height:1.5}
.merch-checkout-btn{
  min-height:54px;margin-top:14px;border-radius:12px;border-color:#82ffff;
  background:#82ffff;color:#061115;font-size:.74rem;font-weight:950;letter-spacing:.015em;
  box-shadow:0 14px 34px rgba(0,0,0,.18);
}
.merch-checkout-btn:hover{background:#b8ffff;border-color:#b8ffff;transform:translateY(-1px)}

/* Bag drawer */
.merch-cart-dialog{width:min(520px,100vw);border-left-color:rgba(130,255,255,.2);background:#061015}
.merch-cart-head{padding:28px 26px 21px;border-bottom-color:var(--premium-line)}
.merch-cart-kicker{font-size:.59rem;letter-spacing:.16em}
.merch-cart-head h2{font-size:2.15rem}
.merch-cart-close{width:42px;height:42px;border-radius:12px}
.merch-cart-body{padding:0 26px}
.merch-cart-empty{min-height:320px}.merch-cart-empty strong{font-size:1rem}.merch-cart-empty span{font-size:.69rem}
.merch-cart-item{grid-template-columns:104px minmax(0,1fr);gap:16px;padding:20px 0}
.merch-cart-preview{width:104px;aspect-ratio:1/1;border-radius:12px}
.merch-cart-item-head strong{font-size:.78rem}.merch-cart-item-head>strong{font-size:.75rem}.merch-cart-item-head span{font-size:.57rem}
.merch-cart-item-actions{gap:14px}.merch-cart-qty{grid-template-columns:34px 34px 34px;height:34px}.merch-cart-qty button,.merch-cart-qty span{font-size:.68rem}
.merch-cart-links button{font-size:.58rem}
.merch-cart-summary{padding:20px 26px 26px;background:#071218;border-top-color:var(--premium-line)}
.merch-cart-total-row{font-size:.67rem}.merch-cart-total-row strong{font-size:.74rem}.merch-cart-total-row.is-total strong{font-size:1.04rem}
.merch-cart-estimate-note{font-size:.55rem;line-height:1.55}
.merch-cart-checkout{min-height:52px;border-radius:12px;font-size:.74rem}
.merch-cart-trust{font-size:.55rem;line-height:1.45}

/* Footer note */
.merch-shop-note{margin-top:38px;padding-top:18px;font-size:.61rem;color:#75878e}
