/* ===== PHX product cards (grid everywhere) =====
   Soft grey card, brand eyebrow + large title, hover: second image, eye (quickview) and dark "Add to cart" pill.
   Scope: Journal grid cards (.product-grid .product-thumb). List view untouched. */
html body .product-grid .product-thumb.phx-pc.phx-pc.phx-pc{background:#fff!important;border:0!important;border-radius:12px!important;box-shadow:none!important;overflow:hidden;padding:0!important;transition:background .25s}
html body .product-grid .product-thumb.phx-pc.phx-pc.phx-pc:hover{background:#fff!important;box-shadow:none!important;transform:none!important}

/* image area */
html body .product-grid .phx-pc.phx-pc.phx-pc .image{position:relative;overflow:visible!important;background:transparent!important;padding:22px 22px 34px!important;margin:0!important;border:0!important;border-radius:0!important}
html body .product-grid .phx-pc.phx-pc.phx-pc .image .product-img,html body .product-grid .phx-pc.phx-pc.phx-pc .image .product-img>div{background:#fff!important}
html body .product-grid .phx-pc.phx-pc.phx-pc .image img{background:transparent!important}
html body .product-grid .phx-pc.phx-pc.phx-pc .image .img-first,html body .product-grid .phx-pc.phx-pc.phx-pc .image .img-second{transition:opacity .35s ease,transform .5s ease}

/* eye / quick view: round white button top-right */
html body .product-grid .phx-pc.phx-pc.phx-pc .quickview-button{position:absolute!important;top:14px!important;right:14px!important;left:auto!important;bottom:auto!important;transform:none!important;z-index:4;width:auto!important;height:auto!important;margin:0!important;padding:0!important;display:block!important}
html body .product-grid .phx-pc.phx-pc.phx-pc .btn-quickview{width:44px!important;height:44px!important;min-width:0!important;padding:0!important;border-radius:50%!important;border:0!important;background:#fff!important;color:#111!important;
  box-shadow:0 2px 10px rgba(0,0,0,.08)!important;display:flex!important;align-items:center;justify-content:center;opacity:0!important;visibility:hidden;transform:translateY(-4px)!important;transition:opacity .25s,transform .25s,visibility .25s,background .2s!important}
html body .product-grid .phx-pc.phx-pc.phx-pc .btn-quickview .btn-text{display:none!important}
html body .product-grid .phx-pc.phx-pc.phx-pc .btn-quickview::before{display:none!important}
html body .product-grid .phx-pc.phx-pc.phx-pc .btn-quickview::after{content:""!important;display:block!important;width:20px;height:20px;background:currentColor;position:static!important;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat}
html body .product-grid .phx-pc.phx-pc.phx-pc .btn-quickview:hover{background:#111!important;color:#fff!important}

/* "Add to cart" pill over the bottom of the image */
.phx-pc-cart{position:absolute;left:50%;bottom:30px;z-index:4;transform:translate(-50%,10px);opacity:0;visibility:hidden;
  display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden;isolation:isolate;
  padding:11px 22px;border:1px solid #111;border-radius:999px;background:#111;color:#fff;cursor:pointer;
  font:600 13.5px/1 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:-.005em;
  transition:opacity .28s ease,transform .28s ease,visibility .28s,color .35s ease}
.phx-pc-cart::before{content:"";position:absolute;z-index:-1;left:-10%;right:-10%;top:100%;height:200%;background:#fff;border-radius:50% 50% 0 0;transition:top .45s cubic-bezier(.4,0,.2,1),border-radius .45s ease}
.phx-pc-cart:hover,.phx-pc-cart:focus-visible{color:#111}
.phx-pc-cart:hover::before,.phx-pc-cart:focus-visible::before{top:-50%;border-radius:0}
.phx-pc-cart.is-loading{pointer-events:none;opacity:.7!important}
.phx-pc-cart svg{display:none}

/* image dots (only when the product has a second image) */
.phx-pc-dots{position:absolute;left:0;right:0;bottom:10px;height:10px;align-items:center;z-index:3;display:flex;justify-content:center;gap:8px;opacity:0;transition:opacity .25s;pointer-events:none}
.phx-pc-dots i{width:6px;height:6px;border-radius:50%;background:#111;box-sizing:border-box;transition:background .2s,border .2s}
.phx-pc-dots i.on{background:transparent;border:1.5px solid #111;width:8px;height:8px;margin-top:-1px}

@media (hover:hover) and (pointer:fine){
  html body .product-grid .phx-pc.phx-pc.phx-pc:hover .btn-quickview{opacity:1!important;visibility:visible;transform:none!important}
  html body .product-grid .phx-pc.phx-pc.phx-pc:hover .phx-pc-cart{opacity:1;visibility:visible;transform:translate(-50%,0)}
  html body .product-grid .phx-pc.phx-pc.phx-pc:hover .phx-pc-dots{opacity:1}
  html body .product-grid .phx-pc.phx-pc.phx-pc.phx-pc2:hover .img-first{opacity:0!important}
  html body .product-grid .phx-pc.phx-pc.phx-pc.phx-pc2:hover .img-second{opacity:1!important}
  html body .product-grid .phx-pc.phx-pc.phx-pc:not(.phx-pc2):hover .image img{transform:scale(1.03)}
}
/* touch screens: no hover -> small round cart button always visible */
@media (hover:none),(pointer:coarse){
  /* touch screens: small round dark bag button, bottom-right of the image */
  .phx-pc-cart{opacity:1;visibility:visible;transform:none;left:auto;right:10px;bottom:10px;width:38px;height:38px;padding:0;font-size:0;border:0;box-shadow:0 2px 8px rgba(0,0,0,.18)}
  .phx-pc-cart svg{display:block;width:18px;height:18px}
  .phx-pc-cart::before{display:none}
  html body .product-grid .phx-pc.phx-pc.phx-pc .btn-quickview{display:none!important}
  html body .product-grid .phx-pc.phx-pc.phx-pc .image{padding:14px 14px 18px!important}
}

/* caption: brand eyebrow + big title + price */
html body .product-grid .phx-pc.phx-pc.phx-pc .caption{background:#fafafa!important;flex:1 1 auto!important;padding:18px 22px 22px!important;margin:0!important;border:0!important;text-align:left!important;align-items:stretch!important}
html body .product-grid .phx-pc.phx-pc.phx-pc .caption>*{text-align:left!important}
.phx-pc-brand{display:block;order:-2;margin:0 0 10px;font:500 11px/1.2 Inter,system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#71717a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .product-grid .phx-pc.phx-pc.phx-pc .stats,html body .product-grid .phx-pc.phx-pc.phx-pc .description,html body .product-grid .phx-pc.phx-pc.phx-pc .rating,html body .product-grid .phx-pc.phx-pc.phx-pc .buttons-wrapper,html body .product-grid .phx-pc.phx-pc.phx-pc .price-tax{display:none!important}
html body .product-grid .phx-pc.phx-pc.phx-pc .name{margin:0 0 12px!important;padding:0!important;min-height:0!important}
html body .product-grid .phx-pc.phx-pc.phx-pc .name a{font:500 17px/1.38 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;letter-spacing:-.01em;color:#111!important;
  display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:normal!important;text-decoration:none!important}
html body .product-grid .phx-pc.phx-pc.phx-pc .name a:hover{text-decoration:underline!important;text-underline-offset:3px}
html body .product-grid .phx-pc.phx-pc.phx-pc .price{margin:auto 0 0!important;padding:0!important;justify-content:flex-start!important;text-align:left!important;font-family:Inter,system-ui,sans-serif!important}
html body .product-grid .phx-pc.phx-pc.phx-pc .price-normal,html body .product-grid .phx-pc.phx-pc.phx-pc .price-new{font-size:18px!important;font-weight:700!important;color:#111!important}
html body .product-grid .phx-pc.phx-pc.phx-pc .price-new{color:#15803d!important}
html body .product-grid .phx-pc.phx-pc.phx-pc .price-old{font-size:13px!important;color:#a1a1aa!important}
@media (max-width:767px){
  html body .product-grid .phx-pc.phx-pc.phx-pc .caption{padding:12px 14px 16px!important}
  html body .product-grid .phx-pc.phx-pc.phx-pc .name a{font-size:14.5px!important}
  .phx-pc-brand{font-size:10px;margin-bottom:6px}
  html body .product-grid .phx-pc.phx-pc.phx-pc .price-normal,html body .product-grid .phx-pc.phx-pc.phx-pc .price-new{font-size:16px!important}
}

/* ===== homepage rails (article.phx-card from the homepage block) ===== */
html body article.phx-card.phx-pc-rail.phx-pc-rail{background:#fff!important;border:0!important;border-radius:12px!important;display:flex!important;flex-direction:column!important;box-shadow:none!important;overflow:hidden;transform:none!important}
html body article.phx-card.phx-pc-rail.phx-pc-rail:hover{box-shadow:none!important;transform:none!important}
html body .phx-pc-rail.phx-pc-rail .phx-card-img{position:relative!important;display:block;background:#fff!important;padding:22px 22px 30px!important;border:0!important;border-radius:0!important}
html body .phx-pc-rail.phx-pc-rail .phx-card-img img{background:transparent!important;transition:transform .5s ease}
html body .phx-pc-rail.phx-pc-rail .phx-card-body{background:#fafafa!important;flex:1 1 auto!important;padding:18px 22px 22px!important}
html body .phx-pc-rail.phx-pc-rail .phx-card-brand{display:block;margin:0 0 10px!important;font:500 11px/1.2 Inter,system-ui,sans-serif!important;letter-spacing:.14em!important;text-transform:uppercase!important;color:#71717a!important;background:none!important;padding:0!important}
html body .phx-pc-rail.phx-pc-rail .phx-card-name{font:500 17px/1.38 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif!important;letter-spacing:-.01em;color:#111!important;
  display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:0!important}
html body .phx-pc-rail.phx-pc-rail .phx-card-price{font:700 18px/1.2 Inter,system-ui,sans-serif!important;color:#111!important}
@media (hover:hover) and (pointer:fine){
  html body .phx-pc-rail.phx-pc-rail .phx-cart{display:none!important}
  .phx-pc-rail:hover .phx-pc-cart{opacity:1;visibility:visible;transform:translate(-50%,0)}
  .phx-pc-rail:hover .phx-card-img img{transform:scale(1.03)}
}
@media (hover:none),(pointer:coarse){
  html body .phx-pc-rail.phx-pc-rail .phx-cart{display:none!important}
  html body .phx-pc-rail.phx-pc-rail .phx-card-img{padding:14px 14px 18px!important}
  html body .phx-pc-rail.phx-pc-rail .phx-card-body{padding:12px 14px 16px!important}
  html body .phx-pc-rail.phx-pc-rail .phx-card-name{font-size:14.5px!important}
}
html body .phx-pc-rail.phx-pc-rail .phx-card-price.phx-pc-sale{color:#15803d!important}
html body .phx-pc-rail.phx-pc-rail .phx-card-price.phx-pc-sale s{color:#a1a1aa!important;font-size:13px!important;font-weight:400!important;margin-right:6px}
html body .product-grid .phx-pc.phx-pc.phx-pc .price>div{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
html body .product-grid .phx-pc.phx-pc.phx-pc .price-new,html body .product-grid .phx-pc.phx-pc.phx-pc .price-old{margin:0!important;padding:0!important}
/* quick view turned off */
html body .product-grid .phx-pc.phx-pc.phx-pc .quickview-button{display:none!important}
