/*
Theme Name: Orchid Store Child
Theme URI: https://presi.bg/
Description: Child theme for Orchid Store
Author: Presi.bg
Template: orchid-store
Version: 1.0
*/


/* Скриване на броя продукти */
.woocommerce .count {
    display: none !important;
}

/* Общ стил за SVG икони */
.icon {
  width: 24px;
  height: 24px;
  fill: currentColor; /* наследява цвета от текста */
  transition: fill 0.2s ease;
}

/* Scroll-top бутон */
.orchid-backtotop {
  cursor: pointer;
  color: #333; /* основен цвят */
}
.orchid-backtotop:hover .icon {
  fill: #ff6600; /* hover ефект */
}

/* Breadcrumb текст */
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a,
.breadcrumb-trail,
.breadcrumb-trail a,
.os-page-breadcrumb-wrap .woocommerce-breadcrumb,
.os-page-breadcrumb-wrap .woocommerce-breadcrumb a {
    color: #000 !important; /* черен текст */
}

/* Hover остава розов */
.woocommerce-breadcrumb a:hover,
.breadcrumb-trail a:hover,
.os-page-breadcrumb-wrap .woocommerce-breadcrumb a:hover {
    color: #dd80bd !important; /* розов при hover */
}

/* Намаляване размера на стрелките в breadcrumb */
.woocommerce-breadcrumb .icon {
    width: 10px;
    height: 10px;
    vertical-align: middle;
    margin: 0 5px;
    fill: #000 !important;
}
.woocommerce-breadcrumb a:hover .icon {
    fill: #dd80bd !important;
}

/* Леко отместване навътре */
.woocommerce-breadcrumb {
    margin-left: 30px; /* по-голямо отместване навътре */
}

/* SALE блок */
.sale-info-block {
    background: #fff3cd;
    border: 2px solid #ffeeba;
    padding: 15px;
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #856404;
    border-radius: 8px;
}
.sale-info-block .dashicons {
    color: #d9534f;
    margin-right: 5px;
    vertical-align: middle;
}

/* Таймер */
#sale-countdown {
    font-size: 15px;
    font-weight: bold;
    color: #d9534f !important;
    margin-top: 10px;
}

/* Бадж SALE */
.custom-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d9534f;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.woocommerce ul.products li.product {
    position: relative;
}

/* Стара цена */
.woocommerce div.product p.price del,
.woocommerce ul.products li.product .price del {
    color: #000000 !important;
}

/* Нова цена (sale price) */
.woocommerce div.product p.price ins,
.woocommerce ul.products li.product .price ins {
    color: #d9534f !important;   /* червено по подразбиране */
    font-weight: bold;
    transition: color 0.3s ease; /* плавна смяна на цвета */
}

/* При hover – пулсиране + смяна на цвят */
.woocommerce div.product p.price ins:hover,
.woocommerce ul.products li.product .price ins:hover {
    color: #ff6666 !important;   /* по-светъл червен при hover */
    animation: pulsePrice 0.8s ease; /* еднократна анимация */
}

/* Анимация: леко пулсиране */
@keyframes pulsePrice {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
/* Мобилна оптимизация */
@media (max-width: 768px) {
    /* Breadcrumb – по-малък и с повече отстъп */
    .woocommerce-breadcrumb {
        font-size: 12px !important;
        padding-left: 20px !important;
    }
    .woocommerce-breadcrumb .icon {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }

    /* SALE блок – по-компактен */
    .sale-info-block {
        font-size: 14px;
        padding: 10px;
        margin-top: 10px;
    }

    /* Таймер – по-малък шрифт */
    #sale-countdown {
        font-size: 13px;
    }

    /* SALE бадж – по-малък върху снимките */
    .custom-sale-badge {
        font-size: 12px;
        padding: 3px 8px;
        top: 5px;
        left: 5px;
    }

    /* Нова цена – само смяна на цвят при hover (без пулсиране) */
    .woocommerce div.product p.price ins,
    .woocommerce ul.products li.product .price ins {
        color: #d9534f !important;
        font-weight: bold;
        transition: color 0.3s ease;
    }
    .woocommerce div.product p.price ins:hover,
    .woocommerce ul.products li.product .price ins:hover {
        color: #ff6666 !important; /* по-светъл червен при hover */
        animation: none; /* без пулсиране на мобилни */
    }
}
/* SALE бадж (WooCommerce по подразбиране) */
.woocommerce span.onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d9534f;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 10;
}

/* --- NEW WIDE BADGE (DESKTOP ONLY) --- */
.free-shipping-badge-new {
    width: 100%;
    background: #02d8e0;
    color: #fff;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}


/* Мобилна оптимизация */
@media (max-width: 768px) {
    .free-shipping-badge {
        font-size: 10px;
        padding: 3px 7px;
        top: 5px;
        right: 5px;
        border-width: 1px;
    }
    .woocommerce span.onsale {
        font-size: 10px;
        padding: 3px 7px;
        top: 5px;
        left: 5px;
    }
}
/* Увеличаване на шрифта в описанието на продуктите */
/* Десктоп – по-голям и четим текст */
.woocommerce-Tabs-panel--description,
.woocommerce-Tabs-panel--description p {
    font-size: 16px !important;
    line-height: 1.65 !important;
    color: #222;
}

/* Таблети (до 1024px) – малко по-компактно */
@media (max-width: 1024px) {
    .woocommerce-Tabs-panel--description,
    .woocommerce-Tabs-panel--description p {
        font-size: 16px !important;
    }
}

/* Телефони (до 600px) – оптимален размер за четимост */
@media (max-width: 600px) {
    .woocommerce-Tabs-panel--description,
    .woocommerce-Tabs-panel--description p {
        font-size: 15px !important;
        line-height: 1.55 !important;
    }
}
#tab-description,
#tab-description * {
    font-size: 16px !important;
    line-height: 1.65 !important;
    color: #222 !important;
}
/* Описание – по‑добра четимост */
.product .woocommerce-product-details__short-description p,
.product .woocommerce-Tabs-panel p {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 10px;
}

/* PDF бутон */
.product .woocommerce-Tabs-panel a[href$=".pdf"],
.product .woocommerce-Tabs-panel a[target="_blank"] {
    display: inline-block;
    margin: 15px 0;
    font-size: 16px;
}

/* Responsive видео */
.product .woocommerce-Tabs-panel iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border: none;
    max-width: 600px;
}

/* Разстояние между секциите */
.presi-trust-icons {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    margin-bottom: 20px; /* добавя въздух под блока */
    border: 1px solid #e5e5e5;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.single_add_to_cart_button {
    background-color: #02d8e0 !important; /* основен цвят */
    color: #fff !important;
    padding: 16px 20px !important;
    font-size: 17px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    margin: 20px auto 25px auto !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15) !important;
    transition: background-color 0.25s ease, transform 0.15s ease;
}

.single_add_to_cart_button:hover {
    background-color: #dd80bd !important; /* hover цвят */
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .single_add_to_cart_button {
        position: fixed !important;
        bottom: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        margin: 0 !important;
        z-index: 9999 !important;
    }
}
/* Пулсиращ ефект */
@keyframes presi-pulse {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
    100% { transform: translateX(-50%) scale(1); }
}

/* Плавно появяване */
@keyframes presi-fade-in {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Приложение на анимациите за мобилни */
@media (max-width: 768px) {
    .single_add_to_cart_button {
        animation: presi-fade-in 0.6s ease-out forwards,
                   presi-pulse 2.2s ease-in-out infinite;
    }
}
@media (max-width: 768px) {
    .single-product .product {
        padding-bottom: 100px !important;
    }
}
@media (max-width: 768px) {
    .product-hover-items {
        display: none !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}
/* Лек отстъп между продуктите в категориите */
ul.products li.product {
    margin-bottom: 12px !important;
}
