:root {
    --bg-main: #f8f9fa;
    --bg-card: #ffffff;
    --text-main: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --gold: #b78103;
    --gold-hover: #9d6e00;
    --danger: #dc3545;
    --success: #2e7d32;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 20px;
    line-height: 1.5;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    color: var(--text-main);
    font-weight: 600;
    margin-top: 0;
}

a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    color: var(--gold-hover);
    text-decoration: underline;
}

/* Карточки и формы */
.admin-card, form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    margin-top: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-card-link:hover .admin-card {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Навигационное меню дашборда (index.php) */
.admin-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-menu-item a {
    display: block;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}

.admin-menu-item a:hover {
    border-color: var(--gold);
    color: var(--gold) !important;
    text-decoration: none;
    transform: translateX(4px);
}

.admin-section-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 15px 0 5px 0;
}

.admin-section-title {
    color: var(--text-muted) !important;
    font-size: 13px;
    font-weight: 600;
    margin: 10px 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Переключатель статуса (тумблер) */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .3s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; }
input:checked + .slider { background-color: #2e7d32; }
input:checked + .slider:before { transform: translateX(20px); }
.status-label { font-size: 11px; font-weight: bold; margin-top: 4px; display: block; }

/* Поля ввода */
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 5px;
    background: #ffffff !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(183, 129, 3, 0.15);
}

/* Кнопки */
button[type="submit"], .btn-primary {
    padding: 10px 20px;
    background: white,
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    color: #fff !important;
    transition: background 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button[type="submit"]:hover, .btn-primary:hover {
    background: var(--gold-hover);
}

/* Вход в админку (login.php) */
.admin-login-body {
    background: #121212 !important;
    color: #ffffff !important;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 15px;
}

.admin-login-card {
    background: #1e1e1e !important;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

.admin-login-card h2 {
    color: #ffffff !important;
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
}

.admin-login-card label {
    color: #bbb !important;
    font-size: 13px;
}

.admin-login-card input {
    background: #2a2a2a !important;
    border: 1px solid #444 !important;
    color: #ffffff !important;
    margin-top: 6px;
    margin-bottom: 15px;
}

/* ==========================================================================
   СТИЛИ ДЛЯ СТРАНИЦЫ УПРАВЛЕНИЯ ЗОЛОТЫМИ ТОВАРАМИ (PRODUCTS_GOLD.PHP)
   ========================================================================== */
.admin-gold-container {
    max-width: 1400px;
    margin: 0 auto;
}

.admin-gold-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-gold-title {
    color: #b78103;
    margin: 0;
}

.btn-import-gold {
    background: #b78103;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(183, 129, 3, 0.2);
    transition: all 0.2s ease;
}

.btn-import-gold:hover {
    background: #9d6e00;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(183, 129, 3, 0.35);
}

.btn-import-icon {
    font-size: 20px;
    line-height: 1;
}

.admin-back-link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: #ffffff;
    border: 2px solid #e0c879;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.stat-card.active {
    box-shadow: 0 0 0 3px rgba(183, 129, 3, 0.35);
    border-width: 2px !important;
}

.stat-card-static {
    cursor: default !important;
}

.stat-card-static:hover {
    transform: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03) !important;
}

.stat-card-filled { border-color: #81c784; background: #f1f8e9; }
.stat-card-empty { border-color: #e57373; background: #ffebee; }
.stat-card-active-prod { border-color: #a5d6a7; background: #f4fbf7; }
.stat-card-hidden-prod { border-color: #ffab91; background: #fff5f2; }
.stat-card-percent { border-color: #b78103; background: #fffdf5; }

.stat-icon {
    font-size: 26px;
    line-height: 1;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #111;
}

.stat-label {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 15px;
}

.gold-products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.gold-products-table thead tr {
    background: #fffdf5;
    border-bottom: 2px solid #e0c879;
    text-align: left;
}

.gold-products-table thead th {
    padding: 8px;
    color: #495057;
    font-weight: 600;
}

.gold-products-table tbody tr {
    border-bottom: 1px solid #eee;
}

.gold-products-table tbody tr.row-disabled {
    background: #f9f9f9;
    opacity: 0.75;
}

.gold-products-table tbody tr.hidden-row {
    display: none !important;
}

.gold-products-table td {
    padding: 8px;
    vertical-align: middle;
}

.thumb-img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
}

.no-photo-box {
    width: 45px;
    height: 45px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 10px;
    border-radius: 4px;
}

.articul-sub { font-size: 11px; color: #888; }
.category-sub { font-size: 11px; color: #666; margin-top: 2px; }
.specs-cell { font-size: 11px; color: #444; line-height: 1.4; }
.desc-cell { font-size: 11px; color: #555; }

.desc-clamp {
    max-height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.no-desc-text { color: #bbb; font-style: italic; }
.price-showroom-text { color: #2e7d32; font-size: 14px; }
.text-center-cell { text-align: center; }

.btn-edit-desc {
    background: #b78103;
    color: #ffffff !important;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.empty-table-msg { text-align: center; color: #888; padding: 20px; }
.text-success { color: #2e7d32 !important; }
.text-danger { color: #c62828 !important; }
.text-gold { color: #b78103 !important; }
.text-gold-bold { color: #b78103 !important; font-weight: bold; }
.text-muted { color: #757575 !important; }

/* ==========================================================================
   СТИЛИ ДЛЯ СТРАНИЦЫ РЕДАКТИРОВАНИЯ ОПИСАНИЯ (PRODUCT-DESCRIPTION-GOLD.PHP)
   ========================================================================== */
.admin-desc-page .admin-container {
    max-width: 700px;
    margin: 0 auto;
}

.admin-desc-page .back-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

.admin-desc-page .card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.admin-desc-page .prod-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.admin-desc-page .prod-header img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.admin-desc-page .no-photo-thumb {
    width: 65px;
    height: 65px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #888;
    border-radius: 6px;
}

.admin-desc-page .prod-title {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #111;
}

.admin-desc-page .articul-val {
    color: #b78103;
}

.admin-desc-page label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
    color: #b78103;
}

.admin-desc-page textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

.admin-desc-page .btn-save-desc {
    padding: 12px 20px;
    background: #b78103;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    font-size: 15px;
    margin-top: 15px;
}

.admin-desc-page .btn-save-desc:hover {
    background: #966902;
}

.admin-desc-page .alert-success-msg {
    color: #2e7d32;
    background: #e8f5e9;
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.admin-desc-page .alert-error-msg {
    color: #dc3545;
    background: rgba(220,53,69,0.1);
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* ==========================================================================
   СТИЛИ ДЛЯ СТРАНИЦЫ ИМПОРТА CSV (IMPORT-GOLD-CSV.PHP)
   ========================================================================== */
.admin-import-page .admin-container {
    max-width: 700px;
    margin: 40px auto;
}

.admin-import-page .back-link {
    color: #b78103;
    text-decoration: none;
    font-weight: bold;
}

.admin-import-page .card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.admin-import-page .import-title {
    color: #b78103;
    margin-top: 0;
}

.admin-import-page .import-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.admin-import-page .btn-upload {
    background: #b78103;
    color: #ffffff !important;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    margin-top: 15px;
}

.admin-import-page .btn-upload:hover {
    background: #966902;
}

.admin-import-page .alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.admin-import-page .alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.admin-import-page .file-input-wrap {
    border: 2px dashed #b78103;
    padding: 25px;
    text-align: center;
    border-radius: 6px;
    background: #fffdf8;
    margin: 15px 0;
}

.admin-import-page .file-input {
    font-size: 14px;
    width: 100%;
}

/* ==========================================================================
   АДАПТИВНОСТЬ ДЛЯ СМАРТФОНОВ (ДО 768px)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .admin-container {
        padding: 0;
    }

    .admin-card, form {
        padding: 15px;
        margin-top: 15px;
    }

    .admin-menu-item a {
        padding: 14px 16px;
        font-size: 14px;
    }

    /* Верхний блок админки */
    .admin-gold-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .admin-gold-header h1 {
        font-size: 20px !important;
    }

    .admin-gold-header .btn-import-gold {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* Адаптивная сетка плашек */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .stat-card {
        padding: 10px !important;
        gap: 8px !important;
    }
    .stat-icon {
        font-size: 20px !important;
    }
    .stat-value {
        font-size: 15px !important;
    }
    .stat-label {
        font-size: 10px !important;
    }

    /* Преобразование таблицы золотых товаров в карточки */
    .gold-products-table {
        display: block !important;
        width: 100% !important;
    }

    .gold-products-table thead {
        display: none !important;
    }

    .gold-products-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .gold-products-table tr {
        display: grid !important;
        grid-template-columns: 60px 1fr !important;
        gap: 10px 12px !important;
        background: #ffffff !important;
        border: 1px solid #e0c879 !important;
        border-radius: 8px !important;
        padding: 14px !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
    }

    .gold-products-table td.col-specs,
    .gold-products-table td[data-label="ID"] {
        display: none !important;
    }

    .gold-products-table td[data-label="Фото"] {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
        padding: 0 !important;
    }

    .gold-products-table td[data-label="Фото"] img,
    .gold-products-table td[data-label="Фото"] div {
        width: 60px !important;
        height: 60px !important;
    }

    .gold-products-table td[data-label="Модель"] {
        grid-column: 2 !important;
        grid-row: 1 !important;
        padding: 0 !important;
    }

    /* Позиционирование элементов на мобилке */
    .gold-products-table td[data-label="Описание"],
    .gold-products-table td[data-label="Вставки"],
    .gold-products-table td[data-label="Розничная цена"],
    .gold-products-table td[data-label="Статус"],
    .gold-products-table td[data-label="Действия"] {
        grid-column: 1 / span 2 !important;
        padding: 4px 0 !important;
        border-top: 1px dashed #eee !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .gold-products-table td[data-label="Вставки"]::before,
    .gold-products-table td[data-label="Описание"]::before,
    .gold-products-table td[data-label="Розничная цена"]::before,
    .gold-products-table td[data-label="Статус"]::before {
        content: attr(data-label);
        font-weight: 600;
        color: #888;
        font-size: 11px;
    }

    .gold-products-table td[data-label="Действия"] {
        justify-content: stretch !important;
        padding-top: 8px !important;
    }

    .gold-products-table td[data-label="Действия"] a {
        width: 100% !important;
        padding: 10px !important;
        font-size: 20px !important;
    }

    /* Адаптивность страницы редактирования описания */
    .admin-desc-page .card {
        padding: 15px !important;
    }

    .admin-desc-page .prod-header {
        gap: 10px !important;
    }

    .admin-desc-page .prod-header img {
        width: 50px !important;
        height: 50px !important;
    }

    .admin-desc-page textarea {
        font-size: 15px !important;
    }

    /* Адаптивность страницы импорта CSV */
    .admin-import-page .admin-container {
        margin: 15px auto !important;
        padding: 10px !important;
    }

    .admin-import-page .card {
        padding: 18px !important;
    }

    .admin-import-page .file-input-wrap {
        padding: 15px 10px !important;
    }

    .admin-import-page .btn-upload {
        padding: 14px 18px !important;
        font-size: 15px !important;
    }
}

/* ==========================================================================
   СТИЛИ ДЛЯ СТРАНИЦЫ ИЗБРАННОГО (ADMIN_WISHLIST.PHP)
   ========================================================================== */
.admin-wishlist-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-top: 20px;
    font-size: 13px;
}

.admin-wishlist-table thead tr {
    background-color: var(--bg-main);
    border-bottom: 2px solid var(--border-color);
    text-align: left;
}

.admin-wishlist-table th {
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.admin-wishlist-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-wishlist-table tr:hover {
    background-color: #fffdf5;
}

.customer-info-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.customer-name-title {
    font-weight: 600;
    color: var(--text-main);
}

.customer-sub-text {
    font-size: 11px;
    color: var(--text-muted);
}

.prod-thumb-wishlist {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.prod-no-photo-wishlist {
    width: 45px;
    height: 45px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #888;
    border-radius: 4px;
}

/* Адаптивность таблицы вишлиста на мобильных */
@media (max-width: 768px) {
    .admin-wishlist-table, 
    .admin-wishlist-table tbody, 
    .admin-wishlist-table tr, 
    .admin-wishlist-table td {
        display: block;
        width: 100%;
    }
    
    .admin-wishlist-table thead {
        display: none;
    }
    
    .admin-wishlist-table tr {
        margin-bottom: 15px;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }
    
    .admin-wishlist-table td {
        padding: 8px 0;
        border-bottom: 1px dashed var(--border-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .admin-wishlist-table td:last-child {
        border-bottom: none;
    }

    .admin-wishlist-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 11px;
        text-transform: uppercase;
    }

    /* Адаптивность для моб.версии серебрянных товаров */
    .silver-products-table {
        display: block !important;
        width: 100% !important;
    }
    .silver-products-table thead {
        display: none !important;
    }
    .silver-products-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    .silver-products-table tr {
        display: grid !important;
        grid-template-columns: 60px 1fr !important;
        gap: 8px 12px !important;
        background: #ffffff !important;
        border: 1px solid #c8e6c9 !important;
        border-radius: 8px !important;
        padding: 14px !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
    }
    .silver-products-table td.col-desktop-hide,
    .silver-products-table td[data-label="ID"] {
        display: none !important;
    }
    .silver-products-table td[data-label="Фото"] {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
        padding: 0 !important;
    }
    .silver-products-table td[data-label="Фото"] img,
    .silver-products-table td[data-label="Фото"] div {
        width: 60px !important;
        height: 60px !important;
    }
    .silver-products-table td[data-label="Модель"] {
        grid-column: 2 !important;
        grid-row: 1 !important;
        padding: 0 !important;
    }
    .silver-products-table td[data-label="Итоговая цена"],
    .silver-products-table td[data-label="Остаток"],
    .silver-products-table td[data-label="Статус"],
    .silver-products-table td[data-label="Действия"] {
        grid-column: 1 / span 2 !important;
        padding: 4px 0 !important;
        border-top: 1px dashed #eee !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .silver-products-table td[data-label="Итоговая цена"]::before,
    .silver-products-table td[data-label="Остаток"]::before,
    .silver-products-table td[data-label="Статус"]::before {
        content: attr(data-label);
        font-weight: 600;
        color: #888;
        font-size: 11px;
    }
    .silver-products-table td[data-label="Действия"] {
        justify-content: stretch !important;
        padding-top: 8px !important;
        gap: 10px;
    }
    .silver-products-table td[data-label="Действия"] a,
    .silver-products-table td[data-label="Действия"] button {
        flex: 1;
        padding: 8px !important;
        text-align: center;
    }
}

/* ==========================================================================
   КОМПАКТНЫЕ КВАДРАТНЫЕ КНОПКИ-ИКОНКИ С ПОДСВЕТКОЙ
   ========================================================================== */
.admin-icon-btn {
    width: 34px;
    height: 34px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* Подсветка при наведении для редактирования (голубоватая) */
.admin-icon-btn-edit:hover {
    border-color: #3b82f6;
    background: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Подсветка при наведении для удаления (красноватая) */
.admin-icon-btn-delete:hover {
    border-color: #dc3545;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* ==========================================================================
   АДАПТИВНАЯ ШАПКА СЕРЕБРЯНЫХ ТОВАРОВ И СИНЯЯ КНОПКА ДОБАВЛЕНИЯ
   ========================================================================== */
.admin-header-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f7ff; /* еле голубой фон */
    border: 1px solid #93c5fd; /* мягкая синяя рамочка */
    padding: 6px 14px 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.admin-header-add-btn:hover {
    border-color: #3b82f6;
    background: #e0f2fe;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    text-decoration: none;
}

.admin-add-icon-box {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.admin-add-text {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
}

.admin-header-add-btn:hover .admin-add-text {
    color: #1d4ed8;
}

/* Мобильная адаптация хедера на экранах до 768px */
@media (max-width: 768px) {
    .admin-silver-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .admin-silver-header h1 {
        font-size: 22px !important;
        margin: 0 !important;
        line-height: 1.3 !important;
    }
    .admin-header-add-btn {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
}