/* ANYSOFTHUB home polish.
   Load AFTER design-v3-8.min.css and mobile.css.
   Part 1 (all widths): the Physical OEM & Boxed Software section.
   Part 2 (>= 901px only): product-card refinements for desktop. */

:root {
  --hp-navy: #0f1f3d;
  --hp-navy-2: #16305c;
  --hp-navy-3: #213f72;
  --hp-sky: #7fb0ff;
  --hp-kraft: #f2b45a;      /* cardboard-box amber, used only for the physical range */
  --hp-ink: #14223d;
  --hp-mute: #5a6a86;
  --hp-paper: #f3f6fc;
  --hp-line: #e3eaf6;
}

/* ===== Part 1: Physical OEM section ===== */

.as-physical-oem-section {
  padding: 40px 40px 34px;
  border-radius: 24px;
  background: var(--hp-navy);
  color: #fff;
}
.as-physical-oem-section .sectitle { align-items: flex-end; margin-bottom: 26px; }
.as-physical-oem-section .sectitle h2 { color: #fff; }
.as-physical-oem-section .eyebrow { color: var(--hp-kraft); }
.as-physical-oem-section .as-sec-desc { max-width: 560px; margin-top: 10px; color: #b9c8e6; }
.as-physical-oem-section .as-btn-explore-physical {
  flex: none;
  padding: 12px 20px;
  border: 1.5px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}
.as-physical-oem-section .as-btn-explore-physical:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* the banner: real text next to a shelf of the actual boxes in stock */
.as-pbox {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
  padding: 34px 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
  background: linear-gradient(135deg, var(--hp-navy-2), #0b1830);
}
.as-pbox-copy h3 {
  margin: 0 0 20px;
  max-width: 460px;
  color: #fff;
  font: 700 28px/1.2 'Outfit', 'DM Sans', system-ui, sans-serif;
  letter-spacing: -.01em;
}
.as-pbox-points { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.as-pbox-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #d3def2;
  font-size: 15.5px;
  line-height: 1.4;
}
.as-pbox-points .ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(242, 180, 90, .14);
  color: var(--hp-kraft);
}
.as-pbox-points svg { width: 21px; height: 21px; }

.as-pbox-shelf {
  position: relative;
  height: 250px;
  min-width: 0;
}
.as-pbox-shelf::after {            /* floor shadow under the boxes */
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 6px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .45), transparent);
}
.as-pbox-img {                      /* framed like prints, so any photo background looks intentional */
  position: absolute;
  bottom: 24px;
  width: 31%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  border: 5px solid #fff;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 24px rgba(0, 0, 0, .38);
}
.as-pbox-img-1 { left: 7%;   transform: rotate(-6deg); }
.as-pbox-img-2 { left: 34%;  width: 35%; z-index: 2; bottom: 30px; }
.as-pbox-img-3 { right: 7%;  transform: rotate(6deg); }
.as-pbox-shelf.has-1 .as-pbox-img-1 { left: 32%; width: 36%; transform: none; }
.as-pbox-shelf.has-2 .as-pbox-img-1 { left: 16%; width: 33%; transform: rotate(-5deg); }
.as-pbox-shelf.has-2 .as-pbox-img-2 { left: 48%; width: 35%; }

/* product grid: four across, white cards on the navy panel */
.as-physical-oem-section .products.as-physical-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.as-physical-oem-section .catalog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--hp-ink);
  box-shadow: 0 10px 28px rgba(3, 10, 24, .28);
}
.as-physical-oem-section .catalog-image {
  position: relative;
  margin: 10px 10px 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--hp-paper);
  aspect-ratio: 1 / 1;
}
.as-physical-oem-section .catalog-image img { width: 100%; height: 100%; object-fit: contain; }
.as-physical-oem-section .as-physical-badge { white-space: nowrap; }
.as-physical-oem-section .catalog-info { display: flex; flex: 1; flex-direction: column; padding: 14px 16px 16px; }
.as-physical-oem-section .catalog-info h3 {
  display: -webkit-box;
  margin: 4px 0 8px;
  overflow: hidden;
  font-size: 15.5px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.as-physical-oem-section .catalog-info h3 a { color: var(--hp-ink); text-decoration: none; }
.as-physical-oem-section .catalog-meta { margin: 0 0 12px; color: var(--hp-mute); font-size: 13px; }
.as-physical-oem-section .catalog-price { margin-top: auto; padding-bottom: 12px; }
.as-physical-oem-section .catalog-add { width: 100%; justify-content: center; border-radius: 11px; }

.as-physical-oem-section .as-physical-cta-row { margin-top: 26px; text-align: center; }
.as-physical-oem-section .as-btn-view-all-physical {
  display: inline-block;
  padding: 13px 26px;
  border: 1.5px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.as-physical-oem-section .as-btn-view-all-physical:hover { background: #fff; color: var(--hp-navy); }

/* narrower screens: panel tightens, banner stacks, grid goes 2 across */
@media (max-width: 1100px) {
  .as-physical-oem-section .products.as-physical-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .as-physical-oem-section { padding: 26px 16px 24px; border-radius: 20px; }
  .as-physical-oem-section .sectitle { align-items: flex-start; }
  .as-physical-oem-section .as-btn-explore-physical { display: none; }   /* the bottom link covers it */
  .as-pbox { grid-template-columns: 1fr; padding: 24px 20px 8px; }
  .as-pbox-copy h3 { font-size: 22px; }
  .as-pbox-shelf { height: 170px; }
  .as-physical-oem-section .products.as-physical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .as-physical-oem-section .catalog-info { padding: 12px; }
}

/* ===== Part 2: desktop product cards (>= 901px) ===== */
@media (min-width: 901px) {
  .products .catalog-card {
    border: 1px solid var(--hp-line);
    border-radius: 16px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  .products .catalog-card:hover {
    transform: translateY(-3px);
    border-color: #c9d8f3;
    box-shadow: 0 14px 30px rgba(15, 31, 61, .12);
  }
  .as-physical-oem-section .products .catalog-card { border: 0; }

  /* the box art already carries a "DIGITAL LICENCE" strip, so the extra pill repeats it */
  .products .catalog-card .as-digital-badge { display: none; }

  .products .catalog-price del,
  .products .catalog-price s,
  .products .catalog-price .old,
  .products .catalog-price .regular { color: #8b97ad; font-weight: 500; }
}

@media (prefers-reduced-motion: reduce) {
  .products .catalog-card { transition: none; }
}
