/* ArterShop desktop repair layer — theme-safe home, uCoz drawer cart and smooth slider */
html[data-as-d5-theme="pink"],
html[data-as-glass-theme="pink"]{
 --as-d5-bg:#fff1f7;
 --as-d5-bg-soft:#fce8f1;
 --as-d5-panel:rgba(255,255,255,.66);
 --as-d5-panel-strong:rgba(255,248,251,.94);
 --as-d5-glass:rgba(255,248,251,.58);
 --as-d5-text:#592741;
 --as-d5-muted:#86566f;
 --as-d5-line:rgba(170,76,121,.18);
 --as-d5-line-strong:rgba(170,76,121,.30);
 --as-d5-accent:#b94b84;
 --as-d5-accent-strong:#a43b72;
 --as-d5-shadow:0 18px 48px rgba(100,40,72,.09);
 --as-d5-header-bg:rgba(255,246,250,.70);
 --as-d5-footer-surface:linear-gradient(155deg,rgba(255,241,247,.97),rgba(250,226,238,.96));
 color-scheme:light;
}
html[data-as-d5-theme="light"],
html[data-as-glass-theme="light"]{
 --as-d5-footer-surface:linear-gradient(155deg,rgba(246,250,247,.97),rgba(230,239,233,.96));
}
html[data-as-d5-theme="dark"],
html[data-as-glass-theme="dark"]{
 --as-d5-footer-surface:linear-gradient(155deg,rgba(14,32,24,.98),rgba(8,23,17,.98));
}

/* The footer surface follows the active palette; never keep the old green tint in pink/light. */
.as-d5-footer{
 background:var(--as-d5-footer-surface,linear-gradient(155deg,var(--as-d5-panel-strong),var(--as-d5-bg-soft)))!important;
 background-image:var(--as-d5-footer-surface,linear-gradient(155deg,var(--as-d5-panel-strong),var(--as-d5-bg-soft)))!important;
 color:var(--as-d5-text)!important;
}
.as-d5-footer__column{
 background:var(--as-d5-panel)!important;
 border-color:var(--as-d5-line)!important;
 color:var(--as-d5-text)!important;
}
.as-d5-footer__column h3,
.as-d5-footer__brand{color:var(--as-d5-text)!important}
.as-d5-footer__text,
.as-d5-footer__contact,
.as-d5-footer__contact a,
.as-d5-footer__column li a,
.as-d5-footer__bottom{color:var(--as-d5-muted)!important}

/* Restore the homepage quick-link cards instead of plain inline underlined links. */
#as-d5-home-stage a[href="/deliveryall"],
#as-d5-home-stage a[href="/pay"],
#as-d5-home-stage a[href="/payment"],
#as-d5-home-stage a[href="/loyalty"],
#as-d5-home-stage a[href="/contacts"]{
 display:inline-flex!important;vertical-align:top!important;
 align-items:center!important;gap:10px!important;
 width:calc(25% - 16px)!important;min-height:72px!important;
 margin:0 12px 12px 0!important;padding:13px 15px!important;
 border:1px solid var(--as-d5-line)!important;border-radius:16px!important;
 background:var(--as-d5-panel)!important;color:var(--as-d5-text)!important;
 text-decoration:none!important;font-size:13px!important;font-weight:700!important;
 line-height:1.35!important;white-space:normal!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.32),0 7px 20px rgba(30,60,42,.035)!important;
 -webkit-backdrop-filter:blur(14px) saturate(140%)!important;
 backdrop-filter:blur(14px) saturate(140%)!important;
 transition:transform .18s ease,border-color .18s ease,background .18s ease!important;
}
#as-d5-home-stage a[href="/deliveryall"]:hover,
#as-d5-home-stage a[href="/pay"]:hover,
#as-d5-home-stage a[href="/payment"]:hover,
#as-d5-home-stage a[href="/loyalty"]:hover,
#as-d5-home-stage a[href="/contacts"]:hover{
 transform:translateY(-2px)!important;border-color:var(--as-d5-accent)!important;
 background:var(--as-d5-panel-strong)!important;
}
#as-d5-home-stage a[href="/deliveryall"] i,
#as-d5-home-stage a[href="/pay"] i,
#as-d5-home-stage a[href="/payment"] i,
#as-d5-home-stage a[href="/loyalty"] i,
#as-d5-home-stage a[href="/contacts"] i,
#as-d5-home-stage a[href="/deliveryall"] svg,
#as-d5-home-stage a[href="/pay"] svg,
#as-d5-home-stage a[href="/payment"] svg,
#as-d5-home-stage a[href="/loyalty"] svg,
#as-d5-home-stage a[href="/contacts"] svg{
 flex:0 0 auto;width:19px;height:19px;color:var(--as-d5-accent);fill:none;stroke:currentColor;
}

/* Home sections and popular categories. */
#as-d5-home-stage .as-home-section{display:block;width:100%;min-width:0;margin:26px 0 0}
#as-d5-home-stage .as-home-section-head{
 display:flex;align-items:flex-end;justify-content:space-between;gap:16px;
 margin:0 0 14px;padding:0;
}
#as-d5-home-stage .as-home-section-head h2,
#as-d5-home-stage #as-home-popular-title,
#as-d5-home-stage #as-home-new-title{
 margin:0;color:var(--as-d5-text);font-size:clamp(20px,2vw,27px);
 line-height:1.15;font-weight:780;letter-spacing:-.035em;
}
#as-d5-home-stage .as-home-eyebrow{
 margin:0 0 6px;color:var(--as-d5-accent);font-size:9px;
 font-weight:800;letter-spacing:.13em;text-transform:uppercase;
}
#as-d5-home-stage .as-home-quiet-link,
#as-d5-home-stage .as-home-catalog-all,
#as-d5-home-stage .as-home-all-products{
 color:var(--as-d5-accent)!important;text-decoration:none!important;font-weight:700!important;
}
#as-d5-home-stage .as-home-category-grid{
 display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important;
 gap:12px!important;width:100%!important;align-items:stretch!important;
}
#as-d5-home-stage .as-home-category{
 display:flex!important;align-items:center!important;gap:13px!important;
 min-width:0!important;min-height:86px!important;padding:12px 14px!important;
 border:1px solid var(--as-d5-line)!important;border-radius:16px!important;
 background:var(--as-d5-panel)!important;color:var(--as-d5-text)!important;
 text-decoration:none!important;box-shadow:0 7px 20px rgba(20,50,32,.035)!important;
 transition:transform .18s ease,border-color .18s ease,background .18s ease!important;
}
#as-d5-home-stage .as-home-category:hover{
 transform:translateY(-2px)!important;border-color:var(--as-d5-accent)!important;
 background:var(--as-d5-panel-strong)!important;
}
#as-d5-home-stage .as-home-category-image{
 display:grid!important;place-items:center!important;flex:0 0 58px!important;
 width:58px!important;height:58px!important;overflow:hidden!important;
 border-radius:13px!important;background:var(--as-d5-glass)!important;
}
#as-d5-home-stage .as-home-category-image img{
 display:block!important;width:100%!important;height:100%!important;
 object-fit:contain!important;object-position:center!important;border-radius:11px!important;
}
#as-d5-home-stage .as-home-category-copy{
 display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
 gap:4px!important;min-width:0!important;
}
#as-d5-home-stage .as-home-category-copy strong{
 color:var(--as-d5-text)!important;font-size:13px!important;font-weight:750!important;
}
#as-d5-home-stage .as-home-category-copy small{
 color:var(--as-d5-muted)!important;font-size:11px!important;line-height:1.35!important;
}
#as-d5-home-stage .as-home-category-arrow{
 flex:0 0 auto!important;color:var(--as-d5-accent)!important;font-size:18px!important;
}
#as-d5-home-stage .as-home-full-catalog,
#as-d5-home-stage .as-home-catalog-content{
 border:1px solid var(--as-d5-line)!important;border-radius:14px!important;
 background:var(--as-d5-panel)!important;color:var(--as-d5-text)!important;
}
#as-d5-home-stage .as-home-full-catalog{margin-top:12px!important;padding:0!important;overflow:hidden}
#as-d5-home-stage .as-home-full-catalog summary{
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 padding:13px 15px;color:var(--as-d5-text);font-weight:700;cursor:pointer;list-style:none;
}
#as-d5-home-stage .as-home-full-catalog summary::-webkit-details-marker{display:none}
#as-d5-home-stage .as-home-catalog-content{padding:12px!important;border:0!important;border-top:1px solid var(--as-d5-line)!important;border-radius:0!important}
#as-d5-home-stage .as-home-catalog-links{display:flex;flex-wrap:wrap;gap:8px}
#as-d5-home-stage .as-home-catalog-links a{
 display:inline-flex;align-items:center;min-height:34px;padding:7px 10px;
 border:1px solid var(--as-d5-line);border-radius:10px;background:var(--as-d5-glass);
 color:var(--as-d5-text)!important;text-decoration:none!important;font-size:11px;font-weight:650;
}

/* Native uCoz latest products: keep their existing IDs and cart handlers. */
#as-d5-home-stage .as-home-products,
#as-d5-home-stage #as-home-products-v343{
 display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),280px))!important;
 justify-content:center!important;align-items:stretch!important;gap:14px!important;width:100%!important;
}
#as-d5-home-stage .as-home-products>*,
#as-d5-home-stage #as-home-products-v343>*,
#as-d5-home-stage .as-home-products .product-widget-item,
#as-d5-home-stage #as-home-products-v343 .product-widget-item,
#as-d5-home-stage .as-home-products .product_rec_item,
#as-d5-home-stage #as-home-products-v343 .product_rec_item{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 width:100%!important;max-width:280px!important;min-width:0!important;min-height:100%!important;
 margin:0!important;padding:13px!important;border:1px solid var(--as-d5-line)!important;
 border-radius:17px!important;background:var(--as-d5-panel)!important;color:var(--as-d5-text)!important;
 text-align:center!important;overflow:hidden!important;
}
#as-d5-home-stage .as-home-products img,
#as-d5-home-stage #as-home-products-v343 img{
 display:block!important;max-width:100%!important;max-height:100%!important;
 object-fit:contain!important;object-position:center!important;border-radius:12px!important;
}
#as-d5-home-stage .as-home-products .product-text,
#as-d5-home-stage #as-home-products-v343 .product-text{
 display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
 align-items:center!important;justify-content:flex-start!important;width:100%!important;text-align:center!important;
}
#as-d5-home-stage .as-home-products .product-text h4,
#as-d5-home-stage #as-home-products-v343 .product-text h4{
 min-height:3em!important;margin:0!important;text-align:center!important;
}
#as-d5-home-stage .as-home-products .product-text h4 a,
#as-d5-home-stage #as-home-products-v343 .product-text h4 a{
 color:var(--as-d5-text)!important;text-decoration:none!important;
}
#as-d5-home-stage .as-home-products .product-price,
#as-d5-home-stage #as-home-products-v343 .product-price{
 margin-top:auto!important;padding-top:8px!important;color:var(--as-d5-text)!important;
 text-align:center!important;font-weight:800!important;
}

/* Cross-fade the banner; the old slide remains in the same frame while fading out. */
#as-d5-home-stage .as-home-hero{position:relative;overflow:hidden}
#as-d5-home-stage .as-home-hero__slides{position:absolute!important;inset:0!important;min-height:100%!important}
#as-d5-home-stage .as-home-slide{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;
 opacity:0!important;visibility:hidden!important;pointer-events:none!important;
 transform:translateX(14px)!important;
 transition:opacity .68s ease,transform .68s cubic-bezier(.22,.7,.25,1),visibility 0s linear .68s!important;
}
#as-d5-home-stage .as-home-slide.is-active{
 position:absolute!important;inset:0!important;opacity:1!important;visibility:visible!important;
 pointer-events:auto!important;transform:translateX(0)!important;
 transition:opacity .68s ease,transform .68s cubic-bezier(.22,.7,.25,1),visibility 0s!important;
}
#as-d5-home-stage .as-home-slide__image-frame{overflow:hidden!important;border-radius:18px!important}
#as-d5-home-stage .as-home-slide__image-frame img{
 border-radius:18px!important;overflow:hidden!important;
 -webkit-clip-path:inset(0 round 18px)!important;clip-path:inset(0 round 18px)!important;
}
@media(max-width:980px){
 #as-d5-home-stage a[href="/deliveryall"],
 #as-d5-home-stage a[href="/pay"],
 #as-d5-home-stage a[href="/payment"],
 #as-d5-home-stage a[href="/loyalty"],
 #as-d5-home-stage a[href="/contacts"]{width:calc(50% - 12px)!important;min-height:64px!important}
 #as-d5-home-stage .as-home-category-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))!important}
}
@media(max-width:620px){
 #as-d5-home-stage a[href="/deliveryall"],
 #as-d5-home-stage a[href="/pay"],
 #as-d5-home-stage a[href="/payment"],
 #as-d5-home-stage a[href="/loyalty"],
 #as-d5-home-stage a[href="/contacts"]{width:100%!important;margin-right:0!important}
 #as-d5-home-stage .as-home-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 #as-d5-home-stage .as-home-category{gap:8px!important;padding:9px!important;min-height:72px!important}
 #as-d5-home-stage .as-home-category-image{width:42px!important;height:42px!important;flex-basis:42px!important}
 #as-d5-home-stage .as-home-category-copy strong{font-size:11px!important}
 #as-d5-home-stage .as-home-category-copy small{font-size:10px!important}
 #as-d5-home-stage .as-home-products,
 #as-d5-home-stage #as-home-products-v343{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 #as-d5-home-stage .as-home-products>*,
 #as-d5-home-stage #as-home-products-v343>*{padding:9px!important}
}

/* Keep the actual uCoz $BASKET$ drawer. Only its shell is positioned/styled here. */
.shop-basket{
 display:none;position:fixed!important;top:0!important;left:0!important;
 width:0;height:100vh;height:100dvh;z-index:2500!important;
 overflow:visible!important;margin:0!important;padding:0!important;
}
.shop-basket .cart-overlay{
 position:absolute!important;inset:0!important;z-index:0!important;
 display:block!important;background:rgba(7,18,13,.44)!important;
 -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
}
.shop-basket .cart-dropdown{
 position:absolute!important;top:0!important;right:-520px;
 z-index:1!important;display:none;width:min(520px,calc(100vw - 18px))!important;
 max-width:100%!important;height:100vh!important;height:100dvh!important;
 margin:0!important;padding:22px!important;overflow-x:hidden!important;overflow-y:auto!important;
 border:1px solid var(--as-d5-line-strong)!important;border-right:0!important;
 border-radius:20px 0 0 20px!important;
 background:var(--as-d5-panel-strong)!important;color:var(--as-d5-text)!important;
 box-shadow:-18px 0 55px rgba(0,0,0,.20)!important;
 -webkit-backdrop-filter:blur(26px) saturate(145%)!important;
 backdrop-filter:blur(26px) saturate(145%)!important;
}
.shop-basket #shop-basket{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;background:transparent!important;color:var(--as-d5-text)!important}
.shop-basket #shop-basket .close{
 position:sticky!important;top:0!important;z-index:4!important;
 display:grid!important;place-items:center!important;width:38px!important;height:38px!important;
 margin:0 0 12px auto!important;padding:0!important;
 border:1px solid var(--as-d5-line)!important;border-radius:12px!important;
 background:var(--as-d5-glass)!important;color:var(--as-d5-text)!important;
}
.shop-basket .cart-item{display:grid!important;gap:12px!important;margin:0!important;padding:0!important;list-style:none!important}
.shop-basket .cart-item>li,
.shop-basket .cart-dropdown-item{
 display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;align-items:center!important;
 gap:12px!important;margin:0!important;padding:12px!important;
 border:1px solid var(--as-d5-line)!important;border-radius:14px!important;
 background:var(--as-d5-panel)!important;color:var(--as-d5-text)!important;
}
.shop-basket .cart-item img,
.shop-basket .cart-p-image img{
 display:block!important;width:76px!important;height:76px!important;max-width:76px!important;
 object-fit:contain!important;border-radius:10px!important;background:var(--as-d5-glass)!important;
}
.shop-basket .cart-action,
.shop-basket .cart-item-amount,
.shop-basket .cart-amount{
 color:var(--as-d5-text)!important;background:transparent!important;
}
.shop-basket .cart-action{position:sticky!important;bottom:-22px!important;z-index:3!important;margin:14px -22px -22px!important;padding:16px 22px 22px!important;border-top:1px solid var(--as-d5-line)!important;background:var(--as-d5-panel-strong)!important}
.shop-basket .cart-btn-wrapper{display:flex!important;gap:8px!important;flex-wrap:wrap!important}
.shop-basket .cart-btn-wrapper>*{flex:1 1 130px!important;min-height:42px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:11px!important;text-decoration:none!important}
@media(max-width:620px){
 .shop-basket .cart-dropdown{width:100vw!important;padding:14px!important;border-radius:16px 0 0 16px!important}
 .shop-basket .cart-action{margin:14px -14px -14px!important;padding:14px!important}
}
@media(prefers-reduced-motion:reduce){
 #as-d5-home-stage .as-home-slide,
 #as-d5-home-stage .as-home-slide.is-active{transition:none!important}
}
