
/*
Theme Name: Moon Picnic Child
Theme URI: https://moonpicnicworld.com/
Description: Custom WooCommerce theme for Moon Picnic.
Author: Onestop Website Solution
Template: generatepress
Version: 1.0.0
Text Domain: moon-picnic-child
*/

/* =========================================
   MOON PICNIC - GLOBAL DESIGN FOUNDATION
   ========================================= */

:root {
    --mp-navy: #102F87;
    --mp-blue: #D5E6FF;
    --mp-yellow: #FFE991;
    --mp-lavender: #E2D5FA;
    --mp-mint: #CDEED7;
    --mp-pink: #F6D5E3;
    --mp-cream: #FFF9E5;
    --mp-white: #FFFFFF;
    --mp-text: #26345B;

    --mp-font-body: Arial, sans-serif;
    --mp-font-heading: "Trebuchet MS", sans-serif;

    --mp-container: 1280px;
    --mp-radius-sm: 12px;
    --mp-radius-md: 20px;
    --mp-radius-lg: 30px;
    --mp-pill: 999px;

    --mp-section-space: 72px;
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--mp-font-body);
    color: var(--mp-text);
    background: var(--mp-white);
    font-size: 16px;
    line-height: 1.65;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--mp-font-heading);
    color: var(--mp-navy);
    font-weight: 800;
    line-height: 1.12;
}

h1 { font-size: clamp(36px, 5vw, 64px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: clamp(22px, 3vw, 30px); }

/* Links */
a {
    color: var(--mp-navy);
    text-decoration: none;
}

a:hover {
    color: #3154B5;
}

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

/* Layout */
.mp-container {
    width: min(92%, var(--mp-container));
    margin-left: auto;
    margin-right: auto;
}

.mp-section {
    padding-top: var(--mp-section-space);
    padding-bottom: var(--mp-section-space);
}

/* Pastel backgrounds */
.mp-bg-blue { background: var(--mp-blue); }
.mp-bg-yellow { background: var(--mp-yellow); }
.mp-bg-lavender { background: var(--mp-lavender); }
.mp-bg-mint { background: var(--mp-mint); }
.mp-bg-pink { background: var(--mp-pink); }
.mp-bg-cream { background: var(--mp-cream); }

/* Cards */
.mp-card {
    border-radius: var(--mp-radius-md);
    overflow: hidden;
}

.mp-card-rounded {
    border-radius: var(--mp-radius-lg);
    overflow: hidden;
}

/* Buttons */
.mp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border: 0;
    border-radius: var(--mp-pill);
    background: var(--mp-navy);
    color: var(--mp-white);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.mp-button:hover {
    background: #2549A6;
    color: var(--mp-white);
    transform: translateY(-2px);
}

/* Section headings */
.mp-section-heading {
    margin-bottom: 28px;
    text-align: center;
}

.mp-section-heading p {
    max-width: 650px;
    margin: 12px auto 0;
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --mp-section-space: 44px;
    }

    body {
        font-size: 15px;
    }

    .mp-container {
        width: 92%;
    }

    .mp-button {
        padding: 12px 22px;
    }
}


/* =========================================
   MOON PICNIC - CUSTOM HEADER
   ========================================= */

/* Hide original GeneratePress header and navigation */
.site-header,
.main-navigation {
    display: none !important;
}

/* Header wrapper */
.mp-header {
    width: 100%;
    position: relative;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid rgba(16, 47, 135, 0.08);
}

.mp-header-inner {
    width: min(96%, 1440px);
    min-height: 100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

/* Desktop navigation */
.mp-desktop-nav {
    justify-self: start;
}

.mp-menu,
.mp-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mp-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mp-menu > li {
    position: relative;
}

.mp-menu a {
    display: block;
    color: var(--mp-navy);
    font-size: 13px;
    font-weight: 700;
    padding: 12px 0;
}

.mp-menu a:hover {
    color: #5574C5;
}

/* Dropdown */
.mp-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    padding: 10px 16px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(16, 47, 135, 0.12);
}

.mp-menu li:hover > .sub-menu,
.mp-menu li:focus-within > .sub-menu {
    display: block;
}

.mp-menu .sub-menu a {
    padding: 9px 0;
}

/* Centre logo */
.mp-header-logo {
    justify-self: center;
    text-align: center;
}

.mp-header-logo .custom-logo-link {
    display: inline-block;
}

.mp-header-logo img {
    width: auto;
    max-width: 210px;
    max-height: 62px;
    object-fit: contain;
}

/* Right-side icons */
.mp-header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 20px;
}

.mp-header-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mp-navy);
    width: 28px;
    height: 32px;
}

.mp-header-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mp-header-icon:hover {
    color: #5574C5;
}

.mp-cart-count {
    position: absolute;
    top: -5px;
    right: -9px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 50px;
    background: var(--mp-yellow);
    color: var(--mp-navy);
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

/* Mobile navigation */
.mp-mobile-navigation {
    display: none;
}

.mp-mobile-menu summary {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: var(--mp-navy);
    font-size: 14px;
    font-weight: 700;
    list-style: none;
}

.mp-mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mp-menu-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 19px;
}

.mp-menu-lines span {
    display: block;
    width: 19px;
    height: 2px;
    background: var(--mp-navy);
    border-radius: 2px;
}

.mp-mobile-menu-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 12px 18px;
    background: var(--mp-cream);
    border-radius: 14px;
}

.mp-mobile-menu-list,
.mp-mobile-menu-list ul {
    list-style: none;
}

.mp-mobile-menu-list ul {
    padding-left: 18px;
}

.mp-mobile-menu-list li a {
    display: block;
    padding: 9px 0;
    color: var(--mp-navy);
    font-weight: 700;
}

/* Responsive layout */
@media (max-width: 900px) {
    .mp-header-inner {
        min-height: 82px;
        grid-template-columns: 1fr auto 1fr;
        gap: 10px;
    }

    .mp-desktop-nav {
        display: none;
    }

    .mp-header-logo {
        grid-column: 2;
        grid-row: 1;
    }

    .mp-header-actions {
        grid-column: 3;
        grid-row: 1;
        gap: 12px;
    }

    .mp-header-logo img {
        max-width: 165px;
        max-height: 48px;
    }

    .mp-mobile-navigation {
        display: block;
        padding: 0 4% 12px;
    }

    .mp-mobile-menu[open] {
        padding-bottom: 4px;
    }
}

@media (max-width: 480px) {
    .mp-header-inner {
        min-height: 72px;
    }

    .mp-header-logo img {
        max-width: 135px;
        max-height: 42px;
    }

    .mp-header-actions {
        gap: 8px;
    }

    .mp-header-icon {
        width: 24px;
    }

    .mp-header-icon svg {
        width: 19px;
        height: 19px;
    }
}
