/* ==========================================================================
   UI KIT: FLATSOME GLOBALS (THEME OVERRIDES)
   Прилагане на бранд цветовете, заоблянията и лайтбоксовете върху Flatsome
   ========================================================================== */

/* 1. LINKS & WIDGET LINKS (Точка 3) */
a {
    color: var(--fiptec-blue);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--fiptec-blue-hover);
}

.widget a {
    color: var(--fiptec-slate-600) !important;
}
.widget a:hover {
    color: var(--fiptec-blue) !important;
}

/* 2. TOOLTIPS (Точка 3) */
.tooltip-inner {
    background-color: var(--fiptec-slate-900) !important;
    color: var(--fiptec-white) !important;
    font-family: var(--font-primary) !important;
    font-weight: var(--fw-bold) !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
}
/* Стрелката на тултипа */
.tooltip.top .tooltip-arrow { border-top-color: var(--fiptec-slate-900) !important; }
.tooltip.bottom .tooltip-arrow { border-bottom-color: var(--fiptec-slate-900) !important; }

/* 3. SHOP COLORS (Точка 4) */
/* Звезди от ревюта */
.star-rating span::before, 
.star-rating::before,
.woocommerce-product-rating .star-rating {
    color: var(--fiptec-yellow) !important;
}

/* Стара цена (Regular Price) */
del, del .amount {
    color: var(--fiptec-slate-400) !important;
    text-decoration: line-through !important;
}

/* Нова цена (Sale Price) */
ins, ins .amount, .price > .amount, .price {
    color: var(--fiptec-red-dark) !important;
    font-weight: var(--fw-black) !important;
    text-decoration: none !important;
}

/* Flatsome Баджове (Sale, New, Custom) */
.badge-inner.on-sale { background-color: var(--fiptec-red-dark) !important; border: none !important; color: white !important;}
.badge-inner.new-bubble { background-color: var(--fiptec-blue) !important; border: none !important; color: white !important;}
.badge-inner.custom-bubble { background-color: var(--fiptec-green) !important; border: none !important; color: white !important;}

/* 4. ГЛОБАЛНИ СТИЛОВЕ - БУТОНИ (Точка 7) */
/* Хващаме всички стандартни Flatsome и WooCommerce бутони, които още не ползват нашите UI класове */
.button, 
button, 
input[type="submit"], 
input[type="button"] {
    border-radius: var(--fiptec-radius-default) !important; /* 12px */
}

/* Принудително оранжево за всички "Add to cart" и "Checkout" бутони (ако случайно сме изпуснали някой) */
.checkout-button,
.single_add_to_cart_button,
.add_to_cart_button {
    background-color: var(--fiptec-orange) !important;
    color: var(--fiptec-white) !important;
}
.checkout-button:hover,
.single_add_to_cart_button:hover,
.add_to_cart_button:hover {
    background-color: var(--fiptec-orange-hover) !important;
}

/* 5. DRAWER & LIGHTBOX (Точка 8) */
/* Тъмен, луксозен "Slate" бекграунд с 80% прозрачност при отваряне на количка/снимка */
.mfp-bg, 
.off-canvas-overlay,
.drawer-overlay {
    background-color: rgba(15, 23, 42, 0.8) !important;
    opacity: 1 !important; /* Flatsome понякога го крие, форсираме го */
}

/* ==========================================================================
   ГЛОБАЛНО ЗАОБЛЯНЕ НА ЕЛЕМЕНТИ (14px)
   ========================================================================== */

/* 1. Всички видове бутони */
.button, 
button, 
input[type="submit"], 
input[type="button"] {
    border-radius: var(--fiptec-radius-global) !important;
}

/* 2. Текстови полета и Форми (Inputs & Selects) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
textarea,
select,
.select2-selection {
    border-radius: var(--fiptec-radius-global) !important;
}

/* 3. Продуктови карти (Снимки и Рамки в каталога) */
.product-small .box,
.product-small .box-image,
.product-small .box-image img {
    border-radius: var(--fiptec-radius-global) !important;
}

/* 4. Снимки в продуктовата страница (Галерия) */
.woocommerce-product-gallery__image img,
.product-thumbnails .col a,
.product-thumbnails .col img {
    border-radius: var(--fiptec-radius-global) !important;
}

/* 5. Картинки в количката и чекаута */
.woocommerce-mini-cart-item img,
.fiptec-cart-image,
.item-image-wrapper,
.item-image-wrapper img {
    border-radius: var(--fiptec-radius-global) !important;
}