/* Product page additions for Yutaka3DLab
   Loads after assets/css/styles.css so it can reuse the global variables.
*/

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding-top: 28px;
  color: var(--muted);
  font-size: .88rem;
}

.product-breadcrumb a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.product-breadcrumb a:hover {
  text-decoration: underline;
}

.product-hero {
  padding: 42px 0 88px;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 68px;
  align-items: center;
}

.product-hero-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.product-hero-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}

.product-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.9rem);
  line-height: 1;
  letter-spacing: -.052em;
}

.product-subtitle {
  margin: 16px 0 0;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: .01em;
}

.product-lead {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.compatibility-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.compatibility-chip strong {
  color: var(--brand);
  font-size: .75rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.compatibility-chip span {
  font-weight: 700;
}

.product-checks {
  display: grid;
  gap: 10px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.product-checks li {
  position: relative;
  padding-left: 28px;
}

.product-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 900;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.product-note {
  margin: 18px 0 0;
  color: #7a8393;
  font-size: .88rem;
}

/* Benefits */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.benefit-card {
  min-height: 210px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.benefit-number {
  display: block;
  margin-bottom: 28px;
  color: var(--brand);
  font-size: 1.9rem;
  font-weight: 850;
  letter-spacing: -.03em;
}

.benefit-card h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -.025em;
}

.benefit-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Installation */
.install-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 52px;
  align-items: start;
}

.install-diagram {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.install-diagram img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}

.install-methods {
  display: grid;
  gap: 14px;
}

.install-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.install-card > span {
  color: var(--brand);
  font-weight: 850;
}

.install-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.install-card p {
  margin: 7px 0 0;
  color: var(--muted);
}

.install-card small {
  display: block;
  margin-top: 8px;
  color: #7a8393;
  line-height: 1.5;
}

/* Real installation photography */
.installation-photo-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}

.photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.photo-card-wide {
  grid-row: span 2;
}

.photo-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: contain;
  background: #fff;
}

.photo-card-wide img {
  min-height: 618px;
}

.photo-card figcaption,
.gallery-card figcaption {
  padding: 12px 16px 15px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 650;
}

/* Package contents */
.package-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 60px;
  align-items: center;
}

.package-copy h2,
.support-panel h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.package-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.package-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.package-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.package-list span {
  color: var(--brand);
  font-weight: 850;
}

.package-warning {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: .92rem;
}

.package-warning strong {
  color: var(--text);
}

.package-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.package-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}

/* Gallery */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.gallery-card a {
  display: block;
  background: #fff;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  transition: transform .2s ease;
}

.gallery-card a:hover img {
  transform: scale(1.015);
}

/* Purchase split */
.purchase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.purchase-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.purchase-panel h3 {
  margin: 0;
  font-size: 1.45rem;
}

.purchase-panel > p:not(.shop-label) {
  color: var(--muted);
}

.purchase-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 24px;
}

.platform-button-disabled {
  cursor: default;
  opacity: .62;
  background: #f4f5f8;
  border-style: dashed;
}

.platform-button-disabled:hover {
  transform: none;
  border-color: var(--line);
}

/* Support */
.product-support {
  padding-top: 40px;
}

.support-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.support-panel > div {
  max-width: 720px;
}

.support-panel p:not(.eyebrow) {
  color: var(--muted);
}

.product-disclaimer {
  padding-top: 22px;
}

.product-disclaimer p {
  margin: 0;
  color: #818a99;
  font-size: .84rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 980px) {
  .product-hero-grid {
    gap: 38px;
  }

  .install-layout,
  .package-grid {
    gap: 36px;
  }

  .photo-card-wide img {
    min-height: 500px;
  }
}

@media (max-width: 740px) {
  .product-breadcrumb {
    padding-top: 18px;
  }

  .product-hero {
    padding: 26px 0 62px;
  }

  .product-hero-grid,
  .install-layout,
  .package-grid,
  .purchase-grid {
    grid-template-columns: 1fr;
  }

  .product-hero-image {
    order: -1;
  }

  .product-hero-copy h1 {
    font-size: clamp(2.5rem, 12vw, 3.8rem);
  }

  .product-actions .button {
    width: 100%;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    min-height: auto;
  }

  .benefit-number {
    margin-bottom: 14px;
  }

  .installation-photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-card-wide {
    grid-row: auto;
  }

  .photo-card img,
  .photo-card-wide img {
    min-height: 0;
    aspect-ratio: 4 / 3;
    object-fit: contain;
  }

  .product-gallery {
    grid-template-columns: 1fr;
  }

  .purchase-links {
    grid-template-columns: 1fr;
  }

  .support-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-panel .button {
    width: 100%;
  }
}

/* Product video */
.product-video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #000;
}

.purchase-links-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .purchase-links-three {
    grid-template-columns: 1fr;
  }
}

/* HomePod Mini product video layouts */
.video-feature-card,
.product-video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.video-feature-card {
  max-width: 960px;
  margin: 0 auto;
}

.video-feature-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.product-video-card video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.video-card-copy {
  padding: 20px 22px 24px;
}

.video-card-copy h3 {
  margin: 0;
  font-size: 1.18rem;
}

.video-card-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 740px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}
