/* =========================================================
   01-base.css — BeautyTrouvailles Global Styles
   Version: 3.0 — Clean Foundation
   
   Contents:
   1. Reset & Box Model
   2. Typography Base
   3. Links & Media
   4. Container
   5. Section Headers
   6. Utility Classes
   7. Accessibility
   ========================================================= */

/* =========================
   1. RESET & BOX MODEL
   Scoped to prevent theme conflicts
   ========================= */
.bt-custom-product-page {
  font-family: var(--bt-font-body);
  color: var(--bt-text);
  background: var(--bt-bg);
  line-height: var(--bt-leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.bt-custom-product-page *,
.bt-custom-product-page *::before,
.bt-custom-product-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Prevent Blocksy line-height bleed */
.bt-custom-product-page button,
.bt-custom-product-page input,
.bt-custom-product-page select,
.bt-custom-product-page textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: var(--bt-leading-tight);
}

/* =========================
   2. TYPOGRAPHY BASE
   ========================= */
.bt-custom-product-page h1,
.bt-custom-product-page h2,
.bt-custom-product-page h3,
.bt-custom-product-page h4,
.bt-custom-product-page h5,
.bt-custom-product-page h6 {
  font-family: var(--bt-font-title);
  font-weight: 400;
  line-height: var(--bt-leading-tight);
  color: var(--bt-navy);
}

.bt-custom-product-page p {
  margin: 0;
  line-height: var(--bt-leading-relaxed);
}

.bt-custom-product-page strong,
.bt-custom-product-page b {
  font-weight: 800;
}

/* =========================
   3. LINKS & MEDIA
   ========================= */
.bt-custom-product-page a {
  color: inherit;
  text-decoration: none;
  transition: color var(--bt-transition-fast);
}

.bt-custom-product-page a:hover {
  color: var(--bt-pink);
}

.bt-custom-product-page img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Optimize image rendering */
  image-rendering: -webkit-optimize-contrast;
  /* GPU acceleration for images */
  transform: translateZ(0);
  will-change: transform;
}

.bt-custom-product-page svg {
  display: block;
  flex-shrink: 0;
}

/* =========================
   4. CONTAINER
   Note: Full-width overrides are in 05-fullwidth-mobile.css
   ========================= */
.bt-custom-product-page .bt-container {
  width: 100%;
  /* max-width removed - handled by fullwidth CSS */
  padding-inline: var(--bt-container-pad);
}

/* =========================
   5. SECTION HEADERS
   ========================= */
.bt-custom-product-page .bt-section-header {
  display: flex;
  flex-direction: column;
  gap: var(--bt-space-2);
  margin-bottom: var(--bt-space-5);
}

.bt-custom-product-page .bt-section-header h2 {
  font-family: var(--bt-font-title);
  font-size: clamp(20px, 3vw, 28px);
  color: var(--bt-navy);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: var(--bt-space-3);
}

.bt-custom-product-page .bt-section-header h2 i {
  color: var(--bt-pink);
  font-size: 0.85em;
}

.bt-custom-product-page .bt-section-header p {
  color: var(--bt-muted);
  font-size: var(--bt-text-base);
  font-weight: 600;
}

/* =========================
   6. UTILITY CLASSES
   ========================= */
.bt-custom-product-page .bt-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bt-custom-product-page .bt-text-muted {
  color: var(--bt-muted);
}

.bt-custom-product-page .bt-text-pink {
  color: var(--bt-pink);
}

.bt-custom-product-page .bt-text-success {
  color: var(--bt-success);
}

/* =========================
   7. ACCESSIBILITY
   ========================= */
@media (prefers-reduced-motion: reduce) {
  .bt-custom-product-page *,
  .bt-custom-product-page *::before,
  .bt-custom-product-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus styles for keyboard navigation */
.bt-custom-product-page :focus-visible {
  outline: 2px solid var(--bt-pink);
  outline-offset: 2px;
  /* Ensure focus ring is visible */
  outline-width: 2px;
  outline-style: solid;
  /* GPU acceleration for focus transitions */
  will-change: outline-color;
}

.bt-custom-product-page button:focus:not(:focus-visible),
.bt-custom-product-page a:focus:not(:focus-visible) {
  outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bt-custom-product-page {
    --bt-border: rgba(0, 0, 0, 0.3);
  }
}