/* Color Palette */
:root {
    --soft-pink: #FFD1E3;
    --vibrant-pink: #FF85B3;
    --text-black: #1a1a1a;
    --pure-white: #ffffff;
}

body {
    background-color: var(--pure-white);
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    color: var(--text-black);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a, a:hover, a:focus {
    text-decoration: none;
}

/* Header & Pink Ears */
.custom-header {
    position: relative;
    text-align: center;
    padding: 30px 20px 5px;
}

.corner-ear {
    position: absolute;
    top: -20px;
    width: 100px;
    height: 100px;
    background-color: var(--soft-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-ear { right: -20px; }

.slogan {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.ornament {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.ornament img {
    max-height: 72px; /* Increased by 20% from 60px */
    width: auto;
    display: block;
    transition: max-height 0.3s ease;
}

/* Services Showcase Section */
.content-container,
.site-main {
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    flex: 1;
}

.services-showcase,
.shop-container,
.contact-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-header {
    text-align: center;
    margin-bottom: 50px;
}

.showcase-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-black);
    margin: 0 0 30px 0;
}

.showcase-header p {
    font-size: 1.1rem;
    color: var(--text-black);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.showcase-title .highlight {
    color: var(--vibrant-pink);
}

.decorative-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.decorative-divider::before,
.decorative-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--soft-pink), transparent);
    max-width: 200px;
}

.heart-decoration {
    width: 30px;
    height: auto;
    display: block;
    margin: 0 auto;
    fill: var(--vibrant-pink);
    opacity: 0.8;
    flex-shrink: 0;
    overflow: visible;
    line-height: 0;
}

/* Hero Carousel Section */
.hero-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--text-black);
}

.hero-slide {
    position: relative;
    height: 75vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--pure-white);
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    transform: translateY(0);
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.hero-slide-content h1,
.hero-slide-content h2 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 20px;
    color: var(--pure-white);
}

.hero-slide-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 35px;
    opacity: 0.9;
}

/* Swiper Navigation and Pagination for Hero Carousel */
.hero-carousel .swiper-button-next,
.hero-carousel .swiper-button-prev {
    color: var(--pure-white);
    transition: color 0.3s ease;
}

.hero-carousel .swiper-button-next:hover,
.hero-carousel .swiper-button-prev:hover {
    color: var(--vibrant-pink);
}

.hero-carousel .swiper-pagination-bullet-active {
    background: var(--vibrant-pink);
}

/* WooCommerce Back Button Wrapper */
.back-button-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* WooCommerce Back Button */
.back-to-shop {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-black);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.back-to-shop:hover {
    color: var(--vibrant-pink);
}
.back-to-shop .arrow {
    transition: transform 0.3s ease;
}
.back-to-shop:hover .arrow {
    transform: translateX(-5px);
}

/* Single Product Layout */
.product-artisan-container {
    display: flex;
    gap: 60px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
    justify-content: center;
}

.woocommerce-product-gallery {
    flex: 1.2;
    max-width: 550px;
    width: 100%;
}

.summary.entry-summary {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.summary.entry-summary .product_title {
    margin-top: 0;
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--text-black);
}

/* WooCommerce Specific Typography Overrides */
.woocommerce div.product .woocommerce-tabs ul.tabs li a,
.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce-product-details__short-description,
.woocommerce-product-attributes,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce .quantity input.qty,
.woocommerce table.shop_attributes,
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button, 
.woocommerce #respond input#submit {
    font-family: 'Times New Roman', Times, serif !important;
}

/* Custom Inquiry Button styling */
.btn-gold-outline {
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid var(--soft-pink);
    border-radius: 50px;
    color: var(--vibrant-pink);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    margin-top: 20px;
    background: transparent;
    cursor: pointer;
}

.btn-gold-outline:hover {
    background-color: var(--soft-pink);
    color: var(--text-black);
    border-color: var(--vibrant-pink);
}

/* Shared Grid & Card Styles (Services & Shop) */
.services-grid,
.shop-container ul.products {
    display: grid;
    gap: 40px;
    padding: 0;
    margin: 40px 0;
    list-style: none;
}

.services-grid {
    grid-template-columns: repeat(2, 1fr);
}

.shop-container ul.products {
    grid-template-columns: repeat(4, 1fr);
}

.shop-container ul.products::before,
.shop-container ul.products::after {
    display: none !important;
}

.service-card,
.shop-container ul.products li.product {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    overflow: visible;
}

.service-card { transition: transform 0.3s ease; }
.service-card:hover { transform: translateY(-10px); }

.service-link-wrapper {
    display: block;
    width: 100%;
}

.service-image-wrapper {
    width: 100%;
    height: 350px;
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.shop-container ul.products li.product .woocommerce-loop-product__link {
    display: block;
    width: 100%;
    height: 350px;
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.shop-container ul.products li.product .woocommerce-loop-product__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image,
.shop-container ul.products li.product:hover .woocommerce-loop-product__link img {
    transform: scale(1.05);
}

.service-title,
.shop-container ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-black);
    margin: 0 0 20px 0;
    display: block;
    width: 100%;
    visibility: visible;
}

.shop-container ul.products li.product .woocommerce-loop-product__title a {
    color: var(--text-black) !important;
    text-decoration: none;
    display: block;
}

/* Service Buttons */
.service-btn {
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid var(--soft-pink);
    border-radius: 50px;
    color: var(--vibrant-pink);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.service-btn:hover {
    background-color: var(--soft-pink);
    color: var(--text-black);
    border-color: var(--vibrant-pink);
    box-shadow: 0 5px 15px rgba(255, 85, 179, 0.2);
}

/* Apply rounded corners to images in the single product gallery as well */
.woocommerce-product-gallery img {
    border-radius: 25px;
}

.category-group-title {
    font-size: 2.2rem;
    color: var(--text-black);
    margin: 80px 0 40px;
    text-align: center;
    width: 100%;
}

.category-group-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--soft-pink);
    margin: 15px auto 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .shop-container ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-slide {
        height: 60vh;
        min-height: 400px;
    }
    .hero-slide-content h2 { font-size: 2.2rem; }

    .product-artisan-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .back-button-wrapper {
        text-align: center;
    }

    .summary.entry-summary {
        align-items: center;
        text-align: center;
    }

    .summary.entry-summary .product_title {
        text-align: center;
        font-size: 2.2rem;
    }

    .services-grid,
    .shop-container ul.products {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .showcase-title { font-size: 1.8rem; }

    .service-image-wrapper {
        height: 280px;
    }

    .shop-container ul.products li.product .woocommerce-loop-product__link {
        height: 280px;
    }

    .service-title,
    .shop-container ul.products li.product .woocommerce-loop-product__title {
        font-size: 1.4rem;
    }

    .decorative-divider::before,
    .decorative-divider::after { max-width: 100px; }
}

/* Footer Styles */
.main-footer {
    background-color: var(--text-black);
    color: var(--pure-white);
    padding: 80px 20px 30px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h3, 
.footer-col h4 {
    color: var(--vibrant-pink);
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.footer-logo {
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.footer-col p,
.footer-col ul {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a {
    color: inherit;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--vibrant-pink);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-icon {
    display: inline-block;
    color: var(--pure-white);
    font-size: 0.85rem;
    padding: 6px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--vibrant-pink);
    border-color: var(--vibrant-pink);
    color: var(--text-black);
    box-shadow: 0 4px 10px rgba(255, 133, 179, 0.3);
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Menu Specific Styles */

#mobile-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-black);
    margin: 3px 0;
    transition: all 0.3s ease-in-out;
}

/* Hamburger to X transformation when active */
#mobile-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

#mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.main-navigation #navLinks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally in column layout */
}

.main-navigation #navLinks li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.main-navigation #navLinks li:last-child {
    border-bottom: none;
}

.main-navigation #navLinks a {
    display: block;
    padding: 15px 20px;
    color: var(--text-black);
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.main-navigation #navLinks a:hover {
    background-color: var(--soft-pink);
}

/* WordPress Standard Classes */
.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a {
    color: var(--vibrant-pink);
    font-weight: 600;
}

/* Sub-menu Support */
.main-navigation .sub-menu {
    list-style: none;
    padding: 0;
    background: rgba(0, 0, 0, 0.02);
}

/* When menu is active (toggled by JavaScript) */
.main-navigation.active {
    /* This rule is outside media query, so it applies to all sizes when active */
    display: block;
}

/* Desktop styles - hide mobile menu toggle, show regular navigation */
@media (min-width: 768px) { /* Adjust breakpoint as needed */
    .custom-header {
        position: sticky;
        top: 0;
        background-color: var(--pure-white);
        z-index: 1000;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        min-height: 150px; 
    }

    .custom-header.is-scrolled {
        padding: 10px 20px 5px;
        min-height: 65px;
    }

    .slogan {
        margin: 0; /* Clear default margins to prevent overlap */
    }

    .custom-header.is-scrolled .slogan,
    .custom-header.is-scrolled .corner-ear {
        display: none;
    }

    .ornament {
        position: absolute;
        left: 50%;
        top: 69.8px; /* Increased gap by 5% */
        transform: translate(-50%, 0);
        width: auto;
        margin: 0;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .custom-header.is-scrolled .ornament {
        left: 20px;
        top: 50%;
        transform: translate(0, -50%);
        justify-content: flex-start;
    }

    .custom-header.is-scrolled .ornament img {
        max-height: 48px; /* Increased by 20% from 40px */
    }

    #mobile-menu {
        display: none; /* Hide the mobile menu toggle on desktop */
    }

    .main-navigation {
        display: block; /* Show the navigation on desktop */
        position: static; /* Reset position for desktop */
        background-color: transparent;
        box-shadow: none;
        padding-top: 0;
        text-align: inherit; /* Reset text alignment */
        margin-top: 80px; 
        transition: margin 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .custom-header.is-scrolled .main-navigation {
        margin-top: 0;
    }
    
    .nav-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        min-height: 50px;
    }

    .main-navigation #navLinks {
        flex-direction: row; /* Horizontal layout for desktop */
        justify-content: center; /* Center items horizontally */
        gap: 20px; /* Space between desktop menu items */
    }

    .main-navigation #navLinks li {
        width: auto; /* Reset width for desktop */
        border-bottom: none;
    }

    .main-navigation #navLinks a {
        padding: 10px 15px; /* Adjust padding for desktop links */
        font-size: 1rem;
    }
    
    /* Desktop Sub-menu logic */
    .main-navigation .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--pure-white);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        min-width: 180px;
    }
    .main-navigation li:hover > .sub-menu { display: block; }
}

/* Apply sticky behavior only on mobile */
@media (max-width: 768px) {
    /* Mobile menu toggle */
    #mobile-menu {
        position: fixed; /* Make it sticky */
        top: 0;
        right: 0;
        z-index: 999; /* Ensure it's always on top */
        cursor: pointer; /* Ensure it's clickable */
        flex-direction: column; /* Stack spans vertically for burger icon */
        border-radius: 0 0 0 100%; /* Quarter pizza from top right */
        justify-content: flex-start;
        align-items: flex-end;
        padding: 20px 15px 0 0;
    }

    /* Navigation menu container */
    .main-navigation {
        display: none; /* Hidden by default on mobile */
        position: fixed; /* Make it sticky */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0; /* Cover the entire viewport */
        width: 100%;
        height: 100vh; /* Ensure it takes full viewport height */
        background-color: var(--pure-white); /* Or a semi-transparent background */
        z-index: 998; /* Below the toggle button, but above other content */
        padding-top: 100px; /* Adjust to push menu content below fixed toggle */
        overflow-y: auto; /* Allow scrolling if menu content is long */
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}