/* Основен стил на менюто */
.eshop-menu {
    font-size: 0.95rem !important;
    z-index: 1030 !important;
    background-color: #ffffff !important;
}

/* Центриране на навигацията */
.eshop-menu .navbar-nav {
    align-items: center !important;
    justify-content: center !important;
}

/* Линкове в менюто */
.eshop-menu .nav-link {
    font-weight: 500 !important;
    padding: 0.75rem 1rem !important;
    position: relative !important;
    color: #212529 !important;
}

.eshop-menu .nav-link:hover,
.eshop-menu .nav-link:focus,
.eshop-menu .nav-link.show {
    color: #0d6efd !important;
}

/* Подчертаване при hover */
.eshop-menu .nav-link::after {
    content: "" !important;
    position: absolute !important;
    left: 1rem !important;
    right: 1rem !important;
    bottom: 0.4rem !important;
    height: 2px !important;
    background: transparent !important;
    transform: scaleX(0) !important;
    transform-origin: center !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
}

.eshop-menu .nav-link:hover::after,
.eshop-menu .nav-link:focus::after,
.eshop-menu .nav-link.show::after {
    background: #0d6efd !important;
    transform: scaleX(1) !important;
}

/* Mega dropdown – десктоп */
.eshop-megamenu {
    position: static !important;
}

.eshop-megamenu .dropdown-menu {
    min-width: 100% !important;
    max-width: 1100px !important;
    margin-top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: 0.75rem !important;
    border: none !important;
    background-color: #ffffff !important;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1) !important;
}

.eshop-megamenu .dropdown-menu .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.eshop-megamenu .dropdown-item {
    padding: 0.2rem 0 !important;
    font-size: 0.9rem !important;
    color: #495057 !important;
    background-color: transparent !important;
}

.eshop-megamenu .dropdown-item:hover,
.eshop-megamenu .dropdown-item:focus {
    color: #0d6efd !important;
    background-color: transparent !important;
}

/* Заглавия в колоните */
.eshop-megamenu .dropdown-menu h6 {
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
}

/* Мобилно поведение */
@media (max-width: 991.98px) {
    .eshop-megamenu .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .eshop-megamenu .dropdown-menu .row {
        flex-direction: column !important;
    }

    .eshop-megamenu .dropdown-item {
        padding-left: 1rem !important;
    }

    .eshop-menu .nav-link::after {
        display: none !important;
    }
}




/* Wrapper */
.eshop-page-wrapper {
    background-color: #f8f9fa !important;
}

/* Hero section */
.eshop-hero {
    background: radial-gradient(circle at top left, #e0f0ff, #ffffff) !important;
    border-radius: 1rem !important;
    padding: 2rem 1.5rem !important;
}

@media (min-width: 768px) {
    .eshop-hero {
        padding: 2.5rem 3rem !important;
    }
}

.eshop-hero-title {
    font-size: 1.9rem !important;
    font-weight: 700 !important;
}

@media (min-width: 992px) {
    .eshop-hero-title {
        font-size: 2.3rem !important;
    }
}

.eshop-hero-subtitle {
    font-size: 0.98rem !important;
    color: #495057 !important;
}

.bg-danger-soft {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

/* Hero image */
.eshop-hero-image {
    max-height: 280px !important;
    object-fit: contain !important;
}

/* Section titles */
.eshop-section-title {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
}

/* "See more" link */
.eshop-link-more {
    font-size: 0.9rem !important;
    color: #0d6efd !important;
    text-decoration: none !important;
}

.eshop-link-more:hover {
    text-decoration: underline !important;
}

/* Product cards */
.eshop-product-card {
    border-radius: 0.75rem !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.eshop-product-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.eshop-product-card.small .card-img-top {
    max-height: 120px !important;
    object-fit: contain !important;
}

/* Image wrapper */
.eshop-product-image-wrapper {
    position: relative !important;
    display: block !important;
    background-color: #f1f3f5 !important;
}

.eshop-product-image-wrapper img {
    padding: 0.75rem !important;
}

/* Sale badge */
.eshop-badge-sale {
    position: absolute !important;
    top: 0.6rem !important;
    left: 0.6rem !important;
    background: #dc3545 !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    padding: 0.2rem 0.45rem !important;
    border-radius: 999px !important;
}

/* Placeholder image */
.eshop-product-image-placeholder {
    height: 160px !important;
    background: linear-gradient(135deg, #e9ecef, #f8f9fa) !important;
}

.eshop-product-card.small .eshop-product-image-placeholder {
    height: 100px !important;
}

/* Product text */
.eshop-product-name {
    font-size: 0.95rem !important;
    margin-bottom: 0.3rem !important;
}

.eshop-product-name a {
    color: #212529 !important;
    text-decoration: none !important;
}

.eshop-product-name a:hover {
    color: #0d6efd !important;
}

.eshop-product-name.small {
    font-size: 0.85rem !important;
}

.eshop-product-meta {
    font-size: 0.8rem !important;
    color: #6c757d !important;
}

.eshop-product-brand {
    font-weight: 500 !important;
}

/* Price */
.eshop-product-price {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 0.25rem !important;
}

.eshop-product-price .price-regular,
.eshop-product-price .price-new {
    font-weight: 600 !important;
    color: #198754 !important;
}

.eshop-product-price .price-old {
    font-size: 0.85rem !important;
    color: #adb5bd !important;
    text-decoration: line-through !important;
}

/* Seasonal promos */
.eshop-seasonal-promos .eshop-promo-card {
    border-radius: 1rem !important;
    padding: 1.75rem !important;
    display: flex !important;
    flex-direction: column !important;
    color: #212529 !important;
}

.eshop-promo-summer {
    background: linear-gradient(135deg, #ffe8cc, #fff4e6) !important;
}

.eshop-promo-winter {
    background: linear-gradient(135deg, #4c6ef5, #5c7cfa) !important;
    color: #ffffff !important;
}

.eshop-promo-label {
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    opacity: 0.8 !important;
    margin-bottom: 0.5rem !important;
}

.eshop-promo-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.eshop-promo-text {
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
}

/* Placeholder tweaks (Bootstrap 5) */
.placeholder-glow .placeholder {
    border-radius: 999px !important;
}




.eshop-category-page {
    background-color: #f8f9fa !important;
}

/* Sidebar */
.eshop-sidebar {
    background-color: #ffffff !important;
    border-radius: 0.75rem !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 1.25rem 1rem !important;
}

@media (min-width: 992px) {
    .eshop-sidebar {
        padding: 1.5rem 1.25rem !important;
    }
}

.eshop-sidebar-block {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding-bottom: 1.25rem !important;
}

.eshop-sidebar-block:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.eshop-sidebar-title {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.75rem !important;
}

/* Category list in sidebar */
.eshop-category-list li + li {
    margin-top: 0.35rem !important;
}

.eshop-category-link {
    display: block !important;
    font-size: 0.9rem !important;
    color: #495057 !important;
    text-decoration: none !important;
    padding: 0.2rem 0 !important;
}

.eshop-category-link:hover {
    color: #0d6efd !important;
}

.eshop-category-link.active {
    font-weight: 600 !important;
    color: #0d6efd !important;
}

/* Filters */
.eshop-filter-label {
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #495057 !important;
}

/* Category header */
.eshop-category-header {
    padding: 0.5rem 0 0.75rem 0 !important;
}

.eshop-category-title {
    font-weight: 600 !important;
}

.eshop-category-description {
    font-size: 0.9rem !important;
    color: #495057 !important;
}

/* Toolbar */
.eshop-category-toolbar {
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.eshop-sort-select {
    min-width: 180px !important;
}

/* Product cards (повтаря стила от home, но с !important за сигурност) */
.eshop-product-card {
    border-radius: 0.75rem !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.eshop-product-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.eshop-product-image-wrapper {
    position: relative !important;
    display: block !important;
    background-color: #f1f3f5 !important;
}

.eshop-product-image-wrapper img {
    padding: 0.75rem !important;
    max-height: 200px !important;
    object-fit: contain !important;
}

/* Sale badge */
.eshop-badge-sale {
    position: absolute !important;
    top: 0.6rem !important;
    left: 0.6rem !important;
    background: #dc3545 !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    padding: 0.2rem 0.45rem !important;
    border-radius: 999px !important;
}

/* Product text */
.eshop-product-name {
    font-size: 0.95rem !important;
    margin-bottom: 0.3rem !important;
}

.eshop-product-name a {
    color: #212529 !important;
    text-decoration: none !important;
}

.eshop-product-name a:hover {
    color: #0d6efd !important;
}

.eshop-product-meta {
    font-size: 0.8rem !important;
    color: #6c757d !important;
}

.eshop-product-brand {
    font-weight: 500 !important;
}

/* Price */
.eshop-product-price {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 0.25rem !important;
}

.eshop-product-price .price-regular,
.eshop-product-price .price-new {
    font-weight: 600 !important;
    color: #198754 !important;
}

.eshop-product-price .price-old {
    font-size: 0.85rem !important;
    color: #adb5bd !important;
    text-decoration: line-through !important;
}

/* Responsive sidebar toggle */
@media (max-width: 991.98px) {
    .eshop-sidebar {
        margin-bottom: 1rem !important;
    }
}



#breadcrumb{
    width: 100%;
    position: relative;
}


.breadcrumb-arrow {
    margin-bottom: 0px !important;
    padding: 0;
    line-height: 36px;
    list-style: none;
    /*background-color: #e6e9ed*/
}
.breadcrumb-arrow li:first-child a {
    border-radius: 4px 0 0 4px;
    -webkit-border-radius: 4px 0 0 4px;
    -moz-border-radius: 4px 0 0 4px
}
.breadcrumb-arrow li, .breadcrumb-arrow li a, .breadcrumb-arrow li span {
    display: inline-block;
    vertical-align: top
}
.breadcrumb-arrow li:not(:first-child) {
    margin-left: -5px
}
.breadcrumb-arrow li+li:before {
    padding: 0;
    content: ""
}
.breadcrumb-arrow li span {
    padding: 0 10px
}
.breadcrumb-arrow li a, .breadcrumb-arrow li:not(:first-child) span {
    height: 36px;
    padding: 0 10px 0 25px;
    line-height: 36px;
    background-color: #383838;
    color: #c0b8b8;
}
.breadcrumb-arrow li:first-child a {
    padding: 0 10px
}
.breadcrumb-arrow li a {
    position: relative;
    color: #fff;
    text-decoration: none;
    background-color: #ef3d10;
    border: 1px solid #ef3d10
}
.breadcrumb-arrow li:first-child a {
    padding-left: 10px
}
.breadcrumb-arrow li a:after, .breadcrumb-arrow li a:before {
    position: absolute;
    top: -1px;
    width: 0;
    height: 0;
    content: '';
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent
}
.breadcrumb-arrow li a:before {
    right: -10px;
    z-index: 3;
    border-left-color: #ef3d10;
    border-left-style: solid;
    border-left-width: 11px
}
.breadcrumb-arrow li a:after {
    right: -11px;
    z-index: 2;
    border-left: 11px solid #ef3d10
}
.breadcrumb-arrow li a:focus, .breadcrumb-arrow li a:hover {
    background-color: #FFFFFF;
    border: 1px solid #FFFFFF;
    color: #ef3d10;
}
.breadcrumb-arrow li a:focus:before, .breadcrumb-arrow li a:hover:before {
    border-left-color: #FFFFFF;
    color: #434a54;
}
.breadcrumb-arrow li a:active {
    background-color: #FFFFFF;
    border: 1px solid #FFFFFF;
    color: #ef3d10;
}
.breadcrumb-arrow li a:active:after, .breadcrumb-arrow li a:active:before {
    border-left-color: #FFFFFF;
    color: #434a54;
}
.breadcrumb-arrow li span {
    color: #434a54
}





#productTabContent {
    margin-top: 1rem;
}

/* Подравняване на продуктите в ред */
#productTabContent .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Всички продукти да имат еднаква ширина и височина */
#productTabContent .col-6,
#productTabContent .col-sm-4,
#productTabContent .col-md-2 {
    flex: 1 1 calc(20% - 10px);
    /* 5 продукта на ред, като махнем малки разстояния */
    max-width: calc(20% - 10px);
    display: flex;
    justify-content: center;
}

/* Гарантиране на еднакъв размер на картите */
#productTabContent .product-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Оразмеряване на изображенията */
#productTabContent .product-card .product-img {
    width: 100%;
    height: 200px;
    /* Може да се коригира според дизайна */
    object-fit: cover;
}

/* За мобилни устройства */
@media (max-width: 767px) {
    #productTabContent .col-6 {
        flex: 1 1 100%;
        /* Продуктите ще се нареждат един под друг */
        max-width: 100%;
    }
}

#productTabContent .product-info .product-manufacturer {
    padding: 5px;
    background-color: #fbfbfb;

}

#productTabContent .product-info .product-price {
    font-size: 1.45rem;
}

#productTabContent .product-info .product-name {
    font-family: 'Montserrat';
    font-weight: 700;
    color: rgba(68, 67, 73, 1);
}

#productTabContent .product-card:hover .product-info .product-name {
    color: #a8962d;
}




#productTab {
    gap: 20px;
    border: none;
}

#productTab a {
    font-family: 'Montserrat';
    font-weight: 700;
    font-size: 0.85rem;
    color: rgba(68, 67, 73, 1);
    text-transform: uppercase;
    justify-content: center;
    /* white-space: nowrap; */
    /* padding: 0; */
    /* padding-bottom: 10px; */
    border: none;

}

@media (min-width: 765px) {
    #productTab a {
        font-size: 1.25rem;
        /* По-голям шрифт за устройства над 765px ширина */
    }
}

#productTab .nav-link.active {
    border-bottom: solid 1px #a8962d;
}


.main-content #breadcrumb {
    padding: 10px;
    min-height: var(--min-height);
    display: flex;
    background-color: rgba(240, 242, 245, 1);
    --background-color: rgba(240, 242, 245, 1);
}





.refine-categories {
    margin-top: 20px;
    display: flex;
    gap: 40px;
    /* Разстояние между елементите */
    flex-wrap: nowrap;
    /* Без пренасяне на елементите на нов ред */
    overflow-x: auto;
    /* Добавя скрол, ако елементите надвишават контейнера */
}

.refine-item {
    border: solid 1px;
    width: 120px;
    text-align: center;
    flex-shrink: 0;
    padding: 7px;
    border-color: rgba(221, 221, 221, 1)
}

.refine-item:hover {
    border-color: rgba(198, 154, 76, 1);
}

.refine-item:hover .refine-name {
    color: rgba(198, 154, 76, 1);
}

.refine-item img {
    width: 100%;
    /* Изображението да запълва ширината на елемента */
    height: auto;
    border-radius: 5px;
    /* Заобляне на ъглите */
}

.refine-name {
    display: block;
    margin-top: 5px;
    font-size: 1.25rem;
    color: #333;
    text-decoration: none;
}

.refine-item a {
    text-decoration: none;
    /* Без подчертаване на линковете */
    color: inherit;
    /* Цветът на текста да се взима от родителя */
}

#productContainer .product-item {
    width: 25%;
    /* 4 на ред */
    /* transition: all 0.3s ease-in-out; */
}

#productContainer .position-relative {
    padding: 20px;
    height: 25rem;
}

#productContainer .product-item a {
    text-decoration: none;
}

#productContainer .product-item:hover {
    color: rgba(198, 154, 76, 1);
}

/* Списък (1 на ред) */
#productContainer.list-view .product-item {
    width: 100%;
    /* 1 на ред */
}

#productContainer .product-description{
    display: none;
}

.productContainerList .grid-list {
    display: flex;
}

.productContainerList .view-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
}

.productContainerList .view-btn.active {
    color: rgba(198, 154, 76, 1);
}

.productContainerList .align-items-center {
    gap: 10px;
}


.productContainerList .badge {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 5px;
}

.productContainerList .position-absolute {
    position: absolute;
}

.productContainerList .top-left {
    top: 10px;
    left: 10px;
}

.productContainerList .top-right {
    top: 10px;
    right: 10px;
}


/* Размери на картинката */
.productContainerList .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Стилове за цената */
.productContainerList .card-price {
    font-size: 18px;
}

@media (max-width: 767px) {
    #btn-grid-view {
        display: none;
        /* Скрива бутона за Grid */
    }

    .productContainerList .grid-list {
        justify-content: flex-start;
        /* Подравнява бутоните вляво */
    }

    #productContainer {
        display: flex;
        flex-direction: column;
    }

    .productContainerList .product-item {
        width: 100%;
        /* Продуктите стават в списък */
    }
}

.productContainerList #productContainer.list-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.productContainerList #productContainer.list-view .product-item {
    /* display: flex; */
    align-items: center;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
}

.productContainerList #productContainer.list-view .position-relative{
    height: unset !important;
}

.productContainerList #productContainer.list-view .card {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    box-shadow: none;
    border: none;
}

.productContainerList #productContainer.list-view .card-img-top {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.productContainerList #productContainer.list-view .card-body {
    flex: 1;
    text-align: left;
    padding: 0;
}

.productContainerList #productContainer.list-view .card-title {
    font-size: 16px;
    margin: 0;
}

.productContainerList #productContainer.list-view .card-price {
    font-size: 14px;
    font-weight: bold;
    color: #28a745;
    margin-top: 5px;
}

.productContainerList #productContainer.list-view .product-description{
    display: block;
}




/* Styles specific to product page */
.product-page .product-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.product-page .product-price {
    margin-top: 1rem;
    font-size: 1.5rem;
    color: #e67e22;
}

.product-page .product-category {
    font-size: 1.1rem;
    font-weight: 300;
}

.product-page .product-description {
    font-size: 1.2rem;
    color: #2d2f30;
}

.product-page .product-image img {
    border-radius: 15px;
}

.product-page .buy-button button {
    font-size: 1.2rem;
    border-radius: 0;
    width: 100%;
}

.product-page .buy-button i {
    font-size: 22px;
    color: white;
    text-shadow: 0 0 0px black, 0 0 1px black, 0 0 3px black;
}

.product-page .buy-button {
    gap: 30px;
}

.product-page .buy-button #quantity {
    width: 60px;
}

/* Премахва стрелките на input[type="number"] за всички браузъри */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    /* Firefox */
    appearance: textfield;
    /* Други браузъри */
}



.product-page .tab-content h5 {
    font-size: 1.5rem;
    font-weight: 500;
}

.product-page .nav-tabs .nav-link {
    font-size: 1.1rem;
    font-weight: 500;
}

.product-page .nav-tabs .nav-link.active {
    color: #fff;
    /* background-color: #e67e22; */
    border-color: #e67e22;
}

.product-page .nav-tabs .nav-link:hover {
    color: #a8962d !important;
}

.product-page .product-info .price {
    color: #27ae60;
    font-weight: 700;
}

.product-page .product-info .old-price {
    text-decoration: line-through;
    color: #7f8c8d;
}

.product-page .nav-tabs .nav-link {
    padding: 10px 15px;
}

.product-page .product-title {
    margin-bottom: 15px;
}

.product-page .product-image {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.product-page .nav-tabs .nav-link {
    border-radius: 10px;
    font-weight: 600;
}

.product-page .tab-content {
    margin-top: 20px;
}


.product-info .rating-page {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Разстояние между звездите и отзивите */
}

.product-info .rating-stars {
    display: flex;
    gap: 5px;
    /* Разстояние между звездите */
    font-size: 20px;
    /* Големина на звездите */

}

.product-info .rating-stars .fa-star {
    color: rgba(105, 105, 115, 1);
}

.product-info .review-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-info .review-links a {
    color: rgba(105, 105, 115, 1);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    /* Предотвратява пренасянето на нов ред */
}

.product-info .review-links a:hover {
    text-decoration: underline;
}