/* Phazora V9 — Scoped storefront enhancements. Original V8 styles remain intact. */
/* 1. Hover polish: catalog cards and category banners. */
.products-modern .pm-grid > .product-card,
.products-modern .group-modal .product-card {
  transition: transform .28s cubic-bezier(.2,.8,.2,1), border-color .28s ease,
              box-shadow .28s ease !important;
}
@media (hover:hover) and (pointer:fine) {
  .products-modern .pm-grid > .product-card:hover,
  .products-modern .pm-grid > .product-card:focus-visible {
    transform:translateY(-5px) scale(1.008) !important;
    border-color:rgba(226,77,255,.94) !important;
    box-shadow:0 0 0 1px rgba(209,46,248,.5),0 0 27px rgba(191,14,255,.29),
               0 0 45px rgba(110,0,166,.14),inset 0 0 27px rgba(160,11,230,.09) !important;
  }
  .products-modern .group-modal .product-card:hover {
    border-color:rgba(226,77,255,.86) !important;
    box-shadow:0 0 0 1px rgba(209,46,248,.34),0 0 25px rgba(191,14,255,.25) !important;
  }
  .phazora-category-home .ph-category-banner:hover .ph-category-banner-art img {
    transform:scale(1.04);
  }
}
.phazora-category-home .ph-category-banner-art img { transition:transform .55s cubic-bezier(.2,.8,.2,1); }
/* 2. Subtle page reveals. Real category links remain normal, working URLs. */
@keyframes ph-v9-reveal { from {opacity:.12;transform:translateY(13px)} to {opacity:1;transform:translateY(0)} }
.phazora-category-home .ph-category-banner {animation:ph-v9-reveal .52s cubic-bezier(.2,.8,.2,1) both;}
.phazora-category-home .ph-category-banner:nth-child(2) {animation-delay:.07s;}
.phazora-category-home .ph-category-banner:nth-child(3) {animation-delay:.14s;}
.phazora-category-home .ph-category-banner:nth-child(4) {animation-delay:.21s;}
.products-modern .engx-hero-inner {animation:ph-v9-reveal .4s ease both;}
.products-modern .ph-category-nav {animation:ph-v9-reveal .43s .07s ease both;}
.products-modern #pmGrid {animation:ph-v9-reveal .44s .13s ease both;}
/* 3. Existing main hero crown gets a soft purple pulse. */
@keyframes ph-v9-crown-glow {
  0%,100% { filter:drop-shadow(0 0 9px rgba(195,19,255,.32)) drop-shadow(0 0 17px rgba(141,0,221,.15)); }
  50% { filter:drop-shadow(0 0 18px rgba(227,91,255,.65)) drop-shadow(0 0 33px rgba(176,7,235,.36)); }
}
.section-hero .logo-mark img { animation:ph-v9-crown-glow 4.5s ease-in-out infinite; }
/* 4. Additional lightweight purple particles in the homepage hero only. */
.section-hero .ph-v9-particle-field {position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:3;}
.section-hero .ph-v9-particle {position:absolute;left:var(--ph-x);top:var(--ph-y);height:var(--ph-size);width:var(--ph-size);border-radius:50%;background:radial-gradient(circle,#eeacff 0%,#b82be7 45%,transparent 75%);box-shadow:0 0 10px rgba(187,53,255,.32);opacity:var(--ph-opacity);animation:ph-v9-drift var(--ph-duration) ease-in-out var(--ph-delay) infinite alternate;will-change:transform;}
@keyframes ph-v9-drift { from{transform:translate3d(0,8px,0)} to{transform:translate3d(10px,-24px,0)} }
/* 5. Browser-only Recently Viewed panel. */
.ph-recent-section { max-width:1280px !important; width: min(92%,1280px) !important; margin:42px auto 75px !important; padding:25px clamp(14px,2.5vw,30px) 19px !important; background:linear-gradient(122deg,rgba(43,11,55,.66) 0%,rgba(12,6,18,.97) 48%,rgba(28,7,34,.89) 100%);border:1px solid rgba(197,43,241,.39);border-radius:19px;color:white;box-shadow:0 12px 32px rgba(0,0,0,.23);font-family:Poppins,sans-serif;}
.ph-recent-section .ph-recent-top {display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px;}
.ph-recent-section .ph-recent-kicker {display:block;color:#dc8bf5;letter-spacing:.15em;font-size:10px;font-weight:800;margin:0 0 8px;}
.ph-recent-section #ph-recent-heading {font-family:Poppins,sans-serif;font-weight:900;font-size:clamp(21px,2.5vw,28px);letter-spacing:-.025em;margin:0 0 4px;line-height:1.25;color:#fff;}
.ph-recent-section .ph-recent-orbit {color:#ce44f8;display:inline-block;margin-right:3px;}
.ph-recent-section .ph-recent-count {font-size:12px;letter-spacing:0;color:#d576f1;font-weight:800;vertical-align:middle;}
.ph-recent-section .ph-recent-subtitle {margin:0;color:#aa9eaf;font-size:12px;}
.ph-recent-section .ph-recent-clear {color:#dbcae3;background:rgba(100,22,123,.21);border:1px solid rgba(194,59,226,.45);border-radius:9px;min-height:37px;padding:8px 14px;font:750 12px Poppins,sans-serif;cursor:pointer;}
.ph-recent-section .ph-recent-clear:hover,.ph-recent-section .ph-recent-clear:focus-visible {color:#fff;background:rgba(147,29,183,.4);border-color:#d65cef;}
.ph-recent-section .ph-recent-clear[hidden] {display:none!important;}
.ph-recent-section .ph-recent-list {display:flex;gap:14px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#77308c transparent;padding:4px 2px 13px;min-height:202px;}
.ph-recent-section .ph-recent-card {position:relative;flex:0 0 187px;width:187px;display:flex;flex-direction:column;border:1px solid rgba(159,56,192,.42);border-radius:13px;overflow:hidden;background:linear-gradient(#16091d,#0b080d);transition:transform .2s,border-color .2s,box-shadow .2s;}
.ph-recent-section .ph-recent-card:hover {border-color:#d442f9;transform:translateY(-2px);box-shadow:0 0 19px rgba(155,16,201,.19);}
.ph-recent-section .ph-recent-card-main {display:flex;flex-direction:column;flex:1;min-width:0;color:white;text-decoration:none!important;}
.ph-recent-section .ph-recent-card-main:hover {color:white;}
.ph-recent-section .ph-recent-card-img {width:100%;height:115px;background:radial-gradient(circle at center,#321038,#0a0610);display:flex;align-items:center;justify-content:center;overflow:hidden;}
.ph-recent-section .ph-recent-card-img img {display:block;width:100%;height:100%;object-fit:contain;padding:7px;}
.ph-recent-section .ph-recent-placeholder {font-size:35px;color:#c044df;}
.ph-recent-section .ph-recent-card-copy {padding:12px 12px 14px;display:flex;flex-direction:column;gap:7px;flex:1;}
.ph-recent-section .ph-recent-card-name {font-size:12px;font-weight:800;line-height:1.38;min-height:34px;overflow-wrap:anywhere;}
.ph-recent-section .ph-recent-card-price {font-size:12px;font-weight:800;color:#e38af8;margin-top:auto;}
.ph-recent-section .ph-recent-card-cta {display:flex;align-items:center;justify-content:center;gap:6px;background:linear-gradient(100deg,rgba(81,10,103,.76),rgba(111,9,149,.82));border:1px solid rgba(191,54,226,.32);border-radius:8px;padding:8px;color:#fff;font-size:11px;font-weight:850;margin-top:6px;}
.ph-recent-section .ph-recent-remove {position:absolute;top:7px;right:7px;z-index:2;width:29px;height:29px;line-height:1;color:#fff;background:rgba(17,6,21,.89);border:1px solid rgba(222,128,255,.52);border-radius:50%;cursor:pointer;font-size:18px;display:grid;place-items:center;}
.ph-recent-section .ph-recent-remove:hover {background:#64207c;}
.ph-recent-section .ph-recent-empty {display:flex;width:100%;min-height:194px;align-items:center;justify-content:center;flex-direction:column;border:1px dashed rgba(185,58,224,.33);border-radius:12px;gap:7px;text-align:center;padding:20px;color:#ac9ab8;}
.ph-recent-section .ph-recent-empty > span {font-size:30px;color:#b33cdc;line-height:1.2;}
.ph-recent-section .ph-recent-empty strong {color:#fff;font-size:14px;}
.ph-recent-section .ph-recent-empty p {font-size:12px;margin:0;color:#a99ab1;}
.ph-recent-section .ph-recent-note {display:flex;align-items:center;gap:8px;color:#95879c;font-size:11px;margin:9px 0 0;line-height:1.55;}
.ph-recent-section .ph-recent-note-dot {width:7px;height:7px;flex:0 0 7px;background:#aa34d4;border-radius:50%;}
@media(max-width:600px) {.ph-recent-section {width:calc(100% - 28px)!important;margin:27px auto 45px!important;padding:20px 13px 14px!important;}.ph-recent-section .ph-recent-card {flex-basis:157px;width:157px;}.ph-recent-section .ph-recent-card-img {height:102px;}.ph-recent-section #ph-recent-heading {font-size:21px;}.ph-recent-section .ph-recent-top {gap:12px;}}
@media(prefers-reduced-motion:reduce) {
  .products-modern .pm-grid > .product-card,.products-modern .group-modal .product-card,.phazora-category-home .ph-category-banner-art img,.ph-recent-section .ph-recent-card {transition:none!important;}
  .products-modern .engx-hero-inner,.products-modern .ph-category-nav,.products-modern #pmGrid,.phazora-category-home .ph-category-banner,.section-hero .logo-mark img,.section-hero .ph-v9-particle {animation:none!important;}
  .products-modern .pm-grid > .product-card:hover,.ph-recent-section .ph-recent-card:hover {transform:none!important;}
}
