@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

body {
    /* Используем Jost, как и в исходном HTML */
    font-family: 'Jost', sans-serif;
    background-color: #f8f9fa; /* Светлый фон для страницы */
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* --- Product Card Styles (Moved from home.css) --- */
.product-card {
    border: 1px solid #006400; /* Темно-зеленый */
    border-radius: 5px;
    background-color: #fff;
}

.product-card:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

.product-card-img-container {
    aspect-ratio: 1 / 1;   /* Добавлено */
    width: 100%;           /* Добавлено */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.product-card-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: cover; /* Изменено с contain */
}

/* Футер для стандартной карточки товара (с рамкой) */
.product-card .card-footer {
    border-top: 1px solid #dee2e6; /* Возвращаем стандартную границу Bootstrap, если есть рамка */
    background-color: rgba(0,0,0,.03); /* Возвращаем стандартный фон Bootstrap */
    /* Добавим padding из home.css */
    padding: 0.8rem;
    margin-bottom: 0;
    margin-top: auto; /* Добавлено для прижатия к низу flex-контейнера card-body */
}

/* Стиль для темной кнопки */
.btn-dark-custom {
    background-color: #343a40;
    border-color: #343a40;
    color: #fff;
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out;
}

    .btn-dark-custom:hover,
    .btn-dark-custom:focus {
        background-color: #23272b;
        border-color: #1d2124;
        color: #fff;
    }

/* --- Product Card Title & Price (Moved/Restored from home.css) --- */
.product-card-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.4em; /* Примерная высота для 2 строк */
}

.product-card-price {
    font-size: 1.2rem;  /* Увеличено с 1.1rem */
    font-weight: 600; /* Слегка жирнее (bold обычно 700) */
    color: #333; /* Черный цвет цены */
    margin-bottom: 0;
    margin-top: auto; /* Добавлено для прижатия к низу flex-контейнера card-body */
}

/* Стили шапки */
.header-top {
    background: linear-gradient(to bottom, #3FB03F 0%, #009684 100%);
    padding: 8px 20px;
    font-size: 14px;
    color: white;
    text-align: left;
}

.header-main {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 15px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.logo-container {
    background: linear-gradient(to bottom, #3FB03F 0%, #009684 100%);
    border-radius: 8px;
    padding: 8px 25px;
    margin-right: auto;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #fbfafa;
    text-decoration: none;
    font-family: 'Jost', sans-serif;
}

.catalog-btn {
    background: linear-gradient(to top, #3FB03F 0%, #009684 100%);
    color: white;
    padding: 15px 28px;
    font-size: 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 5px;
    font-family: 'Jost', sans-serif;
}

.catalog-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 2px 8px rgba(63, 176, 63, 0.2);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    width: 200px;
    margin-top: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
}

.dropdown-content a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: background 0.2s;
    font-family: 'Jost', sans-serif;
}

.dropdown-content a:hover {
    background: #f8f8f8;
}

.show {
    display: block;
}

/* Стили поисковой строки */
.search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    padding: 10px 20px;
    border-radius: 30px;
    width: 600px;
    flex-grow: 1;
    margin: 0 20px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    margin-left: 15px;
    width: 100%;
    font-size: 16px;
    font-family: 'Jost', sans-serif;
}

.search-box .search-icon {
    color: #666;
    font-size: 18px;
}

.btn-search {
    background: linear-gradient(to right, #3FB03F, #009684);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    margin-left: 10px;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: linear-gradient(to right, #009684, #3FB03F);
    transform: scale(1.02);
}

.icons {
    display: flex;
    gap: 20px;
    margin-left: 20px;
}

.icon-placeholder {
    width: 45px;
    height: 45px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 27px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.icon-placeholder:hover {
    background: #e5e5e5;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .search-box {
        width: 400px;
    }
}

@media (max-width: 992px) {
    .header-main {
        flex-wrap: wrap;
    }
    
    .search-box {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
    
    .icons {
        order: 2;
    }
}

@media (max-width: 768px) {
    .header-main {
        padding: 10px;
    }
    
    .logo-container {
        padding: 6px 15px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .catalog-btn {
        padding: 12px 20px;
        font-size: 18px;
    }
    
    .search-box {
        margin-top: 10px;
    }
    
    .icons {
        gap: 10px;
    }
    
    .icon-placeholder {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}