/*
Theme Name: Anel's Cookies
Theme URI: https://anelcookies.shop
Description: Elegant artisan cookie shop - Sleek pink theme with hero slider
Version: 1.3
Author: Anel's Cookies
*/

:root {
    --primary-pink: #FFB8D1;
    --blush-pink: #FFC9D9;
    --soft-pink: #FFE4EC;
    --soft-cream: #FFF8F0;
    --warm-beige: #F5E6D3;
    --light-beige: #FAF4ED;
    --text-dark: #3D2C2E;
    --accent-gold: #D4AF37;
    --rose-gold: #E8C4B8;
}

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

body {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    background: linear-gradient(180deg, var(--soft-cream) 0%, #FFFFFF 100%);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 1rem;
    box-shadow: 0 2px 20px rgba(255, 184, 209, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 184, 209, 0.2);
}

.site-logo {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--rose-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(255, 184, 209, 0.2);
}

.site-logo a {
    text-decoration: none;
    color: inherit;
}

.site-tagline {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-style: italic;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Mobile Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1001;
    /* Ensure minimum touch target size */
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.hamburger {
    width: 28px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: 0.5s ease-in-out;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-dark);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.menu-toggle.active .hamburger span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-toggle.active .hamburger span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

nav {
    text-align: center;
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    /* Minimum touch target size for mobile */
    padding: 0.75rem 1rem;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    position: relative;
}

nav a:hover {
    color: var(--primary-pink);
    background: var(--soft-pink);
    transform: translateY(-2px);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--soft-pink) 0%, var(--light-beige) 100%);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 184, 209, 0.4) 0%, rgba(232, 196, 184, 0.3) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.slide-content {
    position: relative;
    z-index: 2;
}

/* Enhanced text readability overlay on mobile */
.slide-content h1,
.slide-content p {
    position: relative;
    padding: 0.5rem 1rem;
}

.slide-content h1::before,
.slide-content p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(61, 44, 46, 0.35);
    border-radius: 12px;
    z-index: -1;
    backdrop-filter: blur(8px);
}

.slide-content h1 {
    /* Minimum 16px on mobile, scales up on larger screens */
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.slide-content p {
    /* Minimum 16px on mobile */
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-style: italic;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    /* Minimum touch target size */
    padding: 1rem 2rem;
    min-height: 44px;
    min-width: 120px;
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--blush-pink) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    /* Minimum 16px font size */
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 184, 209, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 184, 209, 0.6);
    background: linear-gradient(135deg, var(--blush-pink) 0%, var(--primary-pink) 100%);
}

/* Slider Navigation */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.dot {
    /* Minimum touch target size */
    width: 16px;
    height: 16px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid white;
    padding: 14px;
    position: relative;
}

.dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.dot.active::after {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Products Section */
.products-section {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

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

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 184, 209, 0.15);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 184, 209, 0.1);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(255, 184, 209, 0.3);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-info {
    padding: 1.5rem;
    background: linear-gradient(180deg, white 0%, var(--soft-pink) 100%);
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.product-price {
    font-size: 1.3rem;
    color: var(--accent-gold);
    font-weight: 700;
}

.product-description {
    margin-top: 0.8rem;
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 0.75;
}

/* Categories Section */
.categories-section {
    background: linear-gradient(135deg, var(--soft-pink) 0%, var(--light-beige) 100%);
    padding: 4rem 1.5rem;
    margin-top: 4rem;
}

.categories-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(255, 184, 209, 0.15);
    border: 1px solid rgba(255, 184, 209, 0.2);
    /* Minimum touch target size */
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 184, 209, 0.3);
    background: linear-gradient(135deg, white 0%, var(--soft-pink) 100%);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #2A1E1F 100%);
    color: white;
    padding: 3rem 1.5rem;
    text-align: center;
    margin-top: 4rem;
}

.footer a {
    color: var(--primary-pink);
    text-decoration: none;
    transition: color 0.3s ease;
    /* Increased touch target spacing */
    display: inline-block;
    padding: 0.75rem 1rem;
    min-height: 44px;
    min-width: 44px;
    margin: 0.5rem;
    border-radius: 8px;
    line-height: 1.5;
}

.footer a:hover {
    color: var(--blush-pink);
    background: rgba(255, 184, 209, 0.1);
}

.footer p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Mobile-specific styles (< 600px) */
@media (max-width: 768px) {
    /* Show hamburger menu */
    .menu-toggle {
        display: flex;
    }
    
    /* Hide navigation by default on mobile */
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(255, 184, 209, 0.2);
        margin-top: 0;
        border-top: 1px solid rgba(255, 184, 209, 0.2);
    }
    
    /* Show navigation when menu is active */
    nav.active {
        display: flex;
    }
    
    nav a {
        width: 100%;
        padding: 1rem;
        margin: 0.25rem 0;
        text-align: center;
        font-size: 1.1rem;
    }
    
    /* Ensure proper spacing for logo with hamburger */
    .site-header {
        position: relative;
        padding-right: 60px;
    }
    
    /* Enhanced mobile touch targets for footer */
    .footer a {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0.75rem auto;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    /* Improved spacing for mobile content */
    .products-section,
    .categories-section {
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Constrain product images on mobile */
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-image {
        max-height: 400px;
        object-fit: cover;
    }
    
    /* Smaller hero slider on mobile */
    .hero-slider {
        height: 50vh;
        min-height: 400px;
    }
    
    /* Category cards sizing */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .category-card {
        min-height: 44px;
    }
}

/* Tablet (600px+) */
@media (min-width: 600px) {
    .site-logo {
        font-size: 2.8rem;
    }

    .slide-content h1 {
        font-size: 3.5rem;
    }

    .slide-content p {
        font-size: 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-slider {
        height: 70vh;
    }
    
    /* Footer links can be inline on tablet+ */
    .footer a {
        display: inline-block;
        width: auto;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .site-header {
        padding: 2rem 0;
        padding-right: 0;
    }

    .site-logo {
        font-size: 3.5rem;
        letter-spacing: 0.3em;
    }

    .hero-slider {
        height: 80vh;
        min-height: 600px;
    }

    .slide-content h1 {
        font-size: 5rem;
    }

    .slide-content p {
        font-size: 1.8rem;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    nav a {
        font-size: 1.1rem;
        padding: 0.5rem 1.2rem;
    }
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.category-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading state */
.product-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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