/* Frontend Main Styles */

/* Стабилизация scrollbar — предотвращает горизонтальный сдвиг
   при появлении/исчезновении полосы прокрутки */
html {
    overflow-y: scroll; /* fallback */
}

@supports (scrollbar-gutter: stable) {
    html {
        overflow-y: auto;
        scrollbar-gutter: stable;
    }
}

/* Base layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.content {
    flex: 1;
}

/* Layout-строки из системы блоков стоят без container —
   убираем отрицательные Bootstrap-margins чтобы не было горизонтального overflow */
.content > .row {
    --bs-gutter-x: 0;
    margin-right: 0;
    margin-left: 0;
}

.navbar-brand {
    font-weight: bold;
}

footer {
    margin-top: auto;
    padding: 20px 0;
    background-color: #f8f9fa;
}

/* Home page - Hero section with adaptive background */
.hero-adaptive-bg {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

@media (max-width: 767px) {
    .hero-adaptive-bg {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
}

/* Hover effects */
.hover-shadow {
    transition: box-shadow 0.3s;
}

.hover-shadow:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Custom page content */
.custom-page-content {
    font-size: 1.05rem;
    line-height: 1.6;
}

.custom-page-content p {
    margin-bottom: 1rem;
}

/* Districts page */
.opacity-50 {
    opacity: 0.5;
}

/* Utility classes */
.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
}

.product-card-img {
    height: 200px;
    object-fit: cover;
}

.product-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-placeholder {
    height: 400px;
}

.spinner-large {
    width: 3rem;
    height: 3rem;
}

.progress-bar-height {
    height: 20px;
}

.icon-sm {
    height: 24px;
    margin-right: 8px;
}
