/*
 * Leather Initial - Store-wide custom CSS
 * Migrated from the former theme custom stylesheet.
 * Loaded on all public storefront pages after header.css.
 * Header and Astra mini-cart drawer rules are maintained in header.css.
 * Product personalizer popup rules remain in frontend.css/frontend-mobile.css.
 */

/* =============================================
   ГЛОБАЛНО
   ============================================= */

html {
    scroll-behavior: smooth;
}

.wp-block-separator {
    width: 100px !important;
    border: 0 !important;
    border-top: 2px solid #555555 !important;
    opacity: 1 !important;
    margin: 30px auto !important;
}


/* =============================================
   АНИМАЦИИ (Spectra)
   ============================================= */

.uagb-animation-fadeIn {
    animation-duration: 1.2s !important;
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.anim-first  { animation-delay: 0s !important; }
.anim-second { animation-delay: 0.7s !important; }


/* =============================================
   ТЪРСАЧКА (глобален стил на бутона)
   ============================================= */

.wp-block-search__button {
    background: #556B2F !important;
    border-color: #556B2F !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

.wp-block-search__button:hover {
    background: #1C3821 !important;
    border-color: #1C3821 !important;
    color: #fff !important;
}

.hero-search-title {
    font-size: 29px !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1.2 !important;
    margin-top: 50px !important;
    margin-bottom: -35px !important;
}


/* =============================================
   АБОНАМЕНТ (FOOTER WIDGET)
   ============================================= */

.custom-subscribe-box {
    margin-top: 10px !important;
}

.custom-subscribe-box h4 {
    color: #C5A059 !important;
    font-size: 18px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

.subscribe-description {
    color: #F9F6F0 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin: 0 0 22px 0 !important;
    padding: 0 !important;
    opacity: 0.9 !important;
}

.custom-subscribe-box form {
    display: flex !important;
    align-items: stretch !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.custom-subscribe-box input[type="email"] {
    background-color: transparent !important;
    border: 1px solid rgba(249, 246, 240, 0.6) !important;
    border-right: none !important;
    border-radius: 3px 0 0 3px !important;
    color: #F9F6F0 !important;
    padding: 0 15px !important;
    font-size: 14px !important;
    flex-grow: 1 !important;
    margin: 0 !important;
    outline: none !important;
    height: 45px !important;
    box-sizing: border-box !important;
}

.custom-subscribe-box input::placeholder {
    color: #F9F6F0 !important;
    opacity: 0.8 !important;
}

.custom-subscribe-box button {
    background-color: #F9F6F0 !important;
    border: 1px solid #F9F6F0 !important;
    border-radius: 0 3px 3px 0 !important;
    color: #1b3d2b !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    padding: 0 25px !important;
    margin: 0 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    height: 45px !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
}

.custom-subscribe-box button:hover {
    background-color: #C5A059 !important;
    border-color: #C5A059 !important;
    color: #ffffff !important;
}


/* =============================================
   МАГАЗИН — ОБЩИ
   ============================================= */

.woocommerce-page .site-content {
    background: #FFFBFB !important;
}

.woocommerce .woocommerce-breadcrumb,
.woocommerce-breadcrumb {
    display: none;
}

.woocommerce-result-count {
    display: none !important;
}

.ast-woocommerce-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}


/* =============================================
   КАТЕГОРИИ / АРХИВИ — СОРТИРАНЕ И ЗАГЛАВИЕ
   (страницата "Магазин" и търсенето имат свои
   правила по-надолу, които имат предимство)
   ============================================= */

.li-shop-heading {
    float: left;
    font-size: 20px;
    font-weight: 600;
    margin-top: 100px;
    margin-bottom: -40px;
    transform: translateY(-60px);
}

.woocommerce .woocommerce-ordering {
    width: fit-content;
    margin-left: auto;
    margin-bottom: 40px;
}

.woocommerce-ordering {
    background: #fff;
    padding: 4px;
    border: 1px solid #d8d8d8;
    border-radius: 30px;
    transform: translateY(30px);
}

.woocommerce-ordering select {
    padding-right: 30px !important;
}


/* =============================================
   МАГАЗИН — SIDEBAR
   ============================================= */

#secondary {
    --accent-green: #556B2F;
    --accent-green-dark: #445a24;
    --accent-gold: #b08d57;
    --bg-cream: #f8f6f2;
    --border-soft: #ebe3d5;
    --text-main: #3d3d3d;
    --text-muted: #8a8a8a;

    background: #FFFBFB;
    padding: 30px;
    color: #333;
    margin-top: 130px;
}

#secondary a {
    color: #444;
}

#secondary a:hover {
    color: #b08d57;
}

/* ===== Контейнер на уиджет ===== */
#secondary .widget {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 26px 24px;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(85, 107, 47, 0.05);
    transition: box-shadow .3s ease;
}

#secondary .widget:hover {
    box-shadow: 0 8px 28px rgba(85, 107, 47, 0.10);
}

#secondary .widget-title,
#secondary .widget > h2,
#secondary .widget > h3 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent-green);
    margin: 0 0 20px 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
}

#secondary .widget-title::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gold);
    margin-right: 10px;
    flex-shrink: 0;
}

/* Заглавие "Категории" — подмяна на текста */
.widget_product_categories .widget-title {
    font-size: 0 !important;
}

.widget_product_categories .widget-title::after {
    content: "КАТЕГОРИИ";
    font-size: 16px;
}

/* ===== Търсене ===== */
#secondary .widget_search label,
#secondary .widget_product_search label {
    display: none !important;
}

#secondary .widget_search form,
#secondary .widget_product_search form {
    display: flex !important;
    flex-wrap: nowrap !important;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-cream);
    transition: border-color .25s, box-shadow .25s;
}

#secondary .widget_search form:focus-within,
#secondary .widget_product_search form:focus-within {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(85, 107, 47, 0.08);
}

#secondary .widget_search .search-field,
#secondary .widget_product_search input[type="search"] {
    border: none !important;
    background: transparent !important;
    padding: 13px 16px;
    font-size: 14px;
    color: var(--text-main);
    flex: 1 1 auto !important;
    min-width: 0;
    outline: none;
    width: auto !important;
}

#secondary .widget_search .search-submit,
#secondary .widget_product_search button[type="submit"] {
    background: var(--accent-green) !important;
    color: #fff;
    border: none;
    padding: 0 22px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    flex: 0 0 auto !important;
    white-space: nowrap;
    transition: background .25s;
}

#secondary .widget_search .search-submit:hover,
#secondary .widget_product_search button[type="submit"]:hover {
    background: var(--accent-green-dark) !important;
}

/* ===== Филтър по цена ===== */
#secondary .widget_price_filter .price_slider {
    margin: 8px 4px 22px;
}

#secondary .widget_price_filter .ui-slider {
    height: 3px;
    background: var(--border-soft);
    border: none;
    border-radius: 3px;
}

#secondary .widget_price_filter .ui-slider .ui-slider-range {
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-green));
    border-radius: 3px;
}

#secondary .widget_price_filter .ui-slider .ui-slider-handle {
    width: 16px;
    height: 16px;
    top: -6.5px;
    background: #fff;
    border: 2.5px solid var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .12);
    cursor: grab;
    transition: transform .2s;
}

#secondary .widget_price_filter .ui-slider .ui-slider-handle:hover {
    transform: scale(1.15);
}

#secondary .widget_price_filter .price_slider_amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#secondary .widget_price_filter button[type="submit"] {
    background: var(--accent-gold);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .25s, transform .15s;
}

#secondary .widget_price_filter button[type="submit"]:hover {
    background: var(--accent-green);
    transform: translateY(-1px);
}

#secondary .widget_price_filter .price_label {
    font-size: 13px;
    color: var(--text-muted);
}

#secondary .widget_price_filter .price_label span {
    color: var(--accent-green);
    font-weight: 700;
}

/* ===== Категории (li е контейнерът, не a) ===== */
#secondary .widget_product_categories ul,
#secondary .widget_categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#secondary .widget_product_categories li,
#secondary .widget_categories li {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 13px 16px;
    background: var(--bg-cream);
    border: 1px solid transparent;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all .2s ease;
}

#secondary .widget_product_categories li:last-child,
#secondary .widget_categories li:last-child {
    margin-bottom: 0;
}

#secondary .widget_product_categories li a,
#secondary .widget_categories li a {
    display: block !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    text-decoration: none;
    color: var(--text-main);
    font-size: 14.5px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 0;
}

#secondary .widget_product_categories li:hover,
#secondary .widget_categories li:hover {
    background: var(--accent-green);
    border-color: var(--accent-green);
    padding-left: 20px;
    box-shadow: 0 4px 12px rgba(85, 107, 47, 0.18);
}

#secondary .widget_product_categories li:hover a,
#secondary .widget_categories li:hover a {
    color: #fff;
}

/* Брояч на категория (един общ стил) */
.product-categories span.count,
#secondary .widget_categories .count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 30px !important;
    padding: 0 8px !important;
    margin-left: 10px !important;
    border-radius: 50px !important;
    background: #ffffff !important;
    border: 1px solid #e5dccb !important;
    color: #556b2f !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    float: none !important;
    box-sizing: border-box !important;
}


/* =============================================
   КАТЕГОРИЯ — ОПИСАНИЕ ОТДОЛУ
   ============================================= */

.category-description-bottom {
    margin-top: 60px;
    clear: both;
}

.category-description-bottom h2 {
    margin-bottom: 20px;
}

/* Първото h2 е скрито визуално (остава за SEO) */
.category-description-bottom > h2:first-child {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.category-description-bottom p {
    margin-bottom: 18px !important;
    line-height: 1.7;
}


/* =============================================
   ЕДИНИЧЕН ПРОДУКТ
   ============================================= */

.single-product .site-main {
    padding-top: 130px;
}

.single-product-category,
.product_meta {
    display: none !important;
}

.single-product .product_title {
    font-size: 42px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
}

.single-product .price {
    color: #1c3821 !important;
    font-weight: 700 !important;
}

/* Форма — количество и бутон */
.single-product form.cart {
    display: flex;
    align-items: center;
    gap: 3px;
}

.single-product .quantity .qty {
    height: 50px !important;
    width: 70px !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 16px !important;
    background: #fff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.single-product .single_add_to_cart_button {
    background: #1c3821 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 0 40px !important;
    height: 50px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 15px rgba(28, 56, 33, 0.20) !important;
    transition: all 0.3s ease !important;
}

.single-product .single_add_to_cart_button:hover {
    background: #28502f !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(28, 56, 33, 0.30) !important;
}

/* Табът "Описание" е скрит (описанието е под продукта) */
.woocommerce div.product .woocommerce-tabs ul.tabs li.description_tab {
    display: none !important;
}

/* Описание — картинките една до друга по средата (десктоп) */
.woocommerce-Tabs-panel--description p {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 30px !important;
}

.woocommerce-Tabs-panel--description p img {
    margin: 0 !important;
}

/* Акордеони */
.li-product-accordion {
    margin-top: 25px;
    border-top: 1px solid #e5e5e5;
}

.li-product-accordion details {
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 0;
}

.li-product-accordion summary {
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    list-style: none;
    position: relative;
}

.li-product-accordion summary::-webkit-details-marker {
    display: none;
}

.li-product-accordion summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 20px;
}

.li-product-accordion details[open] summary::after {
    content: "−";
}

.li-product-accordion .accordion-content {
    padding-top: 12px;
    line-height: 1.7;
}

.li-product-accordion .accordion-content p {
    margin: 0 0 12px !important;
}


/* =============================================
   КОЛИЧКА — ОСНОВНА СТРАНИЦА
   ============================================= */

.woocommerce-cart .site-content {
    padding-top: 40px;
    padding-bottom: 80px;
}

.woocommerce-cart .woocommerce {
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* Таблица */
.woocommerce-cart table.shop_table {
    border: none !important;
    margin-bottom: 40px;
}

.woocommerce-cart table.shop_table thead {
    background: #f8f8f8;
}

.woocommerce-cart table.shop_table th {
    border: none;
    padding: 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    font-weight: 600;
}

.woocommerce-cart table.shop_table td {
    border-top: 1px solid #ececec;
    padding: 25px 15px;
    vertical-align: middle;
}

/* Снимка на продукта в количката */
.woocommerce-cart table.cart td.product-thumbnail img,
.woocommerce table.shop_table .product-thumbnail img,
.woocommerce-page table.shop_table .product-thumbnail img {
    width: 140px !important;
    max-width: 140px !important;
    height: auto !important;
    border-radius: 10px;
    transition: 0.3s;
}

.woocommerce-cart table.cart td.product-thumbnail img:hover {
    transform: scale(1.03);
}

/* Продукт */
.woocommerce-cart .product-name a {
    font-size: 22px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    line-height: 1.4;
}

.woocommerce-cart .product-name a:hover {
    color: #184b2f;
}

.woocommerce-cart .product-name {
    font-size: 15px;
    line-height: 1.8;
    width: 28%;
}

/* Персонализации */
.woocommerce-cart .wc-item-meta,
.woocommerce-cart dl.variation {
    margin-top: 12px;
}

.woocommerce-cart .wc-item-meta dt,
.woocommerce-cart dl.variation dt {
    font-weight: 600;
    color: #222;
}

.woocommerce-cart .wc-item-meta dd,
.woocommerce-cart dl.variation dd {
    color: #666;
}

/* Ширини на колони */
.product-price           { width: 12%; }
.product-personalization { width: 30%; }
.product-quantity        { width: 10%; }
.product-subtotal        { width: 12%; }

.woocommerce-cart .product-price,
.woocommerce-cart .product-subtotal {
    font-size: 18px;
    font-weight: 600;
}

/* Количество */
.woocommerce-cart input.qty {
    width: 75px;
    height: 45px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ddd;
}

/* Премахване */
.woocommerce-cart .product-remove a {
    font-size: 26px !important;
    color: #888 !important;
}

.woocommerce-cart .product-remove a:hover {
    color: #c0392b !important;
}

/* Купон — скрит */
.woocommerce-cart .coupon,
.woocommerce-form-coupon-toggle {
    display: none !important;
}

/* Бутони */
.woocommerce-cart .button,
.woocommerce-cart button.button,
.woocommerce-cart input.button {
    background: #184b2f !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 24px !important;
    transition: 0.3s;
}

.woocommerce-cart .button:hover,
.woocommerce-cart button.button:hover,
.woocommerce-cart input.button:hover {
    background: #123823 !important;
}

/* Персонализации (cart page) */
.product-personalization dl.variation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.product-personalization dl.variation dt {
    display: none !important;
}

.product-personalization dl.variation dd {
    margin: 0 !important;
    padding: 4px 14px;
    border: 1px solid #d7d7d7;
    border-radius: 20px;
    background: #f8f8f8;
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: 100%;
}

.product-personalization dl.variation dd p {
    margin: 0 !important;
}

/* PPP снимки — страница на количката */
.woocommerce-cart .ppp-cart-image-thumb {
    display: inline-block !important;
    margin-left: 10px !important;
    vertical-align: top !important;
    position: static !important;
}

.woocommerce-cart td .ppp-cart-image-thumb img,
.woocommerce-cart table.cart td .ppp-cart-image-thumb img {
    width: 70px !important;
    max-width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 1px solid #e5e5e5 !important;
    display: block !important;
}

.woocommerce-cart .ppp-cart-image-thumb span {
    display: block !important;
}


/* =============================================
   КОЛИЧКА — ОБЩА СУМА (cart_totals)
   ============================================= */

.cart-collaterals {
    margin-top: 30px;
}

.cart_totals {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cart_totals h2 {
    font-size: 32px;
    margin-bottom: 10px !important;
}

.cart_totals table {
    width: 100% !important;
    margin-bottom: 10px !important;
    margin-top: -40px !important;
}

/* Скриваме "Междинна сума" и надписа "Общо" */
.cart_totals tr.cart-subtotal,
.cart-subtotal,
.cart_totals tr.order-total th {
    display: none !important;
}

/* Крайна сума */
.cart_totals tr.order-total td {
    text-align: center !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    padding: 60px 0 25px 0 !important;
}

/* Checkout бутон */
.wc-proceed-to-checkout {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.wc-proceed-to-checkout a.checkout-button {
    font-size: 0 !important;
    position: relative;
    border-radius: 10px !important;
    min-height: 60px !important;
    width: 100%;
    text-align: center;
    padding: 18px !important;
    display: block;
}

.wc-proceed-to-checkout a.checkout-button::after {
    content: "Поръчай сега";
    font-size: 18px;
    font-weight: 600;
    line-height: 30px;
}


/* =============================================
   ИЗВЕСТИЯ / ТОАСТ
   (z-index е над мини количката, за да се вижда
   "Върни" след изтриване от дрaуера)
   ============================================= */

.woocommerce-message {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    top: auto !important;
    z-index: 1000003;
    min-width: 350px;
    max-width: 500px;
    background: #1f5f2f !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 12px !important;
    padding: 18px 20px 18px 55px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-size: 16px !important;
    font-weight: 500 !important;
}

.woocommerce-message::before {
    color: #fff !important;
    left: 20px !important;
}

.woocommerce-message a {
    color: #fff !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

.woocommerce-message a.restore-item,
.woocommerce-message a[href*="undo-item"],
.woocommerce-message a[href*="_wpnonce"] {
    display: table !important;
    margin-top: 12px !important;
    margin-left: 0 !important;
    clear: both !important;
    padding: 6px 14px !important;
    background: #fff !important;
    color: #1f5f2f !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Маха бутона "Преглед на количката" */
.woocommerce-message .button,
.woocommerce-message a.button,
.woocommerce-message .wc-forward {
    display: none !important;
}

.woocommerce-info,
.woocommerce-error {
    border-radius: 10px;
    margin-bottom: 30px;
}

/* Undo известие от мини количката */
.mini-cart-undo-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000003;
    box-sizing: border-box;
    min-width: 350px;
    max-width: min(500px, calc(100vw - 32px));
    background: #1f5f2f;
    color: #fff;
    border-radius: 12px;
    padding: 22px 48px 18px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    font-size: 16px;
    font-weight: 500;
}

.ppp-toast-close {
    position: absolute !important;
    top: 7px !important;
    right: 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: inherit !important;
    font-family: Arial, sans-serif !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    opacity: .9;
    z-index: 2;
}

.ppp-toast-close:hover {
    background: rgba(255, 255, 255, .16) !important;
    opacity: 1;
}

.woocommerce-message {
    position: relative;
    padding-right: 48px !important;
}


@media (max-width: 600px) {
    .mini-cart-undo-notice {
        left: 16px;
        right: 16px;
        bottom: 16px;
        min-width: 0;
        max-width: none;
        width: auto;
    }
}

.mini-cart-undo-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    background: #fff;
    color: #1f5f2f;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.mini-cart-undo-btn:hover {
    opacity: .9;
}


/* =============================================
   ПОРЪЧКА (CHECKOUT)
   ============================================= */

.page-id-1221 .entry-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
}

.li-checkout-order-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

/* Таблица с поръчката */
.woocommerce-checkout-review-order-table {
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.woocommerce-checkout-review-order-table td,
.woocommerce-checkout-review-order-table th {
    border: 0 !important;
}

.woocommerce-checkout-review-order-table thead {
    display: none;
}

.woocommerce-checkout-review-order-table tbody tr.cart_item {
    border-bottom: 1px solid #ece7dd;
}

.woocommerce-checkout-review-order-table tbody tr.cart_item:last-child {
    border-bottom: 0;
}

.woocommerce-checkout-review-order-table .product-name {
    width: 100%;
    padding: 22px 0 !important;
    vertical-align: top;
}

.woocommerce-checkout-review-order-table .product-total {
    display: none;
}

/* Карта на продукта */
.checkout-product-card {
    display: block;
    text-align: left;
}

.checkout-product-images {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.checkout-product-images img:first-child {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.checkout-uploaded-image {
    width: 56px !important;
    height: 56px !important;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.checkout-product-content {
    flex: 1;
    text-align: left;
}

.checkout-product-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #1d1d1d;
}

.checkout-product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    width: 100%;
}

.checkout-option-badge {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid #ddd3c4;
    border-radius: 999px;
    background: #fff;
    font-size: 15px;
    line-height: 1.4;
    white-space: nowrap;
}

.checkout-product-price {
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #23452f;
}

.checkout-product-price span {
    font-weight: 700;
}

.checkout-product-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d7c8a8;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

/* Суми */
.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
    padding-top: 20px !important;
    font-size: 18px;
}

.order-total th,
.order-total td {
    font-size: 22px !important;
    font-weight: 700;
}

.order-total td {
    color: #23452f;
}

@media (min-width: 1024px) {

    #customer_details {
        float: left;
        width: 52% !important;
    }

    #order_review {
        float: right;
        width: 43% !important;
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        overflow-x: hidden;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    #order_review::-webkit-scrollbar {
        width: 8px;
    }

    #order_review::-webkit-scrollbar-track {
        background: #f5f2ec;
        border-radius: 20px;
    }

    #order_review::-webkit-scrollbar-thumb {
        background: #d7c8a8;
        border-radius: 20px;
    }

    #order_review::-webkit-scrollbar-thumb:hover {
        background: #cbb892;
    }

    /* Заглавието — със същата ширина като количката */
    #order_review_heading {
        display: block !important;
        text-align: center !important;
        font-size: 32px;
        font-weight: 700;
        max-width: 700px;
        margin: 0 auto 25px auto !important;
        padding: 0 !important;
        border: none !important;
        background: none !important;
        box-shadow: none !important;
    }
}


/* =============================================
   ХЕРО БАНЕРИ (Spectra) И СЕКЦИИ — ДЕСКТОП
   ============================================= */

@media (min-width: 768px) {

    /* Full-bleed контейнери */
    .wp-block-spectra-container[data-spectra-id="spectra-183d2ba2"],
    .page-id-1221 .wp-block-spectra-container.alignfull,
    .page-id-5414 .alignfull {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
    }

    [data-spectra-id="spectra-183d2ba2"] {
        height: 665px !important;
        min-height: 665px !important;
        padding-top: 350px !important;
    }

    [data-spectra-id="spectra-0dccf095"] {
        height: 665px !important;
        min-height: 665px !important;
        padding-top: 320px !important;
    }

    #store-hero {
        padding-top: 280px !important;
    }

    .zanas,
    .kontakti {
        height: 729px !important;
        min-height: 729px !important;
    }

    .kontaktitext {
        margin-top: 40px !important;
    }
}

@media (min-width: 1024px) {

    .cats {
        margin-top: -200px !important;
    }

    .categorii {
        height: 605px !important;
        min-height: 605px !important;
    }

    /* Десктоп херо секциите "За нас" и "Контакти".
       Компактна височина, леко повдигната композиция на фоновото изображение
       и центриране на заглавието по хоризонтала и вертикала. */
    .zanas,
    .kontakti {
        height: 585px !important;
        min-height: 585px !important;
        background-size: cover !important;
        background-position: 48% 45% !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        position: relative !important;
        text-align: center !important;
    }

    .zanas h1,
    .zanas h2,
    .zanas h3,
    .zanas .wp-block-heading,
    .kontakti h1,
    .kontakti h2,
    .kontakti h3,
    .kontakti .wp-block-heading,
    .kontaktitext {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        width: max-content !important;
        max-width: calc(100% - 40px) !important;
        margin: 0 !important;
        transform: translate(-50%, -50%) !important;
        text-align: center !important;
    }

    .kontaktitext {
        margin-top: 0 !important;
    }

    /* Само заглавието на страницата „За нас“ е леко по-високо,
       за да съвпада визуално с центрирането на „Контакти“. */
    .zanas h1,
    .zanas h2,
    .zanas h3,
    .zanas .wp-block-heading {
        top: calc(50% - 55px) !important;
    }

    /* Заглавието на „Контакти“ е повдигнато със същото отместване. */
    .kontakti h1,
    .kontakti h2,
    .kontakti h3,
    .kontakti .wp-block-heading {
        top: calc(50% - 55px) !important;
    }

    [data-spectra-id="spectra-mf6kf9ad-f7w2p8"] {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 665px !important;
        padding: 35px 100px 35px 120px !important;
        box-sizing: border-box !important;
    }

    [data-spectra-id="spectra-mf6kf9ad-f7w2p8"] h5,
    [data-spectra-id="spectra-mf6kf9ad-f7w2p8"] p {
        text-align: center !important;
    }

    [data-spectra-id="spectra-mf6kf9ad-f7w2p8"] h5[data-spectra-id] {
        width: 100% !important;
    }

    p[data-spectra-id="spectra-b8fa4f56-8c45-45a0-934b-f8cff8fb956e"] {
        text-align: center !important;
        width: 100% !important;
    }
}


/* =========================================================================
   LEATHER INITIAL — Магазин (страница "Магазин" и резултати от търсене)
   ========================================================================= */

body.woocommerce-shop .ast-woocommerce-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-shop .woocommerce-products-header {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-shop .woocommerce-products-header .page-description {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Херо — full-bleed на всички размери */
body.woocommerce-shop #store-hero {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 calc(50% - 50vw) !important;
    padding: 0 !important;
}

/* Форма за търсене (цвят на бутона — от глобалния стил) */
body.woocommerce-shop .woocommerce-products-header form.wp-block-search {
    display: flex !important;
    width: calc(100% - 176px) !important;
    max-width: none !important;
    margin: 0 auto 35px auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.woocommerce-shop .woocommerce-products-header form.wp-block-search .wp-block-search__label {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-shop .woocommerce-products-header form.wp-block-search .wp-block-search__inside-wrapper {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #dedede !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

body.woocommerce-shop .woocommerce-products-header form.wp-block-search .wp-block-search__input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    font-size: 14px !important;
    line-height: 48px !important;
    color: #172f20 !important;
    box-sizing: border-box !important;
}

body.woocommerce-shop .woocommerce-products-header form.wp-block-search .wp-block-search__input::placeholder {
    color: #999999 !important;
    opacity: 1 !important;
}

body.woocommerce-shop .woocommerce-products-header form.wp-block-search .wp-block-search__input:focus {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

body.woocommerce-shop .woocommerce-products-header form.wp-block-search .wp-block-search__button {
    flex: 0 0 125px !important;
    width: 125px !important;
    min-width: 125px !important;
    max-width: 125px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    border-radius: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 48px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

/* Празен контейнер за избрани термини — скрит */
body.woocommerce-shop .woocommerce-products-header .wpc-custom-selected-terms {
    display: none !important;
}

/* Продуктова мрежа */
body.woocommerce-shop ul.products.columns-5 {
    clear: both !important;
    margin-top: 0 !important;
}

/* ---------------------------- Десктоп (≥768px) ---------------------------- */

@media (min-width: 768px) {

    body.woocommerce-shop .ast-woocommerce-container,
    body.search .ast-woocommerce-container {
        overflow: visible !important;
    }

    body.woocommerce-shop #store-hero > div {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.woocommerce-shop .woocommerce-products-header,
    body.search .woocommerce-products-header {
        position: static !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.woocommerce-shop .woocommerce-products-header .page-description,
    body.search .woocommerce-products-header .page-description {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Надпис "Магазин" върху херо снимката */
    body.woocommerce-shop #store-hero,
    body.search #store-hero {
        position: relative !important;
    }

    body.woocommerce-shop #store-hero::after,
    body.search #store-hero::after {
        content: "Магазин" !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 20 !important;
        color: #ffffff !important;
        font-family: inherit !important;
        font-size: 64px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        pointer-events: none !important;
    }

    /* Търсачка — под херо-то */
    body.woocommerce-shop .woocommerce-products-header form.wp-block-search,
    body.search .woocommerce-products-header form.wp-block-search {
        display: flex !important;
        position: static !important;
        width: calc(100% - 176px) !important;
        margin: 0 auto 8px auto !important;
        padding: 10px !important;
        visibility: visible !important;
        opacity: 1 !important;
        box-sizing: border-box !important;
    }

    /* Заглавие вляво */
    body.woocommerce-shop .li-shop-heading,
    body.search .li-shop-heading {
        display: block !important;
        float: left !important;
        position: static !important;
        width: auto !important;
        margin: 0 0 8px 48px !important;
        padding: 0 !important;
        font-size: 20px !important;
        line-height: 44px !important;
        font-weight: 600 !important;
        color: #172f20 !important;
        text-align: left !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Сортиране вдясно, на едно ниво със заглавието.
       Рамката е само на select-а (не двойна). */
    body.woocommerce-shop form.woocommerce-ordering,
    body.search form.woocommerce-ordering {
        display: block !important;
        float: right !important;
        position: static !important;
        width: auto !important;
        height: 44px !important;
        margin: 0 48px 8px 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: none !important;
        transform: translate(0, -5px) !important;
    }

    body.woocommerce-shop form.woocommerce-ordering select.orderby,
    body.search form.woocommerce-ordering select.orderby {
        width: auto !important;
        min-width: 220px !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 38px 0 14px !important;
        border: 1px solid #dedede !important;
        border-radius: 22px !important;
        background: #ffffff !important;
        color: #777777 !important;
        font-size: 14px !important;
        line-height: 44px !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

    /* Продукти — след заглавие + сортиране */
    body.woocommerce-shop ul.products,
    body.search ul.products {
        clear: both !important;
        position: static !important;
        width: calc(100% - 96px) !important;
        margin: 0 48px 40px 48px !important;
    }

    body.woocommerce-shop nav.woocommerce-pagination,
    body.search nav.woocommerce-pagination {
        clear: both !important;
        position: static !important;
        margin: 30px 0 40px 0 !important;
        text-align: center !important;
    }

    body.woocommerce-shop nav.woocommerce-pagination ul.page-numbers,
    body.search nav.woocommerce-pagination ul.page-numbers {
        display: inline-flex !important;
        position: static !important;
        left: auto !important;
        top: auto !important;
        margin: 0 auto !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
    }

    body.woocommerce-shop nav.woocommerce-pagination ul.page-numbers li,
    body.search nav.woocommerce-pagination ul.page-numbers li {
        margin: 0 !important;
    }
}

/* ----------------------------- Мобилна версия ----------------------------- */

@media (max-width: 767px) {

    body.woocommerce-shop .woocommerce-products-header {
        position: relative !important;
        margin-bottom: 105px !important;
    }

    /* Търсачка — под херо-то */
    body.woocommerce-shop .woocommerce-products-header form.wp-block-search {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        height: 105px !important;
        margin: 0 !important;
        padding: 18px 12px !important;
        background: #ffffff !important;
        z-index: 20 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-shop .woocommerce-products-header form.wp-block-search > label {
        display: none !important;
    }

    body.woocommerce-shop .woocommerce-products-header .wp-block-search__inside-wrapper {
        height: 54px !important;
    }

    body.woocommerce-shop .woocommerce-products-header .wp-block-search__input {
        flex: 1 1 auto !important;
        width: 80% !important;
        max-width: 80% !important;
        height: 54px !important;
        line-height: 48px !important;
    }

    body.woocommerce-shop .woocommerce-products-header .wp-block-search__button {
        flex: 0 0 110px !important;
        width: 110px !important;
        min-width: 110px !important;
        max-width: 110px !important;
        height: 54px !important;
        padding: 0 10px !important;
        line-height: normal !important;
    }

    /* Заглавие */
    body.woocommerce-shop .li-shop-heading {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 12px !important;
        text-align: left !important;
        font-size: 18px !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;
        color: #172f20 !important;
        box-sizing: border-box !important;
    }

    /* Сортиране */
    body.woocommerce-shop .woocommerce-ordering {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        top: -16px !important;
        z-index: 20 !important;
        float: none !important;
        width: 100% !important;
        margin: 0 0 32px 0 !important;
        padding: 0 12px !important;
        border: 0 !important;
        background: none !important;
        transform: none !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    body.woocommerce-shop .woocommerce-ordering select.orderby {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: 52px !important;
        min-height: 52px !important;
        margin: 0 !important;
        padding: 0 42px 0 18px !important;
        border: 1px solid #d8d8d8 !important;
        border-radius: 56px !important;
        background: #ffffff !important;
        font-size: 15px !important;
        line-height: 52px !important;
        color: #777777 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
        box-sizing: border-box !important;
    }

    /* Продукти — 2 колони */
    body.woocommerce-shop .ast-woocommerce-container {
        padding: 0 0 40px 0 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-shop ul.products.columns-5 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 20px !important;
        row-gap: 35px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 12px !important;
        clear: both !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-shop ul.products.columns-5::before,
    body.woocommerce-shop ul.products.columns-5::after {
        display: none !important;
    }

    body.woocommerce-shop ul.products.columns-5 li.product {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-shop ul.products.columns-5 li.product img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 0 12px 0 !important;
    }

    body.woocommerce-shop ul.products.columns-5 li.product .woocommerce-loop-product__title {
        margin: 0 0 7px 0 !important;
        padding: 0 !important;
        font-size: 15px !important;
        line-height: 1.35 !important;
        font-weight: 600 !important;
        color: #111111 !important;
    }

    body.woocommerce-shop ul.products.columns-5 li.product .ast-woo-product-category,
    body.woocommerce-shop ul.products.columns-5 li.product .woocommerce-loop-category__title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        color: #999999 !important;
    }

    body.woocommerce-shop ul.products.columns-5 li.product .price {
        margin-top: 6px !important;
        font-size: 15px !important;
        line-height: 1.3 !important;
        font-weight: 600 !important;
        color: #222222 !important;
    }

    /* Резултати от търсене — сортиране */
    body.search form.woocommerce-ordering {
        position: relative !important;
        top: -20px !important;
    }
}

@media (max-width: 480px) {

    body.woocommerce-shop .woocommerce-products-header .wp-block-search__input {
        font-size: 13px !important;
    }

    body.woocommerce-shop .woocommerce-products-header .wp-block-search__button {
        flex: 0 0 95px !important;
        width: 95px !important;
        min-width: 95px !important;
        max-width: 95px !important;
        padding: 0 8px !important;
        font-size: 12px !important;
    }

    body.woocommerce-shop ul.products.columns-5 {
        column-gap: 18px !important;
        row-gap: 32px !important;
    }
}


/* =========================================================================
   LEATHER INITIAL — My Account
   ========================================================================= */

body.woocommerce-account {
    --li-green: #142a1e;
    --li-green-soft: #1f3d2c;
    --li-green-tint: rgba(20, 42, 30, 0.06);

    --li-gold: #b08d57;
    --li-gold-dark: #8a6c3f;
    --li-gold-tint: rgba(176, 141, 87, 0.12);

    --li-cream: #faf7f1;
    --li-white: #ffffff;

    --li-text: #2b2b26;
    --li-text-muted: #736f66;

    --li-border: #e7e0d3;

    --li-radius: 6px;
    --li-shadow: 0 3px 18px rgba(20, 42, 30, 0.07);

    --li-danger: #a83a32;
    --li-danger-tint: rgba(168, 58, 50, 0.08);

    --kw-green: #0d2d1e;
    --kw-green-hover: #143d29;
    --kw-icon-bg: #f3ead8;
    --kw-card-bg: #ffffff;
    --kw-border: #e7e0d2;
    --kw-text: #2c2a25;
    --kw-text-muted: #786f5e;

    background: var(--li-cream) !important;
}

body.woocommerce-account #content,
body.woocommerce-account #primary,
body.woocommerce-account .site-content {
    background: var(--li-cream) !important;
}

body.woocommerce-account .entry-content {
    background: var(--li-cream);
    padding: clamp(2rem, 4vw, 4rem);
    border-radius: var(--li-radius);
}

body.woocommerce-account .entry-content .woocommerce {
    color: var(--li-text);
    font-size: 1rem;
    line-height: 1.6;
    padding-top: 40px;
}

body.woocommerce-account .entry-content .woocommerce::after {
    content: "";
    display: table;
    clear: both;
}

/* Общ текст */
body.woocommerce-account .entry-content h2 {
    color: var(--li-green);
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

body.woocommerce-account .entry-content a {
    color: var(--li-gold-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

body.woocommerce-account .entry-content a:hover {
    color: var(--li-green);
    text-decoration: underline;
}

/* Съобщения (зелените "message" известия са тостове — виж по-горе) */
body.woocommerce-account .woocommerce-notices-wrapper {
    margin-bottom: 1.5rem;
}

body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-info {
    background: var(--li-white);
    border: 1px solid var(--li-border);
    border-left: 4px solid var(--li-gold);
    border-radius: var(--li-radius);
    padding: 1rem 1.25rem;
    list-style: none;
    box-shadow: var(--li-shadow);
    font-size: 0.95rem;
}

body.woocommerce-account .woocommerce-error {
    border-left-color: var(--li-danger);
}

body.woocommerce-account .woocommerce-error::before,
body.woocommerce-account .woocommerce-info::before {
    display: none;
}

body.woocommerce-account .woocommerce-error li {
    list-style: none;
    margin: 0;
}

/* ---------- Вход / Регистрация — двете карти една до друга ---------- */

body.woocommerce-account #customer_login {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: 1300px !important;
    margin: 45px auto 60px !important;
    box-sizing: border-box;
}

body.woocommerce-account #customer_login .u-column1,
body.woocommerce-account #customer_login .u-column2 {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0 !important;
    width: calc(50% - 15px) !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    margin: 0 !important;
    padding: 34px 24px 28px !important;
    box-sizing: border-box !important;
    background: var(--li-white);
    border: 1px solid var(--li-border);
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(20, 42, 30, 0.06);
}

body.woocommerce-account #customer_login h2 {
    color: #09291b;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 25px;
    padding: 0 0 14px;
    border-bottom: 1px solid #e4dfd5;
    position: relative;
}

body.woocommerce-account #customer_login h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 42px;
    height: 2px;
    background: #b88a3b;
}

body.woocommerce-account .woocommerce-form-login,
body.woocommerce-account .woocommerce-form-register {
    display: flex;
    flex-direction: column;
    flex: 1;
}

body.woocommerce-account .woocommerce-form-row {
    margin: 0 0 1.35rem;
}

body.woocommerce-account .woocommerce-form-row label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--li-green);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

body.woocommerce-account #customer_login label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #10251b;
}

body.woocommerce-account .woocommerce-form-login .woocommerce-Input,
body.woocommerce-account .woocommerce-form-register .woocommerce-Input,
body.woocommerce-account .woocommerce-form-login input[type="text"],
body.woocommerce-account .woocommerce-form-login input[type="password"],
body.woocommerce-account .woocommerce-form-login input[type="email"],
body.woocommerce-account .woocommerce-form-register input[type="text"],
body.woocommerce-account .woocommerce-form-register input[type="password"],
body.woocommerce-account .woocommerce-form-register input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    height: 48px;
    background: #faf8f3;
    border: 1px solid #ded8cc;
    border-radius: 7px;
    padding: 0 14px;
    font-size: 15px;
    color: #10251b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.woocommerce-account .woocommerce-form-login .woocommerce-Input:focus,
body.woocommerce-account .woocommerce-form-register .woocommerce-Input:focus,
body.woocommerce-account .woocommerce-form-login input:focus,
body.woocommerce-account .woocommerce-form-register input:focus {
    outline: none;
    background: var(--li-white);
    border-color: #b88a3b;
    box-shadow: 0 0 0 3px rgba(184, 138, 59, 0.10);
}

body.woocommerce-account .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--li-text-muted);
    margin-bottom: 1.25rem;
    cursor: pointer;
}

body.woocommerce-account .woocommerce-form-login__rememberme input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--li-green);
}

body.woocommerce-account .woocommerce-privacy-policy-text {
    font-size: 13px;
    line-height: 1.7;
    color: #806f5d;
    margin: 5px 0 28px;
}

body.woocommerce-account .lost_password {
    margin-top: 0.9rem;
    font-size: 0.86rem;
}

/* Бутони — общи (навигация, адреси, пагинация и т.н.) */
body.woocommerce-account .button,
body.woocommerce-account input[type="submit"],
body.woocommerce-account .woocommerce-Button,
body.woocommerce-account button.woocommerce-Button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0d2d1e !important;
    color: #ffffff !important;
    border: 1px solid #0d2d1e !important;
    border-radius: 7px;
    padding: 0 28px;
    min-height: 48px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

body.woocommerce-account .button:hover,
body.woocommerce-account input[type="submit"]:hover,
body.woocommerce-account .woocommerce-Button:hover,
body.woocommerce-account button.woocommerce-Button:hover {
    background: #17452f !important;
    border-color: #17452f !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138, 108, 63, 0.18);
}

body.woocommerce-account .button:active,
body.woocommerce-account input[type="submit"]:active {
    transform: translateY(0);
}

/* Бутони вход/регистрация — фиксирана ширина */
body.woocommerce-account #customer_login .u-column1 .woocommerce-form-login__submit,
body.woocommerce-account #customer_login .u-column2 .woocommerce-form-register__submit {
    display: flex !important;
    width: 255px !important;
    min-width: 255px !important;
    max-width: 255px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 10px auto 0 !important;
    padding: 0 28px !important;
    border: none !important;
    border-radius: 7px !important;
    box-sizing: border-box !important;
}

/* Око за парола */
body.woocommerce-account #customer_login .password-input {
    position: relative !important;
}

body.woocommerce-account #customer_login .password-input button.show-password-input {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 36px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: #0d2d1e !important;
    box-shadow: none !important;
}

body.woocommerce-account #customer_login .password-input button.show-password-input:hover {
    background: rgba(13, 45, 30, 0.07) !important;
}

body.woocommerce-account #customer_login .password-input button.show-password-input:focus,
body.woocommerce-account #customer_login .password-input button.show-password-input:active {
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Линк "нямаш акаунт / вече имаш акаунт" */
body.woocommerce-account .woocommerce-account-toggle {
    text-align: center !important;
    margin: 20px 0 0 !important;
    padding: 0;
    font-size: 14px !important;
    color: #806f5d !important;
    line-height: 1.5;
}

body.woocommerce-account .woocommerce-account-toggle a {
    color: #9a702e !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

body.woocommerce-account .woocommerce-account-toggle a:hover {
    color: #0d2d1e !important;
    text-decoration: underline !important;
}

/* ---------- Меню в акаунта ---------- */

body.woocommerce-account .woocommerce-MyAccount-navigation {
    float: left;
    width: 250px;
    box-sizing: border-box;
    background: var(--li-white);
    border: 1px solid var(--li-border);
    border-radius: var(--li-radius);
    box-shadow: var(--li-shadow);
    padding: 0.75rem;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0 0 0.15rem;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 0.7rem 0.9rem;
    border-radius: 4px;
    border-left: 3px solid transparent;
    color: var(--li-text);
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    background: var(--li-green-tint);
    color: var(--li-green);
    text-decoration: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    background: var(--li-green);
    color: var(--li-white);
    border-left-color: var(--li-gold);
    font-weight: 600;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: var(--li-danger);
}

body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: var(--li-danger-tint);
    color: var(--li-danger);
}

/* ---------- Съдържание на акаунта ---------- */

body.woocommerce-account .woocommerce-MyAccount-content {
    overflow: hidden;
    background: var(--li-white);
    border: 1px solid var(--li-border);
    border-radius: var(--li-radius);
    box-shadow: var(--li-shadow);
    padding: 2rem 2.25rem;
    box-sizing: border-box;
}

body.woocommerce-account .woocommerce-MyAccount-content p {
    margin: 0 0 1rem;
    color: var(--li-text);
}

body.woocommerce-account .woocommerce-MyAccount-content strong {
    color: var(--li-green);
}

/* Поръчки и файлове за изтегляне */
body.woocommerce-account .woocommerce-orders-table,
body.woocommerce-account .woocommerce-table--order-downloads {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

body.woocommerce-account .woocommerce-orders-table thead th,
body.woocommerce-account .woocommerce-table--order-downloads thead th {
    text-align: left;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--li-text-muted);
    border-bottom: 2px solid var(--li-border);
    padding: 0.75rem 0.9rem;
    font-weight: 600;
}

body.woocommerce-account .woocommerce-orders-table tbody td,
body.woocommerce-account .woocommerce-table--order-downloads tbody td {
    padding: 0.9rem;
    border-bottom: 1px solid var(--li-border);
    vertical-align: middle;
}

body.woocommerce-account .woocommerce-orders-table tbody tr:hover,
body.woocommerce-account .woocommerce-table--order-downloads tbody tr:hover {
    background: var(--li-cream);
}

/* Статус на поръчка */
body.woocommerce-account .woocommerce-orders-table mark.order-status {
    display: inline-block;
    background: var(--li-green-tint);
    color: var(--li-green);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
}

body.woocommerce-account .woocommerce-orders-table mark.order-status span {
    color: inherit;
}

body.woocommerce-account .woocommerce-orders-table mark.status-processing {
    background: var(--li-gold-tint);
    color: var(--li-gold-dark);
}

body.woocommerce-account .woocommerce-orders-table mark.status-on-hold,
body.woocommerce-account .woocommerce-orders-table mark.status-pending {
    background: rgba(115, 111, 102, 0.12);
    color: var(--li-text-muted);
}

body.woocommerce-account .woocommerce-orders-table mark.status-cancelled,
body.woocommerce-account .woocommerce-orders-table mark.status-failed,
body.woocommerce-account .woocommerce-orders-table mark.status-refunded {
    background: var(--li-danger-tint);
    color: var(--li-danger);
}

body.woocommerce-account .woocommerce-MyAccount-downloads-file a {
    font-weight: 600;
    color: var(--li-green);
}

/* ---------- Адреси ---------- */

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses * {
    box-sizing: border-box;
}

/* Голямата бяла карта, само на страница Addresses */
body.woocommerce-account .woocommerce-MyAccount-content:has(.woocommerce-Addresses) {
    background: var(--kw-card-bg);
    border: 1px solid var(--kw-border);
    border-radius: 16px;
    box-shadow: 0 2px 14px rgba(13, 45, 30, 0.06);
    padding: 32px;
    max-width: 100%;
    overflow: hidden;
}

/* Заглавие + подтекст (вмъкват се с JS) */
body.woocommerce-account .woocommerce-MyAccount-content .kw-addr-heading {
    margin: 0 0 8px 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.25;
    color: var(--kw-green);
}

body.woocommerce-account .woocommerce-MyAccount-content .kw-addr-intro {
    margin: 0 0 28px 0;
    color: var(--kw-text-muted);
    font-size: 15px;
    line-height: 1.5;
}

/* Двете карти една до друга */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses::before,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses::after {
    content: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    background: var(--kw-card-bg);
    border: 1px solid var(--kw-border);
    border-radius: 14px;
    box-shadow: 0 1px 6px rgba(13, 45, 30, 0.04);
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: center;
}

/* Хедър на картата — иконка / заглавие / бутон */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title.title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 8px;
    text-align: center;
    border-bottom: 1px solid var(--kw-border);
}

/* Кръгла иконка (чист CSS) */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .u-column1.col-1.woocommerce-Address .woocommerce-Address-title.title::before,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .u-column2.col-2.woocommerce-Address .woocommerce-Address-title.title::before {
    content: '';
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0 auto 4px auto;
    border-radius: 50%;
    background-color: var(--kw-icon-bg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    transform: translateY(5px);
}

/* иконка "човек" — лява карта */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .u-column1.col-1.woocommerce-Address .woocommerce-Address-title.title::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d2d1e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5 20c0-3.5 3-6 7-6s7 2.5 7 6'/%3E%3C/svg%3E");
}

/* иконка "камион" — дясна карта */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .u-column2.col-2.woocommerce-Address .woocommerce-Address-title.title::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d2d1e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='11' height='9'/%3E%3Cpath d='M13 10h4l3 3v3h-7z'/%3E%3Ccircle cx='7' cy='18' r='1.6'/%3E%3Ccircle cx='17' cy='18' r='1.6'/%3E%3C/svg%3E");
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title h3,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title h2 {
    display: block;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
    text-align: center;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title h3 .kw-title-main {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--kw-green);
    text-align: center;
    overflow-wrap: break-word;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title h3 .kw-title-sub {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--kw-text-muted);
    text-align: center;
}

/* Бутон "Промени" */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title .edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none;
    position: static;
    width: auto;
    min-width: 0;
    max-width: 100%;
    flex: 0 0 auto;
    margin: 4px auto 0 auto;
    padding: 9px 16px;
    box-sizing: border-box;
    gap: 6px;
    background-color: var(--kw-green);
    color: #ffffff;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 600;
    text-align: center;
    white-space: normal;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title .edit:hover,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title .edit:focus {
    background-color: var(--kw-green-hover);
    color: #ffffff !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title .edit::before {
    content: '';
    width: 13px;
    height: 13px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4l10-10-4-4L4 16z'/%3E%3C/svg%3E");
}

/* Адрес — текст на редове с иконки (JS добавя .kw-addr-row) */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin: 26px 0 0 0;
    padding: 0;
    text-align: left;
    color: var(--kw-text);
    font-size: 14.5px;
    line-height: 1.5;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses address .kw-addr-row {
    display: flex;
    align-items: flex-start;
    width: 100%;
    gap: 12px;
    margin: 0 0 7px 0;
    text-align: left;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses address .kw-addr-row-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses address .kw-addr-row-text {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: normal;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses address .kw-icon-user {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d2d1e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.2'/%3E%3Cpath d='M5 20c0-3.5 3-6 7-6s7 2.5 7 6'/%3E%3C/svg%3E");
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses address .kw-icon-globe {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d2d1e' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.7 2.5 15.3 0 18M12 3c-2.5 2.7-2.5 15.3 0 18'/%3E%3C/svg%3E");
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses address .kw-icon-pin {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d2d1e' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.4 7-11.5A7 7 0 0 0 5 9.5C5 14.6 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.3'/%3E%3C/svg%3E");
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses address .kw-icon-building {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d2d1e' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='11' height='18'/%3E%3Cpath d='M15 8h5v13h-5'/%3E%3Cpath d='M7 7h1M11 7h1M7 11h1M11 11h1M7 15h1M11 15h1'/%3E%3C/svg%3E");
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses address .kw-icon-mail {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d2d1e' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
}

/* Скрива "Използвай този адрес", ако JS го маркира */
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .kw-hide-use-address {
    display: none !important;
}

/* ---------- Данни за акаунта ---------- */

body.woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row {
    max-width: 480px;
}

body.woocommerce-account .woocommerce-EditAccountForm label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--li-green);
    margin-bottom: 0.4rem;
}

body.woocommerce-account .woocommerce-EditAccountForm input[type="text"],
body.woocommerce-account .woocommerce-EditAccountForm input[type="email"],
body.woocommerce-account .woocommerce-EditAccountForm input[type="password"] {
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    height: 50px;
    background: var(--li-cream);
    border: 1px solid var(--li-border);
    border-radius: var(--li-radius);
    padding: 0 0.9rem;
    font-size: 0.95rem;
    color: var(--li-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.woocommerce-account .woocommerce-EditAccountForm input:focus {
    outline: none;
    background: var(--li-white);
    border-color: var(--li-gold);
    box-shadow: 0 0 0 3px var(--li-gold-tint);
}

body.woocommerce-account .woocommerce-EditAccountForm fieldset,
body.woocommerce-account .woocommerce-EditAccountForm .woocommerce-EditAccountForm-fieldset {
    border: none;
    padding: 1.5rem 0 0;
    margin: 2rem 0 0;
    border-top: 1px solid var(--li-border);
}

body.woocommerce-account .woocommerce-EditAccountForm legend {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--li-green);
    padding: 0;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

/* ---------- Отзивчивост (акаунт) ---------- */

@media (max-width: 900px) {

    body.woocommerce-account #customer_login {
        max-width: 760px !important;
        gap: 20px !important;
    }

    body.woocommerce-account #customer_login .u-column1,
    body.woocommerce-account #customer_login .u-column2 {
        padding: 28px 24px 24px !important;
    }
}

@media (max-width: 767px) {

    /* Вход / регистрация — една под друга, в рамките на екрана */
    body.woocommerce-account #customer_login {
        width: calc(100% - 28px) !important;
        max-width: 620px !important;
        margin: 25px auto 40px !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    body.woocommerce-account #customer_login .u-column1,
    body.woocommerce-account #customer_login .u-column2 {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: none !important;
        padding: 25px 20px 22px !important;
        border-radius: 10px !important;
    }

    body.woocommerce-account #customer_login h2 {
        font-size: 21px !important;
    }

    body.woocommerce-account #customer_login input.input-text {
        height: 46px !important;
    }

    body.woocommerce-account #customer_login .u-column1 .woocommerce-form-login__submit,
    body.woocommerce-account #customer_login .u-column2 .woocommerce-form-register__submit {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 255px !important;
    }

    /* Табло: менюто и съдържанието — центрирани карти */
    body.woocommerce-account .woocommerce-MyAccount-navigation,
    body.woocommerce-account .woocommerce-MyAccount-content {
        width: 300px;
        max-width: calc(100vw - 40px);
        margin-left: auto;
        margin-right: auto;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation {
        float: none;
        margin-top: 30px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content {
        margin-top: 7px;
    }

    /* Адреси */
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title .edit {
        max-width: 100%;
        padding: 8px 14px;
        font-size: 12px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title h3,
    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address-title h2 {
        font-size: 17px;
    }
}

@media (max-width: 480px) {

    body.woocommerce-account .woocommerce-MyAccount-content:has(.woocommerce-Addresses) {
        padding: 20px 16px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content .kw-addr-heading {
        font-size: 21px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address {
        padding: 18px;
    }
}


/* =====================================================
   ТАБЛЕТ — 768px до 1023px
   ===================================================== */

@media (min-width: 768px) and (max-width: 1023px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: clip !important;
        box-sizing: border-box !important;
    }

    #page,
    .site,
    .site-content,
    .entry-content,
    .ast-container {
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    img,
    video,
    iframe {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}


/* =====================================================================
   ТЕЛЕФОНИ — max-width 767px
   (всички мобилни правила са събрани тук и са подредени логично)
   ===================================================================== */

/* ------------------------------------------------------------
   1) Предпазване от хоризонтален scroll + основни контейнери
   ------------------------------------------------------------ */

@media (max-width: 767px) {

    html {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: clip !important;
        overscroll-behavior-x: none !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        box-sizing: border-box !important;
    }

    body {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        overflow-x: clip !important;
        overscroll-behavior-x: none !important;
        touch-action: pan-y !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        box-sizing: border-box !important;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }

    #page,
    .site,
    .site-content,
    .entry-content,
    .ast-container,
    .site-main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    #page,
    .site,
    .site-content,
    .entry-content {
        overflow-x: clip !important;
    }

    html,
    body,
    #page,
    .site,
    .site-content,
    .entry-content {
        border-right: 0 !important;
        box-shadow: none !important;
    }

    img,
    video,
    iframe,
    svg {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Spectra контейнери на началната страница */
    body.home .wp-block-spectra-container,
    body.home .wp-block-group,
    body.home .wp-block-columns,
    body.home .wp-block-column,
    body.home .wp-block-search,
    body.home .wp-block-search__inside-wrapper {
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Дълъг текст не разширява страницата */
    body.home p,
    body.home h1,
    body.home h2,
    body.home h3,
    body.home h4,
    body.home h5,
    body.home h6,
    body.home a,
    body.home span {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* Търсачка на началната страница */
    body.home .wp-block-search,
    body.home .wp-block-search__inside-wrapper {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.home .wp-block-search input[type="search"] {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Desktop full-bleed елементите стават нормални 100% */
    .wp-block-spectra-container[data-spectra-id="spectra-183d2ba2"],
    .page-id-1221 .wp-block-spectra-container.alignfull,
    .page-id-5414 .alignfull {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-cart,
    body.woocommerce-checkout {
        overflow-x: clip !important;
        overscroll-behavior-x: none !important;
    }

    /* Контейнер на архивите — full-bleed (страницата "Магазин" има свои правила) */
    .ast-woocommerce-container {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
    }

    .page-description {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        margin-bottom: -75px !important;
    }
}




/* ------------------------------------------------------------
   3) Начална страница и херо секции
   ------------------------------------------------------------ */

@media (max-width: 767px) {

    .hero-search-title {
        position: relative;
        top: -100px;
        text-align: center !important;
    }

    .wp-block-search {
        position: relative;
        top: -100px;
    }

    [data-spectra-id="02e43d4d"] {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 350px !important;
        min-height: 350px !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
    }

    [data-spectra-id="spectra-183d2ba2"] {
        height: 458px !important;
        min-height: 458px !important;
    }

    body.post-type-archive-product [data-spectra-id="spectra-183d2ba2"] {
        height: 400px !important;
        min-height: 400px !important;
    }

    [data-spectra-id="spectra-0dccf095"] {
        height: 458px !important;
        min-height: 458px !important;
    }

    .cats {
        position: relative !important;
        top: 50px !important;
    }

    .categorii {
        height: 500px !important;
        min-height: 500px !important;
    }

    /* Заглавия на архивите */
    h1.woocommerce-products-header__title.page-title {
        position: relative !important;
        top: clamp(-1.875rem, -6vw, -0.75rem) !important;
        transform: translateY(35px) !important;
        text-align: center !important;
    }

    /* Сортиране (категории) — страницата "Магазин" и търсенето имат свои правила */
    .woocommerce-ordering select.orderby {
        width: 100% !important;
        max-width: 350px !important;
        height: 50px !important;
        min-height: 50px !important;
        padding: 0 35px 0 12px !important;
        line-height: 50px !important;
        box-sizing: border-box !important;
    }

    form.woocommerce-ordering {
        position: relative !important;
        top: clamp(-0.625rem, -2vw, -0.25rem) !important;
    }

    /* Скрива заглавието на колекцията навсякъде освен на "Магазин" */
    .li-shop-heading {
        display: none !important;
    }

    body.woocommerce-shop .li-shop-heading {
        display: block !important;
    }
}

@media (max-width: 374px) {

    body.home .hero-search-title {
        font-size: clamp(22px, 7vw, 25px) !important;
        line-height: 1.2 !important;
        margin-top: 38px !important;
        margin-bottom: -20px !important;
    }
}

@media (min-width: 375px) and (max-width: 430px) {

    body.home .hero-search-title {
        font-size: clamp(24px, 6.8vw, 29px) !important;
    }
}

@media (min-width: 431px) and (max-width: 767px) {

    body.home .hero-search-title {
        font-size: clamp(26px, 5.5vw, 32px) !important;
    }

    .woocommerce-cart .ast-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}


/* ------------------------------------------------------------
   4) Количка (cart.php) — карти вместо таблица
   ------------------------------------------------------------ */

@media (max-width: 767px) {

    .woocommerce-cart-form,
    .woocommerce-cart-form *,
    .woocommerce-cart-form *::before,
    .woocommerce-cart-form *::after,
    .cart-collaterals,
    .cart-collaterals *,
    .cart-collaterals *::before,
    .cart-collaterals *::after {
        box-sizing: border-box;
    }

    .woocommerce-cart .site-content {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .woocommerce-cart .ast-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .woocommerce-cart .woocommerce {
        padding: 14px;
        border-radius: 14px;
    }

    .woocommerce-cart table.shop_table.cart,
    .woocommerce-cart table.shop_table.cart tbody,
    .woocommerce-cart table.shop_table.cart tr {
        display: block;
        width: 100%;
    }

    .woocommerce-cart table.shop_table.cart {
        margin-bottom: 24px;
    }

    .woocommerce-cart table.shop_table thead {
        display: none;
    }

    /* Всеки продукт = отделна карта */
    .woocommerce-cart table.shop_table.cart tr.cart_item {
        display: flex;
        flex-wrap: wrap;
        position: relative;
        background: #fff;
        border: 1px solid #f0ece4;
        border-radius: 16px;
        padding: 18px 16px;
        margin-bottom: 18px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    }

    .woocommerce-cart table.shop_table.cart tr.cart_item td {
        border-top: none;
        padding: 0;
        vertical-align: top;
    }

    /* Ред 1: снимка + име */
    .woocommerce-cart table.shop_table.cart td.product-thumbnail {
        order: 1;
        flex: 0 0 auto;
        width: auto;
    }

    .woocommerce-cart table.cart td.product-thumbnail img,
    .woocommerce table.shop_table .product-thumbnail img,
    .woocommerce-page table.shop_table .product-thumbnail img {
        width: 108px !important;
        max-width: 108px !important;
        height: 108px !important;
        object-fit: cover;
        border-radius: 12px;
    }

    .woocommerce-cart table.shop_table.cart td.product-name {
        order: 2;
        flex: 1 1 0%;
        min-width: 0;
        width: auto;
        font-size: 14px;
        line-height: 1.5;
        padding-left: 14px !important;
        padding-right: 44px !important;
    }

    .woocommerce-cart .product-name a {
        font-size: 17px;
        display: block;
    }

    .woocommerce-cart table.shop_table.cart td.product-name,
    .product-personalization dl.variation dd,
    .product-personalization dl.variation dd p {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Качената снимка (PPP) — компактно */
    .woocommerce-cart .ppp-cart-image-thumb {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-left: 0 !important;
        margin-top: 10px !important;
    }

    .woocommerce-cart .ppp-cart-image-thumb span {
        font-size: 10px !important;
        margin-bottom: 0 !important;
        white-space: nowrap;
    }

    .woocommerce-cart td .ppp-cart-image-thumb img,
    .woocommerce-cart table.cart td .ppp-cart-image-thumb img {
        width: 48px !important;
        max-width: 48px !important;
        height: 48px !important;
    }

    /* Редове: цена, персонализации, количество, общо */
    .woocommerce-cart table.shop_table.cart td.product-price,
    .woocommerce-cart table.shop_table.cart td.product-personalization,
    .woocommerce-cart table.shop_table.cart td.product-quantity,
    .woocommerce-cart table.shop_table.cart td.product-subtotal {
        flex: 0 0 100%;
        width: 100%;
        margin-top: 14px;
        padding-top: 14px !important;
        border-top: 1px solid #f0ece4 !important;
    }

    .woocommerce-cart table.shop_table.cart td.product-price        { order: 3; }
    .woocommerce-cart table.shop_table.cart td.product-personalization { order: 4; }
    .woocommerce-cart table.shop_table.cart td.product-quantity     { order: 5; }

    .woocommerce-cart table.shop_table.cart td.product-subtotal {
        order: 6;
        font-size: 17px !important;
    }

    /* Мини-етикети вместо табличния header */
    .woocommerce-cart table.shop_table.cart td.product-price::before,
    .woocommerce-cart table.shop_table.cart td.product-personalization::before,
    .woocommerce-cart table.shop_table.cart td.product-quantity::before,
    .woocommerce-cart table.shop_table.cart td.product-subtotal::before {
        display: block;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #999;
        margin-bottom: 8px;
    }

    .woocommerce-cart table.shop_table.cart td.product-price::before        { content: "Единична цена"; }
    .woocommerce-cart table.shop_table.cart td.product-personalization::before { content: "Персонализации"; }
    .woocommerce-cart table.shop_table.cart td.product-quantity::before     { content: "Количество"; }
    .woocommerce-cart table.shop_table.cart td.product-subtotal::before     { content: "Общо"; }

    /* Без персонализации — без етикет */
    .woocommerce-cart table.shop_table.cart td.product-personalization:empty {
        display: none;
    }

    .product-personalization dl.variation dd {
        padding: 4px 12px;
        font-size: 13px;
    }

    /* Премахване — кръгъл chip горе вдясно */
    .woocommerce-cart table.shop_table.cart td.product-remove {
        order: 0;
        position: absolute;
        top: 14px;
        right: 14px;
        width: auto;
    }

    .woocommerce-cart .product-remove a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 18px !important;
        line-height: 1 !important;
        background: #f7f5f1 !important;
        border-radius: 50% !important;
    }

    .woocommerce-cart input.qty {
        width: 110px;
        height: 48px;
        font-size: 16px;
    }

    .woocommerce-cart table.shop_table.cart td.actions {
        display: block;
        width: 100%;
        padding: 0 !important;
        margin-top: 6px;
    }

    .woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"] {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Cart Totals */
    .cart_totals {
        padding: 20px;
        border-radius: 14px;
        margin-top: 20px;
    }

    .cart_totals h2 {
        font-size: 22px;
    }

    .cart_totals table {
        margin-top: -20px !important;
    }

    .cart_totals tr.order-total td {
        padding: 32px 0 20px 0 !important;
        font-size: 19px !important;
    }

    .wc-proceed-to-checkout a.checkout-button {
        min-height: 54px !important;
        padding: 14px !important;
    }

    /* Тостове */
    .woocommerce-message {
        left: 16px !important;
        right: 16px !important;
        bottom: 16px !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
        font-size: 14px !important;
        padding: 16px 16px 16px 46px !important;
    }

    .woocommerce-message::before {
        left: 16px !important;
    }

    .mini-cart-undo-notice {
        left: 16px;
        right: 16px;
        bottom: 16px;
        min-width: 0;
        max-width: none;
        width: auto;
        font-size: 14px;
    }
}

@media (max-width: 374px) {

    .woocommerce-cart .ast-container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .woocommerce-cart .woocommerce {
        padding: 10px !important;
    }

    .woocommerce-cart table.cart td.product-thumbnail img,
    .woocommerce table.shop_table .product-thumbnail img,
    .woocommerce-page table.shop_table .product-thumbnail img {
        width: 88px !important;
        max-width: 88px !important;
        height: 88px !important;
    }

    .woocommerce-cart table.shop_table.cart td.product-name {
        padding-left: 10px !important;
        padding-right: 38px !important;
    }

    .woocommerce-cart .product-name a {
        font-size: 16px !important;
    }

    .woocommerce-cart input.qty {
        width: 100px !important;
    }

    .woocommerce-message,
    .mini-cart-undo-notice {
        left: 10px !important;
        right: 10px !important;
    }
}


/* ------------------------------------------------------------
   5) Поръчка (checkout) — мобилно
   ------------------------------------------------------------ */

@media (max-width: 767px) {

    .li-checkout-order-card {
        padding: 18px;
    }

    .checkout-product-images img:first-child {
        width: 70px;
        height: 70px;
    }

    .checkout-uploaded-image {
        width: 50px !important;
        height: 50px !important;
    }

    .checkout-product-title,
    .checkout-product-price {
        font-size: 16px;
    }
}


/* ------------------------------------------------------------
   6) Единичен продукт — мобилно
   ------------------------------------------------------------ */

@media screen and (max-width: 767px) {

    body.single-product .ast-woocommerce-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.single-product div.product {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    /* Снимка на продукта
       Оставяме WooCommerce/FlexSlider да управлява ширината на wrapper-а
       и отделните слайдове чрез собствените си inline стойности. */
    body.single-product div.product .woocommerce-product-gallery {
        position: relative !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        /* The mobile header is fixed. A negative gallery margin pulls the
           first part of the product image underneath it on iOS Safari. */
        margin: 0 0 25px 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* Дясна част — заглавие, цена, бутони */
    body.single-product div.product .summary.entry-summary {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.single-product div.product .summary.entry-summary h1.product_title,
    body.single-product div.product h1.product_title.entry-title {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 30px !important;
        line-height: 1.18 !important;
        font-weight: 500 !important;
        margin: 0 0 44px 0 !important;
        padding: 0 !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
    }

    body.single-product div.product .summary.entry-summary .price {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: baseline !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        font-size: 22px !important;
        line-height: 1.35 !important;
        margin: 0 0 28px 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }

    body.single-product div.product .summary.entry-summary .price del {
        font-size: 17px !important;
    }

    body.single-product div.product .summary.entry-summary .price ins {
        text-decoration: none !important;
    }

    body.single-product div.product .summary.entry-summary .woocommerce-product-details__short-description {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
    }

    body.single-product div.product .summary.entry-summary .woocommerce-product-details__short-description p {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
    }

    /* Форма за количка */
    body.single-product div.product form.cart {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 0 25px 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.single-product div.product form.cart .quantity {
        flex: 0 0 70px !important;
        width: 70px !important;
        margin: 0 8px 0 0 !important;
    }

    body.single-product div.product form.cart .quantity .qty {
        width: 70px !important;
        max-width: 70px !important;
        height: 52px !important;
        min-height: 52px !important;
        box-sizing: border-box !important;
    }

    body.single-product div.product form.cart .single_add_to_cart_button {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        min-height: 52px !important;
        height: 52px !important;
        padding: 0 12px !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
        box-sizing: border-box !important;
    }

    /* Акордеони */
    body.single-product div.product .li-product-accordion {
        width: 100% !important;
        max-width: 100% !important;
        margin: 25px 0 0 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.single-product div.product .li-product-accordion > * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.single-product div.product .li-product-accordion p {
        max-width: 100% !important;
        font-size: 15px !important;
        line-height: 1.6 !important;
        overflow-wrap: break-word !important;
    }

    /* Табове / описание */
    body.single-product div.product .woocommerce-tabs {
        width: 100% !important;
        max-width: 100% !important;
        margin: 30px 0 0 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.single-product div.product .woocommerce-tabs .woocommerce-Tabs-panel {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.single-product .woocommerce-Tabs-panel--description {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    body.single-product .woocommerce-Tabs-panel--description > * {
        max-width: 100% !important;
    }

    /* Абзаци в описанието (отменя десктоп flex-а) */
    body.single-product .woocommerce-Tabs-panel--description p {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 18px 0 !important;
        overflow-wrap: break-word !important;
    }

    /* Абзац с картинки — картинките една под друга */
    body.single-product .woocommerce-Tabs-panel--description p:has(> img) {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 25px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.single-product .woocommerce-Tabs-panel--description p:has(> img) > img {
        display: block !important;
        width: 300px !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    /* Gutenberg колони в описанието — една под друга */
    body.single-product .woocommerce-Tabs-panel--description .wp-block-columns {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 20px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.single-product .woocommerce-Tabs-panel--description .wp-block-column {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.single-product .woocommerce-Tabs-panel--description .wp-block-image,
    body.single-product .woocommerce-Tabs-panel--description figure {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.single-product .woocommerce-Tabs-panel--description .wp-block-image img,
    body.single-product .woocommerce-Tabs-panel--description figure img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.single-product .woocommerce-Tabs-panel--description .wp-block-spectra-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.single-product .woocommerce-Tabs-panel--description .wp-block-spectra-container > * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.single-product .woocommerce-Tabs-panel--description [style*="width"],
    body.single-product .woocommerce-Tabs-panel--description [style*="min-width"] {
        max-width: 100% !important;
    }

    /* Подобни продукти */
    body.single-product div.product .related {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 45px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.single-product div.product .related > h2 {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin: 0 0 22px 0 !important;
        padding: 0 !important;
    }

    body.single-product div.product .related ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 20px 10px !important;
    }

    body.single-product div.product .related ul.products li.product {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        box-sizing: border-box !important;
    }

    body.single-product div.product .related ul.products li.product img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 0 10px 0 !important;
    }

    body.single-product div.product .related ul.products li.product .woocommerce-loop-product__title {
        font-size: 16px !important;
        line-height: 1.3 !important;
        margin: 0 0 7px 0 !important;
        padding: 0 !important;
        overflow-wrap: break-word !important;
    }

    /* Sale badge */
    body.single-product div.product .onsale {
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 9px 13px !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        border-radius: 30px !important;
    }

    /*
     * Не задаваме max-width на всички елементи в продукта.
     * WooCommerce/FlexSlider задава inline ширина на .woocommerce-product-gallery__wrapper,
     * която трябва да обхваща всички слайдове, а не само ширината на екрана.
     * Ограничаването ѝ до 100% скрива следващите изображения при смяна на миниатюра.
     */
    body.single-product div.product * {
        box-sizing: border-box;
    }
}

@media screen and (max-width: 374px) {

    body.single-product div.product {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.single-product div.product h1.product_title.entry-title {
        font-size: 27px !important;
    }

    body.single-product div.product .related > h2 {
        font-size: 25px !important;
    }
}


/* ------------------------------------------------------------
   7) Фини корекции на позиции (от визуалния редактор)
   ------------------------------------------------------------ */

@media (max-width: 767px) {

    div.ppp-header.ppp-header-quick-order-intro:nth-of-type(1) > h3 {
        font-weight: 400 !important;
        text-align: start !important;
    }

    #main {
        position: relative !important;
    }

    a.ast-builder-social-element.ast-inline-flex > span.ahfb-svg-iconset.ast-inline-flex > svg {
        position: relative !important;
        right: clamp(0.375rem, 3vw, 0.9375rem) !important;
    }

    div.site-footer-primary-section-2.site-footer-section:nth-of-type(2) > aside.footer-widget-area.widget-area {
        position: relative !important;
        bottom: clamp(0.5rem, 4vw, 1.25rem) !important;
    }

    div.ast-builder-html-element > p,
    #nav_menu-1,
    video {
        position: relative !important;
        bottom: clamp(0.75rem, 5vw, 1.875rem) !important;
    }

    div.spectra-is-root-container.alignfull:nth-of-type(3) > div.spectra-overlay-color.spectra-overflow:nth-of-type(2) {
        border-bottom: 1px solid #e0e0e0 !important;
    }

    div.spectra-is-root-container.alignfull:nth-of-type(1) > div.spectra-overlay-color.spectra-overflow:nth-of-type(1) > div.spectra-overlay-color.spectra-overflow > h2.spectra-text-color.wp-block-spectra-content {
        bottom: clamp(1rem, 6vw, 2.5rem) !important;
        text-align: center !important;
    }

    div.spectra-is-root-container.alignfull:nth-of-type(1) > div.spectra-overlay-color.spectra-overflow:nth-of-type(2) {
        bottom: clamp(1rem, 6vw, 2.5rem) !important;
    }

    h2.spectra-text-color.wp-elements-46 {
        text-align: center !important;
    }

    div.wp-block-button.spectra-buttons:nth-of-type(2) {
        top: clamp(-0.3125rem, -1vw, 0rem) !important;
    }

    div.wp-block-button.spectra-buttons:nth-of-type(2) > a.wp-block-button__link.wp-element-button {
        position: relative !important;
        top: 0 !important;
    }

    div.spectra-is-root-container.alignfull:nth-of-type(6) > div.spectra-overlay-color.spectra-overflow > div.spectra-overlay-color.spectra-overflow:nth-of-type(1) > figure.wp-block-image.size-full {
        bottom: clamp(2.5rem, 18vw, 6.25rem) !important;
    }

    div.spectra-is-root-container.alignfull:nth-of-type(6) > div.spectra-overlay-color.spectra-overflow > div.spectra-overlay-color.spectra-overflow:nth-of-type(2) {
        bottom: clamp(3rem, 22vw, 7.5rem) !important;
    }

    p.wp-elements-47.wp-block-paragraph {
        font-weight: 400 !important;
        text-decoration: none !important;
        text-transform: none !important;
        font-style: italic !important;
    }

    div.kbm-banner-block.kbm-has-auto-resize:nth-of-type(1) {
        top: clamp(0.125rem, 1vw, 0.25rem) !important;
    }

    /* Единичен продукт: премахване на старите относителни измествания.
       Горният отстъп се управлява директно от .site-main по-долу. */
    body.single-product .site-main {
        padding-top: 0 !important;
    }

    body.single-product div.product h1.product_title.entry-title {
        position: static !important;
        top: auto !important;
        text-align: center !important;
        font-style: italic !important;
    }

    body.single-product div.product .summary.entry-summary {
        position: static !important;
        bottom: auto !important;
    }

    /* Значката за намаление стои в горния ляв ъгъл на снимката. */
    body.single-product div.product .onsale {
        position: absolute !important;
        top: 6px !important;
        left: 12px !important;
        right: auto !important;
        bottom: auto !important;
        z-index: 5 !important;
        margin: 0 !important;
    }
}


/* =============================================
   DESKTOP — PRODUCT CATEGORY ARCHIVES
   Hide the default category title and tighten the
   space above the collection heading / product grid.
   Mobile layout is intentionally left unchanged.
   ============================================= */

@media (min-width: 922px) {
    body.tax-product_cat h1.woocommerce-products-header__title.page-title,
    body.tax-product_cat .woocommerce-products-header > h1 {
        display: none !important;
    }

    body.tax-product_cat .site-content {
        padding-top: 0 !important;
    }

    body.tax-product_cat #primary,
    body.tax-product_cat .ast-woocommerce-container {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.tax-product_cat .ast-archive-description {
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
    }
}


/* ============================================================
   CATEGORIES LANDING PAGE (/kategorii/)
   Hide the separate page title and remove vertical space so the
   hero image starts immediately after the site header.
   The title embedded in the hero image remains untouched.
   ============================================================ */
body.ppp-categories-landing .site-content,
body.ppp-categories-landing #content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.ppp-categories-landing .site-content > .ast-container,
body.ppp-categories-landing #primary,
body.ppp-categories-landing .content-area,
body.ppp-categories-landing .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.ppp-categories-landing .entry-header,
body.ppp-categories-landing header.entry-header {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

body.ppp-categories-landing article.page,
body.ppp-categories-landing .ast-article-single,
body.ppp-categories-landing .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.ppp-categories-landing .entry-content > :first-child {
    margin-top: 0 !important;
}


/* ============================================================
   PRODUCT CATEGORY ARCHIVES — MOBILE ONLY
   Hide the archive title, modernize sorting and bring products
   closer to the top of the page. Desktop remains unchanged.
   ============================================================ */
@media (max-width: 767px) {
    body.tax-product_cat .woocommerce-products-header__title,
    body.tax-product_cat .woocommerce-products-header > h1,
    body.tax-product_cat .woocommerce-products-header .page-title {
        display: none !important;
    }

    body.tax-product_cat .woocommerce-products-header,
    body.tax-product_cat .ast-archive-description {
        display: block !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    body.tax-product_cat .site-content,
    body.tax-product_cat .site-content > .ast-container,
    body.tax-product_cat #primary,
    body.tax-product_cat .ast-woocommerce-container,
    body.tax-product_cat .site-main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.tax-product_cat form.woocommerce-ordering {
        display: block !important;
        float: none !important;
        clear: both !important;
        width: calc(100% - 32px) !important;
        max-width: 420px !important;
        margin: 12px auto 16px !important;
        padding: 0 !important;
        position: relative !important;
        top: auto !important;
        transform: none !important;
        background: #fff !important;
        border: 1px solid #e5e7e4 !important;
        border-radius: 15px !important;
        box-shadow: 0 3px 12px rgba(24, 49, 31, 0.07) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    body.tax-product_cat form.woocommerce-ordering select.orderby {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: 52px !important;
        min-height: 52px !important;
        margin: 0 !important;
        padding: 0 42px 0 16px !important;
        border: 0 !important;
        border-radius: 15px !important;
        background-color: transparent !important;
        color: #263b2b !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        line-height: 1.3 !important;
        box-shadow: none !important;
        outline: none !important;
        box-sizing: border-box !important;
    }

    body.tax-product_cat ul.products {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}


/* ------------------------------------------------------------
   Единичен продукт — десктоп: премахване на празния отстъп
   между хедъра и продуктовото съдържание.
   Мобилните настройки не се променят.
   ------------------------------------------------------------ */
@media screen and (min-width: 768px) {
    body.single-product .site-main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* ------------------------------------------------------------
   Footer - по-широка трета колона, по-голямо изображение и изместване надясно
   ------------------------------------------------------------ */
@media screen and (min-width: 922px) {
    /* Трите използвани колони получават повече реална ширина за изображението. */
    body .site-footer .ast-builder-grid-columns.ast-builder-grid-row-4-equal {
        display: grid !important;
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 2.3fr) !important;
        column-gap: 28px !important;
        align-items: center !important;
    }

    body .site-footer .site-footer-primary-section-4 {
        display: none !important;
    }

    body .site-footer .site-footer-primary-section-3 {
        display: flex !important;
        flex: initial !important;
        flex-direction: column !important;
        align-self: stretch !important;
        justify-content: center !important;
        align-items: center !important;
        min-width: 0 !important;
        width: 100% !important;
        text-align: center !important;
        overflow: visible !important;
    }

    body .site-footer .site-footer-primary-section-3 > aside,
    body .site-footer .site-footer-primary-section-3 .footer-widget-area,
    body .site-footer .site-footer-primary-section-3 .widget,
    body .site-footer .site-footer-primary-section-3 .wp-block-image,
    body .site-footer .site-footer-primary-section-3 figure {
        box-sizing: border-box !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        overflow: visible !important;
    }

    body .site-footer .site-footer-primary-section-3 a {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: none !important;
        overflow: visible !important;
    }

    body .site-footer .site-footer-primary-section-3 img,
    body .site-footer .site-footer-primary-section-3 .wp-block-image img,
    body .site-footer .site-footer-primary-section-3 .widget_media_image img {
        display: block !important;
        width: min(70vw, 900px) !important;
        max-width: 900px !important;
        height: auto !important;
        max-height: 600px !important;
        object-fit: contain !important;
        object-position: center center !important;
        margin: 0 !important;
        transform: translateX(120px) !important;
    }
}


/* ------------------------------------------------------------
   Страница „За нас“ — премахване на празното разстояние
   между последното изображение/блок „Последвайте ни“ и футъра.
   Корекцията е само за мобилни екрани и само за /about/.
   ------------------------------------------------------------ */
@media screen and (max-width: 767px) {
    body.ppp-about-page #content,
    body.ppp-about-page .site-content,
    body.ppp-about-page .site-content > .ast-container,
    body.ppp-about-page #primary,
    body.ppp-about-page .content-area,
    body.ppp-about-page .site-main,
    body.ppp-about-page article.page,
    body.ppp-about-page .ast-article-single,
    body.ppp-about-page .entry-content {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        min-height: 0 !important;
    }

    /* Astra and block-editor wrappers can each add their own bottom gap. */
    body.ppp-about-page .entry-content > :last-child,
    body.ppp-about-page .entry-content > .wp-block-group:last-child,
    body.ppp-about-page .entry-content > .wp-block-cover:last-child,
    body.ppp-about-page .entry-content > .wp-block-image:last-child,
    body.ppp-about-page .entry-content > .elementor:last-child,
    body.ppp-about-page .elementor-section-wrap > .elementor-section:last-child,
    body.ppp-about-page .elementor .elementor-section:last-child,
    body.ppp-about-page .elementor-widget-wrap > .elementor-element:last-child {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    body.ppp-about-page .site-footer,
    body.ppp-about-page #colophon {
        margin-top: 0 !important;
    }
}


/* =========================================================================
   LEATHER INITIAL 5.0.7 — MOBILE SEARCH RESULTS
   Scoped only to WooCommerce product search results.
   Desktop layout and the regular Shop page remain unchanged.
   ========================================================================= */
@media (max-width: 767px) {

    /* Remove the extra blank strip between the mobile header and search hero. */
    body.search #content.site-content,
    body.search .site-content,
    body.search .site-content > .ast-container,
    body.search #primary,
    body.search .content-area,
    body.search .site-main,
    body.search .ast-woocommerce-container,
    body.search .woocommerce-products-header,
    body.search .woocommerce-products-header .page-description,
    body.search .woocommerce-products-header .page-description > :first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
        min-height: 0 !important;
    }

    body.search .site-content {
        padding-bottom: 32px !important;
    }

    body.search .woocommerce-products-header {
        position: relative !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    body.search .woocommerce-products-header .page-description {
        display: block !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Search field: premium rounded input with a clear green action button. */
    body.search .woocommerce-products-header form.wp-block-search {
        display: flex !important;
        position: relative !important;
        inset: auto !important;
        width: calc(100% - 32px) !important;
        height: 60px !important;
        margin: 22px 16px 0 !important;
        padding: 4px !important;
        border: 1px solid #e8e1d4 !important;
        border-radius: 18px !important;
        background: #ffffff !important;
        box-shadow: 0 5px 18px rgba(25, 48, 33, 0.08) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        z-index: 2 !important;
    }

    body.search .woocommerce-products-header form.wp-block-search .wp-block-search__label {
        display: none !important;
    }

    body.search .woocommerce-products-header form.wp-block-search .wp-block-search__inside-wrapper {
        display: flex !important;
        align-items: stretch !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: #ffffff !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    body.search .woocommerce-products-header form.wp-block-search .wp-block-search__input {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 14px !important;
        border: 0 !important;
        border-radius: 14px 0 0 14px !important;
        outline: none !important;
        background: #ffffff !important;
        color: #193021 !important;
        font-size: 16px !important;
        line-height: normal !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

    body.search .woocommerce-products-header form.wp-block-search .wp-block-search__input::placeholder {
        color: #92958f !important;
        opacity: 1 !important;
    }

    body.search .woocommerce-products-header form.wp-block-search .wp-block-search__button {
        flex: 0 0 108px !important;
        width: 108px !important;
        min-width: 108px !important;
        max-width: 108px !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 12px !important;
        border: 0 !important;
        border-radius: 13px !important;
        background: #1c3821 !important;
        color: #ffffff !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        letter-spacing: 1px !important;
        line-height: normal !important;
        text-transform: uppercase !important;
        box-shadow: 0 3px 8px rgba(28, 56, 33, 0.16) !important;
        box-sizing: border-box !important;
    }

    body.search .woocommerce-products-header form.wp-block-search .wp-block-search__button:active {
        background: #294b30 !important;
        transform: scale(.98);
    }

    /* Sorting: a quiet label above a modern full-width select. */
    body.search form.woocommerce-ordering {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        float: none !important;
        position: relative !important;
        top: auto !important;
        clear: both !important;
        width: calc(100% - 32px) !important;
        margin: 22px 16px 28px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    body.search form.woocommerce-ordering::before {
        content: "ПОДРЕДИ ПРОДУКТИТЕ";
        display: block !important;
        margin: 0 0 9px 3px !important;
        color: #52604f !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        letter-spacing: 1.35px !important;
        line-height: 1.3 !important;
    }

    body.search form.woocommerce-ordering select.orderby {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: 56px !important;
        min-height: 56px !important;
        margin: 0 !important;
        padding: 0 48px 0 17px !important;
        border: 1px solid #e7e1d6 !important;
        border-radius: 16px !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        background-color: #ffffff !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231c3821' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 17px center !important;
        color: #26382b !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        line-height: normal !important;
        box-shadow: 0 4px 14px rgba(25, 48, 33, 0.055) !important;
        box-sizing: border-box !important;
    }

    body.search ul.products {
        clear: both !important;
        margin-top: 0 !important;
    }

    body.search .woocommerce-result-count {
        display: none !important;
    }
}

@media (max-width: 380px) {
    body.search .woocommerce-products-header form.wp-block-search .wp-block-search__button {
        flex-basis: 96px !important;
        width: 96px !important;
        min-width: 96px !important;
        max-width: 96px !important;
        font-size: 11px !important;
    }

    body.search .woocommerce-products-header form.wp-block-search .wp-block-search__input {
        padding-left: 11px !important;
        padding-right: 8px !important;
        font-size: 15px !important;
    }
}


/* Leather Initial Design 5.0.9 - mobile search no-results spacing.
   Keep the notice clearly below the search form, without overlap. */
@media (max-width: 767px) {
    body.search .woocommerce-no-products-found {
        display: flow-root !important;
        position: relative !important;
        clear: both !important;
        float: none !important;
        width: calc(100% - 32px) !important;
        max-width: none !important;
        margin: 20px 16px 0 !important;
        padding: 0 !important;
        transform: none !important;
        box-sizing: border-box !important;
        z-index: 1 !important;
    }

    body.search .woocommerce-no-products-found .woocommerce-info,
    body.search .woocommerce-no-products-found > .woocommerce-info {
        position: relative !important;
        display: block !important;
        clear: both !important;
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}


/* Leather Initial Design 5.0.11 - hide the archive heading behind the
   mobile search form on product search results only. */
@media (max-width: 767px) {
    body.search .woocommerce-products-header__title,
    body.search .woocommerce-products-header > h1,
    body.search h1.page-title {
        display: none !important;
    }
}


/* Leather Initial Design 5.1.1 - desktop product search archive layout.
   Remove the duplicated WooCommerce archive title and the blank strip
   above the existing store hero. The hero content itself stays intact. */
@media (min-width: 768px) {
    body.search #content.site-content,
    body.search .site-content,
    body.search .site-content > .ast-container,
    body.search #primary,
    body.search .content-area,
    body.search .site-main,
    body.search .ast-woocommerce-container,
    body.search .woocommerce-products-header,
    body.search .woocommerce-products-header .page-description {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.search .woocommerce-products-header {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    body.search .woocommerce-products-header__title,
    body.search .woocommerce-products-header > h1,
    body.search h1.woocommerce-products-header__title,
    body.search h1.page-title {
        display: none !important;
    }

    body.search .woocommerce-products-header .page-description > :first-child {
        margin-top: 0 !important;
    }

    body.search #store-hero {
        margin-top: 0 !important;
    }
}


/* =========================================================================
   LEATHER INITIAL DESIGN 5.1.2 — PRODUCT SEARCH RESULTS POLISH
   Keep the single centered hero title, remove the extra title inside the
   hero, and give the desktop search / collection controls a unified layout.
   ========================================================================= */

/* The centered "Магазин" label is rendered by #store-hero::after.
   Hide only headings inside the hero so the centered overlay remains. */
@media (min-width: 768px) {
    body.search #store-hero h1,
    body.search #store-hero h2,
    body.search #store-hero h3,
    body.search #store-hero .wp-block-heading,
    body.search #store-hero .elementor-heading-title {
        display: none !important;
        visibility: hidden !important;
    }

    /* Premium search field below the hero. */
    body.search .woocommerce-products-header form.wp-block-search {
        display: flex !important;
        width: min( calc(100% - 136px), 1680px ) !important;
        max-width: 1680px !important;
        margin: 12px auto 24px !important;
        padding: 5px !important;
        border: 1px solid #e7e1d6 !important;
        border-radius: 16px !important;
        background: #fff !important;
        box-shadow: 0 7px 24px rgba(25, 48, 33, .07) !important;
        box-sizing: border-box !important;
    }

    body.search .woocommerce-products-header form.wp-block-search .wp-block-search__inside-wrapper {
        height: 54px !important;
        border: 0 !important;
        border-radius: 12px !important;
        background: #fff !important;
        overflow: hidden !important;
    }

    body.search .woocommerce-products-header form.wp-block-search .wp-block-search__input {
        height: 54px !important;
        padding: 0 20px !important;
        border: 0 !important;
        border-radius: 12px 0 0 12px !important;
        background: #fff !important;
        color: #193021 !important;
        font-size: 16px !important;
        line-height: 54px !important;
        box-shadow: none !important;
    }

    body.search .woocommerce-products-header form.wp-block-search .wp-block-search__button {
        flex: 0 0 138px !important;
        width: 138px !important;
        min-width: 138px !important;
        max-width: 138px !important;
        height: 54px !important;
        border: 0 !important;
        border-radius: 11px !important;
        background: #1c3821 !important;
        color: #fff !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        letter-spacing: 1px !important;
        line-height: 54px !important;
        box-shadow: 0 3px 10px rgba(28, 56, 33, .14) !important;
        transition: background .2s ease, transform .2s ease !important;
    }

    body.search .woocommerce-products-header form.wp-block-search .wp-block-search__button:hover {
        background: #294b30 !important;
        transform: translateY(-1px) !important;
    }

    /* Collection title and sorting control share one clean baseline. */
    body.search .li-shop-heading {
        display: block !important;
        float: left !important;
        width: auto !important;
        margin: 4px 0 18px 68px !important;
        padding: 0 !important;
        color: #193021 !important;
        font-size: 21px !important;
        font-weight: 650 !important;
        line-height: 44px !important;
        letter-spacing: -.02em !important;
        text-align: left !important;
        transform: none !important;
    }

    body.search form.woocommerce-ordering {
        display: block !important;
        float: right !important;
        width: 250px !important;
        height: 46px !important;
        margin: 3px 68px 18px 20px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: transparent !important;
        transform: none !important;
    }

    body.search form.woocommerce-ordering select.orderby {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 46px !important;
        margin: 0 !important;
        padding: 0 42px 0 16px !important;
        border: 1px solid #e7e1d6 !important;
        border-radius: 14px !important;
        background-color: #fff !important;
        color: #52604f !important;
        font-size: 14px !important;
        line-height: 44px !important;
        box-shadow: 0 4px 14px rgba(25, 48, 33, .055) !important;
        box-sizing: border-box !important;
    }

    body.search ul.products {
        clear: both !important;
        width: calc(100% - 136px) !important;
        max-width: 1680px !important;
        margin: 0 auto 44px !important;
    }
}

/* On phones the collection heading was appearing behind the search field.
   Keep it out of the search / hero overlap area without changing the Shop page. */
@media (max-width: 767px) {
    body.search .li-shop-heading {
        display: none !important;
        visibility: hidden !important;
    }

    body.search #store-hero h1,
    body.search #store-hero h2,
    body.search #store-hero h3,
    body.search #store-hero .wp-block-heading,
    body.search #store-hero .elementor-heading-title {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Leather Initial Design 5.1.4 — restore the centered hero title on
   mobile product-search results. The real heading stays hidden to avoid
   duplicates; this overlay restores the single visible title. */
@media (max-width: 767px) {
    body.search #store-hero {
        position: relative !important;
    }

    body.search #store-hero::after {
        content: "Магазин" !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 20 !important;
        display: block !important;
        width: max-content !important;
        max-width: calc(100% - 24px) !important;
        color: #ffffff !important;
        font-family: inherit !important;
        font-size: clamp(38px, 10vw, 54px) !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        text-align: center !important;
        white-space: nowrap !important;
        pointer-events: none !important;
    }
}
