/* for desktop devices first default, mobile - second*/
:root {
    --font_family: 'Open Sans', Arial, sans-serif;
    --font_family_heading: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;;
    --background_color: #ffffff;
    --font_color: #333;
    --line_height: 1.6;
    --link_color: #2162a1;
    --link_text_decoration: none;
    --link_color_hover: #0c3353;
    --link_text_decoration_hover: underline;
    --tooltip_border_color: #0f1111;
    --sa_yellow_color: #fecb36;
    --sa_brown_color: #503a2c;
    --sa_dark_black_color: #212529;
    --sa_brown_menu_background_color: #755f53;

    --background_color_panel: #f6f6f6;
    --border-color_panel: #cccccc;


    --text_color_link_on_dark_background: #bdbcbc;
    --text_color_link_menu: #dddddd;

    /* base text */
    --font_size: clamp(14px, 0.5vw + 12px, 16px);
    /* headings */
    --font_size_header: clamp(28px, 1.2vw + 24px, 32px);
    --font_size_header_item: clamp(22px, 1vw + 18px, 26px);
    /* UI text sizes */
    --font-size-ui-md: 14px;
    --font-size-ui-sm: 13px;
    --font-size-ui-xs: 12px;

    --letter-spacing: 1px;
}
html, body {
    height: 100%;
}


/*1rem = 16px (by default in most browsers),*/
/* for mobile devices */
@media (max-width: 768px) {
    :root {
        --font-size-ui-md: 12px;
        --font-size-ui-sm: 11px;
        --font-size-ui-xs: 10px;
        }
}
.fs-md{
    font-size: var(--font-size-ui-md);
}
.fs-sm {
    font-size: var(--font-size-ui-sm);
}
.fs-xs {
    font-size: var(--font-size-ui-xs);
}

.letter-space {
    letter-spacing :var(--letter-spacing)
}

html {
    font: var(--font_size)/var(--line_height) var(--font_family);
    color: var(--font_color);
    background-color: var(--background_color);
}

body {
    font: var(--font_size)/var(--line_height) var(--font_family);
    margin: 0;
    padding: 0;
}



/*from html5-boilerplate*/

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */
audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */
fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */
textarea {
    resize: vertical;
}

h1{
    font-family:  var(--font_family_heading);
    font-size:   var(--font_size_header);
    padding: 2rem 0;
}

a, a:link, a:visited {
    color: var(--link_color);
    text-decoration: var(--link_text_decoration);
    cursor: pointer;
    transition: color 0.5s ease;
}

a:hover {
    color: var(--link_color_hover);
    text-decoration: var(--link_text_decoration_hover);
    cursor: pointer;
}



.breadcrumb {
    --bs-breadcrumb-divider: "»";
}

.mb-6 {
    margin-bottom: 4rem !important;
}

/*region  HEADER */
.row1{
    background-color: var(--sa_brown_color);
    color: #ffffff;
}

.row1 a {
    color: var(--text_color_link_on_dark_background);
    text-decoration: none;
}

.row1 a:hover {
    color: #f1f0f0;
    text-decoration: none;
}


.search-container {
    margin: 10px 0 10px 0;
    display: flex;
    align-items: center;
    border: 3px solid var(--sa_brown_color);
    border-radius: 8px;
    transition: all 0.5s ease;
}

.search-container:focus-within {
    border: 3px solid var(--sa_yellow_color);
}

.search-input {
    border: none;
    outline: none;
    flex-grow: 1;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    padding: 7px 9px 9px 9px;
}

.search-button {
    background-color: var(--sa_yellow_color);
    border: none;
    outline: none;
    padding: 7px 20px 8px 20px;
    cursor: pointer;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
.search-button:active {
    padding: 5px 20px;
    border: 2px solid #d19f0b;
}

.search-container input::placeholder {
    color: #ccc;
}

.row0 {
    background-color: var(--sa_dark_black_color);
    color: #e1dfdf;
    font-weight: 600;
    border-bottom: 1px solid #ccc;
    font-size: 0.75rem; /* 12px if base is 16px */
}

.row0 a {
    color: var(--text_color_link_on_dark_background);
    text-decoration: none;
}

.row0 a:hover {
    color: #f0f0f0;
    text-decoration: none;
}

.header-item {
    padding: 0.125rem 0.75rem; /* padding: 2px 12px; */
    border-right: 1px solid #ccc;
    white-space: nowrap;
    flex-shrink: 0; /* don't let items shrink too small */
}


.header-item:last-child,
.header-item:nth-last-child(2) {
    border-right: none;
}

@media (max-width: 768px) {
    .header-bar {
        font-size: 0.625rem; /* 10px if base is 16px */
    }
    .header-item {
        padding: 0.125rem 0.625rem; /* padding: 2px 12px; */
        margin:0 0 0.5rem 0;
    }
    .header-item:last-child{
        border-right: none;
        padding: 0.5rem 0.625rem 0.25rem 0.625rem;
    }
}
.login-text {
    font-size: 0.875rem;
}

.truck-icon{
    padding: 5px 0 0 0;
}
.items-amount {
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .login-text {
        font-size: 0.8125rem;
    }
    .items-amount {
        font-size: 0.8125rem;
    }
}

/*endregion of HEADER */


/*region Menu*/

/*region horizontal menu only on desktop with screen width > 758 px*/
.row2{
    display: flex;
    background-color: var(--sa_brown_menu_background_color);
    width: 100%;
    /* overflow: hidden; /* скрива съдържанието извън ширината */
    border-top:1px solid #CCC;
    color: var(--text_color_link_menu);
    border-bottom:1px solid #CCC;
}

.menu-all {
    padding: 6px 16px 8px 16px;
}

.menu-all:hover {
    background-color: #f6f6f6;
    color: var(--font_color);
    cursor: pointer;
}
@media (max-width: 768px) { .menu-all{padding: 0.5rem 0; }}

.tab-row {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-item {
    margin-right: 5px;
    flex-shrink: 0;
    display: none; /* скриваме всички по подразбиране */
}

.tab-btn {
    white-space: nowrap;
    padding: 0.5rem 1rem 0.625rem 1rem;
    background-color: var(--sa_brown_menu_background_color);
    color: var(--text_color_link_menu);
    border: none;
    cursor: pointer;
    font-size: .9375rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tab-btn:hover {
    background-color: #f6f6f6;
    color: var(--font_color);
}

.tab-btn.active {
    background-color: #f6f6f6;
    color: var(--font_color);
}

.tab-wrapper {
    position: relative;
    z-index: 20;
}

.tab-content-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 10;
    display: none;
    overflow: hidden; /* ensures smooth slide */
}

.tab-pane {
    padding: 20px;
    border-bottom: 2px solid #cccccc;
    border-left: 2px solid #cccccc;
    border-right: 2px solid #cccccc;
    background: rgba(255, 255, 255, 0.94); /* light color with slight transparency */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-left: 2.5rem;
    margin-right: 2.5rem;
    /* border-radius: 1px 1px 20px 20px; */
    column-gap: 1rem;
    max-height: 25rem;
    overflow-y: auto;
}


/* Ако дисплея е по-малък от 768 пиксела се скрива*/
@media (max-width: 768px) {.tab-pane { display: none !important;}}

.tab-pane ul {
    margin: 0;
    padding-left: 1em;
}
.tab-pane {
    color:var(--font_color);
}
.hmenu-title {
    font-size: 0.875rem;
    padding: 0.5rem 1rem 1rem 1rem !important;
    display: block;
    font-weight: 600;
    text-transform: uppercase;
}
.tab-pane  ul  li  {
    font-size: 0.875rem;
    padding: 0.2rem 0rem;
    display: block;
    font-weight: 500;
}

.tab-pane  ul  li a:link,
.tab-pane  ul  li a:visited
{
    color: #555353;
    font-weight: 500;
}

.tab-pane  ul  li a:hover
{
    color: var(--link_color_hover);
}

.columns-8 {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
}

.col-column {
    flex: 1 1 0;
    max-height: 400px;
    min-width: 0;
    padding-right: 5px;
    box-sizing: border-box;
}

.hmenu-item-box {
    padding: 1px;
}

.hmenu-item-box a:link,
.hmenu-item-box a:visited{
    color: #555353;
}
.hmenu-item-box a:hover
{
    color: var(--link_color_hover);
    text-decoration: none;
}

.hmenu-s-name {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.125rem 0.25rem;
}



/*  Показваме бутони според ширината на екрана */

@media (min-width: 768px) { .show-1, .show-2, .show-3, .show-4, .show-5 { display: list-item; } }
@media (min-width: 940px) { .show-6 { display: list-item; } }
@media (min-width: 1080px) { .show-7 { display: list-item; } }
@media (min-width: 1260px) { .show-8 { display: list-item; } }
@media (min-width: 1370px) { .show-9 { display: list-item; } }
@media (min-width: 1520px) { .show-10 { display: list-item; } }
@media (min-width: 1685px) { .show-11 { display: list-item; } }
@media (min-width: 1900px) { .show-12 { display: list-item; } }
@media (min-width: 2100px) { .show-13 { display: list-item; } }
/* Никога няма да се показват повече от 13 бутона */

/*endregion of horizontal menu*/


/*region Vertical menu*/
.offcanvas-body-backgr {
    background-color: #f6f6f6;
}

.offcanvas-body {
    position: relative;
    overflow-y: auto; /* already exists */
}

.offcanvas-header{
    background-color: #3a2f29; /* or your custom color */
    color:var(--text_color_link_on_dark_background);
}

.btn-close {
    filter: invert(1);
}

.menu ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.menu-title {
    padding: 0.5rem 0.5rem 0.1rem 0.5rem;
    color: var(--font_color);
    font-weight: bold;
}


.menu > ul > li {
    border-bottom: 1px solid #ccc; /* or any color you want */
    padding: 1rem 0.5rem;

}

/* styles for second-level */
.menu > ul > li > ul {
    padding-top: 1rem;
    padding-bottom: 1rem;
}


.menu > ul > li > ul >li {
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
    display: block;
    font-weight: 500;
    cursor: pointer;
}

.menu > ul > li > ul >li:hover {
    background-color: #ebe8e8;
}


.menu > ul > li > ul >li a:link,
.menu > ul > li > ul >li a:visited
{
    color: var(--font_color);
    font-weight: 500;
    padding-bottom: 3px; /* Space for underline */
}


.vthird-level {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.vsecond-level.active + .vthird-level {
    max-height: 1000px; /* large enough to expand smoothly */
}

.menu > ul > li > ul >li > ul > li{
    font-size: 0.875rem;
    padding: 0.4rem 0rem;
    display: block;
    font-weight: 500;
    cursor: pointer;
}

.menu > ul > li > ul >li > ul > li:first-child {
    padding-top: 0.8rem !important;
}

.menu > ul > li > ul >li > ul > li {
    padding-left: 1rem !important;
}


/* scroll top button in offcanvas (hamburger) menu*/

.svg-align {
    vertical-align: baseline;
}
.scroll-top-btn {
    position: sticky;
    bottom: 20px;
    float: right;
    margin-right: 20px;
    background-color: #efeded;
    color: #281d16;
    border: none;
    padding: 8px 10px;
    border-radius: 50%;
    border: 2px solid #c4c8cb;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: none;
}
.scroll-top-btn:hover {
    background-color: #e1dede;
}

.scroll-top-btn.show {
    display: inline-block;
}

.scroll-top-btn.active {
    background-color: #e1dede;
}
/* End of scroll top button in offcanvas (hamburger) menu*/

/*endregion of vertical men*/


/*endregion of menu*/

/*region Big pictures under the menu */

/* Whitout Pictures movement - static head pictures
.centered-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
}
*/


/*Pictures movement agent Smith*/

.carousel-caption {
    left: 0;
    right: auto;
    text-align: left;
    padding-left: 6rem; /* optional: spacing from left edge */
    bottom: 2rem; /* default is ~20px; adjust as needed */

    text-shadow:
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px  1px 0 #000,
            1px  1px 0 #000;
}

.carousel-caption h5{
    font-size: 2.5rem;
    font-weight: 600;
}

.carousel-caption p{
    font-size: 1.2rem;
    font-weight: 600;
}

/* Wrapper masks the image overflow */
.img-wrapper {
    height: 400px;
    overflow: hidden;
    position: relative;
}

/* Image is slightly taller than wrapper so it can slide up */
.centered-image {
    width: 100%;
    height: 440px; /* 400px + 40px for pan room */
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Only animate active slide image */
.carousel-item.active .centered-image {
    animation: panZoomUp 6s linear forwards;
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Combined animation: zoom + pan upward */
@keyframes panZoomUp {
    0% {
        transform: scale(1) translateY(0);
    }
    100% {
        transform: scale(1.05) translateY(-40px); /* Light zoom and move up */
    }
}

/* If 400px is too tall on small screens, make responsive pictures in nex media query */
@media (max-width: 1100px) and (min-width: 950px) {
    .img-wrapper {
        height: 330px;
    }
    .centered-image {
        height: 370px; /* 330 + 40 */
    }
}

@media (max-width: 949.98px) and (min-width: 768px) {
    .img-wrapper {
        height: 270px;
    }
    .centered-image {
        height: 300px; /* 270 + 40 */
    }
}

@media (max-width: 767.98px) and (min-width: 550px) {
    .img-wrapper {
        height: 200px;
    }
    .centered-image {
        height: 230px; /* 200 + 30 */
    }
}

/* === Small: For screens less than 768px === */
@media (max-width: 549.98px) {
    .img-wrapper {
        height: 110px;
    }
    .centered-image {
        height: 140px; /* 110 + 30 */
    }
}
/*end of pictures movement*/


/* Arrow icon on Carusel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none;
}

.custom-arrow {
    font-size: 2rem;         /* Big size */
    font-weight: bold;       /* Thicker look */
    color: white;            /* Arrow color */
    text-shadow: 1px 1px 4px black; /* Optional for contrast */
    user-select: none;
    pointer-events: none;    /* Let button handle clicks */
}

.carousel-control-prev,
.carousel-control-next {
    width: 5rem;
    height: 100px;
    top: 50%;
    transform: translateY(-50%);
}

/* End of arrow icon */


/*endregion of big pictures under the menu */





/* items presentation style Prefered items */

.price-main-page{
    background-color: var(--sa_dark_black_color);
    color: var(--sa_yellow_color);
}

.pic-item-featured {
    max-width: 100%;
    max-height: 205px;
    object-fit: contain;
    display: block;
}

.pic-item-featured{
    max-width: 250px;
    object-fit: contain;
}

.item-name-link{
    color: inherit !important;               /* keep the inherited color */
    text-decoration: none;        /* remove underline */
    font-family: inherit;
}

.item-name-link:hover,
.item-name-link:focus {
    color: #000000;
}

.company-name-link {
    color: inherit !important;               /* keep the inherited color */
    text-decoration: none;        /* remove underline */
    font-family: inherit;         /* keep inherited font */
    position: relative;
    padding-bottom: 2px; /* Space for underline */
}

.company-name-link:hover,
.company-name-link:focus {
    color: #000000;               /* darker hover color  */
    text-decoration: none;
}
/*underline from center to the end using a pseudo-element and animate it smoothly - no transition for a element and use pseudo-element*/
.company-name-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #272626;
    transition: all 0.5s ease;
    transform: translateX(-50%);
}

/* Hover effect */
.company-name-link:hover::after {
    width: 100%;
}

@media (max-width: 500px) {
    .item-button {
        transform: scale(0.72); /* 75% of original size => 25% smaller */
        transform-origin: left center; /* optional: shrink towards left side */
    }
}


.btn-warning {
--bs-btn-color: #534949;
--bs-btn-bg: var(--sa_yellow_color);
--bs-btn-border-color: #b18608;
--bs-btn-hover-color: #000;
--bs-btn-hover-bg: #efc034;
--bs-btn-hover-border-color: #9f8128;
--bs-btn-focus-shadow-rgb: 225,83,97;
--bs-btn-active-color: #000;
--bs-btn-active-bg: #efc034;
--bs-btn-active-border-color: #9f8128;
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
--bs-btn-disabled-color: #000;
--bs-btn-disabled-bg: #ccc;
--bs-btn-disabled-border-color: #c1c1c1;
    font-size: 0.875rem;
    padding: 0.475rem 0.75rem;
    font-weight: 600;
}

.btn-warning1 {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #5c9bd5;
    --bs-btn-border-color: #3f7fb8;

    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #4a89c7;
    --bs-btn-hover-border-color: #3a6ea5;

    --bs-btn-focus-shadow-rgb: 92,155,213;

    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #3f7fb8;
    --bs-btn-active-border-color: #34699f;

    --bs-btn-active-shadow: inset 0 3px 5px rgba(0,0,0,0.125);

    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: #b7cde5;
    --bs-btn-disabled-border-color: #a9c2dc;

    font-size: 0.875rem;
    padding: 0.475rem 0.75rem;
    font-weight: 600;
}

@media (max-width: 1400px) {
    .btn-warning {
        font-size: 0.75rem;
    }
    .company-name-link {
        font-size: 0.875rem;
    }
}


.preorder{
    background-color: var(--background_color_panel);
    border: 1px solid var(--border-color_panel);
}

.preorder-more-link {
font-size: 0.9375rem;
}

.news-block {
    background-color: var(--background_color_panel);
    border: 1px solid var(--border-color_panel);
}

.news-button-default {
    transition: all 0.1s ease !important;
}

.news-button-default:hover {
    color: white !important;         /* Optional: text color on hover */
    text-decoration: none !important;;      /* Prevent underline on hover */
}

.news-button-signal {
    color: #dc3545 !important;
    transition: all 0.1s ease !important;
}

.news-button-signal:hover {
    color: white !important;         /* Optional: text color on hover */
    text-decoration: none;      /* Prevent underline on hover */
}


.item-box {
    border: 1px solid #e1dfdf;
    background-color: #ffffff;
    padding: 6px;
}

.s-name {
    background-color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.125rem 0.25rem;
}


.row3 h1{
padding-top: 0px  !important;
    padding-bottom: 0px  !important;
}

.price-second {
    width: fit-content;
}

.back-background {
    background-image: url("../pictures/background3.png");
    background-repeat: repeat;
    background-size: contain; /* или 'cover' ако искаш цялата ширина/височина */
    background-color: var(--background_color_panel);
}

.down-story-block{
    background-color: #e7e5e5;
    border-width:2px;
}

.custom-readmore {
    background-color: var(--sa_brown_color);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #907d71;
}

.custom-readmore:hover,
.custom-readmore:focus,
.custom-readmore:active {
    background-color: #3f2e23 !important; /* една идея по-тъмен */
    color: #ffffff !important;
}

.footer-main{
    font-size: 0.9375rem;
    color: #dedbdb !important;
    background-color: var(--sa_dark_black_color);
}

.footer-main a{
    color: var(--text_color_link_on_dark_background) !important;
}

.footer-main a:hover{
    color: #ffffff !important;
}



/* item.php */
.item-main{
    padding: 2rem 0 2rem 0;
}

.item-main h1 {
    padding: 0 0 0.5rem 0;
    font-size: var(--font_size_header_item);
}

.hr-divider {
    border: 0;
    border-top: 1px solid #d5d5d9;
    margin: 0.75rem 0;
    opacity: 1;
}

.brand-logo {
    align-items: center;
    justify-content: center;
    background: #f8f9fa;      /* light neutral */
    border: 2px solid #e0e0e0;
    border-radius: 4px;
}


.brand-logo img {
    filter: grayscale(80%);
    opacity: 0.85;
}

.brand-logo img:hover {
    filter: none;
    opacity: 1;
}


.dropdown-share{
    min-width: 180px;
    background-color: #fbfbfb;
    border: 2px solid #e0e0e0;
    position: relative;
    margin-top: 10px;           /* space for the arrow */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: visible;          /* IMPORTANT so arrow can stick out */
    box-shadow:
            0 8px 34px rgba(0, 0, 0, 0.62);
}

/* Arrow */
.dropdown-share::before{
    content: "";
    position: absolute;
    top: -6px;                  /* pulls arrow upward */
    right: 14px;                /* tune this */
    width: 12px;
    height: 12px;
    background: #fbfbfb;        /* MUST match dropdown background */
    transform: rotate(45deg);

    border-left: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;

    z-index: 2;
}

/* Base row style (optional) */
.dropdown-share .dropdown-item {
    background-color: transparent;
    transition: background-color 0.15s ease;
}
/* Hover + keyboard focus */
.dropdown-share .dropdown-item:hover,
.dropdown-share .dropdown-item:focus {
    background-color: #eaeaea;   /* pick your color */
}
/* Active (when clicking) */
.dropdown-share .dropdown-item:active {
    background-color: #0d6efd;
}

/* Remove underline on hover/focus for share dropdown links */
.dropdown-share .dropdown-item {
    text-decoration: none;
}
.dropdown-share .dropdown-item:hover,
.dropdown-share .dropdown-item:focus {
    text-decoration: none;
}



.icon-wrapper {
    width: 24px;
    height: 24px;
    position: relative;
}

/* Make loader blue */
.icon-loader {
    color: #0d6efd; /* Bootstrap primary blue */
    display: block; /* keep layout stable */
}

/* Rotate immediately */
.icon-loader {
    animation: spin 0.8s linear infinite;
    transform-origin: 50% 50%;
}

/* If you previously used display:none, don't. Use opacity instead */
.icon-wrapper .icon-loader {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    inset: 0;
}

/* When loading, show loader */
.is-loading .icon-wrapper .icon-loader {
    opacity: 1;
    visibility: visible;
}

/* Hide link icon during loading */
.is-loading .icon-wrapper .icon-link {
    opacity: 0;
    visibility: hidden;
}

/* Keyframes */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.price {
    flex: 0 0 240px; width:240px;
}
.price-panel {
background-color: var(--background_color_panel);
    border: 1px solid var(--border-color_panel);
}

.main-price{
    font-size: 1.25rem;
    font-weight: 300;
    background-color: var(--sa_dark_black_color);
    color: var(--sa_yellow_color);
}
.quantity_wrapper {
    position: relative;
}
.quantity_box {
    border: 1px solid var(--border-color_panel);
    border-radius: 6px;
    padding: 8px 36px 8px 12px;
    background: #fff;
    width: 100%;
}
.hide_quantity_select{
    position: absolute; inset: 0;
    opacity: 0;
    width: 100%; height: 100%;
    cursor: pointer;
}





.info-list {
    font-size: 0.75rem;
}

.info-row {
    display: grid;
    padding: 8px 0;
}

.info-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}


.info-link {
    color: var(--link_color);
    text-decoration: var(--link_text_decoration);
    transition: color 0.5s ease;
    font-weight: normal;
    text-decoration: none;
    line-height: normal;
}

.info-link:hover {
    color: var(--link_color_hover);
    text-decoration: var(--link_text_decoration_hover);
    cursor: pointer;
}

button.info-link {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

button.info-link:hover,
a.info-link:hover {
    text-decoration: underline;
}


.tooltip-wrapper {
    position: relative;
    display: inline-block;
}




/* tooltip */

.tooltip-box{
    position:relative;
    display:inline-block;
}

.tip{
    cursor:pointer;
    border-bottom:1px dotted var(--link_color);
    color: var(--link_color);
}

/* tooltip */
.tooltip-content{
    position:absolute;
    z-index:9999;
    left:clamp(10px, 50%, calc(100vw - 10px));
    transform:translateX(-50%);
    top:158%;
    background:#fff;
    border:1px solid var(--tooltip_border_color);
    border-radius:6px;
    padding:26px 26px 26px 26px;
    font-size:13px;
    width:320px;
    white-space:normal;
    opacity:0;
    visibility:hidden;
    transition: opacity 1.0s ease, visibility 0s linear 1s;
    box-shadow:0 4px 12px rgba(0,0,0,.12);
}

/* arrow border */
.tooltip-content::before{
    content:"";
    position:absolute;
    top:-15px;
    left:50%;
    border-width:7px;
    border-style:solid;
    border-color:transparent transparent var(--tooltip_border_color) transparent;
}

/* arrow background */
.tooltip-content::after{
    content:"";
    position:absolute;
    top:-13px;
    left:50%;
    border-width:7px;
    border-style:solid;
    border-color:transparent transparent #fff transparent;
}

/* show tooltip when hovering either text OR tooltip */
.tooltip-box:hover .tooltip-content{
    opacity:1;
    visibility:visible;
    transition: opacity .25s ease;
}

@media (max-width: 768px){
    .tooltip-content{
        left:0;                 /* започва от линка */
        transform:none;         /* махаме -50% */
        max-width:calc(100vw - 20px); /* винаги да се събира на екрана */
        width:max-content;      /* да не се разпъва излишно */
    }
    .tooltip-content::before {
        left:20px;
    }
    .tooltip-content::after{
        left:20px;
    }
}

.tooltip-close{
    position:absolute;
    top:3px;
    right:8px;
    cursor:pointer;
    font-size:16px;
    font-weight:bold;
    color:#777;
    line-height:1;
}

.tooltip-close:hover{
    color:#000;
}

.tooltip-close{
    font-size:26px;
}

.tooltip-box.is-closed .tooltip-content{
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none;
}

/*End of tooltip*/

/* ═══════════════════════════════════════════════════════════════════════════
   Category multi-filter panel (knives only)
   ═══════════════════════════════════════════════════════════════════════════ */

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.filter-bar-count {
    color: #6c757d;
    font-size: var(--font-size-ui-sm);
    margin: 0;
}

.filter-toggle-btn {
    font-size: var(--font-size-ui-sm);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Panel: border + background, Bootstrap collapse handles show/hide */
.filter-panel {
    border: 1px solid var(--border-color_panel);
    border-radius: 0.375rem;
    background: var(--background_color_panel);
    margin-bottom: 1rem;
}

/* Three-column scroll area — fixed 150 px height */
.filter-cols-area {
    height: 150px;
    overflow-y: auto;
    padding: 0.5rem 0.75rem 0;
}

.filter-col-title {
    font-size: var(--font-size-ui-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sa_brown_color);
    margin-bottom: 0.3rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid var(--border-color_panel);
    position: sticky;
    top: 0;
    background: var(--background_color_panel);
    z-index: 1;
}

.filter-check-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: var(--font-size-ui-sm);
    cursor: pointer;
    padding: 0.1rem 0;
    line-height: 1.35;
    white-space: nowrap;
}

.filter-check-label input[type="checkbox"] {
    flex-shrink: 0;
    accent-color: var(--sa_brown_color);
    cursor: pointer;
}

/* Column separators on desktop */
@media (min-width: 768px) {
    .filter-col-brand,
    .filter-col-steel {
        border-right: 1px solid var(--border-color_panel);
        padding-right: 0.75rem;
    }
    .filter-col-steel,
    .filter-col-price {
        padding-left: 0.75rem;
    }
}

/* Mobile: allow columns to stack and expand */
@media (max-width: 767px) {
    .filter-cols-area {
        height: auto;
        max-height: 320px;
    }
    .filter-col-brand,
    .filter-col-steel {
        border-bottom: 1px solid var(--border-color_panel);
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Action buttons row */
.filter-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border-color_panel);
}

/* Active filter chips */
.active-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    font-size: var(--font-size-ui-xs);
    background: var(--sa_yellow_color);
    color: var(--sa_dark_black_color);
    border-radius: 20px;
    padding: 0.15rem 0.55rem;
    font-weight: 500;
}

/* ── Dual range price slider ─────────────────────────────────────────────── */

.price-range-display {
    font-size: var(--font-size-ui-sm);
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.dual-range-container {
    position: relative;
    height: 24px;
    margin: 0 4px;
}

.dual-range-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    transform: translateY(-50%);
    pointer-events: none;
}

.dual-range-fill {
    position: absolute;
    height: 100%;
    background: var(--sa_yellow_color);
    border-radius: 2px;
}

.dual-range-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 24px;
    margin: 0;
    padding: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
}

.dual-range-input:focus {
    outline: none;
}

.dual-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--sa_brown_color);
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    cursor: pointer;
    pointer-events: all;
}

.dual-range-input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--sa_brown_color);
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    cursor: pointer;
    pointer-events: all;
    border: none;
}

.dual-range-input::-webkit-slider-runnable-track {
    background: transparent;
}

.dual-range-input::-moz-range-track {
    background: transparent;
    border: none;
}

/* End of multi-filter panel */


/*story.php*/
img[style*="float:left"] {
    margin-right: 10px;
    margin-bottom: 5px;
}

img[style*="float:right"] {
    margin-left: 10px;
    margin-bottom: 5px;
}
/*end of story.php*/

/* ── Live search dropdown ───────────────────────────────────────────────────── */
.search-wrapper {
    position: relative;
}

.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    max-height: 420px;
    overflow-y: auto;
}

.search-dropdown.is-open {
    display: block;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #e8e8e8;
    text-decoration: none;
    color: #1a1a1a;
    transition: background 0.15s, color 0.15s;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background: #f3ede0;
    color: #000;
    text-decoration: none;
}

.search-dropdown-item__img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
    background: #f5f5f5;
}

.search-dropdown-item__icon {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0ede6;
    border-radius: 4px;
    font-size: 2rem;
}

.search-dropdown-item__body {
    flex-grow: 1;
    min-width: 0;
}

.search-dropdown-item__name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-dropdown-item:hover .search-dropdown-item__name {
    color: #000;
}

.search-dropdown-item__badge {
    display: inline-block;
    font-size: 0.70rem;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 500;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.search-dropdown-item__badge--story {
    background: #e8f4e8;
    color: #2a7a2a;
}

.search-dropdown-item__badge--page {
    background: #e8eef8;
    color: #2a4a8a;
}

.search-dropdown-empty {
    padding: 12px 16px;
    color: #888;
    font-size: 0.9rem;
    text-align: center;
}
/* ── end live search dropdown ───────────────────────────────────────────────── */


/* ── CKEditor content styles for public story/page rendering ─────────────────
   Without these, <img width="2048"> ignores the <figure style="width:20%">
   because the browser uses the HTML attribute, not the figure size.
   These mirror CKEditor 5's own content.css rules.
─────────────────────────────────────────────────────────────────────────────── */
.story-content figure.image,
.page-content figure.image {
    display: table;
    clear: both;
    text-align: center;
    margin: 0.9em auto;
}

.story-content figure.image img,
.page-content figure.image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Key rule: image resized by CKEditor — img fills the figure's width */
.story-content figure.image_resized img,
.page-content figure.image_resized img {
    width: 100%;
    height: auto;
}

.story-content figure.image-style-align-left,
.page-content figure.image-style-align-left {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 0.5em;
}

.story-content figure.image-style-align-right,
.page-content figure.image-style-align-right {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 0.5em;
}

.story-content figure.image-style-align-center,
.page-content figure.image-style-align-center {
    margin-left: auto;
    margin-right: auto;
}

/* Clear floats after story content */
.story-content::after,
.page-content::after {
    content: '';
    display: table;
    clear: both;
}
/* ── end CKEditor content styles ─────────────────────────────────────────────── */
