/**
Theme Name: Gomax Child
Template: gomax
Theme URI: https://gomax.themeasy.co
Author: Themeasy
Author URI: https://themeasy.co
Description: The child theme inherits the look and feel of the parent theme and all of its functions, but can be used to make modifications to any part of the theme. In this way, customizations are kept separate from the parent theme’s files. Using a child theme lets you upgrade the parent theme without affecting the customizations you’ve made to your site.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 5.8
Requires PHP: 7.4
Text Domain: gomax-child
Domain Path: /languages
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/*----------------------------------------------
*
* If you activated the Child Theme, the styles placed here will work.
* 
----------------------------------------------*/

/* Карусель товаров (Themeasy): фото карточек одной высоты — пропорция 5:4 как у миниатюр каталога WooCommerce, обрезка по центру.
   Тема подгружает некропнутые medium-версии разных пропорций, из-за этого высота плыла. */
.elementor-widget-themeasy-wc-product-carousel .card.product .product-image .image-wrapper {
    aspect-ratio: 5 / 4;
    height: auto;
    overflow: hidden;
}
.elementor-widget-themeasy-wc-product-carousel .card.product .product-image .image-wrapper .image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* Страница товара, стрелки ← → (ShopLentor Single Product Navigation): мини-панель с превью соседнего товара при наведении.
   Разметка панели добавляется фильтром в functions.php. */
.wl-single-product-navigation a {
    position: relative;
}
.wl-single-product-navigation .wl-nav-preview {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 290px;
    max-width: calc(100vw - 32px);
    padding: 10px 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
    text-align: left;
    line-height: 1.3;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.wl-single-product-navigation a:hover .wl-nav-preview,
.wl-single-product-navigation a:focus-visible .wl-nav-preview {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.wl-single-product-navigation .wl-nav-preview__img {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
}
.wl-single-product-navigation .wl-nav-preview__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wl-single-product-navigation .wl-nav-preview__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.wl-single-product-navigation .wl-nav-preview__label {
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8a8a8a;
}
.wl-single-product-navigation .wl-nav-preview__title {
    font-size: 14px;
    font-weight: 600;
    color: #151515;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wl-single-product-navigation .wl-nav-preview__price {
    font-size: 14px;
    font-weight: 700;
    color: #151515;
}
.wl-single-product-navigation .wl-nav-preview__price del {
    margin-right: 4px;
    font-weight: 400;
    color: #8a8a8a;
}
@media (hover: none) {
    .wl-single-product-navigation .wl-nav-preview { display: none; }
}


/* Страница товара: inline-подсказка «изберете вариант» вместо системного alert (логика в main.js). */
.ina-variation-notice {
    animation: ina-notice-in .22s ease;
    margin: 14px 0 4px;
    padding: 11px 14px 11px 40px;
    position: relative;
    background: #fdf3f2;
    border: 1px solid #f2c9c5;
    border-radius: 8px;
    color: #8a2620;
    font-size: 14px;
    line-height: 1.4;
}
.ina-variation-notice::before {
    content: "!";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border-radius: 50%;
    background: #b3261e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.variations_form.ina-needs-selection table.variations {
    outline: 2px solid #f2c9c5;
    outline-offset: 8px;
    border-radius: 4px;
    transition: outline-color .3s;
}
@keyframes ina-notice-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}


/* Главная, блок «Продукт на месеца» (виджет Themeasy Product Single #2755536): прячем строку «количество + Опции»,
   оставляем только «Поръчай». Элементы остаются в DOM — JS темы читает оттуда количество (= 1). */
.elementor-element-2755536 .product-buttons-wrapper:not(.buy-now-button-wrapper) {
    display: none;
}
