/*
 * Theme Name:  PickNMix Pro
 * Theme URI:   https://plan9studios.co.uk
 * Author:      Plan9Studios
 * Author URI:  https://plan9studios.co.uk
 * Description: A premium WooCommerce theme for pick n mix and sweet shop businesses.
 * Version:     1.0.0
 * License:     Proprietary
 * Text Domain: picknmix-pro
 *
 * ============================================================
 * TABLE OF CONTENTS
 * ============================================================
 * 1.  CSS Custom Properties (Design Tokens)
 * 2.  Reset & Base
 * 3.  Typography
 * 4.  Layout & Grid
 * 5.  Buttons
 * 6.  Header & Navigation
 * 7.  Hero Section
 * 8.  Features Strip
 * 9.  Section Headings
 * 10. Product Cards
 * 11. Featured Products Section
 * 12. Pick N Mix Promo Section
 * 13. Category Grid
 * 14. Testimonials
 * 15. Footer
 * 16. Search Overlay
 * 17. Utility Classes
 * 18. Responsive — Tablet (max 1024px)
 * 19. Responsive — Mobile (max 768px)
 * ============================================================
 */


/* ============================================================
 * 1. CSS CUSTOM PROPERTIES
 *    Swap these per client — entire rebrand in seconds.
 * ============================================================ */
:root {
    /* Brand Colours */
    --color-primary:        #e91e8c;
    --color-primary-dark:   #c4156f;
    --color-primary-light:  #fce4f3;
    --color-secondary:      #ffd600;
    --color-secondary-dark: #e6c200;
    --color-secondary-light:#fffde7;

    /* Neutrals */
    --color-dark:           #1a1a2e;
    --color-dark-mid:       #2d2d44;
    --color-mid:            #6b6b80;
    --color-light-mid:      #b0b0c3;
    --color-light:          #f7f4ff;
    --color-lighter:        #fdfcff;
    --color-white:          #ffffff;

    /* Semantic */
    --color-success:        #00c853;
    --color-error:          #f44336;

    /* Typography */
    --font-heading:  'Fredoka One', cursive;
    --font-body:     'Nunito', sans-serif;

    /* Spacing */
    --space-xs:   4px;
    --space-sm:   8px;
    --space-md:   16px;
    --space-lg:   24px;
    --space-xl:   48px;
    --space-xxl:  96px;

    /* Radii */
    --radius-sm:   6px;
    --radius-md:   14px;
    --radius-lg:   28px;
    --radius-xl:   40px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-sm:    0 2px 12px rgba(26,26,46,0.07);
    --shadow-md:    0 6px 30px rgba(26,26,46,0.10);
    --shadow-lg:    0 12px 50px rgba(26,26,46,0.14);
    --shadow-pink:  0 6px 30px rgba(233,30,140,0.25);
    --shadow-card:  0 4px 24px rgba(26,26,46,0.08);

    /* Transitions */
    --t-fast:   0.15s ease;
    --t-normal: 0.3s ease;
    --t-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --container-max: 1280px;
    --header-height: 80px;
}


/* ============================================================
 * 2. RESET & BASE
 * ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

body.menu-open {
    overflow: hidden;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover { color: var(--color-primary-dark); }

ul, ol { list-style: none; }

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main { flex: 1; }


/* ============================================================
 * 3. TYPOGRAPHY
 * ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.15;
    color: var(--color-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; }

p {
    color: var(--color-mid);
    margin-bottom: var(--space-md);
}
p:last-child { margin-bottom: 0; }


/* ============================================================
 * 4. LAYOUT & GRID
 * ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-xxl) 0;
}

.section--tight {
    padding: var(--space-xl) 0;
}

.section--pink-bg {
    background: var(--color-primary-light);
}

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

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-lg);
}


/* ============================================================
 * 5. BUTTONS
 * ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition:
        background var(--t-fast),
        color var(--t-fast),
        border-color var(--t-fast),
        transform var(--t-bounce),
        box-shadow var(--t-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn:active {
    transform: translateY(0);
}

/* Primary — hot pink filled */
.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-pink);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    box-shadow: 0 8px 40px rgba(233,30,140,0.35);
}

/* Secondary — yellow filled */
.btn--secondary {
    background: var(--color-secondary);
    color: var(--color-dark);
    box-shadow: 0 4px 20px rgba(255,214,0,0.35);
}

.btn--secondary:hover {
    background: var(--color-secondary-dark);
    color: var(--color-dark);
    box-shadow: 0 8px 40px rgba(255,214,0,0.45);
}

/* Outline — transparent with pink border */
.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

/* Outline white — for dark/coloured backgrounds */
.btn--outline-white {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.7);
}

.btn--outline-white:hover {
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
    border-color: var(--color-white);
}

/* Sizes */
.btn--sm {
    font-size: 0.875rem;
    padding: 10px 20px;
}

.btn--lg {
    font-size: 1.1rem;
    padding: 18px 36px;
}


/* ============================================================
 * 6. HEADER & NAVIGATION
 * ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--color-white);
    border-bottom: 1px solid transparent;
    transition:
        box-shadow var(--t-normal),
        border-color var(--t-normal),
        height var(--t-normal);
}

/* Compact state after scrolling */
.site-header.is-sticky {
    box-shadow: var(--shadow-md);
    border-bottom-color: rgba(26,26,46,0.06);
    height: 66px;
}

.site-header__inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: var(--space-xl);
}

/* Brand / Logo */
.site-header__brand {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex-shrink: 0;
}

.site-header__brand .custom-logo-link img,
.site-header__logo img {
    height: 48px;
    width: auto;
    max-width: 180px;
}

.site-header__tagline {
    font-size: 0.7rem;
    color: var(--color-mid);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Navigation */
.site-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-menu li a {
    display: block;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-dark);
    border-radius: var(--radius-full);
    transition: background var(--t-fast), color var(--t-fast);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

/* Header actions: search, account, cart */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.header-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-dark);
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
    position: relative;
    text-decoration: none;
}

.header-action:hover {
    background: var(--color-light);
    color: var(--color-primary);
    transform: scale(1.05);
}

/* Cart count badge */
.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    pointer-events: none;
}

/* Hamburger button — mobile only */
.header-action--menu {
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    display: none;
}

.hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: transform var(--t-normal), opacity var(--t-fast);
}

.header-action--menu.is-active .hamburger:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.header-action--menu.is-active .hamburger:nth-child(2) {
    opacity: 0;
}
.header-action--menu.is-active .hamburger:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav panel */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    padding: var(--space-lg) 0;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform var(--t-normal), opacity var(--t-normal);
    z-index: 999;
    pointer-events: none;
}

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

.mobile-nav__menu {
    display: flex;
    flex-direction: column;
    list-style: none;
}

.mobile-nav__menu li a {
    display: block;
    padding: 14px var(--space-lg);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-dark);
    border-bottom: 1px solid rgba(26,26,46,0.06);
    transition: color var(--t-fast), background var(--t-fast);
}

.mobile-nav__menu li a:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

/* Offset page content below fixed header */
.site-main {
    padding-top: var(--header-height);
}


/* ============================================================
 * 7. HERO SECTION
 * ============================================================ */
.hero {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-mid) 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: var(--space-xxl) 0;
}

/* Background image overlay when image is set */
.hero[style*="background-image"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(26,26,46,0.92) 0%,
        rgba(26,26,46,0.75) 50%,
        rgba(26,26,46,0.3) 100%
    );
    z-index: 1;
}

/* Decorative blob — bottom right */
.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(233,30,140,0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero__overlay {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--color-white);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 2;
}

.hero__inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

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

.hero__title {
    color: var(--color-white);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: var(--space-lg);
}

.hero__title span {
    color: var(--color-secondary);
    display: block;
}

.hero__subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-xl);
    max-width: 480px;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero__image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__img {
    max-height: 460px;
    width: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}


/* ============================================================
 * 8. FEATURES STRIP
 * ============================================================ */
.features-strip {
    padding: var(--space-lg) 0;
    background: var(--color-white);
    border-bottom: 1px solid rgba(26,26,46,0.06);
    box-shadow: var(--shadow-sm);
}

.features-strip__list {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    list-style: none;
}

.features-strip__item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.features-strip__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.features-strip__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.features-strip__text strong {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--color-dark);
    display: block;
}

.features-strip__text span {
    font-size: 0.8rem;
    color: var(--color-mid);
    display: block;
}


/* ============================================================
 * 9. SECTION HEADINGS
 * ============================================================ */
.section-heading {
    margin-bottom: var(--space-xl);
}

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

.section-heading--left {
    text-align: left;
}

.section-heading h2 {
    margin-bottom: var(--space-sm);
    position: relative;
    display: inline-block;
}

/* Pink underline decoration on centred headings */
.section-heading--center h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    margin: var(--space-sm) auto 0;
}

.section-heading__subtitle {
    font-size: 1.1rem;
    color: var(--color-mid);
    font-weight: 600;
    margin-top: var(--space-sm);
}


/* ============================================================
 * 10. PRODUCT CARDS
 * ============================================================ */
.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition:
        transform var(--t-bounce),
        box-shadow var(--t-normal);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(26,26,46,0.05);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Image container — square crop */
.product-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--color-light);
}

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

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

/* No image placeholder */
.product-card__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: var(--color-light);
}

/* Sale badge */
.product-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.product-badge--sale {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Out of stock overlay */
.product-card__oos-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,26,46,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.product-card__oos-overlay span {
    color: var(--color-white);
    font-weight: 800;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.4);
    padding: 6px 16px;
    border-radius: var(--radius-full);
}

/* Card body */
.product-card__body {
    padding: var(--space-md) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
}

.product-card__title {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 800;
    line-height: 1.3;
}

.product-card__title a {
    color: var(--color-dark);
    transition: color var(--t-fast);
}

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

/* WooCommerce star rating */
.product-card__rating .star-rating {
    font-size: 0.8rem;
    color: var(--color-secondary-dark);
}

/* Price */
.product-card__price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

.product-card__price del {
    color: var(--color-light-mid);
    font-size: 0.9rem;
    font-weight: 400;
    margin-right: 4px;
}

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

/* Add to cart button inside card — auto push to bottom */
.product-card__body .button,
.product-card__body .add_to_cart_button {
    margin-top: auto;
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px var(--space-md);
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition:
        background var(--t-fast),
        transform var(--t-bounce);
}

.product-card__body .button:hover,
.product-card__body .add_to_cart_button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    color: var(--color-white);
}

/* Added to cart state */
.product-card__body .added_to_cart {
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-success);
    padding: var(--space-sm) 0;
}


/* ============================================================
 * 11. FEATURED PRODUCTS SECTION
 * ============================================================ */
.featured-products {
    background: var(--color-lighter);
}

.featured-products__cta {
    text-align: center;
    margin-top: var(--space-xl);
}


/* ============================================================
 * 12. PICK N MIX PROMO SECTION
 * ============================================================ */
.pick-n-mix-promo {
    background: var(--color-dark);
    position: relative;
    overflow: hidden;
}

/* Decorative background blobs */
.pick-n-mix-promo::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(233,30,140,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.pick-n-mix-promo::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,214,0,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.promo-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.promo-content h2 {
    color: var(--color-white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-lg);
}

.promo-content h2 span {
    color: var(--color-secondary);
}

.promo-content p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
}

.promo-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    list-style: none;
}

.promo-step {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.promo-step__num {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 800;
    font-size: 1rem;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-pink);
}

.promo-step__text {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 1rem;
}

.promo-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-height: 450px;
    width: auto;
}


/* ============================================================
 * 13. CATEGORY GRID
 * ============================================================ */
.category-grid__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
}

.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--color-light);
    transition: transform var(--t-bounce), box-shadow var(--t-normal);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-normal);
}

.category-card:hover img {
    transform: scale(1.1);
}

/* Dark gradient overlay at bottom */
.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(transparent, rgba(26,26,46,0.85));
    z-index: 1;
}

.category-card__label {
    position: absolute;
    bottom: var(--space-md);
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    padding: 0 var(--space-sm);
}


/* ============================================================
 * 14. TESTIMONIALS
 * ============================================================ */
.testimonials {
    background: var(--color-light);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(26,26,46,0.05);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    transition: transform var(--t-bounce), box-shadow var(--t-normal);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-card__stars {
    color: var(--color-secondary-dark);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-card__quote {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.6;
    flex: 1;
    font-style: italic;
}

.testimonial-card__author {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-mid);
}


/* ============================================================
 * 15. FOOTER
 * ============================================================ */
.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.8);
}

.footer-top {
    padding: var(--space-xxl) 0 var(--space-xl);
}

.footer-top__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-xl);
}

.footer-col--brand .custom-logo-link img,
.footer-logo img {
    height: 48px;
    width: auto;
    margin-bottom: var(--space-md);
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    font-style: italic;
    margin-bottom: var(--space-md);
}

.footer-col p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

.footer-col__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    letter-spacing: 0.02em;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    list-style: none;
}

.footer-nav li a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color var(--t-fast);
}

.footer-nav li a:hover {
    color: var(--color-secondary);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    list-style: none;
}

.footer-contact a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color var(--t-fast);
}

.footer-contact a:hover {
    color: var(--color-secondary);
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    list-style: none;
}

.trust-badges li {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--space-lg) 0;
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.footer-legal a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
    transition: color var(--t-fast);
}

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


/* ============================================================
 * 16. SEARCH OVERLAY
 * ============================================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,26,46,0.85);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    padding-top: 15vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-normal);
    backdrop-filter: blur(4px);
}

.search-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

.search-overlay .container {
    position: relative;
}

.search-overlay form {
    display: flex;
    gap: var(--space-sm);
}

.search-overlay input[type="search"] {
    flex: 1;
    padding: 18px var(--space-lg);
    font-size: 1.2rem;
    font-family: var(--font-body);
    border: none;
    border-radius: var(--radius-full);
    outline: none;
    color: var(--color-dark);
}

.search-overlay input[type="submit"] {
    padding: 18px var(--space-xl);
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--t-fast);
}

.search-overlay input[type="submit"]:hover {
    background: var(--color-primary-dark);
}

.search-overlay__close {
    position: absolute;
    top: -60px;
    right: var(--space-lg);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--color-white);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast);
}

.search-overlay__close:hover {
    background: rgba(255,255,255,0.25);
}


/* ============================================================
 * 17. UTILITY CLASSES
 * ============================================================ */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}


/* ============================================================
 * 18. RESPONSIVE — TABLET (max-width: 1024px)
 * ============================================================ */
@media (max-width: 1024px) {
    :root {
        --space-xxl: 72px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__subtitle { margin: 0 auto var(--space-xl); }
    .hero__actions  { justify-content: center; }
    .hero__image    { display: none; }

    .promo-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .promo-image { display: none; }
    .promo-steps { align-items: center; }

    .footer-top__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}


/* ============================================================
 * 19. RESPONSIVE — MOBILE (max-width: 768px)
 * ============================================================ */
@media (max-width: 768px) {
    :root {
        --space-xxl: 56px;
        --space-xl: 36px;
        --header-height: 68px;
    }

    /* Show hamburger, hide desktop nav */
    .header-action--menu { display: flex; }
    .site-header__nav    { display: none; }
    .site-header__tagline { display: none; }

    /* Tighter header on mobile */
    .site-header__inner { gap: var(--space-md); }
    .site-header__brand .custom-logo-link img { height: 38px; }

    /* Hero */
    .hero { min-height: 480px; padding: var(--space-xl) 0 var(--space-xxl); }
    .hero__title { font-size: 2.2rem; }
    .hero__subtitle { font-size: 1rem; }
    .hero__actions { flex-direction: column; align-items: center; }
    .btn--lg { padding: 16px 28px; font-size: 1rem; }

    /* Features strip — 2 columns */
    .features-strip__list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    /* Product grid — 2 columns */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    /* Category grid — 2 columns */
    .category-grid__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Testimonials — 1 column */
    .testimonials__grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-top__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    .footer-bottom__inner { flex-direction: column; text-align: center; }
    .footer-legal { justify-content: center; }
}
