/*
=========================================================
SNP TEAM – Продуктови страници (WooCommerce)
   1. Промяна на стила на видеоплеъра върху продукта
   2. Стилизация на групирани продукти (WooCommerce)
   3. Estimated delivery dates - добавка от woodmart
   4. WAITLIST button has the option to change the hover color + success notification
   5. Responsive Countdown Timer Styles (Single Product Pages)
=========================================================
*/

/* 1. Видеоплеър – промяна на цвета и стил – START */
.wd-action-btn.wd-style-icon-bg-text > a {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3)!important;
    color: #5797b2!important;
    --wd-action-icon-size: 20px;
}
.wd-action-btn.wd-style-icon-bg-text > a:hover {
    background-color: rgba(87, 151, 178, 0.6) !important;
    color: white !important;
    --wd-action-icon-size: 20px;
}
.wd-action-btn > a {
    transition: all 0s ease !important;
}
/* 1. Видеоплеър – END */

/*
=========================================================
2. SNP TEAM – Стилизация на групирани продукти (WooCommerce)
 Версия: 22.07.2025
 Описание: Унифицира визуалното оформление на групирани продукти, вариации,
 цени, наличности и падащи менюта за по-добра визуална консистентност.
=========================================================
 Секции:
   1. Основно оформление: бордери, радиуси, падинги
   2. Оформление на варианти и вариации
   3. Оцветяване и типография
   4. Полета за количество и падащи менюта
   5. Компактен стил за woosg-quantity (custom hover & focus)
   6. Компактен дропдаун за продуктови вариации – Woodmart стил
   7. Стил за наличности (stock) – по-малък шрифт
   8. Мобилна оптимизация (при нужда)
=========================================================
*/

.woosg-wrap .woosg-products {
    border-top: 2px solid var(--brdcolor-gray-300);
}

.woosg-products .woosg-product > div {
    padding-right: 0 !important;
}

.woosg-products .woosg-product .woosg-title .variations_form {
    width: 100%;
}

.woosg-products .woosg-product form.variations_form .variations .variation {
    border-radius: 5px !important;
}

.woosg-products .woosg-product form.variations_form .variations .variation .label {
    display: none !important;
}

.woosg-products .woosg-product .woosg-price {
    padding-bottom: 5px !important;
}

.woosg-products .woosg-product .woosg-title .stock.in-stock {
    color: var(--color-gray-800) !important;
}

.woosg-wrap .woosg-products .woosg-product {
    border-radius: 10px;
    margin-bottom: 10px;
    border-bottom: 1.5px solid var(--brdcolor-gray-300);
}

.woosg-wrap,
.woosg-wrap .woosg-alert {
    border-radius: 10px;
}

.woosg-products .woosg-product .woosg-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.woosg-products .woosg-item-text {
    padding: 5px 0 !important;
    color: #e09c60;
    font-weight: 600;
}

.woosg-products .woosg-product form.variations_form .variations .variation .value select {
    margin-top: -5px;
    margin-bottom: -5px;
    padding-left: 10px !important;
}

 /********Groupe products css*********/
/*****************************************/
.woosg-products .woosg-product .woosg-quantity input {
    width: 30px!important;
    height: 42px!important;
	min-width: 25px!important;
}

.woosg-products .woosg-product form.variations_form .variations .variation .select select {
    height: 25px !important;
    line-height: 25px !important;
	  padding: 0 26px 0 10px!important;
}

/* 6. Компактен стил за woosg-quantity (custom hover & focus) */
.woosg-quantity .quantity {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    background: #fff;
    width: max-content;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
/* При фокус на input – целият quantity контейнер става със синя рамка */
.woosg-quantity .quantity:focus-within {
    border-color: rgb(87, 151, 178);
    box-shadow: 0 0 0 1.5px rgba(87, 151, 178, 0.18);
}

.woosg-quantity input[type="button"].minus,
.woosg-quantity input[type="button"].plus {
    width: 26px !important;
    height: 30px !important;
    font-size: 18px !important;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: #5797b2;
    transition: background 0.2s, color 0.2s;
    padding: 0 !important;
    margin: 0 !important;
}

.woosg-quantity input[type="button"].minus:hover,
.woosg-quantity input[type="button"].plus:hover,
.woosg-quantity input[type="button"].minus:focus,
.woosg-quantity input[type="button"].plus:focus {
    background: rgb(87, 151, 178);
    color: #fff;
    cursor: pointer;
}

.woosg-quantity input[type="number"].woosg-qty,
.woosg-quantity input[type="number"].woosg_qty,
.woosg-quantity input[type="number"].qty {
    width: 30px !important;
    height: 30px !important;
    font-size: 15px !important;
    text-align: center;
    border: none;
    background: none;
    outline: none;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none;
    border-radius: 0;
}

.woosg-quantity,
.woosg-quantity .quantity {
    gap: 0 !important;
    padding: 0 !important;
}

/* 7. Компактен дропдаун за продуктови вариации – еднаква ширина и radius */
.variations .variation .value {
    max-width: 210px;
    min-width: 120px;
    width: 100%;
    padding: 2px 0 2px 0;
}

.variations .variation .value select {
    width: 100% !important;
    min-width: 90px;
    max-width: 210px;
    height: 32px !important;
    font-size: 15px;
    border-radius: 8px;
    border: 1.5px solid #d1d1d1;
    padding: 0 32px 0 10px !important;
    background: #f8f8f8;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    margin: 3px 0;
    position: relative;
}

/* Фокус ефект */
.variations .variation .value select:focus {
    border-color: rgb(87, 151, 178);
    background: #fff;
}

/* Всеки запис вътре в падащото меню – padding и radius */
.variations .variation .value select option {
    padding: 7px 12px;
    font-size: 15px;
    border-radius: 8px;
}

/* 8. Стил за наличности (stock) – по-малък шрифт */
.woosg-products .woosg-product .woosg-title .stock,
.woosg-products .woosg-product .woosg-title .variations_form .stock {
    font-size: 12px;
}

/**********************************************************/
/*3 Estimated delivery dates - добавка от woodmart - START*/

.wd-product-info .wd-info-icon {
    font-size: 180% !important;
}

.wd-est-del strong {
  color: var(--wd-primary-color) !important;
	font-size: 15px !important;
}

.wd-product-info .wd-info-msg {
    color: #000 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}
/*Estimated delivery dates - добавка от woodmart - END*/

/*************************************************************************************/
/*4. WAITLIST button has the option to change the hover color + success notification */

.xoo-wl-action-btn.xoo-wl-open-form-btn:hover,
.xoo-wl-submit-btn.xoo-wl-action-btn.button.btn:hover {
    background-color: rgb(87,151,178);
    border-color: rgb(87,151,178);
    color: #fff;
}

.xoo-wl-user-added .xoo-wl-main, .xoo-wl-notice-success  {
    border-radius: 12px;
	  font-size: 18px;
	  background-color: #5797b2;
    color: #fff;

}

.xoo-wl-action-btn,
.xoo-wl-submit-btn {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/*4. WAITLIST button has the option to change the hover color + success notification END*/

/* 5. Responsive Countdown Timer Styles (Single Product Pages)
    -----------------------------------------------------------------------
  Описание:
  - Специални стилове за таймера на продуктовите страници
  - Включва 3 нива на responsive дизайн:
    1) Мобилен (до 767px)
    2) Таблет (768px – 1024px) с +5% увеличение
    3) Десктоп (над 1025px) – пълна версия
=======================================================================*/

/* Мобилна версия (до 767px) */
@media (max-width: 767px) {
    .single-product .wd-product-countdown {
        display: flex;
        justify-content: center;
        gap: 6px; /* разстояние между кутийките */
        margin: 10px 0;
    }

    .single-product .wd-product-countdown .wd-timer-value {
        display: block;
        width: 42px;
        height: 32px;
        line-height: 32px;
        font-weight: bold;
        background-color: #f2f2f2;
        border-radius: 8px 8px 0 0;
        box-sizing: border-box;
        font-size: 15px;
        text-align: center;
    }

    .single-product .wd-product-countdown .wd-timer-text {
        display: block;
        width: 42px;
        height: 22px;
        line-height: 22px;
        background-color: #e5e5e5;
        border-radius: 0 0 8px 8px;
        font-size: 13px;
        box-sizing: border-box;
        margin-top: 2px;
        text-align: center;
    }
}

/* Таблет версия (768px – 1024px) → +5% увеличение */
@media (min-width: 768px) and (max-width: 1024px) {

    .single-product .wd-product-countdown .wd-timer-value {
        display: block;
        width: 44px;   /* +5% от 42px */
        height: 34px;  /* +5% от 32px */
        line-height: 34px;
        font-weight: bold;
        background-color: #f2f2f2;
        border-radius: 8px 8px 0 0;
        box-sizing: border-box;
        font-size: 16px; /* +5% от 15px */
        text-align: center;
    }

    .single-product .wd-product-countdown .wd-timer-text {
        display: block;
        width: 44px;   /* +5% от 42px */
        height: 23px;  /* +5% от 22px */
        line-height: 23px;
        background-color: #e5e5e5;
        border-radius: 0 0 8px 8px;
        font-size: 14px; /* +5% от 13px */
        box-sizing: border-box;
        margin-top: 2px;
        text-align: center;
    }
}

/* Таймер – десктоп версия --- ЗА ПРОДУКТОВИ СТРАНИЦИ --- (−7%) */
@media (min-width: 1025px) {
    .single-product .wd-product-countdown > span {
        display: inline-block;
        margin-right: 6px;
        text-align: center;
    }

    .single-product .wd-product-countdown .wd-timer-value {
        display: block;
        width: 47px;      /* −7% от 50px */
        height: 31px;     /* −7% от 33px */
        line-height: 31px;
        font-weight: bold;
        background-color: #f2f2f2;
        border-radius: 6px 6px 0 0;
        box-sizing: border-box;
        font-size: 15px;  /* −7% от 16px */
        text-align: center;
        box-shadow: 0 0 0 2px #fff;
    }

    .single-product .wd-product-countdown .wd-timer-text {
        display: block;
        width: 47px;      /* −7% от 50px */
        height: 20px;     /* −7% от 22px */
        line-height: 20px;
        background-color: #e5e5e5;
        border-radius: 0 0 6px 6px;
        font-size: 13px;  /* −7% от 14px */
        box-sizing: border-box;
        text-align: center;
        box-shadow: 0 0 0 2px #fff;
    }
}
