/* Shared public product cards: the existing TA typeface, a clear reading order and consistent actions. */
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card { border:1px solid #e5e9e7; border-radius:11px !important; background:#fff; box-shadow:none !important; overflow:hidden; transition:border-color .18s,box-shadow .18s; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card:hover { border-color:#c4ded5 !important; box-shadow:0 4px 14px #253d3408 !important; transform:none; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__body { display:flex; flex-direction:column; gap:10px; min-width:0; padding:14px !important; text-align:left !important; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__title { margin:0; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__title h2 { min-height:2.9em; margin:0 !important; color:#27282c; font-size:14px !important; font-weight:600 !important; line-height:1.45 !important; letter-spacing:-.012em; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__price { margin:0; text-align:left !important; color:#27282c; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__price .price { display:flex; align-items:baseline; justify-content:flex-start !important; flex-wrap:wrap; gap:4px 7px; color:#27282c; font-size:16px !important; font-weight:700; line-height:1.35; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__price .price del { color:#93979b; font-size:12px; font-weight:400; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__price .price ins { background:none; text-decoration:none; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__vendor { min-width:0; margin:0; padding-top:9px; border-top:1px solid #f0f2f1; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__vendor .details_creator_pflow { display:flex; align-items:center; justify-content:flex-start; gap:7px; min-width:0; font-size:11px; line-height:1.4; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__vendor .details_creator_pflow img { width:23px; height:23px; flex:0 0 23px; border-radius:50%; object-fit:cover; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__vendor a { color:#71717a; font-size:11px; text-decoration:none; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action { display:flex; align-items:stretch; gap:6px; padding:10px; border-top:1px solid #edf0ee; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-main { display:flex; flex:1 1 0; max-width:none; min-width:0; border:0; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-quick-view, body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-favorite { flex:0 0 38px; max-width:38px; border:0; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-main > a, body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-main .add-to-cart-container > a { min-height:40px; padding:9px 6px !important; border-radius:7px !important; background:#e8f6f1 !important; color:#28665c !important; font-size:11px !important; font-weight:600 !important; line-height:1.35 !important; white-space:normal !important; text-align:center; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-main > a:hover { background:#d9eee5 !important; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-main > a.loading { font-size:0 !important; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-main > .product-card__action-btn--remove { background:#fff1f2 !important; color:#b4233b !important; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__quick-view, body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-favorite .ta-favorite-btn { min-height:40px; border:1px solid #e4eae6; border-radius:7px; background:#fff; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-main > a:active, body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__quick-view:active { transform:scale(.97); }
@media(max-width:767.98px){
 body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__body { gap:9px; padding:14px !important; }
 body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__title h2 { font-size:14px !important; line-height:1.5 !important; }
 body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-quick-view, body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-favorite { flex:0 0 44px; max-width:44px; }
 body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-main > a, body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-main .add-to-cart-container > a { min-height:44px; font-size:12px !important; }
 body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__quick-view, body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-favorite .ta-favorite-btn { min-height:44px; }
 body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__quick-view svg { width:20px; height:20px; }
 .ta-category-stream__products, .ta-fp-products-slider .products { scroll-snap-type:none !important; -webkit-overflow-scrolling:touch; }
}
@media(prefers-reduced-motion:reduce){body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card { transition:none; }}

/* Free-flow touch rows: no snap points and no scripted correction after release. */
body .ta-fp-products-slider .products, body .ta-category-stream__products, body .ta-fp-following-strip, body .ta-fp-creator-strip { scroll-snap-type:none !important; scroll-behavior:auto !important; -webkit-overflow-scrolling:touch; }
body .ta-fp-products-slider .products > *, body .ta-category-stream__products > *, body .ta-fp-following-strip > *, body .ta-fp-creator-strip > * { scroll-snap-align:none !important; scroll-snap-stop:normal !important; }

/* One loading label and one spinner; suppress the legacy loader nested in links. */
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-main { container-type:inline-size; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-main a.loading { transition:none !important; gap:7px !important; font-size:0 !important; line-height:1 !important; white-space:nowrap !important; pointer-events:none; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-main a.loading > * { display:none !important; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-main a.loading::before { content:'Lägger till…' !important; display:block; width:auto; height:auto; margin:0; padding:0; border:0; background:none; font-size:12px !important; line-height:1.3 !important; animation:none; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-main a.product-card__action-btn--remove.loading::before { content:'Tar bort…' !important; }
body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-main a.loading::after { content:'' !important; display:block !important; position:static !important; top:auto !important; right:auto !important; width:14px; height:14px; flex:0 0 14px; box-sizing:border-box; margin:0 !important; border:2px solid #beded2; border-top-color:#387e6b; border-radius:50%; animation:ta-card-button-spin .7s linear infinite !important; }
@keyframes ta-card-button-spin { to { rotate:360deg; } }
@container(max-width:110px){body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-main a.loading::before { display:none; }}
@media(prefers-reduced-motion:reduce){body:not(.dokan-dashboard) :is(.site-content,.single-product-container) .product-card__action-main a.loading::after { animation:none !important; }}

/* Free material reads as a useful label, and premium has its own corner. */
.product-card .ta-price-free, .ta-shop-monthly-top .ta-price-free, .ta-favorites-page .ta-price-free { display:inline-flex; align-items:center; gap:5px; padding:5px 7px; border:1px solid #d2e9df; border-radius:6px; background:#edf8f2; color:#347561; font-size:11px !important; font-weight:600; line-height:1.3; white-space:nowrap; letter-spacing:0; }
.product-card .ta-price-free::before { content:''; width:11px; height:11px; flex:0 0 11px; background:currentColor; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m-5-5 5 5 5-5M4 16v5h16v-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.product-card__image-wrapper > .product-card__badge--premium { position:absolute; top:7px; right:7px; left:auto; bottom:auto; z-index:7; display:inline-flex; align-items:center; gap:4px; padding:5px 7px; border:1px solid #cbe7da; border-radius:6px; background:#e4f4ec !important; color:#28644f !important; font-size:10px; font-weight:600; line-height:1.2; letter-spacing:0; white-space:nowrap; }
.product-card__premium-short { display:none; }
@media(max-width:767.98px){
 .product-card__image-wrapper > .product-card__badge--premium { top:5px; right:5px; font-size:9px; padding:5px 6px; }
 .product-card__premium-label { display:none; }
 .product-card__premium-short { display:inline; }
 .ta-fp-primary-content .ta-fp-products-slider .product-card__action-favorite { right:auto; left:5px; }
 .ta-fp-primary-content .ta-fp-products-slider .product-card.sale .product-card__action-favorite { top:36px; }
}
