/* Базовые стили и сброс */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            font-family: "Century Gothic", Arial, sans-serif;
            background-color: #fdfaf2;
            color: #2c1a11;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        main {
            flex: 1; 
            padding: 20px 0;
        }

        .container {
            max-width: 1250px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /*Шапка*/
header {
    
    background-color: #f9f7f2f1;
    padding: 15px 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    position: sticky; 
    top: 0;
    z-index: 100;
}

.nav-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 1px;
}

.logo img {
    max-height: 200px; 
    vertical-align: middle;  
}

header a {
color: #000000;
text-decoration: #000000;
}

.logo span{
    display: flex;
    font-size: 17px;
    color:#000000;
}
.logo {
    display: flex;
    align-items: center;
    padding-left: 325px;
}

header nav ul {
    list-style: none;
    display: flex;
    padding-right: 320px;
}

header nav ul li {
    margin-right: 15px;
}

header nav ul li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
}

header nav ul li a:hover {
    color:#7c5c4e;
}


        /* Главный баннер (Слайдер) */
        #main-banner {
            padding: 0 20px 30px;
            max-width: 1250px;
            margin: 0 auto;
        }

        .slider {
            width: 100%;
            height: 400px;
            border-radius: 20px;
            overflow: hidden;
            position: relative;
            background-color: #efeadd;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }

        .slider img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute; 
            top: 0;
            left: 0;
            opacity: 0;
            transition: opacity 1s ease-in-out;
        }

        .slider img.active {
            opacity: 1;
        }

        /* Общие заголовки секций */
        .section-title {
            font-size: 32px;
            margin-bottom: 30px;
            color: #2c1a11;
            font-weight: bold;
        }

        /* Секция О пекарне */
        .about-section {
            margin-bottom: 50px;
        }

        .content-wrapper {
            display: flex; 
            align-items: center; 
            gap: 40px;
            background: #fff;
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.03);
        }

        .text-block {
            flex: 1;
            font-size: 16px;
            line-height: 1.6;
        }

        .text-block h2 {
            font-size: 32px;
            margin-bottom: 20px;
        }

        .text-block p {
            margin-bottom: 15px;
        }

        .image-block {
            flex: 1;
        }

        .image-block img {
            width: 100%;
            border-radius: 18px; 
            object-fit: cover;
        }

/* Рекомендуемые товары */

 .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 25px;
            margin-bottom: 50px;
        }

        .product-card {
            background: white;
            border-radius: 15px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            border: 1px solid #efeadd;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .product-card:hover {
            transform: translateY(-7px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        }

        .product-image {
            width: 100%;
            height: 200px;
            background-color: #eee;
            border-radius: 10px;
            object-fit: cover;
            margin-bottom: 15px;
        }

        .product-info h4 {
            font-weight: bold;
            font-size: 18px;
            margin-bottom: 10px;
        }

        .product-info .description {
            font-size: 14px;
            color: #777;
            margin-bottom: 20px;
            flex-grow: 1;
        }

        .product-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
        }

        .price {
            font-weight: bold;
            font-size: 20px;
            color: #2c1a11;
        }

        .add-to-cart {
            background-color: #5d4037;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .add-to-cart:hover {
            background-color: #432b24;
        }

        /* Универсальная сетка для Акций, Новостей, Отзывов */
        .grid-layout {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }

        /* Акции */
        .stock-card {
            background-color: white;
            border: 1px solid #efeadd;
            border-radius: 20px;
            padding: 25px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: transform 0.3s ease;
        }

        .stock-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        }

        .stock-card .image {
            width: 100%;
            height: 200px;
            border-radius: 14px;
            overflow: hidden;
            margin-bottom: 20px;
        }

        .stock-card .image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .stock-info h3 {
            font-size: 22px;
            margin-bottom: 10px;
        }

        .stock-info p {
            color: #555;
            margin-bottom: 20px;
        }

        /* Кнопки "Подробнее" */
        .btn-gradient {
            display: inline-block;
            background: linear-gradient(to right, #694b3e, #432b21);
            color: white;
            padding: 12px 30px;
            border-radius: 8px;
            font-weight: bold;
            transition: opacity 0.2s;
            margin-top: 15px;
        }

        .btn-gradient:hover {
            opacity: 0.9;
            color: white;
        }

        /* Новости */
        .news-card {
            background-color: white;
            border-radius: 20px;
            overflow: hidden;
            border: 1px solid #efeadd;
            transition: transform 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .news-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        }

        .news-image {
            width: 100%;
            height: 220px;
        }

        .news-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .news-content {
            padding: 25px;
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .news-content h3 {
            font-size: 20px;
            margin-bottom: 10px;
        }

        .news-content p {
            color: #555;
            margin-bottom: 20px;
            flex: 1;
        }

        /* Отзывы */
        .review-card {
            background-color: white;
            border: 1px solid #efeadd;
            border-radius: 20px;
            padding: 25px;
            display: flex;
            flex-direction: column;
        }

        .review-info h3 {
            font-size: 20px;
            margin-bottom: 10px;
        }

        .review-info p {
            color: #555;
            font-style: italic;
            margin-bottom: 20px;
            flex: 1;
        }

        .stars {
            color: #ffc107;
            font-size: 20px;
            letter-spacing: 2px;
        }

        /* Контакты */
        .contact-info {
            background: white;
            padding: 30px;
            border-radius: 20px;
            margin-bottom: 20px;
            text-align: center;
            border: 1px solid #efeadd;
        }

        .contact-info p {
            font-size: 18px;
            margin-bottom: 10px;
        }

        #map iframe {
            border-radius: 20px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        }

/* Подвал */

  footer {
            background-color: #272727;
            color: rgb(190, 190, 190);
            padding: 40px 20px;
            text-align: center;
            margin-top: auto;
        }

        footer .social {
            margin: 20px 0;
        }

        footer .social a {
            margin: 0 10px;
            color: white;
            font-weight: bold;
        }

        footer .social a:hover {
            color: #d1bfae;
        }

        .footer-info p {
            margin-bottom: 10px;
            font-size: 14px;
        }

        .footer-info a {
            color: rgb(190, 190, 190);
            text-decoration: underline;
        }
/*Личный кабинет*/

.account-wrapper {
            max-width: 1200px;
            margin: 0 auto;
        }

        .page-title {
            font-size: 26px;
            color: #2c1a11;
            margin-bottom: 5px;
            font-weight: bold;
        }

        .account-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .account-card {
            border: 2px solid #432b21;
            border-radius: 12px;
            padding: 25px;
            background-color: #fdfaf2;
            display: flex;
            flex-direction: column;
        }

        .profile-card {
            grid-column: 1 / 3; 
        }

        .account-card h3 {
            margin-top: 0;
            font-size: 20px;
            color: #2c1a11;
            margin-bottom: 20px;
        }

        .account-card h4 {
            font-size: 16px;
            color: #2c1a11;
            margin-bottom: 10px;
            margin-top: 15px;
        }

        /* Поля ввода */
        .input-group {
            position: relative;
            margin-bottom: 15px;
        }

        .input-group input {
            width: 100%;
            padding: 10px 10px 10px 40px;
            border: 1px solid #432b21;
            border-radius: 8px;
            background-color: #efeadd; 
            box-sizing: border-box;
            font-family: inherit;
            font-size: 14px;
            color: #432b21;
            outline: none;
        }

        .input-group input::placeholder {
            color: #83756d;
        }

        .input-group .input-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-70%);
            display: flex;
            align-items: center;
        }

        .input-icon img {
            width: 16px;
            height: 16px;
        }

        /* Ссылки и текст в формах */
        .form-link {
            font-size: 13px;
            color: #2c1a11;
            text-decoration: underline;
            margin-bottom: 15px;
            display: inline-block;
            font-weight: bold;
        }

        .form-text {
            font-size: 13px;
            color: #2c1a11;
            margin-bottom: 15px;
            display: inline-block;
            font-weight: bold;
        }

        .form-text a {
            color: #2c1a11;
            text-decoration: underline;
        }

        /* Кнопки */
        .btn-gradient {
            width: 100%;
            background: linear-gradient(to bottom, #694b3e, #432b21);
            color: white;
            border: none;
            padding: 12px;
            border-radius: 8px;
            font-weight: bold;
            font-family: inherit;
            font-size: 14px;
            cursor: pointer;
            transition: opacity 0.2s;
            margin-top: auto; 
        }

        .btn-gradient:hover {
            opacity: 0.9;
        }
        
        /* Профиль */

        .profile-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }

        .avatar {
            width: 60px;
            height: 60px;
            background-color: #695751;
            color: white;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 22px;
        }

        .profile-info p {
            margin: 4px 0;
            color: #2c1a11;
            font-size: 15px;
        }

        .profile-bottom {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
        }

        /* Таблица заказов */
        
        .orders-table {
            border-collapse: collapse;
            width: 2500px;
        }

        .orders-table td {
            border: 1px solid #432b21;
            padding: 6px 10px;
            font-size: 13px;
            color: #2c1a11;
            background-color: transparent;
        }
        html,body {
        height: 100%;
        margin: 0;
    }

/*Акции*/

.stocks-title {
            font-size: 32px;
            font-weight: bold;
            margin-bottom: 15px;
            text-align: left;
        }

        .stocks-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
        }

        .stock-card {
            background-color: #fdfaf2;
            border: 2px solid #2c1a11;
            border-radius: 20px;
            padding: 25px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
        }

        .stock-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        }

        .stock-card h2 {
            font-size: 24px;
            margin: 0 0 20px 0;
            align-self: flex-start;
        }

        .image {
            width: 250px;
            height: 180px;
            background-color: #efeadd;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 20px;
            overflow: hidden;
            border-radius: 14px;
            
        }

        .image img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Картинка заполнит блок, не искажая пропорции */
        }

        .stock-info h3 {
            font-size: 22px;
            margin: 10px 0;
            font-weight: bold;
        }

        .stock-btn {
            background-color: #5d4037;
            color: white;
            border: none;
            padding: 12px 60px;
            border-radius: 12px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.3s;
            text-decoration: none;
            margin-top: auto;
        }

        .stock-btn:hover {
            background-color: #432b24;
        }
        
        /*Отзывы*/
        .review-title {
            font-size: 32px;
            font-weight: bold;
            margin-bottom: 15px;
            text-align: left;
        }

        .review-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
        }

        .review-card {
            background-color: #fdfaf2;
            border: 2px solid #2c1a11;
            border-radius: 20px;
            padding: 25px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
        }

        .review-info h3 {
            font-size: 22px;
            margin: 10px 0;
            font-weight: bold;
        }
        
        .stars {
  display: inline-block;
  font-size: 24px;
  line-height: 1;
  unicode-bidi: bidi-override;
  direction: ltr;
  position: relative;
}
.stars::before {
  content: "★★★★★";
  color: #ddd;
  letter-spacing: 3px;
}
.stars::after {
  content: "★★★★★";
  color: rgb(255, 217, 0);
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  letter-spacing: 3px;
}

/*Новости*/
.stocks-title {
            font-size: 32px;
            font-weight: bold;
            margin-bottom: 15px;
            text-align: left;
        }

        .news-card {
            background-color: #fdfaf2;
            border: 2px solid #2c1a11;
            border-radius: 20px;
            padding: 25px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
        }
        
          .news-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
        }


        .news-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        }

        .news-card h2 {
            font-size: 24px;
            margin: 0 0 20px 0;
            align-self: flex-start;
        }

        .news-image {
            width: 600px;
            height: 300px;
            background-color: #efeadd;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 20px;
            overflow: hidden;
            border-radius: 14px;
            
        }

        .news-image img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Картинка заполнит блок, не искажая пропорции */
        }

        .news-info h3 {
            font-size: 22px;
            margin: 10px 0;
            font-weight: bold;
        }

        .btn-more {
            width: 100%;
            background: linear-gradient(to bottom, #694b3e, #432b21);
            color: white;
            border: none;
            padding: 12px;
            border-radius: 8px;
            font-weight: bold;
            font-family: inherit;
            font-size: 14px;
            cursor: pointer;
            transition: opacity 0.2s;
            margin-top: auto; 
            text-decoration: none;
        }

        .btn-more:hover {
            opacity: 0.9;
        }

    /*Каталог продукции*/

    /* Каталог: Контейнер и Сайдбар */
        .catalog-layout {
            display: flex;
            gap: 30px;
            align-items: flex-start;
        }

        .filters {
            width: 260px;
            background: #ffffff;
            padding: 25px;
            border-radius: 15px;
            border: 1px solid #efeadd;
            box-shadow: 0 4px 15px rgba(0,0,0,0.03);
            flex-shrink: 0;
            position: sticky;
            top: 90px;
        }

        .filters h3 {
            font-size: 20px;
            margin-bottom: 20px;
            color: #2c1a11;
        }

        .filter-list {
            list-style: none;
            margin: 0 0 25px 0;
            padding: 0;
        }

        .filter-list li {
            margin-bottom: 10px;
        }

        .filter-btn {
            width: 100%;
            text-align: left;
            padding: 10px 15px;
            background: transparent;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-family: inherit;
            font-size: 15px;
            color: #555;
            transition: all 0.3s ease;
        }

        .filter-btn:hover {
            background: #fdfaf2;
            color: #2c1a11;
        }

        .filter-btn.active {
            background: #5d4037;
            color: #ffffff;
            font-weight: bold;
        }

        .search-box input {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-family: inherit;
            font-size: 14px;
            outline: none;
            transition: border-color 0.3s;
            box-sizing: border-box
        }

        .search-box input:focus {
            border-color: #5d4037;
        }

        /* Каталог: Сетка товаров */
        .products-section {
            flex: 1;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 25px;
        }

        .product-card {
            background: white;
            border-radius: 15px;
            padding: 15px;
            display: flex;
            flex-direction: column;
            border: 1px solid #efeadd;
            box-shadow: 0 4px 10px rgba(0,0,0,0.02);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .product-card:hover {
            transform: translateY(-7px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        }

        .product-card img {
            width: 100%;
            height: 200px;
            background-color: #eee;
            border-radius: 10px;
            object-fit: cover;
            margin-bottom: 15px;
        }

        .product-info {
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .product-info h4 {
            font-weight: bold;
            font-size: 18px;
            margin-bottom: 8px;
            color: #2c1a11;
        }

        .product-info .description {
            font-size: 13px;
            color: #777;
            margin-bottom: 20px;
            flex: 1;
        }

        .product-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
        }

        .price {
            font-weight: bold;
            font-size: 20px;
            color: #2c1a11;
        }

        .add-to-cart {
            background-color: #5d4037;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.3s ease;
            font-family: inherit;
        }

        .add-to-cart:hover {
            background-color: #432b24;
        }

        /* Тосты (Уведомления вместо alert) */
        #toast-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 1000;
        }

        .toast {
            background-color: #fdfaf2;
            color: rgb(0, 0, 0);
            padding: 15px 25px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            font-size: 14px;
            opacity: 0;
            transform: translateY(20px);
            animation: showToast 0.3s forwards;
            display: flex;
            align-items: center;
            gap: 10px;
        }


        @keyframes showToast {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Адаптивность */
        @media (max-width: 768px) {
            header {
                flex-direction: column;
                text-align: center;
            }
            
            header nav ul {
                justify-content: center;
            }

            .content-wrapper {
                flex-direction: column;
                text-align: center;
            }

            .slider {
                height: 250px;
            }
        }
