:root {
    --color-pink: #F5A7C7;
    --color-yellow: #F9E784;
    --color-blue: #A8D8F0;
    --color-cream: #F5E6D3;
    --color-lilac: #C8B5D8;
    --color-neutral-dark: #3D3D3D;
    --color-neutral-warm: #B8956A;
    --color-accent-green: #B8D4A8;
    --color-white: #FFFFFF;
    --gradient-hero: linear-gradient(135deg, rgba(245, 167, 199, 0.95), rgba(168, 216, 240, 0.85));
    --shadow-soft: 0 16px 40px rgba(200, 181, 216, 0.35);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', sans-serif;
    --visual-vh: 100vh;
    --modal-vh-offset: 5rem;
    --modal-max-height: 620px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--color-cream);
    color: var(--color-neutral-dark);
    line-height: 1.5;
    min-height: 100vh;
}

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

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

button {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(168, 216, 240, 0.8);
    outline-offset: 2px;
}

::selection {
    background: rgba(245, 167, 199, 0.35);
}

.container {
    width: min(1120px, 90vw);
    margin: 0 auto;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 0;
}

.page-wrapper::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('assets/Fundo_LiberiKids.jpg') center top / cover no-repeat;
    background-color: #f8e7af;
    z-index: -1;
    pointer-events: none;
}

.main-content {
    flex: 1;
    margin-top: 0;
    position: relative;
    z-index: 5;
    padding-bottom: 4rem;
}

h1,
h2,
h3,
h4 {
    color: var(--color-neutral-dark);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: rgba(61, 61, 61, 0.7);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-neutral-warm);
}

/* ========== HEADER & HERO ========== */
.header {
    position: relative;
    padding: 2rem 0 2.5rem;
    overflow: hidden;
}

.header-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.brand-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-neutral-warm);
    font-weight: 600;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.header-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.6rem;
}

.header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 0.9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(61, 61, 61, 0.08);
    color: var(--color-neutral-dark);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.header-action i {
    font-size: 1rem;
}

.header-action span {
    font-size: 0.92rem;
}

.header-action:hover,
.header-action:focus-visible,
.filter-btn.active {
    background: linear-gradient(135deg, rgba(245, 167, 199, 0.18), rgba(168, 216, 240, 0.3));
    border-color: rgba(245, 167, 199, 0.4);
    box-shadow: 0 16px 32px rgba(200, 181, 216, 0.25);
    transform: translateY(-2px);
}

.filter-btn.has-filter {
    background: linear-gradient(135deg, rgba(245, 167, 199, 0.35), rgba(200, 181, 216, 0.45));
    border-color: rgba(245, 167, 199, 0.55);
    box-shadow: 0 18px 36px rgba(245, 167, 199, 0.28);
}

.cart-btn {
    padding-right: 1rem;
}

.cart-count {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-yellow);
    color: var(--color-neutral-dark);
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-area {
    width: 100%;
}

.user-btn {
    width: 100%;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-neutral-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    transition: var(--transition);
    border: 1px solid rgba(61, 61, 61, 0.08);
}

.user-btn:hover {
    background: linear-gradient(135deg, rgba(245, 167, 199, 0.18), rgba(168, 216, 240, 0.3));
    border-color: rgba(245, 167, 199, 0.4);
    box-shadow: 0 16px 32px rgba(200, 181, 216, 0.25);
}

.user-logged {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.user-greeting {
    font-size: 0.85rem;
}

.user-greeting strong {
    color: var(--color-pink);
}

.hero {
    margin-top: 2.8rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: clamp(2.1rem, 5vw, 3rem);
}

.hero-text p {
    margin-top: 1.1rem;
    max-width: 530px;
}

.hero-tags {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--color-neutral-dark);
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(200, 181, 216, 0.35);
}

.hero-media {
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    padding: 2.1rem 1.9rem;
    text-align: center;
    width: min(320px, 100%);
}

.hero-card img {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.2rem;
    border-radius: 24px;
    background: rgba(245, 231, 211, 0.7);
    padding: 0.5rem;
    object-fit: contain;
}

.hero-card-caption strong {
    display: block;
    font-size: 1.05rem;
}

.hero-card-caption span {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: rgba(61, 61, 61, 0.65);
}

/* ========== FILTER PANEL ========== */
.filter-panel {
    padding: 0 0 2.4rem;
    position: relative;
}

.filter-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.9rem 2rem;
    border: 1px solid rgba(200, 181, 216, 0.35);
}

.filter-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.filter-card-title h3 {
    margin-top: 0.45rem;
    font-size: 1.4rem;
}

.filter-close {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(245, 167, 199, 0.2);
    color: var(--color-neutral-dark);
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.filter-close:hover {
    background: rgba(245, 167, 199, 0.35);
}

.filter-content {
    margin-top: 1.7rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(61, 61, 61, 0.75);
    margin-bottom: 0.75rem;
}

.filter-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.filter-chip {
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(200, 181, 216, 0.5);
    background: rgba(245, 230, 211, 0.35);
    color: var(--color-neutral-dark);
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
}

.filter-chip:hover {
    border-color: var(--color-pink);
    background: rgba(245, 167, 199, 0.25);
    box-shadow: 0 12px 24px rgba(245, 167, 199, 0.25);
}

.filter-chip.active {
    background: linear-gradient(135deg, rgba(245, 167, 199, 0.9), rgba(200, 181, 216, 0.95));
    border-color: transparent;
    color: var(--color-neutral-dark);
    box-shadow: 0 16px 30px rgba(245, 167, 199, 0.35);
}

.filter-panel.open {
    display: block;
}

/* ========== PRODUCT GRID ========== */
.produtos {
    margin-top: 1.5rem;
    padding-bottom: 3rem;
}

.produtos-header {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    border: 1px solid rgba(200, 181, 216, 0.35);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
    align-items: center;
}

.produtos-header-text p {
    margin-top: 1.1rem;
    max-width: 470px;
    font-size: 0.85rem;
}

.produtos-header-badges {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
}

.produtos-header-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(184, 212, 168, 0.35);
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.produtos-header-badges span:nth-child(2) {
    background: rgba(168, 216, 240, 0.35);
}

.loading {
    margin: 2rem auto;
    text-align: center;
    color: rgba(61, 61, 61, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.loading i {
    font-size: 1.5rem;
    color: var(--color-pink);
}

.produtos-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
}

.produto-card {
    background: var(--color-white);
    border-radius: 18px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(61, 61, 61, 0.08);
    border: 1px solid rgba(61, 61, 61, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.produto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(61, 61, 61, 0.14);
}

.produto-card-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    display: block;
    background: #f9f9f9;
}

.produto-card-no-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    font-size: 3rem;
    color: rgba(61, 61, 61, 0.3);
}

/* Container de Badges (fora da foto) */
.produto-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0 1rem;
    margin-top: 0.75rem;
    min-height: 28px;
}

.produto-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: fadeInBadge 0.3s ease;
}

.badge-esgotado {
    background: linear-gradient(135deg, #6b7280 0%, #374151 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

.badge-promocao {
    background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.badge-novidade {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

@keyframes fadeInBadge {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.produto-info-minimal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1rem;
}

.produto-nome-minimal {
    font-size: 1rem;
    font-weight: 600;
}

.produto-preco-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.produto-precos {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.produto-preco-minimal {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-neutral-warm);
}

.produto-preco-minimal.preco-promocional {
    font-size: 1.2rem;
    color: #dc2626;
}

.produto-preco-original {
    font-size: 0.9rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

.produto-tamanhos-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tamanho-chip {
    font-size: 0.72rem;
    padding: 0.32rem 0.55rem;
    border-radius: 10px;
    background: rgba(168, 216, 240, 0.4);
    font-weight: 600;
}

.no-products {
    margin: 3rem auto 0;
    max-width: 360px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2rem 1.8rem;
    text-align: center;
    border: 1px solid rgba(200, 181, 216, 0.35);
}

.no-products i {
    font-size: 2rem;
    color: var(--color-pink);
    margin-bottom: 1rem;
}

/* ========== CART MODAL ========== */
.cart-modal-content {
    max-width: 500px !important;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.cart-modal-content .auth-modal-header {
    flex-shrink: 0;
}

.cart-modal-content .cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    min-height: 200px;
}

.cart-modal-content .cart-footer {
    flex-shrink: 0;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f9fafb;
}

.cart-total {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Mantém estilos antigos para compatibilidade */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100%);
    background: var(--color-white);
    box-shadow: -28px 0 60px rgba(61, 61, 61, 0.2);
    transform: translateX(120%) scale(0.97);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s ease, opacity 0.32s ease;
    z-index: 1200;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.cart-header {
    padding: 1.6rem 1.5rem;
    border-bottom: 1px solid rgba(200, 181, 216, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cart-header h3 {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
}

.close-cart {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(245, 167, 199, 0.2);
    color: var(--color-neutral-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-cart:hover {
    background: rgba(245, 167, 199, 0.35);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.6rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-cart {
    text-align: center;
    color: rgba(61, 61, 61, 0.6);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 2rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(168, 216, 240, 0.2);
}

.empty-cart i {
    font-size: 2rem;
    color: var(--color-blue);
}

.cart-item {
    display: flex;
    gap: 1rem;
    background: rgba(245, 230, 211, 0.35);
    border-radius: var(--radius-md);
    padding: 1rem;
    align-items: center;
}

.cart-item-image {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(168, 216, 240, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image i {
    font-size: 1.6rem;
    color: rgba(61, 61, 61, 0.45);
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cart-item-info h4 {
    font-size: 0.95rem;
}

.cart-item-info p {
    font-size: 0.8rem;
}

.cart-item-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-neutral-warm);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--color-white);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(200, 181, 216, 0.35);
}

.quantity-control button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(245, 167, 199, 0.25);
    color: var(--color-neutral-dark);
    font-weight: 700;
    transition: var(--transition);
}

.quantity-control button:hover {
    background: rgba(245, 167, 199, 0.4);
}

.remove-item {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(61, 61, 61, 0.08);
    color: rgba(61, 61, 61, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.remove-item:hover {
    background: rgba(245, 167, 199, 0.35);
    color: var(--color-neutral-dark);
}

.cart-footer {
    padding: 1.2rem 1.5rem 1.6rem;
    border-top: 1px solid rgba(200, 181, 216, 0.35);
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
}

.checkout-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-pink), var(--color-lilac));
    color: var(--color-neutral-dark);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    transition: var(--transition);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(245, 167, 199, 0.35);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(61, 61, 61, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1100;
}

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

/* ========== PRODUCT MODAL ========== */
.produto-modal {
    position: fixed;
    inset: 0;
    background: rgba(61, 61, 61, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1300;
    backdrop-filter: blur(6px);
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: max(1.2rem, env(safe-area-inset-top, 1.2rem)) clamp(1rem, 4vw, 1.6rem) max(1.2rem, env(safe-area-inset-bottom, 1.2rem)) clamp(1rem, 4vw, 1.6rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.produto-modal.pre-active {
    display: flex;
    opacity: 0;
    pointer-events: none;
}

.produto-modal.pre-active .produto-modal-content {
    transform: translateY(24px) scale(0.96);
    opacity: 0;
}

.produto-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.produto-modal.active .produto-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.produto-modal-content {
    background: linear-gradient(180deg, #ffffff 0%, #f9f1f7 100%);
    border-radius: 24px;
    border: 1px solid rgba(245, 167, 199, 0.18);
    width: min(520px, 92vw);
    max-height: min(calc(var(--visual-vh) - var(--modal-vh-offset)), var(--modal-max-height));
    padding: 1.4rem 1.6rem;
    box-shadow: 0 26px 50px rgba(61, 61, 61, 0.18);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
    overflow-y: auto;
    margin: auto;
    transform: translateY(24px) scale(0.96);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.produto-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-neutral-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(61, 61, 61, 0.12);
    transition: var(--transition);
    z-index: 5;
}

.produto-modal-close:hover {
    background: rgba(245, 167, 199, 0.35);
    color: var(--color-neutral-dark);
    transform: translateY(-1px);
}

.produto-modal-image {
    position: relative;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: min(260px, calc(var(--visual-vh) * 0.4));
    max-height: min(260px, calc(var(--visual-vh) * 0.4));
    width: min(100%, 300px);
    margin: 0 auto;
    padding: 0.6rem;
}

.produto-modal-image-trigger {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #f6f6f6;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.5s ease;
    cursor: zoom-in;
}

.produto-modal-image-trigger:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(245, 167, 199, 0.35), rgba(168, 216, 240, 0.35));
    box-shadow: 0 20px 40px rgba(61, 61, 61, 0.18);
}

.produto-modal-image-trigger img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.produto-modal-image-trigger:hover img {
    transform: scale(1.02);
}

.produto-modal-image-zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    background: rgba(61, 61, 61, 0.7);
    color: var(--color-white);
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    pointer-events: none;
}

.produto-modal-image-zoom-hint i {
    font-size: 0.8rem;
}

/* Galeria de fotos no modal */
.produto-modal-galeria {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 8px;
    overflow-x: auto;
    justify-content: center;
    flex-wrap: wrap;
}

.galeria-miniatura {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.galeria-miniatura:hover {
    opacity: 1;
    transform: scale(1.05);
}

.galeria-miniatura.active {
    opacity: 1;
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(156, 136, 255, 0.3);
}

/* Ocultar preços quando configurado */
.hide-prices .produto-preco-minimal,
.hide-prices .produto-preco-row .produto-preco-minimal,
.hide-prices .produto-modal-preco {
    display: none !important;
}

.produto-modal-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
    align-items: center;
}

.produto-modal-nome {
    font-size: 1.5rem;
}

.produto-modal-marca {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(61, 61, 61, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.produto-modal-preco {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-neutral-warm);
}

.produto-modal-descricao {
    color: rgba(61, 61, 61, 0.7);
    line-height: 1.5;
}

.produto-modal-variacoes h4 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.variacoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.6rem;
}

.variacao-item {
    padding: 0.7rem;
    border-radius: 14px;
    border: 1px solid rgba(200, 181, 216, 0.35);
    background: rgba(245, 230, 211, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: var(--transition);
    cursor: pointer;
}

.variacao-item:hover {
    border-color: var(--color-pink);
    box-shadow: 0 16px 30px rgba(245, 167, 199, 0.3);
}

.variacao-item.selected {
    border-color: var(--color-pink);
    background: rgba(245, 167, 199, 0.5);
    box-shadow: 0 18px 35px rgba(245, 167, 199, 0.3);
}

.variacao-item.sem-estoque {
    opacity: 0.4;
    pointer-events: none;
}

.variacao-tamanho {
    font-size: 1rem;
    font-weight: 700;
}

.variacao-cor {
    font-size: 0.85rem;
    color: rgba(61, 61, 61, 0.7);
}

.variacao-estoque {
    font-size: 0.75rem;
    color: rgba(61, 61, 61, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.produto-modal-botao {
    margin-top: auto;
    padding: 0.9rem 1.1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-pink), var(--color-blue));
    color: var(--color-neutral-dark);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition);
}

.produto-modal-botao:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(168, 216, 240, 0.35);
}

.produto-modal-botao:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

@supports (height: 100svh) {
    :root {
        --visual-vh: 100svh;
    }
}

@supports (height: 100dvh) {
    :root {
        --visual-vh: 100dvh;
    }
}

.produto-image-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1500;
    cursor: zoom-out;
}

.produto-image-viewer.active {
    display: flex;
}

.produto-image-viewer img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    cursor: default;
}

.produto-image-viewer-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    z-index: 10;
}

.produto-image-viewer-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.04);
}

/* Controles de Navegação do Viewer */
.viewer-prev,
.viewer-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.viewer-prev {
    left: 2rem;
}

.viewer-next {
    right: 2rem;
}

.viewer-prev:hover,
.viewer-next:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.viewer-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
    z-index: 10;
}

/* Preços Promocionais no Modal */
.modal-preco-original {
    display: block;
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.modal-preco-promocional {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #dc2626;
}

/* ========== AUTH MODALS ========== */
.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(61, 61, 61, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1400;
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
}

.auth-modal.pre-active {
    display: flex;
    opacity: 0;
    pointer-events: none;
}

.auth-modal.pre-active .auth-modal-content {
    transform: translateY(24px) scale(0.96);
    opacity: 0;
}

.auth-modal.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.auth-modal-content {
    background: var(--color-white);
    border-radius: 24px;
    width: min(420px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.2rem 2rem;
    box-shadow: 0 32px 64px rgba(61, 61, 61, 0.3);
    position: relative;
    transform: translateY(24px) scale(0.96);
    opacity: 0;
    transition: transform 0.32s ease, opacity 0.32s ease;
}

.auth-modal.active .auth-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(245, 167, 199, 0.2);
    color: var(--color-neutral-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.auth-modal-close:hover {
    background: rgba(245, 167, 199, 0.35);
}

.auth-modal-header h2 {
    font-size: 1.6rem;
}

.auth-modal-header p {
    margin-top: 0.4rem;
    font-size: 0.92rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 1rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(61, 61, 61, 0.75);
}

.form-group input,
.form-group textarea,
.form-group select {
    border-radius: 14px;
    border: 1px solid rgba(200, 181, 216, 0.45);
    padding: 0.75rem 0.9rem;
    font: inherit;
    background: rgba(245, 230, 211, 0.4);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-pink);
    box-shadow: 0 0 0 4px rgba(245, 167, 199, 0.22);
    background: var(--color-white);
}

.form-group small {
    font-size: 0.75rem;
    color: rgba(61, 61, 61, 0.5);
}

.auth-btn {
    margin-top: 1.6rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-pink), var(--color-lilac));
    color: var(--color-neutral-dark);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(200, 181, 216, 0.4);
}

.auth-btn.secondary {
    background: rgba(200, 181, 216, 0.25);
    color: var(--color-neutral-dark);
    box-shadow: none;
}

.auth-btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(200, 181, 216, 0.35);
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(61, 61, 61, 0.65);
}

.auth-footer a {
    color: var(--color-pink);
    font-weight: 600;
}

/* ========== ADMIN PANELS ========== */
.admin-modal {
    position: fixed;
    inset: 0;
    background: rgba(61, 61, 61, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1700;
}

.admin-modal.active {
    display: flex;
}

.admin-modal-content {
    background: var(--color-white);
    border-radius: 24px;
    padding: 2rem;
    width: min(440px, 100%);
    box-shadow: 0 30px 60px rgba(61, 61, 61, 0.25);
    position: relative;
}

.admin-modal-header h3 {
    font-size: 1.35rem;
}

.admin-modal-header p {
    margin-top: 0.4rem;
    color: rgba(61, 61, 61, 0.6);
}

.admin-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(245, 167, 199, 0.25);
    color: var(--color-neutral-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.admin-modal-close:hover {
    background: rgba(245, 167, 199, 0.4);
}

.admin-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(480px, 100%);
    background: var(--color-white);
    box-shadow: -30px 0 60px rgba(61, 61, 61, 0.25);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1650;
    display: flex;
    flex-direction: column;
}

.admin-panel.active {
    transform: translateX(0);
}

.admin-panel-header {
    padding: 1.8rem;
    border-bottom: 1px solid rgba(200, 181, 216, 0.35);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(245, 167, 199, 0.25), rgba(168, 216, 240, 0.25));
}

.admin-panel-header span {
    font-size: 0.85rem;
    color: rgba(61, 61, 61, 0.6);
}

.admin-panel-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-form-content {
    padding: 1.6rem 1.8rem 2.3rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-section h4 {
    font-size: 1.05rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.form-grid.two-columns {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.primary-button {
    background: linear-gradient(135deg, var(--color-pink), var(--color-lilac));
    color: var(--color-neutral-dark);
    border-radius: 16px;
    padding: 0.75rem 1.2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(200, 181, 216, 0.4);
}

.primary-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.admin-secondary {
    background: rgba(168, 216, 240, 0.25);
    color: var(--color-neutral-dark);
    border-radius: 14px;
    padding: 0.6rem 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--transition);
}

.admin-secondary:hover {
    background: rgba(168, 216, 240, 0.4);
}

.admin-hint {
    font-size: 0.8rem;
    color: rgba(61, 61, 61, 0.55);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(200, 181, 216, 0.35);
}

.variacoes-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.variacao-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 44px;
    gap: 0.75rem;
    background: rgba(245, 230, 211, 0.5);
    border-radius: 16px;
    padding: 0.9rem;
}

.variacao-row input {
    border-radius: 12px;
    border: 1px solid rgba(200, 181, 216, 0.5);
    padding: 0.6rem 0.75rem;
    font: inherit;
    background: var(--color-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.variacao-row input:focus {
    outline: none;
    border-color: var(--color-pink);
    box-shadow: 0 0 0 4px rgba(245, 167, 199, 0.22);
}

.variacao-remove {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(245, 167, 199, 0.3);
    color: var(--color-neutral-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.variacao-remove:hover {
    background: rgba(245, 167, 199, 0.45);
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 26px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 22px 45px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s ease;
    z-index: 1600;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
}

.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    bottom: 50%;
    transform: translateY(50%);
    background: var(--color-white);
    color: var(--color-neutral-dark);
    padding: 0.7rem 1rem;
    border-radius: 14px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(50%) translateX(-6px);
}

.whatsapp-tooltip strong {
    color: var(--color-pink);
}

/* ========== FOOTER ========== */
.footer {
    padding: 3rem 0 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand img {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    padding: 0.4rem;
    background: rgba(245, 167, 199, 0.25);
    object-fit: contain;
}

.footer-brand strong {
    font-size: 1.1rem;
}

.footer-brand span {
    font-size: 0.9rem;
    color: rgba(61, 61, 61, 0.65);
    display: block;
    margin-top: 0.2rem;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.6rem;
    font-size: 0.9rem;
    color: rgba(61, 61, 61, 0.75);
}

.footer-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-note {
    font-size: 0.8rem;
    color: rgba(61, 61, 61, 0.55);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-media {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .container {
        width: calc(100% - 3rem);
    }

    .produtos-header {
        grid-template-columns: 1fr;
    }

    .produtos-header-badges {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .filter-content {
        grid-template-columns: 1fr;
    }

    .produtos-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .header {
        padding-bottom: 3rem;
    }

    .header-card {
        padding: 1.6rem 1.4rem;
        gap: 1.4rem;
    }

    .brand-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
    }

    .brand-copy {
        align-items: flex-start;
    }

    .brand-tagline {
        max-width: none;
    }

    .header-actions {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .hero {
        margin-top: 2rem;
    }

    .hero-media {
        order: -1;
        justify-content: flex-start;
    }

    .main-content {
        margin-top: 0;
    }

    .filter-panel {
        display: block;
        position: fixed;
        inset: 0;
        padding: 1.5rem;
        background: rgba(61, 61, 61, 0.45);
        backdrop-filter: blur(10px);
        z-index: 1100;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(24px) scale(0.96);
        transition: opacity 0.32s ease, transform 0.32s ease, visibility 0.32s ease;
    }

    .filter-panel.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .filter-panel .filter-card {
        max-width: 600px;
        margin: 0 auto;
        max-height: 90vh;
        overflow-y: auto;
        transform: translateY(16px) scale(0.97);
        opacity: 0;
        transition: transform 0.32s ease 0.04s, opacity 0.32s ease 0.04s;
    }

    .filter-panel.open .filter-card {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    .filter-close {
        display: inline-flex;
    }

    .produtos-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.4rem;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-actions {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }

    .produto-modal-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14.5px;
    }

    .container {
        width: calc(100% - 2.4rem);
    }

    .header {
        padding: 1.9rem 0 2.6rem;
    }

    .header-card {
        padding: 1.45rem 1.1rem;
        gap: 1.1rem;
    }

    .brand-block {
        align-items: center;
        text-align: center;
    }

    .brand-logo {
        width: 88px;
        height: 88px;
    }

    .brand-copy {
        align-items: center;
        text-align: center;
    }

    .brand-tagline {
        font-size: 0.82rem;
    }

    .header-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .header-action {
        padding: 0.7rem 0.75rem;
        gap: 0.45rem;
    }

    .header-action i,
    .user-btn i {
        font-size: 0.95rem;
    }

    .header-action span,
    .user-btn span {
        font-size: 0.78rem;
    }

    .cart-count {
        top: 2px;
        right: 4px;
    }

    .header-actions .user-area {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        width: 100%;
    }

    .user-not-logged,
    .user-logged {
        width: 100%;
    }

    .user-btn {
        width: 100%;
        border-radius: 16px;
        padding: 0.7rem 0.75rem;
        gap: 0.45rem;
        font-size: 0.82rem;
    }

    .hero {
        grid-template-columns: 1fr;
        margin-top: 1.6rem;
        gap: 1.4rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        margin-top: 0.9rem;
        max-width: none;
    }

    .hero-tags {
        justify-content: center;
        gap: 0.6rem;
    }

    .hero-tag {
        font-size: 0.76rem;
        padding: 0.5rem 0.85rem;
        box-shadow: none;
    }

    .hero-media {
        order: 2;
        justify-content: center;
    }

    .hero-card {
        width: 100%;
        padding: 1.6rem 1.4rem;
    }

    .hero-card img {
        width: 120px;
        height: 120px;
    }

    .main-content {
        margin-top: 0;
        padding-bottom: 3rem;
    }

    .filter-card {
        padding: 1.6rem 1.4rem;
    }

    .filter-content {
        gap: 1rem;
    }

    .produtos {
        margin-top: 1.8rem;
    }

    .produtos-header {
        padding: 1.6rem;
        gap: 1.1rem;
    }

    .produtos-header-text {
        text-align: center;
    }

    .produtos-header-text p {
        max-width: none;
    }

    .produtos-header-badges {
        width: 100%;
        align-items: stretch;
    }

    .produtos-header-badges span {
        width: 100%;
        justify-content: center;
    }

    .produtos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.2rem;
    }

    .produto-card {
        padding: 0.95rem;
    }

    .produto-info-minimal {
        text-align: left;
    }

    .tamanho-chip {
        font-size: 0.78rem;
        padding: 0.4rem 0.7rem;
    }

    .produto-preco-row {
        align-items: flex-start;
    }

    .produto-tamanhos-inline {
        justify-content: flex-start;
    }

    .cart-sidebar {
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        top: auto;
        border-radius: 24px 24px 0 0;
        transform: translateY(110%) scale(0.96);
        box-shadow: 0 -22px 45px rgba(61, 61, 61, 0.25);
    }

    .cart-sidebar.active {
        transform: translateY(0) scale(1);
    }

    .cart-header {
        padding: 1.3rem 1.2rem;
    }

    .cart-content {
        padding: 1.2rem 1.1rem;
    }

    .checkout-btn {
        padding: 0.85rem;
    }

    :root {
        --modal-vh-offset: 3.5rem;
        --modal-max-height: 560px;
    }

    .produto-modal {
        align-items: center;
        padding: max(1.1rem, env(safe-area-inset-top, 1.1rem)) clamp(0.8rem, 4vw, 1.4rem) max(1.1rem, env(safe-area-inset-bottom, 1.1rem)) clamp(0.8rem, 4vw, 1.4rem);
    }

    .produto-modal-content {
        border-radius: 22px;
        width: min(420px, 92vw);
        padding: 1.2rem 1.1rem;
        overflow-y: auto;
    }

    .produto-modal-image {
        height: min(220px, calc(var(--visual-vh) * 0.34));
        max-height: min(220px, calc(var(--visual-vh) * 0.34));
        width: min(100%, 240px);
        padding: 0.5rem;
    }

    .produto-modal-preco {
        font-size: 1.25rem;
    }

    .variacoes-grid {
        grid-template-columns: 1fr;
    }

    .auth-modal {
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
    }

    .auth-modal-content {
        border-radius: 24px;
        width: min(420px, 100%);
        max-height: calc(100vh - 3rem);
        overflow-y: auto;
        padding: 1.8rem 1.5rem;
    }

    .admin-panel {
        width: 100%;
    }

    .admin-panel-header {
        padding: 1.4rem 1.2rem;
    }

    .admin-form-content {
        padding: 1.4rem 1.2rem 2rem;
    }

    .footer {
        padding: 2.4rem 0 2rem;
    }

    .footer .container {
        gap: 1.4rem;
    }

    .footer-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-meta {
        gap: 0.8rem;
        font-size: 0.85rem;
    }

    .footer-note {
        text-align: center;
    }
}

@media (max-width: 520px) {
    .container {
        width: calc(100% - 1.6rem);
    }

    .brand-logo {
        width: 82px;
        height: 82px;
    }

    .brand-tagline {
        font-size: 0.8rem;
    }
}

@media (max-width: 520px) {
    .brand-tagline {
        font-size: 0.76rem;
    }

    .header {
        padding: 1.6rem 0 2.2rem;
    }

    .header-card {
        gap: 1rem;
    }

    .header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .header-action {
        width: 100%;
        padding: 0.7rem 0.75rem;
        border-radius: 15px;
        gap: 0.4rem;
    }

    .header-action i,
    .user-btn i {
        font-size: 0.92rem;
    }

    .header-action span,
    .user-btn span {
        font-size: 0.76rem;
    }

    .filter-btn {
        order: 1;
    }

    .cart-btn {
        order: 2;
    }

    .header-actions .user-area {
        order: 3;
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        width: 100%;
    }

    .user-btn {
        width: 100%;
        padding: 0.7rem 0.75rem;
        border-radius: 15px;
        gap: 0.4rem;
        font-size: 0.78rem;
    }

    .user-not-logged,
    .user-logged {
        width: 100%;
    }

    .hero-text h1 {
        font-size: 1.85rem;
    }

    .hero-tags {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .hero-tag {
        width: 100%;
        justify-content: center;
    }

    .hero-card {
        padding: 1.4rem;
    }

    .produtos-header {
        padding: 1.4rem;
    }

    .produtos-header-text h2 {
        font-size: 1.55rem;
    }

    .produtos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .produto-card {
        padding: 0.85rem;
    }

    .produto-preco-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .produto-tamanhos-inline {
        justify-content: flex-start;
    }

    .cart-header h3 {
        font-size: 1.05rem;
    }

    .cart-content {
        padding: 1.1rem 1rem;
    }

    .variacao-row {
        grid-template-columns: 1fr;
    }

    .variacao-remove {
        width: 100%;
    }

    .footer {
        padding: 2.3rem 0 1.8rem;
    }

    .footer-meta {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .whatsapp-float {
        right: 12px;
        bottom: 12px;
    }
}

@media (max-width: 420px) {
    .produtos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .produto-card {
        padding: 0.9rem;
    }

    .produto-preco-row {
        gap: 0.45rem;
    }
}

@supports not (aspect-ratio: 1) {
    .produto-image {
        display: block;
        padding: 0;
        padding-top: 125%;
    }

    .produto-image img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* ========== CUSTOM POPUPS ========== */
.custom-popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(61, 61, 61, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
    padding: 1.5rem;
}

.custom-popup.show {
    opacity: 1;
    pointer-events: all;
}

.custom-popup .custom-popup-content {
    background: var(--color-white);
    border-radius: 22px;
    padding: 2rem 2.2rem;
    box-shadow: 0 32px 60px rgba(61, 61, 61, 0.25);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 360px;
    width: min(100%, 360px);
    text-align: center;
}

.custom-popup.info .popup-icon {
    background: rgba(168, 216, 240, 0.3);
    color: var(--color-blue);
}

.custom-popup.success .popup-icon {
    background: rgba(184, 212, 168, 0.35);
    color: var(--color-accent-green);
}

.custom-popup.error .popup-icon {
    background: rgba(245, 167, 199, 0.35);
    color: var(--color-pink);
}

.custom-popup.confirmation .popup-icon {
    background: rgba(245, 231, 211, 0.5);
    color: var(--color-neutral-warm);
}

.popup-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto;
}

.popup-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.popup-message {
    font-size: 0.95rem;
    color: rgba(61, 61, 61, 0.75);
    line-height: 1.5;
}

.popup-message strong {
    display: block;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--color-neutral-dark);
}

.popup-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.popup-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--color-pink), var(--color-lilac));
    color: var(--color-neutral-dark);
}

.popup-btn.secondary {
    background: rgba(168, 216, 240, 0.4);
}

.popup-btn.primary {
    background: linear-gradient(135deg, var(--color-pink), var(--color-lilac));
}

.popup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 35px rgba(200, 181, 216, 0.35);
}

.custom-popup:not(.confirmation) .popup-btn {
    margin-top: 0.5rem;
}

@media (max-width: 420px) {
    .custom-popup .custom-popup-content {
        padding: 1.6rem;
    }

    .popup-buttons {
        flex-direction: column;
    }
}
