/* SMARTLY DIGITAL — Final Frontend Polish / no layout-size changes
   This layer is strictly visual and accessible. Keeps original grid, artwork dimensions,
   container widths, pagination and responsive breakpoints intact. */
:root { --polish-blue:#52a9ff; --polish-ink:#eaf4ff; }
html { scroll-padding-top:104px; }
body { text-rendering:optimizeLegibility; font-kerning:normal; }
button,a,input,select { -webkit-tap-highlight-color:transparent; }
button, a { touch-action: manipulation; }
:where(button,a,[role="button"],input,select,textarea):focus-visible {
  outline:2px solid #81caff!important; outline-offset:3px!important;
}
.header { transition:background .32s ease,box-shadow .32s ease,border-color .32s ease; }
.header.sd-scrolled {background:rgba(5,12,24,.96);box-shadow:0 12px 35px rgba(0,0,0,.3),0 1px 0 rgba(54,113,203,.15);border-bottom-color:#27518b50;}
.desktop-links a {position:relative;transition:color .25s ease;}
.desktop-links a::after {content:"";position:absolute;left:0;bottom:-11px;width:100%;height:2px;border-radius:9px;background:linear-gradient(90deg,#268cff,#7cceff);box-shadow:0 0 11px #248eff80;transform:scaleX(0);transform-origin:center;opacity:0;transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .28s;}
.desktop-links a:hover::after,.desktop-links a.nav-active::after {transform:scaleX(1);opacity:1;}
.icon-btn {transition:transform .26s cubic-bezier(.2,.8,.2,1),background .26s,border-color .26s,box-shadow .26s;}
.icon-btn:hover {transform:translateY(-2px);border-color:#519dff86;box-shadow:0 8px 24px #094fa31c,0 0 0 1px #408fff12;background:#132641;}
.brand-logo { object-fit:contain; }
/* Store cards — premium texture without resizing any image, card or grid. */
.marketplace .product-card {isolation:isolate;position:relative;transition:transform .38s cubic-bezier(.2,.75,.2,1),border-color .35s ease,box-shadow .38s ease;background:linear-gradient(165deg,rgba(17,29,49,.97),rgba(8,15,28,.98));}
.marketplace .product-card::before {content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;background:radial-gradient(280px circle at var(--sd-x,50%) var(--sd-y,0%),rgba(54,132,252,.12),transparent 65%);opacity:0;transition:opacity .3s ease;}
.marketplace .product-card:hover::before,.marketplace .product-card:focus-within::before {opacity:1;}
.marketplace .product-card:hover,.marketplace .product-card:focus-within {transform:translateY(-5px);border-color:#529dff91;box-shadow:0 19px 40px #0007,0 0 0 1px #2684ff15,0 0 30px #1166da14;}
.marketplace .product-card>.product-body,.marketplace .product-card>.product-view {position:relative;z-index:1;}
.marketplace .product-view {cursor:pointer;}
.marketplace .product-art {isolation:isolate;}
.marketplace .product-art::after {content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(124deg,transparent 25%,rgba(255,255,255,.055) 49%,transparent 72%);transform:translateX(-120%);transition:transform .8s ease;}
.marketplace .product-card:hover .product-art::after,.marketplace .product-card:focus-within .product-art::after {transform:translateX(120%);}
.marketplace .product-art .product-image {object-fit:contain;object-position:center;image-rendering:auto;}
.marketplace .badge {border:1px solid #8ac6ff30;backdrop-filter:blur(8px);}
.marketplace .product-body h3 {text-wrap:pretty;}
.marketplace .product-body p {color:#9fb0c8;}
.marketplace .product-price .sale-current,.hotdeal-price .sale-current {font-variant-numeric:tabular-nums;}
.marketplace .product-price small {letter-spacing:.1px;}
.marketplace .p-rating {letter-spacing:1px;font-size:9px;font-weight:800;color:#80b9fc;opacity:.95;}
.marketplace .market-add-btn,.marketplace .market-buy-btn,.hotdeal-add,.hotdeal-buy {transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease,background .24s ease;}
.marketplace .market-buy-btn:hover,.hotdeal-buy:hover {transform:translateY(-2px);box-shadow:0 11px 28px #0878fa4c;}
.marketplace .market-add-btn:hover,.hotdeal-add:hover {transform:translateY(-2px);border-color:#7abaffc4;}
.marketplace .sd-action-icon,.hotdeal-buy-actions .sd-action-icon {flex:none;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.marketplace .catalog-navigation {box-shadow:0 18px 38px #0004,inset 0 1px #bedcff0d;}
.catalog-page-arrow:focus-visible,.catalog-page-dot:focus-visible {outline-offset:4px!important;}
/* Hot Deals stays three-up, automatic, manual arrows; only color and finish. */
.hotdeal-carousel {isolation:isolate;}
.hotdeal-card,.hotdeal-product {transition:filter .35s ease,border-color .35s ease,box-shadow .35s ease;}
.hotdeal-card:hover,.hotdeal-card:focus-within,.hotdeal-product:hover,.hotdeal-product:focus-within {border-color:#6ab7ff85;box-shadow:0 17px 45px #0006,0 0 25px #168cff13;}
.hotdeal-arrow {transition:transform .25s ease,background .25s ease,border-color .25s ease,box-shadow .25s ease;}
.hotdeal-arrow:not(:disabled):hover {transform:translateY(-2px);border-color:#70bcff;box-shadow:0 7px 22px #168cff38;}
/* Interactive showcase — reduce text glare, preserve 3D proportions. */
.experience-reimagined .journey-step {transition:background .32s ease,border-color .32s ease,box-shadow .32s ease,transform .32s cubic-bezier(.2,.8,.2,1);}
.experience-reimagined .journey-step:focus-visible {outline-offset:5px!important;}
.experience-reimagined .experience-visual {box-shadow:inset 0 1px #d3eaff1c,0 25px 62px #0008,0 0 32px #0c70df13;}
/* Reviews: clarity and gentle hover. */
.review-showcase .review-card,.review-showcase .velox-review {transition:box-shadow .28s,border-color .28s;}
.review-showcase .review-card:hover,.review-showcase .velox-review:hover {border-color:#64a6ff63;box-shadow:0 15px 35px #0006;}
/* CTA button feedback and consistent labels */
.cta-main-button,.cta-text-button {transition:transform .32s cubic-bezier(.2,.8,.2,1),border-color .3s,box-shadow .3s,background .3s;}
.cta-main-button:focus-visible,.btn-shopnow:focus-visible {outline-offset:5px!important;}
/* App screens: preserve checkout dimensions, unify focused inputs and contrast */
.sd-app-screen .sd-panel,.sd-checkout-page .sd-step-panel {box-shadow:0 22px 55px rgba(0,0,0,.30),inset 0 1px rgba(230,245,255,.05);}
.sd-app-screen .sd-btn:hover,.sd-app-screen .sd-btn-subtle:hover {transform:translateY(-2px);}
.sd-app-screen :is(input,textarea,select):focus-visible {border-color:#70bfff!important;box-shadow:0 0 0 3px #2889f928;}
.sd-page-hero h1 {text-wrap:balance;}
/* Footer mini-highlights, matching existing icon sizes and link positions. */
.sd-site-footer {position:relative;background:linear-gradient(180deg,#070b14,#070e1b);}
.sd-site-footer::before {content:"";position:absolute;pointer-events:none;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,transparent,#469eff43,transparent);}
.sd-site-footer .sd-footer-social {transition:transform .28s ease,color .28s,border-color .28s,box-shadow .28s;}
.sd-site-footer .sd-footer-social:hover {transform:translateY(-3px);box-shadow:0 10px 24px #0b65d63d,0 0 18px #308fff1e;}
.sd-site-footer .sd-footer-hot {text-shadow:0 0 12px #ff594328;}
.sd-site-footer .sd-footer-hot::after {content:"";display:inline-block;width:22px;height:1px;vertical-align:middle;background:linear-gradient(90deg,#f65b4c,transparent);box-shadow:0 0 8px #f45a5077;}
/* User preferences and mobile performance */
@media(hover:none),(pointer:coarse){
  .marketplace .product-card:hover,.marketplace .product-card:focus-within {transform:none;}
  .marketplace .product-card::before,.marketplace .product-art::after {display:none;}
  .marketplace .market-buy-btn,.marketplace .market-add-btn {min-height:44px;}
  .marketplace .product-card {backdrop-filter:none;}
}
@media(max-width:650px){
  .marketplace .product-art .product-image {object-fit:contain;}
  .desktop-links a::after{display:none;}
  .marketplace .market-buy-actions .sd-action-icon{width:12px;height:12px;}
  .sd-site-footer .sd-footer-hot::after{width:12px;}
}
@media(prefers-reduced-motion:reduce){
  html {scroll-behavior:auto!important;}
  .marketplace .product-card,.marketplace .product-card::before,.marketplace .product-art::after,
  .header,.icon-btn,.desktop-links a::after,.hotdeal-arrow,.cta-main-button,
  .marketplace .market-buy-btn,.marketplace .market-add-btn {animation:none!important;transition:none!important;}
  .marketplace .product-card:hover {transform:none!important;}
}

/* QA: between phone and desktop widths, switch to compact navigation.
   Previously the desktop links + action icons expanded the sticky header by a few pixels. */
@media (min-width:651px) and (max-width:850px){
 .header .desktop-links{display:none!important}
 .header .menu-toggle{display:grid!important}
 .header .nav-right{margin-left:auto}
 .header .mobile-links{display:none;position:absolute;left:0;right:0;top:82px;padding:12px 21px;gap:0;background:#0b1426;border-bottom:1px solid rgba(102,160,239,.26);box-shadow:0 18px 40px rgba(0,0,0,.35)}
 .header .mobile-links.open{display:grid!important}
 .header .mobile-links a{padding:13px 16px;border-bottom:1px solid rgba(122,164,237,.12);color:#c9dafa;font-size:14px}
}

/* MaX Do creator credit — no changes to the footer layout. */
.sd-site-footer .sd-creator-credit{color:#9db1cf;font-size:12px;letter-spacing:.015em}
.sd-site-footer .sd-creator-credit strong{color:#d2e9ff;font-weight:800}

/* Role-verified owner navigation. Hide unconditionally unless /api/session confirms admin. */
#sdAdminEntry[hidden],#sdAdminMobileEntry[hidden]{display:none!important}
.header .sd-admin-nav-entry{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;
  padding:9px 12px;min-height:39px;border:1px solid rgba(110,181,255,.45);border-radius:12px;
  background:linear-gradient(120deg,rgba(22,54,107,.92),rgba(22,82,139,.7));
  color:#e4f3ff;font-size:12px;font-weight:750;letter-spacing:.1px;
  box-shadow:0 0 20px rgba(56,138,246,.11);transition:border-color .22s,background .22s,transform .22s}
.header .sd-admin-nav-entry:hover{border-color:#76bbff;transform:translateY(-1px);background:#153b66}
.header .sd-admin-nav-entry svg{width:16px;height:16px;stroke:#91cbff;stroke-width:1.8;fill:none}
.header .sd-admin-nav-entry:focus-visible,.header .sd-admin-mobile-entry:focus-visible{outline:2px solid #8bd2ff;outline-offset:3px}
.header .sd-admin-mobile-entry{color:#9fd7ff!important;font-weight:800!important}
@media(min-width:851px) and (max-width:1120px){
 .header .desktop-links{gap:13px!important;margin-right:8px!important}
 .header .sd-admin-nav-entry{padding:8px;font-size:11px;gap:5px}
 .header .sd-admin-nav-entry svg{width:14px;height:14px}
}
@media(max-width:850px){.header .sd-admin-nav-entry{display:none!important}}
@media(prefers-reduced-motion:reduce){.header .sd-admin-nav-entry{transition:none!important;transform:none!important}}
