@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --color-white: #fff;
    --color-light-gray: #f7f7fa;
    --bg: #2d2e2e;
    --main-gradient: linear-gradient(180deg, #2d2e2e 0%, #000 100%);
    --button-blue: #45aaf2;
    --button-green: #2bcbae;
    --button-text: #fff;
    --modal-bg: #000;
    --modal-overlay: rgba(0,0,0,0.6);
    --border-radius: 16px;
    --category-active-bg: #fff;
    --category-active-color: #000;
    --category-bg: rgba(255,255,255,0.05);
    --category-color: #fff;
    --feature-bg: rgba(255,255,255,0.02);
    --feature-color: #fff;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    background: var(--main-gradient);
    min-height: 100vh;
    box-sizing: border-box;
}

body {
    /* overflow: hidden; */
    overflow-x: hidden;
    transition: background-color .3s ease;
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.background-image {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    overflow: hidden;
}
.background-image img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    opacity: 1;
    pointer-events: none;
    user-select: none;
}

.page-root {
    position: relative;
    top: 0; left: 0; width: 100vw;
    min-height: 100vh;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.page-root-inner {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: transparent;
}

.blocks-container {
    width: 100%;
    padding: 0;
}

.block {
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0);
}

.hat-block {
    display: block;
    justify-content: initial;
    align-items: initial;
}

.hat-block .hat-container {
    background: transparent;
    border-radius: var(--border-radius);
    padding: 0 0 8px 0;
    text-align: center;
    position: relative;
}
.cover-image {
    width: 100%;
    overflow: hidden;
    border-bottom-left-radius: 100% 80%;
    border-bottom-right-radius: 100% 80%;
    position: relative;
    padding-top: 41%;
}
.cover-image-inner {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.logo-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgb(45, 46, 46);
    margin: -50px auto 0 auto;
    background-color: transparent;
    position: relative;
    z-index: 10;
}
.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.header-text h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 8px 0 0 0;
    color: #fff;
}
.header-text p {
    opacity: 0.8;
    margin: 0;
    font-size: 14px;
    color: #fff;
}

.link-block {
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.link-block .link-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 8px 16px 4px;
}
.link-block .link-container:last-of-type {
    padding: 4px 16px 8px;
}
.link-button {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 16px 76px;
    min-height: 56px;
    border-radius: 14px;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    letter-spacing: .02px;
    text-decoration: none;
    transition: box-shadow .3s, transform .3s;
    box-shadow: none;
    border: none;
    user-select: none;
    overflow: hidden;
    position: relative;
    margin: 0;
}
.link-button .button-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid;
}
.link-button .button-text {
    flex: 1;
    text-align: center;
    max-width: 100%;
}
.telegram-button {
    background: var(--button-blue);
    color: var(--button-text);
}
.telegram-button .button-icon {
    border-right-color: #32a1f1;
}
.info-button {
    background: var(--button-green);
    color: var(--button-text);
}
.info-button .button-icon {
    border-right-color: #27baab;
}

.features-block {
    margin-bottom: 0;
    display: block;
    justify-content: initial;
    align-items: initial;
}

.features-block .features-container {
    width: 600px;
    max-width: 100%;
    margin: 0 auto !important;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.feature-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
}
.feature-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    margin-bottom: 0;
    margin-top: 2px;
    line-height: 1;
}
.feature-content {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.feature-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}
.feature-description {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
    color: rgb(255, 255, 255);
}

.products-block {
    margin-bottom: 0;
    display: block;
    background: rgba(255,255,255,0);
}
.products-block .products-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 8px 16px;
    color: #fff;
}
.category-filters {
    margin-bottom: 16px;
    display: flex;
    justify-content: flex-start;
}
.mrIbhhBu, .category-list {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.mrIbhhBu::-webkit-scrollbar, .category-list::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.H\+rN3zdQ {
    text-align: center;
    display: block;
    flex: 1;
    margin: 0 7px 0 0;
    user-select: none;
}
.H\+rN3zdQ:last-child {
    margin-right: 0;
}
.category-item {
    border-radius: 30px;
    overflow: hidden;
}
.category-link {
    display: block;
    padding: 8px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: none;
    outline: none;
    line-height: 21px;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.category-item.active .category-link,
.category-link.active {
    background: #fff;
    color: #000;
}
.category-link:hover {
    transform: translateY(-2px);
}
.products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
}
.product-item {
    width: 276px;
    margin: 0 !important;
    border-radius: 10px;
    overflow: hidden;
}
.product-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: transparent !important;
    border-radius: 10px;
    padding: 0 0 12px 0;
    cursor: pointer;
    box-shadow: none;
    text-decoration: none;
    color: #fff;
    min-height: 340px;
    height: 100%;
    transition: none;
    margin: 0 !important;
}
.product-link:hover, .product-link:active, .product-link:focus {
    box-shadow: none;
    transform: none;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.product-image-container {
    width: 100%;
    height: 276px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image {
    width: 100%;
    height: 276px;
    border-radius: 0;
    overflow: hidden;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info {
    flex: 1;
    color: #fff;
    width: 100%;
    padding: 0 12px;
}
.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}
.product-price {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}
.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}
.show-more-button {
    border-radius: 30px;
    color: rgb(255, 255, 255);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 5px 24px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    font-family: inherit;
    cursor: pointer;
    transition: transform .2s ease;
    user-select: none;
    display: inline-flex;
    border: none;
}
.show-more-button:hover {
    transform: translateY(-2px);
}

/* Модальное окно товара */
.product-modal {
    display: none !important;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 1000000;
    background: linear-gradient(rgb(45, 46, 46) 0%, rgb(0, 0, 0) 100%);
    color: rgb(255, 255, 255);
    font-family: inherit;
    transform: translateY(0%) scale(1) translateZ(0px);
    left: calc(50% - 300px);
    width: 600px;
    max-width: 100%;
    max-height: 100%;
    background-color: #000;
    flex-direction: column;
    padding-top: 0;
    padding-bottom: 0;
    height: 100%;
    bottom: 0;
    user-select: none;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    overflow-x: hidden;
}
.product-modal.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}
.modal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}
.modal-content {
    position: relative;
    z-index: 2;
    background: transparent;
    color: #fff;
    border-radius: 0;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
}
.modal-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 10;
}
.modal-close {
    cursor: pointer;
    color: #fff;
    background-color: rgb(45, 46, 46);
    border: none;
    padding: 6px;
    border-radius: 50%;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}
.modal-close:hover {
    background: rgba(255,255,255,0.08);
}
.modal-body {
    padding: 0;
    overflow: visible;
    flex: 1;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(rgb(45, 46, 46) 0%, rgb(0, 0, 0) 100%);
    background-size: 100% 100vh;
    background-position: 0px 100%;
}

/* Стили для содержимого модального окна */
.modal-product-image {
    position: relative;
    width: 100%;
    height: 564px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity .6s ease;
}
.modal-image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background-color: rgb(45, 46, 46);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(255, 255, 255);
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 5;
}
.modal-product-image:hover .modal-image-overlay {
    opacity: 1;
}
.modal-close-inside {
    position: absolute;
    top: 25px;
    left: 25px;
    cursor: pointer;
    color: #fff;
    background-color: rgb(45, 46, 46);
    border: none;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    z-index: 10;
}
.modal-product-info {
    flex: 1;
    padding: 20px 16px;
    background: transparent;
}
.modal-product-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
}
.modal-product-price {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}
.modal-product-description {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: #fff;
    white-space: pre-line;
}
.modal-telegram-button {
    position: sticky;
    bottom: 0;
    width: 100%;
    background: linear-gradient(rgb(45, 46, 46) 0%, rgb(0, 0, 0) 100%);
    background-size: 100% 100vh;
    background-position: 0px 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    z-index: 3;
    margin: -12px 0 4px;
}
.telegram-button-fixed {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgb(255, 255, 255);
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.telegram-button-fixed svg {
    width: 1.5em;
    height: 1.5em;
}
.telegram-button-fixed span {
    font-size: 11px;
    font-weight: 400;
}
.telegram-button-fixed:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Кнопка корзины (фиксированная) */
.cart-button {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 10001;
}
.cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #fff;
    color: #000;
    border-radius: 100%;
    box-shadow: 1px 1px 12px rgba(0,0,0,.12);
    text-decoration: none;
    font-size: 20px;
    transition: box-shadow .2s;
}
.cart-icon:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

@media (max-width: 700px) {
    .page-root-inner {
        max-width: 100vw;
        padding: 0 4px;
    }
    
    .link-button {
        padding: 14px 60px;
        font-size: 16px;
    }
    
    .link-button .button-icon {
        width: 50px;
    }
    
    .header-text h1 {
        font-size: 24px;
    }
    
    .header-text p {
        font-size: 13px;
    }
    
    .logo-container {
        width: 80px;
        height: 80px;
        margin: -40px auto 0 auto;
    }
    
    .product-modal {
        left: 0;
        width: 100vw;
        max-width: 100vw;
    }
    .modal-content {
        max-width: 100vw;
    }
    .modal-product-image {
        height: 50vh;
    }
    .zoom-image-container img {
        transform: scale(1.5);
    }
}

::-webkit-scrollbar {
    width: 8px;
    background: #222;
}
::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 8px;
}
::selection {
    background: #333;
    color: #fff;
}

.JZ6FTugQ {
    overflow: hidden;
    position: relative;
}
.yS42W\+1o {
    width: 568px;
    margin: 0 auto 10px auto;
    font-size: 16px;
    font-weight: lighter;
}

/* Стили для скроллбара в модальном окне */
@media (min-width: 601px) {
    .product-modal::-webkit-scrollbar {
        width: 4px;
    }
}

@media (min-width: 601px) {
    .product-modal::-webkit-scrollbar-thumb {
        background: rgba(85, 85, 85, 0.5019607843);
        border-radius: 2px;
    }
}

@media (min-width: 601px) {
    .product-modal::-webkit-scrollbar-track {
        background: rgba(85, 85, 85, 0);
    }
}

/* Модальное окно зума */
.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
    background-color: rgb(51, 51, 51);
    user-select: none;
    opacity: 0;
    overflow: hidden;
}
.zoom-modal.active {
    display: flex;
    opacity: 1;
}
.zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}
.zoom-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    color: #f5f5f5;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.zoom-image-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zoom-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: none;
    width: auto;
    height: auto;
    display: block;
}

/* Мобильная оптимизация для категорий */
@media (max-width: 768px) {
    .mrIbhhBu, .category-list {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 6px;
        padding: 8px 0;
        overflow-x: auto;
    }
    
    .H\+rN3zdQ {
        flex: 1;
        margin: 0;
    }
    
    .category-link {
        padding: 8px 12px;
        font-size: 17px;
        white-space: nowrap;
        text-align: center;
    }
    
    .products-list {
        justify-content: center;
        gap: 12px;
    }
    
    .product-item {
        width: calc(50% - 6px);
        min-width: 140px;
    }
    
    .product-image-container,
    .product-image {
        aspect-ratio: 1/1;
        width: 100%;
        height: auto !important;
        min-height: 0;
        max-height: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: 1/1;
        min-height: 0;
        max-height: none;
    }
    
    .product-link {
        min-height: 200px;
    }
    
    .product-title {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .product-price {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .mrIbhhBu, .category-list {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 4px;
        padding: 6px 0;
        overflow-x: auto;
    }
    
    .H\+rN3zdQ {
        flex: 1;
        margin: 0;
    }
    
    .category-link {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
        text-align: center;
    }
    
    .products-list {
        gap: 8px;
    }
    
    .product-item {
        width: calc(50% - 4px);
        min-width: 120px;
    }
    
    .product-image-container,
    .product-image {
        height: 120px;
    }
    
    .product-link {
        min-height: 180px;
    }
    
    .product-info {
        padding: 0 8px;
    }
    
    .product-title {
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .product-price {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .mrIbhhBu, .category-list {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 3px;
        padding: 4px 0;
        overflow-x: auto;
    }
    
    .H\+rN3zdQ {
        flex: 1;
        margin: 0;
    }
    
    .category-link {
        padding: 5px 8px;
        font-size: 10px;
        white-space: nowrap;
        text-align: center;
    }
    
    .product-item {
        width: 100%;
        max-width: 200px;
    }
    
    .product-image-container,
    .product-image {
        height: 150px;
    }
    
    .product-link {
        min-height: 220px;
    }
    
    .show-more-button {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* Дополнительные стили для улучшения отзывчивости */
@media (max-width: 600px) {
    .yS42W\+1o {
        width: 100%;
        margin: 0 auto 8px auto;
        font-size: 14px;
    }
    
    .gpkZOZr4 {
        padding: 0 8px;
    }
    
    .Jlm-mXPE {
        padding: 4px 12px;
    }
}

@media (max-width: 400px) {
    .gpkZOZr4 {
        padding: 0 4px;
    }
    
    .Jlm-mXPE {
        padding: 2px 8px;
    }
    
    .feature-item {
        padding: 12px;
    }
    
    .feature-title {
        font-size: 14px;
    }
    
    .feature-description {
        font-size: 12px;
    }
}

/* Мобильная оптимизация зума картинки */
@media (max-width: 768px) {
    .zoom-image-container {
        max-width: 95%;
        max-height: 85%;
    }
    
    .zoom-image-container img {
        width: auto;
        height: auto;
    }
    
    .zoom-close {
        top: 15px;
        right: 15px;
        padding: 8px;
    }
    
    .zoom-close svg {
        height: 24px;
        width: 24px;
    }
}

@media (max-width: 480px) {
    .zoom-image-container {
        max-width: 98%;
        max-height: 80%;
    }
    
    .zoom-image-container img {
        width: auto;
        height: auto;
    }
    
    .zoom-close {
        top: 10px;
        right: 10px;
        padding: 6px;
    }
    
    .zoom-close svg {
        height: 20px;
        width: 20px;
    }
}

@media (max-width: 360px) {
    .zoom-image-container {
        max-width: 100%;
        max-height: 75%;
    }
    
    .zoom-image-container img {
        width: auto;
        height: auto;
    }
    
    .zoom-close {
        top: 8px;
        right: 8px;
        padding: 5px;
    }
    
    .zoom-close svg {
        height: 18px;
        width: 18px;
    }
}

/* Исправление наложения иконки на текст */
@media (max-width: 768px) {
    .feature-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 0;
    }
    .feature-icon {
        flex-shrink: 0;
        font-size: 22px;
        margin-right: 8px;
        margin-bottom: 0;
        margin-top: 2px;
        line-height: 1;
    }
    .feature-content {
        flex: 1 1 0%;
        min-width: 0;
    }
}

/* Исправление пропорций фото товаров на мобильных */
@media (max-width: 768px) {
    .product-image-container,
    .product-image {
        aspect-ratio: 1/1;
        width: 100%;
        height: auto !important;
        min-height: 0;
        max-height: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: 1/1;
        min-height: 0;
        max-height: none;
    }
} 

.category-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: normal !important;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;   /* размер овала */
    font-size: 16px;       /* размер текста */
    line-height: normal;
}

@media (max-width: 768px) {
    .category-link {
        padding: 10px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .category-link {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .category-link {
        padding: 6px 12px;
        font-size: 12px;
    }
}
