/* =========================================
   1. RESET E BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Manrope', sans-serif; 
    color: #000; 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden;
}

.container { 
    max-width: 1500px; 
    margin: 0 auto; 
    padding: 0 40px; 
}

/* =========================================
   2. HEADER
   ========================================= */
.header { 
    height: 90px; 
    border-bottom: 1px solid #eee; 
    background: #fff; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    display: flex; 
    align-items: center; 
}

.header-grid { 
    display: grid; 
    grid-template-columns: 140px 1fr auto; 
    align-items: center; 
    width: 100%; 
}

.header-logo img { width: 140px; display: block; }

.header-nav ul { 
    display: flex; 
    list-style: none; 
    justify-content: center; 
    gap: 25px; 
}

.header-nav a { 
    text-decoration: none; 
    color: #000; 
    font-size: 14px; 
    font-weight: 700; 
    letter-spacing: 0.1em; 
}

.header-icons { display: flex; gap: 20px; align-items: center; }
.header-icons .icon { width: 30px; cursor: pointer; }

.cart-wrapper { position: relative; cursor: pointer; }
.cart-badge { 
    position: absolute; 
    top: -5px; 
    right: -8px; 
    background: #000; 
    color: #fff; 
    font-size: 9px; 
    width: 16px; 
    height: 16px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: 800; 
}

/* =========================================
   3. HERO SLIDER (BANNER PRINCIPAL)
   ========================================= */
.hero-section { margin-top: 50px; margin-bottom: 30px; }

.hero-slider { 
    position: relative; 
    width: 100%; 
    height: 296px; 
    border-radius: 4px; 
    overflow: hidden; 
}

.hero-slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    transition: opacity 0.8s ease-in-out; 
    z-index: 1; 
}

.hero-slide.active { opacity: 1; z-index: 2; }
.hero-img { width: 100%; height: 100%; object-fit: fill; display: block; }

.slider-dots { 
    position: absolute; 
    bottom: 20px; 
    right: 40px; 
    z-index: 10; 
    display: flex; 
    gap: 12px; 
}

.dot { 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    border: 1.5px solid #fff; 
    cursor: pointer; 
}

.dot.active { background: #fff; }

/* =========================================
   4. VITRINE E FILTROS
   ========================================= */
.collection-top-bar { 
    padding: 20px 0; 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
}

.titles h2 { font-size: 15px; font-weight: 800; text-transform: uppercase; }
.titles p { font-size: 13px; color: #666; margin-top: 4px; }

/* AJUSTE NO SELECT DE ORDENAÇÃO */
select.btn-sort {
    appearance: none; /* Remove seta padrão do sistema */
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
    outline: none;
}
.btn-sort { 
    background: #fff; 
    border: 1px solid #d1d1d1; 
    padding: 12px 25px; 
    font-weight: 700; 
    font-size: 14px; 
    border-radius: 8px; 
    cursor: pointer; 
}

/* CAMPO DE PREÇO FILTRO */
.price-input-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
}

.price-input-field:focus {
    outline: none;
    border-color: #000;
}
.collection-layout { 
    display: grid; 
    grid-template-columns: 220px 1fr; 
    gap: 40px; 
    margin-top: 20px; 
}

.filter-block { margin-bottom: 50px; }
.filter-block h3 { font-size: 16px; font-weight: 800; text-transform: uppercase; margin-bottom: 15px; }
.filter-block label { display: block; font-size: 14px; color: #555; margin-bottom: 10px; cursor: pointer; }

/* =========================================
   5. PRODUCT CARD (COM SLIDER E BADGES)
   ========================================= */
.products-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
}

.product-card { position: relative; margin-bottom: 40px; }

.img-wrapper { 
    position: relative; 
    background: #f6f6f6; 
    border-radius: 6px; 
    overflow: hidden; 
    aspect-ratio: 1/1;
}

/* Slider interno do card */
.product-card-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Badges (Lado Direito Superior) */
.badge-container {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 20;
}

.badge-tag {
    background: #e5e7eb;
    border: 1px solid #000;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
    color: #000;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Setas de navegação do card */
.card-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 15;
    opacity: 0;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-card:hover .card-nav-btn { opacity: 1; }
.btn-prev-card { left: 10px; }
.btn-next-card { right: 10px; }

/* Dots lineares do card */
.card-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 8;
    background: rgba(255,255,255,0.4);
    padding: 4px 8px;
    border-radius: 10px;
    opacity: 0;
    transition: 0.3s;
}

.product-card:hover .card-dots { opacity: 1; }

.card-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
}

.card-dot.active { background: #000; width: 12px; border-radius: 4px; }

/* Botão adicionar */
.btn-circle-add { 
    position: absolute; 
    bottom: 15px; 
    right: 15px; 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    background: #000; 
    color: #fff; 
    border: none; 
    font-size: 24px; 
    cursor: pointer; 
    z-index: 10; 
    opacity: 0; 
    transform: translateY(10px); 
    transition: 0.3s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.product-card:hover .btn-circle-add { opacity: 1; transform: translateY(0); }

/* Infos do produto */
.error-msg { 
    color: red; 
    font-family: Arial, sans-serif; 
    font-size: 13px; 
    height: 14px; 
    margin-top: 5px; 
    margin-bottom: 5px; 
    display: none; 
    font-weight: 400; 
}

.prod-info h3 { font-size: 14px; font-weight: 700; margin-top: 10px; }
.prod-info .price { font-weight: 800; font-size: 15px; margin-top: 5px; }

/* Seletores */
.swatches { display: flex; gap: 8px; margin: 12px 0; }
.swatch { 
    width: 18px; 
    height: 18px; 
    border-radius: 50%; 
    border: 1px solid #ddd; 
    cursor: pointer; 
    box-shadow: inset 0 0 0 2px #fff; 
}
.swatch.active { border-color: #000; transform: scale(1.1); }

.size-list { display: flex; gap: 4px; }
.size-item { 
    border: 1px solid #e8e8e8; 
    padding: 4px 6px; 
    font-size: 10px; 
    font-weight: 700; 
    cursor: pointer; 
    border-radius: 2px; 
    min-width: 30px; 
    text-align: center; 
}
.size-item.selected { background: #000; color: #fff; border-color: #000; }

/* =========================================
   6. SIDEBAR DO CARRINHO
   ========================================= */
.cart-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.5); z-index: 1999; display: none; 
}
.cart-overlay.active { display: block; }

.cart-sidebar { 
    position: fixed; top: 0; right: -450px; width: 450px; height: 100%; 
    background: #fff; z-index: 2000; transition: 0.4s ease;
    display: flex; flex-direction: column; 
}
.cart-sidebar.active { right: 0; }

.cart-header { 
    padding: 25px; border-bottom: 1px solid #eee; 
    display: flex; justify-content: space-between; align-items: center; 
}
.cart-title { 
    display: flex; align-items: center; gap: 10px; 
    font-weight: 800; font-size: 14px; letter-spacing: 1px; 
}
.btn-close-cart { background: none; border: none; font-size: 30px; cursor: pointer; }

.cart-content { flex: 1; overflow-y: auto; padding: 25px; }

/* Item no carrinho */
.cart-item { 
    display: grid; 
    grid-template-columns: 80px 1fr; 
    gap: 15px; 
    margin-bottom: 25px; 
    align-items: start; 
    position: relative; 
    padding-right: 30px; /* Garante que o conteúdo não encoste na lixeira */
}

.cart-item img { 
    width: 80px; 
    height: 80px; 
    object-fit: cover; 
    border-radius: 4px; 
}

.cart-item-info h4 { 
    font-size: 13px; 
    font-weight: 700; 
    margin-bottom: 8px; 
    text-transform: uppercase;
}

/* BOTÃO DE REMOVER (LIXEIRA) CORRIGIDO */
.btn-remove { 
    position: absolute; 
    top: 0; 
    right: 0; 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    padding: 5px; /* Aumenta a área de clique sem mover o ícone */
    line-height: 0; /* Remove espaços extras de linha */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove img { 
    width: 15px; 
    height: auto; 
    opacity: 0.5; 
    display: block;
    transition: 0.2s;
}

.btn-remove:hover img {
    opacity: 1;
}

.cart-item-controls { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.cart-select { 
    padding: 4px; border: 1px solid #eee; font-size: 11px; 
    border-radius: 4px; background: #f9f9f9; 
}

.qty-control { 
    display: flex; align-items: center; border: 1px solid #eee; 
    border-radius: 4px; height: 26px; 
}
.qty-control button { width: 22px; height: 100%; border: none; background: none; cursor: pointer; }
.qty-control span { width: 25px; text-align: center; font-size: 11px; font-weight: 700; }

/* Rodapé carrinho */
.cart-footer { padding: 25px; border-top: 1px solid #eee; }
.delivery-box h4 { font-size: 12px; font-weight: 800; margin-bottom: 10px; }
.time-selector { 
    width: 100%; padding: 12px; border: 1px solid #000; 
    border-radius: 4px; font-weight: 700; margin-bottom: 20px;
}

.total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 15px; margin-bottom: 20px; }
.btn-checkout { 
    width: 100%; padding: 18px; background: #000; color: #fff; 
    border: none; font-weight: 800; border-radius: 4px; cursor: pointer; 
}
.btn-continue { 
    width: 100%; margin-top: 15px; background: none; border: none; 
    font-weight: 800; text-decoration: underline; cursor: pointer; font-size: 12px;
}

/* =========================================
   7. FAQ E FOOTER
   ========================================= */
.faq-section { padding: 80px 0; border-top: 1px solid #eee; margin-top: 40px; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 22px; font-weight: 800; text-transform: uppercase; }
.faq-accordion { max-width: 900px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #eee; }
.faq-question { 
    width: 100%; background: none; border: none; padding: 22px 0; 
    display: flex; justify-content: space-between; font-size: 15px; 
    font-weight: 700; cursor: pointer; 
}
.faq-answer { display: none; padding-bottom: 20px; color: #666; font-size: 14px; }

.footer { background: #000; color: #fff; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-logo { width: 120px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-col h4 { font-size: 11px; color: #888; margin-bottom: 25px; text-transform: uppercase; letter-spacing: 2px; }
.footer-col a { color: #ccc; text-decoration: none; display: block; margin-bottom: 12px; font-size: 13px; }
.footer-col input { 
    width: 100%; padding: 12px; background: #111; border: 1px solid #333; 
    color: #fff; border-radius: 4px; margin-bottom: 10px; 
}
.footer-col button { 
    width: 100%; padding: 12px; background: #fff; color: #000; 
    font-weight: 800; border-radius: 4px; cursor: pointer; 
}
.footer-bottom { 
    border-top: 1px solid #1a1a1a; margin-top: 60px; 
    padding-top: 30px; text-align: center; font-size: 11px; color: #444; 
}

/* =========================================
   8. RESPONSIVIDADE
   ========================================= */
@media (max-width: 1024px) {
    .header-nav, .filters-sidebar { display: none; }
    .header-grid { grid-template-columns: 1fr auto; }
    .container { padding: 0 20px; }
    .collection-layout { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .hero-slider { height: 450px; }
    .cart-sidebar { width: 100%; right: -100%; }
}

@media (max-width: 768px) {
    .products-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}