/* Импорт шрифта */
@import url('https://googleapis.com');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;

}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    background-image: url("../img/back.webp");
    background-size: cover;       
    background-position: center;  
    background-repeat: no-repeat;
    background-attachment: fixed !important; 

}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 2; 
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}
.login-container {
    margin-top: 70px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    padding: 2rem;
}


.login-form {
    background: transparent; 
    border: none;           
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;       
    padding: 0;             
}

h2 {
    color: #082144;          
    font-size: 1.7rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #082144;          
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 2.5rem;
}


.input-group {
    position: relative;
    margin-bottom: 0.8rem;
}


.input-group input {
    width: 100%;
    padding: 0.8rem 0.8rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    outline: none;
    color: #0f172a;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}


.input-group input:focus {
    background: #ffffff;
    border-color: rgba(9, 9, 32, 0.5); /* Нежно-синий */
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15), 
                0 10px 20px rgba(0, 0, 0, 0.02);
}


.input-group label {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #082144;
    pointer-events: none;
    transition: all 0.25s ease;
}


.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: -0.2rem;
    left: 0.8rem;
    font-size: 0.75rem;
    padding: 0 0.5rem;
    color: #082144; 
    background: transparent; 
    font-weight: 500;
}

/* Чекбокс и ссылка */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding: 0 0.2rem;
}

.remember-me {
    color: #082144;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.remember-me input {
    accent-color: #082144;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.forgot-pass {
    color: #082144;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-pass:hover {
    color: #080a31;
}

.submit-btn {
    width: 100%;
    padding: 1.1rem;
    background: #082144; 
    border: none;
    border-radius: 16px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.15);
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: #152342;
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.25);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(1px);
}

/* Ссылка на регистрацию */
.register-link {
    text-align: center;
    font-size: 0.9rem;
    color: #082144;
    margin-top: 1rem;
}

.register-link a {
    color: #082144;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.register-link a:hover {
    color: #090a3a;
    text-decoration: underline;
}

/* Контейнер на весь экран */
.manager-container {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: #02102e;
}

.manager-card {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;  
    padding: 0 0 0 10%; 
    box-sizing: border-box;
}

/* Оболочка для фото */
.manager-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.manager-photo {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    object-position: right center; 
    z-index: -1;
}

/* Темный градиент снизу вверх, чтобы белый текст читался на любом фото */
.manager-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
}
.back-to-catalog-wrapper {
    margin-bottom: 20px;
}
.btn-back-catalog {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.btn-back-catalog:hover {
    color: #152342;
    text-decoration: underline;
}

/* Стили текста и контента */
.manager-info {
    position: relative;
    z-index: 2;
    max-width: 850px;
    color: #ffffff;
    text-align: center; 
    animation: fadeInUp 0.8s ease forwards;
}

.manager-badge {
    display: inline-block;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white; 
    font-weight: 700;
    margin-bottom: 32px;
}

.manager-name {
    font-size: 4erm;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 24px 0;
    letter-spacing: -1px;
}

.manager-role {
    font-size: 1.8erm;
    color: #94a3b8;
    margin: 0 0 64px 0;
    font-weight: 400;
}

/* Стильная кнопка телефона с эффектом стекла */
.manager-contacts {
    display: flex;
    justify-content: center; 
    gap: 16px;
}

.manager-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 28px 56px;
    border-radius: 100px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.manager-phone-link:hover {
    background: #ffffff;
    color: #0b0f19;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
    border-color: #ffffff;
}

.tableRoot {
    margin-right: 7%;
    margin-left: 7%;
}

.data-table {
    margin-left: 0;
    margin-right: auto;
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: Arial, sans-serif;
    background-color: #f1f1f1; 
    table-layout: fixed; 
}
 .data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;

}
.data-table th {
    background-color: #f1f1f1;   
}
.data-table tr {
    background-color: #f1f1f1;   
 }
.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.data-table tr:hover {
    background-color: #f1f1f1;
}
.btn-back {
    display: inline-block;
    margin-bottom: 2px;
    text-decoration: none;
    color: #f9f9f9;
}
 h2 {
    color: #f9f9f9;
}       
.pagination-btn {
    padding: 8px 14px;
    border: 1px solid #ddd;
    background-color: white;
    color: #082144;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.2s ease;
}
.pagination-btn:hover {
    background-color: #f1f1f1;
}
.pagination-btn.active {
    background-color: #082144;
    color: white;
    border-color: #082144;
}
         
.data-table th, .data-table td {
    overflow-wrap: break-word; 
    text-align: center;    
}

/* КАТАЛОГ */

.catalog-subtitle {
    color: #082144;
    font-size: 1.2rem;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 30px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

.product-card {
     background: rgb(245, 247, 250); /* Замена прозрачности и blur на сплошной приятный фон */
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Облегченная тень */
    will-change: transform;
}

.product-card:hover .product-content {
    transition-delay: 0s;
    transform: translateY(-4px); 
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; 
    background: rgba(8, 33, 68, 0.02);
    overflow: hidden;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #082144; 
    color: #ffffff;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.sale {
    background: #ff3f6c;
}

.product-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-cat {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 500;
}

.nav-link:hover {
    color: #082144 !important; 
}

.product-name {
    font-size: 1.15rem;
    color: #082144; 
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.product-name:hover {
    color: #1e3a8a;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto; 
    margin-bottom: 20px;
}

.price-actual {
    font-size: 1.3rem;
    font-weight: 800;
    color: #082144;
}
.no-price{
    font-size: 1rem;
    font-weight: 800;
    color: #082144;
    text-align: center;
}

.price-old {
    font-size: 0.95rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.product-btn {
    width: 100%;
    padding: 0.9rem;
    background: #082144; 
    border: none;
    border-radius: 16px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(8, 33, 68, 0.15);
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.product-btn:hover {
    background: #152342;
    box-shadow: 0 6px 20px rgba(8, 33, 68, 0.25);
    transform: translateY(-1px);
}

.pay-btn {
    width: 100%;
    padding: 0.9rem;
    background: #014410; 
    border: none;
    margin-top: 5px;
    border-radius: 16px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(8, 33, 68, 0.15);
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pay-btn:hover {
    background: #039222;
    box-shadow: 0 6px 20px rgba(8, 33, 68, 0.25);
    transform: translateY(-1px);
}
      

/* Корзина*/


.cart-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 20px 60px 20px;
    animation: fadeInUp 0.8s ease forwards;
}

.cart-header {
    margin-bottom: 40px;
}

.cart-header h2 {
    font-size: 2rem;
    color: #082144;
    font-weight: 800;
    margin: 0;
    text-align: center;
}

.cart-subtitle {
    color: #082144;
    font-size: 1rem;
    text-align: center;
    margin-top: 8px;
}

/* Сетка корзины: список товаров + сайдбар справа */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Карточка товара в корзине */
.cart-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-4px);
    background: #ffffff;
}

.cart-item-img {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(8, 33, 68, 0.05);
    flex-shrink: 0;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-cat {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.cart-item-name {
    font-size: 1.1rem;
    color: #082144;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.cart-item-price-each {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Управление количеством и ценой */
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 30px;
}

.quantity-picker {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
}

.qty-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    color: #082144;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.qty-input {
    width: 40px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #082144;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-price-total {
    font-size: 1.2rem;
    font-weight: 800;
    color: #082144;
    min-width: 90px;
    text-align: right;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px;
}

.cart-item-remove:hover {
    color: #ff3f6c;
}

/* Блок "Итого" (Сайдбар) */
.cart-summary {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.summary-title {
    font-size: 1.3rem;
    color: #082144;
    font-weight: 800;
    margin: 0 0 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #64748b;
}

.summary-discount {
    color: #ff3f6c;
    font-weight: 600;
}

.summary-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 16px 0;
}

.total-row {
    font-size: 1.1rem;
    color: #082144;
    font-weight: 700;
    margin-bottom: 24px;
}

.total-price {
    font-size: 1.5rem;
    font-weight: 800;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: #082144;
    border: none;
    border-radius: 16px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(8, 33, 68, 0.15);
    transition: all 0.2s ease;
}

.checkout-btn:hover {
    background: #152342;
    box-shadow: 0 6px 20px rgba(8, 33, 68, 0.25);
    transform: translateY(-1px);
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.continue-shopping:hover {
    color: #082144;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
    margin-bottom: 40px; /* Зазор перед футером */
}

/* Контейнер страницы */
.product-detail-container {
    width: 100%;
    max-width: 1200px;
    margin: 120px auto 50px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Кнопка возврата */
.back-to-catalog-wrapper {
    margin-bottom: 20px;
}

.btn-back-catalog {
    color: #082144;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.btn-back-catalog:hover {
    color: #152342;
    text-decoration: underline;
}

/* Главный макет карточки */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

/* Блок с картинкой */
.product-detail-media {
    display: flex;
    justify-content: center;
    align-items: center; /* Было: flex-start */
}

.product-image-box {
    width: 100%;
    max-width: 450px;
    background: #f9f9f9;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-image-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Блок с информацией */
.product-detail-info {
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-title {
    color: #082144;
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 20px;
    text-align: left;
}

/* Цена */
.product-price-block {
    margin-bottom: 25px;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #082144;
}

.current-price small {
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 400;
}

/* Блок покупки (Количество + Кнопка) */
.purchase-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

/* Выбор количества */
.quantity-picker-detail {
    display: inline-flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.quantity-picker-detail .qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #082144;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    border-radius: 8px;
}

.quantity-picker-detail .qty-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.quantity-picker-detail .qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: #082144;
    outline: none;

}

.quantity-picker-detail .qty-input::-webkit-outer-spin-button,
.quantity-picker-detail .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Кнопка добавления */
.add-to-cart-btn {
    flex: 1;
    min-width: 200px;
    padding: 1.1rem;
    background: #082144; 
    border: none;
    border-radius: 16px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.15);
    transition: all 0.2s ease;
    text-align: center;
}

.add-to-cart-btn:hover {
    background: #152342;
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.25);
    transform: translateY(-1px);
}

.add-to-cart-btn:active {
    transform: translateY(1px);
}

/* Секции описания и характеристик */
.section-heading {
    color: #082144;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(8, 33, 68, 0.1);
    padding-bottom: 6px;
}

.product-description-section {
    margin-bottom: 30px;
}

.description-text {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Таблица характеристик */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 10px 0;
    font-size: 0.95rem;
}

.specs-table td:first-child {
    color: #64748b;
    font-weight: 500;
    width: 40%;
}

.specs-table td:last-child {
    color: #082144;
    font-weight: 600;
    text-align: left;
}


html, body {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.product-detail-container {
    width: 100%;
    max-width: 1200px;
    margin: 240px auto 100px auto !important;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

h2, .orders-title {
    color: #082144;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.table-responsive {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    overflow: visible !important;
}

.table {
    border-collapse: separate;
    border-spacing: 0 30px;
    margin-top: -30px;
    background: transparent;
    width: 100%;
}

.table-dark {
    display: none;
}

.table tbody tr {
    display: grid;
    grid-template-columns: 140px 180px 1fr 160px 200px;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    padding: 15px 45px;
    box-shadow: 0 15px 45px rgba(8, 33, 68, 0.04), 0 2px 10px rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
}

.table tbody tr:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(8, 33, 68, 0.15);
    box-shadow: 0 20px 50px rgba(8, 33, 68, 0.08), 0 4px 15px rgba(8, 33, 68, 0.02);
}

.table td {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #334155;
}

.table td:first-child {
    font-size: 1.4rem;
    font-weight: 800;
    color: #082144;
    
}

.table td:last-child {
    text-align: right !important;
    padding-left: 60px !important; 
}
.table td:first-child strong::before {
    content: "№ ";
    font-size: 1.1rem;
    font-weight: 600;
    color: #94a3b8;
}

.table td:nth-child(2) {
    font-size: 1.05rem;
    color: #64748b;
    font-weight: 500;
}

.table ul.list-unstyled {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 30px;
}

.table ul.list-unstyled li {
    font-size: 1.05rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.5;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    width: fit-content;
    white-space: nowrap !important;
}

/* Новый заказ — Фирменный тёмно-синий */
.badge.bg-primary {
    background-color: #082144 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(8, 33, 68, 0.2);
}
.badge.bg-processing {
    background-color: #3c5a05 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(8, 33, 68, 0.2);
}

/* В обработке у менеджера — Мягкий голубой */
.badge.bg-info {
    background-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
}

/* В пути / доставка — Приглушенный янтарный */
.badge.bg-warning {
    background-color: #d97706 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.2);
}

/* Доставлен / завершен — Травяной зелёный */
.badge.bg-success {
    background-color: #16a34a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.2);
}

/* Отменён — Сдержанный красный */
.badge.bg-danger {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

/* Любой другой статус — Нейтральный серый */
.badge.bg-secondary {
    background-color: #64748b !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.15);
    
}



.table td:last-child {
    text-align: right;
}

.table td:last-child strong {
    font-size: 1.6rem;
    font-weight: 800;
    color: #082144;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.alert-info {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(8, 33, 68, 0.1);
    border-radius: 24px;
    color: #082144;
    padding: 40px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.product-detail-container {
    width: 100%;
    max-width: 1200px;
    margin: 200px auto 50px auto !important;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

h2, .orders-title {
    color: #082144;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.order-detail-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 15px 45px rgba(8, 33, 68, 0.04);
    margin-bottom: 40px;
}

.order-detail-header {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 30px;
    align-items: flex-start; 
}

.header-info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    gap: 8px;
}

.info-label {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    line-height: 1; 
    margin-bottom: 4px;
}

.info-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #082144;
    line-height: 1.2;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px !important; 
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    width: fit-content;
    line-height: 1.2;
    margin: 0 !important;
}

.badge.bg-primary {
    background-color: #082144 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(8, 33, 68, 0.2);
}

.badge.bg-processing {
    background-color: #198754 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.2);
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000000 !important;
    box-shadow: 0 4px 15px rgba(13, 202, 240, 0.2);
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000000 !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.badge.bg-success {
    background-color: #198754 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.2);
}

.badge.bg-danger {
    background-color: #dc3545 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.badge.bg-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.15);
}

.order-items-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.order-items-table th {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 16px 12px;
    border-bottom: 2px solid #edf2f7;
}

.order-items-table td {
    padding: 20px 12px;
    font-size: 1rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.order-items-table tr:last-child td {
    border-bottom: none;
}

.product-name-cell {
    font-weight: 600;
    color: #082144;
}

.quantity-cell {
    font-weight: 500;
    color: #64748b;
}

.total-cell {
    text-align: right;
    color: #082144;
    font-size: 1.05rem;
    white-space: nowrap !important; 
}

.table-empty-message {
    text-align: center;
    color: #94a3b8;
    padding: 40px !important;
    font-style: italic;
}

.order-detail-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    background: #f8fafc;
    padding: 24px 35px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    margin-top: 30px !important;
}

.footer-total-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #64748b;
}

.footer-total-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #082144;
    letter-spacing: -0.5px;
}

.alert-info {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(8, 33, 68, 0.1);
    border-radius: 24px;
    color: #082144;
    padding: 40px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   ПОЛНЫЙ ИЗОЛИРОВАННЫЙ СТИЛЬ СТРАНИЦЫ КОРЗИНЫ (CART PAGE)
   ========================================================================== */

/* Контейнер страницы */
.cart-page-container {
    width: 100%;
    max-width: 900px !important;
    margin: 180px auto 60px auto !important;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* Главная карточка корзины */
.cart-page-card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 32px !important;
    padding: 45px !important;
    box-shadow: 0 15px 45px rgba(8, 33, 68, 0.04) !important;
    box-sizing: border-box;
}

/* Заголовок страницы */
.cart-page-title {
    color: #082144 !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 40px !important;
    text-align: center !important;
}

/* Обертка таблицы */
.cart-page-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 25px;
}

/* Стили чистой таблицы */
.cart-page-table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
    margin: 0 !important;
}

/* Шапка таблицы */
.cart-page-table th {
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    padding: 16px 12px !important;
    border-bottom: 2px solid #edf2f7 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    background: transparent !important;
    text-align: left;
}

/* Строки таблицы */
.cart-page-table td {
    padding: 20px 12px !important;
    font-size: 1rem !important;
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle !important;
    background: transparent !important;
}

/* Стили конкретных ячеек */
.cart-product-name {
    font-weight: 600 !important;
    color: #082144 !important;
}

/* Костыль для перебивания пустых строк */
.cart-page-table td[class=""] {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.cart-product-price {
    color: #64748b !important;
    font-size: 0.95rem !important;
}

.cart-product-qty {
    font-weight: 500 !important;
    color: #334155 !important;
}

.cart-product-total {
    text-align: right !important;
    color: #082144 !important;
}

/* Итоговый блок стоимости */
.cart-page-footer-summary {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 20px 12px !important;
    margin-bottom: 35px !important;
    width: 100% !important;
    box-sizing: border-box;
    border: none !important;
    background: transparent !important;
}

.cart-summary-label {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
}

.cart-summary-price {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #082144 !important;
    letter-spacing: -0.5px !important;
}

/* Блок оформления заказа (На всю ширину карточки) */
.cart-page-checkout-box {
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    padding: 35px !important;
    box-shadow: 0 4px 20px rgba(8, 33, 68, 0.02) !important;
    box-sizing: border-box;
}

.cart-checkout-title {
    color: #082144 !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    margin-top: 0 !important;
    text-align: left !important;
}

.cart-date-wrapper {
    margin-bottom: 25px !important;
    width: 100% !important;
}

.cart-date-label {
    color: #082144 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    display: block !important;
    text-align: left !important;
}

/* Крупное, аккуратное поле выбора даты */
.cart-date-input {
    width: 100% !important;
    height: 54px !important;
    padding: 0 20px !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    color: #334155 !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 16px !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box;
}

.cart-date-input:focus {
    border-color: #082144 !important;
    box-shadow: 0 0 0 4px rgba(8, 33, 68, 0.08) !important;
}

/* Крупная кнопка отправки */
.cart-btn-submit {
    width: 100% !important;
    height: 54px !important;
    background-color: #082144 !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    padding: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 15px rgba(8, 33, 68, 0.15) !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.cart-btn-submit:hover {
    background-color: #152342 !important;
    box-shadow: 0 6px 20px rgba(8, 33, 68, 0.25) !important;
    transform: translateY(-1px);
}

/* Пустая корзина */
.cart-page-empty {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(8, 33, 68, 0.1);
    border-radius: 24px;
    color: #082144;
    padding: 40px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

/* поле адреса */
.addressDelivery {
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    outline: none;
    transition: all 0.2s ease;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
}




/* Мобильная адаптивность */
@media (max-width: 768px) {
    .cart-page-container {
        margin-top: 140px !important;
    }

    .cart-page-card {
        padding: 25px 20px !important;
        border-radius: 24px !important;
    }

    .cart-page-table th {
        display: none !important;
    }

    .cart-page-table tr {
        display: flex !important;
        flex-direction: column !important;
        padding: 15px 0 !important;
        border-bottom: 1px dashed #e2e8f0 !important;
    }

    .cart-page-table td {
        padding: 8px 0 !important;
        border: none !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: transparent !important;
    }

    .cart-page-table td:not(.cart-product-name)::before {
        font-weight: 500 !important;
        color: #94a3b8 !important;
        font-size: 0.9rem !important;
    }
    
    .cart-page-table td.cart-product-price::before { content: "Цена:"; }
    .cart-page-table td.cart-product-qty::before { content: "Количество:"; }
    .cart-page-table td.cart-product-total::before { content: "Стоимость:"; }

    .cart-product-total {
        text-align: left !important;
        background: #f8fafc !important;
        padding: 10px 12px !important;
        border-radius: 8px !important;
        margin-top: 6px !important;
    }

    .cart-page-footer-summary {
        justify-content: space-between !important;
        padding: 20px 0 !important;
    }

    .cart-page-checkout-box {
        padding: 25px 20px !important;
        border-radius: 20px !important;
    }
}


@media (max-width: 768px) {
    .product-detail-container {
        margin-top: 140px !important;
    }

    .order-detail-card {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .order-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .order-items-table th {
        display: none;
    }

    .order-items-table tr {
        display: flex;
        flex-direction: column;
        padding: 15px 0;
        border-bottom: 1px dashed #e2e8f0;
    }

    .order-items-table tr:last-child {
        border-bottom: none;
    }

    .order-items-table td {
        padding: 6px 0;
        border: none;
        display: flex;
        justify-content: space-between;
    }

    .order-items-table td:not(.product-name-cell)::before {
        content: attr(data-label);
        font-weight: 500;
        color: #94a3b8;
        font-size: 0.9rem;
    }

    .product-name-cell {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }

    .total-cell {
        text-align: left;
        background: #f8fafc;
        padding: 10px 12px !important;
        border-radius: 8px;
        margin-top: 6px;
    }

    .order-detail-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
        padding: 20px;
        margin-top: 30px !important;
       
    }
    
    .footer-total-price {
        font-size: 1.5rem;
    }
}


.orders-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
}

.orders-header-wrapper h2.orders-title {
    margin-bottom: 0 !important;
}

.add-order-link {
    text-decoration: none !important;
}

.btn-create-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #082144;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(8, 33, 68, 0.15);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    height: 48px;
}

.btn-create-order:hover {
    background: #152342;
    box-shadow: 0 8px 25px rgba(8, 33, 68, 0.25);
    transform: translateY(-1px);
}

.btn-create-order:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(8, 33, 68, 0.15);
}

.btn-create-order svg {
    display: block;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn-create-order:hover svg {
    transform: scale(1.1);
}

@media (max-width: 576px) {
    .orders-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .add-order-link {
        width: 100%;
    }
    
    .btn-create-order {
        width: 100%;
    }
}


/* Контейнер страницы */
.product-detail-container {
    width: 100%;
    max-width: 900px !important;
    margin: 200px auto 60px auto !important;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Карточка формы */
.card.shadow-sm {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 32px !important;
    padding: 40px !important;
    box-shadow: 0 15px 45px rgba(8, 33, 68, 0.04) !important;
}

/* Заголовки */
h2.text-center {
    color: #082144;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 35px !important;
}

h4.text-secondary {
    color: #082144 !important;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 30px;
    padding-top: 20px;
}

.form-label {
    color: #082144;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Основное поле даты */
.date-field-wrapper input[type="date"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.date-field-wrapper input[type="date"]:focus {
    border-color: #082144;
    box-shadow: 0 0 0 4px rgba(8, 33, 68, 0.08) !important;
}

/* ==========================================================================
   ЧИСТАЯ ТАБЛИЦА (КАК НА СТРАНИЦЕ ДЕТАЛЕЙ ЗАКАЗА)
   ========================================================================== */
.order-items-table-wrapper {
    overflow-x: auto;
    margin-top: 15px;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.order-items-table th {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 16px 12px;
    border-bottom: 2px solid #edf2f7;
}

.order-items-table td {
    padding: 12px 12px; /* Уменьшенный padding для аккуратных тонких строк */
    font-size: 1rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.order-items-table tr:last-child td {
    border-bottom: 1px solid #f1f5f9;
}

/* Элегантные поля ввода без рамок внутри таблицы */
.order-items-table select,
.order-items-table input[type="number"],
.order-items-table input[type="text"] {
    width: 100% !important;
    padding: 8px 10px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #334155 !important;
    background-color: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

/* Рамки и белый фон появляются только при активной работе с полем */
.order-items-table select:hover,
.order-items-table input[type="number"]:hover,
.order-items-table select:focus,
.order-items-table input[type="number"]:focus {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.product-name-cell {
    font-weight: 600;
    color: #082144;
}

.price-cell {
    color: #64748b;
    font-size: 0.95rem;
}

.total-cell {
    text-align: right;
    color: #082144;
    font-size: 1.05rem;
}

/* Кнопка добавления под таблицей */
.btn-add-table-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent !important;
    color: #64748b !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    margin-top: 15px;
}

.btn-add-table-row:hover {
    border-color: #082144 !important;
    color: #082144 !important;
    background: rgba(8, 33, 68, 0.02) !important;
}

/* Нижние кнопки отправки */
.d-grid {
    margin-top: 35px;
    display: flex !important;
    flex-direction: column;
    gap: 12px !important;
}

.btn-success {
    background-color: #082144 !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    padding: 14px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 15px rgba(8, 33, 68, 0.15) !important;
    transition: all 0.2s ease !important;
    text-align: center;
    cursor: pointer;
}

.btn-success:hover {
    background-color: #152342 !important;
    box-shadow: 0 6px 20px rgba(8, 33, 68, 0.25) !important;
    transform: translateY(-1px);
}

.btn-light {
    background-color: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    padding: 14px !important;
    border-radius: 16px !important;
    transition: all 0.2s ease !important;
    text-align: center;
    text-decoration: none;
}

.btn-light:hover {
    background-color: #e2e8f0 !important;
    color: #334155 !important;
}

/* ==========================================================================
   СТИЛИ ДЛЯ ВСПЛЫВАЮЩИХ УВЕДОМЛЕНИЙ (TOAST MESSAGES)
   ========================================================================== */

/* Фиксированный контейнер под шапкой сайта */
.toast-messages-container {
    position: fixed;
    top: 130px; /* Позиционируем ровно под фиксированным меню УМК */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 100%;
    max-width: 520px;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none; /* Пропускает клики сквозь контейнер, если нет уведомлений */
}

/* Стили самого всплывающего уведомления */
.custom-toast {
    pointer-events: auto; /* Возвращаем кликабельность для самого уведомления */
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(22, 163, 74, 0.2); /* Тонкая зеленая рамка */
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(8, 33, 68, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    animation: toastFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transition: all 0.4s ease;
}

/* Иконка успешного действия */
.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Контент внутри плашки */
.toast-text-content {
    font-size: 0.95rem;
    font-weight: 500;
    color: #082144; /* Фирменный тёмно-синий текст */
    line-height: 1.4;
    flex-grow: 1;
}

/* Кнопка ручного закрытия крестиком */
.toast-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close-btn:hover {
    color: #64748b;
    background: rgba(0, 0, 0, 0.05);
}

.loader {
  border: 4px solid #f3f3f3; /* Серый цвет основы */
  border-top: 4px solid #082144; /* Синий цвет крутящейся части */
  border-radius: 50%; /* Делает квадрат кругом */
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/* Анимация появления сверху вниз */
@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Адаптивность для мобильных телефонов */
@media (max-width: 576px) {
    .toast-messages-container {
        top: 110px;
        max-width: 100%;
    }
    .custom-toast {
        padding: 14px 16px;
        border-radius: 14px;
        gap: 12px;
    }
    .toast-text-content {
        font-size: 0.9rem;
    }
}


/* Мобильная версия */
@media (max-width: 768px) {
    .product-detail-container {
        margin-top: 140px !important;
    }

    .card.shadow-sm {
        padding: 24px 20px !important;
        border-radius: 24px !important;
    }

    .order-items-table th {
        display: none;
    }

    .order-items-table tr {
        display: flex;
        flex-direction: column;
        padding: 15px 0;
        border-bottom: 1px dashed #e2e8f0;
    }

    .order-items-table td {
        padding: 6px 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .order-items-table td:not(.product-name-cell)::before {
        font-weight: 500;
        color: #94a3b8;
        font-size: 0.9rem;
    }
    
    .order-items-table td.price-cell::before { content: "Цена:"; }
    .order-items-table td.quantity-cell::before { content: "Количество:"; }
    .order-items-table td.total-cell::before { content: "Стоимость:"; }

    .order-items-table select, 
    .order-items-table input[type="number"] {
        width: 50% !important;
        background-color: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
    }

    .total-cell {
        text-align: left;
        background: #f8fafc;
        padding: 10px 12px !important;
        border-radius: 8px;
        margin-top: 6px;
    }
    
    .btn-add-table-row {
        width: 100%;
        justify-content: center;
    }
}


@media (max-width: 768px) {
    .product-detail-container {
        margin-top: 180px !important;
        margin-bottom: 60px !important;
        padding-top: 10px !important;
    }

    .table tbody tr {
        display: flex; /* Убрали !important, чтобы JS мог скрывать строки через класс d-none */
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px !important;
        padding: 30px 24px !important;
        border-radius: 24px !important;
    }

    .table td {
        text-align: left !important;
        width: 100% !important;
    }

    .table td:first-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .table td:first-child::after {
        content: "Данные заказа";
        font-size: 0.85rem;
        color: #94a3b8;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .table td:nth-child(2) {
        font-size: 0.95rem;
        border-bottom: 1px dashed #e2e8f0 !important;
        padding-bottom: 15px !important;
        margin-top: -10px;
    }

    .table td:nth-child(3) {
        padding: 5px 0 !important;
    }

    .table ul.list-unstyled {
        padding-right: 0;
        gap: 10px;
    }

    .table ul.list-unstyled li {
        font-size: 0.95rem;
    }

    .table td:nth-child(4) {
        border-top: 1px dashed #e2e8f0 !important;
        padding-top: 20px !important;
        display: flex;
        align-items: center;
    }

    .table td:last-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f8fafc !important;
        padding: 15px 20px !important;
        border-radius: 16px !important;
        margin-top: 5px;
    }

    .table td:last-child::before {
        content: "Итого:";
        font-size: 1rem;
        font-weight: 600;
        color: #64748b;
    }

    .table td:last-child strong {
        font-size: 1.4rem;
    }
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination-btn {
    border: 1px solid rgba(8, 33, 68, 0.15);
    background: rgba(255, 255, 255, 0.8);
    color: #082144;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: #082144;
    color: #ffffff;
}

.pagination-btn.active {
    background: #082144;
    color: #ffffff;
    border-color: #082144;
    box-shadow: 0 4px 12px rgba(8, 33, 68, 0.2);
}

/* Плавное затухание фона для всей строки таблицы (tr) */
.item-form-row {
    transition: background-color 0.5s ease;
}

/* Эффект яркой янтарно-желтой вспышки с переходом в прозрачный */
.highlight-row-flash {
    animation: flashFade 3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes flashFade {
    0% {
        background-color: rgba(255, 193, 7, 0.35); /* Мягкий желтый цвет на старте */
    }
    100% {
        background-color: transparent; /* Полное угасание фона к 3-й секунде */
    }
}

/* Выравнивание ячейки удаления */
.delete-cell {
    text-align: center;
    vertical-align: middle;
    padding-right: 16px !important;
}

/* Элегантная круглая кнопка удаления */
.btn-delete-row {
    background: transparent;
    border: none;
    color: #94a3b8; /* Спокойный серый цвет по умолчанию */
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
}

/* Мягкая красная подсветка при наведении мыши */
.btn-delete-row:hover {
    color: #dc3545; /* Сдержанный красный */
    background-color: rgba(220, 53, 69, 0.08); /* Очень бледный красный фон */
}

/* Анимация нажатия */
.btn-delete-row:active {
    transform: scale(0.92);
}



header, .site-header {
    position: fixed !important; /* Фиксируем шапку вверху экрана */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000 !important; /* Делаем шапку выше всех остальных элементов и всплывашек */
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    /* Элегантный белый полупрозрачный фон с размытием в стиле УМК */
    background: #082144 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    
    /* Мягкая тень снизу, чтобы визуально отделить меню от контента при скролле */
    box-shadow: 0 4px 20px rgba(8, 33, 68, 0.06) !important; 
    transition: all 0.3s ease;
}

/* 1. Растягиваем страницу на всю высоту экрана */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

/* 2. Контент забирает всё свободное место и выталкивает футер вниз */
main, .main-content, .product-detail-container, .catalog-container {
    flex: 1 0 auto; 
}

/* 3. Обычный чистый стиль футера на самом дне сайта */
footer.site-footer {
    flex-shrink: 0;
    position: relative !important;
    width: 100% !important;
    padding: 24px 0 !important;
    margin-top: 40px !important;
}

footer.site-footer .footer-container p {
    margin: 0 !important;
    color: #ffffff !important;
    text-align: center !important;
}

/*начало карточки каталог*/
    /* --- Сетка каталога: переключаем на 4 карточки в ряд --- */
.catalog-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 20px 100px 20px;
}

.catalog-grid {
    display: grid;
    /* Изменили с repeat(3, 1fr) на repeat(4, 1fr) */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; /* Компактный зазор между элементами */
    margin-top: 30px;
}

/* Компактная карточка категории */
.product-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px; 
    padding: 14px; /* Уменьшили внутренний padding, чтобы карточка не была громоздкой */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%; /* Гарантирует одинаковую высоту всех карточек в ряду */
    box-sizing: border-box;
}

/* Компактная область картинки */
.product-img-wrapper {
    width: 100%;
    height: 140px; /* Уменьшили высоту (было 190px) */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.product-img {
    max-width: 110%;
    max-height: 110%;
    object-fit: contain;
}

/* Область с текстом и кнопкой */
.product-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Выталкивает кнопку ровно к нижнему краю */
}

/* Шрифт названия категории */
.product-name {
    font-size: 0.95rem !important; /* Чуть уменьшили размер шрифта */
    font-weight: 600;
    margin-bottom: 14px;
    display: block;
    color: #082144;
    text-align: left;
    line-height: 1.3;
    min-height: 2.6rem; /* Резервирует место под 2 строки текста, чтобы кнопки не плясали */
}

/* Ссылка-обертка всей карточки */
.category-card-link {
    text-decoration: none !important;
    display: block;
    color: inherit;
}

/* Компактная псевдокнопка */
.product-btn-fake {
    width: 100%;
    height: 38px; /* Сделали кнопку чуть ниже и аккуратнее */
    background: #082144;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: auto; /* Прижимает кнопку строго к самому низу */
}

/* Интерактивные эффекты при наведении на любую область карточки */
.category-card-link:hover .product-card {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(8, 33, 68, 0.08);
}

.category-card-link:hover .product-btn-fake {
    background: #152342;
}

/* --- Адаптивность для планшетов и мобильных экранов --- */
@media (max-width: 1024px) {
    .catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
}
@media (max-width: 768px) {
    .catalog-container { padding-top: 180px; }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .catalog-grid { grid-template-columns: 1fr; gap: 15px; }
}

/*конец карточки каталог */
@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .site-footer {
        margin-top: 40px !important;
    }
}


/* Анимация появления контента при загрузке */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
   
    .header-nav,
    footer {
        display: none !important;
    }
   
    .manager-card {
        padding: 30px 20px;
    }
    
    .manager-name {
        font-size: 32px;
    }
    
    .manager-role {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .manager-phone-link {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
 
}
@media (max-width: 650px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        position: relative;
    }
    .cart-item-img {
        width: 70px;
        height: 70px;
    }
    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    .cart-item-price-total {
        min-width: auto;
    }
    .cart-item-remove {
        position: absolute;
        top: 15px;
        right: 15px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.count-input-cart{
    width: 30px
}



