/*
Theme Name: Milk & Moon
Theme URI: https://milkandmoon.co.za
Author: Advanced Agent
Description: Custom WordPress + WooCommerce Theme for Milk & Moon Editorial Site.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: milk-and-moon
*/

:root {
            --peach: #F6B3A4;
            --red: #FF0000;
            --white: #FFFFFF;
            --bg-light: #FEF5F3;
            --dark-text: #2D3436;
        }

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

        body {
            font-family: 'DM Sans', sans-serif;
            background-color: var(--bg-light);
            color: var(--dark-text);
            overflow-x: hidden;
        }

        h1, h2, h3, .serif {
            font-family: 'Lora', serif;
        }

        /* Giant Background Text */
        .bg-text {
            position: absolute;
            top: 15%;
            left: -5%;
            font-size: 18vw;
            font-weight: 700;
            color: var(--dark-text);
            opacity: 0.03;
            z-index: -1;
            white-space: nowrap;
            pointer-events: none;
        }

        /* Pill Navigation */
        nav {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 1200px;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(12px);
            padding: 15px 40px;
            border-radius: 50px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            box-shadow: 0 10px 30px rgba(0,0,0,0.03);
            border: 1px solid rgba(246, 179, 164, 0.3); /* Subtle peach border */
        }

        .logo {
            display: flex;
            align-items: center;
            font-size: 1.6rem;
            color: var(--red);
            text-decoration: none;
            gap: 10px;
            letter-spacing: -0.5px;
        }

        .logo i {
            font-style: italic;
            font-weight: 400;
        }

        .logo-icon {
            width: 38px;
            height: 38px;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }

        .nav-links a {
            text-decoration: none;
            color: var(--dark-text);
            font-weight: 500;
            font-size: 0.95rem;
            transition: color 0.3s ease;
        }

        .nav-links a:hover {
            color: var(--red);
        }

        .cart-pill {
            background-color: var(--dark-text);
            color: var(--white);
            padding: 8px 20px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: background 0.3s;
        }

        .cart-pill:hover {
            background-color: var(--red);
        }

        .cart-count {
            background-color: var(--peach);
            color: var(--dark-text);
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: 700;
        }

        /* Hero Split Section */
        .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            padding: 0 5%;
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
        }

        .hero-content {
            flex: 1;
            padding-right: 2rem;
            max-width: 650px;
            position: relative;
            z-index: 10;
        }

        .hero-title {
            font-size: 5vw;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            color: var(--dark-text);
        }

        .hero-title span {
            color: var(--red);
            font-style: italic;
        }

        .hero-subtitle {
            font-size: 1.25rem;
            color: #555;
            max-width: 450px;
            margin-bottom: 2.5rem;
            line-height: 1.6;
        }

        .btn-large {
            background-color: var(--red);
            color: var(--white);
            padding: 18px 40px;
            border-radius: 50px;
            text-decoration: none;
            font-size: 1.1rem;
            font-weight: 500;
            display: inline-block;
            transition: all 0.3s ease;
        }

        .btn-large:hover {
            background-color: var(--dark-text);
            color: var(--white);
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .hero-visual {
            position: absolute;
            right: -5vw;
            top: 50%;
            transform: translateY(-50%);
            width: 65%;
            max-width: 900px;
            height: 100vh;
            display: flex;
            justify-content: flex-end;
            align-items: center;
            z-index: 1;
            pointer-events: none;
        }

        .moon-fill-container {
            width: 100%;
            aspect-ratio: 1;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-moon-svg {
            width: 100%;
            height: 100%;
            filter: drop-shadow(0 20px 30px rgba(0,0,0,0.05));
        }

        .milk-group {
            will-change: transform;
            animation: riseMilk 12s ease-in-out infinite alternate;
        }

        .milk-wave-path {
            will-change: transform;
            animation: moveWave 2.5s linear infinite;
        }

        @keyframes riseMilk {
            0%, 5% { transform: translate3d(0, 60px, 0); }
            95%, 100% { transform: translate3d(0, -40px, 0); }
        }

        @keyframes moveWave {
            0% { transform: translate3d(0, 0, 0); }
            100% { transform: translate3d(-100px, 0, 0); }
        }

        .twinkle-1 { will-change: transform, opacity; animation: twinkle 3s infinite alternate; }
        .twinkle-2 { will-change: transform, opacity; animation: twinkle 4s infinite alternate 1s; }
        .twinkle-3 { will-change: transform, opacity; animation: twinkle 2.5s infinite alternate 0.5s; }

        @keyframes twinkle {
            0% { opacity: 0.2; transform: scale3d(0.8, 0.8, 1); }
            100% { opacity: 1; transform: scale3d(1.2, 1.2, 1); }
        }

        /* Store - Editorial Layout */
        .store {
            padding: 8rem 5%;
            background-color: var(--white);
            background-image: repeating-linear-gradient(
                90deg,
                var(--white) 0px,
                var(--white) 100px,
                rgba(246, 179, 164, 0.3) 100px,
                rgba(246, 179, 164, 0.3) 200px
            );
        }

        .store-header {
            text-align: center;
            margin-bottom: 5rem;
        }

        .store-header h2 {
            font-size: 3.5rem;
        }

        .editorial-row {
            display: flex;
            align-items: center;
            gap: 4rem;
            margin-bottom: 6rem;
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
        }

        .editorial-row.reverse {
            flex-direction: row-reverse;
        }

        .ed-image {
            flex: 1;
            background-color: var(--bg-light);
            height: 500px;
            border-radius: 40px;
            position: relative;
            overflow: hidden;
        }

        .ed-image::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 60%;
            height: 60%;
            background-color: var(--white);
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        }

        .ed-content {
            flex: 1;
            padding: 2rem;
        }

        .tag {
            background-color: var(--red);
            color: var(--white);
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: inline-block;
            margin-bottom: 1.5rem;
        }

        .ed-content h3 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .ed-content p {
            color: #666;
            font-size: 1.1rem;
            margin-bottom: 2rem;
            line-height: 1.8;
        }

        .price-row {
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .price {
            font-size: 1.5rem;
            font-weight: 700;
        }

        .btn-add {
            background-color: var(--red);
            color: var(--white);
            border: none;
            padding: 12px 30px;
            border-radius: 30px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: opacity 0.3s;
        }

        .btn-add:hover {
            opacity: 0.9;
        }

        /* Marquee Reviews */
        .reviews {
            background-color: var(--red);
            padding: 4rem 0;
            overflow: hidden;
            position: relative;
            scroll-margin-top: 35vh;
        }

        .review-action {
            text-align: center;
            padding: 0;
            position: relative;
            z-index: 10;
        }

        .btn-outline-dark {
            border: 2px solid var(--red);
            background-color: var(--white);
            color: var(--red);
            padding: 15px 35px;
            border-radius: 50px;
            text-decoration: none;
            font-size: 1.1rem;
            font-weight: 500;
            display: inline-block;
            transition: all 0.3s ease;
            transform: translateY(-50%);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        }

        .btn-outline-dark:hover {
            background-color: var(--red);
            color: var(--white);
            transform: translateY(-50%) scale(1.05);
            box-shadow: 0 15px 30px rgba(255, 0, 0, 0.15);
        }

        .marquee-wrapper {
            white-space: nowrap;
            overflow: hidden;
        }

        .marquee-content {
            display: inline-block;
            animation: marquee 25s linear infinite;
        }

        .review-item {
            display: inline-block;
            font-size: 1.5rem;
            font-family: 'Lora', serif;
            color: var(--white);
            margin-right: 4rem;
        }

        .review-item span {
            color: var(--bg-light);
            font-weight: bold;
        }

        @keyframes marquee {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        /* Contact Section */
        .contact {
            padding: 8rem 5%;
            text-align: center;
            background-color: var(--bg-light);
        }

        .contact-card {
            background-color: var(--white);
            max-width: 800px;
            margin: 0 auto;
            padding: 4rem;
            border-radius: 40px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.02);
            border: 1px solid rgba(246, 179, 164, 0.4);
        }

        .contact-card h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .contact-form {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-top: 2.5rem;
            text-align: left;
        }

        .form-full {
            grid-column: span 2;
        }

        .contact-form input, .contact-form textarea {
            width: 100%;
            padding: 16px;
            background-color: var(--bg-light);
            border: 1px solid transparent;
            border-radius: 15px;
            font-family: 'DM Sans', sans-serif;
            font-size: 1rem;
            transition: border 0.3s;
        }

        .contact-form input:focus, .contact-form textarea:focus {
            outline: none;
            border-color: var(--red);
        }

        .contact-form textarea {
            height: 150px;
            resize: none;
        }

        .btn-submit {
            grid-column: span 2;
            background-color: var(--dark-text);
            color: var(--white);
            border: none;
            padding: 18px;
            border-radius: 30px;
            font-size: 1.1rem;
            cursor: pointer;
            transition: background 0.3s;
        }

        .btn-submit:hover {
            background-color: var(--red);
        }

        /* Cart Sidebar Styles */
        .cart-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.4);
            z-index: 1500;
            opacity: 0; visibility: hidden;
            transition: all 0.3s;
        }
        .cart-overlay.visible { opacity: 1; visibility: visible; }
        
        .cart-sidebar {
            position: fixed;
            top: 0; right: -450px;
            width: 100%; max-width: 450px;
            height: 100vh;
            background: var(--bg-light);
            z-index: 2000;
            box-shadow: -10px 0 30px rgba(0,0,0,0.1);
            transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
            display: flex; flex-direction: column;
            padding: 2.5rem;
        }
        .cart-sidebar.open { right: 0; }
        
        .cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; border-bottom: 1px solid #ddd; padding-bottom: 1rem; }
        .cart-header h2 { font-size: 2rem; color: var(--dark-text); }
        .cart-close { background: none; border: none; font-size: 2.5rem; cursor: pointer; color: #888; transition: color 0.3s; line-height: 1; }
        .cart-close:hover { color: var(--red); }
        .cart-items { flex: 1; overflow-y: auto; }
        .cart-footer { margin-top: 2rem; border-top: 1px solid #ddd; padding-top: 1.5rem; }
        .cart-total { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: bold; margin-bottom: 1.5rem; }

        /* Social Videos Section */
        .social-videos {
            padding: 8rem 5%;
            background-color: var(--bg-light);
            text-align: center;
        }

        .social-header {
            margin-bottom: 5rem;
        }

        .social-header h2 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            color: var(--dark-text);
        }

        .social-header p {
            color: #666;
            font-size: 1.25rem;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
        }

        .video-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2.5rem;
            max-width: 1200px;
            margin: 0 auto 1.5rem;
        }

        .video-card {
            background: var(--white);
            border-radius: 40px;
            padding: 2rem;
            box-shadow: 0 20px 40px rgba(0,0,0,0.02);
            border: 1px solid rgba(246, 179, 164, 0.4);
            text-align: left;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .video-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 30px 60px rgba(0,0,0,0.05);
        }

        .video-placeholder {
            width: 100%;
            aspect-ratio: 9/16;
            background-color: var(--white);
            border-radius: 20px;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--red);
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(246, 179, 164, 0.4);
        }
        
        .video-placeholder:hover .play-icon {
            transform: scale(1.15);
        }

        .video-placeholder.red-bg {
            background-color: var(--red);
            color: var(--white);
            border: none;
        }

        .play-icon {
            transition: transform 0.3s ease;
            width: 60px;
            height: 60px;
        }

        .social-tag {
            font-size: 0.9rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--red);
            display: block;
            margin-bottom: 0.8rem;
        }

        .video-info p {
            font-size: 1.1rem;
            color: var(--dark-text);
            line-height: 1.6;
            margin: 0;
            font-weight: 500;
        }
        
        .btn-social {
            border: 2px solid var(--red);
            background-color: transparent;
            color: var(--red);
            padding: 15px 35px;
            border-radius: 50px;
            text-decoration: none;
            font-size: 1.1rem;
            font-weight: 500;
            display: inline-block;
            transition: all 0.3s ease;
            margin-top: 1rem;
        }

        .btn-social:hover {
            background-color: var(--red);
            color: var(--white);
            transform: scale(1.05);
            box-shadow: 0 15px 30px rgba(255, 0, 0, 0.15);
        }

        @media (max-width: 900px) {
            .video-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 600px) {
            .video-grid {
                grid-template-columns: 1fr;
            }
        }

        footer {
            text-align: center;
            padding: 3rem;
            background-color: var(--white);
            color: var(--dark-text);
        }

        /* Image Swiper / Carousel */
        .ed-image.has-gallery::after {
            display: none;
        }

        .img-swiper {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            cursor: grab;
            user-select: none;
            z-index: 5;
        }
        .img-swiper:active { cursor: grabbing; }

        .swiper-track {
            display: flex;
            width: 100%;
            height: 100%;
            transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            will-change: transform;
        }
        .swiper-track.dragging {
            transition: none;
        }

        .swiper-slide {
            width: 100%;
            height: 100%;
            flex: 0 0 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: transparent;
        }

        .swiper-slide img {
            max-width: 85%;
            max-height: 85%;
            width: auto;
            height: auto;
            object-fit: contain;
            display: block;
            pointer-events: none;
            image-rendering: -webkit-optimize-contrast;
            border-radius: 25px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.12);
        }

        .swiper-dots {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 10;
        }

        .swiper-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(0,0,0,0.2);
            cursor: pointer;
            transition: background 0.3s, transform 0.3s;
            border: none;
            outline: none;
        }
        .swiper-dot.active {
            background: var(--red);
            transform: scale(1.3);
        }

        .swiper-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.95);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 1.2rem;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--dark-text);
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
            transition: all 0.2s ease;
        }
        .swiper-arrow:hover {
            background: var(--red);
            color: var(--white);
        }
        .swiper-arrow.prev { left: 12px; }
        .swiper-arrow.next { right: 12px; }

.agency-credit {
    margin-top: 15px;
    font-size: 0.85rem;
    opacity: 0.8;
}
.agency-credit a {
    color: var(--red);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.3s, color 0.3s;
}
.agency-credit a:hover {
    color: #CC0000;
    opacity: 1;
}

.cg-floating-badge {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #FFFFFF;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 8px 24px 8px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(246, 179, 164, 0.3);
}
.cg-floating-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}
.cg-icon {
    width: 44px;
    height: 44px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    border: 1px solid rgba(0,0,0,0.06);
}
.cg-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cg-text span {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #888;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 4px;
    font-family: inherit;
}
.cg-text strong {
    font-size: 1.05rem;
    color: var(--dark-text);
    font-weight: 700;
    line-height: 1;
    font-family: inherit;
}
