/* Services Widget Styles */

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


.main-menu {
    z-index: 4;
    background: #212121 !important;
    border-bottom: none !important;
    padding: 0 20px;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    min-height: 50px;
    height: 50px;
  }

/* Навигация по меню (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;
    }
}

/* ========== Demo theme: меню карточками с картинкой блюда ========== */
/* Без overflow — иначе создаётся внутренний скролл и страница не скроллится */
#services-container {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.svc-gallery {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Навигация по группам меню: липкая под второй полосой; на десктопе не обрезать сверху */
.svc-menu-nav {
    position: sticky;
    /* Первое меню 50px + вторая полоса ~40px; запас сверху чтобы не обрезало */
    top: 50px;
    z-index: 5;
    background: #fff;
    padding: 12px 0 10px;
    margin-top: 0;
    margin-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

@media (min-width: 901px) {
    .svc-menu-nav {
        top: 50px;
        padding-top: 14px;
    }
}

.svc-menu-nav-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
    width: 100%;
}

.svc-menu-nav-row::-webkit-scrollbar {
    height: 6px;
}

.svc-menu-nav-row::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.svc-menu-nav-chip {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    user-select: none;
    -webkit-appearance: none;
    appearance: none;
}

.svc-menu-nav-chip:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.svc-menu-nav-chip.active {
    background: #8d1a1a;
    border-color: #8d1a1a;
    color: #fff;
}

.svc-group {
    margin-top: 28px;
    margin-bottom: 28px;
    scroll-margin-top: 70px;
}

.svc-group:first-child {
    margin-top: 0;
}

.svc-group-title {
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #222;
    border-bottom: 1px solid #e0e0e0;
}

.svc-group-descr {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 0.95rem;
}

.svc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: start;
}

.svc-grid > * {
    min-width: 0;
}

.svc-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.svc-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.svc-card.with-image .svc-img-wrap {
    position: relative;
    height: 140px;
    min-width: 140px;
    max-width: 180px;
    flex-shrink: 0;
    background: #f5f5f5;
}

.svc-card.no-image {
    flex-direction: column;
    max-width: 100%;
    box-sizing: border-box;
}

.svc-card.no-image .svc-body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.svc-card.no-image .svc-price-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.svc-img-wrap {
    position: relative;
    overflow: hidden;
}

.svc-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.svc-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    min-width: 0;
    flex: 1;
}

.svc-title {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.svc-original {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

.svc-descr {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.svc-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
    min-width: 0;
}

.svc-price-row .svc-price {
    min-width: 0;
}

.svc-price {
    font-weight: 700;
    display: flex;
    gap: 8px;
    align-items: baseline;
    flex-wrap: wrap;
}

.svc-price-main {
    font-size: 1rem;
    color: #1a1a1a;
}

.svc-price-sep {
    color: #94a3b8;
    font-size: 0.75rem;
}

.svc-price-original-inline {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.svc-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.svc-option-line {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

.svc-option-line .svc-price-original {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.svc-card .svc-add-to-cart {
    background: #8d1a1a;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.svc-card .svc-add-to-cart:hover {
    background: #a82020;
}

.svc-subgroup {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #eee;
}

.svc-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #333;
}

.svc-subdescr {
    color: #666;
    margin: 0 0 8px 0;
    font-size: 0.9rem;
}

@media (max-width: 560px) {
    .svc-grid {
        grid-template-columns: 1fr;
    }

    .svc-card.with-image .svc-img-wrap {
        height: 100px;
        min-width: 100px;
        max-width: 120px;
    }
}

/* Адаптивность */
@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;
    }
}

/* Сделано в Listim.com (внизу страницы меню) */
.listim-credit {
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    text-align: center;
}
.listim-credit-line {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0 0 0.75rem 0;
}
.listim-credit-link {
    color: #6b7280;
    text-decoration: none;
}
.listim-credit-link:hover {
    color: #4b5563;
    text-decoration: none;
} 