/* ===================================================
   RESET E BASE
   =================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================================
   HEADER
   =================================================== */

.header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ===================================================
   BOTÕES (GLOBAL)
   =================================================== */

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
}

.btn-primary {
    background: #8C04A4;
    color: #fff;
}

.btn-primary:hover {
    background: #6B0381;
}

/* ===================================================
   PRODUTOS — PADRÃO DO SITE (NÃO HOME)
   =================================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.product-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    transition: transform .2s ease;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.badge-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #8C04A4, #e74c3c);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(140, 4, 164, 0.3);
}

.badge-category i {
    font-size: 10px;
}

.product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-card:hover .product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.btn-action {
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
    text-decoration: none;
}

.btn-action:hover {
    background: #8C04A4;
    color: white;
    transform: scale(1.1);
}

.product-hover {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity .2s ease;
}

.product-card:hover .product-hover {
    opacity: 1;
}

.btn-cart,
.btn-detail {
    border: none;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s ease;
}

.btn-cart {
    background: #27ae60;
    color: #fff;
}

.btn-cart:hover {
    background: #229954;
    transform: translateY(-1px);
}

.btn-detail {
    background: #fff;
    color: #2c3e50;
}

.btn-detail:hover {
    background: #f1f3f5;
    transform: translateY(-1px);
}

.product-card .product-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-card .product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-card .product-description {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px 0;
    line-height: 1.4;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.product-rating .stars {
    display: flex;
    gap: 2px;
    color: #ffa500;
    font-size: 14px;
}

.product-rating .rating-count {
    font-size: 12px;
    color: #999;
}

.product-card .product-prices {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-card .price-old {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.product-card .price-current {
    font-size: 18px;
    font-weight: 700;
    color: #8C04A4;
}

.product-card .product-installments {
    margin-top: 6px;
    font-size: 11px;
    color: #9aa0a6;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.product-card .product-installments i {
    font-size: 10px;
}

/* ===================================================
   HOME — ISOLADO (SEM CONFLITOS)
   =================================================== */

.home-products {
    padding: 60px 0;
}

.home-products .section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.home-products .section-head h2 {
    font-size: 26px;
    font-weight: 600;
}

.home-products .section-head a {
    font-size: 14px;
    color: #8C04A4;
    text-decoration: none;
}

/* GRID DA HOME */
.home-products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 0;
}

/* CARD DA HOME */
.home-products .product-card {
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.home-products .product-image {
    aspect-ratio: 3/4;
}

.home-products .product-info {
    text-align: center;
}

.home-products .product-info h3 {
    font-size: 15px;
}

.home-products .product-price {
    margin: 8px 0 12px;
}

/* CARROSSEL HOME */
.home-products .products-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.home-products .carousel-item {
    min-width: 260px;
}

/* ===================================================
   BADGES E AÇÕES
   =================================================== */

.tag-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    background: rgba(233,30,99,.95);
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 5;
}

.cart-bubble {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: #fff;
    color: #333;
    padding: 8px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    text-decoration: none;
    transition: transform .15s ease;
}

.cart-bubble:hover {
    transform: translateY(-3px);
}

/* ===================================================
   INSTAGRAM HOME
   =================================================== */

.home-instagram {
    padding: 50px 0;
    background: #fff;
}

.insta-grid {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.insta-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

/* ===================================================
   RESPONSIVO
   =================================================== */

@media (max-width: 900px) {
    .home-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .home-products .products-grid {
        grid-template-columns: 1fr;
    }

    .insta-item img {
        width: 120px;
        height: 120px;
    }
}


