/* FERRAMENTAS DA LOJA */

.store-tools {
    margin-bottom: 30px;
}

.search-box {
    width: min(620px,100%);
    height: 54px;

    padding: 0 18px;

    display: flex;
    align-items: center;
    gap: 10px;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: #101010;
}

.search-box input {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;
    color: white;
}

.search-box input::placeholder {
    color: #666;
}

.filters {
    margin-top: 18px;

    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-button {
    padding: 10px 15px;

    border-radius: 999px;

    border: 1px solid var(--border);

    background: #101010;
    color: #aaa;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}

.filter-button.active {
    background: white;
    color: black;
}

/* PRODUTOS */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 17px;
}

.product-card {
    position: relative;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 22px;

    background: var(--card);

    transition: .2s;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(166,82,255,.40);
}

.product-image {
    min-height: 230px;

    display: grid;
    place-items: center;

    background:
        radial-gradient(circle,#292929,#111);

    font-size: 78px;
}

.product-content {
    padding: 22px;
}

.product-category {
    color: var(--purple-light);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.product-content h3 {
    margin: 8px 0;

    font-size: 18px;
}

.product-description {
    min-height: 40px;

    color: #777;

    font-size: 12px;
    line-height: 1.5;
}

.price-area {
    min-height: 28px;

    margin-top: 14px;

    display: flex;
    align-items: center;
    gap: 8px;
}

.price {
    font-size: 17px;
    font-weight: 900;
}

.old-price {
    color: #666;

    font-size: 11px;

    text-decoration: line-through;
}

.product-footer {
    margin-top: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stock {
    color: #777;
    font-size: 10px;
}

.add-product {
    width: 44px;
    height: 44px;

    border-radius: 12px;

    background: white;
    color: black;

    font-size: 22px;
    font-weight: 800;

    cursor: pointer;
}

.add-product:disabled {
    background: #252525;
    color: #666;

    cursor: not-allowed;
}

.soldout {
    position: absolute;

    top: 16px;
    right: 16px;

    padding: 7px 10px;

    border-radius: 999px;

    background: rgba(255,70,70,.90);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1px;
}

/* PROMOÇÕES */

.promotion-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 17px;
}

.promotion-card {
    min-height: 245px;

    padding: 28px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    border: 1px solid var(--border);
    border-radius: 24px;

    background:
        radial-gradient(
            circle at top right,
            rgba(166,82,255,.18),
            transparent 45%
        ),
        #101010;
}

.promotion-card h3 {
    margin: 9px 0;
}

.promotion-card p {
    color: #777;
    font-size: 13px;
}

/* CARRINHO */

.cart-overlay {
    position: fixed;
    inset: 0;

    z-index: 3000;

    display: flex;
    justify-content: flex-end;

    pointer-events: none;

    background: rgba(0,0,0,0);

    transition: .25s;
}

.cart-overlay.active {
    pointer-events: auto;
    background: rgba(0,0,0,.72);
}

.cart-panel {
    width: min(440px,100%);
    height: 100%;

    display: flex;
    flex-direction: column;

    border-left: 1px solid var(--border);

    background: #0b0b0b;

    transform: translateX(100%);

    transition: .25s;
}

.cart-overlay.active .cart-panel {
    transform: translateX(0);
}

.cart-header {
    padding: 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}

.cart-header span {
    color: var(--purple-light);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 2px;
}

.cart-header button {
    width: 39px;
    height: 39px;

    border-radius: 10px;

    background: #181818;
    color: white;

    cursor: pointer;
}

.cart-items {
    flex: 1;

    overflow-y: auto;

    padding: 18px;
}

.empty-cart {
    height: 100%;

    display: grid;
    place-items: center;

    color: #666;

    text-align: center;
}

.cart-item {
    margin-bottom: 11px;
    padding: 16px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: #131313;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.cart-item strong {
    font-size: 13px;
}

.cart-item small {
    color: #777;
}

.cart-controls {
    margin-top: 13px;

    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-controls button {
    width: 33px;
    height: 33px;

    border-radius: 8px;

    background: #222;
    color: white;

    cursor: pointer;
}

.cart-remove {
    margin-left: auto;

    color: #ff7777 !important;

    background: rgba(255,80,80,.10) !important;
}

.cart-footer {
    padding: 20px;

    border-top: 1px solid var(--border);
}

.delivery-area label {
    display: block;

    margin-bottom: 7px;

    color: #999;
    font-size: 11px;
}

.delivery-area select {
    width: 100%;

    padding: 13px;

    border: 1px solid var(--border);
    border-radius: 10px;

    outline: none;

    background: #151515;
    color: white;
}

.cart-total {
    margin: 18px 0 5px;

    display: flex;
    justify-content: space-between;
}

.cart-total span {
    color: #999;
}

.cart-total strong {
    font-size: 19px;
}

.price-warning {
    color: #666;
    line-height: 1.4;
}

.whatsapp-checkout {
    width: 100%;

    margin-top: 17px;
    padding: 16px;

    border-radius: 12px;

    background: var(--green);
    color: #04170a;

    font-weight: 900;

    cursor: pointer;
}

@media (max-width: 1050px) {

    .product-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .promotion-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 600px) {

    .product-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 9px;
    }

    .product-image {
        min-height: 150px;
        font-size: 52px;
    }

    .product-content {
        padding: 14px;
    }

    .product-content h3 {
        font-size: 14px;
    }

    .product-description {
        font-size: 10px;
    }

    .price {
        font-size: 14px;
    }

    .promotion-grid {
        grid-template-columns: 1fr;
    }

}

/* Imagem real do produto */
.product-image img {
    width: 100%;
    height: 230px;
    object-fit: contain;
    padding: 18px;
}

@media (max-width: 600px) {
    .product-image img {
        height: 150px;
        padding: 10px;
    }
}
