/* ==========================================================================
   Component: datpro_product_detail
   Shared shell for the 5 product detail pages (/san-pham/<slug>/). Reuses as
   much of the existing system as possible on purpose:

     .dp-page-hero(--with-visual)   hero (this file only widens the visual col)
     .dp-text-image                 overview / value text+media rows
     .dp-values / .dp-numbered      key capabilities
     .dp-flow                       "how it works" step strip
     .dp-empty-state                DAT LITE's minimal status page
     .dp-cta                        closing CTA strip
     .dp-tags / .dp-tag             capability chips + status badge

   Only truly new patterns live here: a wider hero visual column, the
   "Product Experience" device-frame composition, a status/availability
   panel, and the Related Products row. Nothing here is a "mini website" —
   every value comes from tokens.css, no new color/font/radius/shadow.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero — product pages get more room for the visual (55–62%) than the
   default page-hero split (46%). Combined-class selector beats the single
   -class rule in page-hero.css on specificity, so page-hero.css itself is
   never touched.
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
  .dp-product-hero.dp-page-hero--with-visual .dp-page-hero__inner {
    grid-template-columns: minmax(0, 41fr) minmax(0, 59fr);
  }
}

.dp-product-hero__status {
  display: inline-flex;
  margin-bottom: var(--sp-4);
}

/* --------------------------------------------------------------------------
   .dp-product-visual — "Product Experience" section: one lead screenshot,
   optionally 1–2 supporting shots. Reuses .dp-device / .dp-device--phone
   from device-frame.css (the same frame language as every other page) —
   this file only supplies the layout around them.
   -------------------------------------------------------------------------- */

.dp-product-visual__lead {
  display: grid;
  place-items: center;
}

.dp-product-visual__lead .dp-device {
  width: 100%;
  max-width: 54rem;
}

.dp-product-visual__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  align-items: start;
}

.dp-product-visual__shot figcaption {
  margin-top: var(--sp-3);
  color: var(--dp-text-subtle);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

/* Mobile-first products (DATCARE+, DAT CAR): a main phone + a smaller
   secondary phone side by side, instead of the landscape 2-up gallery. */
.dp-product-visual--phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.dp-product-visual--phones .dp-device--phone {
  max-width: 15rem;
}

.dp-product-visual__shot--secondary .dp-device--phone {
  max-width: 11.5rem;
}

.dp-product-visual__shot--secondary figcaption {
  text-align: center;
}

@media (max-width: 767px) {
  .dp-product-visual__gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .dp-product-visual--phones .dp-device--phone {
    max-width: 9.5rem;
  }

  .dp-product-visual__shot--secondary .dp-device--phone {
    max-width: 7.5rem;
  }
}

/* --------------------------------------------------------------------------
   .dp-product-status — honest "current build / in development" panel.
   Deliberately plainer than .dp-empty-state (which reads as "nothing here
   yet"): this is "something real, just not released yet".
   -------------------------------------------------------------------------- */

.dp-product-status {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  max-width: 42rem;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--dp-surface);
  border: 1px solid var(--dp-border);
  border-radius: var(--r-lg);
}

.dp-product-status__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--dp-blue-50);
  color: var(--dp-blue);
}

.dp-product-status__icon svg {
  width: 22px;
  height: 22px;
}

.dp-product-status__title {
  margin-bottom: var(--sp-2);
  font-size: var(--fs-h4);
}

.dp-product-status__desc {
  color: var(--dp-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   .dp-product-related — "Khám phá sản phẩm khác", max 3 items. Not a
   commerce card: icon, name, one-line descriptor, arrow — nothing else.
   -------------------------------------------------------------------------- */

.dp-product-related {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-3);
}

.dp-product-related__item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: clamp(1.125rem, 1.8vw, 1.5rem);
  background: var(--dp-bg);
  border: 1px solid var(--dp-border);
  border-radius: var(--r-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.dp-product-related__item:hover {
  border-color: var(--dp-blue-200);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.dp-product-related__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.dp-product-related__icon svg {
  width: 22px;
  height: 22px;
}

/* Same gradient values as the Homepage ecosystem cards / Products page
   "in development" strip — one identity per product, reused, not redefined. */
.dp-product-related__icon--enterprise {
  background: linear-gradient(155deg, #3d92e8 8%, var(--dp-product-enterprise) 92%);
}
.dp-product-related__icon--care {
  background: linear-gradient(155deg, #17b268 8%, var(--dp-product-care) 92%);
}
.dp-product-related__icon--language {
  background: linear-gradient(155deg, #fba733 8%, var(--dp-product-language) 92%);
}
.dp-product-related__icon--car {
  background: linear-gradient(155deg, #ec4b3b 8%, var(--dp-product-car) 92%);
}
.dp-product-related__icon--lite {
  background: linear-gradient(155deg, #6f8496 8%, #4a5c6d 92%);
}
.dp-product-related__icon--kids {
  background: linear-gradient(155deg, #b98bf0 8%, var(--dp-product-kids) 92%);
}
.dp-product-related__icon--life {
  background: linear-gradient(155deg, #f0cc7c 8%, var(--dp-product-life) 92%);
}

.dp-product-related__body {
  flex: 1;
  min-width: 0;
}

.dp-product-related__name {
  color: var(--dp-text);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}

.dp-product-related__desc {
  margin-top: 2px;
  color: var(--dp-text-muted);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.dp-product-related__arrow {
  flex: none;
  color: var(--dp-text-subtle);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.dp-product-related__arrow svg {
  width: 18px;
  height: 18px;
}

.dp-product-related__item:hover .dp-product-related__arrow {
  color: var(--dp-blue);
  transform: translateX(3px);
}

@media (min-width: 768px) {
  .dp-product-related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
