/*
Theme Name: Cream Whippers Pro
Theme URI: https://example.com
Author: Professional WordPress Team
Author URI: https://example.com
Description: A professional, pixel-perfect ecommerce theme for UK-based businesses. Built with WooCommerce, featuring modern design, GDPR compliance, and CRM integration.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cream-whippers-pro
Domain Path: /languages
*/

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */

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

html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: #ffffff !important;
}

body {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff !important;
    /* Override WordPress block editor body styles */
    max-width: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Kill WordPress global styles that add grey background and white card box */
.wp-site-blocks,
.is-layout-flow,
.wp-block-group,
.entry-content > *,
.wp-block-post-content {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ============================================================================
   COLOR VARIABLES
   ============================================================================ */

:root {
    --primary-dark: #0f1a2a;
    --primary-light: #1a3a4a;
    --accent-cyan: #00d4ff;
    --accent-lime: #00ff00;
    --accent-red: #ff0000;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --border-light: #e0e0e0;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */

header,
.site-header {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 0;
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    left: 0;
    right: 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent-cyan);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo a {
    color: var(--accent-cyan);
    text-decoration: none;
}

#site-navigation {
    flex: 1;
    margin: 0 2rem;
}

#site-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

#site-navigation a {
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#site-navigation a:hover,
#site-navigation .current-menu-item > a {
    color: var(--accent-cyan);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-cyan);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

.header-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-shrink: 0;
}

.search-icon,
.account-icon,
.cart-icon {
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    color: var(--accent-cyan);
}

.search-icon:hover,
.account-icon:hover,
.cart-icon:hover {
    color: var(--accent-lime);
}

.cart-icon {
    position: relative;
}

.cart-count {
    background-color: var(--accent-red);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    position: absolute;
    top: -8px;
    right: -8px;
}

.promo-banner {
    background-color: #1a3a52;
    text-align: center;
    padding: 10px;
    color: #b0b0b0;
    font-size: 14px;
    width: 100%;
    margin: 0;
}

/* ============================================================================
   PAGE WRAPPER
   ============================================================================ */

#page {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #ffffff;
}

.site-main {
    flex: 1;
    width: 100%;
    padding: 40px 20px;
    margin: 0;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================================================
   CONTENT STYLES
   ============================================================================ */

.post-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.entry-header {
    margin-bottom: 20px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.entry-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: #0a1929;
}

.entry-title a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.entry-meta {
    color: #999;
    font-size: 14px;
}

.entry-content {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

.read-more {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
    background-color: #0a1929;
    color: #b0b0b0;
    padding: 40px 20px;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin: 0 auto 30px auto;
    max-width: 1200px;
}

.footer-content h3 {
    color: var(--accent-cyan);
    margin-bottom: 15px;
}

.footer-content a {
    color: #b0b0b0;
    text-decoration: none;
}

.footer-content a:hover {
    color: var(--accent-cyan);
}

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

.footer-content ul li {
    margin-bottom: 8px;
}

/* Footer nav menu from wp_nav_menu */
.footer-content .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-content .menu li {
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #1a3a52;
    padding-top: 20px;
    text-align: center;
    color: #b0b0b0;
    font-size: 14px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================================
   COOKIE NOTICE
   ============================================================================ */

.cookie-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--primary-dark);
    color: #b0b0b0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-accept,
.cookie-reject {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.cookie-accept {
    background-color: var(--accent-cyan);
    color: var(--primary-dark);
}

.cookie-reject {
    background-color: transparent;
    color: #b0b0b0;
    border: 1px solid #b0b0b0;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

.fade-in {
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.feature-card,
.category-card {
    opacity: 0;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
        padding: 1rem;
        gap: 0.75rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    #site-navigation {
        margin: 0;
        width: 100%;
        order: 3;
        display: none;
    }

    #site-navigation.active {
        display: block;
    }

    #site-navigation ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    #site-navigation ul li {
        width: 100%;
        border-top: 1px solid #1a3a52;
    }

    #site-navigation ul li a {
        display: block;
        padding: 0.75rem 0;
    }

    .header-right {
        order: 2;
    }

    .logo {
        order: 1;
    }

    .entry-title {
        font-size: 20px;
    }

    .cookie-notice {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}