/* Visual commerce refresh. Existing navigation and checkout handlers remain in place. */
html.swift-design body #appScreen .toggle-box .toggle-btn.active{background:#111!important;color:#fff!important;border-color:#111!important;box-shadow:none!important}html.swift-design body #appScreen .toggle-box .toggle-btn.active svg{color:white!important;stroke:currentColor!important}html.swift-design body #appScreen .toggle-box .toggle-btn{animation:none!important}
html.swift-design body #appScreen,html.swift-design body .shop-active-page{animation:commerceFade .18s ease-out!important}@keyframes commerceFade{from{opacity:.7}to{opacity:1}}
#swiftLoginReveal{animation:commerceWelcome .4s ease-out forwards!important;pointer-events:none!important;background:#ff6a00!important}#swiftLoginReveal .swift-reveal-half{animation:none!important;transform:none!important;background:transparent!important}@keyframes commerceWelcome{from{opacity:1}to{opacity:0;visibility:hidden}}
html.swift-design body #appScreen .header::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x2='0' y2='1'%3E%3Cstop stop-color='%23ffb97e'/%3E%3Cstop offset='1' stop-color='%23ffe5cf'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M0 0H600V266C450 220 180 320 0 272Z'/%3E%3C/svg%3E")!important}
html.swift-design body :is(.product,.store-product){position:relative!important;background:#fff!important;border:1px solid #e9e9e5!important;border-radius:17px!important;box-shadow:0 3px 12px #171b1704!important;overflow:hidden!important;padding:0!important;min-width:0!important;transition:border-color .12s ease!important}
html.swift-design body :is(.product-img-wrap,.store-product-media){position:relative!important;aspect-ratio:1!important;height:auto!important;min-height:0!important;margin:0!important;background:#f7f7f5!important;border:0!important;overflow:hidden!important}html.swift-design body :is(.product-img-wrap,.store-product-media)>img{height:100%!important;width:100%!important;object-fit:contain!important;padding:14px!important;max-width:100%!important}
html.swift-design body :is(.product-info,.store-product-info){padding:13px!important;min-width:0!important;display:flex!important;flex-direction:column!important;gap:9px!important}html.swift-design body :is(.product-info,.store-product-info)>strong,html.swift-design body .store-product-name{font-size:14px!important;line-height:1.4!important;font-weight:650!important;letter-spacing:-.2px!important;margin:0!important;overflow-wrap:anywhere}html.swift-design body :is(.product,.store-product) .price{font-size:14px!important;font-weight:700!important;line-height:1.4!important;margin:0!important}
html.swift-design body :is(.customer-product-add,.store-add){min-height:42px!important;width:100%!important;border:1px solid #141714!important;border-radius:10px!important;background:#141714!important;color:white!important;font-size:12px!important;font-weight:600!important;padding:10px 12px!important;box-shadow:none!important;margin:2px 0 0!important}html.swift-design body :is(.heart-btn,.store-heart){width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;background:#fffffff0!important;color:#232823!important;border:1px solid #ebede7!important;border-radius:50%!important;box-shadow:none!important;top:9px!important;right:9px!important}
@media(max-width:600px){html.swift-design body :is(.product-info,.store-product-info){padding:11px!important}html.swift-design body :is(.product-info,.store-product-info)>strong{font-size:13px!important}}
@media(prefers-reduced-motion:reduce){html.swift-design body #appScreen,html.swift-design body .shop-active-page,#swiftLoginReveal{animation:none!important}#swiftLoginReveal{display:none!important}}

html.swift-design body .store-product>img{display:block!important;width:100%!important;aspect-ratio:1!important;height:auto!important;object-fit:contain!important;background:#f7f7f5!important;padding:14px!important;margin:0!important;border:0!important;border-radius:0!important}
html.swift-design body .store-product>h3{font-size:14px!important;font-weight:650!important;line-height:1.4!important;margin:12px 13px 8px!important;letter-spacing:-.2px!important;overflow-wrap:anywhere}
html.swift-design body .store-product>.store-price{font-size:14px!important;margin:0 13px 10px!important;display:block!important}
html.swift-design body .store-product>.store-add{width:calc(100% - 26px)!important;margin:0 13px 12px!important}




/* Keep the existing action buttons together without changing their handlers. */
html.swift-design body #appScreen{transform:none!important}
html.swift-design body #appScreen #products .product{padding:0!important;position:relative!important;border-radius:17px!important}
html.swift-design body #appScreen #products .product .product-info{padding:13px!important;gap:0!important}
html.swift-design body #appScreen #products .product .product-info>strong{min-height:38px!important;font-size:14px!important;line-height:19px!important;font-weight:650!important;margin:0 0 8px!important}
html.swift-design body #appScreen #products .product .product-info .price{margin:0 0 12px!important;font-size:15px!important;line-height:20px!important}
html.swift-design body #appScreen #products .product .product-info button.customer-product-add{width:calc(100% - 52px)!important;min-height:42px!important;height:42px!important;margin:0!important;padding:8px 12px!important;border-radius:10px!important;background:#111!important;color:#fff!important;box-shadow:none!important;font-size:12px!important}
html.swift-design body #appScreen #products .product>.store-item-share,html.swift-design body #merchantStorePage .store-product>.store-item-share{position:absolute!important;bottom:13px!important;right:13px!important;left:auto!important;top:auto!important;width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;margin:0!important;padding:0!important;border:0!important;border-radius:10px!important;background:#111!important;color:#fff!important;box-shadow:none!important}
html.swift-design body #merchantStorePage .store-product>.store-add{width:calc(100% - 78px)!important;height:42px!important;min-height:42px!important;margin:18px 13px 13px!important;border-radius:10px!important;background:#111!important;color:#fff!important;font-size:12px!important}
html.swift-design body #merchantStorePage .store-product>.store-item-quantity{position:absolute;bottom:62px;left:13px;margin:0;font-size:10px;line-height:14px}

html.swift-design body #appScreen #products .product,html.swift-design body #merchantStorePage .store-product{display:flex!important;flex-direction:column!important}
html.swift-design body #appScreen #products .product .product-info{flex:1!important}
html.swift-design body #appScreen #products .product .product-info>strong{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important;max-height:38px!important}
html.swift-design body #appScreen #products .product .product-info button.customer-product-add{margin-top:auto!important}
html.swift-design body #merchantStorePage .store-product>.store-price{margin-bottom:28px!important}
html.swift-design body #merchantStorePage .store-product>.store-add{margin-top:auto!important}

/* Responsive entrance viewer: complete artwork, full-screen image backdrop. */
#commerceStoreEntrance{position:fixed!important;inset:0!important;box-sizing:border-box!important;width:100vw!important;height:100dvh!important;max-width:100vw!important;max-height:100dvh!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#f4f4f2!important;overflow:hidden!important;color:#fff;touch-action:none!important;overscroll-behavior:none!important;isolation:isolate}
#commerceStoreEntrance[open]{display:block!important;animation:entranceIn 180ms ease-out}
#commerceStoreEntrance::backdrop{background:#f4f4f2}
#commerceStoreEntrance>.entrance-backdrop{position:absolute!important;inset:-32px!important;width:calc(100% + 64px)!important;height:calc(100% + 64px)!important;max-width:none!important;max-height:none!important;object-fit:cover!important;filter:blur(24px)!important;opacity:.24!important;z-index:0!important;pointer-events:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important}
#commerceStoreEntrance>.entrance-artwork{position:absolute!important;inset:0!important;box-sizing:border-box!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:center!important;padding:calc(60px + env(safe-area-inset-top)) max(0px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(0px,env(safe-area-inset-left))!important;margin:0!important;border:0!important;border-radius:0!important;z-index:1!important;pointer-events:none!important}
#commerceStoreEntrance>img[hidden]{display:none!important}
#commerceStoreEntrance>.entrance-close{position:absolute!important;inset:auto!important;top:calc(12px + env(safe-area-inset-top))!important;right:calc(16px + env(safe-area-inset-right))!important;box-sizing:border-box!important;display:grid!important;place-items:center!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;padding:0!important;margin:0!important;border:1px solid #ffffff80!important;border-radius:50%!important;background:#161616e8!important;color:#fff!important;font:400 28px/1 system-ui!important;box-shadow:0 2px 10px #0002!important;z-index:3!important;cursor:pointer;transform:none!important;transition:background 120ms ease,transform 120ms ease!important;-webkit-tap-highlight-color:transparent}
html.swift-design #commerceStoreEntrance>.entrance-close:active{transform:scale(.94)!important;background:#000!important}
#commerceStoreEntrance>.entrance-close:focus-visible{outline:3px solid #fff!important;outline-offset:3px!important;box-shadow:0 0 0 6px #151515!important}
@keyframes entranceIn{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){#commerceStoreEntrance[open]{animation:none!important}#commerceStoreEntrance>.entrance-close{transition:none!important}}
/* Product detail gallery and purchase panel. Presentation only. */
#swiftProductDetails{width:min(calc(100vw - 64px),1040px)!important;height:min(90dvh,800px)!important;border-radius:24px!important;background:#fff!important;box-shadow:0 24px 100px #0003!important}
#swiftProductDetails::backdrop{background:#161a18a6;backdrop-filter:blur(5px)}
#swiftProductDetails .spd-header{padding:12px 24px;border:0;background:#fff;z-index:2}
#swiftProductDetails .spd-header strong{font-size:11px;font-weight:600;letter-spacing:.08em;color:#81877f}
#swiftProductDetails .spd-header button{border:1px solid #e8ebe5;border-radius:50%;background:#fff;color:#161a16;font-size:24px}
#swiftProductDetails .spd-scroll{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);grid-template-rows:min-content min-content min-content 1fr;align-items:start;column-gap:36px;row-gap:0;min-height:0;padding:12px 28px 28px;background:#fff}
#swiftProductDetails .spd-hero{display:contents}
#swiftProductDetails .spd-photo{grid-column:1;grid-row:1 / 5;position:sticky;top:0;align-self:start;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;width:100%;min-height:440px;padding:32px 28px 20px;border:1px solid #f0f1ed;border-radius:20px;background:#f6f7f4;overflow:hidden}
#swiftProductDetails .spd-photo img{display:block;width:100%;height:clamp(290px,43dvh,450px);max-width:100%;object-fit:contain}
#swiftProductDetails .spd-photo span{font-size:10px;line-height:1.5;letter-spacing:.03em;color:#8b9188}
#swiftProductDetails .spd-store{grid-column:2;grid-row:1;align-self:end;font-size:10px;font-weight:600;line-height:1.5;letter-spacing:.12em;text-transform:uppercase;color:#81887d;margin:10px 0 8px}
#swiftProductDetails h2{grid-column:2;grid-row:2;font-size:29px;line-height:1.15;letter-spacing:-1px;font-weight:700;margin:0 0 16px;overflow-wrap:anywhere;color:#191d17}
#swiftProductDetails .spd-price{grid-column:2;grid-row:3;display:flex;align-items:baseline;flex-wrap:wrap;gap:10px;width:auto;min-width:0;padding:0;margin:0 0 22px;border:0;border-radius:0;background:transparent}
#swiftProductDetails .spd-price-label{display:none}
#swiftProductDetails [data-price]{font-size:28px;line-height:1.2;font-weight:700;letter-spacing:-.8px}
#swiftProductDetails [data-was]{font-size:13px;color:#969b92}
#swiftProductDetails .spd-copy{grid-column:2;grid-row:4;align-self:start;padding:0;background:#fff}
#swiftProductDetails [data-availability]{display:flex;align-items:center;gap:6px;margin:0 0 14px;font-size:11px;line-height:1.5}
#swiftProductDetails [data-availability]:empty{display:none}
#swiftProductDetails .spd-available:before{content:'';display:block;width:5px;height:5px;border-radius:50%;background:currentColor}
#swiftProductDetails .spd-tags{gap:6px;margin:0 0 22px}
#swiftProductDetails .spd-tags span{font-size:10px;line-height:1.5;font-weight:650;background:#d82929!important;color:#fff!important;padding:5px 9px;border-radius:5px}
#swiftProductDetails h3{font-size:11px;font-weight:650;line-height:1.5;margin:0 0 10px;color:#33392e}
#swiftProductDetails .spd-description{padding:0 0 22px;margin:0;border:0}
#swiftProductDetails .spd-description p,#swiftProductDetails .spd-specifications{font-size:12px;line-height:1.75;color:#7b8374;white-space:pre-line;overflow-wrap:anywhere;margin:0}
#swiftProductDetails .spd-specifications{padding:0 0 22px}
#swiftProductDetails .spd-variants{padding:0;margin:0;border:0}
#swiftProductDetails .spd-choice-row{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}
#swiftProductDetails .spd-choice-row button{min-width:48px;min-height:46px;padding:10px 15px;border:1px solid #e4e8df;border-radius:11px;background:#fff;color:#50594a;font-size:12px;font-weight:500;line-height:1.5;max-width:100%;overflow-wrap:anywhere}
#swiftProductDetails .spd-choice-row button[aria-pressed=true]{border-color:#192018;background:#192018;color:#fff;box-shadow:0 0 0 1px #192018}
#swiftProductDetails .spd-quantity-line{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0 0;border-top:1px solid #eef0e9;margin:0}
#swiftProductDetails .spd-quantity-line h3{margin:0}
#swiftProductDetails .spd-quantity{gap:0;margin:0;border:1px solid #e5e9e0;border-radius:12px;background:#fff;overflow:hidden}
#swiftProductDetails .spd-quantity button{width:42px;height:42px;padding:0;border:0;border-radius:0;background:transparent;color:#252c21;font-size:21px}
#swiftProductDetails .spd-quantity [data-plus]{background:transparent;color:#252c21}
#swiftProductDetails .spd-quantity output{font-size:12px;min-width:30px;font-weight:650}
#swiftProductDetails [data-error]:empty{display:none}
#swiftProductDetails [data-retry]{min-height:44px}
#swiftProductDetails .spd-footer{padding:16px 24px 20px;border-top:1px solid #eef0ea;z-index:2;box-shadow:0 -8px 24px #17201603}
#swiftProductDetails [data-add]{min-height:54px;padding:15px 20px;border-radius:14px;background:#161c15;font-size:13px;font-weight:600}
#swiftProductDetails [data-add]:disabled{background:#e8ebe4;color:#68725f;opacity:1}
#swiftProductDetails [data-total]{font-size:13px;font-weight:650;font-variant-numeric:tabular-nums}
#swiftProductDetails [data-added]{font-size:11px;line-height:1.5}
#swiftProductDetails button:focus-visible{outline:2px solid #192018;outline-offset:3px}
@media(max-width:600px){
 #swiftProductDetails{width:100%!important;height:100dvh!important;border-radius:0!important;margin:0!important}
 #swiftProductDetails .spd-header{padding:calc(10px + env(safe-area-inset-top)) 18px 10px}
 #swiftProductDetails .spd-scroll{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(5,min-content);gap:0;padding:0 20px 26px;background:#fff}
 #swiftProductDetails .spd-photo{grid-column:1;grid-row:1;position:relative;top:auto;min-height:0;width:calc(100% + 40px);margin:0 -20px;padding:24px 32px 18px;border:0;border-radius:0}
 #swiftProductDetails .spd-photo img{height:clamp(220px,32dvh,330px)}
 #swiftProductDetails .spd-store{grid-column:1;grid-row:2;margin:22px 0 8px}
 #swiftProductDetails h2{grid-column:1;grid-row:3;font-size:26px;letter-spacing:-.8px;margin:0 0 12px}
 #swiftProductDetails .spd-price{grid-column:1;grid-row:4;margin-bottom:18px}
 #swiftProductDetails [data-price]{font-size:26px}
 #swiftProductDetails .spd-copy{grid-column:1;grid-row:5;padding:0}
 #swiftProductDetails .spd-footer{padding:12px 18px calc(14px + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:no-preference){#swiftProductDetails[open]{animation:spdGalleryIn 160ms ease-out}@keyframes spdGalleryIn{from{opacity:.6}to{opacity:1}}#swiftProductDetails .spd-choice-row button{transition:background 120ms ease,border-color 120ms ease}}

/* Keep a single cart action in product details. */
#swiftProductDetails .spd-header{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important}#swiftProductDetails .spd-header>strong{text-align:center!important}#swiftProductDetails .spd-header [data-cart]{display:none!important}
