/* Approved product surfaces. Other app layouts remain on their existing styles. */
@font-face{font-family:'Trendsly Product Serif';src:url('/fonts/instrument-serif-regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
#product-grid .product-card{display:flex;flex-direction:column}
#product-grid .product-image-stage{flex:none;height:auto;aspect-ratio:4 / 4.8}
#product-grid .product-image-button{height:100%}
#product-grid .product-image{width:100%;height:100%;aspect-ratio:auto;object-fit:contain}
#product-grid .product-body{display:grid;flex:1;grid-template-columns:minmax(0,1fr);grid-template-rows:1.35em 3.705rem 3.80625rem 1.8rem 1.8rem minmax(0,auto) auto;gap:.45rem;padding:.85rem;font-size:.875rem}
#product-grid .product-brand{grid-row:1;margin:0;min-width:0}
#product-grid .product-title{grid-row:2;height:3.9em;min-height:0;margin:0;font-size:.95rem;line-height:1.3;-webkit-line-clamp:3}
#product-grid .result-card-description{grid-row:3;height:4.35em;margin:0;font-size:.875rem;line-height:1.45;-webkit-line-clamp:3}
#product-grid .price-row{grid-row:4;min-height:0;margin:0;align-items:center}
#product-grid .result-card-sizes{grid-row:5;height:1.8rem;margin:0}
#product-grid .result-card-sizes[hidden]{display:flex!important;visibility:hidden}
#product-grid .product-evidence{display:none}
#product-grid .product-source-context{grid-row:6;margin:0;font-size:.7rem}
#product-grid .product-selected-size{grid-row:5;align-self:end;margin:0;background:var(--surface);font-size:.7rem}
#product-grid .card-actions{grid-row:7;display:grid;grid-template-columns:minmax(0,1fr);gap:.4rem;margin:.2rem 0 0}
#product-grid .card-actions :is(.card-details-action,.card-shop-action){grid-column:1;display:flex;align-items:center;justify-content:center;min-height:2.75rem;padding:.4rem;overflow:hidden;font-size:.78rem;line-height:1.25;text-decoration:none}
.retailer-action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;text-align:center;text-decoration:none;white-space:normal!important}
.retailer-action-lead{display:block;font-size:.68rem;font-weight:500;line-height:1.15}
.retailer-action-domain{display:block;max-width:100%;font-size:.75rem;font-weight:750;line-height:1.2;overflow-wrap:anywhere;white-space:normal}
#product-grid .card-actions .retailer-action{min-height:3rem;height:3rem}
#product-grid .retailer-action-lead{font-size:.6rem}
#product-grid .retailer-action-domain{font-size:.625rem;font-weight:650;letter-spacing:-.02em;white-space:nowrap}
.quick-decision-copy>.quick-price{margin:1rem 0;font-family:var(--serif);font-size:1.65rem;font-weight:500}
.quick-price-currency{margin-inline-start:.5rem;color:var(--ink-soft);font:600 .7rem var(--sans)}
.quick-size-section{margin-bottom:1rem;min-width:0}
.quick-size-section .result-card-sizes{max-width:100%;flex-wrap:nowrap}
.quick-size-note{margin:.3rem 0;color:var(--ink-soft);font-size:.8rem}
.quick-description-section{padding-bottom:.8rem;margin-bottom:.5rem}
.quick-decision-copy>.quick-share-find{margin:.25rem 0 1rem}
.quick-listing-details{border-top:1px solid var(--line)}
.quick-listing-details>summary{min-height:2.75rem;display:flex;align-items:center;cursor:pointer;font-size:.8rem;font-weight:650}
.quick-listing-details .quick-why-panel{margin-top:.7rem;background:transparent;padding-inline:0}
.quick-sheet-footer{align-items:center}
.quick-sheet-footer .quick-retailer-action{display:flex;align-items:center}
.quick-sheet-footer .quick-retailer-action>.primary-button{width:100%;min-height:3rem;height:3rem;margin:0}
.quick-sheet-footer>.secondary-button{min-height:3rem;height:3rem;margin:0}

/* A directly opened one-product share uses the approved product presentation.
   Owner carts and multi-product carts keep all existing controls and content. */
.single-product-page .cart-hero,.single-product-page .cart-layout{display:none}
.single-product-page .cart-main{width:100%;max-width:1064px;padding:30px 32px 28px}
.shared-detail-context{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 24px}
.shared-detail-context .eyebrow{margin:0;font-size:10px;letter-spacing:1.8px;color:var(--red)}
.shared-detail-context-note{margin:0;font-size:12px;color:var(--ink-soft)}
.shared-detail-layout{display:grid;grid-template-columns:1.08fr 1fr;gap:44px;align-items:start}
.shared-detail-image{display:flex;align-items:center;justify-content:center;min-width:0;margin:0;background:var(--paper-deep);border-radius:18px;overflow:hidden}
.shared-detail-image img{display:block;width:100%;height:560px;object-fit:contain}
.shared-detail-copy{min-width:0;padding-top:5px}
.shared-detail-merchant{margin:0 0 9px;font-size:11px;text-transform:uppercase;letter-spacing:1.45px;font-weight:800}
.shared-detail-title{max-width:17ch;margin:0 0 16px;font:400 46px/1.03 'Trendsly Product Serif',Georgia,serif;letter-spacing:-1px}
.shared-detail-story{max-width:39ch;height:auto;margin:0 0 22px;font-size:15px;line-height:1.65;color:var(--ink-soft);-webkit-line-clamp:4}
/* Shared carts do not load the discovery-only primitive stylesheet. Keep
   their source-size chips and description clamp complete within this surface. */
.shared-detail-story{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;line-clamp:4}
.shared-detail-sizes .result-card-sizes{display:flex;flex-wrap:nowrap;align-items:center;gap:.25rem;min-height:44px}
.shared-detail-sizes .result-card-sizes [hidden]{display:none!important}
.shared-detail-sizes .result-size-chip{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:27px;min-height:27px;padding:.2rem .35rem;border:1px solid var(--line,#d8d6ce);border-radius:999px;background:var(--paper,#f7f5ef);color:var(--ink,#181a17);font:600 .75rem/1.2 var(--sans,sans-serif);white-space:nowrap}
.shared-detail-sizes .result-size-more{flex:0 0 auto;min-width:44px;min-height:44px;padding:.25rem;border:1px solid var(--line,#d8d6ce);border-radius:999px;background:transparent;color:var(--red-dark,#9c2917);font:650 .75rem/1.2 var(--sans,sans-serif);cursor:pointer}
.shared-detail-sizes .result-size-more:focus-visible{outline:2px solid var(--red,#b52b15);outline-offset:2px}
.shared-detail-price-line{display:flex;align-items:baseline;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding-top:17px;margin-top:16px}
.shared-detail-price{display:flex;align-items:baseline;gap:8px;margin:0;font:600 30px/1.3 var(--sans);letter-spacing:-.8px}
.shared-detail-price small{font-size:12px;font-weight:400;color:var(--ink-soft);letter-spacing:.6px}
.shared-detail-price-note{color:var(--ink-soft);font-size:11px}
.shared-detail-sizes{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:54px;padding:17px 0 10px}
.shared-detail-sizes .result-card-sizes{flex:1;min-width:0;max-width:calc(100% - 55px);justify-content:flex-end}
.shared-detail-field{font-size:10px;letter-spacing:1.2px;text-transform:uppercase;font-weight:800}
.shared-detail-size-note{font-size:12px;color:var(--ink-soft)}
.shared-detail-actions{display:grid;grid-template-columns:minmax(0,1fr) 115px;gap:9px;margin-top:8px}
.shared-detail-actions .primary-button,.shared-detail-actions .secondary-button{display:flex;align-items:center;justify-content:center;min-height:48px;width:100%;margin:0;padding:8px 10px;border-radius:11px;font-size:13px}
.shared-detail-actions .copy-to-finds{display:contents}
.shared-detail-actions .copy-to-finds-status{grid-column:1/-1;margin:0;font-size:11px}
.shared-detail-actions .copy-to-finds-status:empty{display:none}
.shared-detail-secondary{border-top:1px solid var(--line);margin-top:25px}
.shared-detail-secondary>details{border-bottom:1px solid var(--line)}
.shared-detail-secondary summary{min-height:50px;padding:17px 1px;font-size:12px;font-weight:600;cursor:pointer}
.shared-detail-note-body{padding:0 2px 17px;color:var(--ink-soft);font-size:12px;line-height:1.65}
.shared-detail-note-body p{margin:0 0 12px}
.shared-detail-note-body p:last-child{margin:0}
.shared-detail-note-body a{font-size:12px;font-weight:700}
.shared-detail-full-story{display:block;height:auto;overflow:visible;-webkit-line-clamp:unset}
@media(max-width:700px){
#product-grid .product-body{padding:.65rem;font-size:.8125rem;grid-template-rows:1.35em 3.4125rem 3.534375rem 1.8rem 1.8rem minmax(0,auto) auto}
#product-grid .product-title{font-size:.875rem}
#product-grid .result-card-description{font-size:.8125rem}
#product-grid .card-actions :is(.card-details-action,.card-shop-action){font-size:.75rem}
.single-product-page .cart-main{padding:19px 16px 24px}
.shared-detail-context{gap:9px;margin-bottom:16px}
.shared-detail-context .eyebrow{font-size:9px;letter-spacing:1.5px}
.shared-detail-context-note{font-size:10px}
.shared-detail-layout{display:block}
.shared-detail-image{border-radius:14px}
.shared-detail-image img{height:288px}
.shared-detail-copy{padding-top:19px}
.shared-detail-merchant{margin-bottom:7px;font-size:10px;letter-spacing:1.1px}
.shared-detail-title{max-width:19ch;margin-bottom:11px;font-size:35px;line-height:1.02;letter-spacing:-.6px}
.shared-detail-story{max-width:40ch;margin-bottom:16px;font-size:13px;line-height:1.5}
.shared-detail-price-line{padding-top:13px;margin-top:0}
.shared-detail-price{font-size:27px}
.shared-detail-price small{font-size:11px}
.shared-detail-price-note{font-size:10px}
.shared-detail-sizes{min-height:44px;padding:13px 0 7px}
.shared-detail-size-note{font-size:11px}
.shared-detail-actions{grid-template-columns:minmax(0,1fr) 104px;gap:8px}
.shared-detail-actions .primary-button,.shared-detail-actions .secondary-button{min-height:48px;font-size:12px;border-radius:10px}
.shared-detail-secondary{margin-top:22px}
.shared-detail-secondary summary{padding:16px 0;font-size:12px}
}
