/* Interaction-only additions. Main section geometry is the scoped ShopWise reference. */
body.product-storefront {margin:0;background:#fff;}
/* Card geometry and responsive column counts are shared with the homepage. */
.shopwise-main .hero .product-carousel {width:100%;max-width:100%;margin-inline:0;}
.shopwise-main .hero .product-carousel .swiper-slide {
 width:calc((100% - (var(--product-full-columns) - 1) * var(--product-card-gap)) / var(--product-full-columns));
 height:auto;display:flex;
}
.shopwise-main .hero .product-carousel .swiper-slide>.x-product-card {width:100%;}
.shopwise-main .product-card-grid {display:grid;grid-template-columns:repeat(var(--product-full-columns),minmax(0,1fr));gap:var(--product-card-gap);margin-top:24px;}
.shopwise-main .product-card-slot {min-width:0;}
.shopwise-main [hidden] {display:none!important;}
.shopwise-main [data-save-product]:focus-visible {outline:2px solid var(--accent-color);outline-offset:3px;}
.shopwise-main .product-code-label {text-decoration:none!important;}
.shopwise-main .hero .product-tile.horizontal .tile-image img {height:160px;object-fit:contain;}
.shopwise-main .hero .business-tile .tile-info h4 {margin-bottom:9px;color:#30353b;font-size:12px;line-height:1.5;font-weight:400;letter-spacing:var(--tracking-heading,.055em);}
.shopwise-main .hero .business-tile .tile-image .tile-badge.accent {background:#e6f4f2;}
.shopwise-main .hero .business-tile .tile-info .tile-desc {margin-bottom:10px;color:#747c84;font-size:10px;font-weight:300;line-height:1.85;}
.shopwise-main .hero .business-link {display:inline-flex;align-items:center;gap:4px;align-self:flex-end;margin-top:auto;color:#21588d;font-size:10px;font-weight:400;line-height:16px;}
.shopwise-main .hero .business-link i {font-size:11px;transition:transform .2s;}
.shopwise-main .hero .business-link:hover i {transform:translateX(3px);}
.shopwise-main .hero .business-link:focus-visible {outline:2px solid var(--accent-color);outline-offset:4px;}
.shopwise-main .hero-solution-slot {display:flex;}
.shopwise-main .hero-solution-slot>.solution-card {width:100%;}
.shopwise-main #product-categories {scroll-margin-top:calc(var(--site-header-height,74px) + 24px);}
.shopwise-main .hero .business-tile.horizontal {border-radius:12px;border-color:#e0e7ef;background:#f1f5fb;}
.shopwise-main .hero .business-tile.horizontal .tile-image {min-height:160px;border-radius:0;}
.shopwise-main .hero .business-tile.horizontal .tile-info {display:flex;flex-direction:column;height:100%;padding:12px 16px;background:#f1f5fb;}
.shopwise-main .hero .business-tile.horizontal .tile-badge {font-size:10px;line-height:15px;padding:2px 8px;}
.shopwise-main .best-sellers .product-title {min-height:42px;}
.shopwise-main .product-feedback {position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:1100;background:#10243d;color:#fff;border-radius:6px;padding:12px 24px;font-size:14px;box-shadow:0 6px 24px #10243d26;}
@media(prefers-reduced-motion:reduce){
 .shopwise-main *, .shopwise-main *::before, .shopwise-main *::after {scroll-behavior:auto!important;transition-duration:0s!important;animation-duration:0s!important;}
}

/* Product artwork fills the existing card viewport without stretching. */
.shopwise-main .hero .product-tile .tile-image,
.shopwise-main .hero .product-carousel .slide-card .slide-card-image {
  padding: 0;
  overflow: hidden;
}
.shopwise-main .hero .product-tile .tile-image img,
.shopwise-main .hero .product-tile.horizontal .tile-image img,
.shopwise-main .hero .product-carousel .slide-card .slide-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.shopwise-main .product-domains {
  display:grid;
  grid-template-columns:repeat(var(--product-full-columns),minmax(0,1fr));
  gap:var(--product-card-gap);
  margin-top:24px;
}
.shopwise-main .product-domains .product-domain {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:120px;
  padding:13px 12px;
  gap:4px;
  border-radius:8px;
  background:var(--accent-color);
  color:#fff;
  text-align:center;
}
.shopwise-main .product-domain > svg {width:26px;height:26px;flex:none;}
.shopwise-main .product-domain-name {font-size:14px;line-height:1.45;font-weight:700;overflow-wrap:anywhere;}
.shopwise-main .product-domain-count {font-size:12px;line-height:1.5;font-weight:400;color:#e5eeee;}
.shopwise-main .product-domains .product-domain {
  transition:transform .24s cubic-bezier(.2,.7,.3,1),box-shadow .24s ease;
}
.shopwise-main .product-domain > svg {transition:transform .24s cubic-bezier(.2,.7,.3,1);}
@media(hover:hover) and (pointer:fine){
  .shopwise-main .product-domains .product-domain:hover {
    box-shadow:0 9px 18px rgb(4 64 60 / 23%);
  }
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .shopwise-main .product-domains .product-domain:is(:hover,:focus-visible) {transform:translateY(-5px);}
  .shopwise-main .product-domain:is(:hover,:focus-visible) > svg {transform:translateY(-2px) scale(1.1);}
}
.shopwise-main .product-domains .product-domain:focus-visible {outline:2px solid #145851;outline-offset:3px;}
@media(max-width:575px){
  .shopwise-main .product-domains {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
}

.shopwise-main .product-category-more {
  display:block;
  margin:16px auto 0;
  padding:7px 16px;
  border:1px solid var(--accent-color);
  border-radius:6px;
  background:#fff;
  color:#12655d;
  font:400 12px/1.5 var(--cn-font);
  cursor:pointer;
}
.shopwise-main .product-category-more:hover {background:#e6f4f2;}
.shopwise-main .product-category-more:focus-visible {outline:2px solid #145851;outline-offset:3px;}

.shopwise-main .hero .trust-indicators .indicator {position:relative;isolation:isolate;}
.shopwise-main .hero .trust-indicators .indicator::before {
  content:"";
  position:absolute;
  inset:-5px -6px;
  z-index:-1;
  border-radius:5px;
  background:#dcefeb;
  opacity:0;
  pointer-events:none;
}
@media(prefers-reduced-motion:no-preference){
  .shopwise-main .hero .trust-indicators .indicator {
    animation:product-indicator-in .35s cubic-bezier(.2,.7,.3,1) backwards;
  }
  .shopwise-main .hero .trust-indicators .indicator:nth-child(2) {animation-delay:.06s;}
  .shopwise-main .hero .trust-indicators .indicator:nth-child(3) {animation-delay:.12s;}
  .shopwise-main .hero .trust-indicators .indicator:nth-child(4) {animation-delay:.18s;}
  .shopwise-main .hero .trust-indicators .indicator::before {transition:opacity .2s ease;}
  .shopwise-main .hero .trust-indicators .indicator i {transition:color .2s ease,transform .24s ease;}
  .shopwise-main .hero .trust-indicators .indicator span {transition:color .2s ease;}
}
@media(hover:hover) and (pointer:fine){
  .shopwise-main .hero .trust-indicators .indicator:hover::before {opacity:1;}
  .shopwise-main .hero .trust-indicators .indicator:hover i,
  .shopwise-main .hero .trust-indicators .indicator:hover span {color:#12655d;}
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .shopwise-main .hero .trust-indicators .indicator:nth-child(1):hover i {transform:translateY(-3px) scale(1.12);}
  .shopwise-main .hero .trust-indicators .indicator:nth-child(2):hover i {transform:scale(1.18);}
  .shopwise-main .hero .trust-indicators .indicator:nth-child(3):hover i {transform:translateY(-3px) rotate(-9deg);}
  .shopwise-main .hero .trust-indicators .indicator:nth-child(4):hover i {transform:translateX(3px) rotate(8deg);}
}
@keyframes product-indicator-in {
  from {opacity:0;transform:translateY(5px);}
  to {opacity:1;transform:translateY(0);}
}

/* Keep the two service banner actions equal in each responsive arrangement. */
.shopwise-main .call-to-action .banner-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: fit-content;
  max-width: 100%;
}
.shopwise-main .call-to-action .banner-actions > a { justify-content: center; }
/* Match the two hero actions, including the secondary action's icon and border. */
.shopwise-main .hero .action-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 352px); }
.shopwise-main .hero .action-group > :is(.btn-primary-action, .btn-ghost-action) { box-sizing: border-box; justify-content: center; min-height: 44px; padding: 10px 16px; white-space: nowrap; }
@media (max-width: 359px) {
  .shopwise-main .hero .action-group { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 577px) and (max-width: 991px) {
  .shopwise-main .call-to-action .banner-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
  .shopwise-main .call-to-action .banner-actions { width: 100%; }
}
