* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #fcfaf7;
    color: #3c3c3c;
    line-height: 1.5;
}

.top-bar {
    background-color: #7fa99b;
    color: #fff;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.top-nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
}

.top-nav a:hover { text-decoration: underline; }

.main-header {
    background-color: #fff;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: #557a6d;
    letter-spacing: 1px;
}

.logo span { color: #df9c87; }

.header-contacts { text-align: right; }
.phone { font-size: 18px; font-weight: bold; color: #3c3c3c; }
.email { font-size: 12px; color: #7f8c8d; }

.hero-banner {
    background: linear-gradient(135deg, #f3e9dc, #e5ded4);
    padding: 45px 5%;
    margin: 20px 5%;
    border-radius: 12px;
}

.hero-banner h2 { font-size: 30px; color: #435e55; margin-bottom: 10px; }
.hero-banner p { color: #666; margin-bottom: 20px; max-width: 700px; }

.features .badge {
    background-color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
    color: #557a6d;
    margin-right: 12px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.search-bar-container {
    margin: 0 5% 15px 5%;
}

#search-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e1dbd3;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
#search-input:focus { border-color: #557a6d; }

.categories-nav {
    margin: 0 5% 25px 5%;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.category-btn {
    background-color: #fff;
    border: 1px solid #e1dbd3;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-btn:hover, .category-btn.active {
    background-color: #557a6d;
    color: #fff;
    border-color: #557a6d;
}

.category-btn:active { transform: scale(0.95); }

.order-panel {
    background-color: #fff;
    margin: 0 5% 30px 5%;
    padding: 22px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 6px solid #df9c87;
}

.rules-title { font-weight: bold; font-size: 15px; }
.rules-alert { font-size: 14px; font-weight: 600; margin-top: 5px; color: #7f8c8d; }
.cart-widget { text-align: right; }
.cart-totals { font-size: 17px; margin-bottom: 8px; }

.btn-checkout {
    background-color: #557a6d;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s;
}
.btn-checkout:disabled { background-color: #bdc3c7; cursor: not-allowed; }

.catalog-section { padding: 0 5%; }
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #e8e2da;
    padding-bottom: 12px;
    margin-bottom: 25px;
}
.catalog-note { font-size: 13px; color: #7f8c8d; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card {
    background-color: #fff;
    border: 1px solid #ededed;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
    animation: fadeInUp 0.5s ease backwards;
}

.product-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 10px 25px rgba(85, 122, 109, 0.12);
}

.product-img-box {
    height: 240px;
    background-color: #f7f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.product-icon { font-size: 50px; margin-bottom: 10px; }
.product-info { padding: 18px; }
.product-title { font-size: 15px; font-weight: 600; height: 44px; overflow: hidden; margin-bottom: 12px; color: #2c3e50; }
.product-meta { font-size: 12px; color: #7f8c8d; margin-bottom: 12px; }

.sizes-block { margin-top: 10px; }
.sizes-label { font-size: 11px; text-transform: uppercase; color: #95a5a6; margin-bottom: 5px; font-weight: 600; }
.sizes-list { display: flex; gap: 6px; flex-wrap: wrap; }

.wb-size-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1dbd3;
    border-radius: 8px;
    padding: 6px 12px;
    background-color: #fff;
    min-width: 55px;
    cursor: default;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: transform 0.2s ease;
}
.wb-size-badge:hover { border-color: #7fa99b; background-color: #f0f7f4; }
.wb-size-num { font-size: 14px; font-weight: 700; color: #2c3e50; }
.wb-size-height { font-size: 11px; color: #7f8c8d; margin-top: 2px; }

.price-box { background-color: #fbfbfb; padding: 12px; border-radius: 6px; border: 1px dashed #e0e0e0; }
.price-item { font-size: 19px; font-weight: bold; color: #2ecc71; }
.price-pack { font-size: 12px; color: #555; margin-top: 3px; }

.card-actions { padding: 0 18px 18px 18px; display: flex; gap: 10px; }
.qty-input { width: 65px; padding: 10px; border: 1px solid #ccc; border-radius: 6px; text-align: center; font-weight: bold; font-size: 15px; }

.btn-add-cart {
    background-color: #557a6d; color: #fff; border: none; padding: 10px;
    border-radius: 6px; font-weight: bold; cursor: pointer; flex-grow: 1;
}
.btn-add-cart:active { transform: scale(0.97); }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5); z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-window { background-color: #fff; width: 100%; max-width: 450px; border-radius: 12px; overflow: hidden; transform: translateY(-20px); transition: transform 0.3s ease; }
.modal-overlay.open .modal-window { transform: translateY(0); }
.modal-header { background-color: #557a6d; color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { font-size: 18px; }
.modal-close { background: none; border: none; color: white; font-size: 24px; cursor: pointer; }
.modal-body { padding: 20px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #444; }
.form-group input, .form-group select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; outline: none; }
.btn-submit-order { background-color: #2ecc71; color: white; border: none; width: 100%; padding: 12px; border-radius: 6px; font-size: 16px; font-weight: bold; cursor: pointer; margin-top: 10px; }

.chat-widget { position: fixed; bottom: 25px; right: 25px; z-index: 1000; }
.chat-btn { background-color: #557a6d; color: white; border: none; padding: 14px 22px; border-radius: 30px; font-weight: bold; font-size: 14px; cursor: pointer; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; }
.chat-window { position: absolute; bottom: 70px; right: 0; width: 320px; height: 400px; background-color: #fff; border-radius: 12px; box-shadow: 0 5px 25px rgba(0,0,0,0.15); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(20px) scale(0.95); pointer-events: none; transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.chat-window.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-header { background-color: #557a6d; color: white; padding: 12px 15px; display: flex; align-items: center; gap: 10px; position: relative; }
.manager-avatar { font-size: 24px; background: rgba(255,255,255,0.2); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.manager-name { font-weight: bold; font-size: 14px; }
.manager-status { font-size: 11px; color: #a3e2c9; margin-top: 2px; }
.chat-close { position: absolute; right: 12px; top: 12px; background: none; border: none; color: white; font-size: 22px; cursor: pointer; opacity: 0.7; }
.chat-body { flex-grow: 1; padding: 15px; background-color: #fcfaf7; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.message { max-width: 85%; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; }
.system-msg { background-color: #fff; color: #333; align-self: flex-start; border: 1px solid #eadecf; border-top-left-radius: 2px; }
.user-msg { background-color: #557a6d; color: white; align-self: flex-end; border-top-right-radius: 2px; }
.chat-footer { display: flex; border-top: 1px solid #eee; padding: 10px; background: #fff; }
#chat-input { flex-grow: 1; border: 1px solid #ddd; border-radius: 6px; padding: 8px 12px; outline: none; font-size: 13px; }
.chat-send { background: none; border: none; color: #557a6d; font-size: 18px; padding: 0 10px; cursor: pointer; }

.main-footer { background-color: #435e55; color: #fff; padding: 35px 5%; margin-top: 50px; text-align: center; font-size: 14px; }
/* ==========================================
   ПОДСВЕТКА ВЫБРАННОГО РАЗМЕРА И СТИЛЬНЫЕ УВЕДОМЛЕНИЯ
   ========================================== */

/* Подсветка для выбранной плашки размера */
.wb-size-badge.selected {
    border-color: #557a6d !important;
    background-color: #f0f7f4 !important;
    box-shadow: 0 0 0 2px rgba(85, 122, 109, 0.2);
}
.wb-size-badge.selected .wb-size-num {
    color: #557a6d !important;
}

/* Контейнер для всплывающих уведомлений на 3 секунды */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* Красивая плашка уведомления */
.toast-notification {
    background-color: #435e55;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    
    /* Анимация появления слева и затухания */
    animation: slideInLeft 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both, 
               fadeOut 0.5s ease 2.7s forwards;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
