/* Phase 380.8.3.4.2.1.1 — Homepage Product Card Layout & Action Precision */

/* Daily deals: six cards on wide desktop; additional products wrap below instead of escaping into a rail. */
body.view-home .home-daily-deals-grid-v380834211{
  position:relative;
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:18px 14px!important;
  align-items:stretch!important;
  overflow:visible!important;
  contain:none!important;
  padding:22px 24px 24px!important;
  background:#fff;
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow);
  max-width:100%;
}
body.view-home .home-daily-deals-grid-v380834211 .home-compact-product-card-v38083421{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  flex:none!important;
  scroll-snap-align:none!important;
  height:100%!important;
  overflow:visible!important;
}
body.view-home .home-daily-deals-grid-v380834211 .home-compact-body-v38083421{height:calc(100% - 176px)!important;}

/* The exact verification mark sits 50% outside and 50% inside the card edge. */
body.view-home .home-compact-product-card-v38083421 .home-compact-verified-corner-v38083421{
  top:-18px!important;
  left:12px!important;
  right:auto!important;
  width:32px!important;
  height:32px!important;
  z-index:70!important;
  overflow:visible!important;
}
body.view-home .home-compact-product-card-v38083421 .home-compact-verified-corner-v38083421 img{
  width:32px!important;
  height:32px!important;
}

/* Compact, accessible commerce controls replace the old text-only quick-view CTA. */
body.view-home .home-compact-actions-v380834211{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  min-height:38px;
  margin-top:1px;
  direction:rtl;
}
body.view-home .home-compact-action-form-v380834211{display:block!important;margin:0!important;min-width:0!important;}
body.view-home .home-compact-action-v380834211{
  position:relative;
  width:100%!important;
  height:38px!important;
  min-width:0!important;
  min-height:38px!important;
  padding:0!important;
  margin:0!important;
  border:1px solid #dbe5f3!important;
  border-radius:12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#1e3a5f!important;
  background:#f8fbff!important;
  box-shadow:none!important;
  cursor:pointer;
  text-decoration:none!important;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease!important;
}
body.view-home .home-compact-action-v380834211 svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
  pointer-events:none;
}
body.view-home .home-compact-action-v380834211:hover,
body.view-home .home-compact-action-v380834211:focus-visible{
  transform:translateY(-2px)!important;
  border-color:#9fb8df!important;
  box-shadow:0 8px 18px rgba(30,64,175,.12)!important;
  outline:3px solid rgba(37,99,235,.16)!important;
  outline-offset:1px!important;
}
body.view-home .home-compact-action-v380834211.is-cart-v380834211{color:#075edb!important;background:#eff6ff!important;border-color:#bfdbfe!important;}
body.view-home .home-compact-action-v380834211.is-select-v380834211{color:#7c3aed!important;background:#f5f3ff!important;border-color:#ddd6fe!important;}
body.view-home .home-compact-action-v380834211.is-favorite-v380834211{color:#be185d!important;background:#fff1f6!important;border-color:#fbcfe8!important;}
body.view-home .home-compact-action-v380834211.is-favorite-v380834211.is-active-v380834211 svg{fill:currentColor!important;}
body.view-home .home-compact-action-v380834211.is-buy-v380834211{
  color:#fff!important;
  background:linear-gradient(135deg,#155eef,#7135e8)!important;
  border-color:transparent!important;
  box-shadow:0 8px 18px rgba(75,67,220,.20)!important;
}
body.view-home .home-compact-action-v380834211.is-disabled-v380834211{color:#94a3b8!important;background:#f1f5f9!important;cursor:not-allowed;}
body.view-home .home-compact-action-v380834211[data-label]:after{
  content:attr(data-label);
  position:absolute;
  inset-inline-start:50%;
  bottom:calc(100% + 7px);
  transform:translate(-50%,4px);
  z-index:90;
  width:max-content;
  max-width:150px;
  padding:6px 8px;
  border-radius:8px;
  background:#0f172a;
  color:#fff;
  font-size:10px;
  font-weight:800;
  line-height:1.3;
  text-align:center;
  white-space:normal;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
}
body.view-home .home-compact-action-v380834211[data-label]:hover:after,
body.view-home .home-compact-action-v380834211[data-label]:focus-visible:after{opacity:1;visibility:visible;transform:translate(-50%,0);}

/* Featured products alone return to the original complete catalog-card authority. */
body.view-home .home-featured-products-scope-v380834211{overflow:visible!important;padding:16px 18px 8px!important;}
body.view-home .home-featured-products-scope-v380834211 .home-featured-products-grid-v3808342{overflow:visible!important;}
body.view-home .home-featured-products-scope-v380834211 .product-card-pro{overflow:visible!important;}
body.view-home .home-featured-products-scope-v380834211 .product-card-pro .card-img-wrap,
body.view-home .home-featured-products-scope-v380834211 .product-card-pro .card-body{overflow:hidden!important;}
body.view-home .home-featured-products-scope-v380834211 .product-card-pro .verified-card-corner-v189381.verified-card-corner-exact-v189382{
  top:-18px!important;
  inset-inline-start:auto!important;
  inset-inline-end:auto!important;
  right:auto!important;
  left:12px!important;
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  min-height:32px!important;
  transform:none!important;
  z-index:70!important;
}
body.view-home .home-featured-products-scope-v380834211 .product-card-pro .verified-card-corner-v189381.verified-card-corner-exact-v189382 img{
  width:32px!important;
  height:32px!important;
}

@media(max-width:1180px){
  body.view-home .home-daily-deals-grid-v380834211{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
}
@media(max-width:980px){
  body.view-home .home-daily-deals-grid-v380834211{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
}
@media(max-width:780px){
  body.view-home .home-daily-deals-grid-v380834211{grid-template-columns:repeat(3,minmax(0,1fr))!important;padding:20px 18px!important;gap:16px 12px!important;}
}
@media(max-width:600px){
  body.view-home .home-daily-deals-grid-v380834211{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:18px 14px!important;gap:16px 10px!important;border-radius:22px;}
  body.view-home .home-daily-deals-grid-v380834211 .home-compact-product-card-v38083421{width:auto!important;min-width:0!important;max-width:none!important;}
  body.view-home .home-daily-deals-grid-v380834211 .home-compact-image-v38083421{height:132px!important;min-height:132px!important;max-height:132px!important;}
  body.view-home .home-daily-deals-grid-v380834211 .home-compact-body-v38083421{height:calc(100% - 132px)!important;min-height:166px!important;}
  body.view-home .home-compact-product-card-v38083421 .home-compact-verified-corner-v38083421{top:-16px!important;left:10px!important;width:28px!important;height:28px!important;}
  body.view-home .home-compact-product-card-v38083421 .home-compact-verified-corner-v38083421 img{width:28px!important;height:28px!important;}
  body.view-home .home-compact-actions-v380834211{gap:6px;}
  body.view-home .home-compact-action-v380834211{height:40px!important;min-height:40px!important;}
  body.view-home .home-compact-action-v380834211[data-label]:after{display:none;}
}
@media(max-width:350px){
  body.view-home .home-daily-deals-grid-v380834211{grid-template-columns:1fr!important;}
}
@media(prefers-reduced-motion:reduce){
  body.view-home .home-compact-action-v380834211{transition:none!important;}
}
