/*
 * HorecaDepot CSS migration.
 * Source of truth: local WoodMart Theme Settings backup dated 2026-07-14.
 * Structural migration only; declarations and selectors are preserved.
 */

/* ============================================================
   🛒 HORECA DEPOT - GLOBAL DARK LUXURY SIDE CART 
   (За Десктоп и Мобилен)
   ============================================================ */

/* 1. ГЛАВЕН КОНТЕЙНЕР НА КОЛИЧКАТА */
.cart-widget-side {
    background-color: #131921 !important; /* Тъмносинята база */
    color: #ffffff !important;
}

/* Скролбарът да е тънък и златен */
.cart-widget-side .shopping-cart-widget-body::-webkit-scrollbar {
    width: 4px !important;
}
.cart-widget-side .shopping-cart-widget-body::-webkit-scrollbar-thumb {
    background: rgba(253, 185, 19, 0.5) !important;
    border-radius: 4px !important;
}

/* 2. ГОРНА ЛЕНТА (HEADER) */
.cart-widget-side .wd-heading {
    background-color: #0c0f14 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 20px !important;
}

.cart-widget-side .wd-heading .title {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Бутонът за затваряне (Х) горе вдясно */
.cart-widget-side .close-side-widget a {
    color: rgba(255,255,255,0.4) !important;
    font-weight: 600 !important;
    transition: color 0.3s ease !important;
}

.cart-widget-side .close-side-widget a:hover {
    color: #fdb913 !important;
}

/* 3. ПРОДУКТИТЕ В КОЛИЧКАТА */
.cart-widget-side ul.woocommerce-mini-cart {
    padding: 0 !important;
    margin: 0 !important;
}

.cart-widget-side li.woocommerce-mini-cart-item.mini_cart_item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    padding: 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    position: relative !important;
    background: transparent !important;
    transition: background 0.3s ease !important;
}

.cart-widget-side li.woocommerce-mini-cart-item.mini_cart_item:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

/* Снимката на продукта */
.cart-widget-side li.woocommerce-mini-cart-item .cart-item-image img {
    width: 65px !important;
    height: 65px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Информация за продукта (Текст) */
.cart-widget-side li.woocommerce-mini-cart-item .cart-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding-right: 25px !important; /* Място за хиксчето */
}

.cart-widget-side li.woocommerce-mini-cart-item .wd-entities-title {
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

/* SKU номер */
.cart-widget-side li.woocommerce-mini-cart-item .wd-product-sku {
    color: rgba(255, 255, 255, 0.3) !important;
    font-size: 10px !important;
    margin-top: -3px !important;
}

/* Бутонът за изтриване на продукт (Червеният X) */
.cart-widget-side li.woocommerce-mini-cart-item a.remove_from_cart_button {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 26px !important;
    height: 26px !important;
    background: rgba(255, 60, 60, 0.1) !important;
    color: #ff4d4d !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 16px !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}

.cart-widget-side li.woocommerce-mini-cart-item a.remove_from_cart_button:hover {
    background: #ff4d4d !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

/* 4. ЦЕНИ И КОЛИЧЕСТВА */
.cart-widget-side .cart-info > .quantity {
    color: #fdb913 !important; /* Главно златно */
    font-size: 13px !important;
    font-weight: 700 !important;
    margin-top: 5px !important;
}

.cart-widget-side .cart-info .amount-bgn {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}

/* Бутоните + / - за количество */
.cart-widget-side .cart-info div.quantity {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin-top: 8px !important;
}

.cart-widget-side .cart-info input.qty {
    background: #0c0f14 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    width: 35px !important;
    height: 28px !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.cart-widget-side .cart-info .minus, 
.cart-widget-side .cart-info .plus {
    background: #232F3E !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 5. ФУТЪР - СУМА И БУТОНИ */
.cart-widget-side .shopping-cart-widget-footer {
    background: #0c0f14 !important;
    padding: 20px !important;
    border-top: 2px solid rgba(253, 185, 19, 0.3) !important; /* Тънка златна линия */
}

/* Междинна сума */
.cart-widget-side .woocommerce-mini-cart__total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    color: #ffffff !important;
    font-size: 14px !important;
    margin-bottom: 15px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1) !important;
}

.cart-widget-side .woocommerce-mini-cart__total .amount {
    color: #fdb913 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
}
/* ============================================================
   🛒 HORECA DEPOT - FIXED GRID (100% Top + 50/50 Bottom)
   ============================================================ */

.shopping-cart-widget-footer .woocommerce-mini-cart__buttons.buttons {
    display: grid !important;
    /* Налагаме две равни колони */
    grid-template-columns: repeat(2, 1fr) !important; 
    /* Дефинираме редовете - първият е автоматичен, вторият също */
    grid-template-rows: auto auto !important; 
    gap: 10px !important;
    width: 100% !important;
    padding: 0 !important;
    margin-top: 20px !important;
    /* Спираме всякакви опити на темата да ги държи на един ред */
    flex-wrap: wrap !important;
    white-space: normal !important; 
}

/* ОБЩ СТИЛ ЗА БУТОНИТЕ */
.shopping-cart-widget-footer .woocommerce-mini-cart__buttons.buttons a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    margin: 0 !important;
    width: 100% !important;
}

/* --- БУТОН 1: ПРЕГЛЕД (НАЙ-ГОРЕ - 100%) --- */
.shopping-cart-widget-footer .woocommerce-mini-cart__buttons a.btn-cart {
    /* ЗАДЪЛЖИТЕЛНО: Заема и двете колони */
    grid-column: 1 / -1 !important; 
    grid-row: 1 !important;
    background: #1e293b !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

/* --- БУТОН 2: БЪРЗА ПОРЪЧКА (ЛЯВО) --- */
.shopping-cart-widget-footer .woocommerce-mini-cart__buttons a.horeca-qo-mini-btn {
    grid-column: 1 !important;
    grid-row: 2 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* --- БУТОН 3: ПЛАЩАНЕ (ДЯСНО - ЖЪЛТ) --- */
.shopping-cart-widget-footer .woocommerce-mini-cart__buttons a.checkout {
    grid-column: 2 !important;
    grid-row: 2 !important;
    background: #fdb913 !important;
    color: #131921 !important;
    border: none !important;
}

/* ХОВЪР ЕФЕКТИ */
.shopping-cart-widget-footer .woocommerce-mini-cart__buttons a:hover {
    filter: brightness(1.2) !important;
    transform: translateY(-2px) !important;
}

/* МАХАНЕ НА СТРЕЛКИТЕ НА WOODMART */
.shopping-cart-widget-footer .woocommerce-mini-cart__buttons a::after {
    display: none !important;
}
/* ============================================================
   📱 МОБИЛНА ОПТИМИЗАЦИЯ (Под 768px)
   Лек тунинг, за да не е твърде претъпкано на телефон
   ============================================================ */
@media (max-width: 768px) {
    .cart-widget-side li.woocommerce-mini-cart-item.mini_cart_item {
        padding: 15px 12px !important; /* Малко по-прибрано */
    }
    
    .cart-widget-side li.woocommerce-mini-cart-item .cart-item-image img {
        width: 55px !important; /* Леко намаляваме снимката */
        height: 55px !important;
    }
    
    .cart-widget-side li.woocommerce-mini-cart-item a.remove_from_cart_button {
        top: 10px !important; /* Местим хикса малко по-навътре */
        right: 10px !important;
    }
    
    .cart-widget-side .shopping-cart-widget-footer {
        padding: 15px !important;
    }
}
/* ============================================================
   💰 HORECA DEPOT - ALL PRICES GOLD FIX
   ============================================================ */

/* 1. Цената при всеки отделен продукт */
.cart-widget-side .mini_cart_item .quantity .amount,
.cart-widget-side .mini_cart_item .quantity .amount bdi,
.cart-widget-side .mini_cart_item .quantity .woocommerce-Price-currencySymbol {
    color: #fdb913 !important;
    opacity: 1 !important;
}

/* 2. Общата (Междинна) сума най-отдолу */
.cart-widget-side .woocommerce-mini-cart__total .amount,
.cart-widget-side .woocommerce-mini-cart__total .amount bdi,
.cart-widget-side .woocommerce-mini-cart__total .woocommerce-Price-currencySymbol {
    color: #fdb913 !important;
    font-weight: 900 !important; /* Правим сумата по-дебела за акцент */
}

/* 3. Премахваме сивия цвят от наклонената черта и левовете, за да е всичко жълто */
.cart-widget-side .amount-bgn,
.cart-widget-side .amount-bgn bdi {
    color: #fdb913 !important;
    opacity: 1 !important;
}
