/* ============================================================
   KAVEESH AMAEYYA / NOYA — Premium shop styling
   Loaded on products.php · category.php · product.php
   Per-product colour comes from product_accent() as inline
   --accent / --ink / --tint / --glow custom properties.
   ============================================================ */

:root{
  --kap-ease:cubic-bezier(.2,.7,.2,1);
  --kap-card-radius:20px;
}

/* ---------- Catalogue page shell ----------
   Was an inline style="padding:120px 24px 80px" on products.php and
   category.php. Inline styles outrank every media query, so those pages kept
   desktop padding at all widths — and doubled the side gutter, since the inner
   .section-inner adds its own. Horizontal padding now belongs to the inner
   wrapper alone. */
.shop-page{
  padding: clamp(96px, 11vw, 120px) 0 clamp(56px, 8vw, 80px);
  min-height: 80vh;
  background: var(--cream);
}

/* ---------- Catalogue category dropdown ----------
   Was an inline style on products.php. Inline `font-size:13px` outranked the
   coarse-pointer 16px rule, so focusing it zoomed the page on iOS with no way
   back out. As a class it can be overridden per input modality. */
.shop-select{
  border:1px solid var(--warm-gray);
  background:var(--white);
  padding:8px 14px;
  border-radius:8px;
  font-family:var(--sans);
  font-size:13px;
  cursor:pointer;
}

/* ---------- Product card grid (list / category) ---------- */
.kap-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(258px,1fr));
  gap:28px;
}

.kap-card{
  background:var(--white);
  border:1px solid rgba(30,28,24,.06);
  border-radius:var(--kap-card-radius);
  overflow:hidden;
  display:flex;flex-direction:column;
  box-shadow:0 1px 2px rgba(30,28,24,.04), 0 12px 28px -18px rgba(30,28,24,.28);
  transition:transform .4s var(--kap-ease), box-shadow .4s var(--kap-ease);
}
@media (hover:hover){
  .kap-card:hover{
    transform:translateY(-6px);
    box-shadow:0 1px 2px rgba(30,28,24,.05), 0 30px 60px -24px rgba(30,28,24,.40);
  }
}

/* image stage: accent gradient + glow + grounding shadow */
.kap-stage{
  position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;
  height:220px;
  border-radius:var(--kap-card-radius) var(--kap-card-radius) 0 0;   /* top corners */
  background:var(--stagebg,var(--tint,#f5edd4));                     /* solid accent backdrop (required for blend) */
}
.kap-stage img{
  width:100%;height:100%;object-fit:contain;object-position:center;  /* preserve ratio, never crop/zoom */
  padding:16px;                                                      /* bottle never touches the edges */
  mix-blend-mode:var(--blend,multiply);   /* drops the white PNG box onto the colour. Set --blend:screen for black-bg images */
  transition:transform .3s ease;
}
@media (hover:hover){ .kap-card:hover .kap-stage img{transform:scale(1.06)} }

/* photo stage: the image IS the artwork — it fills the tile edge-to-edge with no
   accent tint and no blend. Applied per product (image_blend = 'photo') and always
   to the Unsplash fallback. Must stay after .kap-stage: same specificity, source
   order decides the background. */
.kap-stage--photo{background:var(--off-white,#f3f1ec)}   /* neutral hold while the image loads */
.kap-stage--photo img{
  padding:0;
  object-fit:cover;                 /* fill the frame, crop the overflow */
  mix-blend-mode:normal;
}

.kap-body{padding:22px 22px 24px;display:flex;flex-direction:column;gap:8px;flex:1}
.kap-eyebrow{font-family:var(--sans);font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--ink,var(--gold-dark))}
.kap-name{font-family:var(--sans);font-size:1.28rem;font-weight:700;letter-spacing:-.01em;line-height:1.15;color:var(--text)}
.kap-tag{font-family:var(--sans);font-size:13.5px;font-weight:300;color:var(--text-muted);line-height:1.6;flex:1}
.kap-cta{
  margin-top:14px;align-self:flex-start;display:inline-flex;align-items:center;gap:8px;
  min-height:44px;padding:0 20px;border-radius:100px;text-decoration:none;
  font-family:var(--sans);font-size:13px;font-weight:600;letter-spacing:.02em;
  color:#fff;background:var(--ink,var(--gold-dark));
  transition:filter .25s var(--kap-ease), transform .25s var(--kap-ease);
}
.kap-cta svg{width:16px;height:16px;transition:transform .3s var(--kap-ease)}
@media (hover:hover){ .kap-cta:hover{filter:brightness(.93)} .kap-cta:hover svg{transform:translateX(3px)} }

/* ---------- Product detail enhancements ---------- */
/* accent stage for the main product image */
.pd-hero .kap-stage{height:420px;border-radius:20px}        /* full radius for the standalone tile */
@media (hover:hover){ .pd-hero .kap-stage:hover img{transform:scale(1.06)} }

/* sticky info panel (desktop) */
@media (min-width:769px){
  .pd-hero .pd-info{position:sticky;top:96px;align-self:start}
}

/* claim/meta chips tinted to the product accent */
.pd-hero .pd-meta-chip{background:var(--tint,var(--gold-pale));color:var(--ink,var(--sand-deep))}

/* quick benefits (icon + text) in the sticky panel */
.kap-key{list-style:none;display:grid;gap:12px;margin:0 0 28px}
.kap-key li{display:flex;gap:12px;align-items:center;font-size:14.5px;color:var(--text-mid)}
.kap-key .ic{flex:none;width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:var(--tint,var(--gold-pale));color:var(--ink,var(--sand-deep))}
.kap-key .ic svg{width:17px;height:17px}

/* benefits icon-card section */
.kap-bens{max-width:1200px;margin:0 auto;padding:8px 24px 72px}
.kap-bens-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;margin-top:32px}
.kap-ben{background:var(--white);border:1px solid rgba(30,28,24,.06);border-radius:18px;padding:28px 24px;
  transition:transform .35s var(--kap-ease), box-shadow .35s var(--kap-ease)}
@media (hover:hover){ .kap-ben:hover{transform:translateY(-5px);box-shadow:0 24px 48px -28px rgba(30,28,24,.45)} }
.kap-ben .ic{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:var(--tint,var(--gold-pale));color:var(--ink,var(--sand-deep));margin-bottom:16px}
.kap-ben .ic svg{width:24px;height:24px}
.kap-ben h3{font-family:var(--sans);font-size:1.02rem;font-weight:700;color:var(--text);margin-bottom:6px}
.kap-ben p{font-size:14px;font-weight:300;color:var(--text-muted);line-height:1.65}

/* ---------- Motion safety (complements global reduced-motion) ---------- */
@media (prefers-reduced-motion:reduce){
  .kap-card:hover, .kap-card:hover .kap-stage img,
  .pd-hero .kap-stage:hover img, .kap-ben:hover{transform:none}
}

/* ---------- Responsive ---------- */
@media (max-width:600px){
  .kap-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px}
  .kap-body{padding:16px 16px 18px}
  .kap-name{font-size:1.1rem}
}
