/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/
/* ============================================
   SIDE CART - Custom Styling
   ============================================ */

/* --- Overlay escurecido suave --- */
.elementor-menu-cart__container {
    background-color: rgba(0, 0, 0, 0.4) !important;
    z-index: 99999 !important;
}

/* --- Painel principal do side cart --- */
.elementor-menu-cart__main {
    width: 380px !important;
    max-width: 90vw !important;
    padding: 0 !important;
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15) !important;
    border-radius: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background-color: #fff !important;
}

/* --- Botão fechar (X) --- */
.elementor-menu-cart__close-button {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    left: auto !important;
    z-index: 10 !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    background: #f3f4f6 !important;
    border-radius: 50% !important;
    transition: background 0.2s ease !important;
}
.elementor-menu-cart__close-button:hover {
    background: #e5e7eb !important;
}
.elementor-menu-cart__close-button::before,
.elementor-menu-cart__close-button::after {
    background: #374151 !important;
    width: 55% !important;
    height: 2px !important;
    left: 22.5% !important;
}

/* --- Cabeçalho "Seu Carrinho" --- */
.elementor-menu-cart__main .widget_shopping_cart_content::before {
    content: "Seu Carrinho";
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    letter-spacing: -0.01em;
}

/* --- Container dos produtos --- */
.elementor-menu-cart__products.woocommerce-mini-cart {
    padding: 8px 24px !important;
    max-height: calc(100vh - 260px) !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}
.elementor-menu-cart__products.woocommerce-mini-cart::-webkit-scrollbar {
    width: 4px;
}
.elementor-menu-cart__products.woocommerce-mini-cart::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 4px;
}

/* --- Card de cada produto --- */
.elementor-menu-cart__product.cart_item {
    display: grid !important;
    grid-template-columns: 72px 1fr 28px !important;
    grid-template-rows: auto auto !important;
    gap: 0 12px !important;
    padding: 16px 0 !important;
    padding-inline-end: 0 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    align-items: start !important;
    position: relative !important;
}
.elementor-menu-cart__product.cart_item:last-child {
    border-bottom: none !important;
}

/* --- Imagem do produto --- */
.elementor-menu-cart__product-image {
    grid-row: 1 / 3 !important;
    grid-column: 1 !important;
    width: 72px !important;
    height: 72px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
}
.elementor-menu-cart__product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 9px !important;
}

/* --- Nome do produto --- */
.elementor-menu-cart__product-name {
    grid-column: 2 !important;
    grid-row: 1 !important;
    padding-inline-start: 0 !important;
    margin: 0 !important;
}
.elementor-menu-cart__product-name a {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.elementor-menu-cart__product-name a:hover {
    color: #2563eb !important;
}

/* --- Preço --- */
.elementor-menu-cart__product-price {
    grid-column: 2 !important;
    grid-row: 2 !important;
    padding-inline-start: 0 !important;
    align-self: start !important;
    margin-top: 4px !important;
}
.elementor-menu-cart__product-price .quantity {
    font-size: 13px !important;
    color: #6b7280 !important;
    font-weight: 400 !important;
}
.elementor-menu-cart__product-price .woocommerce-Price-amount {
    font-weight: 700 !important;
    color: #059669 !important;
    font-size: 14px !important;
}
.elementor-menu-cart__product-price .product-quantity {
    color: #9ca3af !important;
    font-weight: 400 !important;
}

/* --- Botão remover --- */
.elementor-menu-cart__product-remove {
    grid-column: 3 !important;
    grid-row: 1 / 3 !important;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    inset-inline-end: auto !important;
    align-self: center !important;
    width: 24px !important;
    height: 24px !important;
    border: none !important;
    border-radius: 6px !important;
    background: #f3f4f6 !important;
    transition: background 0.2s ease !important;
    cursor: pointer !important;
}
.elementor-menu-cart__product-remove:hover {
    background: #fee2e2 !important;
    border: none !important;
}
.elementor-menu-cart__product-remove::before,
.elementor-menu-cart__product-remove::after {
    background: #9ca3af !important;
    width: 50% !important;
    height: 1.5px !important;
    left: 25% !important;
}
.elementor-menu-cart__product-remove:hover::before,
.elementor-menu-cart__product-remove:hover::after {
    background: #ef4444 !important;
}

/* --- Subtotal --- */
.elementor-menu-cart__subtotal {
    padding: 16px 24px !important;
    margin: 0 !important;
    border-width: 1px 0 0 0 !important;
    border-color: #e5e7eb !important;
    border-style: solid !important;
    font-size: 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: left !important;
    background: #f9fafb !important;
}
.elementor-menu-cart__subtotal strong {
    font-weight: 600 !important;
    color: #374151 !important;
    font-size: 15px !important;
}
.elementor-menu-cart__subtotal .woocommerce-Price-amount {
    font-weight: 700 !important;
    color: #059669 !important;
    font-size: 18px !important;
}

/* --- Botões do rodapé --- */
.elementor-menu-cart__footer-buttons {
    padding: 16px 24px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

/* --- Botão "Ver carrinho" --- */
.elementor-menu-cart__footer-buttons .elementor-button--view-cart {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background: #111827 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 14px 20px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.1s ease !important;
    letter-spacing: 0.02em !important;
}
.elementor-menu-cart__footer-buttons .elementor-button--view-cart:hover {
    background: #1f2937 !important;
    transform: translateY(-1px) !important;
}
.elementor-menu-cart__footer-buttons .elementor-button--view-cart:active {
    transform: translateY(0) !important;
}

/* --- ESCONDER botão "Finalização de compra" --- */
.elementor-menu-cart__footer-buttons .elementor-button--checkout {
    display: none !important;
}

/* --- Mensagem de carrinho vazio --- */
.woocommerce-mini-cart__empty-message {
    padding: 40px 24px !important;
    text-align: center !important;
    color: #9ca3af !important;
    font-size: 15px !important;
}

/* --- Mobile ajustes --- */
@media (max-width: 480px) {
    .elementor-menu-cart__main {
        width: 100vw !important;
    }
    .elementor-menu-cart__product.cart_item {
        grid-template-columns: 60px 1fr 24px !important;
    }
    .elementor-menu-cart__product-image {
        width: 60px !important;
        height: 60px !important;
    }
}
