/* Product presentation for the Market template. Native purchase/stock behaviour is unchanged. */
.theme-market{--market-card:var(--wash);--market-card-border:var(--line);--market-card-text:var(--ink);--market-card-muted:var(--muted)}
.theme-market .button:not(.secondary),.theme-market .add-button,.theme-market .detail-copy .button{background:var(--market-action,#0864d6);border-color:var(--market-action,#0864d6);color:var(--market-on-action,#fff);font-weight:700}
.theme-market .button:not(.secondary):hover,.theme-market .add-button:hover{filter:brightness(.9);color:var(--market-on-action,#fff)}
.theme-market .button:focus-visible,.theme-market .add-button:focus-visible,.theme-market .favorite-button:focus-visible,.theme-market .quantity-control button:focus-visible{outline:3px solid var(--shop-link);outline-offset:3px;box-shadow:0 0 0 5px var(--wash)}
.theme-market .product-card{background:var(--market-card);color:var(--market-card-text);border:1px solid var(--market-card-border);border-radius:14px;box-shadow:0 8px 24px #0002;isolation:isolate}
.theme-market .product-card:hover{border-color:var(--line);transform:translateY(-3px)}
.theme-market .product-card .product-photo{background:radial-gradient(ellipse at 50% 18%,var(--wash) 0%,var(--wash) 50%,var(--wash) 100%);aspect-ratio:1;overflow:hidden}
.theme-market .product-card .product-photo img{padding:12px;mix-blend-mode:normal;background:transparent;object-fit:contain;width:100%;height:100%;filter:drop-shadow(0 12px 10px #0005)}
.theme-market .product-card .product-info{padding:18px;gap:0;position:relative;background:transparent}
.theme-market .product-card h3{color:var(--market-card-text);font-size:15px;line-height:1.45;font-weight:650;min-height:44px;margin:8px 0 16px;letter-spacing:-.2px}
.theme-market .product-card .product-category{color:var(--market-card-muted);font-size:10px;letter-spacing:.7px;line-height:1.5}
.theme-market .product-card .product-bottom{display:flex;flex-direction:column;align-items:stretch;gap:13px;width:100%}
.theme-market .product-card .product-prices strong{font-size:23px;letter-spacing:-.6px;color:var(--ink);line-height:1.15}
.theme-market .product-card .product-prices del,.theme-market .product-card .product-unit-price{color:var(--market-card-muted);font-size:12px;line-height:1.5}
.theme-market .product-card .product-offer{color:var(--shop-warning);line-height:1.55}
.theme-market .product-card .add-button{min-height:44px;border-radius:28px;padding:11px 16px;gap:9px;line-height:1.2;font-size:13px;text-align:center;width:100%;color:var(--market-on-action,#fff)}
.theme-market .product-card .add-button .icon{width:18px;height:18px;flex-shrink:0;stroke-width:1.8}
.theme-market .product-card .add-button:disabled{opacity:1;background:var(--wash);border-color:var(--wash);color:var(--muted);cursor:not-allowed}
.theme-market .product-card .favorite-button,.theme-market .detail-gallery-favorite{width:42px;height:42px;padding:11px;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--ink);z-index:3;box-shadow:0 4px 12px #0003}
.theme-market .product-card .product-photo .favorite-button{position:absolute;top:12px;right:12px}
.theme-market .product-card .favorite-button .icon,.theme-market .detail-gallery-favorite .icon{width:20px;height:20px;stroke-width:1.8}
.theme-market .favorite-button:hover{background:var(--wash);border-color:var(--shop-link)}
.theme-market .favorite-button.active,.theme-market .favorite-button[aria-pressed=true]{background:var(--tint);color:var(--on-tint);border-color:var(--tint)}
.theme-market .favorite-button.active .icon,.theme-market .favorite-button[aria-pressed=true] .icon{fill:currentColor}
.theme-market .product-card .offer-badge{background:var(--tint)!important;color:var(--on-tint)!important;border-radius:18px;font-size:11px;padding:5px 10px;font-weight:750}
.theme-market .products-showcase .product-card{display:grid;grid-template-columns:46% minmax(0,1fr);min-height:270px}
.theme-market .products-showcase .product-photo{position:static;aspect-ratio:auto;height:100%;min-height:268px;background:linear-gradient(135deg,var(--wash),var(--wash))}
.theme-market .products-showcase .product-photo img{padding:14px 8px}
.theme-market .products-showcase .product-info{padding:62px 16px 18px 4px;min-width:0}
.theme-market .products-showcase .product-card h3{font-size:14px;line-height:1.45;margin:7px 0 16px;min-height:60px;-webkit-line-clamp:3}
.theme-market .products-showcase .product-category{font-size:9px;letter-spacing:.4px}
.theme-market .products-showcase .product-bottom{display:flex;gap:12px;align-items:stretch}
.theme-market .products-showcase .product-prices strong{font-size:21px}
.theme-market .products-showcase .add-button{font-size:12px;padding-inline:10px}
.theme-market .product-detail{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:start;padding-bottom:40px}
.theme-market .product-gallery{position:sticky;top:24px;min-width:0}
.theme-market .detail-photo.gallery-main{position:relative;top:auto;width:100%;height:auto;aspect-ratio:1;background:radial-gradient(ellipse at 50% 25%,var(--wash),var(--wash) 65%,var(--wash));border:1px solid var(--market-card-border);border-radius:18px;overflow:hidden;display:block}
.theme-market .detail-photo.gallery-main img{width:100%;height:100%;object-fit:contain;padding:25px;mix-blend-mode:normal;filter:drop-shadow(0 18px 12px #0005)}
.theme-market .detail-photo.gallery-main:after{content:'Ampliar foto ↗';position:absolute;right:16px;bottom:15px;padding:8px 12px;border:1px solid var(--line);border-radius:25px;background:var(--paper);color:var(--ink);font-size:11px;pointer-events:none}
.theme-market .detail-gallery-favorite{position:absolute;top:16px;right:16px;width:46px;height:46px;padding:12px}
.theme-market .gallery-thumbs{gap:12px;padding:4px 0;margin-top:14px}
.theme-market .gallery-thumbs button{width:76px;height:76px;flex-shrink:0;padding:6px;border:1px solid var(--market-card-border);border-radius:10px;background:var(--wash);overflow:hidden}
.theme-market .gallery-thumbs button[aria-pressed=true]{border:2px solid var(--shop-link)}
.theme-market .gallery-thumbs img{width:100%;height:100%;object-fit:contain;mix-blend-mode:normal}
.theme-market .detail-copy{padding:4px 0 0;min-width:0}
.theme-market .detail-copy h1{font-size:clamp(27px,2.6vw,38px);line-height:1.16;letter-spacing:-1px;margin:12px 0;color:var(--ink)}
.theme-market .detail-code,.theme-market .detail-price small{color:var(--muted);font-size:12px;line-height:1.6}
.theme-market .detail-price{font-size:36px;color:var(--ink);letter-spacing:-.7px;line-height:1.2;margin-top:22px}
.theme-market .detail-price del{color:var(--muted);font-size:16px;margin-bottom:6px}
.theme-market .detail-description{color:var(--ink);font-size:14px;line-height:1.75;margin-top:17px}
.theme-market .availability{color:var(--shop-success);font-size:13px;line-height:1.5;font-weight:550}
.theme-market .availability.unavailable{color:var(--muted)}
.theme-market .detail-purchase{display:grid;grid-template-columns:140px minmax(0,1fr);gap:14px;align-items:stretch;margin-top:22px}
.theme-market .detail-purchase .quantity-control{display:flex;min-height:54px;border:1px solid var(--line);border-radius:10px;background:var(--wash);color:var(--ink);min-width:0;overflow:hidden}
.theme-market .quantity-control button{min-width:40px;min-height:48px;padding:8px;color:var(--ink);flex-shrink:0}
.theme-market .quantity-control button:hover{background:var(--wash);color:var(--ink)}
.theme-market .quantity-control input{width:50px;min-width:0;flex:1;color:var(--ink);background:transparent;border:0;text-align:center;font-size:16px;padding:0;appearance:textfield;-moz-appearance:textfield}
.theme-market .quantity-control input::-webkit-outer-spin-button,.theme-market .quantity-control input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.theme-market .detail-purchase .button{min-width:0;min-height:54px;font-size:15px;padding:13px 16px;gap:10px;border-radius:28px;color:var(--market-on-action,#fff);line-height:1.4}
.theme-market .detail-purchase .button .icon{width:21px;height:21px;flex-shrink:0}
.theme-market .product-details{padding:18px 20px;background:var(--wash);border:1px solid var(--market-card-border);border-radius:12px;margin-top:14px;color:var(--ink)}
.theme-market .product-details summary{font-size:14px;line-height:1.5;color:var(--ink);font-weight:650}
.theme-market .product-details p,.theme-market .product-details li{line-height:1.75;font-size:13px}
.theme-market .detail-benefit{padding:18px 20px;border:1px solid var(--market-card-border);border-radius:12px;background:var(--wash);gap:14px;margin-top:18px}
.theme-market .detail-benefit .icon{width:25px;height:25px;color:var(--shop-link);flex-shrink:0}
.theme-market .detail-benefit strong{color:var(--ink);font-size:13px}.theme-market .detail-benefit p{color:var(--muted);font-size:12px;line-height:1.6}
.theme-market .variant-option{background:var(--wash);color:var(--ink);border-color:var(--line)}.theme-market .variant-option.selected{border-color:var(--shop-link);background:var(--wash)}.theme-market .variant-option small{color:var(--muted)}
.theme-market .gallery-lightbox{background:var(--wash);color:var(--ink);border:1px solid var(--market-card-border);border-radius:16px}.theme-market .gallery-lightbox button{background:var(--wash);color:var(--ink);border:1px solid var(--line)}
@media(max-width:1100px){.theme-market .products-showcase .product-card{display:flex;min-height:0}.theme-market .products-showcase .product-photo{position:relative;min-height:0;height:auto;aspect-ratio:1}.theme-market .products-showcase .product-info{padding:17px}.theme-market .products-showcase .product-card h3{min-height:42px;font-size:14px;-webkit-line-clamp:2}.theme-market .products-showcase .product-bottom{display:flex}.theme-market .product-detail{gap:28px}}
@media(max-width:800px){.theme-market .product-detail{grid-template-columns:1fr;gap:25px}.theme-market .product-gallery{position:relative;top:auto;max-width:560px;width:100%;justify-self:center}.theme-market .detail-copy h1{font-size:29px}.theme-market .detail-copy{padding-top:0}.theme-market .detail-photo.gallery-main img{padding:18px}.theme-market .detail-price{font-size:32px}}
@media(max-width:760px){.theme-market .product-card .product-info,.theme-market .products-showcase .product-info{padding:14px}.theme-market .product-card h3,.theme-market .products-showcase .product-card h3{font-size:13px;min-height:57px;-webkit-line-clamp:3;line-height:1.45;margin-bottom:12px}.theme-market .product-card .product-photo img,.theme-market .products-showcase .product-photo img{padding:8px}.theme-market .product-card .product-prices strong,.theme-market .products-showcase .product-prices strong{font-size:21px}.theme-market .product-card .favorite-button{width:40px;height:40px;padding:10px}.theme-market .product-card .product-photo .favorite-button{top:8px;right:8px}.theme-market .product-card .product-category{font-size:9px;letter-spacing:.3px}.theme-market .product-card .add-button{font-size:12px;padding:10px 8px;min-height:44px;gap:7px}.theme-market .product-card .product-bottom{gap:12px}.theme-market .detail-purchase{grid-template-columns:120px minmax(0,1fr);gap:10px}.theme-market .detail-purchase .button{font-size:13px;padding:12px 10px;gap:7px}.theme-market .detail-purchase .quantity-control{min-height:52px}.theme-market .quantity-control button{min-width:35px}.theme-market .quantity-control input{width:40px}.theme-market .gallery-thumbs button{width:66px;height:66px}.theme-market .product-details,.theme-market .detail-benefit{padding:16px}.theme-market .detail-gallery-favorite{width:46px;height:46px}}
@media(max-width:360px){.theme-market .product-card .product-info,.theme-market .products-showcase .product-info{padding:11px}.theme-market .product-card .product-prices strong{font-size:19px}.theme-market .detail-purchase{grid-template-columns:1fr}.theme-market .detail-purchase .quantity-control{width:140px}.theme-market .detail-purchase .button{width:100%;font-size:14px}}
