@import 'variables.css';

/* ═══════════════════════════════════════════════════════════════════
   BASIC RESET & BASE STYLES
   ═══════════════════════════════════════════════════════════════════ */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    font-weight: 400;
    background-color: var(--bg-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: var(--leading-tight);
    margin-bottom: 0.5em;
    color: var(--text-primary);
}

h1 {
    font-size: var(--text-5xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-3xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-bottom: 1em;
}

p + p {
    margin-top: 0;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-reddish-400);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

/* ═══════════════════════════════════════════════════════════════════
   LAYOUT & CONTAINERS
   ═══════════════════════════════════════════════════════════════════ */
.container, .nav-container, .hero-content, .products-grid, .about-content, .footer-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    position: relative;
    padding: 5rem 0;
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS - Soft, Inviting Design
   ═══════════════════════════════════════════════════════════════════ */
.btn, .button, .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 50px;
    border: none;
    outline: none;
    min-height: 44px;
    min-width: 44px;
}

.btn:focus-visible, .button:focus-visible, .cta-button:focus-visible {
    box-shadow: 0 0 0 3px var(--color-pinkish-500);
}

/* Primary button - Main CTA */
.btn-primary, .button-primary {
    background: linear-gradient(
        135deg,
        var(--color-green-dark-500) 0%,
        var(--color-green-dark-600) 100%
    );
    color: var(--text-primary);
    box-shadow: 
        0 4px 15px rgba(62, 74, 8, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover, .button-primary:hover {
    background: linear-gradient(
        135deg,
        var(--color-green-dark-400) 0%,
        var(--color-green-dark-500) 100%
    );
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(62, 74, 8, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-primary:active, .button-primary:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(62, 74, 8, 0.3);
}

/* Secondary button - Alternative action */
.btn-secondary, .button-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover, .button-secondary:hover {
    background: var(--accent-primary);
    color: var(--color-brown-800);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 109, 92, 0.3);
}

/* CTA button - High emphasis */
.btn-cta, .cta-button {
    background: linear-gradient(
        135deg,
        var(--color-brown-500) 0%,
        var(--color-brown-600) 100%
    );
    color: var(--text-primary);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: 
        0 4px 20px rgba(86, 60, 49, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover, .cta-button:hover {
    background: linear-gradient(
        135deg,
        var(--color-brown-400) 0%,
        var(--color-brown-500) 100%
    );
    transform: translateY(-3px);
    box-shadow: 
        0 8px 30px rgba(86, 60, 49, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Large button variant */
.btn-lg, .cta-button-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.15rem;
}

/* Small button variant */
.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Icon button */
.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */
header {
    background-color: var(--bg-header);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.logo {
    margin-bottom: 0;
    font-size: 1.5rem;
    color: var(--text-on-pink);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-menu li a {
    padding: 0.5rem;
    position: relative;
    color: var(--text-on-pink);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a[aria-current="page"]::after {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION - Immersive Texture Design
   ═══════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: 
        /* Layer 1: Radial warmth spotlight */
        radial-gradient(
            ellipse 80% 60% at 50% 40%,
            rgba(139, 109, 92, 0.3) 0%,
            transparent 70%
        ),
        /* Layer 2: Diagonal warmth sweep */
        linear-gradient(
            135deg,
            var(--color-green-medium-600) 0%,
            var(--color-green-medium-500) 35%,
            var(--color-brown-light-500) 100%
        );
}

/* Knit texture overlay using CSS pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.08;
    pointer-events: none;
    background-image: 
        /* Horizontal yarn strands */
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 4px,
            rgba(255, 255, 255, 0.1) 4px,
            rgba(255, 255, 255, 0.1) 5px
        ),
        /* Vertical yarn strands */
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 8px,
            rgba(255, 255, 255, 0.05) 8px,
            rgba(255, 255, 255, 0.05) 9px
        );
    background-size: 12px 10px;
}

/* Yarn strand decorative element */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    pointer-events: none;
    background: 
        radial-gradient(
            ellipse 100% 200px at 50% 100%,
            var(--color-violet-500) 0%,
            transparent 71%
        );
}

/* Hero content container */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

/* Hero title with cozy text shadow */
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 
        0 2px 4px rgba(86, 60, 49, 0.3),
        0 4px 12px rgba(42, 40, 54, 0.2);
}

/* Hero subtitle */
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero CTA button - warm, inviting */
.hero .cta-button {
    background: linear-gradient(
        135deg,
        var(--color-brown-500) 0%,
        var(--color-brown-600) 100%
    );
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(86, 60, 49, 0.4),
        0 2px 6px rgba(42, 40, 54, 0.2);
}

.hero .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 6px 20px rgba(86, 60, 49, 0.5),
        0 4px 10px rgba(42, 40, 54, 0.3);
    background: linear-gradient(
        135deg,
        var(--color-brown-400) 0%,
        var(--color-brown-500) 100%
    );
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION TRANSITIONS - Organic Wave Dividers
   ═══════════════════════════════════════════════════════════════════ */
/* Wave divider - Top (previous section flows into current) */
.section-wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.section-wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
    transform: rotateY(180deg);
}

/* Wave divider - Bottom (current section flows to next) */
.section-wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.section-wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

/* Gentle wave path - fills inherited from section background */
.wave-gentle path {
    fill: currentColor;
}

/* Multi-layer wave for organic feel */
.wave-layered {
    position: relative;
}

.wave-layered .wave-back {
    position: absolute;
    opacity: 0.5;
    top: -20px;
}

.wave-layered .wave-front {
    position: relative;
    z-index: 1;
}

/* Section title with decorative underline */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-primary) 20%,
        var(--accent-primary) 80%,
        transparent 100%
    );
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   PRODUCT CARDS - Soft, Organic Design
   ═══════════════════════════════════════════════════════════════════ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--border-medium);
}

/* Product image container */
.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--color-pinkish-200) 0%,
        var(--color-brown-light-200) 100%
    );
    border-radius: 20px 20px 0 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 20px 20px 0 0;
}

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

/* Soft overlay on hover */
.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(86, 60, 49, 0.3) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

/* Product info section */
.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-pinkish-400);
    text-shadow: 0 0 20px rgba(139, 109, 92, 0.3);
}

/* Quick view button (optional) */
.product-card .quick-view {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .quick-view {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION STYLING
   ═══════════════════════════════════════════════════════════════════ */
/* Section headings should be centered */
section h2 {
    text-align: center;
}

/* Section intro text centered */
.section-intro {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

/* Products grid should be centered within its container */
.products-grid {
    justify-content: center;
}

.featured-products {
    background-color: var(--bg-body);
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ═══════════════════════════════════════════════════════════════════
   PAGE HEADER SECTION - Green splash with gradient
   ═══════════════════════════════════════════════════════════════════ */
.page-header {
    position: relative;
    padding: 4rem 0;
    text-align: center;
    background:
        radial-gradient(
            ellipse 80% 60% at 50% 40%,
            rgba(139, 109, 92, 0.3) 0%,
            transparent 70%
        ),
        linear-gradient(
            135deg,
            var(--color-green-medium-600) 0%,
            var(--color-green-medium-500) 35%,
            var(--color-brown-light-500) 100%
        );
}

.page-header h1 {
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(86, 60, 49, 0.3);
}

.page-header p {
    color: var(--text-secondary);
}

/* Transition gradient to next section */
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--bg-body) 100%
    );
    pointer-events: none;
}

/* About Section */
.about {
    background: linear-gradient(
        180deg,
        var(--color-pinkish-100) 0%,
        var(--color-pinkish-200) 100%
    );
    color: var(--text-on-light);
}

.about h2 {
    color: var(--text-on-light);
}

.about-content {
    text-align: center;
    max-width: 800px;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-on-light);
}

/* ═══════════════════════════════════════════════════════════════════
   CALL TO ACTION SECTION
   ═══════════════════════════════════════════════════════════════════ */
.cta-section {
    text-align: center;
    padding: 5rem 0;
    background: linear-gradient(
        135deg,
        var(--color-violet-400) 0%,
        var(--color-brown-light-400) 50%,
        var(--color-pinkish-300) 100%
    );
}

.cta-section h2, .cta-section p {
    color: var(--text-primary);
}

.cta-section p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* Overriding button color for this specific section for better contrast */
.cta-section .cta-button {
    background: linear-gradient(
        135deg,
        var(--color-brown-500) 0%,
        var(--color-brown-600) 100%
    );
    color: var(--text-primary);
}

.cta-section .cta-button:hover {
    background: linear-gradient(
        135deg,
        var(--color-brown-400) 0%,
        var(--color-brown-500) 100%
    );
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
footer {
    background-color: var(--bg-footer);
    padding: 4rem 0 2rem;
    color: var(--text-muted);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    border-radius: 16px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

.footer-section p {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-pinkish-300);
}

.footer-section a:hover {
    color: var(--color-pinkish-200);
}

.footer-content .footer-section:last-child {
    grid-column: 1 / -1;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 1rem;
    background: transparent;
}

/* ═══════════════════════════════════════════════════════════════════
    FAQ SECTION - Category Spacing
    ═══════════════════════════════════════════════════════════════════ */
.faq-category {
    margin-bottom: 3rem;
}

/* ═══════════════════════════════════════════════════════════════════
    FORM ELEMENTS - Warm, Inviting Inputs
    ═══════════════════════════════════════════════════════════════════ */
.form-input,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-on-light);
    background: var(--color-pinkish-100);
    border: 2px solid transparent;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-input:hover,
input:hover,
textarea:hover,
select:hover {
    background: var(--color-brown-100);
}

.form-input:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-brown-light-500);
    background: #fff;
    box-shadow: 
        0 0 0 4px rgba(139, 109, 92, 0.15),
        inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Labels */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Textarea */
textarea {
    min-height: 150px;
    resize: vertical;
}

/* Select dropdown */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238B6D5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    padding-right: 3rem;
}

/* ═══════════════════════════════════════════════════════════════════
   BLOCKQUOTES - Testimonial Style
   ═══════════════════════════════════════════════════════════════════ */
blockquote {
    position: relative;
    padding: 2rem;
    margin: 2rem 0;
    font-family: var(--font-accent);
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-radius: 20px;
    border-left: 4px solid var(--accent-primary);
}

blockquote::before {
    content: '"';
    position: absolute;
    top: 0;
    left: 1rem;
    font-size: 4rem;
    font-family: var(--font-accent);
    color: var(--accent-primary);
    opacity: 0.3;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════════
   ANIMATIONS - Subtle Movement
   ═══════════════════════════════════════════════════════════════════ */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(-3deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.hero-decoration {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}

.hero-decoration--yarn-1 {
    top: 10%;
    left: 5%;
    width: 80px;
    animation: float 6s ease-in-out infinite;
}

.hero-decoration--yarn-2 {
    top: 60%;
    right: 10%;
    width: 60px;
    animation: float-delayed 8s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO ILLUSTRATIONS - Whimsical SVG Elements
   ═══════════════════════════════════════════════════════════════════ */
.hero-illustration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.hero-illustration--cat {
    bottom: 5%;
    left: 3%;
    width: 120px;
    opacity: 0.75;
    animation: float 7s ease-in-out infinite;
}

.hero-illustration--tug-of-war {
    bottom: 8%;
    right: 5%;
    width: 200px;
    opacity: 0.75;
    animation: float-delayed 8s ease-in-out infinite;
}

.hero-illustration--yarn-ball {
    opacity: 0.7;
    pointer-events: none;
}

.hero-illustration--yarn-ball-1 {
    top: 15%;
    right: 8%;
    width: 60px;
    animation: float 6s ease-in-out infinite;
}

.hero-illustration--yarn-ball-2 {
    top: 35%;
    left: 10%;
    width: 45px;
    animation: float-delayed 7s ease-in-out infinite;
}

.hero-illustration--yarn-ball-3 {
    bottom: 25%;
    right: 15%;
    width: 50px;
    animation: float 8s ease-in-out infinite;
}

.hero-illustration--yarn-ball-4 {
    top: 50%;
    right: 25%;
    width: 55px;
    animation: float-delayed 6.5s ease-in-out infinite;
}

.hero-illustration--yarn-ball-5 {
    bottom: 35%;
    left: 8%;
    width: 40px;
    animation: float 7.5s ease-in-out infinite;
}

.hero-illustration--yarn-ball-6 {
    top: 25%;
    right: 35%;
    width: 48px;
    animation: float-delayed 8.5s ease-in-out infinite;
}

/* Mobile responsiveness for illustrations */
@media (max-width: 768px) {
    .hero-illustration--cat {
        width: 80px;
        bottom: 3%;
        left: 2%;
    }

    .hero-illustration--tug-of-war {
        width: 120px;
        bottom: 5%;
        right: 3%;
    }

    .hero-illustration--yarn-ball-1 {
        width: 40px;
    }

    .hero-illustration--yarn-ball-2 {
        width: 30px;
    }

    .hero-illustration--yarn-ball-3 {
        width: 35px;
    }

    .hero-illustration--yarn-ball-4 {
        width: 38px;
    }

    .hero-illustration--yarn-ball-5 {
        width: 28px;
    }

    .hero-illustration--yarn-ball-6 {
        width: 32px;
    }
}

@media (max-width: 480px) {
    .hero-illustration--cat,
    .hero-illustration--tug-of-war {
        display: none;
    }

    .hero-illustration--yarn-ball {
        opacity: 0.5;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        var(--color-pinkish-500) 0%,
        var(--color-pinkish-200) 50%,
        var(--color-pinkish-500) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* Reduced motion - disable all animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE OPTIMIZATIONS - Touch-Friendly & Cozy
   ═══════════════════════════════════════════════════════════════════ */
/* Ensure minimum touch targets */
a, button, .btn, input, select, textarea {
    min-height: 44px;
    min-width: 44px;
}

/* Mobile navigation */
.nav-mobile {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-mobile.active {
    opacity: 1;
    visibility: visible;
}

.nav-mobile a {
    font-size: var(--text-xl);
    padding: 1rem 2rem;
    border-radius: 50px;
    background: var(--bg-card);
}

/* Mobile menu toggle (hamburger) */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-on-pink);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Smooth scrolling on mobile */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Improve tap highlighting */
* {
    -webkit-tap-highlight-color: rgba(139, 109, 92, 0.2);
}

/* Momentum scrolling for iOS */
.scrollable {
    -webkit-overflow-scrolling: touch;
}

/* Pull-to-refresh colors (PWA) */
body {
    overscroll-behavior-y: contain;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN - Mobile-First Approach
   ═══════════════════════════════════════════════════════════════════ */

/* Base mobile styles (320px+) */

/* Mobile product grid - single column */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
}

/* Mobile product cards - full width, swipeable feel */
.product-card {
    border-radius: 24px;
}

/* Mobile hero - more padding, shorter height */
.hero {
    min-height: 60vh;
    padding: 3rem 1.5rem;
}

.hero h1 {
    font-size: var(--text-3xl);
}

/* Mobile wave dividers - smaller */
.section-wave-top svg,
.section-wave-bottom svg {
    height: 40px;
}

/* Mobile buttons - larger touch area */
.btn, .button {
    padding: 1rem 2rem;
    width: 100%;
    justify-content: center;
}

/* Mobile footer - stacked */
.footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
}

/* Tablet styles (768px+) */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 2rem;
    }

    .hero {
        min-height: 65vh;
        padding: 4rem 2rem;
    }

    .hero h1 {
        font-size: var(--text-4xl);
    }

    .section-wave-top svg,
    .section-wave-bottom svg {
        height: 60px;
    }

    .btn, .button {
        width: auto;
    }

    .menu-toggle {
        display: none;
    }

    .nav-mobile {
        position: static;
        flex-direction: row;
        background: transparent;
        opacity: 1;
        visibility: visible;
        backdrop-filter: none;
    }

    .nav-mobile a {
        font-size: var(--text-base);
        padding: 0.5rem 1rem;
        background: transparent;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
}

/* Mobile navigation fixes (below 768px) */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
    }
    
    .logo {
        display: none;  /* Hide logo on mobile */
    }
    
    .nav-menu {
        flex-wrap: nowrap;  /* Keep on single line */
        justify-content: center;
        gap: 0.5rem;  /* Tighter spacing */
        font-size: 0.85rem;  /* Smaller text */
    }
    
    .nav-menu li a {
        padding: 0.5rem 0.75rem;
    }
}

/* Desktop styles (1024px+) */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .hero {
        min-height: 70vh;
        padding: 5rem 3rem;
    }

    .hero h1 {
        font-size: var(--text-5xl);
    }

    .section-wave-top svg,
    .section-wave-bottom svg {
        height: 80px;
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large desktop styles (1280px+) */
@media (min-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   TOUCH INTERACTIONS - Enhanced Mobile UX
   ═══════════════════════════════════════════════════════════════════ */

/* Disable hover effects on touch devices */
@media (hover: none) {
    .product-card:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .product-card:hover .product-image img {
        transform: none;
    }

    .btn:hover, .button:hover {
        transform: none;
    }
}

/* Active states for touch */
@media (hover: none) {
    .product-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .btn:active, .button:active {
        transform: scale(0.96);
        opacity: 0.9;
    }
}
