body {
    background-color: #ededed;
}

main > .container, main > .container-fluid
{
    padding: 70px 15px 20px;
}

.footer {
    font-size: .9em;
    background-color: #ffffff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.footer > .container, .footer > .container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.navbar form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .navbar form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.navbar form > button.logout:focus,
.navbar form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.navbar form > button.logout:focus {
    outline: none;
}

/* style breadcrumb widget as in previous bootstrap versions */
.breadcrumb {
    background-color: var(--bs-gray-200);
    border-radius: .25rem;
    padding: .75rem 1rem;
}

.breadcrumb-item > a
{
    text-decoration: none;
}

.card {
    background-color: rgba(255,255,255,0.7);
    border: solid 1px rgba(0,0,0,0.1);
}

.breadcrumb {
    padding: 0;
    background: none;
}

div.required label:after {
    content: " *";
    color: #dc3545;
}

.nav-link {
    position: relative;
}

.nav-link.black-menu {
    color: rgba(255,255,255,0.5) !important;
}

.nav-link.black-menu.active {
    background: none !important;
    color: #ffffff;
}

.nav-link.black-menu.active::after {
    border: 6px solid #0000;
    border-bottom: 6px solid #f5f5f5;
    border-top: none;
    bottom: 0;
    content: " ";
    height: 0;
    left: 50%;
    margin-left: -5px;
    position: absolute;
    width: 0;
    margin-bottom: -8px;
}


/* ////////////////////////////////////////////// */

/* Стили только для ленты */
.ribbon {
    position: absolute;
    top: 15px;
    left: -5px;
    z-index: 10;
    display: flex;
    align-items: center;
    height: 36px;
    color: white;
    font-weight: bold;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

/* Кончик ленты */
.ribbon-tip {
    padding: 8px 6px 8px 12px;
    background: inherit;
    white-space: nowrap;
    z-index: 2;
    position: relative;
    /* Убедимся, что стрелка не обрезается */
    overflow: visible;
}

/* Полный текст */
.ribbon-text {
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    max-width: 0;
    overflow: hidden;
    text-transform: uppercase;
}

/* Стрелочка - ФИКСИРОВАННАЯ ВЕРСИЯ */
.ribbon-tip::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 10px solid;
}

/* Цвета лент - УБИРАЕМ ГРАДИЕНТ */
.ribbon-primary {
    background: #2f73da;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
}
.ribbon-primary .ribbon-tip::after {
    border-left-color: #2f73da;
}
.ribbon-success {
    background: #198754;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
}
.ribbon-success .ribbon-tip::after {
    border-left-color: #198754;
}
.ribbon-danger {
    background: #dc3545;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
}
.ribbon-danger .ribbon-tip::after {
    border-left-color: #dc3545;
}

.ribbon-warning {
    background: #fd7e14;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
}
.ribbon-warning .ribbon-tip::after {
    border-left-color: #fd7e14;
}

.ribbon-info {
    background: #6f42c1;
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
}
.ribbon-info .ribbon-tip::after {
    border-left-color: #6f42c1;
}

/* Анимация */
.ribbon:hover {
    transform: scaleX(1.05);
}

.ribbon:hover .ribbon-text {
    opacity: 1;
    transform: translateX(0);
    max-width: 200px;
}

/* Для мобильных */
@media (max-width: 768px) {
    .ribbon:active .ribbon-text {
        opacity: 1;
        transform: translateX(0);
        max-width: 200px;
    }

    .ribbon:active {
        transform: scaleX(1.05);
    }
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.breadcrumb {
    font-size: 0.8em;
    margin: 0 0 5px 0;
}

.content-wrapper {
    padding-top: 160px;
}

@media (max-width: 767.98px) {
    .content-wrapper {
        padding-top: 120px;
    }
}

.category-card {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.wave-container {
    height: 30px;
    position: relative;
    margin: -1px 0;
}

.wave-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wave-path {
    fill: #2f73da;
}

.category-card:hover .wave-path {
    fill: #2561c2;
}

.category-card:hover .wave-container {
    box-shadow: 0 15px 12px -5px #2561c2;
}

.category-card .btn-light {
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-card:hover .btn-light {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* HERO */

.hero-section {
    position: relative;
    overflow: hidden;
    margin-top: -14px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1.1;
}

.search-form .input-group {
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.search-form .form-control {
    background: transparent;
    border: none;
    font-size: 1rem;
}

.search-form .form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.search-form .form-control:focus {
    background: transparent;
    box-shadow: none;
    border: none;
}

.search-form .input-group-text {
    background: transparent;
    border: none;
}

.banner-card {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.banner-placeholder {
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

/* Анимации */
.hero-content {
    animation: slideInLeft 0.8s ease-out;
}

.hero-banner {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Адаптивность */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .min-vh-50 {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
}

.sub-category-title:hover {
    text-decoration: underline;
}

.product-image .favorite-button {
    position: absolute;
    bottom: 5px;
    right: 10px;
    transition: all 200ms linear;
    cursor: pointer;
}

.product-image:hover .favorite-button {
    opacity: 1;
}

.favorite-button-opacity {
    opacity: 0;
}

.favorite-button-opacity:hover {
    opacity: 1;
}

.invalid-feedback {
    display: block !important;
    color: #dc3545 !important;
}

.is-invalid {
    border-color: #dc3545 !important;
}

blockquote {
    display: block;
    border-left: solid 3px #2f73da;
    padding-left: 20px;
    margin: 0;
}

code {
    display: inline-block;
    border-radius: 5px;
    padding: 6px;
    background-color: rgba(0,0,0,0.05);
    margin: 2px;
}
