/* Современная шапка - основные стили */
.modern-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 0.125rem 1.25rem rgba(0, 0, 0, 0.08);
    border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.05);
}

/* Верхняя линия */
.header-top {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.875rem;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.top-nav {
    display: flex;
    gap: 1.5rem;
}

.top-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.top-nav .nav-link:hover {
    color: white;
    /* transform: translateY(-0.0625rem); */
}

.top-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 0;
    /* height: 0.125rem; */
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

.top-nav .nav-link:hover::after {
    width: 100%;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.work-hours,
.fast-service,
.header-telegramm a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.8125rem;
}

.work-hours i,
.fast-service i,
.header-telegramm a i {
    font-size: 0.875rem;
    opacity: 0.8;
}

.header-telegramm a:hover {
    color: rgba(255, 255, 255, 0.6);
}

.fast-service {
    color: #ffd700;
    font-weight: 600;
}

.fast-service i {
    color: #ffd700;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.contact-info {
    display: flex;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.8125rem;
}

.contact-item:hover {
    color: white;
    transform: translateY(-0.0625rem);
}

.contact-item i {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Основная линия шапки */
.header-main {
    background: white;
    padding: 1rem 0;
}

.header-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Логотип */
.logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.75rem;
    font-weight: 800;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.logo-link:hover {
    /* transform: scale(1.05); */
}

.logo-text {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; */
}

.logo-dot {
    color: #667eea;
    margin-left: 0.125rem;
}

/* Секция поиска */
.search-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    max-width: 50rem;
    height: 3rem;
}

/* Информационные блоки */
.header-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0 1.5rem;

    display: none;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 0.5rem;
    border: 0.0625rem solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-0.0625rem);
}

.info-item i {
    font-size: 1rem;
    color: #667eea;
    flex-shrink: 0;
}

.info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.2;
    white-space: nowrap;
}

.info-subtitle {
    font-size: 0.6875rem;
    color: #667eea;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.catalog-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0 1.25rem;
    height: 3rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.25rem 0.9375rem rgba(102, 126, 234, 0.3);
    white-space: nowrap;
}

.catalog-btn:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.375rem 1.25rem rgba(102, 126, 234, 0.4);
}

.catalog-btn:active {
    transform: translateY(0);
}

.catalog-arrow {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.search-container {
    position: relative;
    flex: 1;
    height: 3rem;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 0.75rem;
    border: 0.125rem solid transparent;
    transition: all 0.3s ease;
    height: 100%;
    padding: 0 1.25rem;
    border: 0.0625rem solid #cccccc;
}

.search-form:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: #95a5a6;
    transition: color 0.3s ease;
}

.search-form:focus-within .search-icon {
    color: #667eea;
}

.search-icon i {
    font-size: 1rem;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    outline: none;
    color: #2c3e50;
    height: 100%;
}

.search-input::placeholder {
    color: #95a5a6;
}

/* Убираем стандартный значок "x" в поле поиска */
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.search-input::-ms-clear {
    display: none;
}

/* Результаты поиска */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.12);
    border: 0.0625rem solid rgba(0, 0, 0, 0.08);
    max-height: 32.5rem;
    overflow: hidden;
    z-index: 1000;
    margin-top: 0.5rem;
    backdrop-filter: blur(0.625rem);
}

.search-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.0625rem;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.search-section-title {
    padding: 1rem 1.25rem 0.5rem;
    font-weight: 700;
    color: #667eea;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-results-content {
    max-height: 28.125rem;
    overflow-y: auto;
    padding-bottom: 0.5rem;
}

.search-results-content::-webkit-scrollbar {
    width: 0.25rem;
}

.search-results-content::-webkit-scrollbar-track {
    background: transparent;
}

.search-results-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 0.125rem;
}

.search-results-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: #2c3e50;
    text-decoration: none;
    border-left: 0.1875rem solid transparent;
    /* transition: all 0.3s ease; */
    border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.search-result-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(102, 126, 234, 0.02) 100%);
    /* transform: translateX(0.25rem); */
    border-left: 0.1875rem solid #667eea;
    /* padding-left: 1.0625rem; */
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item.product-item {
    padding: 1rem 1.25rem;
    gap: 1rem;
    min-height: 5rem;
    align-items: flex-start;
    border-left: 0.1875rem solid transparent;
}

.search-result-item.product-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(102, 126, 234, 0.03) 100%);
    box-shadow: 0 0.25rem 1.25rem rgba(102, 126, 234, 0.1);
    /* border-radius: 0.5rem; */
    /* margin: 0 0.5rem; */
    /* padding-left: 1.25rem; */
    /* transform: translateY(-0.0625rem); */
    border-left: 0.1875rem solid #667eea;
}

.search-result-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(102, 126, 234, 0.05) 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-result-icon i {
    color: #667eea;
    font-size: 0.875rem;
}

.search-result-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.125rem 0;
}

.search-result-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 0.125rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
}

.search-result-subtitle {
    font-size: 0.75rem;
    color: #95a5a6;
    line-height: 1.2;
}

.search-result-image {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
    border: 0.0625rem solid rgba(0, 0, 0, 0.08);
    background: #f8f9fa;
    margin-top: 0.125rem;
}

.search-result-price {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #28a745;
    margin-left: auto;
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
    margin-top: 0.125rem;
}

.search-no-results {
    padding: 2.5rem 1.25rem;
    text-align: center;
    color: #95a5a6;
}

.search-no-results i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.search-no-results h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.search-no-results p {
    font-size: 0.875rem;
    line-height: 1.4;
}

.search-view-all {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 0.0625rem solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.search-view-all a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.search-view-all a:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-0.0625rem);
}

/* Действия в шапке */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Пользователь */
.user-section {
    position: relative;
    box-shadow: 0 0.25rem 0.9375rem rgba(102, 126, 234, 0.3);
    border-radius: 15px;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #ffffff;
    color: #667eea;
    text-decoration: none;
    padding: 0 1.25rem;
    height: 3rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 0.125rem solid #667eea;
    min-width: 6.25rem;
}

.login-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-0.0625rem);
    box-shadow: 0 0.25rem 0.9375rem rgba(102, 126, 234, 0.3);
}

.user-menu {
    position: relative;
    height: 3rem;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0 1rem;
    background: #ffffff;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 0.125rem solid #e9ecef;
    height: 3rem;
    min-width: 8.75rem;
}

.user-trigger:hover {
    border-color: #667eea;
    box-shadow: 0 0.125rem 0.625rem rgba(102, 126, 234, 0.1);
}

.user-avatar {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.8125rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.user-role {
    font-size: 0.6875rem;
    color: #95a5a6;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.user-arrow {
    font-size: 0.625rem;
    color: #95a5a6;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.user-trigger:hover .user-arrow {
    transform: rotate(180deg);
}

/* Dropdown пользователя */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.15);
    border: 0.0625rem solid rgba(0, 0, 0, 0.1);
    min-width: 17.5rem;
    z-index: 1000;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.625rem);
    transition: all 0.3s ease;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.75rem 0.75rem 0 0;
}

.dropdown-user-info strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.dropdown-user-info small {
    opacity: 0.9;
    font-size: 0.8125rem;
}

.dropdown-menu {
    padding: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #667eea;
    padding-left: 1.5rem;
}

.dropdown-item.logout:hover {
    background: #fee;
    color: #e74c3c;
}

.dropdown-item i {
    width: 1rem;
    text-align: center;
    opacity: 0.7;
}

.dropdown-divider {
    height: 0.0625rem;
    background: #f1f3f4;
    margin: 0.5rem 0;
}

/* Корзина */
.cart-section {
    position: relative;
    box-shadow: 0 0.25rem 0.9375rem rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    /* height: 3rem; */
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 0.75rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: none;
    height: 3rem;
    min-width: 7.5rem;
    box-shadow: 0 0.125rem 0.625rem rgba(40, 167, 69, 0.2);
}

.cart-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-0.0625rem);
    box-shadow: 0 0.25rem 0.9375rem rgba(40, 167, 69, 0.3);
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon i {
    font-size: 1.125rem;
    color: white;
}

.cart-count {
    position: absolute;
    top: -0.375rem;
    right: -0.375rem;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 1.125rem;
    height: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 1.125rem;
    border: 0.125rem solid white;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}

.cart-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.cart-label {
    font-weight: 600;
    font-size: 0.8125rem;
    line-height: 1.2;
    color: white;
}

.cart-price {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2;
    font-weight: 500;
}

/* Каталог dropdown */
.catalog-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 0.0625rem solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.15);
    z-index: 999;
    max-height: 31.25rem;
    overflow-y: auto;
}

.catalog-dropdown.hidden {
    display: none;
}

.catalog-content {
    padding: 1.5rem 0;
}

/* WhatsApp кнопка */
.whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.75rem;
    height: 3.75rem;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 0.25rem 1.25rem rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0.375rem 1.5625rem rgba(37, 211, 102, 0.5);
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: -0.625rem;
    left: -0.625rem;
    right: -0.625rem;
    bottom: -0.625rem;
    border: 0.125rem solid #25D366;
    border-radius: 50%;
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Модальное окно поиска для мобильных устройств */
.mobile-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-search-modal.show {
    opacity: 1;
    visibility: visible;
}

.mobile-search-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    max-height: 100vh;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-search-modal.show .mobile-search-content {
    transform: translateY(0);
}

.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-bottom: 0.0625rem solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    color: #667eea;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-search-close:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.mobile-search-close i {
    font-size: 1.125rem;
}

.mobile-search-form {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 0.0625rem solid #cccccc;
    border-radius: 0.75rem;
    height: 2.75rem;
    padding: 0 1rem;
}

.mobile-search-form:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mobile-search-icon {
    color: #95a5a6;
    margin-right: 0.75rem;
    transition: color 0.3s ease;
}

.mobile-search-form:focus-within .mobile-search-icon {
    color: #667eea;
}

.mobile-search-icon i {
    font-size: 1rem;
}

.mobile-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
    color: #2c3e50;
}

.mobile-search-input::placeholder {
    color: #95a5a6;
}

.mobile-search-results {
    padding: 0;
    background: white;
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
}

.mobile-search-results .search-results-content {
    max-height: none;
}

.mobile-search-results .search-section-title {
    position: static;
    background: white;
    border-bottom: 0.0625rem solid #e9ecef;
    padding: 1rem 1rem 0.5rem;
}

.mobile-search-results .search-result-item {
    padding: 1rem;
    border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.05);
}

.mobile-search-results .search-result-item.product-item {
    padding: 1.25rem 1rem;
    min-height: 5.5rem;
}

.mobile-search-results .search-result-image {
    width: 4rem;
    height: 4rem;
    transition: opacity 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.mobile-search-results .search-result-image:not([src]), 
.mobile-search-results .search-result-image[src=""] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.mobile-search-results .search-result-image:not([src])::before, 
.mobile-search-results .search-result-image[src=""]::before {
    content: "📦";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    opacity: 0.5;
}

.mobile-search-results .search-result-image {
    opacity: 1;
}

.mobile-search-results .search-no-results {
    padding: 3rem 1rem;
}

.mobile-search-results .search-view-all {
    padding: 1.25rem 1rem;
}

/* Утилиты */
.hidden {
    display: none !important;
}

.desktop-only {
    display: inline-block;
}

.mobile-only {
    display: none;
}

.mobile-search-btn {
    display: none;
}

.callback-header {
    display: none;
}

/* Адаптивность */
@media (max-width: 75rem) {
    .header-main-content {
        gap: 1rem;
    }
    
    .search-section {
        max-width: 31.25rem;
    }
    
    .header-info {
        gap: 1rem;
        margin: 0 1rem;
    }
    
    .info-item {
        padding: 0.375rem 0.625rem;
    }
    
    .info-title {
        font-size: 0.6875rem;
    }
    
    .info-subtitle {
        font-size: 0.625rem;
    }
    
    .header-top-right {
        gap: 1.5rem;
    }
    
    .contact-info {
        gap: 1.25rem;
    }
}

@media (max-width: 62rem) {
    .header-top {
        display: none;
    }
    
    .header-main {
        padding: 0.75rem 0;
    }
    
    .header-main-content {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .logo-link {
        font-size: 1.5rem;
    }
    
    .search-section {
        max-width: 18.75rem;
    }
    
    .header-info {
        display: none;
    }
    
    .catalog-btn .catalog-btn-text.desktop-only {
        display: none;
    }
    
    .catalog-btn .catalog-btn-text.mobile-only {
        display: inline-block;
    }
    
    .catalog-btn {
        min-width: 3rem;
        padding: 0 0.75rem;
    }
    
    .user-info {
        display: none;
    }
    
    .user-trigger {
        min-width: 3rem;
        padding: 0 0.75rem;
    }
    
    .cart-text {
        display: none;
    }
    
    .cart-btn {
        min-width: 3rem;
        padding: 0 0.75rem;
    }
    
    .header-top-right {
        gap: 1rem;
    }
    
    .contact-info {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 0 2rem;
    }
    
    .header-main-content {
        gap: 0.75rem;
    }
    
    .logo {
        order: 1;
    }

    .callback-header {
        order: 2;
        display: grid;
    }
    
    .search-section {
        order: 3;
        flex: none;
        max-width: none;
        height: 2.75rem;
        width: auto;
    }
    
    .search-container {
        display: none;
    }
    
    .header-actions {
        order: 4;
        gap: 0.5rem;
    }
    
    .catalog-btn {
        border-radius: 0.625rem;
        height: 2.75rem;
        min-width: 2.75rem;
        padding: 0 0.625rem;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: inline-block;
    }
    
    .login-btn {
        height: 2.75rem;
        min-width: 2.75rem;
        padding: 0 0.75rem;
        font-size: 0.8125rem;
    }
    
    .cart-btn {
        height: 2.75rem;
        min-width: 2.75rem;
        padding: 0 0.625rem;
    }
    
    .user-trigger {
        height: 2.75rem;
        min-width: 2.75rem;
        padding: 0 0.625rem;
    }
    
    .user-dropdown {
        right: -1rem;
        min-width: 16.25rem;
    }
    
    .whatsapp-btn {
        bottom: 1rem;
        right: 1rem;
        width: 3.125rem;
        height: 3.125rem;
        font-size: 1.5rem;
    }
    
    /* Мобильная кнопка поиска */
    .mobile-search-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        height: 2.75rem;
        background: #f8f9fa;
        border: 0.0625rem solid #cccccc;
        border-radius: 0.625rem;
        color: #667eea;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-right: 1.5rem;
    }
    
    .mobile-search-btn:hover {
        background: #667eea;
        color: white;
        border-color: #667eea;
    }
    
    .mobile-search-btn i {
        font-size: 1rem;
    }

    .search-result-subtitle {
        font-size: 0.85rem;
    }
}