/*
Theme Name: Lavion Wellness
Theme URI: https://lavionwellness.com
Author: Lavion Wellness
Author URI: https://lavionwellness.com
Description: Premium wellness brand theme - NAD+ transdermal patches
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lavion
*/

/* ===============================================
   CSS Variables / Design Tokens
   =============================================== */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Colors */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-neutral-50: #fafafa;
  --color-neutral-100: #f5f5f5;
  --color-neutral-200: #e5e5e5;
  --color-neutral-300: #d4d4d4;
  --color-neutral-400: #a3a3a3;
  --color-neutral-500: #737373;
  --color-neutral-600: #525252;
  --color-neutral-700: #404040;
  --color-neutral-800: #262626;
  --color-neutral-900: #171717;

  /* Semantic Colors */
  --color-foreground: var(--color-neutral-900);
  --color-muted-foreground: var(--color-neutral-500);
  --color-border: rgba(0, 0, 0, 0.1);

  /* Spacing */
  --container-padding: 1.5rem;
  --container-max-width: 1400px;

  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius-md: 0.25rem;
  --radius-lg: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-foreground);
  background-color: var(--color-white);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* ===============================================
   Typography
   =============================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
}

h2 {
  font-size: clamp(1.875rem, 3vw + 0.5rem, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw + 0.25rem, 1.5rem);
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-widest {
  letter-spacing: 0.1em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.tracking-tight {
  letter-spacing: -0.02em;
}

.font-medium {
  font-weight: 500;
}

.leading-relaxed {
  line-height: 1.625;
}

/* ===============================================
   Layout
   =============================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.min-h-screen {
  min-height: 100vh;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.gap-16 {
  gap: 4rem;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ===============================================
   Spacing
   =============================================== */
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.pt-16 {
  padding-top: 4rem;
}

.pt-32 {
  padding-top: 8rem;
}

.pb-16 {
  padding-bottom: 4rem;
}

.pb-20 {
  padding-bottom: 5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

/* ===============================================
   Colors
   =============================================== */
.bg-white {
  background-color: var(--color-white);
}

.bg-black {
  background-color: var(--color-black);
}

.bg-neutral-50 {
  background-color: var(--color-neutral-50);
}

.bg-neutral-100 {
  background-color: var(--color-neutral-100);
}

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

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

.text-muted-foreground {
  color: var(--color-muted-foreground);
}

.text-white\/40 {
  color: rgba(255, 255, 255, 0.4);
}

.text-white\/50 {
  color: rgba(255, 255, 255, 0.5);
}

.text-white\/60 {
  color: rgba(255, 255, 255, 0.6);
}

.text-white\/70 {
  color: rgba(255, 255, 255, 0.7);
}

.text-white\/80 {
  color: rgba(255, 255, 255, 0.8);
}

.text-black\/10 {
  color: rgba(0, 0, 0, 0.1);
}

.text-black\/50 {
  color: rgba(0, 0, 0, 0.5);
}

.text-black\/70 {
  color: rgba(0, 0, 0, 0.7);
}

.border-black\/10 {
  border-color: rgba(0, 0, 0, 0.1);
}

.border-black\/20 {
  border-color: rgba(0, 0, 0, 0.2);
}

.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===============================================
   Header
   =============================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: 64px;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.site-logo img {
  height: 24px;
  filter: brightness(0);
  object-fit: contain;
}

.site-nav {
  display: none;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.7);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-black);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.mobile-menu-toggle {
  display: block;
  padding: 0.5rem;
  margin-left: -0.5rem;
}

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  top: 64px;
  background-color: var(--color-white);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.mobile-menu .nav-link {
  font-size: 1.5rem;
  font-weight: 500;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  text-transform: none;
  letter-spacing: normal;
}

/* ===============================================
   Footer
   =============================================== */
.site-footer {
  background-color: var(--color-black);
  color: var(--color-white);
}

.footer-main {
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: span 2;
  }
}

.footer-logo {
  height: 24px;
  filter: brightness(0) invert(1);
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-white);
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}

.footer-disclaimer p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.625;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

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

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--color-white);
}

/* ===============================================
   Hero Section
   =============================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 4rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(3rem, 6vw + 1rem, 4.5rem);
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 28rem;
  line-height: 1.625;
  margin-bottom: 1rem;
}

.hero-subdescription {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 28rem;
  margin-bottom: 3rem;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.hero-scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
}

/* ===============================================
   Buttons
   =============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--color-white);
  color: var(--color-black);
}

.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-dark {
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn-dark:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--color-black);
}

.btn-outline:hover {
  border-color: var(--color-black);
  background-color: var(--color-black);
  color: var(--color-white);
}

.btn-lg {
  padding: 1.25rem 2.5rem;
}

.btn-full {
  width: 100%;
}

/* ===============================================
   Wellness Categories Grid
   =============================================== */
.wellness-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

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

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

.wellness-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.wellness-card-image {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.wellness-card:hover .wellness-card-image {
  transform: scale(1.05);
}

.wellness-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wellness-card-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease;
}

.wellness-card:hover .wellness-card-overlay {
  background-color: rgba(0, 0, 0, 0.3);
}

.wellness-card-content {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.wellness-card-tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.wellness-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wellness-card-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-white);
}

.wellness-card-arrow {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-white);
  opacity: 0;
  transform: translateX(-0.5rem);
  transition: all 0.3s ease;
}

.wellness-card:hover .wellness-card-arrow {
  opacity: 1;
  transform: translateX(0.25rem);
}

/* ===============================================
   Section Styles
   =============================================== */
.section {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 4rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-muted-foreground);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-muted-foreground);
  max-width: 42rem;
  line-height: 1.625;
}

/* Black Section */
.section-dark {
  background-color: var(--color-black);
  color: var(--color-white);
}

.section-dark .section-eyebrow {
  color: rgba(255, 255, 255, 0.5);
}

.section-dark .section-description {
  color: rgba(255, 255, 255, 0.7);
}

/* ===============================================
   Product Grid
   =============================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

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

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

.product-card {
  position: relative;
}

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(to bottom right, var(--color-neutral-50), var(--color-neutral-100));
  margin-bottom: 1.25rem;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-hover-overlay {
  position: absolute;
  inset: 0;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.product-card:hover .product-card-hover-overlay {
  background-color: rgba(0, 0, 0, 0.05);
}

.product-card-quick-add {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-quick-add {
  transform: translateY(0);
}

.product-card-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.product-card-title:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.product-card-price {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

/* ===============================================
   Forms
   =============================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted-foreground);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  font-size: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background-color: var(--color-white);
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-black);
}

.form-input-icon {
  position: relative;
}

.form-input-icon .form-input {
  padding-left: 2.5rem;
}

.form-input-icon svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--color-muted-foreground);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-checkbox input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  accent-color: var(--color-black);
}

.form-checkbox label {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  line-height: 1.625;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===============================================
   Animations
   =============================================== */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fade-up 0.6s ease forwards;
}

.animation-delay-100 {
  animation-delay: 100ms;
}

.animation-delay-200 {
  animation-delay: 200ms;
}

.animation-delay-250 {
  animation-delay: 250ms;
}

.animation-delay-300 {
  animation-delay: 300ms;
}

.animation-delay-400 {
  animation-delay: 400ms;
}

.animation-delay-500 {
  animation-delay: 500ms;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================================
   Cart Drawer
   =============================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background-color: var(--color-white);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

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

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.cart-drawer-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cart-drawer-close {
  padding: 0.5rem;
}

.cart-drawer-content {
  height: calc(100% - 180px);
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-drawer-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-white);
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  background-color: var(--color-neutral-100);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.cart-empty {
  text-align: center;
  padding: 3rem 0;
}

.cart-empty p {
  color: var(--color-muted-foreground);
  margin-bottom: 1.5rem;
}

/* ===============================================
   Utility Classes
   =============================================== */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  inset: 0;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

.overflow-hidden {
  overflow: hidden;
}

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

.max-w-md {
  max-width: 28rem;
}

.max-w-lg {
  max-width: 32rem;
}

.max-w-xl {
  max-width: 36rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-\[3\/4\] {
  aspect-ratio: 3 / 4;
}

.aspect-\[4\/5\] {
  aspect-ratio: 4 / 5;
}

.object-cover {
  object-fit: cover;
}

.transition-all {
  transition: all 0.3s ease;
}

.transition-colors {
  transition: color 0.2s ease, background-color 0.2s ease;
}

.transition-transform {
  transition: transform 0.3s ease;
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:underline:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Hidden on Desktop */
@media (min-width: 1024px) {
  .lg\:hidden {
    display: none;
  }

  .lg\:block {
    display: block;
  }

  .lg\:flex {
    display: flex;
  }
}

/* Visible on Desktop */
.hidden {
  display: none;
}

@media (min-width: 1024px) {
  .lg\:block {
    display: block;
  }
}

/* ===============================================
   Loading States
   =============================================== */
.skeleton {
  background: linear-gradient(90deg,
      var(--color-neutral-100) 0%,
      var(--color-neutral-200) 50%,
      var(--color-neutral-100) 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ===============================================
   WooCommerce Overrides
   =============================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border: none;
  background-color: var(--color-neutral-100);
}

.woocommerce-message::before,
.woocommerce-info::before {
  display: none;
}

.woocommerce .button,
.woocommerce button.button {
  background-color: var(--color-black);
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 2rem;
  border-radius: 0;
  transition: all 0.3s ease;
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--color-white);
}

/* ===============================================
   Responsive Inline Grids (for homepage)
   =============================================== */

/* Grid with inline style: grid-template-columns: repeat(X, 1fr) */
/* Override at mobile breakpoints */
@media (max-width: 1023px) {
  .section .grid[style*="repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .section .grid[style*="repeat(3, 1fr)"] {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

@media (max-width: 767px) {

  .section .grid[style*="repeat(4, 1fr)"],
  .section .grid[style*="repeat(2, 1fr)"],
  .section .grid[style*="1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Stack header rows on mobile */
  .section .grid[style*="gap: 4rem"] {
    gap: 2rem !important;
  }
}

/* Text center on mobile */
@media (max-width: 767px) {
  .text-center-mobile {
    text-align: center;
  }
}

/* Flex wrap */
.flex-wrap {
  flex-wrap: wrap;
}

/* Max width utilities */
.max-w-lg {
  max-width: 32rem;
}

.max-w-xl {
  max-width: 36rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Aspect ratios */
.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Object fit */
.object-cover {
  object-fit: cover;
}

/* Width and height */
.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.w-12 {
  width: 3rem;
}

.h-12 {
  height: 3rem;
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

/* Prose for content */
.prose {
  max-width: 65ch;
  line-height: 1.75;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

/* Border utilities */
.border-t {
  border-top: 1px solid var(--color-border);
}

.border-b {
  border-bottom: 1px solid var(--color-border);
}

/* Additional text colors */
.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

/* Position utilities */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Z-index */
.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-50 {
  z-index: 50;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

/* Underline offset */
.underline {
  text-decoration: underline;
}

.underline-offset-4 {
  text-underline-offset: 4px;
}

/* Transition */
.transition-colors {
  transition: color 0.2s ease;
}

.transition-all {
  transition: all 0.3s ease;
}

.transition-transform {
  transition: transform 0.3s ease;
}