/* Phase 5 — Taste of America product/store framework */
.taste-page .taste-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 22px 22px;border-top:1px solid rgba(255,255,255,.07)}
.taste-page .taste-product-card{position:relative;display:flex;flex-direction:column;min-width:0;margin-top:22px;border:1px solid rgba(255,255,255,.085);border-radius:18px;background:linear-gradient(160deg,#0b0a0b,#070707);overflow:hidden;box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 18px 38px rgba(0,0,0,.18);transition:transform .26s var(--taste-ease),border-color .25s ease,box-shadow .25s ease}
.taste-page .taste-product-card:hover{transform:translateY(-3px);border-color:rgba(255,10,139,.25);box-shadow:0 22px 42px rgba(0,0,0,.24),0 0 24px rgba(255,10,139,.035)}
.taste-page .taste-product-card[data-status="sold-out"] .taste-product-media,.taste-page .taste-product-card[data-status="coming-soon"] .taste-product-media{filter:saturate(.72)}
.taste-page .taste-product-media{position:relative;aspect-ratio:1/.78;display:grid;place-items:center;background:radial-gradient(circle at 50% 42%,rgba(255,10,139,.10),transparent 42%),#080808;border-bottom:1px solid rgba(255,255,255,.07);overflow:hidden}
.taste-page .taste-product-media img{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:contain;display:block;padding:18px;transition:opacity .22s ease,transform .28s ease}
.taste-page .taste-product-media[data-fit="cover"] img{object-fit:cover;padding:0}
.taste-page .taste-product-card:hover .taste-product-media.has-image:not(.image-failed):not([data-packshot]) img{transform:scale(1.025)}
.taste-page .taste-product-placeholder{position:relative;padding:14px;color:#d5cfda;font:800 24px/1 "DM Sans",sans-serif}
.taste-page .taste-product-photo-pending{font-size:12px}
.taste-page .taste-product-badge{position:absolute;z-index:2;left:12px;top:12px;padding:7px 9px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(5,5,5,.86);backdrop-filter:blur(8px);color:#fff;font-size:7px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.taste-page .taste-product-stock{position:absolute;z-index:2;right:12px;top:12px;display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid rgba(255,255,255,.1);border-radius:999px;background:rgba(5,5,5,.86);backdrop-filter:blur(8px);color:#bcb5bc;font-size:7px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.taste-page .taste-product-stock:before{content:"";width:6px;height:6px;border-radius:50%;background:#b3ff00;box-shadow:0 0 10px rgba(179,255,0,.55)}
.taste-page .taste-product-card[data-status="low-stock"] .taste-product-stock:before{background:#ffb84d;box-shadow:0 0 10px rgba(255,184,77,.5)}
.taste-page .taste-product-card[data-status="sold-out"] .taste-product-stock:before,.taste-page .taste-product-card[data-status="coming-soon"] .taste-product-stock:before{background:#666;box-shadow:none}
.taste-page .taste-product-body{display:flex;flex:1;flex-direction:column;padding:18px}
.taste-page .taste-product-category{margin-bottom:7px;color:var(--taste-cyan);font-size:7px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
.taste-page .taste-product-name{margin:0;color:#fff;font:700 26px/1 "Oswald",sans-serif;letter-spacing:-.025em;text-transform:uppercase}
.taste-page .taste-product-variant{margin-top:7px;color:#aaa3aa;font-size:11px;font-weight:700}
.taste-page .taste-product-description{margin:12px 0 0;color:#847e84;font-size:11px;line-height:1.55}
.taste-page .taste-product-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-top:auto;padding-top:20px}
.taste-page .taste-product-price{display:flex;align-items:baseline;gap:8px;min-width:0;flex-wrap:wrap}
.taste-page .taste-product-price strong{font:700 25px/1 "Oswald",sans-serif;color:#fff}
.taste-page .taste-product-price del{color:#686268;font-size:10px}
.taste-page .taste-product-in-bag{flex-basis:100%;margin-top:1px;color:#8fddea;font-size:7px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.taste-page .taste-product-add{appearance:none;min-height:42px;padding:10px 14px;border:1px solid rgba(255,10,139,.34);border-radius:13px;background:linear-gradient(135deg,rgba(255,10,139,.16),rgba(255,10,139,.07));color:#fff;font-size:8px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;cursor:pointer;white-space:nowrap;transition:transform .2s ease,border-color .2s ease,background .2s ease,opacity .2s ease,color .2s ease}
.taste-page .taste-product-add:hover:not(:disabled){transform:translateY(-2px);border-color:rgba(255,10,139,.62);background:linear-gradient(135deg,rgba(255,10,139,.25),rgba(255,10,139,.09))}
.taste-page .taste-product-add.has-one:not(:disabled){border-color:rgba(90,232,255,.26);background:linear-gradient(135deg,rgba(90,232,255,.09),rgba(255,10,139,.07));color:#e8fbff}
.taste-page .taste-product-add:focus-visible{outline:2px solid rgba(90,232,255,.8);outline-offset:3px}
.taste-page .taste-product-add:disabled{cursor:not-allowed;opacity:.42;border-color:rgba(255,255,255,.08);background:rgba(255,255,255,.035)}
.taste-page .taste-product-add.is-max:disabled{opacity:.72;border-color:rgba(90,232,255,.2);background:rgba(90,232,255,.045);color:#bfeffc}
.taste-page .catalog-results.has-products .empty-stock{display:none!important}
.taste-page .catalog-results:not(.has-products) .taste-product-grid{display:none}
.taste-page .stock-pill.is-live{border-color:rgba(179,255,0,.18);color:#d8f5a0;background:rgba(179,255,0,.035)}
.taste-page .stock-pill.is-live:after{display:none}

@media(max-width:980px){.taste-page .taste-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){
  .taste-page .taste-product-grid{grid-template-columns:1fr;gap:10px;padding:0 12px 12px}
  .taste-page .taste-product-card{margin-top:12px;border-radius:16px}
  .taste-page .taste-product-media{aspect-ratio:1/.62}
  .taste-page .taste-product-media img{padding:14px}
  .taste-page .taste-product-media[data-fit="cover"] img{padding:0}
  .taste-page .taste-product-body{padding:16px}
  .taste-page .taste-product-name{font-size:24px}
  .taste-page .taste-product-foot{align-items:center}
  .taste-page .taste-product-add{min-height:46px;padding:11px 14px}
}
@media(max-width:390px){
  .taste-page .taste-product-foot{align-items:stretch;flex-direction:column;gap:12px}
  .taste-page .taste-product-add{width:100%;min-height:48px}
}
@media(prefers-reduced-motion:reduce){.taste-page .taste-product-card,.taste-page .taste-product-add,.taste-page .taste-product-media img{transition:none!important}}


/* Square, pre-framed product photos: preserve the full pack at every viewport. */
.taste-page .taste-product-media:not([data-packshot]):has(img[src^="/assets/product-images/"]){aspect-ratio:1;background:#faf9f6}
.taste-page .taste-product-media img[src^="/assets/product-images/"]{padding:0;object-fit:contain}
.taste-page .taste-product-card:hover .taste-product-media img[src^="/assets/product-images/"]{transform:none}
/* Two source photos retain extra baked-in margins; enlarge only their safe blank area. */
.taste-page .taste-product-media img[src$="SP-152-buchanans-treacle-toffee.jpg"],
.taste-page .taste-product-card:hover .taste-product-media img[src$="SP-152-buchanans-treacle-toffee.jpg"]{transform:scale(1.55)}
.taste-page .taste-product-media img[src$="SP-004-nippers-sour-candy-display.jpg"],
.taste-page .taste-product-card:hover .taste-product-media img[src$="SP-004-nippers-sour-candy-display.jpg"]{transform:scale(1.2) translate(10%,4%)}

/* Grace-confirmed dietary classifications on staged/imported catalogue cards.
   Badges never imply a listing is purchasable, and never claim unknown status. */
.taste-page .taste-dietary-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.taste-page .taste-dietary-tag{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;border:1px solid rgba(90,232,255,.3);background:rgba(90,232,255,.09);color:#c9f8ff;font:800 9px/1.2 "DM Sans",sans-serif;letter-spacing:.025em}
.taste-page .taste-dietary-note{margin:7px 0 0;color:#aaa5af;font:500 10px/1.5 "DM Sans",sans-serif}
.taste-page .taste-dietary-note a{color:#bcefff;font-weight:800;text-decoration:underline;text-decoration-color:rgba(90,232,255,.48);text-underline-offset:2px}
.taste-page .taste-dietary-note a:hover,.taste-page .taste-dietary-note a:focus-visible{color:#fff;text-decoration-color:#fff}
.taste-page a.taste-contact-to-order{display:inline-flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;border-color:rgba(90,232,255,.4);background:linear-gradient(135deg,rgba(90,232,255,.14),rgba(255,10,139,.10));color:#e4fcff}
.taste-page a.taste-contact-to-order:hover,.taste-page a.taste-contact-to-order:focus-visible{border-color:rgba(90,232,255,.72);background:linear-gradient(135deg,rgba(90,232,255,.25),rgba(255,10,139,.14));color:#fff}


/* Unverified catalogue research: no dietary badges, prices or buy actions. */
.taste-page .taste-dietary-review-pending{margin:12px 0 0;padding:9px 11px;border:1px solid rgba(255,184,77,.23);border-radius:10px;background:rgba(255,184,77,.045);color:#e8c99e;font:600 10px/1.5 "DM Sans",sans-serif}


/* Cutout products should fill the photo window without stretching.
   Keep outer frame and stock badge untouched. */
.taste-page .taste-product-media.has-image:not([data-fit="cover"]) img[src^="https://d2ol7oe51mr4n9.cloudfront.net/"]{
  padding:10px;
  object-fit:contain;
  object-position:center center;
}
.taste-page .taste-product-media.has-image:not(.image-failed):not([data-fit="cover"]) img[src^="https://d2ol7oe51mr4n9.cloudfront.net/"]{
  transform:scale(1.03);
}
.taste-page .taste-product-card:hover .taste-product-media.has-image:not(.image-failed):not([data-fit="cover"]) img[src^="https://d2ol7oe51mr4n9.cloudfront.net/"]{
  transform:scale(1.045);
}
/* These packshots are trimmed to the packaging on the same off-white matte. */
.taste-page .taste-product-media[data-packshot]{
  background:#fbfaf6;
  --packshot-width:72%;
  --packshot-height:84%;
}
.taste-page .taste-product-media[data-packshot] img[data-product-image]{
  inset:4% 0 0;
  width:var(--packshot-width);
  height:var(--packshot-height);
  margin:auto;
  padding:0;
  object-fit:contain;
  object-position:center;
}
.taste-page .taste-product-media[data-packshot="bottle"]{--packshot-width:63%;--packshot-height:90%}
.taste-page .taste-product-media[data-packshot="pouch"]{--packshot-width:73%;--packshot-height:84%}
.taste-page .taste-product-media[data-packshot="wrapper"]{--packshot-width:92%;--packshot-height:70%}
.taste-page .taste-product-media[data-packshot="upright-wrapper"]{--packshot-width:60%;--packshot-height:92%}
.taste-page .taste-product-media[data-packshot="box"]{--packshot-width:88%;--packshot-height:76%}
.taste-page .taste-product-media[data-packshot="tub"]{--packshot-width:66%;--packshot-height:89%}
@media(max-width:720px){
  .taste-page .taste-product-media.has-image:not([data-fit="cover"]) img[src^="https://d2ol7oe51mr4n9.cloudfront.net/"]{padding:9px}
}
@media(prefers-reduced-motion:reduce){
  .taste-page .taste-product-media.has-image img{transition:none!important}
}

/* Homepage new-drop deep-link highlight */
.taste-product-card.is-featured-target{outline:2px solid #ff4ba8;outline-offset:4px;border-radius:10px}
/* Progressive category loading: keep the first 16 cards lightweight on mobile. */
.taste-page .taste-batch-controls{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:4px 14px 26px;text-align:center}
.taste-page .taste-batch-controls[hidden]{display:none}
.taste-page .taste-batch-status{margin:0;color:#b4bac7;font:600 12px/1.5 'DM Sans',sans-serif}
.taste-page .taste-show-more{appearance:none;min-height:46px;padding:12px 24px;border:1px solid rgba(90,232,255,.4);border-radius:13px;background:linear-gradient(135deg,rgba(90,232,255,.11),rgba(255,10,139,.10));color:#fff;font:800 11px/1.3 'DM Sans',sans-serif;letter-spacing:.04em;cursor:pointer}
.taste-page .taste-show-more:hover{border-color:rgba(90,232,255,.75);background:rgba(90,232,255,.17)}
.taste-page .taste-show-more:focus-visible{outline:3px solid #5ae8ff;outline-offset:3px}
@media(max-width:720px){.taste-page .taste-batch-controls{padding:7px 12px 22px}.taste-page .taste-show-more{width:100%;max-width:340px;min-height:48px}}
