/* Services Widget Styles */

body {
    margin: 0;
    padding: 0;
    background: #fff;
}

/* Навигация по меню (sticky) */
.menu-nav {
  
 
  background: #fff;
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 8px;
  position: sticky;
  top: 49px;
  z-index: 10;
}
.menu-business-title{font-family:Georgia,'Times New Roman',serif;font-size:40px;font-weight:600;letter-spacing:.01em;margin:14px 8px 8px}
.menu-nav-row{display:flex;gap:8px;flex-wrap:nowrap;overflow-x:auto;padding:5px 0 16px 0;scroll-behavior:smooth; }
.menu-nav-row:empty{display:none; }
.menu-chip{
    padding:6px 10px;
    border:1px solid #e5e7eb;
    border-radius:10px;
    white-space:nowrap;
    cursor:pointer;
    color:#334155;
    background:#fff
}
.menu-chip.active{
    background:#8e8e8e;
    color:#fff;
    border-color:#8e8e8e;
}

.services-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Заголовок виджета */
.services-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.services-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.services-subtitle {
    font-size: 1.1em;
    color: #7f8c8d;
    margin: 0;
}

/* Группы услуг */
.service-group {
    margin-bottom: 10px;
    padding: 20px 20px;
}

.group-title {
    font-size: 1.8em;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
}

.group-description {
    color: #666;
    font-size: 1em;
    margin-bottom: 0;
    line-height: 1.5;
}

.group-services {
    display: block;
}

/* Подгруппы */
.service-subgroup {
    margin-top: 30px;
    padding: 15px 0;
}

.subgroup-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #444;
    margin: 0 0 8px 0;
}

.subgroup-description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    line-height: 1.4;
}

.subgroup-services {
    display: block;
}

/* Отдельные услуги */
.menu-item {
    margin-bottom: 5px;
    padding: 15px 0;
}

.menu-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.menu-content {
    flex: 1;
}

.menu-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.menu-name {
    font-size: 1.3em;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.menu-dots {
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        #ccc 0,
        #ccc 3px,
        transparent 3px,
        transparent 6px
    );
    margin: 0 10px;
}

.menu-price {
    text-align: right;
    width: fit-content;
}

.menu-price-main {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0;
}

.menu-price-original {
    font-size: 1em;
    color: #999;
    margin: 2px 0 0 0;
}

.menu-options {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0 0 0;
    line-height: 1.4;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
}

.menu-meta {
    font-size: 1.1em;
    color: #999;
    font-style: italic;
    margin: 3px 0;
}

.menu-descr {
    font-size: 1.1em;
    color: #666;
    margin: 5px 0 0 0;
    line-height: 1.4;
}

.svc-add-to-cart {
    background: #c62828;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -5px;
    
    margin-left: 5px;
    font-size: 1.2em;
    font-weight: bold;
}

.add-to-cart-icon {
    line-height: 1;
}

/* Состояния */
.services-empty, .services-error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.services-error {
    background: #fff5f5;
    color: #dc3545;
    border: 1px solid #fecaca;
}

/* Лоадер */
.services-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-icon, .error-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-title, .error-title {
    font-size: 1.5em;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.empty-description, .error-description {
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
}

.error-title {
    color: #e74c3c;
}

/* Уведомления */
.add-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .services-widget {
        padding: 15px;
        margin: 10px;
    }
    
    .services-title {
        font-size: 2em;
    }
    
    .group-title {
        font-size: 1.5em;
    }
    
    .group-services {
        grid-template-columns: 1fr;
    }
    
    .subgroup-services {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {

    .menu-row {
    
        gap: 5px;
    }

    .menu-dots {
        display: none;
    }
    .services-widget {
        padding: 10px;
        margin: 5px;
    }
    
    .services-title {
        font-size: 1.8em;
    }
    
    .service-group {
        padding: 15px;
    }
    
    .service-subgroup {
        padding: 15px;
    }
    
    .service-item {
        padding: 12px;
    }
    
    .service-name {
        font-size: 1.1em;
    }
    
    .service-price {
        font-size: 1.2em;
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .services-widget {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .services-title {
        color: #ecf0f1;
    }
    
    .services-subtitle {
        color: #bdc3c7;
    }
    
    .service-group {
        background: #34495e;
        border-color: #4a5f7a;
    }
    
    .group-title {
        color: #ecf0f1;
        border-bottom-color: #3498db;
    }
    
    .group-description {
        color: #bdc3c7;
    }
    
    .service-subgroup {
        background: #34495e;
        border-color: #4a5f7a;
    }
    
    .subgroup-title {
        color: #ecf0f1;
    }
    
    .subgroup-description {
        color: #bdc3c7;
    }
    
    .service-item {
        background: #34495e;
        border-color: #4a5f7a;
    }
    
    .service-item:hover {
        border-color: #3498db;
    }
    
    .service-item.expanded {
        background: #2c3e50;
    }
    
    .service-name {
        color: #ecf0f1;
    }
    
    .service-description {
        color: #bdc3c7;
    }
    
    .service-price {
        color: #2ecc71;
    }
    
    .empty-title, .error-title {
        color: #ecf0f1;
    }
    
    .empty-description, .error-description {
        color: #bdc3c7;
    }
} 