/*
Theme Name: Sweet Delights Bakery
Theme URI: https://sweetdelights.com
Author: Sweet Delights Team
Author URI: https://sweetdelights.com
Description: A custom WordPress theme for Sweet Delights Bakery with Elementor support. Handcrafted with premium ingredients and love. Features responsive design, optimized performance (90+ Lighthouse score), and full e-commerce cart functionality.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sweet-delights
Tags: bakery, e-commerce, elementor, food, custom-colors, custom-menu, featured-images, responsive-layout, sticky-post, threaded-comments
*/

/* ==========================================================================
   CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
    /* Brand Colors - Migrated from React theme.css */
    --sd-primary: #E85A70;
    --sd-primary-hover: #D44A60;
    --sd-secondary: #4A2C2A;
    --sd-secondary-hover: #3A1C1A;
    --sd-accent: #F6C453;
    --sd-accent-hover: #E5B343;

    /* Background Colors */
    --sd-bg: #FFF8F5;
    --sd-bg-white: #FFFFFF;
    --sd-bg-section: #FDEEEE;

    /* Text Colors */
    --sd-text-primary: #2B2B2B;
    --sd-text-secondary: #6B6B6B;
    --sd-text-muted: #A0A0A0;
    --sd-text-inverse: #FFFFFF;

    /* Status Colors */
    --sd-success: #2ECC71;
    --sd-error: #E74C3C;
    --sd-warning: #F39C12;
    --sd-info: #3498DB;

    /* Spacing */
    --sd-space-xs: 4px;
    --sd-space-sm: 8px;
    --sd-space-md: 16px;
    --sd-space-lg: 24px;
    --sd-space-xl: 32px;
    --sd-space-xxl: 48px;
    --sd-space-xxxl: 64px;

    /* Typography */
    --sd-font-heading: 'Playfair Display', Georgia, serif;
    --sd-font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --sd-text-h1: clamp(2.5rem, 5vw, 3rem);
    --sd-text-h2: clamp(2rem, 4vw, 2.25rem);
    --sd-text-h3: clamp(1.5rem, 3vw, 1.75rem);
    --sd-text-h4: clamp(1.25rem, 2.5vw, 1.375rem);
    --sd-text-body-lg: 1.125rem;
    --sd-text-body: 1rem;
    --sd-text-sm: 0.875rem;
    --sd-text-caption: 0.75rem;

    /* Borders & Radius */
    --sd-radius-sm: 8px;
    --sd-radius-md: 12px;
    --sd-radius-lg: 16px;
    --sd-radius-xl: 20px;
    --sd-radius-full: 9999px;

    /* Shadows */
    --sd-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --sd-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --sd-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --sd-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --sd-transition-fast: 150ms ease-in-out;
    --sd-transition-base: 250ms ease-in-out;
    --sd-transition-slow: 350ms ease-in-out;

    /* Container */
    --sd-container-max: 1200px;
    --sd-container-padding: var(--sd-space-lg);
}

/* Dark mode support (optional future enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        /* Can be activated later */
    }
}

/* Hide page title on Elementor pages */
.elementor-page .sd-page-header,
.elementor-page .sd-page-title,
.elementor-page .entry-title {
    display: none !important;
}


/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--sd-font-body);
    font-size: var(--sd-text-body);
    line-height: 1.6;
    color: var(--sd-text-primary);
    background-color: var(--sd-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--sd-font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    color: var(--sd-secondary);
}

h1 {
    font-size: var(--sd-text-h1);
}

h2 {
    font-size: var(--sd-text-h2);
}

h3 {
    font-size: var(--sd-text-h3);
}

h4 {
    font-size: var(--sd-text-h4);
}

p {
    margin-top: 0;
    margin-bottom: var(--sd-space-md);
}

a {
    color: var(--sd-primary);
    text-decoration: none;
    transition: color var(--sd-transition-fast);
}

a:hover {
    color: var(--sd-primary-hover);
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Layout Helpers
   ========================================================================== */

.sd-container {
    max-width: var(--sd-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--sd-container-padding);
    padding-right: var(--sd-container-padding);
}

.sd-section {
    padding-top: var(--sd-space-xxl);
    padding-bottom: var(--sd-space-xxl);
}

@media (max-width: 768px) {
    .sd-section {
        padding-top: var(--sd-space-xl);
        padding-bottom: var(--sd-space-xl);
    }
}

/* WordPress Core Classes */
.alignleft {
    float: left;
    margin-right: var(--sd-space-lg);
}

.alignright {
    float: right;
    margin-left: var(--sd-space-lg);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--sd-bg-white);
    border-radius: var(--sd-radius-sm);
    box-shadow: var(--sd-shadow-md);
    clip: auto !important;
    color: var(--sd-primary);
    display: block;
    font-size: var(--sd-text-sm);
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: var(--sd-space-md);
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    body {
        background: white;
        color: black;
    }

    .sd-header,
    .sd-footer,
    .sd-cart-icon,
    button {
        display: none !important;
    }
}