/* Single-product layout corrections and bottom purchase bar. */
.single-product div.product { position: relative; }
.single-product div.product .summary { position: static !important; top: auto !important; align-self: start; }
.single-product div.product .woocommerce-product-gallery { position: relative; }
.single-product .woocommerce-product-gallery .onsale {
    position: absolute !important;
    z-index: 4 !important;
    top: 34px !important;
    right: 34px !important;
    left: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 54px !important;
    max-width: calc(100% - 68px) !important;
    min-height: 32px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    line-height: 1.5 !important;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(0, 143, 108, .22);
}
.seo8-sticky-cart {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    border-top: 1px solid var(--border, #ddd8f2);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 -12px 35px rgba(26, 17, 48, .13);
    backdrop-filter: blur(16px);
    transform: translateY(110%);
    opacity: 0;
    visibility: hidden;
    transition: transform .22s ease-out, opacity .18s ease-out, visibility .22s;
}
.seo8-sticky-cart.is-visible { transform: translateY(0); opacity: 1; visibility: visible; }
.seo8-sticky-cart-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1180px, 100%); margin-inline: auto; }
.seo8-sticky-product { display: flex; align-items: center; gap: 12px; min-width: 0; }
.seo8-sticky-product img { width: 54px !important; height: 54px !important; flex: 0 0 54px; padding: 4px; border: 1px solid var(--border, #ddd8f2); border-radius: 12px; background: var(--surface-soft, #f8f7ff); object-fit: contain; }
.seo8-sticky-product > div { display: grid; gap: 2px; min-width: 0; }
.seo8-sticky-product strong { overflow: hidden; color: var(--ink, #1a1130); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.seo8-sticky-price { color: var(--success, #008f6c); font-size: 13px; font-weight: 900; }
.seo8-sticky-price del { color: var(--muted, #746d91); font-size: 11px; opacity: .7; }
.seo8-sticky-price ins { text-decoration: none; }
.seo8-sticky-cart-button { min-width: 190px; min-height: 50px; padding: 10px 20px; border: 0; border-radius: 13px; background: linear-gradient(135deg, var(--primary, #6136ff), var(--primary-2, #7c4dff)); color: #fff; font-weight: 900; cursor: pointer; box-shadow: 0 10px 26px rgba(97, 54, 255, .28); transition: box-shadow .2s ease, opacity .2s ease; }
.seo8-sticky-cart-button:hover { box-shadow: 0 14px 30px rgba(97, 54, 255, .38); }
.seo8-sticky-cart-button:focus-visible { outline: 3px solid rgba(97, 54, 255, .3); outline-offset: 3px; }
.seo8-sticky-cart-button:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; }
body.seo8-sticky-cart-active { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (max-width: 620px) {
    .single-product .woocommerce-product-gallery .onsale { top: 26px !important; right: 26px !important; max-width: calc(100% - 52px) !important; }
    .seo8-sticky-cart { padding-top: 8px; }
    .seo8-sticky-cart-inner { gap: 10px; }
    .seo8-sticky-product img { display: none !important; }
    .seo8-sticky-product strong { max-width: 42vw; font-size: 12px; }
    .seo8-sticky-price { font-size: 12px; }
    .seo8-sticky-cart-button { min-width: 0; min-height: 48px; padding-inline: 14px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .seo8-sticky-cart { transition: none; } }
[data-theme="dark"] .seo8-sticky-cart { background: rgba(26, 17, 48, .95); }
