/* Premium E-commerce Modern UI */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --background: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', system-ui, -apple-system, sans-serif; }
body { background-color: var(--background); color: var(--text-main); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar { background: var(--white); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; transition: all 0.3s; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 24px; font-weight: 800; color: var(--secondary); letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px; }
.logo span { color: var(--primary); }
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; font-weight: 500; font-size: 15px; }
.nav-links a { color: var(--text-main); transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.cart-btn { background: var(--primary); color: var(--white) !important; padding: 10px 20px; border-radius: 50px; display: flex; align-items: center; gap: 8px; transition: background 0.3s, transform 0.2s; box-shadow: 0 4px 14px 0 rgba(37,99,235,0.39); }
.cart-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Hero Section */
.hero { background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%); color: var(--white); padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -1px; }
.hero p { font-size: 1.2rem; color: #cbd5e1; max-width: 600px; margin: 0 auto 30px; }
.btn-hero { display: inline-block; padding: 15px 35px; background: var(--accent); color: var(--white); font-weight: bold; border-radius: 50px; font-size: 1.1rem; transition: transform 0.2s, box-shadow 0.2s; }
.btn-hero:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4); }

/* Main Content Styles */
.section-title { text-align: center; margin: 60px 0 40px; font-size: 2.2rem; color: var(--secondary); font-weight: 800; }

/* Components: Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; margin-bottom: 60px; }
.product-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.product-img { width: 100%; height: 280px; object-fit: cover; background: #f1f5f9; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.product-info { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.product-title { font-size: 1.25rem; font-weight: 700; color: var(--secondary); margin-bottom: 10px; }
.product-price { font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.btn-details { margin-top: auto; display: block; text-align: center; background: var(--secondary); color: var(--white); padding: 14px; border-radius: 8px; font-weight: 600; transition: background 0.3s; }
.btn-details:hover { background: var(--primary); }

/* Forms & Inputs */
.form-card { background: var(--white); padding: 40px; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); max-width: 600px; margin: 40px auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--secondary); }
.form-control { width: 100%; padding: 12px 15px; border: 2px solid var(--border); border-radius: 8px; font-size: 1rem; transition: border-color 0.3s; }
.form-control:focus { outline: none; border-color: var(--primary); }
.btn-submit { display: block; width: 100%; padding: 15px; background: var(--primary); color: var(--white); border: none; border-radius: 8px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: background 0.3s; }
.btn-submit:hover { background: var(--primary-dark); }

/* Footer */
footer { background: var(--secondary); color: #cbd5e1; padding: 60px 0; margin-top: 80px; }
.footer-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-logo { font-size: 1.5rem; font-weight: bold; color: var(--white); margin-bottom: 20px; }

/* ── Scroll suave global ── */
html { scroll-behavior: smooth; }

/* ── Animações de entrada ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes pulseBorder {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
    50%       { box-shadow: 0 0 0 8px rgba(37,99,235,0); }
}

.animate-fade-up   { opacity: 0; }
.animate-fade-left { opacity: 0; }
.animate-fade-right{ opacity: 0; }
.animate-scale-in  { opacity: 0; }

.animated { animation-duration: 0.65s; animation-fill-mode: both; animation-timing-function: cubic-bezier(.22,.61,.36,1); }
.animated.fade-up    { animation-name: fadeInUp; }
.animated.fade-left  { animation-name: fadeInLeft; }
.animated.fade-right { animation-name: fadeInRight; }
.animated.scale-in   { animation-name: scaleIn; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── Carrossel ── */
.carousel-wrap { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.55s cubic-bezier(.77,0,.175,1); will-change: transform; }
.carousel-slide { min-width: 100%; position: relative; }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.18); backdrop-filter: blur(6px);
    border: 2px solid rgba(255,255,255,0.3); color: #fff;
    width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem;
    cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center;
    transition: background 0.25s, transform 0.25s;
}
.carousel-btn:hover { background: rgba(255,255,255,0.35); transform: translateY(-50%) scale(1.1); }
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }
.carousel-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.carousel-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.45); border: 2px solid rgba(255,255,255,0.7);
    cursor: pointer; transition: all 0.3s;
}
.carousel-dot.active { background: #fff; transform: scale(1.3); }

/* ── Card produto — overlay de foto ── */
.product-card { position: relative; }
.product-img-wrap { position: relative; overflow: hidden; }
.product-img-wrap img,
.product-img-wrap .product-img { transition: transform 0.4s ease; }
.product-img-wrap:hover img,
.product-img-wrap:hover .product-img { transform: scale(1.06); }
.product-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.6) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.35s;
    display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px;
}
.product-img-wrap:hover .product-img-overlay { opacity: 1; }
.product-img-overlay span {
    color: #fff; font-weight: 700; font-size: .9rem; letter-spacing: .5px;
    background: rgba(37,99,235,.8); padding: 6px 18px; border-radius: 50px;
}

/* ── Galeria de produto (thumbnails) ── */
.gallery-main { width: 100%; border-radius: 14px; overflow: hidden; background: #f1f5f9; display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.3s; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb {
    width: 72px; height: 72px; border-radius: 8px; overflow: hidden;
    border: 2px solid var(--border); cursor: pointer; transition: border-color 0.2s, transform 0.2s;
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); transform: scale(1.05); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Seção "Por que SD" ── */
.why-section { padding: 90px 0; background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
    text-align: center; padding: 36px 20px;
    background: var(--background); border-radius: 16px;
    border-bottom: 4px solid transparent;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.why-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: 0 12px 30px rgba(37,99,235,.1); }
.why-icon { font-size: 2.8rem; margin-bottom: 16px; display: block; }
.why-card h3 { font-size: 1rem; font-weight: 700; color: var(--secondary); margin-bottom: 8px; }
.why-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* ── Contador animado ── */
.counter-section { background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 100%); padding: 70px 0; }
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
@media (max-width: 768px) { .counter-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; } }
@media (max-width: 420px) { .counter-grid { grid-template-columns: 1fr 1fr; } }
.counter-item { color: #fff; padding: 10px; }
.counter-number { font-size: 3rem; font-weight: 800; display: block; letter-spacing: -2px; color: var(--accent); }
.counter-label { font-size: .9rem; color: #94a3b8; margin-top: 6px; display: block; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text-muted); margin-bottom: 28px; }
.breadcrumb a { color: var(--primary); font-weight: 500; transition: color .2s; }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb span { color: var(--text-muted); }

/* ── Badge frete grátis ── */
.badge-frete { display: inline-flex; align-items: center; gap: 5px; background: #d1fae5; color: #065f46; font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 50px; }

/* ── Hamburguer mobile ── */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--secondary); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none; position: absolute; top: 80px; left: 0; right: 0;
        background: #fff; flex-direction: column; padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,.1); gap: 0; z-index: 200;
    }
    .nav-links.open { display: flex; }
    .nav-links li { border-bottom: 1px solid var(--border); }
    .nav-links li:last-child { border: none; }
    .nav-links a { display: block; padding: 14px 0; }
    .cart-btn { border-radius: 8px; }
    .hero h1 { font-size: 2.2rem; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .footer-content { grid-template-columns: 1fr; }
}

/* ── Focus acessível ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid var(--primary); outline-offset: 3px;
}

/* ── Skeleton loading ── */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 800px 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 8px;
}

