/* ========================================
   Pain & Performance Solutions — Store CSS
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
  --navy: #151536;
  --orange: #F9A91A;
  --white: #FFFFFF;
  --off-white: #F7F7FA;
  --navy-light: #1e1e4a;
  --orange-hover: #e89800;
  --text-dark: #222;
  --text-muted: #666;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section--light {
  background: var(--off-white);
}

.text-center {
  text-align: center;
}

.text-orange {
  color: var(--orange);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--orange);
  color: var(--navy);
  border-color: var(--orange);
}

.btn--primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--secondary:hover {
  background: var(--white);
  color: var(--navy);
}

.btn--secondary-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--secondary-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}

.nav__logo span {
  color: var(--orange);
}

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--orange);
}

.nav__cart {
  position: relative;
}

.nav__cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--orange);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(249, 169, 26, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.hero p {
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  opacity: 0.85;
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Product Grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

/* ---------- Product Hero (homepage) ---------- */
.product-hero {
  padding: 4rem 0 5rem;
  background: var(--white);
}

.product-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.product-hero__image {
  border-radius: 8px;
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
}

.product-hero__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.product-hero__info h1 {
  font-size: 3rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.product-hero__subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.product-hero__price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 1.5rem;
}

.product-hero__desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.product-hero__specs {
  list-style: none;
  margin-bottom: 2rem;
  padding: 0;
}

.product-hero__specs li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.product-hero__specs li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.btn--lg {
  padding: 1.1rem 3rem;
  font-size: 1.15rem;
}

.product-hero__shipping {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .product-hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-hero__info h1 {
    font-size: 2.25rem;
  }
}

/* ---------- Product Cards ---------- */
.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.product-card__image {
  height: 280px;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__body {
  padding: 1.75rem;
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.product-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.product-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* ---------- Product Detail ---------- */
.product-detail {
  padding: 4rem 0;
}

.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}


.product-detail__image {
  border-radius: 8px;
  overflow: hidden;
}

.product-detail__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.product-detail__info h1 {
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.product-detail__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 1.5rem;
}

.product-detail__description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.product-detail__description ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 1rem 0;
}

.product-detail__description ul li {
  margin-bottom: 0.5rem;
}

.product-detail__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.qty-select {
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--navy);
  border-radius: 4px;
  font-family: var(--font-body);
  background: var(--white);
}

/* ---------- About Section ---------- */
.about-section h2 {
  margin-bottom: 1rem;
}

.about-section p {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-hero {
  background: var(--navy);
  color: var(--white);
  padding: 6rem 0 4rem;
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h3 {
  color: var(--navy);
  margin: 2rem 0 1rem;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
}

/* ---------- Features / Highlights ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.feature {
  text-align: center;
  padding: 2rem 1.5rem;
}

.feature__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--orange);
}

.feature h4 {
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.feature p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner p {
  max-width: 550px;
  margin: 0 auto 2rem;
  opacity: 0.85;
  font-size: 1.1rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer__brand span {
  color: var(--orange);
}

.footer p {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.7;
}

.footer h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--orange);
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer ul li a:hover {
  opacity: 1;
  color: var(--orange);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__bottom p {
  font-size: 0.85rem;
  opacity: 0.5;
}

.footer__social {
  display: flex;
  gap: 1.25rem;
}

.footer__social a {
  opacity: 0.6;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.footer__social a:hover {
  opacity: 1;
  color: var(--orange);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb span {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* ---------- Cart Drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.cart-drawer__header h3 {
  color: var(--navy);
}

.cart-drawer__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-drawer__empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.cart-item__image {
  width: 60px;
  height: 60px;
  background: var(--navy);
  border-radius: 4px;
  flex-shrink: 0;
}

.cart-item__details {
  flex: 1;
}

.cart-item__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

.cart-item__price {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cart-item__remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.cart-item__remove:hover {
  color: #c00;
}

.cart-drawer__footer {
  padding: 1.5rem;
  border-top: 1px solid #eee;
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--navy);
}

.cart-drawer__footer .btn {
  width: 100%;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .hero { padding: 5rem 0 4rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.05rem; }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1.5rem 0;
    gap: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    padding: 0.75rem 2rem;
    width: 100%;
  }

  .nav__hamburger {
    display: flex;
  }

  .product-detail__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}
