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

html{scroll-behavior:smooth;}
html, body{
    background:var(--bg);
    z-index:999999;
}
body{
  font-family:'Inter', sans-serif;
  color:var(--text);
  overflow-x:hidden;
  margin-bottom:150px;  
}

/* =========================================
   ROOT COLORS
========================================= */
:root{
  --primary:#d97706;
  --primary-dark:#92400e;
  --secondary:#14532d;
  --bg:#0f172a;
  --card:#111827;
  --card-2:#1f2937;
  --text:#f8fafc;
  --muted:#94a3b8;
  --danger:#ef4444;
  --warning:#facc15;
  --success:#22c55e;
  --border:rgba(255,255,255,.08);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:18px;
}

/* =====  HEADER ======== */
.header{
  position:sticky;
  top:0;
  z-index:100;
  background: rgba(15,23,42,.96);
  backdrop-filter:blur(16px);
  padding:1rem;
  border-bottom: 1px solid var(--border);
}
.header-content,
.categories-scroll,
.logo-area h1{
  font-size:1.3rem;
  font-weight:800;
}
.logo-area p{
  font-size:.75rem;
  color:var(--muted);
  margin-top:.2rem;
}
.header-actions{
  display:flex;
  gap:.7rem;
  margin-top:1rem;
  align-items:center;
}
.search-box{
  flex:1;
}
.search-box input{
  width:100%;
  background:var(--muted);
  border: 1px solid var(--border);
  color:white;
  padding:.9rem;
  border-radius:14px;
  outline:none;
  transition:.3s;
}
.search-box input:focus{
  border-color:var(--primary);
  box-shadow: 0 0 0 3px rgba(217,119,6,.2);
}
.view-buttons{
  display:flex;
  gap:.5rem;
}
.view-btn,
.cart-button{
  border:none;
  cursor:pointer;
  background:var(--card);
  color:white;
  padding:.85rem 1rem;
  border-radius:14px;
  transition:.3s;
}
.view-btn:hover,
.cart-button:hover{
  background:var(--primary);
}
.view-btn.active{
  background:var(--primary);
}

/* ====== CATEGORIAS ========= */
.categories-wrapper{
  padding:1rem;
}
.categories-scroll{
  display:flex;
  gap:.8rem;
  overflow-x:auto;
  scrollbar-width:none;
}
.categories-scroll::-webkit-scrollbar{
  display:none;
}
.category-btn{
  border:none;
  white-space:nowrap;
  background:var(--card);
  color:white;
  padding:.7rem 1rem;
  border-radius:999px;
  cursor:pointer;
  transition:.3s;
}
.category-btn:hover{
  background:var(--primary-dark);
}
.category-btn.active{
  background:var(--primary);
}

/* ======= PRODUTOS ========== */
.products{
    width: 100%;
    margin: 0 auto;
    padding:1rem;
    display:grid;
    gap:1rem;
}

/* MOBILE */
.grid-view{
    grid-template-columns:repeat(2,1fr);
}

/* TABLET */
@media(min-width:768px){
    .grid-view{
        grid-template-columns:repeat(4,1fr);
    }
}

/* DESKTOP */
@media(min-width:1200px){
    .grid-view{
        grid-template-columns:repeat(6,1fr);
    }
    .products{
        max-width: 1200px;
        width: 100%;
    }
    main{
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
    }
}

/* ======  CARD PRODUTO ======== */
.product-card{
    background: linear-gradient( 180deg, var(--card), var(--card-2) );
    border-radius:var(--radius);
    overflow:hidden;
    border: 1px solid var(--border);
    box-shadow:var(--shadow);
    transition: opacity .5s ease, transform .5s ease, scale .5s ease;
}
.product-card:hover{
    transform:translateY(-4px);
}

/* ANIMAÇÕES FILTRO */
.product-card.hide{
    opacity:0;
    transform:translateY(20px);
    scale:.96;
    pointer-events:none;
}
.product-card.show{
    opacity:1;
    transform:translateY(0);
    scale:1;
}

/* ===== IMAGEM ========= */
.product-image{
    aspect-ratio:1/1;
    overflow:hidden;
}
.product-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.5s;
}
.product-card:hover .product-image img{
    transform:scale(1.05);
}

/* ===== CONTEÚDO ========== */
.product-content{
	width: 100%;
    padding:.8rem;
}
.product-category{
    font-size:.7rem;
    color:var(--primary);
    font-weight:600;
}
.product-content h3{
    font-size:.9rem;
    margin:.4rem 0;
    line-height:1.3;
}
.product-content p{
    font-size:.75rem;
    color:var(--muted);
    line-height:1.4;
}
.product-footer{
    margin-top:.8rem;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:.5rem;
}
.product-footer strong{
    font-size:.85rem;
}
.add-cart{
    border:none;
    cursor:pointer;
    background:var(--primary);
    color:white;
    padding:.6rem .8rem;
    border-radius:10px;
    font-size:.75rem;
    transition:.3s;
}
.add-cart:hover{
    background:var(--primary-dark);
    transform:translateY(-2px);
}

/* ======= LIST VIEW =========== */
.products.list-view{
    display:flex;
    flex-direction:column;
    gap:1rem;
}
.products.list-view .product-card{
    display:flex;
    align-items:stretch;
    overflow:hidden;
}
.products.list-view .product-image{
    width:120px;
    min-width:120px;
    align-self:stretch;
    display:flex;
}
.products.list-view .product-image img{
    width:100%;
    height:100%;
	min-height:100%;
    object-fit:cover;
	display:block;
}
.product-footer{
	display: flex;
	justify-content: space-between;
}

/* ====== TOAST ========== */
.toast{
    position:fixed;
    top:20px;
    right:20px;
    background:var(--primary);
    border:1px solid var(--border);
    padding:1rem;
    border-radius:14px;
    display:none;
    align-items:center;
    gap:1rem;
    z-index:9999;
    box-shadow:var(--shadow);
    animation:toastShow .3s ease;
}
@keyframes toastShow{
    from{
        opacity:0;
        transform:translateY(-10px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* ======= OVERLAY ========== */
.overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:998;
}
.overlay.active{
    opacity:1;
    visibility:visible;
}

/* ======= CARRINHO =========== */
.cart-sidebar{
    position:fixed;
    top:0;
    right:-450px;
    width:100%;
    max-width:420px;
    height:100vh;
    background:var(--card);
    z-index:1000;
    display:flex;
    flex-direction:column;
    transition:.4s ease;
}
.cart-sidebar.active{
    right:0;
}
.cart-header{
    padding:1rem;
    border-bottom:1px solid var(--border);
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.cart-header h2{
    font-size:1rem;
}
.cart-header button{
    background:none;
    border:none;
    color:white;
    font-size:1.2rem;
    cursor:pointer;
}

/* ==== ITENS CARRINHO ======== */
.cart-items{
    flex:1;
    overflow-y:auto;
    padding:1rem;
    display:flex;
    flex-direction:column;
    gap:1rem;
}
.cart-item{
    background:var(--card-2);
    border-radius:14px;
    padding:.8rem;
    display:flex;
    gap:.8rem;
    animation:slideUp .4s ease;
}

@keyframes slideUp{
    from{
        transform:translateY(30px);
        opacity:0;
    }

    to{
        transform:translateY(0);
        opacity:1;
    }
}

.cart-item img{
    width:70px;
    height:70px;
    object-fit:cover;
    border-radius:12px;
}
.cart-item h4{
    font-size:.8rem;
    line-height:1.3;
}
.cart-item p{
    font-size:.75rem;
    color:var(--muted);
    margin-top:.3rem;
}
.qty-controls{
    margin-top:.5rem;
    display:flex;
    align-items:center;
    gap:.5rem;
}
.qty-controls button{
  width:26px;
  height:26px;
  border:none;
  border-radius:8px;
  cursor:pointer;
  background:var(--primary);
  color:white;
  transition:.3s;
}
.qty-controls button:hover{
  background:var(--primary-dark);
}

/* =======  FOOTER CARRINHO ========= */
.cart-footer{
  position:sticky;
  bottom:0;
  background:var(--card);
  border-top: 1px solid var(--border);
  padding:1rem;
  display:flex;
  flex-direction:column;
  gap:.8rem;
}

/* ====== FRETE =========== */
.shipping-header{
  display:flex;
  justify-content:space-between;
  font-size:.75rem;
  margin-bottom:.4rem;
}
.progress-bar{
  height:10px;
  background:#1e293b;
  border-radius:999px;
  overflow:hidden;
}
.progress-fill{
  height:100%;
  width:0%;
  background:red;
  transition:.4s;
}

/* ====== INPUTS ========== */
.coupon-area input,
.shipping-calc select{
  width:100%;
  background:var(--card-2);
  border:none;
  padding:.8rem;
  border-radius:12px;
  color:white;
  outline:none;
}

/* =====  TOTAL =========== */
.cart-total{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.cart-total span{
  font-size:.85rem;
}
.cart-total strong{
  font-size:1rem;
}

/* ====== BOTÕES ========== */
.cart-actions{
  display:flex;
  gap:.8rem;
}
.primary-btn,
.secondary-btn,
.share-btn{
  border:none;
  cursor:pointer;
  border-radius:12px;
  padding:.9rem;
  font-weight:600;
  transition:.3s;
}
.primary-btn{
  flex:1;
  background:var(--primary);
  color:white;
}
.primary-btn:hover{
  background:var(--primary-dark);
}
.secondary-btn{
  background:#1e293b;
  color:white;
}
.secondary-btn:hover{
  background:#334155;
}
.share-btn{
  background:var(--secondary);
  color:white;
}
.share-btn:hover{
  filter:brightness(1.1);
}

/* ====== RESPONSIVO EXTRA ========= */
@media(max-width:480px){
  .header-actions{
    gap:.5rem;
  }
  .view-btn,
  .cart-button{
    padding:.8rem;
  }
  .products.list-view .product-image{
    width:110px;
    min-width:110px;
  }
  .product-content h3{
    font-size:.85rem;
  }
  .product-content p{
    font-size:.7rem;
  }
}



/* ======== FOOTER =========== */
.main-footer {
    width: 100%;
    padding: 3rem 1.5rem;
    box-sizing: border-box;
}

/* Container Principal com Grid Responsivo */
.main-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Estilização dos Blocos */
.main-footer .footer-brand,
.main-footer .social-link,
.main-footer .politicas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Títulos */
.main-footer h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Textos e Parágrafos */
.main-footer p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Ícones Sociais */
.main-footer .social-link-i {
    display: flex;
	justify-content: space-evenly;
    font-size: 1.5rem;
	transition:0.3s;
}

.main-footer .social-link-i i {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.main-footer .social-link-i i:hover {
    transform: translateY(-3px);
	transition:0.3s;
}

/* Links de Políticas */
.main-footer .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.main-footer .footer-links a {
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
	color:var(--text);
}

.main-footer .footer-links a:hover,
.main-footer .social-link-i i:hover{
    opacity: 0.8;
	color:var(--primary);
}

/* Tablets (Até 992px) */
@media (max-width: 992px) {
    .main-footer .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .main-footer .footer-brand {
        grid-column: span 2;
    }
}

/* Smartphones (Até 576px) */
@media (max-width: 576px) {
    .main-footer {
        padding: 2rem 1rem;
    }

    .main-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .main-footer .footer-brand {
        grid-column: span 1;
    }

    .main-footer .social-link-i {
        justify-content: center;
    }
}


/* ======= DEVELOPER BAR ========== */
.developer-bar {
    position: fixed;
    display: flex;
    align-items: center;
    bottom: 0;
    left: 0;
	padding: 20px;
    width: 100%;
    height: 150px;
    font-size: .8rem;
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, .08);
    z-index: -1;
}
.developer-bar a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: .3px;
    transition: .3s;
}
.developer-bar a:hover {
    color: var(--success);
}
.developer-container{
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}
.developer, .cta-dev{
    width: 100%;
    text-align: center;
    padding: 10px 0px;
}

.developer-buttons{
    display: flex;
    justify-content: center;
    gap:50px;
}
.cta-dev a{
    display: flex;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    color: #fff;
    background: var(--secondary);

}
.cta-dev a:hover{
    background: var(--success);
    color:#000;
}
.cta-dev h3 {
    font-size: 0.85rem;
    font-weight: 200;
    margin-bottom: 15px;
}








