/**
 * MAT Computers LLC — Supplemental Styles v2
 * Product description content, gallery lightbox, sort select,
 * landscape/reduced-motion helpers.
 */

/* ============================================================
   GOOGLE FONTS — Inter + Playfair Display
   (also loaded via functions.php wp_enqueue_style)
   ============================================================ */

/* ============================================================
   PRODUCT FULL DESCRIPTION (WP the_content)
   ============================================================ */
.product-full-description {
  max-width: 760px;
}
.product-full-description h2,
.product-full-description h3,
.product-full-description h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
  color: var(--ink);
}
.product-full-description h2 { font-size: var(--text-xl); }
.product-full-description h3 { font-size: var(--text-lg); }
.product-full-description p {
  font-size: var(--text-base);
  color: var(--ink-50);
  line-height: 1.85;
  margin-bottom: var(--sp-4);
}
.product-full-description ul,
.product-full-description ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: var(--sp-5);
}
.product-full-description li {
  font-size: var(--text-base);
  color: var(--ink-50);
  line-height: 1.75;
  margin-bottom: var(--sp-2);
}
.product-full-description strong {
  color: var(--ink);
  font-weight: 600;
}
.product-full-description a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-full-description a:hover { opacity: 0.7; }

/* ============================================================
   SHOP SORT SELECT
   ============================================================ */
.shop-sort-select {
  height: 38px;
  padding: 0 var(--sp-8) 0 var(--sp-4);
  border: 1.5px solid var(--ink-04);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-50);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' viewBox='0 0 10 6'%3E%3Cpath stroke='%23636366' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E")
    no-repeat right 0.9rem center / 10px auto,
    var(--white);
  transition: border-color var(--t-fast) var(--ease-out);
  letter-spacing: -0.01em;
}
.shop-sort-select:hover { border-color: var(--ink-08); }
.shop-sort-select:focus { border-color: var(--ink); outline: none; }

/* ============================================================
   GALLERY LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease-out);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--r-lg);
  transform: scale(0.96);
  transition: transform var(--t-slow) var(--ease-spring);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.lightbox-overlay.open img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
  line-height: 1;
  backdrop-filter: blur(8px);
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

/* ============================================================
   AFFILIATE DISCLOSURE
   ============================================================ */
.affiliate-disclosure {
  font-size: var(--text-xs);
  color: var(--ink-15);
  line-height: 1.65;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--ink-04);
  margin-top: var(--sp-5);
}

/* ============================================================
   HERO — landscape + very short viewport fix
   ============================================================ */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-slider { min-height: 100svh; }
  .hero-slide__title { font-size: 2.5rem; }
  .hero-slide__subtitle { display: none; }
}

/* ============================================================
   SECTION DIVIDER utility
   ============================================================ */
.divider {
  height: 1px;
  background: var(--ink-04);
  margin-block: var(--sp-4);
}

/* ============================================================
   BADGE variants
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  height: 22px;
  padding-inline: var(--sp-3);
  border-radius: var(--r-full);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge--dark { background: var(--ink); color: var(--white); }
.badge--light { background: var(--ink-02); color: var(--ink-50); }
.badge--outline { background: transparent; border: 1.5px solid var(--ink-08); color: var(--ink-50); }
