/* Pacific Glasses WordPress Theme — Complete CSS Stylesheet */

/* ========================================
   ROOT DESIGN TOKENS & CUSTOM PROPERTIES
   ======================================== */

:root {
  --brand-ink: #143c44;
  --brand-glacier: #3e9e94;
  --brand-bg: #f6f3ec;
  --brand-card: #fffdf8;
  --brand-hairline: #e7e1d6;
  --brand-muted: #7a7568;
  --font-sans: 'Hanken Grotesk', 'Inter', ui-sans-serif, sans-serif;
  --font-serif: 'Fraunces', ui-serif, Georgia, serif;
  --max-w: 72rem;
  --px: 1.5rem;
  --header-h: 4rem;
}

/* ========================================
   BASE RESET & BODY
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--brand-bg);
  color: var(--brand-ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ========================================
   CONTAINER
   ======================================== */

.pg-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ========================================
   LOGO
   ======================================== */

.pg-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pg-logo__plus {
  font-size: 1.1rem;
  color: var(--brand-ink);
  font-weight: 400;
}

.pg-logo__text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand-ink);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.pg-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--brand-hairline);
  background: rgba(255, 253, 248, 0.85);
  backdrop-filter: blur(12px);
}

.pg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--px);
  margin: 0 auto;
  max-width: var(--max-w);
}

.pg-trust-bar {
  background: var(--brand-card);
  border-bottom: 1px solid var(--brand-hairline);
}

.pg-trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 2rem;
  padding: 0.4rem var(--px);
  margin: 0 auto;
  max-width: var(--max-w);
}

.pg-trust-bar__inner span {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brand-ink);
  opacity: 0.7;
  padding: 0.2rem 0.5rem;
}

.pg-nav--desktop {
  display: none;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .pg-nav--desktop {
    display: flex;
  }
}

.pg-nav__link {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(20, 60, 68, 0.55);
  transition: color 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.pg-nav__link:hover {
  color: var(--brand-ink);
}

.pg-nav__shop-wrap {
  position: relative;
}

.pg-nav__dropdown {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  min-width: 200px;
  padding: 0.5rem 0;
  display: none;
  background: var(--brand-card);
  border: 1px solid var(--brand-hairline);
  border-radius: 2px;
  box-shadow: 0 8px 24px -12px rgba(14, 42, 71, 0.18);
  z-index: 100;
}

.pg-nav__dropdown.is-open {
  display: block;
}

.pg-nav__dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(20, 60, 68, 0.7);
  transition: background 150ms ease, color 150ms ease;
}

.pg-nav__dropdown-item:hover {
  background: var(--brand-bg);
  color: var(--brand-ink);
}

.pg-nav__dropdown-divider {
  height: 1px;
  background: var(--brand-hairline);
  margin: 0.25rem 0;
}

.pg-nav__chevron {
  transition: transform 200ms ease;
  font-size: 10px;
}

.pg-nav__link--has-dropdown.is-active .pg-nav__chevron {
  transform: rotate(180deg);
}

.pg-header__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pg-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--brand-ink);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.pg-cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  background: var(--brand-glacier);
  color: white;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

.pg-mobile-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

@media (min-width: 768px) {
  .pg-mobile-toggle {
    display: none;
  }
}

.pg-mobile-menu {
  display: none;
  border-top: 1px solid var(--brand-hairline);
  background: var(--brand-card);
}

.pg-mobile-menu.is-open {
  display: block;
}

@media (min-width: 768px) {
  .pg-mobile-menu {
    display: none !important;
  }
}

.pg-mobile-menu__nav {
  display: flex;
  flex-direction: column;
  padding: 1rem var(--px);
}

.pg-mobile-menu__shop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pg-mobile-menu__link {
  padding: 0.75rem 0;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(20, 60, 68, 0.55);
  display: block;
  transition: color 150ms ease;
}

.pg-mobile-menu__link:hover {
  color: var(--brand-ink);
}

.pg-mobile-menu__expand {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: rgba(20, 60, 68, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.pg-mobile-menu__sub {
  display: none;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--brand-hairline);
  flex-direction: column;
}

.pg-mobile-menu__sub.is-open {
  display: flex;
}

.pg-mobile-menu__sub-link {
  padding: 0.5rem 0;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(20, 60, 68, 0.55);
  display: block;
  transition: color 150ms ease;
}

.pg-mobile-menu__sub-link:hover {
  color: var(--brand-ink);
}

/* ========================================
   HAIRLINE DIVIDER
   ======================================== */

.pg-hairline {
  height: 1px;
  background: var(--brand-hairline);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-editorial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-ink);
  background: var(--brand-ink);
  color: var(--brand-card);
  padding: 0.95rem 2rem;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  text-decoration: none;
}

.btn-editorial:hover {
  background: transparent;
  color: var(--brand-ink);
}

.btn-editorial-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-ink);
  background: transparent;
  color: var(--brand-ink);
  padding: 0.85rem 1.75rem;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 200ms ease, color 200ms ease;
  text-decoration: none;
}

.btn-editorial-outline:hover {
  background: var(--brand-ink);
  color: var(--brand-card);
}

.btn-editorial-inverse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-card);
  background: var(--brand-card);
  color: var(--brand-ink);
  padding: 0.95rem 2rem;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 200ms ease, color 200ms ease;
  text-decoration: none;
}

.btn-editorial-inverse:hover {
  background: transparent;
  color: var(--brand-card);
}

/* ========================================
   SECTION HEADERS
   ======================================== */

.pg-section-header {
  margin-top: 1.5rem;
}

/* The row inside the section header: title on left, "View all" link on right */
.pg-section-header__row {
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

/* "View all →" right-slot link — hidden on mobile, shown on md+ */
.pg-section-header__right {
  display: none;
  flex-shrink: 0;
  padding-bottom: 0.2rem;
}

@media (min-width: 768px) {
  .pg-section-header__right {
    display: block;
  }
}

.pg-section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(20, 60, 68, 0.3);
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 200ms ease;
}
.pg-section-link:hover {
  border-color: var(--brand-ink);
}

.pg-section-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--brand-glacier);
  line-height: 1;
}

.pg-section-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brand-glacier);
}

.pg-section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--brand-ink);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  margin-top: 0.5rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.pg-hero {
  position: relative;
  width: 100%;
  height: 86vh;
  min-height: 640px;
  overflow: hidden;
}

.pg-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.92);
}

.pg-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 60, 68, 0.72) 0%, rgba(20, 60, 68, 0.42) 45%, rgba(20, 60, 68, 0.08) 85%);
}

.pg-hero__content {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  max-width: 72rem;
  padding: 0 var(--px);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .pg-hero__content {
    padding-bottom: 6rem;
  }
}

.pg-hero__text {
  max-width: 48rem;
  display: flex;
  flex-direction: column;
}

.pg-hero__pre {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pg-hero__line {
  height: 1px;
  width: 2.5rem;
  background: rgba(255, 255, 255, 0.7);
}

.pg-hero__pre span {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.85);
}

.pg-hero__heading {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: white;
  font-size: clamp(2.75rem, 7.2vw, 6rem);
  margin-top: 1.75rem;
}

.pg-hero__heading em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.pg-hero__sub {
  margin-top: 1.75rem;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.pg-hero__ctas {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
}

/* "HOW IT WORKS →" secondary text link in hero */
.pg-hero__text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  color: white;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 200ms ease, color 200ms ease;
}
.pg-hero__text-link:hover {
  border-color: white;
  color: white;
}

/* ========================================
   WHY SECTION (VALUE PROPS)
   ======================================== */

.pg-why {
  background: var(--brand-bg);
  padding-top: 5rem;
}

@media (min-width: 768px) {
  .pg-why {
    padding-top: 7rem;
  }
}

.pg-why__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--brand-hairline);
  border-bottom: 1px solid var(--brand-hairline);
  divide-y: 1px solid var(--brand-hairline);
}

@media (min-width: 768px) {
  .pg-why__grid {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: none;
    divide-y: none;
    border-right: 1px solid var(--brand-hairline);
  }

  .pg-why__grid > :not(:last-child) {
    border-right: 1px solid var(--brand-hairline);
  }
}

.pg-why__item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.5rem;
}

@media (min-width: 768px) {
  .pg-why__item {
    padding: 2.5rem;
  }
}

.pg-why__item-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pg-why__item-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--brand-glacier);
  line-height: 1;
  flex-shrink: 0;
}

.pg-why__item-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: rgba(20, 60, 68, 0.7);
  stroke-width: 1.5;
  flex-shrink: 0;
}

.pg-why__item-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--brand-ink);
}

.pg-why__item-copy {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--brand-muted);
  max-width: 20rem;
}

/* ========================================
   FEATURED FRAMES GRID
   ======================================== */

.pg-featured {
  background: var(--brand-bg);
  padding: 6rem 0;
}

@media (min-width: 768px) {
  .pg-featured {
    padding: 8rem 0;
  }
}

.pg-featured__grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem 2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max-w);
  padding: 0 var(--px);
}

@media (min-width: 640px) {
  .pg-featured__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pg-featured__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   PRODUCT CARD
   ======================================== */

.pg-card {
  display: flex;
  flex-direction: column;
}

.pg-card__img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: white;
  padding: 1.5rem;
  transition: background 300ms ease;
}

.pg-card__img-wrap:hover {
  background: var(--brand-card);
}

.pg-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 500ms ease;
}

.pg-card:hover .pg-card__img {
  transform: scale(1.03);
}

.pg-card__info {
  padding-top: 1.25rem;
}

.pg-card__brand {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brand-glacier);
}

.pg-card__name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--brand-ink);
  margin-top: 0.5rem;
}

.pg-card__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pg-card__price {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-ink);
}

.pg-card__compare {
  font-size: 0.75rem;
  color: var(--brand-muted);
  text-decoration: line-through;
}

.pg-card__save {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-glacier);
}

.pg-card__atc {
  margin-top: 1.25rem;
  border-top: 1px solid var(--brand-hairline);
  padding: 0.75rem 0;
  width: 100%;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-ink);
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  font-family: var(--font-sans);
}

.pg-card__atc:hover {
  background: var(--brand-ink);
  color: var(--brand-card);
}

/* ========================================
   SHOP BY SHAPE SECTION
   ======================================== */

.pg-shapes {
  background: var(--brand-bg);
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .pg-shapes {
    padding-bottom: 8rem;
  }
}

.pg-shapes__grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--brand-hairline);
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max-w);
  padding: 0 var(--px);
}

@media (min-width: 640px) {
  .pg-shapes__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .pg-shapes__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.pg-shape-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--brand-bg);
  padding: 2.5rem 1rem;
  transition: background 150ms ease;
}

.pg-shape-item:hover {
  background: var(--brand-card);
}

.pg-shape-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 3.5rem;
  color: rgba(20, 60, 68, 0.8);
  transition: color 150ms ease;
}

.pg-shape-item:hover .pg-shape-item__icon {
  color: var(--brand-glacier);
}

.pg-shape-item__label {
  margin-top: 1.5rem;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-ink);
  text-align: center;
}

/* ========================================
   PRESCRIPTION CTA BAND
   ======================================== */

.pg-cta-band {
  background: var(--brand-ink);
}

.pg-cta-band__inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 72rem;
  padding: 5rem var(--px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .pg-cta-band__inner {
    padding: 7rem var(--px);
    grid-template-columns: repeat(12, 1fr);
  }
}

@media (min-width: 768px) {
  .pg-cta-band__text {
    grid-column: span 8;
  }
}

.pg-cta-band__eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brand-glacier);
}

.pg-cta-band__heading {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: white;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  margin-top: 1.25rem;
}

.pg-cta-band__sub {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 36rem;
}

.pg-cta-band__action {
  display: flex;
  align-items: flex-end;
}

@media (min-width: 768px) {
  .pg-cta-band__action {
    grid-column: span 4;
    justify-content: flex-end;
  }
}

/* ========================================
   SHOP PAGE LAYOUT
   ======================================== */

.pg-shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max-w);
  padding: 0 var(--px);
}

@media (min-width: 768px) {
  .pg-shop-layout {
    grid-template-columns: 16rem 1fr;
  }
}

.pg-shop-sidebar {
  padding-top: 0.5rem;
}

.pg-filters-heading {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brand-ink);
  margin-bottom: 1.25rem;
}

.pg-filter-section {
  margin-bottom: 1.5rem;
}

.pg-filter-section__title {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-muted);
  margin-bottom: 0.75rem;
}

.pg-filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--brand-ink);
  cursor: pointer;
  padding: 0.2rem 0;
}

.pg-filter-radio,
.pg-filter-check {
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--brand-hairline);
  background: var(--brand-card);
  appearance: none;
  cursor: pointer;
  flex-shrink: 0;
}

.pg-filter-radio {
  border-radius: 50%;
}

.pg-filter-radio:checked,
.pg-filter-check:checked {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
}

.pg-filter-radio:checked {
  box-shadow: inset 0 0 0 2px var(--brand-card);
}

.pg-shop-main {
  min-width: 0;
}

.pg-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.pg-shop-count {
  font-size: 0.875rem;
  color: var(--brand-muted);
}

.pg-shop-sort {
  font-size: 0.875rem;
  color: var(--brand-ink);
  border: 1px solid var(--brand-hairline);
  background: var(--brand-card);
  padding: 0.5rem 0.75rem;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-sans);
}

.pg-shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem 2rem;
}

@media (min-width: 640px) {
  .pg-shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pg-shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   PRODUCT DETAIL PAGE (PDP)
   ======================================== */

.pg-pdp {
  margin-left: auto;
  margin-right: auto;
  max-width: 72rem;
  padding: var(--px);
  padding-top: 1.5rem;
  padding-bottom: 5rem;
}

.pg-pdp__back {
  font-size: 0.875rem;
  color: var(--brand-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  transition: color 150ms ease;
}

.pg-pdp__back:hover {
  color: var(--brand-ink);
}

.pg-pdp__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .pg-pdp__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pg-pdp__image-wrap {
  background: var(--brand-card);
  padding: 3rem;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-pdp__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pg-pdp__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pg-pdp__brand {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brand-glacier);
}

.pg-pdp__name {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--brand-ink);
}

.pg-pdp__meta {
  font-size: 0.875rem;
  color: var(--brand-muted);
}

.pg-pdp__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.pg-pdp__price {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--brand-ink);
}

.pg-pdp__compare {
  font-size: 0.875rem;
  color: var(--brand-muted);
  text-decoration: line-through;
}

.pg-pdp__save {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-glacier);
}

.pg-pdp__section-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-ink);
  margin-bottom: 0.75rem;
  margin-top: 1rem;
}

.pg-pdp__colors {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pg-color-swatch {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--brand-hairline);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-ink);
  background: var(--brand-card);
  cursor: pointer;
  border-radius: 2px;
  transition: all 150ms ease;
}

.pg-color-swatch.is-selected {
  border-color: var(--brand-ink);
  box-shadow: 0 0 0 1px var(--brand-ink);
}

.pg-pdp__option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.pg-option-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--brand-hairline);
  background: var(--brand-card);
  cursor: pointer;
  border-radius: 2px;
  text-align: left;
  transition: all 150ms ease;
  width: 100%;
}

.pg-option-tile__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-ink);
}

.pg-option-tile__hint {
  font-size: 0.75rem;
  color: var(--brand-muted);
}

.pg-option-tile.is-selected {
  border-color: var(--brand-ink);
  box-shadow: 0 0 0 1px var(--brand-ink);
}

/* ========================================
   INNER PAGES (ABOUT, HOW-IT-WORKS, FAQ)
   ======================================== */

.pg-inner-page {
  margin-left: auto;
  margin-right: auto;
  max-width: 48rem;
  padding: var(--px) 0;
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.pg-inner-page--wide {
  max-width: 60rem;
}

.pg-inner-page__h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
}

.pg-inner-page__intro {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--brand-ink);
}

.pg-inner-page__body {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 0 var(--px);
}

.pg-inner-page__section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-ink);
}

.pg-inner-page__section p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--brand-muted);
}

/* How it works steps */

.pg-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .pg-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pg-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pg-step {
  background: var(--brand-card);
  padding: 1.5rem;
  border-radius: 2px;
  box-shadow: 0 1px 4px -1px rgba(14, 42, 71, 0.06);
  transition: box-shadow 200ms ease;
}

.pg-step:hover {
  box-shadow: 0 4px 12px -2px rgba(14, 42, 71, 0.1);
}

.pg-step__num {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-glacier);
}

.pg-step__title {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-ink);
}

.pg-step__text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--brand-muted);
}

/* Prescription guide */

.pg-rx-guide {
  margin-top: 3rem;
  background: var(--brand-card);
  padding: 1.5rem;
  border-radius: 2px;
  box-shadow: 0 1px 4px -1px rgba(14, 42, 71, 0.06);
}

@media (min-width: 640px) {
  .pg-rx-guide {
    padding: 2.5rem;
  }
}

.pg-rx-guide dl {
  border-bottom: 1px solid var(--brand-hairline);
}

.pg-rx-guide .pg-rx-row {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--brand-hairline);
}

.pg-rx-guide .pg-rx-row:first-child {
  padding-top: 0;
}

.pg-rx-guide .pg-rx-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

@media (min-width: 640px) {
  .pg-rx-guide .pg-rx-row {
    display: flex;
    gap: 2rem;
  }
}

.pg-rx-row dt {
  font-weight: 600;
  color: var(--brand-ink);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .pg-rx-row dt {
    width: 12rem;
  }
}

.pg-rx-row dd {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--brand-muted);
}

@media (min-width: 640px) {
  .pg-rx-row dd {
    margin-top: 0;
  }
}

/* FAQ accordion */

.pg-faq-wrap {
  margin-top: 2.5rem;
  border: 1px solid var(--brand-hairline);
  background: var(--brand-card);
  border-radius: 2px;
  padding: 0.25rem;
  box-shadow: 0 4px 24px -6px rgba(14, 42, 71, 0.06);
}

.pg-accordion-item {
  border-bottom: 1px solid var(--brand-hairline);
  padding: 0 1.25rem;
}

.pg-accordion-item:last-child {
  border-bottom: none;
}

.pg-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-ink);
  font-family: var(--font-sans);
}

.pg-accordion-trigger__icon {
  width: 1rem;
  height: 1rem;
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.pg-accordion-item.is-open .pg-accordion-trigger__icon {
  transform: rotate(180deg);
}

.pg-accordion-content {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--brand-muted);
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.pg-accordion-item.is-open .pg-accordion-content {
  max-height: 500px;
}

.pg-accordion-content__inner {
  padding-bottom: 1.25rem;
}

/* ========================================
   FOOTER
   ======================================== */

.pg-footer {
  border-top: 1px solid var(--brand-hairline);
  background: var(--brand-bg);
}

.pg-footer__inner {
  padding: 3.5rem var(--px);
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max-w);
}

@media (min-width: 768px) {
  .pg-footer__inner {
    padding: 5rem var(--px);
  }
}

.pg-footer__top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .pg-footer__top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.pg-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pg-footer__tagline {
  font-size: 0.875rem;
  color: var(--brand-muted);
}

.pg-footer__links {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .pg-footer__links {
    flex-direction: row;
    gap: 4rem;
  }
}

.pg-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pg-footer__col-heading {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-muted);
}

.pg-footer__col nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pg-footer__col a {
  font-size: 0.875rem;
  color: var(--brand-muted);
  transition: color 150ms ease;
}

.pg-footer__col a:hover {
  color: var(--brand-ink);
}

.pg-footer__bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--brand-hairline);
}

@media (min-width: 768px) {
  .pg-footer__bottom {
    margin-top: 5rem;
  }
}

.pg-footer__bottom p {
  font-size: 0.875rem;
  color: var(--brand-muted);
}

/* ========================================
   WOOCOMMERCE OVERRIDES
   ======================================== */

/* Widen cart and checkout to full site container */
.woocommerce-cart .pg-inner-page,
.woocommerce-checkout .pg-inner-page {
  max-width: var(--max-w);
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  width: 100%;
}

/* Cart */

.woocommerce-cart .woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-cart .woocommerce table.shop_table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-muted);
  border-bottom: 1px solid var(--brand-hairline);
  padding: 0.75rem 0.5rem;
}

.woocommerce-cart .woocommerce table.shop_table td {
  padding: 1.25rem 0.5rem;
  border-bottom: 1px solid var(--brand-hairline);
  vertical-align: middle;
}

.woocommerce-cart .woocommerce table.shop_table .product-name a {
  font-weight: 500;
  color: var(--brand-ink);
}

.woocommerce-cart .woocommerce table.shop_table .product-price,
.woocommerce-cart .woocommerce table.shop_table .product-subtotal {
  color: var(--brand-ink);
}

/* Cart totals */

.cart_totals {
  margin-top: 2rem;
}

.cart_totals h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--brand-ink);
  margin-bottom: 1rem;
}

.cart_totals table {
  width: 100%;
}

.cart_totals th,
.cart_totals td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--brand-hairline);
  font-size: 0.875rem;
}

.cart_totals .order-total td {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-ink);
}

/* Proceed to checkout button */

.wc-proceed-to-checkout .checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-ink);
  background: var(--brand-ink);
  color: var(--brand-card);
  padding: 0.95rem 2rem;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  text-decoration: none;
}

.wc-proceed-to-checkout .checkout-button:hover {
  background: transparent;
  color: var(--brand-ink);
}

/* Checkout form */

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--brand-ink);
  margin-bottom: 1rem;
}

/* Form fields */

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--brand-hairline);
  border-radius: 2px;
  background: var(--brand-card);
  color: var(--brand-ink);
  font-size: 0.875rem;
  font-family: var(--font-sans);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  outline: none;
  border-color: var(--brand-glacier);
}

/* Order button */

#place_order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-ink);
  background: var(--brand-ink);
  color: var(--brand-card);
  padding: 0.95rem 2rem;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  text-decoration: none;
  width: 100%;
}

#place_order:hover {
  background: transparent;
  color: var(--brand-ink);
}
