@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

body {
    min-height: 100vh;
}

.navbar {
    background-color: #116a2a;
    color: #fff;
    padding: 12px;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.7);
}

.navbar-brand {
    position: relative;
    padding: 0;
    width: 200px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: rgba(255, 255, 255, 1);
}

#btn-back-to-top {
    position: fixed;
    right: 7%;
    bottom: 10%;
    background: none;
    border: 0;
    font-size: 40px;
    color: #42009f;
    opacity: 0.7;
    transition: opacity 0.1s linear;
    z-index: 2;
}

#btn-back-to-top:hover {
    opacity: 1;
}

#btn-back-to-top.hidden {
    display: none;
}

#search-field {
    position: relative;
}

#search-field > i {
    position: absolute;
    left: 10px;
    top: 50%;
    margin-top: -12px;
}

#search-field > input {
    padding-left: 33px;
}

.grid-loader {
    display: none;
}

.loading > .grid-loader {
    display: block;
}

.card-badge {
    position: absolute;
    right: 15px;
    top: 10px;
    background-color: #fff;
    color: #008a10;
    padding: 0.3em 0.4em;
}

.product-price-badge {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 1.2em;
    border-radius: 10px 0 0 0;
    background-color: #fff;
    padding: 3px 13px;
}

#product-jumbotron {
    height: 400px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

#product-jumbotron::before {
    display: block;
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .7) 100%);
}

#product-jumbotron .container {
    position: relative;
    z-index: 2;
}

.card {
    height: 100%;
}

#vk-icon img {
    width: 18px;
    opacity: 0.6;
    position: relative;
    top: -2px;
}

#footer-contacts {
    font-size: 0.8em;
}

.landing-page {
    font-family: "Raleway", sans-serif;
    font-weight: 200;
}

.landing-page h1 {
    font-family: 'Great Vibes', cursive;
    font-weight: 200;
}

.owner-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 4px solid #fff;
}

@media (min-width: 768px) {
    .owner-photo {
        width: 250px;
        height: 250px;
    }
}

@media (min-width: 992px) {
    .owner-photo {
        width: 300px;
        height: 300px;
    }
}

.greeting-text {
    color: #555;
    line-height: 1.6;
}

.category-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.category-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%;
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 8px;
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.category-overlay i {
    font-size: 3rem;
    color: #fff;
    opacity: 0.9;
}

.category-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0;
    color: #333;
    text-align: center;
}

.category-title small {
    font-size: 0.8em;
}

@media (max-width: 575px) {
    .category-card {
        margin: 0 auto;
        max-width: 400px;
    }

    .landing-page {
        padding: 10px 0;
    }

    .greeting-text {
        font-size: 1rem;
    }
}
