/* Tiendas del Sur - Store Base Styles */

/* Variables heredadas de base.css */
:root {
    --primary-green: #8B9A7A;
    --secondary-green: #6B7B5A;
    --accent-terracotta: #C4956C;
    --natural-cream: #F5F2E8;
    --earth-brown: #4A453C;
    --off-white: #FEFDFB;
    --light-sage: #A8B59B;
    --dark-sage: #5A6B4A;
    --warm-beige: #E8E2D5;
}

/* Layout principal */
.main-content {
    min-height: calc(100vh - 200px);
    padding-top: 1rem;
}

.py-main {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Navigation específica para tiendas */
.navbar {
    background: linear-gradient(135deg, var(--secondary-green) 0%, var(--primary-green) 100%);
    border-radius: 15px;
    margin: 1rem;
    box-shadow: 0 8px 32px rgba(107, 123, 90, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1000;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 15px;
    pointer-events: none;
}

/* Brand container mejorado */
.brand-container {
    position: relative;
    z-index: 2;
}

.brand-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 55px;
    height: 55px;
    border: 3px solid var(--accent-terracotta);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.logo-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 55px;
    height: 55px;
    border: 2px solid var(--accent-terracotta);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    opacity: 0;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.brand-text {
    color: var(--off-white);
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.brand-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 400;
    margin-top: -2px;
}

/* Navbar responsive */
.custom-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background: transparent;
    position: relative;
    width: 30px;
    height: 24px;
}

.navbar-toggler-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--off-white);
    margin: 4px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.custom-toggler:not(.collapsed) .navbar-toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.custom-toggler:not(.collapsed) .navbar-toggler-line:nth-child(2) {
    opacity: 0;
}

.custom-toggler:not(.collapsed) .navbar-toggler-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Cart button moderno */
.navbar-actions {
    position: relative;
    z-index: 2;
}

.cart-btn-modern {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--off-white);
    padding: 0.6rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.cart-btn-modern:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--natural-cream);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cart-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon-container i {
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-terracotta);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.cart-btn-modern.has-items .cart-count {
    display: flex;
}

.cart-count.bounce {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.cart-text {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Flash messages mejorados */
.flash-message {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.alert-icon {
    font-size: 1.2rem;
}

.alert-content {
    font-weight: 500;
}

/* Footer mejorado */
.footer-plataforma {
    background: linear-gradient(135deg, var(--secondary-green) 0%, var(--earth-brown) 100%);
    color: var(--natural-cream);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer-plataforma::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-terracotta), transparent);
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-logo-container {
    position: relative;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-terracotta);
}

.footer-actions {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--natural-cream);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-terracotta);
}

.footer-link {
    position: relative;
    padding-bottom: 2px;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-terracotta);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-copyright {
    opacity: 0.7;
    font-size: 0.85rem;
}

/* Toast notifications */
.toast-container {
    z-index: 1080;
}

.custom-toast {
    background: var(--off-white);
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(74, 69, 60, 0.15);
    backdrop-filter: blur(10px);
}

.toast-header {
    background: transparent;
    color: var(--secondary-green);
    font-weight: 600;
}

.toast-icon {
    font-size: 1.1rem;
}

.toast-body {
    color: var(--earth-brown);
    font-weight: 500;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 242, 232, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    text-align: center;
    color: var(--secondary-green);
}

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 4px solid var(--warm-beige);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: var(--secondary-green);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Animaciones de scroll */
.navbar {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
    
    .brand-subtitle {
        font-size: 0.7rem;
    }
    
    .logo {
        width: 45px;
        height: 45px;
    }
    
    .logo-pulse {
        width: 45px;
        height: 45px;
    }
    
    .cart-btn-modern {
        padding: 0.5rem 0.8rem;
    }
    
    .py-main {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar {
        margin: 0.25rem;
    }
    
    .cart-text {
        display: none;
    }
    
    .footer-plataforma {
        padding: 2rem 0 1.5rem;
    }
}


.icon-circle i {
    line-height: 1;
    font-size: 2rem;
     vertical-align: middle;
}

/* Footer fix - Agregar al final de store_base.css */

/* Footer mejorado con mejor contraste */
.footer-plataforma {
    background: linear-gradient(135deg, var(--earth-brown) 0%, var(--secondary-green) 100%);
    color: var(--natural-cream);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer-plataforma::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-terracotta), transparent);
}

.footer-brand h5 {
    color: var(--natural-cream) !important;
    font-weight: 600;
}

.footer-brand small {
    color: rgba(245, 242, 232, 0.8) !important;
}

.footer-brand p {
    color: rgba(245, 242, 232, 0.9) !important;
}

.footer-links a {
    color: var(--natural-cream) !important;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-terracotta) !important;
}

.footer-copyright small {
    color: rgba(245, 242, 232, 0.7) !important;
}

.btn-outline-light {
    border-color: var(--natural-cream) !important;
    color: var(--natural-cream) !important;
}

.btn-outline-light:hover {
    background-color: var(--accent-terracotta) !important;
    border-color: var(--accent-terracotta) !important;
    color: white !important;
}