/* Home Hero LCP (banner0): hide on desktop, keep on mobile */
@media (min-width: 768px) {
  #banner0 {
    display: none !important;
  }
}


/* Mobile product grid: текстовият блок да не застъпва продуктовата снимка */
@media (max-width: 767px) {
    .product-block .product-meta-inner {
        top: 0 !important;
    }
}/* Премахване на неработещия Quick View */
.product-block .pav-colorbox.iframe-link {
    display: none !important;
}


/* По-широк desktop layout */
@media (min-width: 1200px) {
    .container {
        width: 1400px;
    }
}

/* Product gallery: AI image disclosure */
.product-info .product-gallery-notice {
    display: flex;
    align-items: flex-start;
    margin: 8px 0 0;
    color: #777;
    font-size: 12px;
    line-height: 1.45;
}

.product-info .product-gallery-notice__icon {
    box-sizing: border-box;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    margin-right: 7px;
    border: 1px solid #999;
    border-radius: 50%;
    color: #777;
    font-size: 11px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
}

@media (max-width: 767px) {
    .product-info .product-gallery-notice {
        margin-top: 10px;
        font-size: 13px;
        line-height: 1.5;
    }
}

/* Product page mobile UX phase 1: title, rating and model/stock spacing */
@media (max-width: 767px) {
    #contents .product-info .product-view > h1.name {
        font-size: 24px;
        line-height: 32px;
    }

    #contents .product-info .product-view > .rating > hr {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    #contents .product-info .product-view > .rating + .product-extra,
    #contents .product-info .product-view > h1.name + .product-extra {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    #contents .product-info .product-view > .rating + .product-extra > ul.description,
    #contents .product-info .product-view > h1.name + .product-extra > ul.description {
        margin-bottom: 4px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

/* Category product cards: AI image information popover */
.product-block .ai-image-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.product-block .ai-image-info-button {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: -3px -4px -3px 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    line-height: 1;
    touch-action: manipulation;
}

.product-block .ai-image-info-button:hover {
    color: #fff;
    opacity: 0.82;
}

.product-block .ai-image-info-button:focus {
    outline: 2px solid #fff !important;
    outline-offset: 1px !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55) !important;
}

.product-block .ai-image-info {
    box-sizing: border-box;
    position: fixed;
    display: none;
    width: 260px;
    max-width: calc(100vw - 16px);
    padding: 10px 30px 10px 11px;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    color: #444;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    text-transform: none;
    white-space: normal;
    z-index: 10001;
}

.product-block .ai-image-info.is-open {
    display: block;
}

.product-block .ai-image-info__close {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    position: absolute;
    top: 2px;
    right: 3px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666;
    cursor: pointer;
    font-size: 20px;
    font-weight: 400;
    line-height: 22px;
    text-align: center;
    touch-action: manipulation;
}

.product-block .ai-image-info__close:hover {
    color: #222;
}

.product-block .ai-image-info__close:focus {
    outline: 2px solid #777 !important;
    outline-offset: -2px !important;
    box-shadow: none !important;
}

@media (max-width: 767px) {
    .product-block .ai-image-info {
        font-size: 13px;
        line-height: 1.45;
    }
}

/* Women's winter scarves: compact mobile category intro */
.category-mobile-ux .category-description-toggle[hidden] {
    display: none;
}

@media (max-width: 767px) {
    .category-mobile-ux#content > .heading-category {
        margin-bottom: 8px;
        font-size: 22px;
        line-height: 1.25;
    }

    .category-mobile-ux .category-info .category-description--collapsible {
        padding: 10px 12px 6px;
        line-height: 1.5;
    }

    .category-mobile-ux .category-description--collapsible.is-collapsed .category-description__content {
        max-height: var(--category-description-collapsed-height, 4.5em);
        overflow: hidden;
    }

    .category-mobile-ux .category-description-toggle {
        -webkit-appearance: none;
        appearance: none;
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        margin: 2px 0 0;
        padding: 8px 0;
        border: 0;
        background: transparent;
        color: #579c4b;
        cursor: pointer;
        font: inherit;
        font-weight: 600;
        line-height: 1.4;
        text-decoration: underline;
        text-underline-offset: 2px;
        touch-action: manipulation;
    }

    .category-mobile-ux .category-description-toggle:hover {
        color: #3f7d36;
    }

    .category-mobile-ux .category-description-toggle:focus {
        outline: 2px solid #579c4b;
        outline-offset: 2px;
    }
}

/* STIL-MM: compact AI label on category product cards (12 Nov 2026).
   Visual change only: retain the original label text for assistive tech
   and keep the existing info-button / popover behavior. */
.product-block .ai-image-badge {
    position: relative;
    right: auto; /* avoid conflicting with the theme's badge alignment */
    transform: translateX(-16px) !important; /* move visually 16px to the LEFT */
    box-sizing: border-box;
    min-width: 24px;
    min-height: 22px;
    padding: 3px 6px !important;
    justify-content: center;
    font-size: 0 !important;
    line-height: 1 !important;
}

.product-block .ai-image-badge::before {
    content: "AI";
    display: inline-block;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
}

/* Invisible full-badge click target for the existing information popover. */
.product-block .ai-image-badge .ai-image-info-button {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    font-size: 0;
    cursor: pointer;
}

.product-block .ai-image-badge:hover {
    filter: brightness(0.94);
}

.product-block .ai-image-badge:focus-within {
    outline: 2px solid #444;
    outline-offset: 2px;
}
