/* ==========================================================================
   DESIGN SYSTEM & CUSTOM STYLESHEET - RRTOYS
   ========================================================================== */

/* Fontes */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Cores Baseadas no Logotipo (Mais colorido e profissional - Estilo Ri Happy) */
    --primary: #0062FF;                  /* Azul Royal (Mais limpo no header/rodapé) */
    --primary-hover: #004DCC;
    --secondary: #FF7A00;                /* Laranja (Secundário) */
    --secondary-hover: #E06C00;
    --accent-yellow: #FFC700;            /* Amarelo Sol */
    --accent-green: #25D366;             /* Verde WhatsApp */
    --accent-red: #FF3B30;               /* Vermelho Alerta */
    
    /* Neutros */
    --neutral-900: #0F172A;
    --neutral-800: #1E293B;
    --neutral-700: #334155;
    --neutral-500: #64748B;
    --neutral-300: #CBD5E1;
    --neutral-200: #E2E8F0;
    --neutral-100: #F1F5F9;
    --white: #ffffff;
    
    /* Sombras e Bordas */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 24px -4px rgba(255, 122, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --font-heading: 'Fredoka', 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Geral */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background: linear-gradient(180deg, #FFFDF5 0%, #F8FAFC 100%);
    background-attachment: fixed;
    color: var(--neutral-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Barra de Anúncios no Topo (E-commerce Profissional) */
.top-announcement-bar {
    background: linear-gradient(90deg, #FF7A00 0%, #FFC700 30%, #16A34A 50%, #0062FF 70%, #DB2777 100%);
    color: var(--white);
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
@media (max-width: 576px) {
    .top-announcement-bar {
        font-size: 0.75rem;
        flex-direction: column;
        gap: 0.2rem;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Botoes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}
.btn-secondary:hover {
    background-color: hsl(199, 89%, 40%);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    background-color: transparent;
    border-color: var(--neutral-300);
    color: var(--neutral-700);
}
.btn-outline-secondary:hover {
    background-color: var(--neutral-200);
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-outline-danger {
    background-color: transparent;
    border-color: var(--accent-red);
    color: var(--accent-red);
}
.btn-outline-danger:hover {
    background-color: var(--accent-red);
    color: var(--white);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Alertas */
.alert {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.alert-success {
    background-color: hsl(142, 70%, 93%);
    color: hsl(142, 76%, 22%);
    border: 1px solid hsl(142, 60%, 80%);
}
.alert-danger {
    background-color: hsl(354, 85%, 94%);
    color: hsl(354, 76%, 22%);
    border: 1px solid hsl(354, 60%, 85%);
}

/* ==========================================================================
   PUBLIC SHORFRONT (Vitrine)
   ========================================================================== */

.store-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--neutral-200);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.store-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.store-logo-img {
    height: 60px;
    object-fit: contain;
    transition: transform var(--transition-normal);
}
.store-logo-img:hover {
    transform: scale(1.05);
}

.search-bar-container {
    flex-grow: 1;
    max-width: 500px;
}

.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-full);
    outline: none;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}
.search-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.search-icon-svg {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-500);
    pointer-events: none;
    width: 18px;
    height: 18px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-toggle-btn {
    background: var(--neutral-200);
    border: none;
    border-radius: var(--radius-full);
    padding: 0.75rem;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}
.cart-toggle-btn:hover {
    background: var(--neutral-300);
}

.cart-icon-svg {
    width: 24px;
    height: 24px;
    color: var(--neutral-800);
}

.cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-red);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, hsl(268, 30%, 95%) 0%, hsl(199, 40%, 93%) 100%);
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
    border-bottom: 2px dashed var(--neutral-200);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 600px;
}

.hero-tagline {
    background: var(--white);
    color: var(--primary);
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.75rem;
    line-height: 1.15;
    color: var(--neutral-900);
    margin-bottom: 1rem;
}
.hero-title span {
    color: var(--primary);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--neutral-700);
    margin-bottom: 1.5rem;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-badge-item {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-image-wrapper {
    display: none;
}
@media (min-width: 768px) {
    .hero-image-wrapper {
        display: block;
        max-width: 610px;
        width: 100%;
    }
}

/* Bolhas Flutuantes (Efeito Visual Lúdico do Logo) */
.hero-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bubble {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 40%, rgba(14, 165, 233, 0.2) 70%, rgba(93, 46, 140, 0.3) 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    animation: floatBubble 12s infinite ease-in-out;
}

.bubble-1 { width: 60px; height: 60px; left: 10%; bottom: 10%; animation-delay: 0s; }
.bubble-2 { width: 40px; height: 40px; right: 15%; top: 15%; animation-delay: 2s; }
.bubble-3 { width: 80px; height: 80px; left: 45%; top: 20%; animation-delay: 4s; }
.bubble-4 { width: 30px; height: 30px; right: 40%; bottom: 20%; animation-delay: 1s; }

@keyframes floatBubble {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Categorias */
.categories-filter-section {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 1.5rem;
}

.categories-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--neutral-800);
}

.categories-chips {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}
.categories-chips::-webkit-scrollbar {
    display: none;
}

.category-chip {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}
.category-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.category-chip.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

/* Vitrine de Produtos */
.shop-section {
    max-width: 1200px;
    margin: 2rem auto 4rem;
    padding: 0 1.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--transition-normal);
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -5px rgba(255, 122, 0, 0.12), 0 10px 15px -8px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 122, 0, 0.25);
}

.product-card-image {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: var(--neutral-100);
    overflow: hidden;
    border-bottom: 1px solid var(--neutral-200);
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}
.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--accent-red);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.product-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Category Pills (Coloridas e Clean - Estilo Ri Happy) */
.product-card-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    width: fit-content;
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}
.product-card-category.cat-block-toys { background-color: #E2F1FF; color: #0066CC; }
.product-card-category.cat-super-bubble { background-color: #FFF0F5; color: #DB2777; }
.product-card-category.cat-kit-praia { background-color: #FFFBEB; color: #D97706; }
.product-card-category.cat-kit-maleta { background-color: #F0FDF4; color: #16A34A; }
.product-card-category.cat-kit-cozinha { background-color: #FAF5FF; color: #7C3AED; }
.product-card-category.cat-interativos { background-color: #F0FDFA; color: #0D9488; }

.product-card-title {
    font-size: 1.05rem;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
    line-height: 1.35;
    height: 2.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price-container {
    margin-top: auto;
    margin-bottom: 1rem;
}

.price-old {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: var(--neutral-500);
    margin-right: 0.5rem;
}

.price-current {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

.product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.btn-ml {
    background: #FFE600;
    color: #2D3277;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.65rem 1rem;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    width: 100%;
    text-align: center;
}
.btn-ml:hover {
    background: #F7DC00;
    color: #1A1D4A;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.btn-shopee {
    background: #EE4D2D;
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.65rem 1rem;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 6px rgba(238, 77, 45, 0.25);
    width: 100%;
    text-align: center;
}
.btn-shopee:hover {
    background: #D73211;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(238, 77, 45, 0.35);
}

.btn-add-cart {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}
.btn-add-cart:hover {
    background: var(--primary-hover);
}

.btn-view-details {
    background: var(--neutral-200);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-700);
    transition: background var(--transition-fast);
}
.btn-view-details:hover {
    background: var(--neutral-300);
}

.btn-view-details svg {
    width: 18px;
    height: 18px;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--neutral-200);
    color: var(--neutral-500);
}

/* ==========================================================================
   SHOPPING CART SLIDE-OVER
   ========================================================================== */

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}
.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100%;
    background: var(--white);
    z-index: 201;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
}
.cart-sidebar.active {
    transform: translateX(0);
}

.cart-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-close-cart {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--neutral-500);
    padding: 0.25rem;
}
.btn-close-cart:hover {
    color: var(--neutral-900);
}

.cart-sidebar-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    background: var(--neutral-200);
    overflow: hidden;
}
.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.btn-qty {
    background: var(--neutral-200);
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
}
.btn-qty:hover {
    background: var(--neutral-300);
}

.qty-val {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 25px;
    text-align: center;
}

.btn-remove-item {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent-red);
    margin-left: 0.5rem;
}

.cart-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--neutral-500);
}

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cart-sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--neutral-200);
    background: var(--neutral-100);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 1.25rem;
}

.cart-total-row span:last-child {
    color: var(--primary);
}

/* ==========================================================================
   PRODUCT DETAILS MODAL
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--white);
    width: 100%;
    max-width: 880px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}
.modal-overlay.active .modal-card {
    transform: scale(1);
}

.btn-close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    border: none;
    border-radius: var(--radius-full);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    color: var(--neutral-500);
    transition: color var(--transition-fast);
}
.btn-close-modal:hover {
    color: var(--neutral-900);
}

.modal-card-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 576px) {
    .modal-card-body {
        grid-template-columns: 1fr 1.2fr;
    }
}

.modal-image-panel {
    background: var(--neutral-200);
    height: 300px;
}
@media (min-width: 576px) {
    .modal-image-panel {
        height: 100%;
        min-height: 480px;
    }
}
.modal-image-panel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--neutral-100);
}

.modal-info-panel {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.modal-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.modal-title {
    font-size: 1.6rem;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--neutral-900);
}

.modal-price-box {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.modal-description {
    font-size: 0.95rem;
    color: var(--neutral-700);
    margin-bottom: 2rem;
    line-height: 1.6;
    overflow-y: auto;
    max-height: 150px;
}

.modal-actions {
    margin-top: auto;
}

/* ==========================================================================
   PUBLIC CHECKOUT PAGE
   ========================================================================== */

.checkout-section {
    max-width: 1200px;
    margin: 2rem auto 4rem;
    padding: 0 1.5rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1.4fr 1fr;
    }
}

/* Formulários Genericos */
.admin-form, .login-form, .checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neutral-800);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    outline: none;
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.col-4 { flex: 1 1 calc(33.333% - 0.67rem); min-width: 150px; }
.col-6 { flex: 1 1 calc(50% - 0.5rem); min-width: 200px; }
.col-8 { flex: 1 1 calc(66.666% - 0.33rem); min-width: 250px; }

/* Abas de Pagamento */
.payment-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--neutral-200);
    margin-bottom: 1.5rem;
}

.payment-tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--neutral-500);
    cursor: pointer;
    position: relative;
}
.payment-tab-btn:hover {
    color: var(--neutral-900);
}
.payment-tab-btn.active {
    color: var(--primary);
}
.payment-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.payment-panel {
    display: none;
}
.payment-panel.active {
    display: block;
}

/* Painel Pix */
.pix-instructions {
    text-align: center;
    background: var(--neutral-200);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pix-qr-box {
    width: 150px;
    height: 150px;
    background: var(--white);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.pix-copia-cola-box {
    width: 100%;
}

.pix-code-input {
    background: var(--white);
    border: 1px solid var(--neutral-300);
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Cartão Interativo 3D */
.card-wrapper {
    perspective: 1000px;
    width: 100%;
    max-width: 340px;
    height: 200px;
    margin: 0 auto 1.5rem;
}

.interactive-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform var(--transition-normal);
}
.interactive-card.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
}

.card-front {
    background: linear-gradient(135deg, hsl(268, 55%, 45%) 0%, hsl(199, 89%, 40%) 100%);
}

.card-back {
    background: linear-gradient(135deg, hsl(199, 89%, 40%) 0%, hsl(268, 55%, 45%) 100%);
    transform: rotateY(180deg);
    padding-left: 0;
    padding-right: 0;
    padding-top: 1.25rem;
}

.card-magnetic-strip {
    background: #111;
    height: 38px;
    width: 100%;
    margin-bottom: 1.5rem;
}

.card-signature-box {
    background: rgba(255, 255, 255, 0.2);
    margin: 0 1.5rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: flex-end;
}

.card-cvv-display {
    background: var(--white);
    color: var(--neutral-900);
    padding: 0.2rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    font-family: monospace;
}

.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 4px;
    margin-bottom: 1.25rem;
}

.card-number-display {
    font-family: monospace;
    font-size: 1.35rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.card-bottom-row {
    display: flex;
    justify-content: space-between;
}

.card-holder-info label,
.card-expiry-info label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    display: block;
    margin-bottom: 0.2rem;
}

.card-holder-info span,
.card-expiry-info span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Painel de Processamento do Cartão */
.payment-processing-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 500;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.spinner {
    border: 4px solid var(--neutral-300);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

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

.checkout-summary-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
}

.checkout-summary-list {
    margin-bottom: 1.5rem;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   ADMIN DASHBOARD PANELS
   ========================================================================== */

.admin-body {
    background-color: var(--neutral-200);
}

.admin-navbar {
    background: var(--neutral-900);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.admin-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.admin-logo {
    height: 40px;
}

.admin-wrapper {
    display: flex;
    min-height: calc(100vh - 60px);
}

.admin-sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--neutral-300);
    padding: 1.5rem 0;
    flex-shrink: 0;
}

.admin-menu {
    list-style: none;
}

.admin-menu-item {
    display: block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: var(--neutral-700);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}
.admin-menu-item:hover,
.admin-menu-item.active {
    background: var(--neutral-200);
    color: var(--primary);
}

.sidebar-divider {
    height: 1px;
    background: var(--neutral-200);
    margin: 1rem 0;
}

.store-link {
    color: var(--secondary);
}

.admin-content {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Card Panel */
.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    margin-bottom: 2rem;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.35rem;
    color: var(--neutral-800);
}

.card-body {
    padding: 1.5rem;
}

/* Tabelas Admin */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th,
.admin-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--neutral-200);
    font-size: 0.92rem;
}

.admin-table th {
    background-color: var(--neutral-100);
    font-weight: 700;
    color: var(--neutral-700);
}

.table-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.table-thumb-placeholder {
    width: 50px;
    height: 50px;
    background-color: var(--neutral-300);
    color: var(--neutral-500);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

/* Badges */
.badge {
    display: inline-flex;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
}
.badge-info { background: hsl(199, 89%, 92%); color: hsl(199, 89%, 36%); }
.badge-success { background: hsl(142, 70%, 90%); color: hsl(142, 76%, 22%); }
.badge-danger { background: hsl(354, 85%, 90%); color: hsl(354, 76%, 22%); }

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    user-select: none;
}

.form-thumb-preview {
    margin-top: 0.5rem;
    max-width: 120px;
    max-height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--neutral-300);
}

.form-divider {
    border: 0;
    border-top: 1px solid var(--neutral-200);
    margin: 1.5rem 0;
}

.section-desc {
    font-size: 0.85rem;
    color: var(--neutral-500);
    margin-top: -0.5rem;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   ADMIN LOGIN CARD
   ========================================================================== */
.login-page {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    height: 70px;
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 1.6rem;
    color: var(--neutral-900);
}

.login-header p {
    font-size: 0.9rem;
    color: var(--neutral-500);
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}
.login-footer a:hover {
    text-decoration: underline;
}

/* Text through */
.text-through {
    text-decoration: line-through;
}

/* Botão Flutuante de WhatsApp */
.whatsapp-float-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease;
}
.whatsapp-float-btn:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}
.whatsapp-float-btn svg {
    width: 32px;
    height: 32px;
}

/* Estilo para player de vídeo no modal e painéis (Enquadramento Perfeito) */
.modal-video {
    width: 100%;
    height: 100%;
    background-color: #000;
    border-radius: var(--radius-sm);
    object-fit: contain;
    box-shadow: var(--shadow-sm);
}

/* Botões coloridos temáticos por categoria */
.btn-add-cart.btn-cat-block-toys { background-color: #0062FF; }
.btn-add-cart.btn-cat-block-toys:hover { background-color: #004DCC; }

.btn-add-cart.btn-cat-super-bubble { background-color: #DB2777; }
.btn-add-cart.btn-cat-super-bubble:hover { background-color: #BE185D; }

.btn-add-cart.btn-cat-kit-praia { background-color: #FF7A00; }
.btn-add-cart.btn-cat-kit-praia:hover { background-color: #E06C00; }

.btn-add-cart.btn-cat-kit-maleta { background-color: #16A34A; }
.btn-add-cart.btn-cat-kit-maleta:hover { background-color: #15803D; }

.btn-add-cart.btn-cat-kit-cozinha { background-color: #7C3AED; }
.btn-add-cart.btn-cat-kit-cozinha:hover { background-color: #6B21A8; }

.btn-add-cart.btn-cat-interativos { background-color: #0D9488; }
.btn-add-cart.btn-cat-interativos:hover { background-color: #0F766E; }

/* Chips de categorias coloridos e ativos */
.category-chip.active.chip-all { background-color: var(--primary); border-color: var(--primary); color: var(--white); }
.category-chip.active.chip-block-toys { background-color: #0062FF; border-color: #0062FF; color: var(--white); }
.category-chip.active.chip-super-bubble { background-color: #DB2777; border-color: #DB2777; color: var(--white); }
.category-chip.active.chip-kit-praia { background-color: #FF7A00; border-color: #FF7A00; color: var(--white); }
.category-chip.active.chip-kit-maleta { background-color: #16A34A; border-color: #16A34A; color: var(--white); }
.category-chip.active.chip-kit-cozinha { background-color: #7C3AED; border-color: #7C3AED; color: var(--white); }
.category-chip.active.chip-interativos { background-color: #0D9488; border-color: #0D9488; color: var(--white); }

/* Banner de Destaque do WhatsApp no Hero */
.whatsapp-highlight-banner {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
    margin-top: 1.5rem;
    cursor: pointer;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    text-align: left;
    max-width: 100%;
}
.whatsapp-highlight-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.35);
}
.whatsapp-highlight-icon {
    font-size: 1.75rem;
    margin-right: 0.75rem;
}
.whatsapp-highlight-text {
    display: flex;
    flex-direction: column;
}
.whatsapp-highlight-text strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}
.whatsapp-highlight-text span {
    font-size: 0.85rem;
    opacity: 0.9;
}
.whatsapp-highlight-arrow {
    margin-left: 1rem;
    font-size: 1.1rem;
}

/* Botão flutuante de som para o player de vídeo */
.video-mute-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.video-mute-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.1);
}
.video-mute-btn svg {
    width: 20px;
    height: 20px;
}

/* Colmeia de Imagens no Hero (Proporção Ampliada - 10 Células) */
.honeycomb-container {
    position: relative;
    width: 610px;
    height: 400px;
    margin: 0 auto;
    transform-origin: center center;
    transition: transform var(--transition-normal);
}

@media (max-width: 1200px) {
    .honeycomb-container {
        transform: scale(0.85);
    }
}
@media (max-width: 992px) {
    .honeycomb-container {
        transform: scale(0.7);
    }
}
@media (max-width: 768px) {
    .honeycomb-container {
        transform: scale(0.55);
    }
}
@media (max-width: 576px) {
    .honeycomb-container {
        transform: scale(0.48);
        margin-top: -80px;
        margin-bottom: -80px;
    }
}

.honeycomb-cell {
    position: absolute;
    width: 170px;
    height: 170px;
    background: var(--white);
    border-radius: 24px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    overflow: hidden;
    z-index: 2;
}
.honeycomb-cell-in {
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.honeycomb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease-in-out, transform 0.3s ease;
}
.honeycomb-cell:hover {
    transform: scale(1.15);
    z-index: 5;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

/* Posições das 10 células na colmeia (Grade Simétrica 3-4-3) */
.honeycomb-cell.cell-1 { top: 20px; left: 89px; }
.honeycomb-cell.cell-2 { top: 20px; left: 227px; }
.honeycomb-cell.cell-3 { top: 20px; left: 365px; }
.honeycomb-cell.cell-4 { top: 123px; left: 158px; }
.honeycomb-cell.cell-5 { top: 123px; left: 296px; }
.honeycomb-cell.cell-6 { top: 226px; left: 227px; }
.honeycomb-cell.cell-7 { top: 123px; left: 20px; }   /* Esquerda da linha do meio */
.honeycomb-cell.cell-8 { top: 123px; left: 434px; }  /* Direita da linha do meio */
.honeycomb-cell.cell-9 { top: 226px; left: 89px; }   /* Esquerda da linha de baixo */
.honeycomb-cell.cell-10 { top: 226px; left: 365px; } /* Direita da linha de baixo */
