/* public/css/app.css */

:root {
    /* These colors should be adjusted based on your logo */
    --primary-color: #00A651;
    --secondary-color: #333333;
    --accent-color: #F8F9FA;
}
/* resources/css/app.css */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}
/* Header styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 80px;
    width: auto;
    max-width: 100%;
}

/* Для маленьких экранов уменьшим логотип */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 50px; /* Уменьшаем логотип */
    }
}

@media (max-width: 480px) {
    .navbar-brand img {
        height: 40px; /* Еще меньше для телефонов */
    }
}

/* Product card styles */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Footer styles */
.footer {
    background-color: var(--accent-color);
    padding: 40px 0;
    margin-top: 60px;
}

.footer h5 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #A98765; /* Example background color */
}

.categories {
    list-style: none;
    display: flex;
    gap: 20px;
}

.categories li a {
    text-decoration: none;
    color: #FFFFFF; /* Example text color */
    font-weight: bold;
}

.categories li a:hover {
    color: #FFD700; /* Example hover color */
}

.square-frame {
    width: 100%;
    padding-top: 100%; /* This creates a square by setting the height equal to the width */
    position: relative;
}

.square-frame img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the image fits within the frame without being cropped */
}

.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    color: #ff0000; /* Default color for the heart icon */
    font-size: 1.5rem; /* Ensure the icon is large enough to be visible */
    z-index: 10; /* Ensure the button is above the image */
}

.favorite-btn .bi-heart-fill {
    color: red; /* Color for filled heart */
}

.favorite-btn .bi-heart {
    color: #ccc; /* Color for empty heart */
}
.img-thumbnail {
    opacity: 0.6;
    transition: opacity 0.3s;
}
.img-thumbnail:hover, .img-thumbnail.active {
    opacity: 1;
}

.position-relative {
    position: relative;
}
.position-absolute {
    position: absolute;
}
.translate-middle {
    transform: translate(-50%, -50%);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-img-wrapper {
    position: relative;
    padding-top: 100%; /* Creates a square aspect ratio */
    overflow: hidden;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Стили для сайдбара категорий */
.categories-sidebar {
    position: sticky;
    top: 20px;
}

.categories-sidebar .card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.categories-sidebar .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.125);
    padding: 1rem;
}

.categories-sidebar .card-header h5 {
    color: #333;
    font-size: 1.1rem;
    margin: 0;
}

.categories-sidebar .list-group-item {
    padding: 0.75rem 1rem;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.075);
    transition: all 0.2s ease;
}

.categories-sidebar .list-group-item:last-child {
    border-bottom: none;
}

.categories-sidebar .list-group-item:hover {
    background-color: #f8f9fa;
}

.categories-sidebar .list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Стили для кнопки избранного */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.favorite-btn .bi-heart-fill {
    color: red;
}

.favorite-btn .bi-heart {
    color: #666;
}

/* Footer styles - обновленная версия */
.footer {
    background-color: var(--accent-color);
    padding: 60px 0;
    margin-top: 60px;
}

/* Обновите стили логотипа в футере */
/*.footer-logo {*/
/*    height: 200px; !* Увеличили в 2 раза с 60px до 120px *!*/
/*    width: auto;*/
/*    margin-bottom: 30px;*/
/*    margin-top: -60px; !* Добавляем отрицательный отступ сверху *!*/
/*    position: relative;*/
/*}*/
.footer-logo {
    height: 120px;
    width: auto;
    max-width: 100%;
}

@media (max-width: 768px) {
    .footer-logo {
        height: 80px; /* Уменьшаем для планшетов */
    }
}

@media (max-width: 480px) {
    .footer-logo {
        height: 60px; /* Уменьшаем для телефонов */
    }
}

.footer h5 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--primary-color);
}

.footer hr {
    border-color: rgba(0,0,0,0.1);
    margin: 30px 0;
}

.footer p {
    color: #666;
}
