/*
Theme Name: Hello Elementor Child (Sorellas Style)
Theme URI: https://elementor.com/hello-theme/
Description: A child theme of Hello Elementor, customized with a fixed black header, global pink/gold aesthetic, and optimized product layout.
Author: Antigravity AI
Template: hello-elementor
Version: 1.2.0
*/

/* Core Reset & Brand Colors */
:root {
    --sweet-black: #000000;
    --sweet-white: #ffffff;
    --sweet-rose-pink: #E91E63;
    --sweet-soft-pink: #FCE4EC;
    --sweet-gold: #D4AF37;
    --sweet-dark-gray: #333333;
    --sweet-font-primary: 'Inter', sans-serif;
    --sweet-font-heading: 'Playfair Display', serif;
    --header-height: 71px;
}

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

html,
body {
    font-family: var(--sweet-font-primary);
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    background-color: #ffffff;
    width: 100%;
    color: var(--sweet-black);
}

/* Global Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--sweet-font-heading);
    font-weight: 400;
    color: var(--sweet-black);
    margin-bottom: 20px;
}

/* Global Links */
a {
    color: var(--sweet-rose-pink);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--sweet-gold);
}

/* Global Buttons */
.button, 
button, 
input[type='submit'],
input[type='button'],
.elementor-button {
    background-color: var(--sweet-rose-pink) !important;
    color: var(--sweet-white) !important;
    border: none !important;
    padding: 12px 25px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.button:hover, 
button:hover, 
input[type='submit']:hover,
.elementor-button:hover {
    background-color: var(--sweet-gold) !important;
    color: var(--sweet-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}
/* Fix for WordPress admin bar */
body.admin-bar {
    margin-top: 0 !important;
}

body.admin-bar .sweet-site-header {
    top: 32px;
}

/* Force full width and center alignment for main containers */
#page,
.site,
.site-content,
main,
.elementor,
.elementor-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* CRITICAL: Add top spacing for fixed header */
.site-content,
main,
#content,
.woocommerce,
.elementor-location-single,
body>*:not(.sweet-site-header):not(.sweet-sidebar-drawer):not(.sweet-drawer-overlay):not(script):not(style) {
    padding-top: var(--header-height) !important;
}

/* Override for nested elements */
.site-content>*,
main>*,
#content>* {
    padding-top: 0 !important;
}

body.admin-bar .site-content,
body.admin-bar main,
body.admin-bar #content,
body.admin-bar .woocommerce {
    padding-top: calc(var(--header-height) + 32px) !important;
}

/* HEADER STYLES - FIXED BLACK */
.sweet-site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    background-color: var(--sweet-black) !important;
    color: var(--sweet-white) !important;
    border-bottom: 1px solid #222;
}

.sweet-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    height: 50px;
}

.header-left, .header-right { flex: 1; display: flex; align-items: center; }
.header-center { flex: 1; display: flex; justify-content: center; }
.header-right { justify-content: flex-end; gap: 20px; }

/* HEADER ICONS */
.sweet-btn {
    background: none !important;
    border: none !important;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sweet-white) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: none !important;
    transform: none !important;
    padding: 0 !important;
}

.sweet-btn svg { stroke: var(--sweet-white); width: 20px; height: 20px; display: block; }
.site-logo img { height: 35px; width: auto; display: block; filter: brightness(0) invert(1); }
/* WOOCOMMERCE PRODUCT PAGE LAYOUT & STYLING */

/* Narrower container for product page on desktop */
.single-product .woocommerce div.product {
    max-width: 1100px;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
    font-size: 13px;
    margin-bottom: 30px;
    color: var(--sweet-dark-gray);
}

.woocommerce-breadcrumb a { color: var(--sweet-black); }
.woocommerce-breadcrumb a:hover { color: var(--sweet-gold); }

/* Product titles */
.woocommerce div.product .product_title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--sweet-black);
}

.woocommerce div.product .product_title:hover { color: var(--sweet-gold); }

/* Price Styling */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-size: 28px;
    font-weight: 600;
    color: var(--sweet-black) !important;
    margin-bottom: 20px;
}

.woocommerce div.product p.price del { color: var(--sweet-dark-gray); font-size: 20px; margin-right: 10px; font-weight: 400; }
.woocommerce div.product p.price ins { text-decoration: none; color: var(--sweet-rose-pink) !important; font-size: 30px; }

/* Add to Cart */
.woocommerce div.product form.cart .button {
    padding: 15px 40px !important;
}

/* Quantity Input */
.woocommerce div.product form.cart div.quantity input.qty {
    border: 1px solid var(--sweet-rose-pink);
    border-radius: 4px;
    padding: 10px;
    color: var(--sweet-rose-pink);
    font-weight: 600;
}

/* Product Meta */
.woocommerce div.product .product_meta {
    font-size: 14px;
    color: var(--sweet-dark-gray);
    border-top: 1px solid var(--sweet-soft-pink);
    padding-top: 20px;
    margin-top: 30px;
}

.woocommerce div.product .product_meta span { display: block; margin-bottom: 5px; }
.woocommerce div.product .product_meta a { color: var(--sweet-rose-pink); }

/* Image Hover Accent */
.woocommerce div.product div.images img:hover {
    outline: 2px solid var(--sweet-gold);
    outline-offset: -2px;
}

/* NOVEDADES SECTION */
.section-novedades { padding: 60px 20px; width: 100%; max-width: 1400px; margin: 0 auto; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.product-info .price { font-weight: 600; font-size: 14px; color: var(--sweet-black); }
.product-info a:hover { color: var(--sweet-rose-pink); }

/* DRAWER STYLES */
.sweet-sidebar-drawer {
    position: fixed; top: 0; left: -350px; width: 300px; height: 100vh;
    background: var(--sweet-white); z-index: 10001; transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 15px rgba(0,0,0,0.1); padding: 40px;
}

.sweet-sidebar-drawer.active { left: 0; }
.sweet-drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 10000; display: none; opacity: 0;
}

.sweet-drawer-overlay.active { display: block; opacity: 1; }
.sweet-mobile-menu li { border-bottom: 1px solid var(--sweet-soft-pink); margin-bottom: 20px; }

/* Responsive adjustments */
@media (max-width: 768px) {
    :root { --header-height: 51px; }
    .single-product .woocommerce div.product {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px !important;
    }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .sweet-site-header { padding: 5px 0; }
    .sweet-header-inner { height: 40px; }
    .site-logo img { height: 28px; }
}
