/* =========================================================
   ANGEOLOGY — shop.css (loads after style.css)
   ========================================================= */

/* ---------- hero ---------- */
.shop-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center;
  max-width: 1320px; margin: 0 auto; padding: 130px var(--gutter) 40px;
}
.shop-hero > *:not(.wave) { position: relative; z-index: 2; }
.shop-title {
  margin: 0 0 26px; font-family: var(--serif); font-weight: 400; line-height: 1.2; letter-spacing: -.025em;
  font-size: clamp(76px, 11vw, 190px);
}
.shop-title .hl-in { display: inline-block; }
.shop-title .script { font-size: 1.1em; padding: 0 .1em; }
.sh-sub { margin: 0 0 26px; max-width: 30em; font-size: 17px; }
.sh-promises { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 26px; }
.sh-promises li { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--rose-ink); }
.sh-promises li::before { content: "♡"; color: var(--rose); }

.sh-collage { position: relative; min-height: 520px; }
.pol-shop { width: 54%; margin: 40px 0 0 2%; rotate: -5deg; }
.new-note {
  position: absolute; right: 0; bottom: 30px; width: 44%; padding: 26px 26px 24px; rotate: 4deg; z-index: 3;
  background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(169, 76, 100, .18) 31px 32px) 0 70px / 100% 100% no-repeat, var(--petal);
  box-shadow: 0 30px 50px -28px rgba(169, 76, 100, .55);
}
.new-note p { margin: 0 0 12px; font-size: 14px; line-height: 32px; }
.new-note .new-title { font-family: var(--script); font-size: 46px; line-height: 1; color: var(--rose-ink); margin-bottom: 8px; }
.new-note .text-link { background: none; border: 0; padding: 0; cursor: pointer; font-size: 20px; }
.sh-bow { position: absolute; top: 0; left: 40%; width: 110px; z-index: 4; animation: bowSway 4.5s ease-in-out infinite; }
.sh-sparkles { position: absolute; right: 6%; top: 4%; width: 80px; animation: twinkle 4s ease-in-out infinite; }

/* ---------- category index (magazine contents) ---------- */
.shop-tools { max-width: 1320px; margin: 40px auto 0; padding: 0 var(--gutter); }
.cat-index { position: relative; }
.cat-list { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px clamp(20px, 3.4vw, 54px); }
.cat-list button {
  background: none; border: 0; padding: 0 0 8px; cursor: pointer;
  font-family: var(--serif); font-size: clamp(40px, 5vw, 76px); line-height: 1.1; color: var(--espresso); opacity: .6;
  transition: opacity .3s, color .3s;
}
.cat-list button:hover { opacity: .8; }
.cat-list button.on { opacity: 1; font-style: italic; color: var(--rose-ink); }
.cat-list sup { margin-left: 4px; font-family: var(--sans); font-style: normal; font-size: 11px; font-weight: 500; letter-spacing: .1em; vertical-align: top; position: relative; top: .9em; color: var(--graphite); }
.cat-heart { position: absolute; left: 0; bottom: -8px; font-size: 14px; color: var(--rose); opacity: 0; transition: transform .6s var(--ease), opacity .3s; pointer-events: none; }
.shop-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin: 26px 0 50px; padding: 14px 0; border-top: 1px solid var(--espresso); border-bottom: 1px solid var(--line); }
.shop-count a { color: var(--rose-ink); }
.shop-count { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--graphite); }
.sort { display: inline-flex; align-items: center; gap: 12px; font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--graphite); }
.sort select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding: 10px 40px 10px 18px; border: 1px solid var(--espresso); border-radius: 999px; color: var(--espresso);
  font-family: var(--serif); font-style: italic; font-size: 18px; letter-spacing: 0; text-transform: none;
  background: linear-gradient(45deg, transparent 50%, var(--espresso) 50%) calc(100% - 20px) 55% / 6px 6px no-repeat,
              linear-gradient(135deg, var(--espresso) 50%, transparent 50%) calc(100% - 14px) 55% / 6px 6px no-repeat, var(--paper);
}
.sort select:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

/* ---------- grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 50px 26px; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter) 120px; }
.is-hidden { display: none !important; }
.grid-empty { text-align: center; font-family: var(--serif); font-style: italic; font-size: 28px; margin: -60px 0 120px; }

.p-card { position: relative; }
.p-card--wide { grid-column: span 2; }
.p-media { position: relative; border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); --pbg: var(--petal); }
.p-face { --pbg: var(--petal); }
.p-eyes { --pbg: var(--lilac); }
.p-lips { --pbg: var(--blush); }
.p-tools { --pbg: var(--almond); }
.p-media .slot, .p-palette { background: radial-gradient(circle, rgba(255, 255, 255, .85) 2.6px, transparent 3.1px) 0 0 / 22px 22px, var(--pbg); }
.p-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.p-open img { transition: transform .7s var(--ease), filter .6s var(--ease); }
.p-card:hover .p-open img { transform: scale(1.07) rotate(-2deg); }
.p-palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: center; aspect-ratio: 5 / 3; padding: 0 9%; }
.p-palette span { aspect-ratio: 1; border-radius: 6px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 18px 24px -16px rgba(64, 46, 42, .5); transition: translate .6s var(--ease), rotate .6s var(--ease); }
.p-palette span:nth-child(odd) { rotate: -4deg; }
.p-palette span:nth-child(even) { rotate: 3deg; translate: 0 14px; }
.p-card:hover .p-palette span { rotate: 0deg; translate: 0 0; }
.p-tag { position: absolute; top: 14px; left: 14px; z-index: 3; padding: 5px 12px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--rose-ink); }
.p-wish { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; background: var(--paper); color: var(--rose-ink); font-size: 18px; line-height: 1; box-shadow: 0 0 0 1px var(--line); transition: background .3s, color .3s; }
.p-wish.on { background: var(--rose-ink); color: #fff; }
.p-add {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; padding: 13px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--espresso); color: var(--paper); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  translate: 0 150%; transition: translate .5s var(--ease), background .3s;
}
.p-add span { font-size: 18px; letter-spacing: 0; }
.p-add:hover { background: var(--rose-ink); }
.p-card:hover .p-add, .p-card:focus-within .p-add { translate: 0 0; }
.p-body { padding: 16px 4px 0; }
.p-cat { margin: 0; font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--graphite); }
.p-name { margin: 6px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.05; }
.p-name a { text-decoration: none; }
.p-name a:hover { font-style: italic; color: var(--rose-ink); }
.p-latin { margin: 2px 0 12px; font-family: var(--script); font-size: 22px; line-height: 1.2; color: var(--rose-ink); }
.p-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.p-price { font-family: var(--serif); font-size: 26px; line-height: 1; }
.p-shades { display: flex; gap: 8px; }
.p-shades button { width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 1px rgba(64, 46, 42, .35); transition: scale .3s var(--ease), box-shadow .3s; }
.p-shades button:hover { scale: 1.2; }
.p-shades button.on { box-shadow: 0 0 0 1px var(--espresso), 0 0 0 3px var(--paper), 0 0 0 4px var(--rose-ink); }
.p-pans { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--graphite); }

/* editorial cards woven into the grid */
.ed-card { position: relative; margin: 0; }
.ed-quote {
  display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 40px 32px 110px; rotate: -1.5deg;
  background: repeating-linear-gradient(180deg, transparent 0 39px, rgba(169, 76, 100, .18) 39px 40px) 0 20px / 100% 100% no-repeat, var(--petal);
  box-shadow: 0 30px 50px -28px rgba(169, 76, 100, .55);
}
.ed-kicker { margin: 0; font-size: 10px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--rose-ink); }
.ed-line { margin: 0; font-family: var(--serif); font-size: clamp(30px, 2.6vw, 40px); line-height: 1.12; }
.ed-line .script { display: block; margin-top: 8px; font-size: 1.1em; color: var(--rose-ink); }
.ed-quote .btn { align-self: flex-start; }
.ed-stamp { position: absolute; right: -14px; bottom: -22px; width: 118px; rotate: 12deg; }
.ed-stamp svg { width: 100%; overflow: visible; }
.ed-photo .slot { border-radius: 999px 999px 26px 26px; box-shadow: 0 0 0 1px var(--espresso), 0 0 0 8px var(--paper), 0 0 0 9px var(--rose); }
.ed-caption { margin: 18px 0 0; text-align: center; font-family: var(--serif); font-size: 22px; }
.ed-caption .script { font-size: 1.2em; color: var(--rose-ink); }

/* the satin ribbon sits below the grid here (on the home it tucks under the hero) */
.shop .ribbon { margin-top: 0; z-index: 0; }

/* ---------- promise band ---------- */
.shop-promise { padding: 110px var(--gutter); background: radial-gradient(circle, rgba(255, 255, 255, .8) 2.5px, transparent 3px) 0 0 / 26px 26px, var(--lilac); }
.shop-promise ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0; }
.shop-promise li { border-top: 1px solid var(--espresso); padding-top: 18px; }
.sp-n { display: block; font-family: var(--serif); font-size: clamp(70px, 8vw, 120px); line-height: 1; color: var(--rose-ink); }
.sp-l { display: block; margin-top: 12px; max-width: 26ch; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1.7; }

/* ---------- quick view ---------- */
body.qv-open { overflow: hidden; }
.qv { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(64, 46, 42, .38); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.qv.open { opacity: 1; visibility: visible; }
.qv-panel {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(1020px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: var(--paper); border-radius: 28px; box-shadow: 0 50px 90px -40px rgba(64, 46, 42, .6);
  translate: 0 40px; scale: .96; transition: translate .6s var(--ease), scale .6s var(--ease);
}
.qv.open .qv-panel { translate: 0 0; scale: 1; }
.qv-close { position: absolute; top: 18px; right: 20px; z-index: 3; padding: 8px 16px; border: 1px solid var(--espresso); border-radius: 999px; background: var(--paper); cursor: pointer; font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.qv-media { display: grid; place-items: center; padding: 30px; background: radial-gradient(circle, rgba(255, 255, 255, .85) 3px, transparent 3.5px) 0 0 / 26px 26px, var(--petal); }
.qv-media .slot { background: none; }
.qv-media .slot::before { display: none; }
.qv-media .p-palette.big { grid-template-columns: 1fr 1fr; width: 80%; aspect-ratio: 1; padding: 0; background: none; margin: 10%; gap: 14px; }
.qv-body { padding: 56px 44px 40px; }
.qv-cat { margin: 0; font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--graphite); }
.qv-name { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(44px, 4.4vw, 62px); line-height: 1.05; }
.qv-latin { margin: 4px 0 14px; font-family: var(--script); font-size: 26px; color: var(--rose-ink); }
.qv-price { margin: 0 0 14px; font-family: var(--serif); font-size: 34px; line-height: 1; }
.qv-desc { margin: 0 0 18px; font-size: 15px; }
.qv-pans { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; width: 100%; }
.qv-pans span { aspect-ratio: 1; border-radius: 4px; background-size: cover; }
.qv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 6px 0 22px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--espresso); border-radius: 999px; }
.qty button { width: 42px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty output { min-width: 22px; text-align: center; font-family: var(--serif); font-size: 22px; }

/* ---------- toast + flying product ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 95; max-width: calc(100vw - 32px);
  padding: 14px 24px; border-radius: 999px; background: var(--espresso); color: var(--paper); font-size: 13px;
  translate: -50% 180%; transition: translate .5s var(--ease);
  box-shadow: 0 20px 40px -20px rgba(64, 46, 42, .6);
}
.toast.show { translate: -50% 0; }
.toast b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 18px; }
.toast a { margin-left: 8px; color: var(--blush); }
.fly-ghost { border-radius: 26px; overflow: hidden; box-shadow: 0 20px 40px -20px rgba(64, 46, 42, .6); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .shop-hero { grid-template-columns: 1fr; padding-top: 110px; }
  .sh-collage { min-height: 0; max-width: 520px; width: 100%; margin: 0 auto; }
  .new-note { position: relative; width: 80%; margin: 24px 0 0 auto; right: auto; bottom: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
  .shop-promise ul { grid-template-columns: 1fr; }
  .qv-panel { grid-template-columns: 1fr; }
  .qv-media { padding: 50px 20px 20px; }
  .qv-body { padding: 30px 24px 30px; }
}
@media (max-width: 560px) {
  .shop-title { font-size: 19vw; }
  .p-card--wide { grid-column: span 2; }
  .p-palette { grid-template-columns: repeat(2, 1fr); aspect-ratio: 5 / 4; padding: 6% 18%; gap: 8px; }
  .p-palette span:nth-child(even) { translate: 0 0; }
  .p-name { font-size: 22px; }
  .p-latin { font-size: 17px; }
  .p-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .p-add { left: auto; right: 8px; bottom: 8px; width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; font-size: 0; letter-spacing: 0; }
  .p-add span { font-size: 22px; }
  .p-wish { width: 32px; height: 32px; font-size: 15px; top: 8px; right: 8px; }
  .p-tag { top: 10px; left: 10px; font-size: 8px; padding: 4px 9px; }
  .ed-quote { grid-column: span 2; }
  .ed-photo { grid-column: span 2; }
}
@media (hover: none) {
  .p-add { translate: 0 0; }
}
