.main-header{
    background-color: #4775ad;
    padding: 20px;
}

.logo{
    text-align: center;
    color: #cedee0;
    font-size: 30px;
}
/* Общие настройки */
:root {
    --bg-color: #707070;         /* Глубокий черный */
    --card-bg: #029fb0;         /* Цвет карточек */
    --accent-gold: #52cde2;     /* Золото для акцентов */
    --text-main: #e0e0e0;       /* Основной текст */
    --text-muted: #888888;      /* Второстепенный текст */
}

body {
    margin: 0;
    padding: 0;
    padding-bottom: 50px;
    font-family: 'Georgia', serif; /* Более винтажный шрифт */
    background-color: #cbd4e0;
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px;
    padding-top: 0;
}

.inf{
    display: flex;
    justify-content: center;
    gap: 40px;
    background-color: #4775ad;
    text-align: center;
    padding: 20px;
}

/* Контейнер панели */
.filter-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 6px 0;
    width: auto;
    margin-left: -10px;
    margin-right: -10px;
    
    /* Эффект прилипания */
    position: sticky;
    top: 0; /* Прижмется к самому верху */
    z-index: 101;
    background-color: #aebed1; /* Фон важен, чтобы контент под панелью не просвечивал */
}

/* Стилизация строки поиска */
#search-Input {
    width: 80%;
    max-width: 400px;
    padding: 12px 20px;
    border: 2px solid #eee;
    border-radius: 25px; /* Сильное скругление */
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

#search-Input:focus {
    border-color: #0b3b87; /* Цвет золота при клике, подходит для украшений */
}

/* Контейнер для кнопок */
.categor-button {
    display: flex;
    gap: 10px;
    width: 100%;
    overflow-x: auto; 
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 10px 6px; /* Чуть увеличил отступ сверху/снизу для теней */
    box-sizing: border-box;
    scroll-behavior: smooth;
    
    /* Эта строка связывает анимацию JS и CSS */
    view-transition-name: filter-chips;
}

.categor-button::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid transparent; 
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    /* Убрал transition: all, оставил только для цвета, чтобы не мешать перемещению */
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}

/* Уникальное имя для каждой кнопки, чтобы браузер понимал, КТО перемещается */
.filter-btn {
    view-transition-name: auto; 
}

.filter-btn:focus, .filter-btn:active {
    outline: none;
}

.filter-btn.active {
    background-color: #10335e; 
    color: #fff;
    border-color: #000000;
}

.filter-btn.flash-active {
    background-color: #10335e !important;
    color: white !important;
    transform: scale(0.9);
}

@media (hover: hover) {
    .filter-btn:hover:not(.active) {
        background-color: #e5e5e5;
    }
}


/*Сетка товаров*/
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(50px, 1fr)); /* Карточки сами встают в ряд */
  gap: 10px;
  padding-top: 20px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 8px; /* Немного внутреннего отступа */
    text-align: center;
    transition: 0.3s;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Делаем картинки строго квадратными */
    object-fit: cover; /* Чтобы фото не искажалось */
    border-radius: 8px;
    margin-bottom: 8px;
}

/* Убираем гигантские отступы у заголовка */
.product-card h3 {
    margin: 0 0 4px 0; /* Отступ только снизу 4px */
    font-size: 14px; /* Чуть меньше для компактности */
    line-height: 1.2;
    color: #333;
}

/* Убираем отступы у цены */
.product-price {
    margin: 0 0 8px 0; /* Отступ снизу до кнопки */
    font-weight: bold;
    font-size: 15px;
    color: #10335e;
}

/* Делаем кнопку чуть компактнее */
.buy-btn {
    width: 100%;
    padding: 8px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
}


/*нав панель*/
.mob-nav-bar {
    position: fixed; /* Фиксируем на экране */
    bottom: -1px;       /* Прижимаем к самому низу */
    left: 0;         /* Растягиваем от левого края... */
    right: 0;        /* ...до правого */
    z-index: 101;   /* Поднимаем выше всех остальных элементов */
    
    background-color: #aebed1; /* Обязательно задайте фон, чтобы контент сайта не просвечивал */
    border-top: 1px solid #10335e;/* Опционально: тонкая линия сверху для разделения */

    /* Ваши старые свойства */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block-start: 10px;
    padding-block-end: calc(10px + env(safe-area-inset-bottom)); /* Добавил 10px к безопасному отступу */
    padding-inline: 16px;
}

.mob-nav-bar a {
    display: flex;
    flex: 1; /* Каждая ссылка займет равную ширину */
    justify-content: center; /* Центрируем иконку внутри ссылки */
    text-decoration: none;
}

/* Общий класс для всех иконок */

.nav-icon {
    display: inline-block;
    width: 28px; /* Сделай чуть больше, если линии тонкие */
    height: 28px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.home-icon {
    background-image: url('https://i.ibb.co/yBmN8WGt/164-20260426140811.png');
}

.own-icon{
    background-image: url('https://i.ibb.co/spnrBbww/166-20260426171720.png');
}

.search-icon{
    background-image: url('https://i.ibb.co/zTDrpKRZ/166-20260426162743.png');
}

.buy-btn {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #3477c7;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

@media (hover: hover) {
    .buy-btn:hover {
        background-color: #184be3;
    }
}

/* Фоновая подложка */
/* Фоновая подложка - центрируем через flex */
.modal {
    display: none !important;
    position: fixed;
    z-index: 102; /* Выше липкой панели */
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    display: flex; /* Важно для центрирования */
    align-items: center;
    justify-content: center;
}

.modal-header {
    display: flex;
    justify-content: space-between; /* Заголовок влево, крестик вправо */
    align-items: center; /* Выравнивание по центру по вертикали */
    margin-bottom: 10px;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px; /* Оптимально для мобилок */
    color: #333;
}

/* Контент окна - теперь он не вылезет влево */
.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 24px;
    width: 90%; /* Занимает 90% ширины экрана на мобилке */
    max-width: 380px; /* Но не больше 380px на компах */
    position: relative;
    box-sizing: border-box;
    animation: slideUp 0.3s ease-out; /* Плавное появление снизу */
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Стили превью товара */
.modal-product-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 20px;
}

#modal-product-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
}

#display-item-name {
    color: #000000;;
    margin: 0;
    font-weight: bold;
    font-size: 16px;
}

#display-item-price {
    margin: 4px 0 0 0;
    color: #3477c7;;
    font-weight: bold;
}

/* Убираем стандартные рамки на мобилках при фокусе */
.form-group input, .form-group textarea {
    width: 90%;
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 12px;
    font-size: 16px; /* 16px предотвращает авто-зум в Safari на iPhone */
    background: #f5f5f5;
    outline: none;
}

.form-group{
    padding: 10px;
}

.send-btn {
    width: 100%;
    padding: 15px;
    background-color: #4775ad;;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
}

.close-modal {
    font-size: 40px;
    line-height: 1; /* Чтобы крестик не растягивал строку */
    cursor: pointer;
    color: #aaa;
    padding: 5px; /* Легче попасть пальцем */
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
}

/* Этот класс будет перебивать display: none !important */
.modal.modal-open {
    display: flex !important;
}

/* Стили для окна описания */
#info-img {
    width: 80%;
    margin: 0 30px 10px;
    border-radius: 15px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

#info-price {
    font-weight: bold;
    color: #4775ad;;
    font-size: 18px;
    margin: -10px 0 0 0; /* Поднимаем чуть выше к заголовку */
}


#info-text {
    line-height: 1.5;
    color: #555;
    font-size: 15px;
    margin: 0 0 0 0;
}

#info-buy-btn {
    margin-top: 10px;
}

.skeleton {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 12px;
    background-size: 200% 100%;
    animation: shine 1.5s linear infinite;
}

@keyframes shine {
    to { background-position-x: -200%; }
}

.skeleton-card {
    height: 250px; /* Примерная высота твоей карточки */
    width: 100%;
    border-radius: 12px;
}

/* Основная секция */
.custom-order-section {
    padding: 30px 20px;
    margin-bottom: 20px;
    max-width: 600px; /* Ограничиваем ширину для удобства чтения */
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Центрируем всё содержимое */
}

/* Главный заголовок страницы */
.custom-order-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #4775ad;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Вводный текст */
.custom-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 25px;
}

/* Стилизация списка преимуществ как карточек */
.custom-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-list li {
    background: #fff;
    padding: 15px;
    border-radius: 16px;
    font-size: 14px;
    color: #444;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    text-align: left; /* Текст внутри карточек пусть будет слева */
    transition: transform 0.2s ease;
}

.custom-list li:hover {
    transform: translateY(-2px);
    border-color: #d4af37;
}

/* Галерея примеров (сделаем её более "дизайнерской") */
.custom-gallery {
    display: grid;
    /* Создаем ровно 2 колонки одинаковой ширины */
    grid-template-columns: 1fr 1fr;
    max-height: 350px;
    gap: 15px;
    margin: 30px 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    background: #f4f4f4; /* Фон, если фото не квадратное */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    /* contain гарантирует, что всё украшение влезет в рамку без обрезки */
    object-fit: contain; 
    transition: transform 0.4s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.08); /* Чуть больше зум для красоты */
}



/* Оверлей */
.fullscreen-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.fullscreen-overlay img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    animation: fadeIn 0.3s ease;
}

.close-overlay {
    position: absolute;
    top: 20px; right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}




/* Контейнер формы */
.custom-form-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 20px;
    margin-top: 30px;
}

.custom-form-container h3 {
    color: #10335e;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

/* Скрываем стандартный инпут */
#file-upload {
    display: none;
}

/* Красивая кнопка загрузки */
.custom-file-upload {
    display: block;
    padding: 12px;
    border: 1px dashed #d4af37; /* Золотистый пунктир */
    border-radius: 12px;
    background: #fff;
    color: #333;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.custom-file-upload:hover {
    background: #fdfaf0;
}

/* Контейнер для превью */
#image-preview-container {
    position: relative;
    margin: 10px;
    width: 80px;
    height: 80px;
}

#image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ddd;
}

#remove-img {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #333;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 18px;
    cursor: pointer;
    font-size: 14px;
}

textarea {
    resize: none; /* Полностью убирает уголок масштабирования */
}


a, a:visited {
    color: white !important;
    text-decoration: none; /* Опционально: убирает подчеркивание */
}


