/* SPORTIVA shop: complements shared controls without changing other modules. */
.shop-products{align-items:stretch;gap:22px;margin-top:24px}
.shop-products .shop-product{display:flex;flex-direction:column;border-radius:var(--radius);border-color:var(--line);box-shadow:0 3px 14px #10183f04;transition:border-color .18s,box-shadow .18s,transform .18s}
.shop-products .shop-product:hover{border-color:#c4d0eb;box-shadow:0 8px 24px #10183f0a;transform:translateY(-2px)}
.shop-products .shop-product-image{position:relative;height:auto;aspect-ratio:400/300;overflow:hidden;border-bottom:1px solid var(--line)!important;border-radius:0;isolation:isolate}
.shop-products .shop-product-image svg{display:block;width:100%!important;height:100%!important;max-height:280px;transition:transform .25s}
.shop-products .shop-product-image img{display:block;width:100%;height:100%!important;object-fit:contain!important;border-radius:0!important;background:#edf1f9}
.shop-products .shop-product-image:hover svg,.shop-products .shop-product-image:hover img{transform:scale(1.025)}
.shop-products .card-body{padding:21px;flex:1;gap:16px}
.shop-products h3{color:var(--navy);font-size:16px;line-height:1.45;letter-spacing:-.2px}
.shop-products .card-body>.row:first-child{gap:8px;align-items:center}
.shop-products .card-body>.row:first-child .small{font-size:11px;color:var(--muted)}
.shop-products .card-body>.row:last-child{margin-top:auto;gap:12px;align-items:center}
.shop-products .card-body>.row:last-child strong{color:var(--navy);font-family:Manrope,Arial,sans-serif;letter-spacing:-.4px;font-size:19px!important}
.shop-products .card-body>.row:last-child .button{font-size:11px;padding:9px 11px;border-color:#d8e0f0;color:var(--blue);background:#f7f9ff;min-height:39px}
.shop-products .card-body>.row:last-child .button:hover{background:#eaf0ff;border-color:#b8c9eb}
.page-content:has(.shop-products)>.toolbar>.field{flex:1 1 160px;max-width:240px}
.page-content:has(.shop-products)>.toolbar>.field:first-child{flex-basis:240px;max-width:none}
.page-content:has(.shop-products)>.toolbar select{width:100%}
.segmented:has([data-action="shop-tab"]){max-width:100%;flex-wrap:wrap;gap:5px}
.segmented [data-action="shop-tab"]{min-height:36px;padding:8px 15px;font-size:12px}
.segmented [data-action="shop-tab"].primary{color:var(--ink);background:white;box-shadow:0 2px 6px #10183f0c}
.segmented [data-action="shop-tab"].secondary{background:transparent;color:var(--muted);box-shadow:none}
.page-heading:has([data-action="shop-cart"]) .badge{height:24px;min-width:24px;justify-content:center;background:var(--blue-light);color:var(--blue);border-radius:50%;padding:2px 6px}
.card:has([data-action="shop-variant-create"]) .card-header{background:#fbfcff;gap:18px;padding-top:20px;padding-bottom:20px}
.card:has([data-action="shop-variant-create"]) .card-header h3{font-size:17px;margin-bottom:5px!important}
.card:has([data-action="shop-variant-create"]) .card-header .button-group{gap:7px}
.card:has([data-action="shop-variant-create"]) .card-header .button{font-size:11px;padding:8px 10px;min-height:35px}
.card:has([data-action="shop-variant-create"]) th{letter-spacing:.4px}
.card:has([data-action="shop-variant-create"]) td:nth-child(4){font-variant-numeric:tabular-nums;font-weight:650;color:var(--navy)}
.table-wrap:has([data-action="shop-order"]) td{font-variant-numeric:tabular-nums}
.table-wrap:has([data-action="shop-order"]) td:first-child{min-width:100px}
.table-wrap:has([data-action="shop-order"]) .button{font-size:11px;min-height:35px;padding:7px 11px}
dialog:has([data-action^="shop-"]),dialog:has([data-change^="shop-"]){width:min(880px,calc(100vw - 32px));border-color:#d9e1ef}
dialog:has([data-action^="shop-"]) .dialog-header h2,dialog:has([data-change^="shop-"]) .dialog-header h2{color:var(--navy)}
dialog:has([data-change="shop-detail-variant"]) .dialog-body>.grid-2{gap:28px;align-items:start}
dialog:has([data-change="shop-detail-variant"]) .dialog-body>.grid-2>div:first-child{min-width:0}
dialog:has([data-change="shop-detail-variant"]) .dialog-body>.grid-2>div:first-child>.row{gap:9px}
dialog:has([data-change="shop-detail-variant"]) .dialog-body>.grid-2>div:first-child>.row .button{font-size:10px;padding:8px 10px;min-height:36px;flex:1 1 auto}
dialog:has([data-change="shop-detail-variant"]) .dialog-body>.grid-2>.stack{gap:15px}
dialog:has([data-change="shop-detail-variant"]) .stack>h3{font-size:23px;line-height:1.3;margin:0;color:var(--navy)}
dialog:has([data-change="shop-detail-variant"]) .stack>p{font-size:12px;color:var(--muted);line-height:1.8;margin:0}
dialog:has([data-change="shop-detail-variant"]) .stack>.badge{align-self:flex-start}
dialog:has([data-change="shop-detail-variant"]) .field>strong{font:750 22px Manrope,Arial,sans-serif;color:var(--navy);padding-top:5px}
dialog:has([data-change="shop-detail-variant"]) [data-shop-price-total]{color:var(--blue)}
dialog:has([data-change="shop-cart-qty"]) .table-wrap{margin-top:0}
dialog:has([data-change="shop-cart-qty"]) td{padding:14px 12px}
dialog:has([data-change="shop-cart-qty"]) td:first-child{min-width:180px;font-weight:650;color:var(--navy)}
dialog:has([data-change="shop-cart-qty"]) td:first-child small{font-weight:400;display:block;margin-top:4px}
dialog:has([data-change="shop-cart-qty"]) td:nth-child(2){min-width:105px;color:var(--muted);font-size:12px}
dialog:has([data-change="shop-cart-qty"]) td:nth-child(4){font-weight:650;white-space:nowrap}
dialog:has([data-change="shop-cart-qty"]) input[data-change="shop-cart-qty"]{min-width:72px;width:76px!important;text-align:center;padding:8px}
dialog:has([data-change="shop-cart-qty"]) [data-action="shop-cart-remove"]{border:0;background:#fff6f6;color:#a44a52;padding:7px 9px;min-height:34px;font-size:11px}
dialog:has([data-change="shop-cart-qty"]) .dialog-body>.row>strong{font:750 22px Manrope,Arial,sans-serif;letter-spacing:-.5px;color:var(--navy)}
dialog:has([data-change="shop-cart-qty"]) .dialog-body>.muted.small{font-size:11px;line-height:1.7;margin:16px 0 0}
dialog:has([data-action="shop-delivery"]) .stats-grid,dialog:has([data-action="shop-gateway"]) .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}
dialog:has([data-action="shop-delivery"]) .stat,dialog:has([data-action="shop-gateway"]) .stat{padding:17px;display:flex;flex-direction:column;gap:10px;background:#f8faff;box-shadow:none}
dialog:has([data-action="shop-delivery"]) .stat strong,dialog:has([data-action="shop-gateway"]) .stat strong{font:750 20px Manrope,Arial,sans-serif;color:var(--navy)}
dialog:has([data-action="shop-delivery"]) .dialog-body>.button-group,dialog:has([data-action="shop-gateway"]) .dialog-body>.button-group{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}
dialog:has([data-action="shop-delivery"]) .dialog-body>p.small,dialog:has([data-action="shop-gateway"]) .dialog-body>p.small{overflow-wrap:anywhere}

@media(min-width:1450px){.shop-products{gap:24px}.shop-products .card-body{padding:24px}}
@media(max-width:1100px) and (min-width:761px){.shop-products{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-products .card-body>.row:last-child{align-items:stretch;flex-direction:column}.shop-products .card-body>.row:last-child .button{align-self:flex-start}}
@media(max-width:760px){
 .shop-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}
 .shop-products .card-body{padding:16px;gap:13px}
 .shop-products .shop-product h3{font-size:15px}
 .shop-products .card-body>.row:last-child{align-items:flex-start;flex-direction:column;gap:12px}
 .shop-products .card-body>.row:last-child strong{font-size:19px!important}
 .shop-products .card-body>.row:last-child .button{width:100%;min-height:40px}
 .page-content:has(.shop-products)>.toolbar>.field{min-width:0;max-width:none;flex:1 1 125px}
 .page-content:has(.shop-products)>.toolbar>.field:first-child{flex-basis:100%;max-width:none}
 .page-content:has(.shop-products)>.toolbar select{min-width:0}
 .card:has([data-action="shop-variant-create"]) .card-header{padding:17px;gap:15px}
 .card:has([data-action="shop-variant-create"]) .card-header>.button-group{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:7px}
 .card:has([data-action="shop-variant-create"]) .card-header .button{font-size:10px;padding:8px;line-height:1.5;min-height:38px}
 .card:has([data-action="shop-variant-create"]) table{min-width:660px}
 .table-wrap:has([data-action="shop-order"]) table{min-width:670px}
 dialog:has([data-action^="shop-"]),dialog:has([data-change^="shop-"]){width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:var(--radius)}
 dialog:has([data-action^="shop-"]) .dialog-header,dialog:has([data-change^="shop-"]) .dialog-header{padding:17px 18px}
 dialog:has([data-action^="shop-"]) .dialog-body,dialog:has([data-change^="shop-"]) .dialog-body{padding:18px;max-height:calc(100dvh - 180px)}
 dialog:has([data-change="shop-detail-variant"]) .dialog-body>.grid-2{gap:23px}
 dialog:has([data-change="shop-detail-variant"]) .dialog-body>.grid-2>div:first-child>div:first-child{max-width:260px!important}
 dialog:has([data-change="shop-detail-variant"]) .dialog-body>.grid-2>div:first-child>.row{max-width:310px;margin:10px auto 0!important}
 dialog:has([data-change="shop-detail-variant"]) .stack>h3{font-size:22px}
 dialog:has([data-change="shop-detail-variant"]) .field>strong{font-size:20px}
 dialog:has([data-change="shop-cart-qty"]) table{min-width:600px}
 dialog:has([data-change="shop-cart-qty"]) .dialog-body>.row{gap:16px}
 dialog:has([data-change="shop-cart-qty"]) .dialog-body>.row>strong{font-size:21px}
 dialog:has([data-change="shop-cart-qty"]) [data-action="shop-checkout"]{min-width:100px}
 dialog:has([data-action="shop-delivery"]) .stats-grid,dialog:has([data-action="shop-gateway"]) .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 dialog:has([data-action="shop-delivery"]) .stats-grid>.stat:last-child,dialog:has([data-action="shop-gateway"]) .stats-grid>.stat:last-child{grid-column:1/-1}
}
@media(max-width:420px){
 .shop-products{grid-template-columns:1fr;gap:19px}
 .shop-products .shop-product-image{aspect-ratio:400/280}
 .shop-products .card-body{padding:20px;gap:15px}
 .shop-products .shop-product h3{font-size:17px}
 .shop-products .card-body>.row:last-child{flex-direction:row;align-items:center;gap:10px}
 .shop-products .card-body>.row:last-child strong{font-size:20px!important}
 .shop-products .card-body>.row:last-child .button{width:auto;font-size:11px;min-height:42px}
 .shop-products .card-body>.row:first-child .small{font-size:11px}
 .segmented [data-action="shop-tab"]{font-size:11px;padding:8px 12px}
 .page-content:has(.shop-products)>.toolbar>.field{flex-basis:140px}
 dialog:has([data-change="shop-detail-variant"]) .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 dialog:has([data-change="shop-detail-variant"]) .form-grid>.span-2{grid-column:1/-1}
 dialog:has([data-change="shop-detail-variant"]) .form-grid>.field:last-child{grid-column:1/-1;border-top:1px solid var(--line);padding-top:13px}
 dialog:has([data-change="shop-detail-variant"]) .form-grid>.field:last-child strong{font-size:23px}
 dialog:has([data-action="shop-delivery"]) .dialog-body>.button-group .button,dialog:has([data-action="shop-gateway"]) .dialog-body>.button-group .button{flex:1;min-width:120px}
}
@media(prefers-reduced-motion:reduce){.shop-products .shop-product,.shop-products .shop-product-image svg,.shop-products .shop-product-image img{transition:none}.shop-products .shop-product:hover{transform:none}}
