﻿:root {
    --primary-color: #FF0000;
    --primary-dark: #cc0000;
    --secondary-color: #333333;
    --secondary-light: #666666;
    --bg-color: #f4f4f4;
    --card-bg: #ffffff;
    --border-radius: 6px;
    --container-width: 1240px;
    --header-height: 80px;
    --whatsapp-green: #25D366;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--secondary-color);
    margin: 0;
    padding-top: var(--header-height);
}

/* Header */
.main-header {
    background: #fff;
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    border-bottom: 3px solid var(--primary-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--secondary-color);
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo span {
    color: var(--primary-color);
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 14px;
    transition: 0.3s;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-btn {
    /* Removed absolute positioning - now controlled by inline styles in index.php */
    background: var(--primary-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    margin-right: 20px;
    /* Espaced from nav */
    margin-left: 20px;
    /* Spaced from search */
    transition: 0.3s;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

.header-whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.3);
}

/* Nav Icons */
.nav-actions {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: var(--secondary-light);
    text-decoration: none;
    transition: 0.3s;
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

/* Store Locator Section (Static Optimized) */
.store-locator-section {
    background: #f0f0f0;
    padding: 40px 0;
    position: relative;
    border-bottom: 1px solid #ddd;
}

.store-section-title {
    text-align: center;
    margin-bottom: 30px;
}

.store-section-title h2 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.store-section-title p {
    color: #777;
}

.store-locator-container {
    display: flex;
    gap: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    min-height: 400px;
}

.store-sidebar {
    width: 320px;
    overflow-y: auto;
    border-right: 1px solid #eee;
    /* Restore border */
    background: #fff;
    max-height: 400px;
}

.store-list-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: 0.2s;
}

.store-list-item:hover {
    background: #fff9f9;
    border-left: 4px solid var(--primary-color);
}

.store-list-item h4 {
    color: var(--primary-color);
    margin: 0 0 5px;
    font-size: 15px;
}

.store-list-item p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}


/* Map Container */
.map-container {
    flex: 1;
    position: relative;
    padding: 0;
    min-height: 400px;
}

#map {
    height: 100%;
    width: 100%;
    min-height: 400px;
    border-radius: 0 6px 6px 0;
}

@media (max-width: 800px) {
    #map {
        border-radius: 0 0 6px 6px;
    }
}

/* Map Overlay - Top Right Floating */
.static-map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    z-index: 100;
    width: auto;
    transform: none;
}

.map-icon-large {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.static-map-overlay h3 {
    margin: 0 0 5px;
    color: #333;
    font-size: 16px;
}

.static-map-overlay p {
    color: #666;
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .static-map-overlay {
        position: relative;
        top: 0;
        right: 0;
        left: 0;
        margin: 10px;
        max-width: none;
        width: auto;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 450px;
    display: flex;
    align-items: center;
    position: relative;
    background-color: #333;
}

.hero-content {
    color: white;
    max-width: 600px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ddd;
}

/* Search Widget (Floating) */
.tire-search-widget {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 380px;
    box-shadow: var(--shadow-md);
    margin-right: 20px;
}

@media (max-width: 1000px) {
    .tire-search-widget {
        position: relative;
        transform: none;
        width: 100%;
        margin-top: 30px;
        margin-right: 0;
    }

    .hero-section {
        height: auto;
        padding: 40px 0;
        flex-direction: column;
    }
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.btn-search {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-search:hover {
    background: var(--primary-dark);
}

/* Product Grid */
.products-wrapper {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

.brand-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 40px;
}

.brand-tag {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary-light);
}

.brand-tag.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
    position: relative;
    border: 1px solid transparent;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #eee;
    transform: translateY(-5px);
}

.product-img-container {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 20px;
    position: relative;
}

.product-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eee 0%, #ddd 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    text-align: center;
}

.product-info {
    padding: 20px;
}

.product-brand {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--secondary-light);
    letter-spacing: 1px;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    margin: 5px 0 10px;
    color: var(--secondary-color);
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
}

.product-price-box {
    margin-top: 15px;
}

.price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

.installments {
    font-size: 12px;
    color: var(--secondary-light);
}

.btn-buy {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-buy:hover {
    background: var(--primary-color);
    color: white;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--whatsapp-green);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: 0.3s;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 800px) {
    .store-locator-container {
        flex-direction: column;
        height: auto;
    }

    .store-sidebar {
        width: 100%;
        max-height: 250px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .map-container {
        height: 350px;
    }
}

/* Brand Filter Pills */
.brand-scroll {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
}



/* Main Footer Styling */
.main-footer {
    background: #111;
    /* Um pouco mais profundo que antes */
    color: #b0b0b0;
    padding: 70px 0 0;
    /* Tirando padding bottom pq a copyright bar ja tem */
    border-top: 5px solid var(--primary-color);
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: #b0b0b0;
    text-decoration: none;
    transition: 0.2s;
    font-size: 14px;
}

.footer-list a:hover {
    color: white;
    padding-left: 5px;
    border-left: 2px solid var(--primary-color);
    padding-left: 8px;
}

.contact-info li {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    line-height: 1.5;
    font-size: 14px;
}

.contact-info i {
    color: var(--primary-color);
    margin-top: 3px;
    min-width: 16px;
}

.payment-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.payment-flags i {
    background: #333;
    padding: 8px;
    border-radius: 4px;
    width: 45px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.payment-flags i:hover {
    background: #444;
    color: white;
}

.copyright-bar {
    background: #111;
    padding: 25px 0;
    margin-top: 50px;
    text-align: center;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #222;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-col {
        flex: 100%;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 30px;
    }
}

/* ============================================================
   NEW UNIFIED STYLES (Header, Nav, Cart)
   ============================================================ */

/* Redesigned Search Bar (Button Inside) */
.search-form {
    flex: 1;
    max-width: 480px;
    margin: 0 15px;
    display: flex;
    align-items: center;
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 34px;
    overflow: hidden;
}

.search-box:focus-within {
    border-color: var(--primary-color);
}

.search-input {
    flex: 1;
    border: none !important;
    padding: 0 10px !important;
    height: 100% !important;
    outline: none !important;
    font-size: 13px !important;
    min-width: 80px !important;
    background: transparent !important;
    color: #333 !important;
    border-radius: 0 !important;
}

.search-divider {
    width: 1px;
    height: 20px;
    background: #eee;
    flex-shrink: 0;
}

.search-select {
    flex: 0 0 auto;
    border: none;
    height: 100%;
    padding: 0 5px;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

.search-btn {
    border: none;
    background: none;
    color: #444;
    padding: 0 15px;
    cursor: pointer;
    font-size: 14px;
    border-left: 1px solid #eee;
    height: 100%;
    transition: 0.2s;
    width: auto;
    /* Reset specifically */
    border-radius: 0;
}

.search-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Navigation Bar */
.category-nav {
    background: var(--primary-color);
    /* Red background */
    color: white;
    height: 45px;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0;
    height: 100%;
}

.category-menu>li {
    height: 100%;
    position: relative;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    color: white;
    /* Changed to white */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    /* Regular weight */
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    gap: 8px;
    /* space between icon and text */
}

.category-item:hover,
.category-item.active {
    background: rgba(0, 0, 0, 0.1);
}

/* Submenu Arrow */
.submenu-arrow {
    font-size: 10px;
    margin-left: 2px;
    opacity: 0.8;
}

/* Dropdown Submenu */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 4px 4px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 1000;
    list-style: none;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    display: block;
}

.submenu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
    border-left: 3px solid transparent;
}

.submenu a:hover {
    background: #f9f9f9;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 25px;
}

.submenu-header {
    padding: 5px 20px;
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Mobile Menu Toggle */
.category-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    align-items: center;
    gap: 10px;
}

@media (max-width: 900px) {
    .category-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        height: auto;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .category-menu.open {
        display: flex;
    }

    .category-item {
        color: #333;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    .category-item:hover {
        background: #f9f9f9;
        color: var(--primary-color);
    }

    .category-toggle {
        display: flex;
    }

    .submenu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: #f5f5f5;
    }

    .has-submenu:hover .submenu {
        display: block;
    }
}

/* Cart Styles */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Cart Sidebar (Drawer) */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    /* Hidden by default */
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
}

.close-cart:hover {
    opacity: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart-msg {
    text-align: center;
    color: #999;
    margin-top: 50px;
}

.empty-cart-msg i {
    font-size: 50px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-item-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid #eee;
    padding: 5px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.cart-item-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
}

.cart-item-remove {
    color: #999;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.cart-item-remove:hover {
    color: red;
}

.cart-footer {
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 15px;
    background: #25D366;
    /* WhatsApp Style */
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-checkout:hover {
    background: #128C7E;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
    backdrop-filter: blur(2px);
}

.overlay.open {
    display: block;
}

/* Responsive Header Tweaks */
@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
        padding-bottom: 10px;
        gap: 10px;
    }

    .logo {
        font-size: 24px;
        margin-right: auto;
    }

    .nav-actions {
        gap: 15px;
    }

    .search-container {
        order: 3;
        max-width: 100%;
        margin: 5px 0 0;
        width: 100%;
    }

    .main-header {
        height: auto;
        position: relative;
        border-bottom: 1px solid #333;
        color: #666;
    }

    .search-form {
        display: none;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Lojas Highlight Animation */
.lojas-highlight {
    color: #ff3300 !important;
    animation: lojasShadowPulse 2s infinite;
    border-radius: 8px;
    padding: 2px 8px;
    background-color: white;
    /* Ensure shadow is visible against this bg if needed, though default is transparent/inherited */
}

@keyframes lojasShadowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 51, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 51, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 51, 0, 0);
    }
}

/* Login Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.modal-overlay.show .login-modal {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .modal-overlay {
        align-items: flex-start;
        padding-top: 20px;
    }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f4f4f4;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #eee;
    color: var(--primary-color);
}

.login-modal h2 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 24px;
}

.login-modal p.subtitle {
    font-size: 14px;
    color: #777;
    margin-bottom: 25px;
}

.login-form .form-group {
    margin-bottom: 15px;
    text-align: left;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: bold;
    color: #555;
    text-transform: uppercase;
}

.login-form .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    /* Fix padding issue */
}

.login-form .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-login-submit {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-login-submit:hover {
    background: var(--primary-dark);
}

.login-footer {
    margin-top: 20px;
    font-size: 13px;
    color: #777;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-error {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 15px;
    border: 1px solid #ffcdd2;
    display: none;
}

/* Register Modal Specific */
.register-modal {
    max-width: 600px !important;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 600px) {
    .login-modal {
        width: 95%;
        padding: 20px;
        margin-bottom: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

.auth-link {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.copyright-bar {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright-bar::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 10px;
}

.copyright-bar strong {
    color: var(--primary-color);
    font-weight: 700;
}

.copyright-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}


/* Footer Responsivo */
@media (max-width: 768px) {
    .main-footer {
        padding: 50px 0 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .main-footer .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer-row {
        flex-direction: column !important;
        gap: 35px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .footer-col {
        width: 100% !important;
        min-width: unset !important;
        flex: none !important;
        padding-bottom: 20px !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        text-align: left !important;
    }

    .footer-title {
        margin-bottom: 18px !important;
        font-size: 15px !important;
    }

    .footer-title::after {
        left: 0 !important;
        transform: none !important;
    }

    .footer-social {
        justify-content: flex-start !important;
    }

    .contact-info li {
        text-align: left !important;
        margin-bottom: 15px !important;
        gap: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .payment-flags {
        justify-content: flex-start !important;
        gap: 15px !important;
    }

    .copyright-bar {
        margin-top: 40px !important;
        padding: 30px 0 !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .copyright-bar .container {
        padding: 0 20px !important;
        flex-direction: column !important;
        gap: 10px !important;
        line-height: 1.6 !important;
    }

    .copyright-bar::before {
        width: 80px !important;
        top: -1px !important;
    }
}