/* ============================================
   css/style.css
   Тёмная тема с неоновыми акцентами #ff4081 и #00e5ff
   ============================================ */

/* ---------- Базовые сбросы ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0b0b0e;
    color: #e0e0e0;
    line-height: 1.6;
    padding-top: 70px; /* отступ под фиксированный хедер */
}

a {
    color: #00e5ff;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #ff4081;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Хедер ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 11, 14, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 64, 129, 0.2);
    z-index: 1000;
    padding: 12px 0;
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.header__logo {
    font-size: 24px;
    font-weight: 700;
}
.header__logo a {
    color: #fff;
}
.header__logo span {
    color: #ff4081;
}
.header__nav {
    display: flex;
    gap: 24px;
    font-size: 16px;
}
.header__nav a {
    color: #ccc;
    transition: color 0.3s;
}
.header__nav a:hover {
    color: #ff4081;
}
.header__contacts {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header__phone {
    font-weight: 600;
    color: #fff;
}
.header__tg {
    background: #0088cc;
    padding: 6px 16px;
    border-radius: 20px;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
}
.header__tg:hover {
    background: #006699;
}

/* ---------- Герой (параллакс) ---------- */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/hero-bg.jpg') no-repeat center center/cover;
    transform: scale(1.1);
    will-change: transform;
    z-index: 0;
    filter: brightness(0.35) saturate(0.7);
}
.hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
.hero__title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ff4081, #00e5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__subtitle {
    font-size: 20px;
    color: #aaa;
    margin-bottom: 32px;
}
.hero__btn {
    font-size: 18px;
    padding: 14px 40px;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    background: transparent;
    border: 2px solid #ff4081;
    color: #ff4081;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.btn--primary {
    background: #ff4081;
    color: #fff;
    border-color: #ff4081;
}
.btn--primary:hover {
    background: #e03572;
    border-color: #e03572;
    box-shadow: 0 0 24px rgba(255, 64, 129, 0.4);
}
.btn--full {
    width: 100%;
    justify-content: center;
}

/* ---------- Секции ---------- */
.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 36px;
    text-align: center;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff4081, #00e5ff);
    margin: 12px auto 0;
    border-radius: 4px;
}

/* ---------- Блок доверия ---------- */
.trust {
    padding: 60px 0;
    background: rgba(255, 64, 129, 0.03);
}
.trust__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}
.trust__item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(255, 64, 129, 0.1);
    transition: transform 0.3s, border-color 0.3s;
}
.trust__item:hover {
    transform: translateY(-6px);
    border-color: #ff4081;
}
.trust__icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}
.trust__item h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #fff;
}
.trust__item p {
    color: #aaa;
    font-size: 15px;
}

/* ---------- Слайдер хитов ---------- */
.hits {
    padding: 60px 0;
}
.hits__slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 8px 4px 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.hits__slider::-webkit-scrollbar {
    height: 6px;
}
.hits__slider::-webkit-scrollbar-track {
    background: #1a1a1f;
    border-radius: 8px;
}
.hits__slider::-webkit-scrollbar-thumb {
    background: #ff4081;
    border-radius: 8px;
}

/* ---------- Карточка товара (общая) ---------- */
.product-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    flex: 0 0 260px;
    scroll-snap-align: start;
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 64, 129, 0.15);
    border-color: #ff4081;
}
.product-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #1a1a1f;
}
.product-card__body {
    padding: 16px;
}
.product-card__name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-card__type {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-card__type span {
    display: inline-block;
    background: rgba(0, 229, 255, 0.15);
    padding: 0 10px;
    border-radius: 12px;
    color: #00e5ff;
}
.product-card__price {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 8px 0 4px;
}
.product-card__status {
    font-size: 13px;
    font-weight: 600;
}
.status--in_stock { color: #4caf50; }
.status--preorder { color: #ffa726; }
.status--out_of_stock { color: #ef5350; }

/* ---------- Каталог (сетка) ---------- */
.catalog {
    padding: 60px 0;
}
.catalog__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 32px;
    align-items: center;
}
.catalog__filter-group {
    display: flex;
    gap: 8px;
}
.filter-btn {
    background: transparent;
    border: 1px solid #333;
    color: #aaa;
    padding: 6px 18px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}
.filter-btn:hover {
    border-color: #ff4081;
    color: #fff;
}
.filter-btn.active {
    background: #ff4081;
    border-color: #ff4081;
    color: #fff;
}
.catalog__search input {
    background: #1a1a1f;
    border: 1px solid #333;
    border-radius: 24px;
    padding: 8px 18px;
    color: #fff;
    font-size: 14px;
    min-width: 200px;
}
.catalog__search input:focus {
    outline: none;
    border-color: #ff4081;
}
.catalog__sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.catalog__sort select {
    background: #1a1a1f;
    border: 1px solid #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}
.catalog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}
.catalog__placeholder {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    padding: 60px 0;
}
.catalog__pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.pagination-btn {
    background: transparent;
    border: 1px solid #333;
    color: #aaa;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}
.pagination-btn.active {
    background: #ff4081;
    border-color: #ff4081;
    color: #fff;
}
.pagination-btn:hover:not(.active) {
    border-color: #00e5ff;
    color: #fff;
}
.pagination-btn.load-more {
    background: rgba(255, 64, 129, 0.1);
    border-color: #ff4081;
    color: #ff4081;
    padding: 8px 32px;
}
.pagination-btn.load-more:hover {
    background: rgba(255, 64, 129, 0.2);
}

/* ---------- История просмотров ---------- */
.history {
    padding: 40px 0 60px;
    background: rgba(0, 229, 255, 0.02);
}
.history__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.history__grid .product-card {
    flex: none;
}

/* ---------- Блок «Как мы работаем» ---------- */
.how {
    padding: 60px 0;
    background: rgba(255, 64, 129, 0.03);
}
.how__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}
.how__step {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 24px 16px;
    border: 1px solid rgba(0, 229, 255, 0.08);
}
.how__num {
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4081, #00e5ff);
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 12px;
}
.how__step h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
}
.how__step p {
    color: #aaa;
    font-size: 15px;
}

/* ---------- Футер ---------- */
.footer {
    padding: 40px 0;
    background: #0a0a0c;
    border-top: 1px solid rgba(255, 64, 129, 0.1);
}
.footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}
.footer__logo {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.footer__logo span {
    color: #ff4081;
}
.footer__copy {
    margin-top: 8px;
    color: #666;
    font-size: 14px;
}
.footer__col h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 16px;
}
.footer__col a {
    display: block;
    color: #aaa;
    font-size: 15px;
    margin-bottom: 6px;
    transition: color 0.3s;
}
.footer__col a:hover {
    color: #ff4081;
}

/* ---------- Модальное окно ---------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal.open {
    display: flex;
}
.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}
.modal__content {
    position: relative;
    background: #131316;
    max-width: 520px;
    width: 90%;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid rgba(255, 64, 129, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}
.modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}
.modal__close:hover {
    color: #ff4081;
}
.modal__content h2 {
    color: #fff;
    margin-bottom: 16px;
}
.modal__content #modalSummary,
.modal__content #modalExtrasSummary {
    color: #ccc;
    font-size: 15px;
    margin-bottom: 6px;
}
.modal__content #modalTotalPrice {
    font-size: 24px;
    color: #ff4081;
}
.modal__note {
    margin-top: 16px;
    padding: 12px;
    background: rgba(0, 229, 255, 0.05);
    border-radius: 12px;
    border-left: 3px solid #00e5ff;
    font-size: 14px;
    color: #aaa;
}

/* ---------- Форма заказа ---------- */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
    margin-bottom: 4px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: #1e1e24;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 10px 14px;
    color: #fff;
    font-size: 15px;
    transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff4081;
}
.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-group--checkbox input {
    width: auto;
}
.form-group--checkbox label {
    font-weight: 400;
    font-size: 14px;
    color: #aaa;
}
.form-group--checkbox a {
    color: #00e5ff;
}
.btn--full {
    margin-top: 8px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 992px) {
    .hero__title { font-size: 40px; }
    .header__nav { display: none; } /* позже добавим бургер, но пока упростим */
    .header__contacts { gap: 8px; }
    .catalog__sort { margin-left: 0; width: 100%; }
}

@media (max-width: 640px) {
    body { padding-top: 60px; }
    .hero { min-height: 60vh; }
    .hero__title { font-size: 28px; }
    .hero__subtitle { font-size: 16px; }
    .section-title { font-size: 26px; }
    .trust__grid { grid-template-columns: 1fr; }
    .catalog__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .product-card { flex: 0 0 160px; }
    .product-card__image { height: 140px; }
    .modal__content { padding: 20px; }
    .header__phone { font-size: 14px; }
    .how__steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .catalog__grid { grid-template-columns: 1fr; }
    .product-card { flex: 0 0 100%; }
}