/*
Theme Name: Mircato Pro
Theme URI: https://example.com/mircato-pro
Author: Your Name
Author URI: https://example.com
Description: Premium WooCommerce theme with modern design and advanced features
Version: 1.0.1
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mircato-pro
Tags: e-commerce, woocommerce, shop, modern, premium
*/

/* ==========================================================================
   CSS VARIABLES - Design System
   ========================================================================== */

:root {
    /* Mapped to Central Design System in mircato-variables.css */
    --color-primary: var(--mp-color-primary);
    --color-primary-dark: var(--mp-color-primary-dark);
    --color-primary-light: var(--mp-color-primary-light);
    --color-secondary: var(--mp-color-secondary);
    --color-secondary-dark: var(--mp-color-secondary-dark);
    --color-accent: var(--mp-color-accent);
    --color-accent-dark: var(--mp-color-accent-dark);

    --color-dark: var(--mp-color-dark);
    --color-dark-light: var(--mp-color-dark-light);
    --color-gray: var(--mp-color-gray);
    --color-gray-light: var(--mp-color-gray-light);
    --color-light: var(--mp-color-light);
    --color-light-dark: var(--mp-color-light-dark);
    --color-white: var(--mp-color-white);

    --color-success: var(--mp-color-success);
    --color-error: var(--mp-color-danger);
    --color-warning: var(--mp-color-warning);
    --color-info: var(--mp-color-info);

    --font-heading: var(--mp-font-secondary);
    --font-body: var(--mp-font-primary);
    --font-size-base: var(--mp-font-size-base);
    --line-height-base: var(--mp-line-height-base);
    --line-height-heading: var(--mp-line-height-heading);

    --text-xs: var(--mp-text-xs);
    --text-sm: var(--mp-text-sm);
    --text-base: var(--mp-text-base);
    --text-lg: var(--mp-text-lg);
    --text-xl: var(--mp-text-xl);
    --text-2xl: var(--mp-text-2xl);
    --text-3xl: var(--mp-text-3xl);
    --text-4xl: var(--mp-text-4xl);
    --text-5xl: var(--mp-text-5xl);

    --space-xs: var(--mp-space-xs);
    --space-sm: var(--mp-space-sm);
    --space-md: var(--mp-space-md);
    --space-lg: var(--mp-space-lg);
    --space-xl: var(--mp-space-xl);
    --space-2xl: var(--mp-space-2xl);
    --space-3xl: var(--mp-space-3xl);

    --radius-sm: var(--mp-radius-sm);
    --radius-md: var(--mp-radius-md);
    --radius-lg: var(--mp-radius-lg);
    --radius-xl: var(--mp-radius-xl);
    --radius-full: var(--mp-radius-full);

    --shadow-sm: var(--mp-shadow-sm);
    --shadow-md: var(--mp-shadow-md);
    --shadow-lg: var(--mp-shadow-lg);
    --shadow-xl: var(--mp-shadow-xl);

    --transition-fast: var(--mp-transition-fast);
    --transition-base: var(--mp-transition-base);
    --transition-slow: var(--mp-transition-slow);

    --container-max: var(--mp-container-max);
    --container-padding: var(--mp-container-padding);
}

/* --------------------------------------------------------------------------
   ELEMENTOR OVERRIDES (Ensure Alignment)
   -------------------------------------------------------------------------- */
html body .elementor-section.elementor-section-boxed>.elementor-container {
    max-width: var(--container-max, 1440px);
}

/* Specificity override for widgets */
html body .mircato-fullwidth-grid {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--line-height-base);
    color: var(--color-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: var(--line-height-heading);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--space-lg);
}

h1 {
    font-size: var(--text-4xl);
}

/* Smaller on mobile */
h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

p {
    margin-bottom: var(--space-md);
    color: var(--color-gray);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.button,
button:not(.header-search-form *),
input[type="submit"]:not(.header-search-form *),
input[type="button"]:not(.header-search-form *),
.woocommerce button.button:not(.header-search-form *),
.woocommerce a.button,
.woocommerce input.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    background-color: var(--color-primary);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    color: var(--color-white);
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
    /* Soft primary shadow */
    width: 100%;
    /* Full width on mobile by default */
}

@media (min-width: 640px) {

    .button,
    button:not(.header-search-form *),
    input[type="submit"]:not(.header-search-form *),
    input[type="button"]:not(.header-search-form *),
    .woocommerce button.button:not(.header-search-form *),
    .woocommerce a.button,
    .woocommerce input.button {
        width: auto;
        /* Auto width on tablet+ */
    }
}

.button:hover,
button:not(.header-search-form *):hover,
input[type="submit"]:not(.header-search-form *):hover,
.woocommerce button.button:not(.header-search-form *):hover,
.woocommerce a.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    background-color: var(--color-primary-dark);
    background-image: none;
    color: var(--color-white);
}

.button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.button-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: none;
}

.button-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

input[type="text"]:not(.header-search-form *),
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"]:not(.header-search-form *),
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea,
.woocommerce input.input-text,
.woocommerce select {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--color-dark);
    background-color: var(--color-white);
    border: 2px solid var(--color-light-dark);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

input:not(.header-search-form *):focus,
select:focus,
textarea:focus,
.woocommerce input.input-text:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--space-xl) 0;
    /* Smaller padding on mobile */
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-3xl) 0;
    }
}

.section-alt {
    background-color: var(--color-light);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 {
    margin-top: 0;
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@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);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ==========================================================================
   RESPONSIVE (Desktop Adjustments)
   ========================================================================== */

@media (min-width: 768px) {
    :root {
        --container-padding: var(--space-lg);
    }

    h1 {
        font-size: var(--text-5xl);
    }

    h2 {
        font-size: var(--text-4xl);
    }

    h3 {
        font-size: var(--text-3xl);
    }

    h4 {
        font-size: var(--text-2xl);
    }

    h5 {
        font-size: var(--text-xl);
    }

    h6 {
        font-size: var(--text-lg);
    }
}