/*
Theme Name: CookieDough Luxe
Theme URI: https://cookiedough.shop
Author: CookieDough Shop
Author URI: https://cookiedough.shop
Description: A luxurious, high-end custom WordPress theme for CookieDough Shop — artisan edible cookie dough, sugar cookies, and flower cupcakes. Elegant botanical design with WooCommerce support. Designed for weddings, corporate events, and exclusive workshops.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cookiedough-luxe
Tags: woocommerce, e-commerce, custom-header, custom-menu, featured-images, theme-options, translation-ready

CookieDough Luxe — Artisan Baking, Elevated.
*/

/* ============================================
   CSS RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #2C2C2C;
    background-color: #FDF8F4;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.3;
    color: #2C2C2C;
    margin-bottom: 0.5em;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.2em;
    color: #5A5A5A;
    font-size: 1.05rem;
}

a {
    color: #C9A96E;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    color: #D4A59A;
}

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

ul, ol {
    list-style: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.section-padding-sm {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: #C9A96E;
}

.text-rose {
    color: #D4A59A;
}

.bg-cream {
    background-color: #FDF8F4;
}

.bg-white {
    background-color: #FFFFFF;
}

.bg-soft-rose {
    background-color: #FFF0ED;
}

.bg-soft-gold {
    background-color: #FBF6EE;
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.section-subtitle {
    font-family: 'Great Vibes', cursive;
    font-size: 1.6rem;
    color: #C9A96E;
    margin-bottom: 0.3em;
    font-weight: 400;
}

.section-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #C9A96E, #D4A59A);
    margin: 20px auto 30px;
    border: none;
}

.ornament {
    display: block;
    margin: 0 auto 15px;
    opacity: 0.6;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #C9A96E, #D4AF37);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #D4AF37, #C9A96E);
    color: #FFFFFF;
    box-shadow: 0 6px 25px rgba(201, 169, 110, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #C9A96E;
    border: 2px solid #C9A96E;
}

.btn-secondary:hover {
    background: #C9A96E;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-rose {
    background: linear-gradient(135deg, #D4A59A, #E8B4B8);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(212, 165, 154, 0.3);
}

.btn-rose:hover {
    background: linear-gradient(135deg, #E8B4B8, #D4A59A);
    color: #FFFFFF;
    box-shadow: 0 6px 25px rgba(212, 165, 154, 0.5);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 48px;
    font-size: 1rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(253, 248, 244, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2C2C2C;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo .logo-accent {
    color: #C9A96E;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul li a {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #2C2C2C;
    text-decoration: none;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #C9A96E, #D4A59A);
    transition: width 0.3s ease;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a,
.main-navigation ul li.current_page_item a {
    color: #C9A96E;
}

.main-navigation ul li a:hover::after,
.main-navigation ul li.current-menu-item a::after,
.main-navigation ul li.current_page_item a::after {
    width: 100%;
}

/* Dropdown menus */
.main-navigation ul li {
    position: relative;
}

.main-navigation ul li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -15px;
    background: #FFFFFF;
    min-width: 220px;
    padding: 15px 0;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    gap: 0;
    z-index: 100;
}

.main-navigation ul li:hover > ul.sub-menu {
    display: flex;
}

.main-navigation ul li ul.sub-menu li a {
    padding: 8px 25px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: block;
    white-space: nowrap;
}

.main-navigation ul li ul.sub-menu li a::after {
    display: none;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions a {
    color: #2C2C2C;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

.header-actions a:hover {
    color: #C9A96E;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #D4A59A;
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #2C2C2C;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #2C2C2C;
    color: #B8B8B8;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    color: #FFFFFF;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #C9A96E;
}

.footer-about p {
    color: #B8B8B8;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B8B8B8;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #C9A96E;
    border-color: #C9A96E;
    color: #FFFFFF;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #B8B8B8;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: #C9A96E;
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    color: #B8B8B8;
    font-size: 0.95rem;
}

.footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: #C9A96E;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #7A7A7A;
}

.footer-bottom a {
    color: #C9A96E;
}

/* ============================================
   SIDEBAR & WIDGETS
   ============================================ */
.widget-area {
    padding: 0;
}

.widget {
    margin-bottom: 40px;
    padding: 30px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #C9A96E;
    color: #2C2C2C;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #F0EBE5;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #5A5A5A;
    font-size: 0.95rem;
}

.widget ul li a:hover {
    color: #C9A96E;
}

/* ============================================
   PAGE TEMPLATES
   ============================================ */
.page-header-banner {
    background: linear-gradient(135deg, #FDF8F4 0%, #FFF0ED 50%, #FBF6EE 100%);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 165, 154, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header-banner h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-header-banner .breadcrumbs {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    color: #7A7A7A;
}

.page-header-banner .breadcrumbs a {
    color: #C9A96E;
}

.page-header-banner .breadcrumbs span {
    margin: 0 8px;
    color: #B8B8B8;
}

.page-content {
    padding: 80px 0;
}

/* ============================================
   BLOG / POSTS
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.blog-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(201, 169, 110, 0.9);
    color: #FFFFFF;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.blog-card-body {
    padding: 25px;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: #9A9A9A;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.blog-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.blog-card-body h3 a {
    color: #2C2C2C;
}

.blog-card-body h3 a:hover {
    color: #C9A96E;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #7A7A7A;
    margin-bottom: 15px;
}

.read-more {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #C9A96E;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more:hover {
    color: #D4A59A;
    gap: 10px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a {
    background: #FFFFFF;
    color: #2C2C2C;
    border: 1px solid #E8DDD3;
}

.pagination a:hover {
    background: #C9A96E;
    color: #FFFFFF;
    border-color: #C9A96E;
}

.pagination span.current {
    background: #C9A96E;
    color: #FFFFFF;
    border: 1px solid #C9A96E;
}

/* ============================================
   FORMS
   ============================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 14px 20px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: #2C2C2C;
    background: #FFFFFF;
    border: 1px solid #E8DDD3;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    -webkit-appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #C9A96E;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2C2C2C;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* ============================================
   WORDPRESS CORE CLASSES
   ============================================ */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
}

.aligncenter {
    display: block;
    margin: 0 auto 20px;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 20px;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: #7A7A7A;
    text-align: center;
    padding: 8px 0;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

/* ============================================
   CONTENT BODY SPACING
   ============================================ */
.site-main {
    padding-top: 80px;
}
