:root {
    /* Bridge legacy vars to unified palette (defined in index.html) */
    --bg-color: var(--sf-bg, #f5f5f5);
    --text-color: var(--sf-muted, #6c757d);
    --accent-color: var(--sf-accent, #ffc107);
    --contrast-color: var(--bs-dark, var(--sf-text, #111827));
    --gray-color: var(--sf-border, #ccc);
    --red-color: var(--bs-danger, #dc3545);
    --light-gray-color: rgba(17, 24, 39, 0.10);
    --surface-color: var(--sf-surface, #fff);
}

html , body {
    height: 100%;
}

body {
    min-width: 320px;
    font-family: "Roboto", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color) ;
}

a {
    color: var(--text-color);
    text-decoration: underline;
}
a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}
.btn, 
.dropdown-menu,
.form-control {
    border-radius:0;
}
.form-control:focus {
    color: var(--text-color);
    border-color: var(--accent-color);
    box-shadow: none;
}
.form-control::placeholder {
    color: var(--gray-color);
}
.btn-warning  {
    background-color: var(--accent-color);
    color: var(--contrast-color);
}

.bg-warning {
    background-color: var(--accent-color) !important;
}
.btn-outline-warning {
    border-color: var(--accent-color);
}
.btn-outline-warning:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
}

/* ============== General rules ======================*/

.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
main.main {
    flex: 1 1 auto;
}

/**section {
    padding: 50px 0  50px 32px;
}**/

.section-title {
    position: relative;
    text-transform: uppercase;
    color: var(--contrast-color);
    font-weight: 700;
    margin-top: 50px;
    
}

.section-title span {
    background-color: var(--bg-color);
    padding-right: 1rem;
    position: relative;
    z-index: 1;
}

.section-title::after {
    position: absolute;
    content: "";
   
    width: 100%;
    top: 50%;
    left: 0;
    border-top: 1px dashed var(--text-color);
    /*z-index: -1;*/
}

/* ============== General rules ======================*/

.header-top-phone a {
    text-decoration: none;
    
}
.header-top-phone a:hover {
    text-decoration: underline;
    
}


ul.cocial-icons {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
    padding: 0;
}

ul.cocial-icons li{
    margin-right: 10px;
}

ul.cocial-icons a {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    float: left;
    text-align: center;
    transition: all .5s;
}
ul.cocial-icons a:hover {
    background-color: var(--contrast-color);
    color: var(--accent-color);
}

.header-top .btn {
    background-color: var(--surface-color);
}

.header-middle-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 1.5rem;
}

.header-middle-logo {
    display: block;
    line-height: 0;
    text-decoration: none;
    transition: opacity .3s;
}

.header-middle-logo:hover {
    opacity: .85;
}

.header-middle-center {
    text-align: center;
    min-width: 0;
}

.header-brand-center {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: opacity .3s;
}

.header-brand-center:hover {
    opacity: .85;
    color: inherit;
}

.header-middle-search {
    width: 220px;
    max-width: 100%;
    justify-self: end;
}

.header-middle-search .form-control {
    min-width: 0;
}

.product-search-wrap {
    position: relative;
}

.product-search-results {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 1050;
    background-color: var(--surface-color);
    border: 1px solid var(--gray-color);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    max-height: 280px;
    overflow-y: auto;
}

.product-search-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.75rem;
    border: 0;
    background: transparent;
    color: var(--contrast-color);
    cursor: pointer;
    font-size: 0.92rem;
}

.product-search-item:hover,
.product-search-item.is-active {
    background-color: rgba(255, 193, 7, 0.18);
}

.product-search-item small {
    display: block;
    margin-top: 0.15rem;
    color: var(--text-color);
    font-size: 0.78rem;
}

.product-search-empty {
    padding: 0.6rem 0.75rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.header-company-name {
    display: block;
    font-size: clamp(1.15rem, 2.2vw, 1.65rem);
    font-weight: 700;
    color: var(--contrast-color);
    line-height: 1.2;
}

.header-slogan {
    display: block;
    margin-top: 0.35rem;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: var(--text-color);
    line-height: 1.3;
}

.header-logo-img {
    display: block;
    height: 90px;
    width: auto;
    max-width: 90px;
}

.header-middle {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    background-color: var(--accent-color);
}

.header-middle .header-slogan {
    color: var(--contrast-color);
    opacity: 0.8;
}

.header-middle-search .form-control {
    background-color: var(--surface-color);
    border-color: rgba(17, 24, 39, 0.2);
}

.header-middle-search .btn-outline-warning {
    border-color: var(--contrast-color);
    color: var(--contrast-color);
    background-color: transparent;
}

.header-middle-search .btn-outline-warning:hover {
    background-color: var(--contrast-color);
    border-color: var(--contrast-color);
    color: var(--accent-color);
}

@media only screen and (max-width: 767.98px) {
    .header-middle-bar {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 0.75rem 1rem;
    }

    .header-middle-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .header-middle-search {
        grid-column: 2;
        grid-row: 1;
        width: min(180px, 100%);
    }

    .header-middle-center {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .header-logo-img {
        height: 72px;
        max-width: 72px;
    }
}
.cart-buttons .btn {
    color: var(--contrast-color);
    transition: all .3s;
}
.cart-buttons .btn:hover {
    border: 1px solid var(--contrast-color);
}

.offcanvasCart-table .product-img-td {
    width: 70px;
    text-align: center;
}
.offcanvasCart-table img {
    max-width: 50px;
}

.offcanvasCart-table a {
    text-decoration: none;
    display: block;
}
.offcanvasCart-table a:hover {
    text-decoration: underline;   
}

.panel-badge {
    font-size: 0.65rem;
    min-width: 1.25rem;
    padding: 0.2em 0.45em;
}

.sf-panel-empty {
    text-align: center;
    color: var(--text-color);
    padding: 2rem 0.5rem;
}

.sf-panel-empty.d-none {
    display: none !important;
}

.sf-panel-list:not(:empty) + .sf-panel-hint,
#favorites-list:not(:empty) ~ .sf-panel-hint {
    display: block;
}

.sf-panel-hint {
    display: none;
}

.sf-panel-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray-color);
}

.sf-panel-item:last-child {
    border-bottom: 0;
}

.sf-panel-item-img {
    flex: 0 0 64px;
    display: block;
}

.sf-panel-item-img img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: var(--surface-color);
    border: 1px solid var(--light-gray-color);
}

.sf-panel-item-body {
    flex: 1;
    min-width: 0;
}

.sf-panel-item-name {
    font-weight: 600;
    color: var(--contrast-color);
    margin-bottom: 0.5rem;
}

.sf-panel-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.sf-panel-footer .btn:disabled {
    opacity: 0.5;
}

.header-bottom {
    box-shadow:0 10px 10px rgba(0, 0, 0, .3);
}
.header-bottom .navbar ,
.header-bottom .navbar .dropdown-menu {
    background-color: var(--contrast-color) !important;
}

.header-bottom .nav-item:first-child .nav-link {
    padding-left: 0;
}
.header-bottom .navbar .nav-link {
    color: var(--surface-color);
    transition: .3s all;
    letter-spacing: .1rem;
}
.header-bottom .navbar .nav-link:hover {
    color: var(--accent-color);
}
.header-bottom .navbar .nav-link.active {
    color: var(--accent-color);
}    
.header-bottom .navbar .dropdown-menu {
    margin-top: 7px;
}
.headernav-scroll.header-bottom .navbar .offcanvas:not(.show) .nav-link {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

/*.right-header {
    justify-content: end;
}*/
/* ============== Header rules ======================*/

/* ============== Main rules ======================*/


/* ============== Carousel rules ======================*/
.carousel-caption {
    text-shadow: 0 0 2px rgba(0, 0, 0, .9);
}

/* ============== Carousel rules ======================*/ 

/* ============== Advantedges rules ======================*/



.advantages .item  {
    background-color: var(--surface-color);
    text-align: center;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all .3s;
}
.advantages .item:hover {
    box-shadow: 0 15px 30px -20px rgba(0, 0, 0, .9);
}



.advantages i {
    font-size: 50px;
    color: var(--accent-color);

}
/* ============== Advantedges rules ======================*/

/* ============== Feature products ======================*/

/* ============== Product card ======================*/
.product-card {
    transition: all .3s;
    border: 1px solid var(--gray-color);
    background-color: var(--surface-color);
    position: relative;
    scroll-margin-top: 120px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 10px 20px -15px rgba(0, 0, 0, 0.75);
}

.product-card.product-card-highlight {
    box-shadow: 0 0 0 3px var(--accent-color), 0 12px 24px -12px rgba(0, 0, 0, 0.45);
}

.product-card-offer {
    color: var(--surface-color);
    position: absolute;
    top: 5px;
    right: 5px;
    text-transform: uppercase;

}
.product-card-offer>div {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.offer-hit {
    background-color: var(--red-color); 
}
.offer-new {
    background-color :var(--accent-color);
} 
.product-thumb {
    text-align: center;
    height: 250px;
    overflow: hidden;
    background-color: var(--sf-bg, #f8fafc);
}

.product-thumb a.product-photo-zoom {
    display: block;
    height: 100%;
    cursor: zoom-in;
}

.product-modal-photo,
.product-modal-drawing {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
}

.product-drawing-placeholder {
    padding: 3rem 1rem;
    color: var(--text-color);
}

.product-gallery-thumb {
    display: block;
    border: 1px solid var(--gray-color);
    overflow: hidden;
    cursor: zoom-in;
    transition: border-color .3s;
}

.product-gallery-thumb:hover {
    border-color: var(--accent-color);
}

.product-gallery-thumb img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.product-gallery-thumb.is-active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.product-gallery-viewer-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.product-gallery-viewer-img {
    max-height: 70vh;
    max-width: calc(100% - 120px);
    object-fit: contain;
}

.product-gallery-nav {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transition: opacity .3s;
}

.product-gallery-nav:hover {
    opacity: .85;
}

.product-gallery-nav:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.product-gallery-counter {
    color: var(--text-color);
    font-size: .95rem;
}

.product-thumb img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.product-details {
padding: 10px 20px;
flex: 1;
display: flex;
flex-direction: column;
}
.product-details h4  {
    font-size: 1.2rem;
}
.product-details h4 a {
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
  /* -webkit-line-clamp: 2;--> */
    -webkit-box-orient: vertical;
    text-decoration: none;
    transition: all .3s;
}
.product-details h4 a:hover {
    color: var(--accent-color);
}
.product-excerpt {
    margin-bottom: 0;
    line-height: 1.4;
    flex: 1;
    min-height: 4.2em;
}
.product-bottom-detalis {
    border-top: 1px solid var(--light-gray-color);
    padding-top: 1rem;
    align-items: center;
}

.product-links {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.favorite-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px;
}

.favorite-toggle[aria-pressed="true"] {
    color: var(--red-color);
    border-color: var(--red-color);
}
.product-price {
    font-size: 18px;
    color: var(--red-color);
    font-weight: 600;
}
.product-price small {
    color: var(--gray-color);
    font-weight: 400;
    text-decoration: line-through;
    font-size: 0.8rem;
}
.owl-carousel-full .owl-item {
    display: flex;
}

.owl-carousel-full .owl-item .product-card {
    width: 100%;
}

.owl-carousel-full .owl-item img {
    display: inline-block;
    width: auto;
}

.carousel-scroll-hint {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.85;
}

.carousel-scroll-hint i {
    margin-right: 0.35rem;
    color: var(--accent-color);
}

.carousel-hint-wrap {
    position: relative;
}

.carousel-hint-wrap::before,
.carousel-hint-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.carousel-hint-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.carousel-hint-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.carousel-hint-wrap.is-scrollable:not(.is-at-start)::before,
.carousel-hint-wrap.is-scrollable:not(.is-at-end)::after {
    opacity: 1;
}

.carousel-hint-wrap:not(.is-scrollable) .owl-nav,
.carousel-hint-wrap:not(.is-scrollable) .owl-dots {
    display: none;
}

.carousel-hint-wrap .owl-nav {
    position: absolute;
    top: 42%;
    left: 0;
    right: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 0.25rem;
    pointer-events: none;
    z-index: 2;
}

.carousel-hint-wrap .owl-nav [class*="owl-"] {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--contrast-color);
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.15);
    transition: opacity 0.3s, transform 0.2s;
}

.carousel-hint-wrap .owl-nav [class*="owl-"]:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    opacity: 0.9;
    transform: scale(1.05);
}

.carousel-hint-wrap .owl-nav .disabled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.carousel-hint-wrap .owl-dots {
    margin-top: 1.25rem;
}

.carousel-hint-wrap .owl-dots .owl-dot span {
    background: var(--gray-color);
}

.carousel-hint-wrap .owl-dots .owl-dot.active span,
.carousel-hint-wrap .owl-dots .owl-dot:hover span {
    background: var(--accent-color);
}

@media (max-width: 575.98px) {
    .carousel-hint-wrap .owl-nav {
        padding: 0;
    }

    .carousel-hint-wrap .owl-nav [class*="owl-"] {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}
/* ============== Product card ======================*/

/* ============== Feature products ======================*/
/* ============== About us ======================*/
.about-us {
    background-color: var(--surface-color);
}
.about-us .section-title span ,
.sidebar .section-title span {
    background-color: var(--surface-color);
}

/* ============== About us ======================*/
/* ============== Footer ======================*/
footer {
    background-color: var(--contrast-color);
    padding: 50px 0;
    color: var(--surface-color);

}
footer h4 {
   color: var(--accent-color);
}
footer a {
    color: var(--surface-color);
    text-decoration: none;
    transition: all .3s;
}
footer a:hover {
    color: var(--accent-color);
}
.footer-icons {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    font-size: 20px;
}
/* ============== Footer ======================*/
#top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    opacity: .5;
    color: var(--surface-color);
    width: 70px;
    height: 70px;
    border-radius:50%;
    border: 0;
    font-size: 25px;
    transition: all .5s;
    z-index: 10;
    display: none;
}
#top:hover {
    opacity: 1;
}
/* ============== Main rules ======================*/
/*================ Category Page ==========================*/
.breadcrumbs {
    margin: 30px 0;
    background-color: var(--surface-color);
    padding: 1rem;
}
.breadcrumbs ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
.breadcrumbs a {
    text-decoration: none;
    color: var(--contrast-color);
    transition: all .5s;
    margin-right: 0.5rem;
}

.breadcrumbs a:hover {
    color:var(--accent-color);
}
.breadcrumbs a::after {
    content: "/";
    padding-left: 0.5rem;
    color: var(--contrast-color);
}
.sidebar {
    background-color: var(--surface-color);
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}
.filter-block:not(:last-child) {
    margin-bottom: 2rem;
}
.filter-block .form-check {
    margin-bottom: 0.5rem;

}
.form-check-input[type=checkbox] {
    border-radius: 0;
    border-color: var(--gray-color);
}
.form-check-input:focus {
    box-shadow: none;
    border-color: var(--gray-color);
}
.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
.filter-block .badge {
    color: var(--text-color);
}

.page-link {
   
    color: var(--text-color);
}
.page-link:hover {
    background-color:var(--accent-color);
    color: var(--contrast-color);
}

/*================ Category Page ==========================*/
@media only screen and (min-width: 992px) {   
.header-bottom .navbar .dropdown-menu-end {
    margin-left: 0;
    border: 0;
}
.header-bottom .navbar .nav-link{
padding: 1rem;
}
}

@media only screen and (max-width: 991.98px) {   
    .header-bottom .navbar .dropdown-menu {
        margin-left: 1rem;       
    }
    }