/* =========================================================
   AFMD — SHOP + DYNAMIC PRODUCT SYSTEM
========================================================= */

.shop-page,
.dynamic-product-page{
  background:
    radial-gradient(circle at 50% 0%,rgba(36,133,255,.10),transparent 28%),
    #020913;
}

.shop-hero{
  padding:76px 0 42px;
  text-align:center;
}

.shop-hero .eyebrow{
  margin-bottom:12px;
}

.shop-hero h1{
  max-width:820px;
  margin:0 auto;
  font-size:clamp(44px,5.2vw,76px);
  line-height:.98;
  letter-spacing:-.055em;
  overflow-wrap:anywhere;
}

.shop-hero p{
  max-width:690px;
  margin:20px auto 0;
  color:var(--muted);
  font-size:15px;
  line-height:1.7;
}

.shop-toolbar{
  padding:0 0 24px;
}

.shop-toolbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  border:1px solid var(--border);
  border-radius:13px;
  background:rgba(7,20,33,.72);
}

.shop-count{
  color:#d9e5f1;
  font-size:12px;
  font-weight:700;
}

.shop-filters{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.shop-filter{
  min-height:34px;
  padding:0 12px;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(255,255,255,.025);
  color:var(--muted);
  cursor:pointer;
  font-size:10px;
  font-weight:700;
}

.shop-filter.is-active{
  border-color:rgba(36,133,255,.55);
  background:rgba(36,133,255,.12);
  color:#fff;
}

.shop-grid-section{
  padding:0 0 96px;
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:30px 22px;
}

.product-card{
  position:relative;
  min-width:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(10,27,47,.92),rgba(5,15,26,.92));
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}

.product-card:hover{
  transform:translateY(-4px);
  border-color:rgba(36,133,255,.36);
  box-shadow:0 24px 52px rgba(0,0,0,.22);
}

.product-card__media{
  position:relative;
  aspect-ratio:1 / .94;
  overflow:hidden;
  border-bottom:1px solid var(--border);
  background:
    radial-gradient(circle at 50% 48%,rgba(36,133,255,.16),transparent 42%),
    #06111e;
}

.product-card__media img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:20px;
}

.product-card__type{
  position:absolute;
  top:13px;
  left:13px;
  z-index:2;
  padding:7px 9px;
  border:1px solid rgba(36,133,255,.32);
  border-radius:999px;
  background:rgba(3,13,24,.78);
  color:#9bc8ff;
  font-size:8px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  backdrop-filter:blur(8px);
}

.product-card__body{
  padding:20px 20px 22px;
}

.product-card__body h3{
  margin:0;
  font-size:19px;
  letter-spacing:-.025em;
}

.product-card__body p{
  min-height:62px;
  margin:10px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.65;
}

.product-card__meta{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid var(--border);
}

.product-card__price{
  display:grid;
  gap:3px;
}

.product-card__price small{
  color:var(--faint);
  font-size:8px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.product-card__price strong{
  font-size:14px;
}

.product-card__link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#73b4ff;
  font-size:10px;
  font-weight:800;
}

.product-card__link span{
  transition:transform .18s ease;
}

.product-card:hover .product-card__link span{
  transform:translateX(3px);
}

/* Home catalog section */
.home-products-section{
  padding:92px 0;
  border-top:1px solid rgba(255,255,255,.045);
  background:
    radial-gradient(circle at 50% 0%,rgba(36,133,255,.09),transparent 30%),
    #06101b;
}

.home-products-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:34px;
}

.home-products-head h2{
  max-width:680px;
  margin:0;
  font-size:clamp(34px,3.4vw,50px);
  line-height:1.04;
  letter-spacing:-.04em;
}

.home-products-head p{
  max-width:440px;
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.65;
}

.home-products-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.home-products-grid .product-card:nth-child(n+5){
  display:none;
}

.home-products-actions{
  display:flex;
  justify-content:center;
  margin-top:54px;
}

/* Dynamic product page */
.dynamic-product-loading{
  min-height:60vh;
  display:grid;
  place-items:center;
  color:var(--muted);
}

.dynamic-product-page .product-page{
  min-height:720px;
}

.dynamic-gallery__media{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  background:
    radial-gradient(circle at 50% 50%,rgba(36,133,255,.17),transparent 43%),
    #040d17;
}

.dynamic-gallery__media img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:48px;
}

.dynamic-price-note{
  display:block;
  margin-top:7px;
  color:#7eb8ff;
  font-size:10px;
  font-weight:700;
}

.dynamic-detail-section{
  padding:92px 0;
  border-top:1px solid var(--border);
  background:#06101b;
}

.dynamic-detail-grid{
  display:grid;
  grid-template-columns:.82fr 1.18fr;
  gap:70px;
  align-items:start;
}

.dynamic-detail-copy h2{
  margin:0;
  font-size:clamp(34px,3.6vw,52px);
  line-height:1.04;
  letter-spacing:-.045em;
}

.dynamic-detail-copy p{
  margin:18px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.75;
}

.dynamic-benefits{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.dynamic-benefit{
  min-height:150px;
  padding:22px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(7,20,33,.72);
}

.dynamic-benefit__number{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:rgba(36,133,255,.13);
  color:#78b6ff;
  font-size:10px;
  font-weight:900;
}

.dynamic-benefit h3{
  margin:18px 0 7px;
  font-size:15px;
}

.dynamic-benefit p{
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.6;
}

.dynamic-cta-section{
  padding:72px 0 86px;
  border-top:1px solid var(--border);
  background:
    radial-gradient(circle at 50% 0%,rgba(36,133,255,.11),transparent 35%),
    #030b14;
}

.dynamic-cta-card{
  max-width:900px;
  margin:0 auto;
  padding:42px;
  text-align:center;
  border:1px solid rgba(36,133,255,.24);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(12,32,55,.9),rgba(4,13,23,.9));
}

.dynamic-cta-card h2{
  margin:0;
  font-size:clamp(30px,3.5vw,44px);
  letter-spacing:-.04em;
}

.dynamic-cta-card p{
  max-width:620px;
  margin:15px auto 24px;
  color:var(--muted);
  font-size:13px;
  line-height:1.65;
}

@media(max-width:1050px){
  .home-products-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));}

  .dynamic-detail-grid{
    grid-template-columns:1fr;
    gap:34px;
  }
}

@media(max-width:700px){
  .shop-hero{
    padding:52px 0 30px;
  }

  .shop-toolbar__inner,
  .home-products-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .home-products-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .home-products-grid .product-card:nth-child(n+5){
    display:none;
  }

  .dynamic-benefits{
    grid-template-columns:1fr;
  }
}

@media(max-width:520px){
  .shop-hero h1{
    font-size:clamp(34px,10.5vw,42px);
    line-height:1.02;
  }

  .shop-hero p{
    font-size:13px;
  }

  .product-grid{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .product-card__body{
    padding:14px;
  }

  .product-card__body h3{
    font-size:15px;
  }

  .product-card__body p{
    min-height:0;
    font-size:10px;
  }

  .product-card__media img{
    padding:12px;
  }

  .product-card__meta{
    align-items:flex-start;
    flex-direction:column;
  }

  .product-card__link{font-size:9px;}

  .dynamic-cta-card{
    padding:28px 20px;
  }
}

/* Homepage conversion order: trust immediately after the hero, then products. */
@media(min-width:1060px){
  .hero{
    height:calc(100svh - 150px) !important;
    min-height:640px !important;
    display:grid;
    grid-template-rows:minmax(0,1fr) auto;
  }
  .hero-grid{
    min-height:0 !important;
    height:100%;
    padding-top:10px;
    padding-bottom:6px;
  }
}

.home-trust{
  position:relative;
  overflow:hidden;
  padding:24px 0;
  border:0;
  background:linear-gradient(180deg,rgba(4,16,29,.04),rgba(10,34,60,.58));
  box-shadow:none;
}

.home-trust > p{
  margin:0 0 17px;
  color:#86a0bc;
  font-size:9px;
  font-weight:800;
  letter-spacing:.19em;
  text-align:center;
  text-transform:uppercase;
}

.home-trust__marquee{
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
}

.home-trust__track{
  width:max-content;
  display:flex;
  animation:home-trust-scroll 28s linear infinite;
}

.home-trust__group{
  min-width:100vw;
  display:grid;
  grid-template-columns:repeat(5,minmax(150px,1fr));
  align-items:center;
  justify-items:center;
  gap:clamp(34px,6vw,94px);
  padding-inline:clamp(50px,8vw,124px);
}

.home-trust__group img{
  width:min(188px,15vw);
  height:28px;
  object-fit:contain;
  filter:grayscale(1) invert(1) brightness(1.7);
  opacity:.76;
}

.home-trust__wordmark{display:block;color:#dce7f2;white-space:nowrap;line-height:1;opacity:.82}
.home-trust__wordmark--mens{font-family:Arial Black,Arial,sans-serif;font-size:19px;font-weight:900;letter-spacing:-.08em;text-transform:uppercase}
.home-trust__wordmark--playboy{font-family:Arial,sans-serif;font-size:17px;font-weight:900;letter-spacing:.04em}
.home-trust__wordmark--esquire{font-family:Georgia,serif;font-size:23px;font-weight:700;font-style:italic;letter-spacing:-.08em}

@keyframes home-trust-scroll{to{transform:translateX(-50%)}}

.home-products-section--priority{
  padding:104px 0 74px;
  border-top:0 !important;
  box-shadow:none;
}

@media(prefers-reduced-motion:reduce){
  .home-trust__track{animation-play-state:paused}
}

@media(max-width:700px){
  .home-trust{padding:20px 0}
  .home-trust__group{grid-template-columns:repeat(5,128px);gap:28px;padding-inline:28px}
  .home-trust__group img{width:122px;height:22px}
  .home-trust__wordmark--mens{font-size:15px}
  .home-trust__wordmark--playboy{font-size:14px}
  .home-trust__wordmark--esquire{font-size:19px}
  .home-products-section--priority{padding:72px 0 58px}
}

/* =========================================================
   FLAT ECOMMERCE CATALOG — VALYX-INSPIRED HIERARCHY
========================================================= */

.product-card{
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

.product-card:hover{
  transform:none;
  border-color:transparent;
  box-shadow:none;
}

.product-card__media{
  display:block;
  aspect-ratio:1 / 1;
  overflow:hidden;
  border:0;
  border-radius:16px;
  background:#06111e;
}

.product-card__media img{
  width:100%;
  height:100%;
  padding:0;
  object-fit:cover;
  transition:transform .3s ease;
}

.product-card:hover .product-card__media img{transform:scale(1.018)}
.shop-page .product-card__media img{
  object-position:center;
  transform:scale(1.08);
}
.shop-page .product-card:hover .product-card__media img{transform:scale(1.105)}

/* Product detail galleries use edge-to-edge product art, matching the Ridge presentation. */
.dynamic-gallery__media img{
  padding:0 !important;
  object-fit:cover !important;
  object-position:center !important;
}

.product-card__type,.product-card__body > p,.product-card__meta{display:none}

.product-card__body{padding:14px 0 0}
.product-card__body h3{margin:11px 0 0;font-size:18px;line-height:1.3}

.stock-pill{
  width:max-content;
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:28px;
  padding:0 11px;
  border-radius:999px;
  background:rgba(32,211,101,.10);
  color:#73e5a0;
  font-size:10px;
  font-weight:700;
}

.stock-pill i{width:7px;height:7px;border-radius:50%;background:#20d365}

.product-card__standalone-price{
  display:block;
  margin-top:8px;
  color:var(--muted);
  font-size:13px;
  font-weight:500;
}

.product-card__actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-top:18px;
}

.product-action{
  min-width:0;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  cursor:pointer;
  text-align:center;
  font-size:10px;
  font-weight:800;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}

.product-action:hover{transform:translateY(-1px)}
.product-action--primary{border-color:#f5f7fa;background:#f5f7fa;color:#07111f}
.product-action--secondary{background:transparent;color:#f5f7fa}
.product-action--secondary:hover{border-color:#2485ff;background:rgba(36,133,255,.09)}

.shop-hero{padding:44px 0 22px}
.shop-hero h1{font-size:clamp(34px,3.5vw,44px)}
.shop-hero p{margin-top:13px;line-height:1.55}
.shop-toolbar{padding-bottom:18px}
.shop-toolbar__inner{padding:4px 0 12px;border:0;border-radius:0;background:transparent}
.dynamic-detail-copy h2,.dynamic-cta-card h2{font-size:clamp(28px,2.8vw,39px)}
.dynamic-product-page .product-buybox h1{font-size:clamp(34px,3.5vw,46px)}

@media(max-width:700px){
  .home-products-section{padding:64px 0}
  .home-products-head{margin-bottom:24px}
  .home-products-head h2{font-size:clamp(29px,8vw,38px)}
  .shop-hero{padding:34px 0 18px}
  .shop-hero h1{font-size:clamp(30px,8vw,36px)}
  .shop-toolbar__inner{gap:10px}
  .product-card__body h3{font-size:15px}
  .product-card__actions{grid-template-columns:1fr;gap:7px;margin-top:14px}
  .product-action{min-height:40px;padding:0 7px;font-size:8px}
  .stock-pill{min-height:24px;padding:0 8px;font-size:8px}
  .product-card__standalone-price{font-size:11px}
}

@media(max-width:420px){
  .product-grid,.home-products-grid{gap:24px 10px}
  .product-card__media{border-radius:11px}
}
