/*
Theme Name: Yummy Store
Theme URI: https://yummy-seo.com
Author: Yummy Team
Description: Тема для продажи Yummy SEO Pro
Version: 2.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.5;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
}

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

/* ============================================
   HEADER
   ============================================ */

.header {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: #e28c3c;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-menu a {
    text-decoration: none;
    color: #1d1d1f;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #e28c3c;
}

/* ============================================
   КНОПКИ
   ============================================ */

.btn {
    display: inline-block;
    background: #e28c3c;
    color: white;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #c2631b;
}

.btn-primary {
    background: #e28c3c;
    color: #fff;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #c2631b;
}

.btn-outline {
    background: transparent;
    color: #1d1d1f;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #e5e5e5;
    border-radius: 40px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: #e28c3c;
    color: #e28c3c;
}

.btn-large {
    padding: 16px 50px;
    font-size: 18px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: #1d1d1f;
    color: #86868b;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-col a {
    color: #86868b;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #e28c3c;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* ============================================
   ГЛАВНАЯ (ЛЕНДИНГ)
   ============================================ */

.hero {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #fefaf5 0%, #fff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: #e28c3c;
    color: #fff;
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 800;
    color: #1d1d1f;
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    color: #666;
    margin-bottom: 25px;
    max-width: 500px;
    line-height: 1.6;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.hero-features li {
    padding: 8px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.hero-features li:last-child {
    border-bottom: none;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.hero-image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f5f5f7, #e8e8ec);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
}

.hero-image-placeholder span {
    font-size: 80px;
}

.hero-image-placeholder p {
    font-size: 24px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 10px 0 0;
}

.hero-image-placeholder small {
    color: #999;
}

/* --- СЕКЦИИ --- */

.section-title {
    font-size: 38px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 18px;
    margin-bottom: 50px;
}

.compatibility {
    padding: 80px 0;
    background: #fafafc;
}

.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.compat-item {
    background: #fff;
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    transition: transform 0.2s;
}

.compat-item:hover {
    transform: translateY(-4px);
}

.compat-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.compat-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.compat-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.features-section {
    padding: 80px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    background: #f8f9fb;
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.feature-item:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
}

.feature-item h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.feature-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.schema-preview {
    padding: 80px 0;
    background: #fafafc;
}

.schema-card {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}

.schema-header {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.schema-badge {
    background: #f0f0f0;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.schema-badge:first-child {
    background: #e28c3c;
    color: #fff;
}

.schema-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.schema-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.schema-ingredients,
.schema-instructions {
    margin-bottom: 12px;
}

.schema-ingredients p,
.schema-instructions p {
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

.schema-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #888;
    flex-wrap: wrap;
}

/* --- ЦЕНА --- */

.pricing-section {
    padding: 80px 0 60px;
    background: #1d1d1f;
    overflow: visible;
}

.pricing-section .container {
    overflow: visible;
}

.pricing-card {
    max-width: 600px;
    margin: 40px auto 0;
    background: #fff;
    border-radius: 32px;
    padding: 70px 40px 40px;
    text-align: center;
    position: relative;
    overflow: visible;
}

.pricing-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: #e28c3c;
    color: #fff;
    padding: 8px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(226, 140, 60, 0.3);
    z-index: 10;
}

.pricing-card h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.pricing-price {
    margin-bottom: 25px;
}

.price-amount {
    font-size: 56px;
    font-weight: 800;
    color: #1d1d1f;
}

.price-currency {
    font-size: 24px;
    font-weight: 600;
    color: #666;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #333;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-note {
    margin-top: 15px;
    font-size: 13px;
    color: #999;
}

/* ============================================
   СТРАНИЦА ТОВАРА (single-product)
   ============================================ */

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: 24px;
    margin: 40px 0;
    overflow: hidden;
}

.product-gallery {
    text-align: center;
}

.product-gallery img {
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}

.product-info {
    word-break: break-word;
}

.product-price {
    font-size: 36px;
    color: #e28c3c;
    margin: 20px 0;
}

/* ============================================
   АРХИВ ТОВАРОВ
   ============================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.product-card h3 {
    margin: 15px 0 10px;
    font-size: 18px;
}

.product-card .price {
    font-size: 20px;
    color: #e28c3c;
    font-weight: bold;
    margin-bottom: 15px;
}

/* ============================================
   АВТОРИЗАЦИЯ
   ============================================ */

.auth-container {
    max-width: 500px;
    margin: 60px auto;
    background: white;
    border-radius: 24px;
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.auth-tab.active {
    color: #e28c3c;
    border-bottom: 2px solid #e28c3c;
}

.auth-form {
    display: none;
    padding: 30px;
}

.auth-form.active {
    display: block;
}

.auth-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}

.auth-btn {
    width: 100%;
    background: #e28c3c;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 12px;
    background: none;
    border: none;
    cursor: pointer;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ============================================
   ЛИЧНЫЙ КАБИНЕТ
   ============================================ */

.cabinet-header {
    text-align: center;
    margin: 40px 0;
}

.cabinet-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.stat-card {
    background: white;
    padding: 20px 40px;
    border-radius: 16px;
    text-align: center;
}

.stat-number {
    font-size: 36px;
    color: #e28c3c;
}

.license-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    word-break: break-word;
}

.license-card code {
    display: block;
    word-break: break-all;
}

/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */

.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.payment-modal-content {
    background: white;
    border-radius: 32px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #e28c3c;
}

.payment-modal-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #1d1d1f;
    text-align: center;
}

.payment-modal-content .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.payment-modal-content .form-group {
    margin-bottom: 20px;
}

.payment-modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1d1d1f;
}

.payment-modal-content .yummy-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    font-size: 16px;
    transition: border 0.2s;
}

.payment-modal-content .yummy-input:focus {
    outline: none;
    border-color: #e28c3c;
}

.payment-modal-content .amount-display {
    background: #f5f5f7;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #e28c3c;
    text-align: center;
}

.payment-modal-content .btn-submit {
    width: 100%;
    background: #e28c3c;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.payment-modal-content .btn-submit:hover {
    background: #c2631b;
}

.payment-modal-content .btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.payment-modal-content .result-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 16px;
    text-align: center;
}

.payment-modal-content .result-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.payment-modal-content .result-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.payment-modal-content .close-result-btn {
    background: #e28c3c;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    cursor: pointer;
    margin-top: 15px;
}

/* ============================================
   КАРТОЧКА ТОВАРА НА ГЛАВНОЙ
   ============================================ */

.featured-product {
    max-width: 800px;
    margin: 40px auto;
    overflow-x: hidden;
}

.featured-product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.featured-product-image {
    text-align: center;
    background: #f5f5f7;
    padding: 30px;
}

.featured-product-image img {
    max-width: 100%;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.featured-product-content {
    padding: 30px;
    text-align: center;
    word-break: break-word;
}

.featured-product-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    word-break: break-word;
}

.featured-product-price {
    font-size: 32px;
    color: #e28c3c;
    font-weight: bold;
    margin-bottom: 20px;
}

.featured-product-desc {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.no-image {
    color: #999;
    font-size: 14px;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-features {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 36px;
    }
    .hero-subtitle {
        font-size: 17px;
    }
    .section-title {
        font-size: 28px;
    }
    .compatibility-grid {
        grid-template-columns: 1fr 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    .pricing-card {
        padding: 60px 20px 30px;
        margin-top: 30px;
    }
    .pricing-badge {
        font-size: 12px;
        padding: 6px 20px;
        top: -14px;
    }
    .price-amount {
        font-size: 42px;
    }
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        margin: 20px 0;
    }
    .product-gallery img {
        max-height: 250px;
    }
    .product-price {
        font-size: 28px;
    }
    .featured-product {
        margin: 20px 15px;
    }
    .featured-product-image {
        padding: 15px;
    }
    .featured-product-image img {
        max-height: 180px;
    }
    .featured-product-content {
        padding: 20px;
    }
    .featured-product-content h2 {
        font-size: 22px;
    }
    .featured-product-price {
        font-size: 26px;
    }
    .hero {
        padding: 40px 0 60px;
    }
}

@media (max-width: 480px) {
    .compatibility-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .pricing-card {
        padding: 50px 16px 25px;
        margin-top: 20px;
    }
    .pricing-badge {
        font-size: 11px;
        padding: 4px 16px;
        top: -12px;
    }
}

/* ============================================
   СТРАНИЦА ДОБАВЛЕНИЯ ТОВАРА
   ============================================ */

.admin-add-product {
    max-width: 1000px;
    margin: 40px auto;
}

.product-preview {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 24px;
    margin-bottom: 40px;
    border: 1px solid #e5e5e5;
}

.preview-card {
    display: flex;
    gap: 30px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.preview-image {
    width: 200px;
    height: 200px;
    background: #f0f0f0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.preview-image .no-image {
    color: #999;
    font-size: 14px;
}

.preview-info {
    flex: 1;
}

.preview-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.preview-price {
    font-size: 28px;
    color: #e28c3c;
    font-weight: bold;
    margin-bottom: 15px;
}

.preview-features ul {
    margin: 15px 0;
    padding-left: 20px;
}

.preview-features li {
    margin: 8px 0;
}

.preview-buy {
    background: #e28c3c;
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
}

.product-form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid #e5e5e5;
}

.product-form-wrapper h2 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
}

.yummy-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
}

textarea.yummy-input {
    resize: vertical;
    font-family: monospace;
}

.photo-upload {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
}

.photo-upload:hover {
    border-color: #e28c3c;
}

.photo-preview {
    margin-top: 15px;
}

.photo-preview img {
    max-width: 200px;
    border-radius: 12px;
}

.current-photo {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.remove-photo-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #e28c3c;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-view {
    background: #6c757d;
    color: white;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary,
.btn-view {
    padding: 12px 30px;
    border-radius: 40px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
}

/* ============================================
   МЕТА-БОКС ТОВАРА В АДМИНКЕ
   ============================================ */

.yummy-product-metabox label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.yummy-product-metabox textarea,
.yummy-product-metabox input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    margin-bottom: 5px;
}

.yummy-product-metabox textarea:focus,
.yummy-product-metabox input:focus {
    border-color: #e28c3c;
    box-shadow: 0 0 0 2px rgba(226, 140, 60, 0.1);
}

.yummy-product-metabox .description {
    color: #999;
    font-size: 13px;
}

/* ============================================
   СТРАНИЦА ТОВАРА (КАРТИНКА ПО ЦЕНТРУ)
   ============================================ */

.product-page-single {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.product-single-gallery {
    text-align: center;
    margin-bottom: 30px;
}

.product-single-image {
    display: inline-block;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: #f5f5f7;
}

.product-single-image img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    display: block;
}

.product-single-image-placeholder {
    display: inline-block;
    padding: 60px 80px;
    background: #f5f5f7;
    border-radius: 16px;
    border: 2px dashed #ddd;
}

.product-single-image-placeholder span {
    font-size: 80px;
}

.product-single-image-placeholder p {
    color: #999;
    margin-top: 10px;
}

.product-single-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.product-single-title {
    font-size: 36px;
    font-weight: 800;
    color: #1d1d1f;
    margin-bottom: 15px;
}

.product-single-price {
    font-size: 38px;
    font-weight: 800;
    color: #e28c3c;
    margin-bottom: 20px;
}

.product-single-description {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    text-align: left;
    margin-bottom: 30px;
}

.product-single-description h2 {
    font-size: 26px;
    margin: 30px 0 15px;
    color: #1d1d1f;
}

.product-single-description h3 {
    font-size: 20px;
    margin: 25px 0 12px;
    color: #1d1d1f;
}

.product-single-description ul {
    margin: 15px 0 15px 25px;
}

.product-single-description ul li {
    margin-bottom: 8px;
}

.product-single-description p {
    margin-bottom: 16px;
}

/* ============================================
   АДАПТИВ
   ============================================ */

@media (max-width: 768px) {
    .product-single-title {
        font-size: 28px;
    }
    .product-single-price {
        font-size: 30px;
    }
    .product-single-image-placeholder {
        padding: 40px 30px;
    }
    .product-single-image-placeholder span {
        font-size: 50px;
    }
}

@media (max-width: 480px) {
    .product-single-title {
        font-size: 24px;
    }
    .product-single-price {
        font-size: 26px;
    }
    .product-single-description {
        font-size: 15px;
    }
    .product-single-description h2 {
        font-size: 22px;
    }
    .product-single-description h3 {
        font-size: 18px;
    }
}

/* ============================================
   СТРАНИЦА ДОБАВЛЕНИЯ ОБРАЩЕНИЯ
   ============================================ */

.add-ticket-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.add-ticket-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.add-ticket-header p {
    color: #666;
    margin-bottom: 30px;
}

.add-ticket-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-weight: 600;
    font-size: 15px;
}

.form-field label span {
    color: #e28c3c;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
}

.form-field textarea {
    resize: vertical;
    min-height: 150px;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: #e28c3c;
}

.field-hint {
    color: #999;
    font-size: 13px;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-submit {
    background: #e28c3c;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
}

.btn-submit:hover {
    background: #c2631b;
}

.btn-cancel {
    background: #f0e2d4;
    color: #5e4b34;
    border: none;
    padding: 14px 30px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    flex: 1;
}

.btn-cancel:hover {
    background: #e0d0c0;
}

.ticket-result-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid #28a745;
}

.ticket-result-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid #dc3545;
}

/* ============================================
   СТРАНИЦА ТИКЕТА (SINGLE-TICKET)
   ============================================ */

.ticket-single {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.ticket-single-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.ticket-back-link {
    color: #e28c3c;
    text-decoration: none;
}

.ticket-back-link:hover {
    text-decoration: underline;
}

.ticket-single-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ticket-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    background: #f0f0f0;
}

.ticket-status-new {
    background: #d4edda;
    color: #155724;
}

.ticket-status-in_progress {
    background: #fff3cd;
    color: #856404;
}

.ticket-status-closed {
    background: #f8d7da;
    color: #721c24;
}

.ticket-priority-low {
    background: #d4edda;
    color: #155724;
}

.ticket-priority-medium {
    background: #fff3cd;
    color: #856404;
}

.ticket-priority-high {
    background: #f8d7da;
    color: #721c24;
}

.ticket-single-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.ticket-single-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.ticket-single-content {
    background: #f8f9fb;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 16px;
}

/* ОТВЕТЫ */
.ticket-replies {
    margin-top: 30px;
}

.ticket-replies h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.ticket-reply {
    background: white;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #eee;
    margin-bottom: 15px;
}

.ticket-reply-admin {
    border-left: 4px solid #e28c3c;
}

.ticket-reply-user {
    border-left: 4px solid #6c757d;
}

.ticket-reply-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.ticket-reply-date {
    font-size: 12px;
    color: #999;
}

.ticket-reply-text {
    color: #333;
    line-height: 1.6;
}

.ticket-no-replies {
    color: #999;
    padding: 20px 0;
}

/* ФОРМА ОТВЕТА */
.ticket-reply-form-wrapper {
    background: white;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #eee;
    margin-top: 30px;
}

.ticket-reply-form-wrapper h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.ticket-reply-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
}

.ticket-reply-textarea:focus {
    outline: none;
    border-color: #e28c3c;
}

.ticket-reply-controls {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.ticket-status-select {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: white;
}

.ticket-status-select:focus {
    outline: none;
    border-color: #e28c3c;
}

/* ============================================
   АДАПТИВ
   ============================================ */

@media (max-width: 768px) {
    .add-ticket-page {
        padding: 15px;
        margin: 20px auto;
    }
    
    .add-ticket-header h1 {
        font-size: 24px;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .ticket-single-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ticket-reply-controls {
        flex-direction: column;
    }
    
    .ticket-status-select {
        width: 100%;
    }
}

/* ============================================
   ЛИЧНЫЙ КАБИНЕТ (ВКЛАДКИ, ТИКЕТЫ, ЛИЦЕНЗИИ)
   ============================================ */

/* --- ШАПКА КАБИНЕТА --- */

.cabinet-header {
    text-align: center;
    margin: 40px 0 20px;
}

.cabinet-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.cabinet-header p {
    color: #666;
    font-size: 16px;
}

.cabinet-header .btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

/* --- СТАТИСТИКА --- */

.cabinet-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.stat-card {
    background: white;
    padding: 20px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #eee;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #e28c3c;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

/* --- ВКЛАДКИ --- */

.profile-tabs {
    display: flex;
    gap: 10px;
    margin: 30px 0 25px;
    border-bottom: 2px solid #f0e2d4;
    flex-wrap: wrap;
}

.profile-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #6b5a48;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.profile-tab:hover {
    color: #e28c3c;
}

.profile-tab.active {
    color: #e28c3c;
    border-bottom-color: #e28c3c;
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}

.profile-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    background: #fefaf5;
    border-radius: 24px;
    font-size: 16px;
}

/* --- ЛИЦЕНЗИИ --- */

.license-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #eee;
    margin-bottom: 15px;
    word-break: break-word;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.license-card code {
    display: block;
    word-break: break-all;
    font-size: 16px;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-family: monospace;
}

.license-card p {
    margin: 5px 0;
    color: #333;
}

/* --- ТИКЕТЫ (ОБРАЩЕНИЯ) --- */

.ticket-item {
    background: white;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s;
    margin-bottom: 15px;
}

.ticket-item:hover {
    border-color: #e28c3c;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ticket-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.ticket-item-title {
    font-size: 18px;
    margin: 0;
}

.ticket-item-title a {
    text-decoration: none;
    color: #1d1d1f;
}

.ticket-item-title a:hover {
    color: #e28c3c;
}

.ticket-item-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ticket-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-new {
    background: #d4edda;
    color: #155724;
}

.status-progress {
    background: #fff3cd;
    color: #856404;
}

.status-closed {
    background: #f8d7da;
    color: #721c24;
}

.ticket-priority-low {
    background: #d4edda;
    color: #155724;
}

.ticket-priority-medium {
    background: #fff3cd;
    color: #856404;
}

.ticket-priority-high {
    background: #f8d7da;
    color: #721c24;
}

.ticket-item-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.ticket-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ticket-item-date {
    color: #999;
    font-size: 13px;
}

.ticket-item-btn {
    padding: 6px 16px;
    font-size: 13px;
    background: #e28c3c;
    color: white;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.ticket-item-btn:hover {
    background: #c2631b;
}

/* --- КНОПКА ВЫЙТИ --- */

.cabinet-logout {
    display: inline-block;
    margin-top: 30px;
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
}

.cabinet-logout:hover {
    text-decoration: underline;
}

/* --- АДАПТИВ --- */

@media (max-width: 768px) {
    .cabinet-header h1 {
        font-size: 26px;
    }
    
    .cabinet-header .btn {
        font-size: 14px;
        padding: 10px 18px;
    }
    
    .profile-tabs {
        gap: 5px;
    }
    
    .profile-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .ticket-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stat-card {
        padding: 15px 25px;
    }
    
    .stat-number {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .cabinet-header h1 {
        font-size: 22px;
    }
    
    .profile-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .ticket-item {
        padding: 15px;
    }
    
    .ticket-item-title {
        font-size: 16px;
    }
    
    .ticket-badge {
        font-size: 11px;
        padding: 3px 10px;
    }
}

/* ============================================
   ФОРУМ
   ============================================ */

/* --- АРХИВ --- */

.forum-archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 40px 0 30px;
}

.forum-archive-title {
    font-size: 32px;
    margin: 0;
}

.forum-create-btn {
    background: #17a2b8;
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.forum-create-btn:hover {
    background: #138496;
}

.forum-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.forum-cat-link {
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: #6c757d;
    color: white;
    transition: background 0.2s;
}

.forum-cat-link:hover {
    background: #5a6268;
}

.forum-cat-all {
    background: #e28c3c;
}

.forum-cat-all:hover {
    background: #c2631b;
}

.forum-topics-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.forum-topic-item {
    background: white;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s;
}

.forum-topic-item:hover {
    border-color: #e28c3c;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.forum-topic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.forum-topic-title {
    font-size: 18px;
    margin: 0;
}

.forum-topic-title a {
    text-decoration: none;
    color: #1d1d1f;
}

.forum-topic-title a:hover {
    color: #e28c3c;
}

.forum-topic-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.forum-topic-status {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-open {
    background: #d4edda;
    color: #155724;
}

.status-closed {
    background: #f8d7da;
    color: #721c24;
}

.status-resolved {
    background: #cce5ff;
    color: #004085;
}

.forum-topic-replies {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    background: #f0f0f0;
    color: #333;
}

.forum-topic-meta {
    color: #666;
    font-size: 14px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.forum-topic-cat {
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.forum-topic-author-badge {
    background: #e28c3c;
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.forum-empty {
    text-align: center;
    padding: 40px;
    color: #999;
    background: #f8f9fb;
    border-radius: 16px;
}

/* --- СТРАНИЦА ТЕМЫ --- */

.forum-topic-single-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.forum-topic-single-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.forum-back-link {
    color: #e28c3c;
    text-decoration: none;
}

.forum-back-link:hover {
    text-decoration: underline;
}

.forum-topic-single-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.forum-topic-single-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.forum-topic-single-content {
    background: #f8f9fb;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 16px;
}

/* --- УПРАВЛЕНИЕ СТАТУСОМ --- */

.forum-topic-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0 25px;
    padding: 15px 20px;
    background: #f8f9fb;
    border-radius: 12px;
}

.forum-status-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.forum-status-label {
    font-weight: 600;
    color: #333;
}

.forum-status-btn {
    border: none;
    cursor: pointer;
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.forum-status-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.forum-status-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* --- ОТВЕТЫ --- */

.forum-replies {
    margin-top: 30px;
}

.forum-replies h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.forum-reply {
    background: white;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #eee;
    margin-bottom: 15px;
}

.forum-reply-admin {
    border-left: 4px solid #e28c3c;
    background: #fefaf5;
}

.forum-reply-author {
    border-left: 4px solid #17a2b8;
}

.forum-reply-author .forum-reply-author strong {
    display: flex;
    align-items: center;
    gap: 8px;
}

.forum-reply-badge {
    background: #17a2b8;
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.forum-reply-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.forum-reply-date {
    font-size: 12px;
    color: #999;
}

.forum-reply-text {
    color: #333;
    line-height: 1.6;
}

.forum-no-replies {
    color: #999;
    padding: 20px 0;
}

/* --- ФОРМА ОТВЕТА --- */

.forum-reply-form-wrapper {
    background: white;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #eee;
    margin-top: 30px;
}

.forum-reply-form-wrapper h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.forum-reply-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
}

.forum-reply-textarea:focus {
    outline: none;
    border-color: #e28c3c;
}

.forum-reply-submit-btn {
    background: #e28c3c;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.forum-reply-submit-btn:hover {
    background: #c2631b;
}

.forum-closed-message {
    background: #f8f9fb;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    color: #666;
    margin-top: 30px;
}

.forum-login-required {
    background: #f8f9fb;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    margin-top: 30px;
}

.forum-login-required a {
    color: #e28c3c;
}

.ticket-result-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid #28a745;
    margin-top: 15px;
}

.ticket-result-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid #dc3545;
    margin-top: 15px;
}

/* --- АДАПТИВ --- */

@media (max-width: 768px) {
    .forum-archive-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .forum-archive-title {
        font-size: 26px;
        text-align: center;
    }
    
    .forum-create-btn {
        text-align: center;
    }
    
    .forum-topic-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .forum-topic-single-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .forum-topic-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .forum-status-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .forum-status-btn {
        width: 100%;
        text-align: center;
    }
    
    .forum-reply-author {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .forum-archive-title {
        font-size: 22px;
    }
    
    .forum-categories {
        justify-content: center;
    }
    
    .forum-cat-link {
        font-size: 12px;
        padding: 6px 14px;
    }
    
    .forum-topic-title {
        font-size: 16px;
    }
    
    .forum-topic-single-title {
        font-size: 22px;
    }
}

/* ============================================
   ФОРУМ — КАРТОЧКА ТЕМЫ (СЕТКА)
   ============================================ */

.forum-topic-item {
    background: white;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #eee;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s;
}

.forum-topic-item:hover {
    border-color: #e28c3c;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.forum-topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.forum-topic-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.forum-topic-title a {
    text-decoration: none;
    color: #1d1d1f;
}

.forum-topic-title a:hover {
    color: #e28c3c;
}

.forum-topic-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.forum-topic-status {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-open {
    background: #d4edda;
    color: #155724;
}

.status-closed {
    background: #f8d7da;
    color: #721c24;
}

.status-resolved {
    background: #cce5ff;
    color: #004085;
}

.forum-topic-replies {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    background: #f0f0f0;
    color: #333;
}

.forum-topic-meta {
    color: #666;
    font-size: 13px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 6px;
}

.forum-topic-cat {
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.forum-topic-author-badge {
    background: #e28c3c;
    color: white;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
}

/* ============================================
   СТРАНИЦА ДОБАВЛЕНИЯ ТОВАРА
   ============================================ */

.add-product-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.add-product-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.add-product-header p {
    color: #666;
    margin-bottom: 30px;
}

.add-product-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-weight: 600;
    font-size: 15px;
}

.form-field label span {
    color: #e28c3c;
}

.yummy-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
}

.yummy-input:focus {
    outline: none;
    border-color: #e28c3c;
}

textarea.yummy-input {
    resize: vertical;
    font-family: inherit;
}

.form-row {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 15px;
}

.photo-upload {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: 0.2s;
}

.photo-upload:hover {
    border-color: #e28c3c;
    background: #fefaf5;
}

.photo-preview {
    margin-top: 15px;
}

.photo-preview img {
    max-width: 200px;
    border-radius: 12px;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-submit {
    background: #e28c3c;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    flex: 1;
}

.btn-submit:hover {
    background: #c2631b;
}

.btn-cancel {
    background: #f0e2d4;
    color: #5e4b34;
    border: none;
    padding: 14px 30px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: 0.2s;
    flex: 1;
}

.btn-cancel:hover {
    background: #e0d0c0;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.success-message a {
    color: #155724;
    text-decoration: underline;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
}

@media (max-width: 550px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-buttons {
        flex-direction: column;
    }
}