/* ============================================================
   ADASH — Product Category Pages & Product Detail
   ============================================================ */

/* ---- Product Category Pages ---- */
.category-page { padding-top: 8rem; padding-bottom: 4rem; }
.category-page-title {
  font-size: 2.25rem; font-weight: 300; color: var(--blue); margin-bottom: 3rem;
}
.product-grid-4 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px)  { .product-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.product-grid-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px)  { .product-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.product-grid-5 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px)  { .product-grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid-5 { grid-template-columns: repeat(5, 1fr); } }

.product-card {
  background: var(--white);
  border: 1px solid var(--border-100);
  padding: 1.5rem;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none; color: inherit;
}
.product-card:hover { border-color: var(--blue); box-shadow: 0 1px 2px rgba(0,0,0,.05); text-decoration: none; }
.product-card-img {
  height: 160px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; background: #f9fafb; border: 1px solid var(--border-100);
}
.product-card-img.h44 { height: 176px; }
.product-card-img.h32 { height: 128px; }
.product-card-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.product-card-name {
  color: #111827; font-weight: 700; font-size: 0.875rem; text-transform: uppercase;
  transition: color 0.2s;
}
.product-card:hover .product-card-name { color: var(--blue); }
.product-card-sub {
  font-size: 0.875rem; color: var(--text-600); margin-top: 0.5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.badge-ex {
  display: inline-block;
  background: var(--blue); color: var(--white);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  padding: 0.25rem 0.75rem; margin-bottom: 1rem;
}


/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail-page { padding-bottom: 4rem; }

/* Breadcrumb */
.breadcrumb {
  background: #f3f4f6;
  border-bottom: 1px solid var(--border-200);
  padding: 0.75rem 0;
}
.breadcrumb-inner { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.breadcrumb a { color: var(--text-600); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--text-400); }
.breadcrumb-current { color: var(--text-600); }

/* ---- Hero section ---- */
.pd-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border-100);
  padding: 3.5rem 0;
}
.pd-hero-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 3rem; align-items: center;
}
@media (min-width: 1024px) { .pd-hero-grid { grid-template-columns: 1fr 1fr; } }

/* Category label — teal, xs, uppercase, tracking-widest */
.pd-category-label {
  color: var(--teal2); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem;
}

/* Badge */
.product-badge {
  display: inline-block;
  background: var(--blue); color: var(--white);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  padding: 0.25rem 0.75rem; margin-bottom: 1rem;
}
/* Name */
.product-name {
  font-size: 2.25rem; font-weight: 700; color: #111827;
  text-transform: uppercase; letter-spacing: -0.025em; line-height: 1.15;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) { .product-name { font-size: 3rem; } }
/* Subtitle */
.product-subtitle { color: var(--blue); font-size: 1.125rem; font-weight: 300; margin-bottom: 1.5rem; }
/* Description */
.product-desc { color: var(--text-500); font-size: 0.875rem; line-height: 1.625; max-width: 32rem; margin-bottom: 2rem; }
/* Official page button */
.btn-official {
  display: inline-block;
  border: 1px solid #1f2937; color: #1f2937;
  padding: 0.625rem 1.5rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s; text-decoration: none;
}
.btn-official:hover { background: #111827; color: var(--white); text-decoration: none; }

/* Main product image */
.product-main-img {
  background: #f9fafb; border: 1px solid var(--border-200);
  border-radius: 2px; overflow: hidden;
  height: 18rem; display: flex; align-items: center; justify-content: center;
}
@media (min-width: 768px) { .product-main-img { height: 24rem; } }
.product-main-img img { max-height: 100%; max-width: 100%; object-fit: contain; padding: 1.5rem; }

/* Image wrapper for carousel nav buttons */
.pd-main-img-wrap { position: relative; cursor: zoom-in; }

/* Carousel nav buttons */
.pd-img-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.85); border: 1px solid var(--border-200);
  color: #374151; cursor: pointer; padding: 0.5rem;
  border-radius: 50%; line-height: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 10;
}
.pd-img-nav:hover { background: var(--white); }
.pd-img-prev { left: 0.75rem; }
.pd-img-next { right: 0.75rem; }

/* Thumbnail strip */
.product-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; overflow-x: auto; padding-bottom: 4px; }
.product-thumb-btn {
  flex-shrink: 0; width: 56px; height: 56px;
  border: 2px solid var(--border-200); border-radius: 2px; overflow: hidden;
  transition: border-color 0.2s; cursor: pointer; background: none; padding: 0;
}
.product-thumb-btn.active, .product-thumb-btn:hover { border-color: var(--teal2); }
.product-thumb-btn img { width: 100%; height: 100%; object-fit: contain; }

/* ---- Highlights ---- */
.product-highlights { background: #f9fafb; padding: 4rem 0; border-bottom: 1px solid var(--border-100); }
.highlights-title { font-size: 1.5rem; font-weight: 300; color: #1f2937; text-transform: uppercase; margin-bottom: 2.5rem; }
.highlights-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px)  { .highlights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .highlights-grid { grid-template-columns: repeat(4, 1fr); } }
.highlight-card {
  background: var(--white); border: 1px solid var(--border-200);
  padding: 1.25rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.highlight-card:hover { border-color: var(--teal2); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.highlight-bar { width: 2rem; height: 2px; background: var(--teal2); margin-bottom: 1rem; }
.highlight-title { font-size: 0.875rem; font-weight: 700; color: #111827; margin-bottom: 0.5rem; text-transform: uppercase; }
.highlight-desc { font-size: 0.875rem; color: var(--text-600); }

/* ---- Gallery ---- */
.pd-gallery-section {
  background: var(--white); padding: 4rem 0; border-bottom: 1px solid var(--border-100);
}
.gallery-title { font-size: 1.5rem; font-weight: 300; color: #1f2937; text-transform: uppercase; margin-bottom: 2.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  background: #f9fafb; border: 1px solid var(--border-200);
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: zoom-in;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gallery-item:hover { border-color: var(--teal2); box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.gallery-item img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 0.5rem; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* ---- Specifications ---- */
.pd-specs-section {
  background: #f9fafb; padding: 4rem 0; border-bottom: 1px solid var(--border-100);
}
.specs-title { font-size: 1.5rem; font-weight: 300; color: #1f2937; text-transform: uppercase; margin-bottom: 2.5rem; }
.pd-specs-wrap { max-width: 42rem; }
.specs-table { width: 100%; font-size: 0.875rem; border: 1px solid var(--border-200); border-collapse: collapse; }
.specs-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-100); vertical-align: top; }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table tr:nth-child(odd) { background: var(--white); }
.specs-table tr:nth-child(even) { background: #f9fafb; }
.specs-table td:first-child { color: var(--text-600); font-weight: 600; width: 40%; }

/* ---- Related products ---- */
.product-related { background: var(--white); padding: 4rem 0; border-bottom: 1px solid var(--border-100); }
.related-title { font-size: 1.5rem; font-weight: 300; color: #1f2937; text-transform: uppercase; margin-bottom: 2.5rem; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px)  { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card {
  display: flex; align-items: center; gap: 1rem;
  border: 1px solid var(--border-200); padding: 1rem;
  background: var(--white); transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none; color: inherit;
}
.related-card:hover { border-color: var(--blue); box-shadow: 0 1px 2px rgba(0,0,0,.05); text-decoration: none; }
.related-card-img {
  width: 80px; height: 80px; flex-shrink: 0;
  background: #f9fafb; border: 1px solid var(--border-100);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.related-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 0.25rem; }
.related-card-name { font-size: 0.875rem; font-weight: 700; color: #111827; }
.related-card-sub { font-size: 0.75rem; color: var(--text-600); margin-top: 0.25rem; }
.related-card:hover .related-card-name { color: var(--blue); }

/* ---- Product CTA (blue bar) ---- */
.product-cta { background: var(--blue); padding: 3.5rem 0; }
.pd-cta-inner {
  display: flex; flex-direction: column; gap: 1.5rem;
}
@media (min-width: 768px) {
  .pd-cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.product-cta h2 { font-size: 1.5rem; font-weight: 300; color: var(--white); text-transform: uppercase; }
.product-cta p { color: rgba(255,255,255,0.75); font-size: 0.875rem; margin-top: 0.25rem; }
.pd-cta-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* White-on-blue button (Contact Us) */
.pd-cta-blue-btn {
  display: inline-block;
  background: var(--white); color: var(--blue);
  padding: 0.75rem 2rem; font-size: 0.875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  transition: background 0.2s; text-decoration: none;
}
.pd-cta-blue-btn:hover { background: #f3f4f6; text-decoration: none; color: var(--blue); }

/* Outline white button (adash.com) */
.btn-cta-white {
  display: inline-block; border: 1px solid var(--white); color: var(--white);
  padding: 0.75rem 2rem; font-size: 0.875rem; font-weight: 700; text-transform: uppercase;
  transition: background 0.2s, color 0.2s; text-decoration: none;
}
.btn-cta-white:hover { background: var(--white); color: var(--blue); text-decoration: none; }

/* Legacy product detail classes (kept for breadcrumb/etc) */
.product-hero { padding: 3rem 0; }
.product-hero-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) { .product-hero-grid { grid-template-columns: 1fr 1fr; } }
.product-specs { padding: 4rem 0; }
.product-gallery { padding: 4rem 0; border-top: 1px solid var(--border-100); }
.product-cta-inner { text-align: center; }
