/* ==========================================================================
   Feira da Alegria On-line - Design System & Custom Stylesheet
   ========================================================================== */

/* Variables & Base Design Tokens */
:root {
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;

    /* Color Palette */
    --clr-bg: #FAF9F6;          /* Eggshell white background */
    --clr-card-bg: #FFFFFF;     /* Card background */
    --clr-text-main: #1E2322;   /* Deep charcoal for body text */
    --clr-text-muted: #5C6462;  /* Medium gray for descriptions */
    
    /* Warm Gourmet Accents */
    --clr-primary: #2B5C4E;      /* Deep Sage Green */
    --clr-primary-light: #E8EFEF;/* Very light Sage Green tint */
    --clr-primary-hover: #1D3F35;/* Darker Sage for hover states */
    --clr-accent-gold: #C99E5C;  /* Warm Honey/Gold */
    --clr-accent-gold-hover: #AF8442;
    --clr-terracotta: #D36B4C;   /* Warm terracotta red/orange */
    --clr-terracotta-light: #FBECE8;
    
    /* Utility Colors */
    --clr-border: #E5E9E7;
    --clr-error: #D9383A;
    --clr-success: #2E7D32;
    --clr-success-light: #E8F5E9;
    
    /* UI Values */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 24px rgba(43, 92, 78, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 20px rgba(201, 158, 92, 0.2);

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--clr-text-main);
    line-height: 1.25;
}

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

/* Main Header & Navbar */
.main-header {
    background-color: rgba(250, 249, 246, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: var(--transition);
}

.nav-wrapper {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--clr-primary);
    flex-shrink: 0;
    white-space: nowrap;
}

.logo-icon {
    stroke-width: 2.5;
    color: var(--clr-accent-gold);
    flex-shrink: 0;
}

.logo-text span {
    color: var(--clr-accent-gold);
    font-weight: 500;
}

.main-nav {
    min-width: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    white-space: nowrap;
}

.nav-link i {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    flex-shrink: 0;
}

.nav-link:hover {
    color: var(--clr-primary);
    background-color: var(--clr-primary-light);
}

.nav-link.active {
    color: var(--clr-primary);
    background-color: var(--clr-primary-light);
    font-weight: 600;
}

/* Header Actions & Cart Trigger Badge */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cart-trigger {
    background: var(--clr-primary);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
    flex-shrink: 0;
}

.cart-trigger:hover {
    background: var(--clr-primary-hover);
    transform: scale(1.05);
}

.cart-trigger i {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.cart-badge {
    background-color: var(--clr-accent-gold);
    color: var(--clr-text-main);
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    position: absolute;
    top: -2px;
    right: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--clr-bg);
}

/* Floating Action Button (FAB) - Carrinho Flutuante Móvel */
.cart-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 1050;
    width: 62px;
    height: 62px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--clr-primary) 0%, #16362c 100%);
    color: #FFFFFF;
    border: 3px solid #FFFFFF;
    box-shadow: 0 10px 28px rgba(43, 92, 78, 0.45), 0 4px 10px rgba(0, 0, 0, 0.15);
    display: none; /* Exibido quando a tela é espremida / no mobile */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
    animation: cartFabPulse 3s infinite ease-in-out;
}

@keyframes cartFabPulse {
    0%, 100% {
        box-shadow: 0 10px 28px rgba(43, 92, 78, 0.45), 0 0 0 0 rgba(43, 92, 78, 0.4);
    }
    50% {
        box-shadow: 0 14px 32px rgba(43, 92, 78, 0.55), 0 0 0 10px rgba(43, 92, 78, 0);
    }
}

.cart-floating-btn:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 14px 34px rgba(43, 92, 78, 0.6);
}

.cart-floating-btn:active {
    transform: scale(0.92);
}

.cart-floating-btn i {
    width: 26px;
    height: 26px;
    stroke-width: 2.2;
}

.cart-floating-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--clr-accent-gold);
    color: var(--clr-text-main);
    font-size: 0.82rem;
    font-weight: 800;
    min-width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Sections Structure */
main {
    margin-top: 80px;
    min-height: calc(100vh - 160px);
}

.app-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.app-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Section: Feira Virtual (Grid of Stands)
   ========================================================================== */

/* Hero Banner */
.hero-banner {
    padding: 40px 0 60px 0;
    background: linear-gradient(135deg, rgba(232, 239, 239, 0.4) 0%, rgba(250, 249, 246, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

/* Banner Superior Customizável (Gestor) */
.hero-top-banner-wrapper {
    margin-bottom: 32px;
}

.hero-top-banner-link {
    display: block;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--clr-border);
    transition: var(--transition);
    background: #000;
}

.hero-top-banner-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-top-banner-img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hero-top-banner-link:hover .hero-top-banner-img {
    transform: scale(1.01);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-text-wrapper h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin: 12px 0 20px 0;
    letter-spacing: -0.5px;
}

.hero-text-wrapper p {
    font-size: 1.15rem;
    color: var(--clr-text-muted);
    margin-bottom: 32px;
    max-width: 580px;
}

.badge {
    display: inline-block;
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Hero Search & Filter Bar */
.hero-search {
    display: flex;
    gap: 16px;
    background: var(--clr-card-bg);
    padding: 10px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--clr-border);
}

.search-input-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--clr-text-muted);
    width: 20px;
    height: 20px;
}

.search-input-wrapper input {
    width: 100%;
    border: none;
    outline: none;
    padding: 12px 16px 12px 48px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--clr-text-main);
    background: transparent;
}

.category-filter {
    background-color: var(--clr-bg);
    border: 1px solid var(--clr-border);
    outline: none;
    border-radius: var(--radius-md);
    padding: 0 20px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text-main);
    cursor: pointer;
    transition: var(--transition);
}

.category-filter:hover {
    border-color: var(--clr-accent-gold);
}

/* Hero Image Card with Glass Stat overlay */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
}

.hero-img-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--clr-border);
    background: #FFFFFF;
}

.hero-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.hero-img-card:hover .hero-img {
    transform: scale(1.02);
}

.hero-img-glass {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    justify-content: space-around;
    box-shadow: var(--shadow-md);
}

.glass-stat {
    text-align: center;
}

.glass-stat .number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--clr-primary);
}

.glass-stat .label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    text-transform: uppercase;
}

/* Stands Grid Area */
.stands-section {
    padding: 60px 0 80px 0;
}

.section-title-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-title-area h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
}

.stats-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--clr-card-bg);
    border: 1px solid var(--clr-border);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--clr-success);
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--clr-success);
    opacity: 0.7;
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2.8); opacity: 0; }
}

.stands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

/* Stand Card design */
.stand-card {
    background-color: var(--clr-card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--clr-border);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.stand-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    pointer-events: none;
}

.stand-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.stand-card:hover::after {
    border-color: var(--clr-primary);
}

.stand-card-cover {
    height: 180px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #eee;
}

.stand-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.stand-card:hover .stand-card-cover img {
    transform: scale(1.05);
}

.stand-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--clr-primary);
    text-transform: uppercase;
}

.stand-card-logo-wrapper {
    position: absolute;
    bottom: -30px;
    left: 24px;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background-color: var(--clr-card-bg);
    border: 3px solid var(--clr-card-bg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stand-card-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stand-card-logo-fallback {
    width: 100%;
    height: 100%;
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
}

.stand-card-body {
    padding: 44px 24px 24px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.stand-card-body h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
    color: var(--clr-text-main);
}

.stand-card-desc {
    color: var(--clr-text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stand-card-footer {
    border-top: 1px solid var(--clr-border);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--clr-text-muted);
    font-size: 0.85rem;
}

.stand-card-footer-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stand-card-footer-info i {
    width: 16px;
    height: 16px;
    color: var(--clr-accent-gold);
}

.stand-card-action {
    font-weight: 600;
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.stand-card:hover .stand-card-action {
    color: var(--clr-accent-gold);
}

/* Loading, Empty and Error States */
.loading-state, .empty-state {
    grid-column: 1 / -1;
    padding: 60px 24px;
    text-align: center;
    background-color: var(--clr-card-bg);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--clr-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.empty-state i {
    width: 48px;
    height: 48px;
    color: var(--clr-accent-gold);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--clr-primary-light);
    border-radius: 50%;
    border-top-color: var(--clr-primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Section: Catalog Modal (Details of a Stand)
   ========================================================================== */
.catalog-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(30, 36, 35, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.catalog-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.catalog-modal-content {
    background-color: var(--clr-bg);
    width: 100%;
    max-width: 900px;
    height: 100%;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateX(100px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-modal-overlay.active .catalog-modal-content {
    transform: translateX(0);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(30, 36, 35, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-bounce);
}

.modal-close-btn:hover {
    background: var(--clr-error);
    transform: scale(1.1) rotate(90deg);
}

/* Catalog Banner */
.catalog-hero {
    height: 280px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 40px;
}

.catalog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 36, 35, 0.9) 0%, rgba(30, 36, 35, 0.3) 100%);
}

.catalog-hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.catalog-hero-content h2 {
    font-size: 2.5rem;
    color: white;
    margin: 8px 0;
}

.catalog-hero-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 680px;
}

.catalog-badge {
    display: inline-block;
    background-color: var(--clr-accent-gold);
    color: var(--clr-text-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

/* Catalog Body */
.catalog-body {
    padding-top: 48px;
    padding-bottom: 60px;
}

.catalog-section-title {
    margin-bottom: 32px;
    border-left: 4px solid var(--clr-primary);
    padding-left: 16px;
}

.catalog-section-title h3 {
    font-size: 1.5rem;
}

.catalog-section-title p {
    color: var(--clr-text-muted);
}

.catalog-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 28px;
}

/* Product Card design */
.product-card {
    background: var(--clr-card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

/* Product Gallery (3 images slider) */
.product-gallery {
    height: 200px;
    position: relative;
    background-color: #f0f0f0;
}

.product-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.product-slide.active {
    display: block;
}

/* Gallery Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-main);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 3;
}

.gallery-nav:hover {
    background-color: white;
    color: var(--clr-primary);
}

.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }

.gallery-nav i {
    width: 16px;
    height: 16px;
}

/* Dots indicator */
.gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.gallery-dot.active {
    background-color: white;
    width: 16px;
    border-radius: 4px;
}

/* Product Card Content */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--clr-primary);
    margin-bottom: 16px;
}

.product-add-btn {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-top: auto;
}

.product-add-btn:hover {
    background-color: var(--clr-primary);
    color: white;
}

.product-add-btn i {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Section: Cadastrar Banca (Form)
   ========================================================================== */
.form-container {
    padding: 60px 0 80px 0;
    max-width: 1000px;
}

.form-header {
    text-align: center;
    margin-bottom: 44px;
}

.form-header h2 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 32px;
    align-items: start;
}

.form-card {
    background: var(--clr-card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--clr-primary);
}

.card-title i {
    stroke-width: 2.2;
}

/* Input Styles */
.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--clr-text-main);
}

.input-group .required {
    color: var(--clr-error);
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--clr-border);
    outline: none;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--clr-text-main);
    background-color: var(--clr-bg);
    transition: var(--transition);
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    border-color: var(--clr-primary);
    background-color: white;
}

.helper-text {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

/* Preset buttons for cover URLs */
.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.preset-btn {
    background: var(--clr-primary-light);
    color: var(--clr-primary);
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.preset-btn:hover, .preset-btn.active {
    background-color: var(--clr-primary);
    color: white;
}

/* Products in Form */
.product-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.product-card-header .card-title {
    margin-bottom: 0;
}

.section-desc {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin-bottom: 20px;
}

.products-input-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-height: 550px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Product form accordion/block */
.product-input-group {
    background-color: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
}

.product-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--clr-text-main);
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 8px;
}

.btn-remove-product {
    background: transparent;
    border: none;
    color: var(--clr-error);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.btn-remove-product:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.btn-remove-product i {
    width: 14px;
    height: 14px;
}

.product-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
}

.photos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

/* Footer Form */
.form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    border-top: 1px solid var(--clr-border);
    padding-top: 32px;
}

/* Button UI Components */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-bounce);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-primary {
    background-color: var(--clr-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 92, 78, 0.2);
}

.btn-secondary {
    background-color: var(--clr-accent-gold);
    color: var(--clr-text-main);
}

.btn-secondary:hover {
    background-color: var(--clr-accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--clr-border);
    color: var(--clr-text-muted);
}

.btn-outline:hover {
    border-color: var(--clr-text-main);
    color: var(--clr-text-main);
}

.btn-text {
    background: transparent;
    color: var(--clr-text-muted);
    padding: 8px;
    font-size: 0.9rem;
}

.btn-text:hover {
    color: var(--clr-error);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Section: Cart Drawer
   ========================================================================== */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(30, 36, 35, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-drawer {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    max-width: 440px;
    background-color: var(--clr-bg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.active .cart-drawer {
    transform: translateX(0);
}

.cart-drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close {
    background: transparent;
    border: none;
    color: var(--clr-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: var(--transition);
}

.cart-close:hover {
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
}

.cart-drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Empty Cart State */
.empty-cart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    gap: 12px;
    color: var(--clr-text-muted);
}

.empty-cart-icon {
    width: 60px;
    height: 60px;
    stroke-width: 1.5;
    color: var(--clr-border);
    margin-bottom: 12px;
}

.empty-cart-sub {
    font-size: 0.85rem;
}

/* Cart Items List */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 16px;
    background: var(--clr-card-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 12px;
    align-items: center;
}

.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background-color: #eee;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.cart-item-banca {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    margin-bottom: 4px;
}

.cart-item-price-qty {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item-price {
    font-weight: 700;
    color: var(--clr-primary);
    font-size: 0.9rem;
}

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cart-qty-btn {
    border: none;
    background: var(--clr-bg);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.cart-qty-btn:hover {
    background-color: var(--clr-primary-light);
    color: var(--clr-primary);
}

.cart-qty-val {
    width: 30px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: var(--clr-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: var(--clr-error);
}

/* Cart Footer */
.cart-drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--clr-border);
    background-color: var(--clr-card-bg);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cart-total-row span:last-child {
    color: var(--clr-primary);
    font-size: 1.3rem;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 100px);
    background-color: rgba(30, 36, 35, 0.95);
    backdrop-filter: blur(8px);
    color: white;
    border-radius: var(--radius-full);
    padding: 12px 24px;
    box-shadow: var(--shadow-lg);
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast.active {
    transform: translate(-50%, 0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    color: var(--clr-accent-gold);
}

.toast-message {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
    border-top: 1px solid var(--clr-border);
    background-color: var(--clr-card-bg);
    padding: 40px 0;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link:hover {
    color: var(--clr-primary);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }
    
    .hero-text-wrapper p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-search {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-image-wrapper {
        order: -1;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .hero-search {
        flex-direction: column;
        border-radius: var(--radius-md);
    }
    
    .category-filter {
        padding: 12px;
        width: 100%;
        text-align: center;
    }
    
    .section-title-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .stands-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-wrapper {
        padding: 0 16px;
        gap: 10px;
        height: 68px;
    }

    .main-header {
        height: 68px;
    }

    main {
        margin-top: 68px;
    }
    
    .logo {
        font-size: 1.25rem;
        gap: 8px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .logo-text {
        white-space: nowrap;
    }

    .logo-text span {
        display: none;
    }
    
    .main-nav {
        margin: 0 auto;
        flex-shrink: 0;
    }

    .main-nav ul {
        gap: 6px;
        flex-wrap: nowrap;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 0.82rem;
        gap: 6px;
        white-space: nowrap;
    }
    
    .nav-link i {
        width: 16px;
        height: 16px;
    }

    /* O carrinho sai do topo para não espremer o cabeçalho... */
    .header-actions {
        display: none;
    }

    /* ...e passa a flutuar no canto inferior direito andando na tela! */
    .cart-floating-btn {
        display: flex;
    }

    .catalog-hero {
        height: 220px;
    }
    
    .catalog-hero-content h2 {
        font-size: 1.8rem;
    }
    
    .catalog-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    }
    
    .product-gallery {
        height: 160px;
    }
}

@media (max-width: 600px) {
    .nav-wrapper {
        padding: 0 12px;
        gap: 8px;
    }

    /* Em telas estreitas, deixa os links da nav como ícones circulares limpos e modernos */
    .nav-link .nav-text {
        display: none;
    }

    .nav-link {
        padding: 0;
        width: 38px;
        height: 38px;
        justify-content: center;
        border-radius: var(--radius-full);
    }

    .nav-link i {
        width: 18px;
        height: 18px;
    }

    .logo {
        font-size: 1.15rem;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .nav-wrapper {
        padding: 0 10px;
        height: 64px;
        gap: 8px;
    }

    .main-header {
        height: 64px;
    }

    main {
        margin-top: 64px;
    }

    .logo {
        font-size: 1.05rem;
        gap: 6px;
    }

    .cart-floating-btn {
        bottom: 18px;
        right: 16px;
        width: 58px;
        height: 58px;
    }

    /* Drawer de carrinho ocupa 100% no mobile sem quebras */
    .cart-drawer {
        max-width: 100%;
        width: 100%;
    }

    .cart-drawer-header,
    .cart-drawer-body,
    .cart-drawer-footer {
        padding: 16px;
    }

    .form-card {
        padding: 20px;
    }
    
    .product-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    /* Telas muito estreitas (320px a 360px) */
    .logo-text {
        display: none;
    }

    .logo-icon {
        width: 24px;
        height: 24px;
    }

    .nav-link {
        width: 34px;
        height: 34px;
    }
}

/* ==========================================================================
   GATEWAY / CONTAGEM REGRESSIVA DE INAUGURAÇÃO & MODO BETA
   ========================================================================== */
.countdown-gate-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: radial-gradient(120% 120% at 50% 10%, #FAF9F6 0%, #E8EFEF 60%, #D8E5E1 100%);
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    box-sizing: border-box;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
}

.countdown-gate-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.countdown-gate-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(201, 158, 92, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(43, 92, 78, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(211, 107, 76, 0.08) 0%, transparent 50%);
}

.countdown-gate-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 25px 60px -15px rgba(43, 92, 78, 0.2), 0 0 0 1px rgba(43, 92, 78, 0.05);
    border-radius: 28px;
    max-width: 820px;
    width: 100%;
    padding: 48px 36px;
    text-align: center;
    animation: countdownFloatIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes countdownFloatIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.countdown-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.countdown-brand-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--clr-primary) 0%, #17372E 100%);
    color: #FFFFFF;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(43, 92, 78, 0.3);
    margin-bottom: 12px;
}

.countdown-brand-icon i {
    width: 34px;
    height: 34px;
}

.countdown-brand-title {
    font-size: 2rem;
    font-family: var(--font-secondary);
    font-weight: 800;
    color: var(--clr-primary);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.countdown-brand-title span {
    color: var(--clr-terracotta);
}

.countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FFF6E5 0%, #FFE9BF 100%);
    color: #8C5E13;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 9999px;
    border: 1px solid rgba(201, 158, 92, 0.3);
    box-shadow: 0 2px 8px rgba(201, 158, 92, 0.15);
}

.countdown-headline {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--clr-text-main);
    line-height: 1.2;
    margin-bottom: 14px;
    font-family: var(--font-secondary);
}

.countdown-subline {
    font-size: 1.05rem;
    color: var(--clr-text-muted);
    max-width: 640px;
    margin: 0 auto 32px auto;
    line-height: 1.6;
}

.countdown-subline strong {
    color: var(--clr-primary);
}

/* TIMER GRID */
.countdown-timer-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 32px 0;
}

.timer-box {
    background: #FFFFFF;
    border: 1.5px solid var(--clr-border);
    border-radius: 18px;
    padding: 16px 12px;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.timer-box:hover {
    transform: translateY(-2px);
    border-color: var(--clr-primary);
}

.timer-num {
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--clr-primary);
    letter-spacing: -1px;
}

.timer-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-text-muted);
    margin-top: 6px;
}

.timer-box-separator {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--clr-accent-gold);
    line-height: 1;
    margin-bottom: 20px;
}

/* FEATURES PILLS */
.countdown-features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 36px;
}

.countdown-feature-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--clr-primary-light);
    color: var(--clr-primary);
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
}

.countdown-feature-item i {
    width: 18px;
    height: 18px;
}

/* ACTIONS */
.countdown-actions {
    border-top: 1px solid var(--clr-border);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.countdown-quick-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--clr-text-muted);
}

.countdown-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: #FFFFFF;
    border: 1px solid var(--clr-border);
    color: var(--clr-text-main);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.countdown-link-btn:hover {
    background: var(--clr-primary);
    color: #FFFFFF;
    border-color: var(--clr-primary);
}

.countdown-link-btn i {
    width: 15px;
    height: 15px;
}

.btn-beta-unlock {
    background: none;
    border: none;
    color: var(--clr-text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: var(--transition);
    opacity: 0.75;
}

.btn-beta-unlock:hover {
    opacity: 1;
    color: var(--clr-primary);
    background: rgba(43, 92, 78, 0.08);
}

.btn-beta-unlock i {
    width: 14px;
    height: 14px;
}

/* FLOATING BETA BAR */
.beta-floating-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(90deg, #17372E 0%, #2B5C4E 50%, #C99E5C 100%);
    color: #FFFFFF;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.beta-badge-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.beta-badge-label i {
    width: 16px;
    height: 16px;
    color: #FFE9BF;
}

.btn-beta-relock {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.btn-beta-relock:hover {
    background: #FFFFFF;
    color: var(--clr-primary);
}

/* Adjust header when beta bar is visible */
body.beta-active .main-header {
    top: 36px;
}

body.beta-active {
    padding-top: 36px;
}

/* RESPONSIVENESS */
@media (max-width: 650px) {
    .countdown-gate-container {
        padding: 32px 18px;
    }

    .countdown-headline {
        font-size: 1.6rem;
    }

    .countdown-subline {
        font-size: 0.92rem;
    }

    .countdown-timer-grid {
        gap: 6px;
    }

    .timer-box {
        min-width: 64px;
        padding: 10px 6px;
        border-radius: 12px;
    }

    .timer-num {
        font-size: 1.8rem;
    }

    .timer-label {
        font-size: 0.65rem;
    }

    .timer-box-separator {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .countdown-features {
        gap: 8px;
    }

    .countdown-feature-item {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}
