/*
Theme Name: Ortomed Premium
Theme URI: https://ortomed.com.br
Author: Antigravity
Description: Tema personalizado premium para Ortomed com integração WooCommerce.
Version: 1.0
Text Domain: ortomed
*/

:root {
    /* Premium Medical Overhaul v2.0 */
    --primary: #0f172a;
    /* Deep Navy - Authority */
    --primary-light: #334155;
    --accent: #2563eb;
    /* Trustworthy Blue */
    --accent-hover: #1d4ed8;
    --action: #dc2626;
    /* Medical Red (from Logo) - Urgent Action */
    --success: #10b981;
    --bg-body: #f8fafc;
    /* Medical Clean Gray */
    --bg-white: #ffffff;
    --text-main: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 100px;
    /* Slimmer for modern feel */

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Manrope', sans-serif;
    color: var(--primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: 0.3s;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Topbar */
.topbar {
    background-color: var(--primary);
    color: white;
    text-align: center;
    font-size: 0.85rem;
    padding: 8px 0;
    font-weight: 500;
}

/* Header */
.header {
    background-color: var(--bg-white);
    height: var(--header-height);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 85px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-right: 20px;
    transition: transform 0.3s ease;
    background: transparent !important;
    image-rendering: -webkit-optimize-contrast;
    /* Para Chrome/Safari */
    image-rendering: crisp-edges;
}

.logo-img:hover {
    transform: scale(1.05);
}

.search-bar {
    flex: 1;
    max-width: 500px;
    background-color: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    margin: 0 20px;
}

.search-bar input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    color: var(--text-main);
}

.search-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon-btn,
.cart-btn {
    font-size: 1.5rem;
    color: var(--primary);
    padding: 8px;
    border-radius: 50%;
}

.icon-btn:hover {
    background-color: var(--bg-body);
    color: var(--accent);
}

.cart-btn {
    position: relative;
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--action);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

/* Nav Menu WordPress Overrides */
.nav-main ul {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-main ul li a {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.nav-main ul li a:hover {
    color: var(--accent);
}

/* Hero Slider */
.hero {
    padding: 40px 0;
    background: radial-gradient(circle at 50% 50%, #f0f9ff 0%, #e0f2fe 100%);
    overflow: hidden;
    position: relative;
    min-height: 550px;
}

.hero .container {
    position: relative;
    height: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .header {
        height: auto;
        padding: 10px 0;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}