* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --dark: #1a1a1a;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --green: #22c55e;
    --red: #ef4444;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.10), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.10), 0 10px 10px rgba(0,0,0,0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--gray-900);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--dark);
}

.logo span {
    color: var(--primary);
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-bar {
    display: flex;
    background: var(--gray-100);
    border-radius: 999px;
    padding: 0.4rem 0.4rem 0.4rem 1rem;
    align-items: center;
    width: 320px;
    transition: background 0.2s;
}

.search-bar:focus-within {
    background: var(--gray-200);
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
    color: var(--gray-900);
}

.search-bar input::placeholder {
    color: var(--gray-500);
}

.search-bar button {
    background: var(--dark);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* ===== CONTAINER ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #fef3ed 0%, #f8e8dc 100%);
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '👟';
    position: absolute;
    font-size: 20rem;
    opacity: 0.05;
    top: -50px;
    right: -50px;
    transform: rotate(-15deg);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero .highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 999px;
    padding: 0.5rem;
    box-shadow: var(--shadow-xl);
}

.hero-search input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.hero-search button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.2s;
}

.hero-search button:hover {
    background: var(--primary-dark);
}

/* ===== FILTERS BAR ===== */
.filters-bar {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    position: sticky;
    top: 70px;
    z-index: 40;
}

.filters-content {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.5rem;
}

.chip {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===== SECTIONS ===== */
.section {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

/* ===== GRID DE PRODUTOS ===== */
.products-grid {
    grid-template-columns: repeat(var(--grid-columns, 4), minmax(0, 1fr));
    display: grid;
    gap: 1.5rem;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.product-image-wrap {
    position: relative;
    aspect-ratio: 1;
    background: #f9f9f9;
    overflow: hidden;
    border-bottom: 1px solid var(--gray-200);
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.8rem;
    background: #fff;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.badge-novo { background: rgba(34, 197, 94, 0.95); color: #fff; }
.badge-destaque { background: rgba(255, 107, 53, 0.95); color: #fff; }
.badge-esgotado { background: rgba(0,0,0,0.85); color: #fff; }

.product-info {
    padding: 1.2rem;
}

.product-brand {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.3;
    height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0.6rem;
}

.product-sku {
    font-size: 0.7rem;
    color: var(--gray-400);
    margin-bottom: 0.8rem;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.price-new {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gray-900);
}

.price-old {
    font-size: 0.85rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-sizes-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.6rem;
}

.size-mini {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 600;
}

.size-mini.unavail {
    background: transparent;
    color: var(--gray-300);
    text-decoration: line-through;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    padding: 2rem 0 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.gallery {
    position: sticky;
    top: 90px;
}

.gallery-main {
    background: var(--gray-100);
    border-radius: 20px;
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    background: #fafafa;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.thumb {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: var(--gray-100);
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.3rem;
    background: #f5f5f5;
}

.thumb.active,
.thumb:hover {
    border-color: var(--primary);
}

.product-info-detail {
    padding-top: 1rem;
}

.product-info-detail .brand {
    color: var(--gray-500);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-info-detail h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.product-info-detail .sku {
    color: var(--gray-400);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.price-block {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.price-block .price-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.price-big {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
}

.price-installments {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* ===== SIZES SELECTOR ===== */
.sizes-selector {
    margin-bottom: 2rem;
}

.sizes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sizes-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.sizes-counter {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.sizes-counter strong {
    color: var(--green);
}

.sizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 0.6rem;
}

.size-btn {
    padding: 1rem 0.5rem;
    border: 2px solid var(--gray-200);
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.size-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--gray-50);
}

.size-btn.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.size-btn:disabled {
    background: var(--gray-50);
    color: var(--gray-300);
    cursor: not-allowed;
    text-decoration: line-through;
}

.size-status {
    font-size: 0.65rem;
    font-weight: 600;
    margin-top: 0.2rem;
    text-transform: uppercase;
}

.size-btn:not(:disabled) .size-status { color: var(--green); }
.size-btn:disabled .size-status { color: var(--gray-300); }
.size-btn.selected .size-status { color: rgba(255,255,255,0.9); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
    border: none;
    gap: 0.5rem;
}

.btn-whatsapp {
    width: 100%;
    background: var(--green);
    color: #fff;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}

.btn-whatsapp:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

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

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--gray-50);
    border-radius: 16px;
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark);
    color: #fff;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.footer-col p,
.footer-col a {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.8;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.85rem;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .site-header .container {
        padding: 0 1rem;
        height: 60px;
    }
    
    .logo { font-size: 1.2rem; }
    .search-bar { width: 200px; }
    
    .hero { padding: 3rem 0; }
    .hero h1 { font-size: 2rem; letter-spacing: -1px; }
    .hero p { font-size: 1rem; }
    .hero::before { font-size: 10rem; }
    
    .filters-bar { padding: 1rem 0; top: 60px; }
    .filters-content { gap: 0.5rem; }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery { position: relative; top: 0; }
    
    .product-info-detail h1 { font-size: 1.5rem; }
    .price-big { font-size: 2rem; }
    
    .container { padding: 0 1rem; }
    
    .section { padding: 2rem 0; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .hero-search { flex-direction: column; padding: 0.4rem; }
    .hero-search button { padding: 0.8rem 1.5rem; }
    
    .search-bar { display: none; }
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }

/* ===== DARK MODE ===== */
body[data-dark="1"] {
    background: #0f172a;
    color: #e2e8f0;
}
body[data-dark="1"] .site-header {
    background: rgba(15,23,42,0.95);
    border-color: #1e293b;
}
body[data-dark="1"] .product-card {
    background: #1e293b;
    border-color: #334155;
}
body[data-dark="1"] .product-name { color: #f1f5f9; }
body[data-dark="1"] .hero { background: linear-gradient(135deg, #1e293b, #0f172a); }
body[data-dark="1"] .hero h1 { color: #fff; }
body[data-dark="1"] .hero p { color: #94a3b8; }
body[data-dark="1"] .site-footer { background: #020617; }
body[data-dark="1"] .search-bar { background: #1e293b; }
body[data-dark="1"] .search-bar input { color: #fff; }
body[data-dark="1"] .filters-bar { background: #0f172a; border-color: #1e293b; }
body[data-dark="1"] .chip { background: #1e293b; border-color: #334155; color: #e2e8f0; }

/* ===== CARD BORDERS DINÂMICAS ===== */
body[data-card-border="slight"] .product-card { border-radius: 8px; }
body[data-card-border="slight"] .product-image-wrap { border-radius: 8px 8px 0 0; }
body[data-card-border="square"] .product-card { border-radius: 0; }
body[data-card-border="square"] .product-image-wrap { border-radius: 0; }
body[data-card-border="pill"] .product-card { border-radius: 24px; }
body[data-card-border="pill"] .product-image-wrap { border-radius: 24px 24px 0 0; }

/* ===== CARD SHADOW ===== */
body[data-card-shadow="strong"] .product-card { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
body[data-card-shadow="none"] .product-card { box-shadow: none; }

/* ===== BUTTON STYLES ===== */
body[data-btn-style="outline"] .btn-ver {
    background: transparent;
    color: var(--dark, #1a1a1a);
    border: 2px solid var(--dark, #1a1a1a);
}
body[data-btn-style="outline"] .btn-ver:hover {
    background: var(--dark, #1a1a1a);
    color: #fff;
}
body[data-btn-style="pill"] .btn-ver {
    border-radius: 999px;
}

/* ===== FAVORITO BUTTON ===== */
.btn-fav {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: transform 0.2s;
}
.btn-fav:hover { transform: scale(1.2); }

/* ===== SHARE BUTTON ===== */
.btn-share {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: transform 0.2s;
}
.btn-share:hover { transform: scale(1.2); }

/* ===== TOAST ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Departamentos do catálogo unificado */
.department-section{padding-bottom:1rem}.department-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}.department-card{display:flex;min-height:190px;padding:1.5rem;border:1px solid var(--gray-200,#e5e7eb);border-radius:20px;background:#fff;color:var(--dark,#1a1a1a);text-decoration:none;flex-direction:column;align-items:flex-start;gap:.55rem;box-shadow:0 8px 24px rgba(0,0,0,.06);transition:.2s}.department-card:hover{transform:translateY(-4px);border-color:var(--primary)}.department-icon{font-size:2.5rem}.department-card strong{font-size:1.35rem}.department-card span:not(.department-icon){color:#666}.department-card small{margin-top:auto;color:var(--primary);font-weight:700}.catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}.catalog-heading .section-title{margin:0}.department-nav{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin-top:.75rem}.department-nav a{color:inherit;text-decoration:none;font-size:.88rem;font-weight:700;padding:.5rem .8rem;border-radius:999px;background:rgba(255,255,255,.12)}.department-nav a:hover{background:var(--primary);color:#fff}@media(max-width:760px){.department-grid{grid-template-columns:1fr}.department-card{min-height:150px}.catalog-heading{align-items:flex-start;flex-direction:column}}

.badge-unavailable{background:#6b7280!important;color:#fff!important}.product-unavailable-notice{display:flex;align-items:center;justify-content:center;padding:1rem;border-radius:12px;background:#e5e7eb;color:#4b5563;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.product-card:has(.badge-unavailable) .product-image-wrap img{filter:grayscale(.25);opacity:.72}
