/* ==========================================================================
   Doutor Finanças Merchandise Store CSS Core
   ========================================================================== */

:root {
    /* Branding Palette */
    --color-primary: #00a2df;       /* Doutor Finanças Blue */
    --color-primary-hover: #008ebf;
    --color-secondary: #00a4a6;     /* Brand Teal */
    --color-secondary-hover: #008889;
    --color-dark: #1e293b;          /* Dark Slate */
    --color-dark-muted: #334155;
    --color-light: #f8fafc;         /* Light Gray BG */
    --color-light-alt: #f1f5f9;
    --color-white: #ffffff;
    --color-muted: #64748b;
    --color-border: #e2e8f0;
    
    /* Notification Alerts */
    --color-success: #10b981;
    --color-success-bg: #ecfdf5;
    --color-danger: #ef4444;
    --color-danger-bg: #fef2f2;
    
    /* Typography */
    --font-primary: 'Proxima Nova Alt', 'Proxima Nova', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout Properties */
    --max-width: 1200px;
    --border-radius-sm: 6px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Globals */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Navigation */
.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-dark);
    display: flex;
    align-items: center;
}

.brand-logo .logo-accent {
    color: var(--color-primary);
    margin-right: 2px;
}

.brand-logo .logo-sub {
    font-size: 0.8rem;
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Mobile Hamburguer Toggle */
.mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
}

.hamburger-bar {
    width: 28px;
    height: 3px;
    background-color: var(--color-dark);
    border-radius: 5px;
    transition: var(--transition);
    transform-origin: 1px;
}

/* Site Nav (Mobile-First) */
.site-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem;
    display: none;
    box-shadow: var(--shadow);
    z-index: 150;
}

.site-nav.open {
    display: block;
    animation: slideDown 0.3s ease forwards;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.nav-link {
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-light-alt);
}

.nav-link:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

/* Nav badging and actions */
.admin-nav-badge {
    color: var(--color-secondary);
    font-weight: 600;
}

.nav-btn-login {
    color: var(--color-primary);
}

.nav-btn-logout {
    color: var(--color-danger);
}

/* Open menu transformations */
.mobile-nav-toggle.open .hamburger-bar:nth-child(1) {
    transform: rotate(45deg);
}
.mobile-nav-toggle.open .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle.open .hamburger-bar:nth-child(3) {
    transform: rotate(-45deg);
}

/* Cart Icon Badge */
.header-actions {
    display: flex;
    align-items: center;
}

.cart-link {
    position: relative;
    color: var(--color-dark);
    padding: 8px;
}

.cart-link:hover {
    color: var(--color-primary);
    transform: scale(1.05);
}

.cart-svg {
    display: block;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-white);
    opacity: 0;
    transform: scale(0);
    transition: var(--transition);
}

.cart-badge.visible {
    opacity: 1;
    transform: scale(1);
}

/* Main Content Layout */
.main-content {
    flex-grow: 1;
    padding-bottom: 4rem;
}

/* General Buttons UI */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 153, 204, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 153, 204, 0.3);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-dark);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-light-alt);
    transform: translateY(-2px);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-text:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Hero Banner Layout */
.hero-banner {
    background: radial-gradient(circle at top right, rgba(0, 164, 166, 0.08), transparent 50%),
                radial-gradient(circle at bottom left, rgba(0, 153, 204, 0.08), transparent 50%);
    padding: 5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(0, 153, 204, 0.1);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-banner h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-banner p {
    color: var(--color-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

/* Features Cards Layout */
.store-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: -30px;
    margin-bottom: 4rem;
}

.feature-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.5);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* Teaser / Product Cards Grid */
.collection-teaser {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--color-muted);
}

.teaser-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.teaser-product-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    position: relative;
    transition: var(--transition);
}

.teaser-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 10;
}

.product-image-placeholder {
    height: 250px;
    background-color: var(--color-light-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    font-weight: 500;
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.product-info {
    padding: 1.5rem;
}

.product-info h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Footer UI */
.site-footer {
    background-color: var(--color-dark);
    color: #cbd5e1;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.footer-brand .footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
    display: block;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-brand .footer-tagline {
    margin-bottom: 1.5rem;
}

.footer-brand .footer-copy {
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-link-group h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}

.footer-link-group h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-link-group ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link-group a {
    font-size: 0.95rem;
}

.footer-link-group a:hover {
    color: var(--color-primary);
    padding-left: 3px;
}

/* Alert Notification Boxes */
.alerts-wrapper {
    margin-top: 1rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

.alert-success {
    background-color: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background-color: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-close {
    margin-left: auto;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    font-weight: 700;
    opacity: 0.5;
    transition: var(--transition);
}

.alert-close:hover {
    opacity: 1;
}

/* Keyframes animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   Responsive Tablet & Desktop Layouts
   ========================================================================== */

@media (min-width: 768px) {
    /* Header layout changes */
    .mobile-nav-toggle {
        display: none;
    }

    .site-nav {
        position: static;
        display: block;
        background-color: transparent;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    .nav-list {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0;
        border: none;
    }

    .nav-link:hover {
        padding-left: 0;
    }

    /* Hero layout changes */
    .hero-banner {
        padding: 7rem 0;
    }

    .hero-banner h1 {
        font-size: 3.25rem;
    }

    .hero-actions {
        flex-direction: row;
    }

    /* Features Layout */
    .store-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* Teaser Grid layout */
    .teaser-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Footer layout */
    .footer-container {
        grid-template-columns: 2fr 3fr;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
