        @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

        html, body {
            height: 100%;
            margin: 0;
        }

        body {
            font-family: 'Montserrat', sans-serif;
            background: linear-gradient(135deg, #ffd3b6, #ffaaa5);
            background-attachment: fixed;
            color: #333;
            text-align: center;
        }

        #page-content {
            opacity: 0;
            transition: opacity 0.6s ease-in-out;
            padding: 0 20px 40px;
        }
        
        #page-content.loaded { opacity: 1; }

        h1 {
            font-size: 28px;
            margin: 20px 0;
        }

        .button-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            /*margin-top: 20px;*/
        }

        a.button, button.button {
            display: block;
            width: 220px;
            padding: 12px 24px;
            background: #FF6600;
            color: #fff;
            text-decoration: none;
            border-radius: 8px;
            transition: 0.3s;
            cursor: pointer;
        }
        a.button:hover, button.button:hover {
            background: #e65500;
            transform: scale(1.05);
        }

    /* ---------- ЛОГОТИПЫ ---------- */
    .floating {
        position: fixed;
        width: 60px;
        height: 60px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        z-index: 1000;
    }

    .logoMIG.top-left {
        top: 10px;
        left: 10px;
        /* background-image: url("../image/MIGWellnessLogo.png"); */
        background-image: url("../image/PWGOLogo.png");
    }
        
            /* ---------- ВВОД ---------- */
    .input {
        width: 90%;
        max-width: 320px;
        padding: 10px;
        border: 2px solid #FF6600;
        border-radius: 10px;
        outline: none;
        transition: 0.2s;
        font-size: 15px;
    }

    .input:focus {
        border-color: #e65500;
        box-shadow: 0 0 5px rgba(255, 102, 0, 0.6);
    }
    
    textarea.input {
        height: 140px;
        resize: vertical;
        border: 2px solid #FF6600;
        border-radius: 10px;
        padding: 10px;
        line-height: 1.4;
        font-size: 15px;
        font-family: 'Montserrat', sans-serif;
        background: #fff7f3;
    }
     
    /* ---------- КАМЕРА (МОДАЛКА) ---------- */
    #cameraModal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.8);
        z-index: 2000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    video, canvas {
        width: 100%;
        max-width: 400px;
        border: 1px solid #ccc;
        margin: 10px 0;
    }

    /* ---------- ПРЕВЬЮ ФОТО ---------- */
    #foto-preview {
        width: 200px;
        height: 200px;
        border: 2px dashed #FF6600;
        border-radius: 10px;
        margin: 20px auto;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #777;
        overflow: hidden;
        background: #fff7f3;
    }

    #foto-preview img {
        max-width: 100%;
        max-height: 100%;
        border-radius: 8px;
    }
    
    /* --------- ВАЛИДАЦИЯ --------/*
    /* override inline green when disabled */
.save-producto[disabled] {
  background: #6c757d !important;
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* when enabled — ярче */
.save-producto.enabled {
  background: #28a745 !important;
  opacity: 1;
  cursor: pointer;
}

/* ---------- СЕТКА ТОВАРОВ ---------- */
/* По умолчанию — сетка адаптивная */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    padding: 10px;
    justify-items: center;
}

/* На экранах меньше 480px — две колонки */
@media (max-width: 480px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- КАРТОЧКА ---------- */
.producto-card {
    background: #fff7f3;
    border: 2px solid #FF6600;
    border-radius: 12px;
    width: 160px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.producto-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

/* ---------- ЧЕКБОКС НА КАРТОЧКЕ ---------- */










.producto-card {
    position: relative;
}
.activo-container {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 13px;
}


/* Мини-вариант чекбокса */
.checkbox-label.small {
    font-size: 13px;
}
.checkbox-label.small .custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid orange;
}
.checkbox-label.small input:checked + .custom-checkbox {
    background: #28a745;
    border-color: #28a745;
}


/* Кнопки добавления и убавления товаров */

.producto-card-user {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 10px;
}

.producto-content-user {
    flex-grow: 1;
}

.cantidad-container-user {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 6px 8px;
    border-top: 1px solid #eee;
}


.btn-cantidad-user {
    width: 32px;
    height: 32px;
    border: none;
    background: #eee;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
}

.btn-cantidad-user.mas {
    background: #28a745;
}

.btn-cantidad-user.menos {
    background: #dc3545;
}

.btn-cantidad-user:hover {
    background: #ddd;
}

.cantidad-num-user {
    font-size: 18px;
    font-weight: bold;
    width: 40px;
    text-align: center;
}


/* Плавающее окно корзины */
.cart-floating {
    position: fixed;
    top: 20px;
    right: -20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    cursor: pointer;
}

/* Контейнер корзины — ВОТ ТУТ ФОН */
.cart-item {
    position: relative;
    width: 80px;
    height: 80px;
}

.cart-icon {
    width: 35%;
    height: 35%;
    display: block;
    transform: translateY(-12.5%);
}

.cart-badge-count {
    position: absolute;
    top: 40%;
    left: 20%;
    transform: translate(-50%, -50%);
    color: #007bff; /* или белый, если иконка темная */
    font-weight: bold;
    font-size: 12px;
    pointer-events: none;
    user-select: none;
    transition: transform 0.2s ease;
}

.cart-badge-count.animate {
    transform: translate(-50%, -50%) scale(1.4);
}

.cart-badge-total {
    position: absolute;
    top: 60%;
    left: 20%;
    transform: translate(-50%, -50%);
    color: #007bff; /* или белый, если иконка темная */
    font-weight: bold;
    font-size: 12px;
    pointer-events: none;
    user-select: none;
    transition: transform 0.2s ease;
}

.cart-badge-total.animate {
    transform: translate(-50%, -50%) scale(1.4);
}








/* ---------- ФОТО ---------- */
/* Фотографии внутри карточки */
.producto-foto {
    width: 100%;
    aspect-ratio: 1 / 1; /* квадратная карточка */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.producto-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* изображение обрезается по центру */
}

.no-foto {
    color: #aaa;
    font-size: 14px;
}

@media (max-width: 480px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-items: stretch; /* карточки растягиваются ровно по колонке */
    }

    .producto-card {
        width: 100%; /* занимает всю ширину колонки */
    }
}

/* ---------- НАЗВАНИЕ ---------- */
.producto-nombre {
    padding: 4px;
    font-weight: bold;
    font-size: 15px;
    color: #333;
}

.producto-precio {
    font-size: 14px;
    font-weight: 500;
    color: #FF6600;
    margin-bottom: 4px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-top: 15px;
    justify-content: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #333;
    gap: 10px;
}

.checkbox-label input {
    display: none;
}

.custom-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #FF6600; /* примерно оранжевый бордюр */
    background-color: #fff8f0;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label:hover .custom-checkbox {
    border-color: #28a745; /* зеленый при наведении */
}

/* При выборе — зеленый фон и галочка */
.checkbox-label input:checked + .custom-checkbox {
    background-color: #28a745; /* зеленый */
    border-color: #28a745;
}

.checkbox-label input:checked + .custom-checkbox::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


/* После возвращения из редактирования продукта карточка мигает */
.flash-highlight {
    animation: borderFlash 2s ease-in-out 3; /* мигает 3 раза, можно увеличить */
}

@keyframes borderFlash {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); border-color: #FF6600; }
    25% { box-shadow: 0 0 10px 3px rgba(255, 215, 0, 0.8); border-color: gold; }
    50% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); border-color: #FF6600; }
    75% { box-shadow: 0 0 10px 3px rgba(255, 215, 0, 0.8); border-color: gold; }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); border-color: #FF6600; }
}

/* ---------- СТРАНИЦА КАТЕГОРИЙ ---------- */
.categoria-subtitle {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.4;
}

.categoria-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* карточка категории */
.categoria-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff7f3;
    border: 2px solid #FF6600;
    border-radius: 12px;
    padding: 10px 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.categoria-item:hover {
    transform: scale(1.02);
    box-shadow: 0 3px 10px rgba(255, 102, 0, 0.25);
}

.categoria-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #333;
    outline: none;
    font-family: 'Montserrat', sans-serif;
}

.categoria-input:focus {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 0 4px rgba(255, 102, 0, 0.4);
    padding: 4px 6px;
}

/* иконка "перетаскивания" */
.drag-handle {
    cursor: grab;
    font-size: 22px;
    color: #FF6600;
    user-select: none;
    transition: transform 0.15s ease;
}

.drag-handle:active {
    transform: scale(1.2);
    cursor: grabbing;
}

/* Кнопки внизу */
/*.button-container {
    margin-top: 30px;
}*/

.dragging {
    opacity: 0.6;
    background-color: #f0f0f0;
}

.drag-handle {
    cursor: grab;
}

.categoria-item input:focus {
    outline: none;
    border-color: #007bff;
}

/* Подложка модального окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

/* Содержимое модалки */
.modal-content {
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    width: 320px;
    max-width: 90%;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
}

/* Заголовок */
.modal-content h3 {
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #333;
}

/* Поле ввода */
.modal-content .categoria-input {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    box-sizing: border-box;
}

/* Кнопки */
.modal-buttons {
    display: flex;
    justify-content: space-between;
}

.modal-buttons .button {
    flex: 1;
    padding: 10px 0;
    font-size: 1em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin: 0 5px;
    transition: background 0.2s ease;
}

.button.btn-green {
    background-color: #28a745;
    color: #fff;
}

.button.btn-green:hover {
    background-color: #218838;
}

.button.btn-red {
    background-color: #dc3545;
    color: #fff;
}

.button.btn-red:hover {
    background-color: #c82333;
}

/* ---------- СТИЛИ ДЛЯ РЯДОВ КАТЕГОРИЙ И КНОПКИ УДАЛЕНИЯ ---------- */

.categoria-list {
    padding: 0;
    margin: 0 auto;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Строка: карточка + кнопка справа (кнопка вне .categoria-item) */
.categoria-row {
    display: flex;
    align-items: stretch; /* чтобы кнопка растягивалась по высоте карточки */
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* карточка категории остаётся знакомой, но теперь flex:1 */
.categoria-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff7f3;
    border: 2px solid #FF6600;
    border-radius: 12px;
    padding: 10px 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

/* внутри карточки — поле и ручка перетаскивания */
.categoria-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* Инпут занимает всё доступное место */
.categoria-item .categoria-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #333;
    outline: none;
    font-family: 'Montserrat', sans-serif;
}

/* Кнопка удаления — визуально в теме, но отдельная */
.delete-categoria-btn {
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 14px;           /* вертикальные отступы задаются через высоту строки */
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    align-self: stretch;       /* растягиваем по высоте строки */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(220, 53, 69, 0.25);
    min-width: 72px;
}

/* Немного увеличиваем при наведении */
.delete-categoria-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.35);
}

/* Для мобильных: оставляем комфортный вид */
@media (max-width: 420px) {
    .categoria-row { gap: 8px; }
    .delete-categoria-btn { min-width: 56px; font-size: 14px; border-radius: 8px; }
    .categoria-item { padding: 8px 10px; border-radius: 10px; }
}

.delete-categoria-btn {
    background-color: #fff;
    border: 2px solid #dc3545;
    color: #dc3545;
    border-radius: 10px;
    padding: 0 14px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.15s ease;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.1);
}

.delete-categoria-btn:hover {
    background-color: #dc3545;
    color: #fff;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.25);
    transform: translateY(-2px);
}

.delete-categoria-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor; /* наследует цвет текста */
    pointer-events: none;
}

@media (max-width: 420px) {
    .delete-categoria-btn {
        min-width: 42px;
        padding: 0 10px;
        border-radius: 8px;
    }
    .delete-categoria-btn svg {
        width: 18px;
        height: 18px;
    }
}

.categoria-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 8px;
}

.drag-handle {
    cursor: grab;
    font-size: 18px;
    margin-left: 10px;
}

/* ---------- КНОПКИ КАТЕГОРИЙ НА ГЛАВНОЙ (универсально) ---------- */
#categories-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

/* Каждая категория — как кнопка */
#categories-list .button {
    width: 220px;
    background-color: #FF6600;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 400;
    transition: background 0.25s, transform 0.15s;
    margin-bottom: 12px; /*  работает везде, даже в WebApp */
}

/* Чтобы последняя кнопка не имела лишнего отступа */
#categories-list .button:last-child {
    margin-bottom: 0;
}

#categories-list .button:hover {
    background-color: #e65500;
    transform: scale(1.05);
}

.admin-separator {
    width: 220px;
    margin-top: 20px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    gap: 8px;
    color: #555;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Мини-иконка-шестерёнка */
.gear-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23555' viewBox='0 0 24 24'><path d='M19.14,12.94a7.07,7.07,0,0,0,0-1.88l2.11-1.65a.5.5,0,0,0,.12-.64l-2-3.46a.5.5,0,0,0-.61-.22l-2.49,1a7.11,7.11,0,0,0-1.63-.95l-.38-2.65A.5.5,0,0,0,13.81,2H10.19a.5.5,0,0,0-.5.42L9.31,5.07a7.11,7.11,0,0,0-1.63.95l-2.49-1a.5.5,0,0,0-.61.22l-2,3.46a.5.5,0,0,0,.12.64L4.86,11.06a7.07,7.07,0,0,0,0,1.88l-2.11,1.65a.5.5,0,0,0-.12.64l2,3.46a.5.5,0,0,0,.61.22l2.49-1a7.11,7.11,0,0,0,1.63.95l.38,2.65a.5.5,0,0,0,.5.42h3.62a.5.5,0,0,0,.5-.42l.38-2.65a7.11,7.11,0,0,0,1.63-.95l2.49,1a.5.5,0,0,0,.61-.22l2-3.46a.5.5,0,0,0-.12-.64ZM12,15.5A3.5,3.5,0,1,1,15.5,12,3.5,3.5,0,0,1,12,15.5Z'/></svg>") no-repeat center;
    background-size: contain;
    opacity: 0.8;
}

.edit-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #555;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.recuperar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #555;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}


/* ---------------------- КОРЗИНА ----------------------------------------------------------- */

.cart-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    background-color: #fff;
    gap: 15px;
}

.cart-item-foto img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

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

.cart-item-nombre {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.cart-item-precio {
    font-size: 14px;
    color: #555;
}

.cart-item-cantidad {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.cart-item-cantidad button {
    width: 28px;
    height: 28px;
    border: 1px solid #ccc;
    background-color: #f7f7f7;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.cart-item-cantidad span {
    min-width: 25px;
    text-align: center;
    font-weight: bold;
}
/*-------------------------------------------------------------------------------*/

#cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.producto-cart {
    background: #fff7f3;
    border: 2px solid #FF6600;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.producto-cart:hover {
    box-shadow: none;
    transform: none;
    cursor: default;
}

.producto-cart-user {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0;
}

.cart-item-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    justify-content: space-between;
}

.cart-item-photo img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.no-foto-small {
    width: 70px;
    height: 70px;
    background: #eee;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.cart-item-total {
    font-size: 14px;
    color: #d9534f;
    min-width: 0;
    margin-top: 5px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    width: 110px; /* фиксируем ширину, хватает для - 3 + */
    justify-content: flex-end;
}

.cart-item-controls button {
    width: 32px;
    height: 32px;
    border: none;
    color: #fff;
    font-size: 20px;
    border-radius: 6px;
    cursor: pointer;
}

.cart-item-controls button.mas {
    background: #28a745;
}

.cart-item-controls button.menos {
    background: #dc3545;
}

.cantidad-num-user {
    font-size: 18px;
    width: 28px;
    text-align: center;
}

/* Контейнер для поиска и выбора категории */
.filter-container {
    display: flex;
    flex-direction: column; /* элементы друг под другом */
    gap: 10px;              /* расстояние между элементами */
    margin: 0 auto 20px;    /* центрирование по горизонтали + нижний отступ */
    max-width: 300px;       /* ограничение ширины для аккуратного вида */
    text-align: center;      /* центрируем текст внутри */
}

/* Опционально: чтобы input и select были одинаковой ширины */
.filter-container .input {
    width: 100%;
    box-sizing: border-box;
}



/* ---------- КАРТОЧКИ ИНФОРМАЦИИ ---------- */
.info-card {
    width: 90%;
    max-width: 320px;
    padding: 15px 20px;
    background: #fff7f3;
    border: 2px solid #FF6600;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 0 5px rgba(255, 102, 0, 0.15);
}

.info-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: #FF6600;
    font-weight: 700;
}

.info-card p {
    margin: 0;
    font-size: 15px;
}

/* Стили для фото на странице продукта */
.producto-foto-estilo {
    border-radius: 12px;            /* скругление углов */
    border: 2px solid #FF6600;         /* рамка */
    overflow: hidden;                /* чтобы скругление сработало */
    margin-bottom: 20px;
}
.producto-foto-estilo img {
    width: 100%;
    height: 100%;
    object-fit: cover;               /* обрезка по центру */
}

/* ------------------ СТИЛИ РАБОТЫ АДМИНИСТРАТОРА С ЗАКАЗАМИ НАЧАЛО -------------------- */

.pedido-card {
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.pedido-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pedido-user {
    margin-bottom: 12px;
    font-size: 14px;
}

.item-row {
    display: flex;
    margin-bottom: 8px;
}

.item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 10px;
}

.item-info {
    font-size: 14px;
}

.pedido-total {
    margin-top: 10px;
    font-size: 16px;
    text-align: right;
}

/* ------------------ СТИЛИ РАБОТЫ АДМИНИСТРАТОРА С ЗАКАЗАМИ КОНЕЦ -------------------- */

.button-ajustes {
    /* здесь ТОЛЬКО отличия */
    display: inline-flex;          /* ключевая строка */
    align-items: center;           /* вертикальный центр */
    padding: 8px 14px;
    padding-left: 36px;            /* место под иконку */
    position: relative;
}

/* Иконка только для этой кнопки */
.button-ajustes .gear-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

/* ------------------ Модальное окно для показа QR-кода приглашения НАЧАЛО -------------------- */
/* Модальное окно */
#adminModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;        /* Вертикальное центрирование */
    justify-content: center;    /* Горизонтальное центрирование */
    z-index: 9999;
}

/* Контейнер содержимого */
#adminModal .modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

/* Контейнер QR-кода */
#adminModal #qrCodeContainer {
    margin: 20px auto;          /* Автоматические отступы слева/справа */
    width: 200px;
    height: 200px;
}
/* ------------------ Модальное окно для показа QR-кода приглашения КОНЕЦ -------------------- */

.language-select {
    width: 220px;
    padding: 12px 24px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
    cursor: pointer;
}

.input-error {
    border: 1px solid red;
}

.producto-foto {
    position: relative;
}

.badge-out-of-stock {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #dc3545;
    color: #fff;
    padding: 4px 8px;
    font-size: 0.75em;
    border-radius: 6px;
    font-weight: bold;
    z-index: 2;
}

.producto-card-user.out-of-stock {
    opacity: 0.55;
}

.btn-cantidad-user:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.out-of-stock-message {
    margin-top: 10px;
    padding: 10px 14px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    font-size: 0.95em;
    text-align: center;
}
