* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0d0d0d;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

/* HEADER (Полностью аналогично главной странице) */
.header {
    height: 70px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid rgba(255, 255, 255, 0.178);
    position: sticky;
    top: 0;
    background: rgba(87, 194, 45, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
}

.logo {
    color: white;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: color 0.4s ease;
    display: inline-flex;    /* Выравнивает текст и картинку строго по одной линии */
    align-items: center;     /* Центрирует картинку по вертикали относительно текста */
    gap: 12px;                /* Делает аккуратный отступ между текстом и картинкой */
    text-decoration: none;   /* Убирает подчеркивание у ссылки */
}


.logo:hover {
    color: yellowgreen;
}



.pic-logo{
    height: 40px;             /* Картинка автоматически станет высотой с текущий размер шрифта текста */
    width: auto;             /* Пропорции картинки не исказятся */
    object-fit: contain;
}

/* Кнопка корзины в шапке */
.cart-btn {
    background: #151515;
    border: 1px solid #292929;
    color: #fff;
    padding: 9px 16px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-btn:hover {
    border-color: yellowgreen;
    background: #1f1f1f;
}

#cart-count {
    color: yellowgreen;
}

/* MAIN & PAGE STYLES */
main {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 100px;
}

.catalog-page {
    padding: 30px 0;
}

.catalog-panel {
    background-color: rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.178);
    border-radius: 12px;
    padding: 20px;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
}

.back-button {
    display: inline-block;
    color: yellowgreen;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: #ffffff;
}

.catalog-title h2 {
    font-size: 20px;
    margin: 0 0 15px;
}

.drops-title {
    margin-top: 38px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.accessories-subcategories {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.178);
}

.accessories-subtitle {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.accessories-subcategories .categories-grid {
    grid-template-columns: repeat(3, 1fr);
}

.accessories-category-btn {
    font-size: 0.75rem;
}

.category-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #141414;
    color: #fff;
    border: 1px solid #282828;
    padding: 12px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.category-btn:hover {
    background-color: #1f1f1f;
    border-color: yellowgreen;
    transform: translateY(-2px);
}

.category-btn.active {
    background-color: yellowgreen;
    color: #000;
    border-color: yellowgreen;
}

.category-btn.active {
    background-color: yellowgreen;
    color: #000;
    border-color: yellowgreen;
}



/* Сетка товаров с эффектом стекла */
#products {
    display: grid;
    /*grid-template-columns: repeat(2, minmax(0, 1fr));*/
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0px;
}

.product-card {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(13px);

    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;

    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    margin-top: 16px;
    margin-left: 8px;
    margin-right: 8px;

}

.product-card:hover {
    transform: translateY(-3px);
    border-color: yellowgreen;
    box-shadow: 0 8px 24px rgba(154, 205, 50, 0.2);
}

.product-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 6;
    background-color: #1a1a1a;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.318);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 7px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.product-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #eee;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

.product-measurements {
    font-size: 0.75rem;
    color: #888888;
    margin: 0 0 10px 0;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: yellowgreen;
}

.buy-btn {
    background-color: #151515;
    color: #fff;
    border: 1px solid #282828;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-card:hover .buy-btn {
    background-color: yellowgreen;
    border-color: yellowgreen;
    color: #000;
}

/* МОДАЛЬНЫЕ ОКНА И ОВЕРЛЕЙ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
    padding: 15px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid #282828;
    border-radius: 16px;
    max-width: 650px;
    width: 100%;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
}

.modal-close:hover {
    color: yellowgreen;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px;
}

.modal-image-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-box img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #282828;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.nav-arrow:hover {
    background: yellowgreen;
    color: #000;
}

.nav-arrow.prev { left: 8px; }
.nav-arrow.next { right: 8px; }

.gallery-counter {
    position: absolute;
    bottom: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
}

.modal-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-tag {
    font-size: 10px;
    font-weight: bold;
    color: #000;
    background: yellowgreen;
    padding: 3px 8px;
    border-radius: 4px;
    width: fit-content;
}

.modal-title {
    font-size: 1.3rem;
    margin: 8px 0;
    text-transform: uppercase;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: yellowgreen;
    margin-bottom: 12px;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #151515;
    border: 1px solid #252525;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.info-label {
    font-size: 0.7rem;
    color: #888888;
    display: block;
    text-transform: uppercase;
}

.info-value {
    font-size: 0.9rem;
    font-weight: bold;
}

.modal-description-box p {
    font-size: 0.8rem;
    color: #bbb;
    margin-top: 4px;
}

.modal-buy-btn {
    background: yellowgreen;
    color: #000;
    border: none;
    padding: 13px;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.1s, background 0.2s;
    width: 100%;
}

.modal-buy-btn:hover {
    background: #a2e036;
}

/* СТИЛИ МОДАЛКИ КОРЗИНЫ */
.cart-modal-content {
    max-width: 440px;
    padding: 24px;
}

.cart-modal-title {
    margin: 0 0 16px 0;
    font-size: 1.3rem;
}

.cart-items-container {
    max-height: 260px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #151515;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #252525;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item-title {
    color: #fff;
    font-size: 13px;
    font-weight: bold;
}

.cart-item-sub {
    color: #888;
    font-size: 12px;
}

.cart-remove-btn {
    background: transparent;
    border: none;
    color: yellowgreen;
    font-size: 16px;
    cursor: pointer;
}

.cart-remove-btn:hover {
    color: #ff4444;
}

.cart-footer {
    border-top: 1px solid #252525;
    padding-top: 14px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 14px;
}

#cart-total-price {
    color: yellowgreen;
}

.cart-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #282828;
    background: #151515;
    color: #fff;
    margin-bottom: 10px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.cart-input:focus {
    background: rgba(154, 205, 50, 0.08);
    border: 1px solid rgba(154, 205, 50, 0.45);
}

.cart-textarea {
    height: 55px;
    resize: none;
}

.payment-note {
    margin: -9px 0 10px;
    color: rgb(255, 255, 255);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
}

/* СТРАНИЦА СОГЛАСИЯ НА ОБРАБОТКУ ПЕРСОНАЛЬНЫХ ДАННЫХ */

.consent-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.consent-container {
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid #282828;
    border-radius: 12px;
    padding: 30px;
}

.consent-container h1 {
    font-size: 1.7rem;
    margin: 0 0 25px;
    text-transform: uppercase;
}

.consent-container h2 {
    font-size: 1.1rem;
    margin: 25px 0 10px;
    color: yellowgreen;
}

.consent-container p,
.consent-container li {
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.6;
}

.consent-container ul {
    padding-left: 20px;
}

.consent-back {
    display: inline-block;
    margin-bottom: 20px;
    color: yellowgreen;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.consent-back:hover {
    color: #fff;
}

.consent-link {
    color: yellowgreen;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.consent-link:hover {
    color: #fff;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 2px 0 12px 0;
    color: #888;
    font-size: 0.75rem;
    line-height: 1.4;
    cursor: pointer;
}

.consent-label input {
    margin-top: 2px;
    accent-color: #9acd32;
    cursor: pointer;
    flex-shrink: 0;
}

.consent-label a {
    color: yellowgreen;
    text-decoration: none;
}

.consent-label a:hover {
    text-decoration: underline;
}


/* =========================================
   ПОЛНОЭКРАННЫЙ ПРОСМОТР ФОТО
   ========================================= */

.fullscreen-image-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.95);

    padding: 20px;
    box-sizing: border-box;
}

.fullscreen-image-modal.active {
    display: flex;
}

/* САМО ФОТО */
.fullscreen-image-modal img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    margin: 0;
    padding: 0;

    flex: 0 0 auto;
}
/* Кнопка закрытия */
.fullscreen-close {
    position: absolute;
    top: 15px;
    right: 20px;

    z-index: 10001;

    width: 45px;
    height: 45px;

    border: none;
    background: rgba(0, 0, 0, 0.45);

    color: white;
    font-size: 32px;
    line-height: 45px;

    border-radius: 50%;

    cursor: pointer;
}

/* Стрелки */
.fullscreen-arrow {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    z-index: 10001;

    width: 50px;
    height: 70px;

    border: none;
    border-radius: 12px;

    background: rgba(0, 0, 0, 0.45);

    color: white;
    font-size: 35px;

    cursor: pointer;
}

.fullscreen-prev {
    left: 15px;
}

.fullscreen-next {
    right: 15px;
}

/* Счётчик */
.fullscreen-counter {
    position: absolute;

    bottom: 20px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 10001;

    color: white;

    background: rgba(0, 0, 0, 0.5);

    padding: 6px 12px;

    border-radius: 20px;

    font-size: 14px;
}


.telegram-input-wrap {
    position: relative;
}

.telegram-input {
    position: relative;
    z-index: 2;
}

.tg-placeholder {
    position: absolute;
    left: 30px;
    top: 11px;
    height: 100%;
    display: flex;
    align-items: center;

    color: #666;
    font-size: 14px;

    pointer-events: none;
    z-index: 3;
}



@media (max-width: 600px) {
    main {
        padding-left: 15px;
        padding-right: 15px;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }
    #products {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .product-card {
    margin-top: 8px;
    margin-left: 4px;
    margin-right: 4px;
    }
}

.catalog-loading {
    display: none;
    width: 100%;
    text-align: center;
    padding: 30px 0;
    color: yellowgreen;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 2px;
}


/* =========================================
   ЗАМЕРЫ В МОДАЛЬНОМ ОКНЕ
   ========================================= */

#modal-measurements-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.measurement-section {
    background: #151515;
    border: 1px solid #252525;
    border-radius: 8px;
    overflow: hidden;
}

.measurement-section summary {
    list-style: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px;

    font-size: 0.78rem;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.4px;
}

.measurement-section summary::-webkit-details-marker {
    display: none;
}

.measurement-arrow {
    color: yellowgreen;
    font-size: 17px;
    line-height: 1;

    transition: transform 0.2s ease;
}

.measurement-section[open] .measurement-arrow {
    transform: rotate(180deg);
}

.measurement-content {
    padding: 0 12px 12px;

    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.65;

    white-space: pre-line;
}

.measurement-model-name {
    color: yellowgreen;
    font-weight: bold;
    margin-bottom: 4px;
}

.exchange-option {
    margin: 0px 0 16px;
    padding: 14px;
    background: rgba(154, 205, 50, 0.08);
    border: 1px solid rgba(154, 205, 50, 0.45);
    border-radius: 10px;
}

.exchange-title {
    color: yellowgreen;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.exchange-description {
    color: #bbb;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 11px;
}

.exchange-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.exchange-checkbox input {
    accent-color: yellowgreen;
    cursor: pointer;
    flex-shrink: 0;
}