/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


/* ==========================================
   СТИЛІ КАСТОМНОГО МІНІКОШИКА (NEO-BRUTALISM)
   ========================================== */

/* Кнопка кошика у шапці */
.custom-cart-trigger {
    display: inline-flex;
    align-items: center;
    background-color: #B9F204;
    color: #040763;
    border: 2px solid #040763;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    gap: 10px;
    box-shadow: 3px 3px 0px #040763;
}
.custom-cart-trigger .cart-count {
    background-color: #040763;
    color: #FFFAF4;
    min-width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    padding: 5px;
}

/* Оверлей: вирівнюємо попап праворуч */
.custom-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 7, 99, 0.4);
    z-index: 99999;
    display: flex;
    align-items: stretch;
    justify-content: flex-end; /* Притискаємо панель до правого краю */
}

/* Контейнер кошика (права панель на всю висоту) */
.custom-cart-container {
    background: #FFFAF4;
    width: 100%;
    max-width: 580px;
    height: 100vh;
    border-left: 3px solid #040763;
    box-shadow: -8px 0 0px rgba(4, 7, 99, 0.2);
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-sizing: border-box;
}

input.qty-input-field{
    max-width: 120px;
}

/* Шапка кошика */
.custom-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #040763;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.custom-cart-header h3 {
    font-family: "Unbounded", Sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #040763;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}



.custom-cart-close {
    background: #040763;
    color: #FFFAF4 !important; 
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.custom-cart-close:hover {
    transform: scale(1.05);
}

/* Тіло кошика (список товарів зі скролом) */
.custom-cart-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.custom-cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Картка окремого товару */
.custom-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #ffffff;
    border: 2px solid #040763;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 3px 3px 0px #040763;
    position: relative;
}

.item-thumb img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #040763;
}

.item-details {
    flex: 1;
}

.item-title {
    font-size: 15px;
    font-weight: 800;
    color: #040763;
    margin: 0 0 6px 0;
    line-height: 1.3;
}
.item-title a {
    color: #040763;
    text-decoration: none;
}
.item-title a:hover {
    text-decoration: underline;
}

/* Стилізація мета-атрибутів (наприклад, смак, формат) */
.item-meta-attributes {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
}

/* Рядок дій всередині картки товару (кількість + ціна) */
.item-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

/* Виправлений горизонтальний селектор кількості */
.custom-qty-selector {
    display: flex;
    align-items: center;
    border: 2px solid #040763;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.qty-change-btn {
    background: #B9F204;
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: 900;
    color: #040763;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.qty-change-btn:hover {
    background: #a5dc00;
}

.qty-input-field {
    width: 32px;
    height: 28px;
    text-align: center;
    border: none;
    font-weight: 800;
    color: #040763;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.item-price {
    font-weight: 800;
    color: #040763;
    font-size: 15px;
}

/* Кнопка видалення товару */
.item-remove-btn {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s;
    position: absolute;
    top: 12px;
    right: 12px;
}
.item-remove-btn:hover {
    transform: scale(1.15);
}

/* Футер кошика (Загальна сума та кнопки переходів) */
.custom-cart-footer-actions {
    border-top: 2px solid #040763;
    padding-top: 18px;
    margin-top: 15px;
    background: #FFFAF4;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 900;
    color: #040763;
    margin-bottom: 15px;
}

.cart-buttons-wrapper {
    display: flex;
    gap: 12px;
}

.btn-view-cart {
    flex: 1;
    background: #ffffff;
    color: #040763;
    border: 2px solid #040763;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 3px 3px 0px #040763;
    transition: transform 0.1s, box-shadow 0.1s;
}
.btn-view-cart:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #040763;
}

.btn-checkout {
    flex: 1;
    background: #B9F204; /* Фірмовий салатовий акцент */
    color: #040763;
    border: 2px solid #040763;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 3px 3px 0px #040763;
    transition: transform 0.1s, box-shadow 0.1s;
}
.btn-checkout:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #040763;
}

/* Стан, коли кошик порожній */
.custom-cart-empty {
    text-align: center;
    padding: 40px 0;
    font-weight: 800;
    color: #040763;
    font-size: 16px;
}














/* Рекламний зелений маркер у мінікошику */
.cart-promo-banner {
    background-color: #B9F204;
    border: 2px solid #040763;
    border-radius: 12px;
    padding: 12px 14px;
    color: #040763;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    box-shadow: 3px 3px 0px #040763;
}

/* Блок підсумків */
.cart-totals-breakdown {
    border-top: 2px dashed #040763;
    padding-top: 12px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #040763;
    font-weight: 600;
}

.cart-total-line.discount-line {
    color: #5247E1;
    font-weight: 700;
}

.cart-total-line.final-total {
    font-size: 18px;
    font-weight: 900;
    border-top: 2px solid #040763;
    padding-top: 8px;
    margin-top: 4px;
}

/* Повністю ховаємо стандартне посилання "Переглянути кошик" від WooCommerce під кнопкою */
.products .added_to_cart, 
.elementor-loop-container .added_to_cart,
.elementor-grid .added_to_cart {
    display: none !important;
}
.custom-quick-buy-btn{
    font-family: "Manrope", Sans-serif !important;
    background-color: #040763 !important;
    border-radius: 10000px !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1em !important;
    font-weight: 700 !important;
    padding: 10px 14px 11px!important;
    width: 100%;
}

/* Стиль для активної кнопки, коли товар вже додано */
.ajax_add_to_cart.in-cart,
.product_type_simple.in-cart {
    background-color: #5247E1 !important; /* Можете змінити на свій фірмовий колір */
    color: #FFFAF4 !important;
}

/* Перевизначаємо стилі для кнопки видалення товару в мінікошику */
.custom-cart-item .item-remove-btn {
    background: #ffffff !important; /* Білий фоновий колір замість рожевого */
    border: 2px solid #040763 !important; /* Фірмова темна рамка */
    border-radius: 8px !important;
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #040763 !important; 
    transition: transform 0.1s, box-shadow 0.1s, background 0.1s !important;
}

.custom-cart-item .item-remove-btn:hover {
    background: #B9F204 !important; 
    transform: translate(-1px, -1px) !important;
    box-shadow: 3px 3px 0px #040763 !important;
}

.custom-cart-item .item-remove-btn svg {
    stroke: currentColor !important;
}


button:hover, 
button:focus, 
[type="button"]:hover, 
[type="button"]:focus, 
[type="submit"]:hover, 
[type="submit"]:focus {
    background-color: #B9F204 !important; 
    color: #040763 !important;
    outline: none !important;
    box-shadow: 2px 2px 0px #040763 !important; 
}










/* ==========================================
   СТИЛІЗАЦІЯ ФІЛЬТРА  
   ========================================== */

/* Контейнер фільтра */
.elementor-widget-taxonomy-filter .e-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

/* Зовнішній вигляд кожної кнопки-пілюлі */
.elementor-widget-taxonomy-filter .e-filter-item {
    background-color: #ffffff !important;
    border: 2px solid #040763 !important;
    border-radius: 50px !important; /* Кругла пілюля */
    padding: 10px 24px !important;
    color: #040763 !important;
    font-family: 'Manrope', sans-serif !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    box-shadow: 2px 2px 0px #040763 !important;
    cursor: pointer !important;
    transition: transform 0.1s, box-shadow 0.1s, background-color 0.1s !important;
}

/* Ефект при наведенні */
.elementor-widget-taxonomy-filter .e-filter-item:hover {
    transform: translate(-1px, -1px) !important;
    box-shadow: 3px 3px 0px #040763 !important;
    background-color: #FFFAF4 !important;
}

/* Активна кнопка (коли вона натиснута / `aria-pressed="true"`) у фірмовому салатовому стилі */
.elementor-widget-taxonomy-filter .e-filter-item[aria-pressed="true"] {
    background-color: #B9F204 !important;
    box-shadow: 2px 2px 0px #040763 !important;
    transform: none !important;
}





