@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&subset=cyrillic');


body {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin-bottom: 0;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 0;
}

.product {
    position: relative;
    display: flex;
    border: 1px solid #363636;
    overflow: hidden;
}

.image-container {
    flex: 1;
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
}

.thumbnails {
    display: flex;
    flex-direction: column;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.thumbnail {
    margin-bottom: 10px;
    cursor: pointer;
}

.thumbnail img {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.thumbnail.active img {
    opacity: 0.5;
}

.info {
    color: #000000;
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1, p {
    margin: 0 0 10px 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

h1 {
    font-weight: 600;
}

.buy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    text-align: center;
    background-color: #1a1a1a;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    height: 36px;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    min-width: 450px;
    max-width: 450px;
    transition: background-color 0.3s ease;
    margin: 0 auto;
}

.buy-button:hover {
    background-color: #252525;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 25px;
    cursor: pointer;
    font-size: 30px;
    color: #000000;
    z-index: 999;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.9),
        0 0 10px rgba(255, 255, 255, 0.7),
        0 0 15px rgba(255, 255, 255, 0.5);
    transition: all 0.1s ease;
}

.size-selector {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.size-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    transition: all 0.2s;
    color: #131313; 
}

/* НОВЫЙ СТИЛЬ: недоступный размер */
.size-btn-unavailable {
    background-color: #f5f5f5;
    color: #999;
    text-decoration: line-through;
    border-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: auto; /* Оставляем возможность клика для показа сообщения */
}

.size-btn.size-btn-unavailable:hover {
    background-color: #f0f0f0;
}

.size-btn.selected {
    background-color: #313131;
    color: #fff;
    font-weight: 500;
}

.color-selector {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.color-btn {
    width: 30px;
    height: 30px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.color-btn.selected {
    border-color: #000000;
}

.color-btn.black {
    background-color: #000000;
}
.color-btn.pink {
    background-color: #faaabe;
}
.color-btn.white {
    background-color: #ffffff;
}
.color-btn.beige {
    background-color: #ecd6b6;
}
.color-btn.milk-white {
    background-color: #fff9eb;
}
.color-btn.gray {
    background-color: #808080;
}
.color-btn.dark-blue {
    background-color: #20267c;
}
.color-btn.dark-beige {
    background-color: #ceb48e;
}

.size-error {
    color: #b40805ff;
    font-size: 14px;
    margin: 5px 0;
    display: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.cart-button-container {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    width: 80%;
    justify-content: center;
    align-items: center;
}

.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #7c7c7c;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    display: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.product-badge {
    margin: 0;
    padding: 0;
    min-height: 0;
}

/* Кнопки действий - 3 в ряд */
.action-buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    width: 80%;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 80px;
    transition: opacity 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.action-btn:hover {
    opacity: 0.8;
}

.action-btn svg {
    width: 22px;
    height: 22px;
    margin-bottom: 5px;
}

.action-text {
    font-size: 12px;
    color: #1a1a1a;
    text-align: center;
    margin-top: 3px;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
}

/* Уведомления */
.copy-notification,
.share-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #7c7c7c;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 1000;
    display: none;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
}

/* Стили для опции футляра */


/* МОБИЛЬНАЯ ВЕРСИЯ */
@media only screen and (max-width: 1108px) {
    body {
        background-size: cover;
        background-color: #ffffff;
        background-repeat: no-repeat;
        background-position: center;
        margin: 0;
        padding: 0;
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
    }
    
    .size-btn {
        color: #131313; 
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
    }
    
    .wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        margin-bottom: 0;
    }
    
    .container {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 20px;
        box-sizing: border-box;
        margin-bottom: 0;
    }
    
    .product {
        position: relative;
        display: flex;
        flex-direction: column;
        border: 1px solid #363636;
        overflow: hidden;
    }
    
    .image-container {
        flex: 1;
    }
    
    .image-container img {
        display: block;
        width: 100%;
        height: auto;
    }
    
    .thumbnails {
        display: flex;
        flex-direction: row;
        padding: 0px;
        align-items: center;
        justify-content: center;
        overflow-x: auto;
        margin-bottom: 0px;
        margin-top: 15px;
    }
    
    .thumbnail {
        margin-right: 10px;
        cursor: pointer;
    }
    
    .thumbnail:last-child {
        margin-right: 0;
    }
    
    .thumbnail img {
        display: block;
        width: 50px;
        height: 50px;
        object-fit: cover;
        border: 1px solid #ddd;
    }
    
    .thumbnail.active img {
        opacity: 0.5;
    }
    
    .info {
        color: #000000;
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    h1, p {
        margin: 0 0 10px 0;
        font-size: 25px;
        text-align: center;
        font-family: 'Montserrat', sans-serif;
    }
    
    h1 {
        font-weight: 600;
    }
    
    .buy-button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        height: 36px;
        font-size: 13px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        min-width: 250px;
        max-width: 290px;
    }
    
    .close-button {
        position: absolute;
        top: 10px;
        right: 20px;
        cursor: pointer;
        font-size: 35px;
        color: #000000;
        z-index: 999;
        text-decoration: none;
        font-family: 'Montserrat', sans-serif;
        font-weight: 300;
    }
    
    .cart-button-container {
        width: 100%;
        flex-direction: row;
    }
    
    .color-selector {
        margin: 10px 0;
        gap: 6px;
    }
    
    .color-btn {
        width: 25px;
        height: 25px;
    }
    
    .notification,
    .copy-notification,
    .share-notification {
        font-size: 12px;
        padding: 10px 20px;
        bottom: 15px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
    }
    
    .product-badge {
        margin: 0;
        padding: 0;
        min-height: 0;
    }
    
    .product-description {
        margin-top: 5px;
        font-size: 15px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
    }
    
    /* Кнопки действий на мобильных */
    .action-buttons-container {
        width: 100%;
        gap: 15px;
        margin-top: 15px;
    }
    
    .action-btn {
        width: 70px;
        padding: 8px 0;
        font-family: 'Montserrat', sans-serif;
    }
    
    .action-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .action-text {
        font-size: 11px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
    }
    
}
/* КНОПКА ТАБЛИЦЫ РАЗМЕРОВ - КОРОТКАЯ, БЕЗ СКРУГЛЕНИЙ */
.size-table-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background-color: #e0e0e0;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #1a1a1a;
    transition: background-color 0.3s ease;
    margin-top: 12px;
    margin-bottom: 12px;
    width: auto;
    min-width: 130px;
    max-width: 160px;
    margin-left: auto;
    margin-right: auto;
}

.size-table-btn:hover {
    background-color: #cccccc;
}

/* МОДАЛЬНОЕ ОКНО */
.size-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.size-modal-content {
    background-color: white;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

.size-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    z-index: 10001;
}

.size-modal-close:hover {
    color: #000;
}

.size-modal-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.size-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Montserrat', sans-serif;
}

.size-modal-table th,
.size-modal-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.size-modal-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

@media only screen and (max-width: 1108px) {
    .size-table-btn {
        padding: 5px 10px;
        font-size: 11px;
        min-width: 120px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .size-modal-content {
        width: 95%;
        padding: 15px;
    }
    
    .size-modal-table th,
    .size-modal-table td {
        padding: 8px;
        font-size: 12px;
    }
}
/* Стили для блока погоды */
.weather-container {
    margin-top: 12px;
    margin-bottom: 5px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.weather-toggle-btn {
    background: transparent !important;
    border: none !important;
    color: rgba(0, 0, 0, 0.5) !important;
    font-size: 13px !important;
    font-family: 'Montserrat', sans-serif !important;
    cursor: pointer !important;
    padding: 5px 0 !important;
    text-decoration: underline !important;
    text-decoration-style: dotted !important;
    text-underline-offset: 3px !important;
    transition: color 0.2s ease !important;
    display: inline-block !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.weather-toggle-btn:hover {
    color: rgba(0, 0, 0, 0.8) !important;
    background: transparent !important;
}

.weather-content {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.7);
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    width: 100%;
}

@media only screen and (max-width: 1108px) {
    .weather-toggle-btn {
        font-size: 12px !important;
        padding: 4px 0 !important;
    }
    
    .weather-content {
        font-size: 12px;
    }
    
    .weather-container {
        margin-top: 10px;
        margin-bottom: 3px;
    }
}