/*
Theme Name: Slate Peptides
Description: Custom WooCommerce theme for Slate Peptides — research peptides and chemicals.
Version: 2.0.0
Author: Slatestone Holdings Pty Ltd
Text Domain: slate-peptides
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ═══════════════════════════════════════════════
   DESIGN SYSTEM
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
    /* Colors */
    --c-base: #FFFFFF;
    --c-surface: #F8F8FA;
    --c-border: #E4E4E7;
    --c-muted: #94949E;
    --c-body: #52525B;
    --c-heading: #18181B;
    --c-accent: #3B82F6;
    --c-accent-hover: #2563EB;
    --c-accent-subtle: #EFF6FF;
    --c-success: #16A34A;
    --c-warning: #F59E0B;
    --c-error: #DC2626;
    --c-footer: #18181B;
    --c-footer-muted: #71717A;
    --c-footer-text: #A1A1AA;

    /* Typography */
    --f-display: 'Outfit', -apple-system, sans-serif;
    --f-body: 'DM Sans', -apple-system, sans-serif;

    /* Spacing */
    --s-xs: 0.5rem;
    --s-sm: 1rem;
    --s-md: 1.5rem;
    --s-lg: 2rem;
    --s-xl: 3rem;
    --s-2xl: 5rem;
    --s-3xl: 8rem;

    /* Layout */
    --max-width: 1200px;
    --content-width: 720px;
    --radius: 6px;
    --radius-lg: 10px;

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.3s;
}

/* ═══════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════ */

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

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

body {
    font-family: var(--f-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--c-body);
    background: var(--c-base);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* ═══════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-display);
    color: var(--c-heading);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════ */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.container--narrow {
    max-width: var(--content-width);
}

.section {
    padding: var(--s-2xl) 0;
}

.section--surface {
    background: var(--c-surface);
}

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.site-header--shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: var(--s-lg);
}

/* Wordmark */
.wordmark {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-heading);
    white-space: nowrap;
    transition: opacity var(--duration) var(--ease);
}

.wordmark {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.wordmark:hover { opacity: 0.7; }

.wordmark__icon {
    height: 34px;
    width: 34px;
    object-fit: contain;
}

.wordmark__divider {
    width: 1px;
    height: 24px;
    background: var(--c-border);
}

.wordmark__text {
    font-family: var(--f-display);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
}

.wordmark__slate {
    color: var(--c-heading);
}

.wordmark__peptides {
    color: #7BA7A0;
    font-weight: 400;
}

@media (min-width: 769px) {
    .wordmark__icon { height: 38px; width: 38px; }
    .wordmark__divider { height: 28px; }
    .wordmark__text { font-size: 1.3125rem; }
}

/* Desktop Nav */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--s-lg);
}

.nav-desktop a {
    font-family: var(--f-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-body);
    letter-spacing: 0.01em;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--duration) var(--ease);
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--c-accent);
    transition: width var(--duration) var(--ease);
}

.nav-desktop a:hover { color: var(--c-heading); }
.nav-desktop a:hover::after { width: 100%; }

/* Cart icon */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--c-heading);
    transition: color var(--duration) var(--ease);
}

.cart-link:hover { color: var(--c-accent); }

.cart-link svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
}

.cart-count {
    position: absolute;
    top: 6px;
    right: 4px;
    background: var(--c-accent);
    color: #fff;
    font-family: var(--f-display);
    font-size: 0.625rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile hamburger */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--c-heading);
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Nav */
.nav-mobile {
    display: none;
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--c-base);
    z-index: 999;
    padding: var(--s-lg);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
    pointer-events: none;
}

.nav-mobile.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.nav-mobile a {
    display: block;
    font-family: var(--f-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--c-heading);
    padding: 1rem 0;
    border-bottom: 1px solid var(--c-border);
    transition: color var(--duration) var(--ease);
}

.nav-mobile a:hover { color: var(--c-accent); }
.nav-mobile a:last-child { border-bottom: none; }

@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .hamburger { display: flex; }
    .nav-mobile { display: block; }
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */

.hero {
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
    background: var(--c-surface);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-buttons .btn {
        width: 100%;
    }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--f-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: var(--s-md);
    padding: 0.375rem 1rem;
    background: var(--c-accent-subtle);
    border-radius: 100px;
}

.hero h1 {
    margin-bottom: var(--s-md);
}

.hero-sub {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
    color: var(--c-muted);
    line-height: 1.6;
    margin-bottom: var(--s-lg);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: var(--s-lg);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--f-display);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--c-body);
    padding: 0.5rem 1rem;
    background: var(--c-base);
    border: 1px solid var(--c-border);
    border-radius: 100px;
    white-space: nowrap;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-accent);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}

.btn--primary {
    background: var(--c-accent);
    color: #fff;
}

.btn--primary:hover {
    background: var(--c-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn--outline {
    background: transparent;
    color: var(--c-heading);
    border: 1.5px solid var(--c-border);
}

.btn--outline:hover {
    border-color: var(--c-heading);
    transform: translateY(-1px);
}

.btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════
   PRODUCT GRID
   ═══════════════════════════════════════════════ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-md);
}

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

@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-lg); }
}

.product-card {
    background: var(--c-base);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
    position: relative;
}

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

.product-card__image {
    aspect-ratio: 1;
    background: var(--c-surface);
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.product-card:hover .product-card__image img {
    transform: scale(1.04);
}

.product-card__body {
    padding: var(--s-sm);
}

.product-card__title {
    font-family: var(--f-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-heading);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.product-card__title a {
    transition: color var(--duration) var(--ease);
}

.product-card__title a:hover { color: var(--c-accent); }

.product-card__price {
    font-family: var(--f-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-heading);
}

.product-card__price del {
    color: var(--c-muted);
    font-weight: 400;
    font-size: 0.875rem;
}

.product-card__price ins {
    text-decoration: none;
}

/* ═══════════════════════════════════════════════
   CATEGORIES GRID
   ═══════════════════════════════════════════════ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-sm);
}

@media (min-width: 768px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-md); }
}

.category-card {
    background: var(--c-base);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: var(--s-lg) var(--s-md);
    text-align: center;
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--c-accent);
    transform: scaleX(0);
    transition: transform var(--duration) var(--ease);
}

.category-card:hover {
    border-color: var(--c-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08);
}

.category-card:hover::before { transform: scaleX(1); }

.category-card__name {
    font-family: var(--f-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-heading);
    margin-bottom: 0.25rem;
}

.category-card__count {
    font-size: 0.8125rem;
    color: var(--c-muted);
}

/* ═══════════════════════════════════════════════
   SECTION HEADINGS
   ═══════════════════════════════════════════════ */

.section-header {
    text-align: center;
    margin-bottom: var(--s-xl);
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--c-muted);
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════════════ */

.trust-bar {
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    padding: var(--s-xl) 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-lg);
}

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

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

.trust-item__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--c-accent-subtle);
    color: var(--c-accent);
}

.trust-item__icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ─── How It Works ─── */

.how-it-works {
    padding: var(--s-xl) 0 var(--s-2xl);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-lg);
    position: relative;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--s-xl);
    }
}

.step {
    text-align: center;
    position: relative;
}

.step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--c-accent);
    color: #fff;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: var(--s-sm);
}

.step__title {
    font-family: var(--f-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--c-heading);
    margin-bottom: 0.375rem;
}

.step__desc {
    font-size: 0.875rem;
    color: var(--c-muted);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

.trust-item__label {
    font-family: var(--f-display);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-heading);
    letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════════
   DISCLAIMER
   ═══════════════════════════════════════════════ */

.disclaimer {
    background: var(--c-surface);
    padding: var(--s-lg) 0;
    text-align: center;
}

.disclaimer p {
    font-size: 0.75rem;
    color: var(--c-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

.site-footer {
    background: var(--c-footer);
    color: var(--c-footer-text);
    padding: var(--s-2xl) 0 var(--s-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-lg);
    margin-bottom: var(--s-xl);
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

.footer-wordmark {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: var(--s-sm);
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--c-footer-text);
    line-height: 1.6;
}

.footer-heading {
    font-family: var(--f-display);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-footer-muted);
    margin-bottom: var(--s-sm);
}

.footer-links a {
    display: block;
    font-size: 0.875rem;
    color: var(--c-footer-text);
    padding: 0.25rem 0;
    transition: color var(--duration) var(--ease);
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid #27272A;
    padding-top: var(--s-lg);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.6875rem;
    color: var(--c-footer-muted);
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════
   SINGLE PRODUCT
   ═══════════════════════════════════════════════ */

.product-single {
    padding: var(--s-xl) 0 var(--s-2xl);
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-lg);
}

@media (min-width: 768px) {
    .product-layout { grid-template-columns: 1fr 1fr; gap: var(--s-xl); }
}

.product-gallery {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--c-surface);
}

.product-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.product-info__price {
    font-family: var(--f-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--c-heading);
    margin: var(--s-sm) 0 var(--s-md);
}

.product-info__excerpt {
    color: var(--c-body);
    margin-bottom: var(--s-md);
    line-height: 1.7;
}

.product-info__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--s-lg);
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--f-display);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 100px;
    color: var(--c-body);
}

.product-disclaimer {
    margin-top: var(--s-md);
    padding-top: var(--s-md);
    border-top: 1px solid var(--c-border);
    font-size: 0.75rem;
    color: var(--c-muted);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.8125rem;
    color: var(--c-muted);
    margin-bottom: var(--s-lg);
}

.breadcrumbs a { color: var(--c-muted); transition: color var(--duration) var(--ease); }
.breadcrumbs a:hover { color: var(--c-accent); }
.breadcrumbs .sep { margin: 0 0.5rem; }

/* ═══════════════════════════════════════════════
   WOOCOMMERCE OVERRIDES
   ═══════════════════════════════════════════════ */

/* Add to cart */
.single_add_to_cart_button,
button.single_add_to_cart_button,
.woocommerce button.button.alt {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--c-accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius) !important;
    font-family: var(--f-display) !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    padding: 0.875rem 2rem !important;
    min-height: 48px;
    cursor: pointer;
    transition: all var(--duration) var(--ease) !important;
}

.single_add_to_cart_button:hover,
button.single_add_to_cart_button:hover,
.woocommerce button.button.alt:hover {
    background: var(--c-accent-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* Quantity input */
.quantity input.qty {
    width: 64px;
    height: 48px;
    text-align: center;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--c-heading);
}

/* Product tabs */
.woocommerce-tabs {
    margin-top: var(--s-2xl);
}

.woocommerce-tabs .tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: var(--s-lg);
}

.woocommerce-tabs .tabs li {
    margin: 0;
}

.woocommerce-tabs .tabs li a {
    display: block;
    font-family: var(--f-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-muted);
    padding: 0.875rem 1.25rem;
    border-bottom: 2px solid transparent;
    transition: all var(--duration) var(--ease);
    min-height: 48px;
}

.woocommerce-tabs .tabs li.active a {
    color: var(--c-heading);
    border-bottom-color: var(--c-accent);
}

/* Stock */
.stock.in-stock { color: var(--c-success); font-weight: 500; font-size: 0.875rem; }
.stock.out-of-stock { color: var(--c-error); font-weight: 500; font-size: 0.875rem; }

/* Sale badge */
.onsale {
    background: var(--c-accent) !important;
    color: #fff !important;
    font-family: var(--f-display);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius);
    padding: 0.25rem 0.75rem;
    min-height: auto;
    line-height: 1.5;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    font-family: var(--f-body);
    font-size: 0.9375rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: var(--s-md);
    border: none;
}

.woocommerce-message { background: #F0FDF4; color: var(--c-success); border-left: 3px solid var(--c-success); }
.woocommerce-error { background: #FEF2F2; color: var(--c-error); border-left: 3px solid var(--c-error); }
.woocommerce-info { background: var(--c-accent-subtle); color: var(--c-accent); border-left: 3px solid var(--c-accent); }

/* WooCommerce buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    font-family: var(--f-display) !important;
    font-weight: 600 !important;
    border-radius: var(--radius) !important;
    min-height: 44px;
    padding: 0.625rem 1.5rem !important;
    transition: all var(--duration) var(--ease) !important;
}

/* Checkout / Cart WooCommerce blocks */
.wc-block-components-button {
    background: var(--c-accent) !important;
    border-radius: var(--radius) !important;
    font-family: var(--f-display) !important;
    font-weight: 600 !important;
    min-height: 48px;
}

.wc-block-components-button:hover {
    background: var(--c-accent-hover) !important;
}

/* Checkout inputs */
.wc-block-components-text-input input,
.wc-block-components-select select {
    border-radius: var(--radius) !important;
    min-height: 48px;
    font-family: var(--f-body) !important;
}

/* ═══════════════════════════════════════════════
   PAGES
   ═══════════════════════════════════════════════ */

.page-content {
    padding: var(--s-xl) 0 var(--s-2xl);
}

.page-content h1 {
    margin-bottom: var(--s-lg);
}

.page-content h2 {
    margin-top: var(--s-xl);
    margin-bottom: var(--s-sm);
}

.page-content ul, .page-content ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 0.5rem; }

.page-content a {
    color: var(--c-accent);
    transition: color var(--duration) var(--ease);
}

.page-content a:hover { color: var(--c-accent-hover); }

/* ═══════════════════════════════════════════════
   SHOP ARCHIVE
   ═══════════════════════════════════════════════ */

.shop-header {
    padding: var(--s-xl) 0 var(--s-lg);
}

.shop-header h1 {
    margin-bottom: 0.5rem;
}

.shop-header .result-count {
    color: var(--c-muted);
    font-size: 0.875rem;
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */

/* Animations only when JS has loaded and added the class */
.js-ready .fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js-ready .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* No JS fallback — everything visible by default */
.fade-up { opacity: 1; transform: none; }

/* Stagger children */
.js-ready .stagger > * { transition-delay: calc(var(--i, 0) * 0.06s); }

/* ═══════════════════════════════════════════════
   MOBILE STICKY CART
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {
    .sticky-atc {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: var(--c-base);
        border-top: 1px solid var(--c-border);
        padding: 0.75rem 1rem;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    }

    .sticky-atc .single_add_to_cart_button {
        margin: 0 !important;
    }

    /* Add bottom padding to body when sticky ATC is present */
    body.single-product {
        padding-bottom: 80px;
    }
}

/* ═══════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════ */

.text-center { text-align: center; }
.mt-sm { margin-top: var(--s-sm); }
.mt-md { margin-top: var(--s-md); }
.mt-lg { margin-top: var(--s-lg); }
.mt-xl { margin-top: var(--s-xl); }
.mb-sm { margin-bottom: var(--s-sm); }
.mb-md { margin-bottom: var(--s-md); }
.mb-lg { margin-bottom: var(--s-lg); }

/* WP Admin bar adjustment */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
