/* Basic Sharp Services — product page template styles
   Loaded only by product/*.html, on top of css/styles.css. */

/* MISSING PRODUCT IMAGE FALLBACK
   When a product photo is absent the img sets .no-image via onerror, so the box
   keeps its dimensions and shows the model name as a branded placeholder rather
   than a broken-image icon. Deliberately says nothing about availability — only
   the photo is missing, the product is still sold. Name comes from data-product. */
.product-image-box.no-image { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; padding: 2rem; text-align: center; }
.product-image-box.no-image::before {
  content: 'Sharp';
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--red);
}
.product-image-box.no-image::after {
  content: attr(data-product);
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1; letter-spacing: 0.02em; color: #6a6a6a;
}

/* ===== PRODUCT TEMPLATE ===== */
.quick-stats { background: var(--red); padding: 1.4rem 4rem; display: grid; grid-template-columns: repeat(5, 1fr); }
.qs-item { text-align: center; border-right: 1px solid rgba(255,255,255,0.2); padding: 0.4rem 1rem; }
.qs-item:last-child { border-right: none; }
.qs-num { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; line-height: 1; color: var(--white); }
.qs-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-top: 0.15rem; }
.product-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; padding: 7rem 4rem; background: var(--gray); }
.product-image-wrap { position: relative; }
.product-image-box { aspect-ratio: 4/5; background: var(--gray-mid); position: relative; overflow: hidden; }
.product-image-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-image-badge { position: absolute; bottom: -1.5rem; right: -1.5rem; width: 7rem; height: 7rem; background: var(--red); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; }
.product-image-badge .badge-bss { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; color: var(--white); line-height: 1; letter-spacing: 0.04em; }
.product-image-badge .badge-sub { font-family: 'Barlow Condensed', sans-serif; font-size: 0.48rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.75); line-height: 1; text-align: center; }
.product-info p { color: #aaa; font-size: 1rem; line-height: 1.85; font-weight: 300; margin-bottom: 1.2rem; }
.product-info p strong { color: var(--white); font-weight: 600; }
.product-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.features-section { padding: 7rem 4rem; background: var(--black); }
.features-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.05); }
.feature-card { background: var(--gray); padding: 2.5rem 2rem; position: relative; overflow: hidden; transition: background 0.3s; }
.feature-card:hover { background: var(--gray-mid); }
.feature-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--red); transform: scaleX(0); transition: transform 0.3s; transform-origin: left; }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon { width: 3rem; height: 3rem; background: rgba(212,43,43,0.1); border: 1px solid rgba(212,43,43,0.25); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1.2rem; }
.feature-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.6rem; color: var(--white); }
.feature-desc { font-size: 0.88rem; color: #666; line-height: 1.7; font-weight: 300; }
.specs-section { padding: 7rem 4rem; background: var(--gray); }
.specs-tabs { display: flex; gap: 0; margin-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.spec-tab { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.8rem 1.8rem; cursor: pointer; color: #555; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s, border-color 0.2s; background: none; border-top: none; border-left: none; border-right: none; }
.spec-tab.active { color: var(--white); border-bottom-color: var(--red); }
.spec-tab:hover { color: #aaa; }
.spec-panel { display: none; }
.spec-panel.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid rgba(255,255,255,0.05); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 0.85rem 1rem; font-size: 0.9rem; line-height: 1.6; vertical-align: top; }
.spec-table td:first-child { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #555; width: 38%; padding-left: 0; }
.spec-table td:last-child { color: #bbb; font-weight: 300; }
.spec-table tr:hover td { background: rgba(212,43,43,0.03); }
.supplies-section { padding: 7rem 4rem; background: var(--black); }
.supplies-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,0.05); margin-top: 3rem; }
.supply-card { background: var(--gray); padding: 2rem; display: flex; align-items: center; gap: 1.5rem; transition: background 0.3s; text-decoration: none; }
.supply-card:hover { background: var(--gray-mid); }
.supply-icon { width: 3.5rem; height: 3.5rem; background: rgba(212,43,43,0.1); border: 1px solid rgba(212,43,43,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.supply-info { flex: 1; }
.supply-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); margin-bottom: 0.25rem; }
.supply-desc { font-size: 0.82rem; color: #666; font-weight: 300; }
.supply-arrow { color: var(--red); font-size: 1rem; opacity: 0.5; transition: opacity 0.2s, transform 0.2s; }
.supply-card:hover .supply-arrow { opacity: 1; transform: translateX(4px); }
@media (max-width: 900px) {
  .quick-stats { grid-template-columns: repeat(3, 1fr); padding: 1.2rem 1.5rem; gap: 0.5rem; }
  .quick-stats .qs-item:nth-child(4) { border-right: 1px solid rgba(255,255,255,0.2); }
  .quick-stats .qs-item:nth-child(3) { border-right: none; }
  .product-overview { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 1.5rem; }
  .features-section, .specs-section, .supplies-section { padding: 4rem 1.5rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .features-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .supplies-grid { grid-template-columns: 1fr; }
  .specs-tabs { overflow-x: auto; }
}
@media (max-width: 500px) {
  .features-grid { grid-template-columns: 1fr; }
  .quick-stats { grid-template-columns: repeat(2, 1fr); }
  .quick-stats .qs-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.2); }
  .quick-stats .qs-item:nth-child(2) { border-right: none; }
}
