/* Iris Paints — Payload storefront theme overrides */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--iris-cream);
}

body {
  font-family: var(--font-body);
  background: var(--iris-cream);
  color: var(--text-dark);
  line-height: 1.7;
}

.container {
  max-width: 1100px;
  padding-inline: 16px;
}

/* ── Testing mode banner ── */
.testing-banner {
  background: var(--iris-dark);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.testing-banner__text { margin: 0; }

.testing-banner a {
  color: var(--iris-lavender);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.testing-banner a:hover { opacity: 0.85; }

@media (min-width: 480px) { .container { padding-inline: 20px; } }
@media (min-width: 768px) { .container { padding-inline: 24px; } }

/* ── Navigation (matches irispaints.com shared.css) ── */
.nav {
  background: var(--iris-dark);
  border-bottom: none;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  height: var(--nav-height);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--iris-lavender);
  letter-spacing: 0.04em;
}

@media (min-width: 768px) { .nav__brand { font-size: 1.3rem; } }
.nav__brand:hover { opacity: 0.85; }

.nav__links a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--iris-transition);
}

.nav__links a:hover { color: var(--iris-lavender); }

.nav__user { color: rgba(255, 255, 255, 0.65); }

.nav__cart { color: white; }

.nav__actions .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.9);
}

.nav__actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--iris-lavender);
  color: white;
}

.nav__actions .btn-primary {
  background: var(--iris-purple);
  border-color: var(--iris-purple);
}

.nav__actions .btn-primary:hover {
  background: var(--iris-mid);
}

.badge-primary {
  background: var(--iris-lavender);
  color: var(--iris-dark);
}

/* ── Buttons (pill style like static site) ── */
.btn {
  border-radius: var(--iris-radius-full);
  font-weight: 600;
  border-width: 2px;
  transition: all var(--iris-transition);
}

.btn-primary {
  background: var(--iris-purple);
  border-color: var(--iris-purple);
}

.btn-primary:hover:not(:disabled) {
  background: var(--iris-mid);
  border-color: var(--iris-mid);
  transform: translateY(-1px);
  box-shadow: var(--iris-shadow-md);
}

.btn-outline {
  border-color: var(--iris-purple);
  color: var(--iris-purple);
}

.btn-outline:hover:not(:disabled) {
  background: var(--iris-purple);
  color: white;
}

/* ── Hero (dark panel like selfmed/faces pages) ── */
.hero {
  background: linear-gradient(140deg, var(--iris-dark) 0%, #4a0808 100%);
  padding-block: 60px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) { .hero { padding-block: 80px; } }
@media (min-width: 960px) { .hero { padding-block: 100px; } }

.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__subheading {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.85;
}

.hero .btn-primary {
  background: var(--iris-lavender);
  color: var(--iris-dark);
  border-color: var(--iris-lavender);
}

.hero .btn-primary:hover {
  background: white;
  color: var(--iris-dark);
}

.hero--fullscreen {
  min-height: calc(100vh - var(--nav-height) - 4rem);
}

/* ── Section headings ── */
.section-title,
.section-title--sm {
  font-family: var(--font-display);
  color: var(--iris-dark);
}

.store-header .text-muted { color: var(--text-mid); }

/* ── Product cards ── */
.product-card {
  border-color: rgba(232, 184, 75, 0.3);
  border-radius: var(--iris-radius-md);
  box-shadow: var(--iris-shadow-sm);
}

.product-card:hover {
  box-shadow: var(--iris-shadow-md);
  transform: translateY(-3px);
}

.product-card__badge {
  background: var(--iris-mid);
  border-radius: var(--iris-radius-full);
}

.product-card__img-placeholder,
.product-card__img {
  background: linear-gradient(135deg, #fff3d0 0%, #ffe098 100%);
}

.product-card__price { color: var(--iris-purple); }

.product-card__price--sale { color: var(--iris-purple); }

/* ── Category filter pills ── */
.category-filter .btn-primary {
  background: var(--iris-purple);
}

.category-filter .btn-outline {
  border-color: rgba(196, 30, 30, 0.35);
}

/* ── Product detail ── */
.product-detail__name {
  font-family: var(--font-display);
  color: var(--iris-dark);
}

.product-detail__price { color: var(--iris-purple); }

.product-detail__img-placeholder {
  background: linear-gradient(135deg, #fff3d0 0%, #ffe098 100%);
  border-radius: var(--iris-radius-md);
}

.product-detail__main-img { border-radius: var(--iris-radius-md); }

/* ── Cart & checkout panels ── */
.cart-table-wrap,
.checkout-box,
.confirmation-box {
  border-color: rgba(232, 184, 75, 0.35);
  border-radius: var(--iris-radius-md);
  box-shadow: var(--iris-shadow-sm);
}

.cart-th { color: var(--text-mid); }

.form-select:focus {
  outline: none;
  border-color: var(--iris-lavender);
  box-shadow: 0 0 0 3px rgba(232, 184, 75, 0.25);
}

/* ── Footer (matches static site) ── */
.footer {
  background: var(--iris-dark);
  border-top: none;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 52px;
  padding-block: 44px;
}

@media (min-width: 768px) {
  .footer { margin-top: 80px; padding-block: 60px; }
}

.footer a {
  color: var(--iris-lavender);
  transition: opacity var(--iris-transition);
}

.footer a:hover { opacity: 0.85; }

.footer__inner {
  text-align: center;
  font-size: 0.875rem;
}
