    /* Карточка товара */
    .product-card {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        background: #fff;
        padding: 12px;
        border-radius: 12px;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .product-gallery {
        flex: 1;
        min-width: 180px;
		position: relative;
    }
	
	.lable_block {
     margin-left: 0; 
    width: 150px;
    height: 45px;
    border: 0px solid blue;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 0;
    z-index: 999;
}

    .short_img {
        position: relative;
        margin: 0;
        float: none;
    }

    .zoomgellery {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: #FFC634;
        opacity: 0.85;
        text-align: center;
        padding: 4px;
        cursor: pointer;
        font-size: 15px;
    }

    .short_img img {
        width: 100%;
        display: block;
        max-height: 220px;
        object-fit: contain;
    }

    .product-info {
        flex: 2;
        min-width: 260px;
    }

    .title_tovar {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .product-meta {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        flex-wrap: wrap;
        margin: 8px 0 10px 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 6px;
    }

    .product-artikul {
        color: #666;
        font-size: 12px;
    }

    .product-price {
        font-size: 18px;
    }

    .product-price span {
        font: bold 20px Tahoma, serif;
        color: red;
    }

    /* Контейнер формы выбора размера */
    .size-selector {
        background: #f0f7fc;
        border-radius: 12px;
        padding: 8px 12px;
        border: 1px solid #e0eef5;
    }

    /* Заголовок формы */
    .size-selector__title {
        font-weight: bold;
        margin-bottom: 6px;
        font-size: 13px;
        color: #1a4a6e;
    }

    /* Контейнер с опциями размеров - сетка 2 колонки */
    .size-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    /* Каждая опция размера */
    .size-option {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: #e6f0f8;
        border-radius: 30px;
        padding: 4px 8px;
        cursor: pointer;
        border: 1px solid transparent;
        width: 100%;
        box-sizing: border-box;
    }

    .size-option input {
        margin: 0;
        width: 14px;
        height: 14px;
        accent-color: #0a5c8e;
    }

    .size-value {
        font-weight: 600;
        font-size: 0.8rem;
        color: #1a4a6e;
        flex: 1;
    }

    .size-badge {
        background: rgba(45, 110, 140, 0.12);
        padding: 2px 8px;
        border-radius: 30px;
        font-size: 0.7rem;
        color: #2c5a7a;
        white-space: nowrap;
    }

    /* Кнопка "Указать свой размер" - занимает всю ширину ячейки сетки */
    .custom-size-btn {
        width: 100%;
        padding: 5px 6px;
        background: #24466d;
        border: 1px solid #24466d;
        border-radius: 30px;
        font-size: 14px;
        font-weight: 600;
        color: #f9fdff;
        cursor: pointer;
        box-sizing: border-box;
        min-height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .custom-size-btn:hover {
        background: #1d4a7f;
    }

    /* Обертка для переключателя качества */
    .quality-wrapper {
        display: flex;
        gap: 8px;
        margin: 8px 0 0 0;
    }

    /* Переключатель качества */
    .quality-toggle {
        flex: 1;
        display: flex;
        background: #e2edf5;
        border-radius: 30px;
        padding: 2px;
    }

    .quality-option {
        flex: 1;
        text-align: center;
        padding: 4px 0;
        border-radius: 30px;
        font-size: 14px;
        font-weight: 600;
        background: transparent;
        color: #2c607e;
        cursor: pointer;
    }

    .quality-option.active {
        background: white;
        color: #0a5c8e;
        box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    }

    /* Блок с кнопкой "Купить" и комментарием */
    .product-actions {
        display: flex;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .product-actions .button_buy_selector {
        padding: 6px 24px;
        font-size: 16px;
        width: auto;
        border: none;
        border-radius: 5px;
        background: linear-gradient(to top, #AF0705, #cb635d);
        background-color: #AF0705;
        color: white;
        font-weight: bold;
        cursor: pointer;
    }
	
	.product-actions .button_buy_selector:hover {
    background: linear-gradient(to top, #870600, #db6761);
	}

    .product-actions .short_coment {
        margin: 0;
        font-size: 11px;
        color: #555;
        display: flex;
        align-items: center;
    }

    /* СТИЛИ МОДАЛЬНОГО ОКНА КАЛЬКУЛЯТОРА */
    .modal-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 10000;
        justify-content: center;
        align-items: center;
        animation: fadeIn 0.3s;
    }

    .modal-overlay.show {
        display: flex;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .modal-window {
        background: #fff;
        padding: 30px 35px 25px 35px;
        border-radius: 18px;
        max-width: 380px;
        width: 90%;
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        position: relative;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            transform: translateY(-30px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .modal-close {
        position: absolute;
        top: 10px;
        right: 18px;
        font-size: 28px;
        font-weight: 300;
        color: #999;
        cursor: pointer;
        transition: 0.2s;
        line-height: 1;
    }
    .modal-close:hover {
        color: #333;
    }

    .calc-title {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 20px;
        color: #1a4a6e;
        text-align: center;
    }

    .calc-group {
        margin-bottom: 14px;
    }

    .calc-group label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #2c5a7a;
        margin-bottom: 4px;
    }

    .calc-group input,
    .calc-group select {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #d0dbe8;
        border-radius: 8px;
        font-size: 15px;
        box-sizing: border-box;
        background: #f8faff;
    }

    .calc-group input:focus,
    .calc-group select:focus {
        outline: none;
        border-color: #0a5c8e;
        box-shadow: 0 0 0 3px rgba(10,92,142,0.1);
    }

    .calc-result {
        font-size: 22px;
        font-weight: 700;
        color: #0a5c8e;
        text-align: center;
        padding: 12px 0 6px 0;
        border-top: 2px dashed #e0eef5;
        margin-top: 6px;
    }

    .calc-result b {
        color: #d32f2f;
        font-size: 26px;
    }

    .button2 {
        display: inline-block;
        padding: 12px 20px;
        background: #0a5c8e;
        color: #fff;
        font-weight: 600;
        font-size: 18px;
        border-radius: 30px;
        border: none;
        cursor: pointer;
        text-decoration: none;
        transition: 0.2s;
        text-align: center;
    }

    .button2:hover {
        background: #084a73;
		text-decoration: none;
		color:#efefef;
    }
	
	.min-order-warning{
    background:#fddd9a;
    border-left:3px solid #2e7d32;
    font-size:15px;
	font-weight: 600;
    color:#b7211e;
    padding:5px;
    display:none;
    margin:10px 0;
}

    /* Адаптивность */
    @media (max-width: 550px) {
        .product-card {
            flex-direction: column;
        }
        .size-options {
            grid-template-columns: 1fr 1fr;
        }
    }

    @media (max-width: 400px) {
        .size-options {
            grid-template-columns: 1fr;
        }
        .modal-window {
            padding: 20px;
        }
    }