.rangeprice{
    position: absolute;
    top: 0rem;
    right: 0;
}
.page_detail .main-product-card h4, .page_detail .main-product-card h5, .page_detail .main-product-card h6 {
    margin-bottom: 0;
}
.group-product-actions-cell{
        width: 23%;
}
.sistemflex{
    display: flex;
    gap: 3rem;
    position: relative;
}

.catalog-groups-page {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}
.sistemlinck_dw_order {
    display: inline-block;
    padding: 0.5rem 2rem;
    border-radius: 2rem;
    background: #e9e800;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.3s;
}
.page-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    background: #f8f9fa;
    padding: 0.9375rem;
    border-radius: 0.5rem;
    margin: 1.25rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.625rem 0.9375rem;
    background: white;
    border-radius: 0.375rem;
    box-shadow: 0 0.0625rem 0.1875rem rgba(0,0,0,0.1);
    min-width: 7.5rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.3125rem;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: bold;
    color: #0066cc;
}

.page-description {
    color: #666;
    margin-bottom: 1.875rem;
    font-size: 1rem;
    padding: 0.9375rem;
    background: #f0f8ff;
    border-radius: 0.5rem;
    border-left: 0.25rem solid #0066cc;
}

.groups-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.main-product-card {
    background: white;
    border-bottom: 0.2rem solid #e0e0e0;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.main-product-card:hover {
    border-color: #0066cc;
}

.main-product-header {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0rem;
    background: white;
    position: relative;
}

.product-image {
    width: 7rem;
    height: 7rem;
    flex-shrink: 0;
    border: 0.4rem solid #eee;
    border-radius: 0.5rem;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image.no-image {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.875rem;
}
.tara-products-table{
    width: 100%;
}
.tara-products-table tr td{
    border-bottom: 0.1rem solid #e0e0e0;
}
.tara-products-table tr th {
    text-align: left;
    font-weight: 300;
    font-size: 0.7rem;
    border-bottom: 0.1rem solid #e0e0e0;
    padding-top: 1rem;
    padding-bottom: 0.4rem;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.625rem;
}

.main-product-info {
    flex: 1;
    min-width: 0;
}

.product-name {
    margin: 0 0 0.9375rem 0;
    font-size: 1.25rem;
    color: #333;
    line-height: 1.3;
}

.product-name a {
    color: #7b8691;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 1rem;
}

.product-name a:hover {
    color: #003366;
    text-decoration: underline;
}

.group-stats {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 0.625rem;
    background: #f8f9fa;
    border-radius: 0.375rem;
}

.group-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-icon {
    font-size: 1rem;
}

.stat-text {
    font-size: 0.875rem;
    color: #555;
}

.product-colors-group,
.product-tara-group {
    margin: 0;
    padding: 0;
    border: 0;
    padding-left: 6rem;
    position: relative;
}

.colors-header,
.taras-header {
    display: block;
    position: absolute;
    width: 5.5rem;
    left: 0;
    background: #e9e800;
    padding: 0rem 0.5rem;
    box-sizing: border-box;
    border-radius: 1rem;
    height: 1.7rem;
    line-height: 1.7rem;
    text-align: center;
}

.colors-header .label,
.taras-header .label {
    font-weight: 600;
    color: #444;
    font-size: 0.7rem;
}

.more-info {
    font-size: 0.75rem;
    color: #888;
}

.product-colors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}

.product-color-item {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    border: 0.1rem solid white;
    overflow: hidden;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
}

.product-color-item:hover {
    transform: scale(1.15);
    z-index: 1;
    box-shadow: 0 0.125rem 0.375rem rgba(0,0,0,0.2);
}

.product-color-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-color-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #666;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-weight: bold;
}

.product-color-more .product-color-placeholder {
    background: #0066cc;
    color: white;
    font-size: 0.75rem;
}

.product-tara-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-tara-item {
    padding: 0rem 0.5rem;
    background: white;
    border: 0.1rem solid #ddd;
    border-radius: 1rem;
    font-size: 0.6rem;
    line-height: 1.5rem;
    color: #333;
    font-weight: 500;
    cursor: default;
    height: 1.7rem;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
}

.product-tara-item:hover {
    background: #f0f8ff;
    border-color: #0066cc;
    color: #0066cc;
}

.product-tara-more {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.price-range,
.price-single {
    padding: 0rem 0.5rem;
    height: 1.7rem;
}

.price-range .label,
.price-single .label {
    font-weight: 600;
    color: #5d4037;
}

.price-range .value,
.price-single .value {
    font-weight: bold;
    color: #d84315;
    font-size: 1rem;
}

.product-labels {
    display: flex;
    gap: 0.625rem;
    margin: 0.9375rem 0;
    flex-wrap: wrap;
}

.label-tovar1,
.label-hit,
.label-novinka {
    display: inline-block;
    padding: 0.3125rem 0.75rem;
    border-radius: 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.1);
}

.label-tovar1 {
    background: linear-gradient(135deg, #9B2FAE 0%, #7B1FA2 100%);
}

.label-hit {
    background: linear-gradient(135deg, #50AE55 0%, #388E3C 100%);
}

.label-novinka {
    background: linear-gradient(135deg, #FC5830 0%, #E64A19 100%);
}

.main-product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
    min-width: 12.5rem;
    align-items: flex-end;
    justify-content: center;
    width: 17rem;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #000;
    border: none;
    padding: 0.75rem 1.5625rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
}

.add-to-cart-btn:hover {

background: #e9e80082;
}

.add-to-cart-btn.single {
    background: #e9e800;
}

.add-to-cart-btn.single:hover {
background: #e9e80082;
}

.details-link {
    display: block;
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: 0.8125rem;
    margin-top: 0.3125rem;
}

.details-link:hover {
    color: #0066cc;
    text-decoration: underline;
}

.group-actions {
    width: 100%;
}

.toggle-group-btn {
    background: #e9e800;
    color: white;
    border: none;
    padding: 0rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    height: 2.5rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-weight: 500;
    transition: all 0.3s;
    width: 100%;
}

.toggle-group-btn:hover {
    background: #fffe7e;
}

.toggle-group-btn .icon {
    transition: transform 0.3s;
    font-size: 0.75rem;
}

.toggle-group-btn.active .icon {
    transform: rotate(180deg);
}

.group-action-info {
    font-size: 0.6875rem;
    color: #888;
    text-align: center;
    margin-top: 0.3125rem;
    font-style: italic;
}

.group-products-container {
    padding: 0;
}

.group-products-header {
    background: #7b8691;
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
}

.group-products-header h4 {
    margin: 0 0 0.625rem 0;
    font-size: 1.125rem;
    color: white;
}

.group-total-info {
    font-size: 0.875rem;
    opacity: 0.9;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9375rem;
    color: #666;
    padding: 2.5rem;
    text-align: center;
    background: white;
}

.spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 0.25rem solid #f3f3f3;
    border-top: 0.25rem solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.group-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(21.875rem, 1fr));
    gap: 1.25rem;
}

.group-product-item {
    background: white;
    border: 0.0625rem solid #e0e0e0;
    border-radius: 0.625rem;
    padding: 1.25rem;
    display: flex;
    gap: 1.25rem;
    transition: all 0.3s;
    position: relative;
}

.group-product-item:hover {
    border-color: #0066cc;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.1);
}

.group-product-image {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    overflow: hidden;
    background: white;
}

.group-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.3125rem;
}

.group-product-content {
    flex: 1;
    min-width: 0;
}

.group-product-name {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: #333;
    line-height: 1.3;
}

.group-product-name a {
    color: #0066cc;
    text-decoration: none;
}

.group-product-name a:hover {
    text-decoration: underline;
}
.toggle-group-btn .text {
    font-size: 0.8rem;
    line-height: 1.40625rem;
    text-align: center;
}
.group-product-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.group-product-color,
.group-product-tara {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
}

.group-product-color .color-image {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 0.1rem solid #ddd;
    object-fit: cover;
}
.group-product-name-cell{
    width: 60%;
}
.group-product-nmtx {
    font-size: 0.75rem;
    color: #666;
    background: #f0f8ff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
    margin: 0.3125rem 0;
}

.group-product-labels {
    display: flex;
    gap: 0.375rem;
    margin: 0.625rem 0;
}

.group-product-label {
    padding: 0.1875rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: white;
}

.group-product-label.tovar1 { background: #9B2FAE; }
.group-product-label.hit { background: #50AE55; }
.group-product-label.novinka { background: #FC5830; }

.group-product-actions {
    display: flex;
    align-items: center;
    gap: 0.9375rem;
    flex-wrap: wrap;
}

.group-product-price {
    flex: 1;
}

.group-product-price .current {
font-size: 0.8rem;
    font-weight: 500;
    color: #333;
    padding-left: 2rem;
}

.group-product-price .old {
    font-size: 0.875rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.3125rem;
    position: relative;
}

.quantity-btn {
    background: #fff;
    border: 0;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: absolute;
}
.quantity-btn.plus{
    right: 0.1rem;
}
.quantity-btn.minus{
    left: 0.1rem;
}
.quantity-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.quantity-input {
    width: 8rem;
    height: 2rem;
    text-align: center;
    border: 0.0625rem solid #ddd;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.group-add-to-cart-btn {
    background: #e9e800;
    color: #000;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.6rem;
    font-weight: 400;
    transition: all 0.3s;
    white-space: nowrap;
}

.group-add-to-cart-btn:hover:not(:disabled) {
  background: #f4f362;
}

.group-add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.no-products-message {
    text-align: center;
    padding: 3.125rem;
    background: #f8f9fa;
    border-radius: 0.625rem;
    color: #666;
    font-size: 1.125rem;
}

.tara-group-block {
    margin-bottom: 3rem;
    overflow: hidden;
    background: white;
}
.page_detail h4.group-product-name{
    font-size: 0.9rem;
    padding: 1rem 0rem;
}
.tara-group-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 2rem;
    border-radius: 2rem;
}

.tara-group-title {
    margin: 0;
    font-size: 1rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.tara-icon {
    font-size: 1.125rem;
}

.tara-count {
    margin-left: auto;
    font-size: 1rem;
    color: #6c757d;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.tara-products-list {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(21.875rem, 1fr));
    gap: 1.25rem;
    background: #fafafa;
}

.cart-added-notification {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    background: #4CAF50;
    color: white;
    padding: 0.9375rem 1.25rem;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.625rem rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    z-index: 10000;
    animation: cartNotificationSlideIn 0.3s ease;
}

.cart-added-notification.error {
    background: #f44336;
}

.notification-icon {
    font-size: 1.125rem;
}

.notification-text {
    font-size: 0.875rem;
}

@keyframes cartNotificationSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes cartNotificationSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.group-add-to-cart-btn.loading,
.add-to-cart-btn.loading {
    position: relative;
    color: transparent !important;
}

.group-add-to-cart-btn.loading::after,
.add-to-cart-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border: 0.125rem solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: buttonSpin 0.8s linear infinite;
}

@keyframes buttonSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 75rem) {
    .group-products-list {
        grid-template-columns: repeat(auto-fill, minmax(18.75rem, 1fr));
    }
}

@media (max-width: 62rem) {
    .main-product-header {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .product-image {
        width: 7.5rem;
        height: 7.5rem;
        margin: 0 auto;
    }
    
    .main-product-actions {
        width: 100%;
        align-items: stretch;
    }
    
    .group-stats {
        flex-direction: column;
        gap: 0.625rem;
    }
}

@media (max-width: 48rem) {
    .group-products-list {
        grid-template-columns: 1fr;
    }
    
    .group-product-item {
        flex-direction: column;
    }
    
    .group-product-image {
        width: 100%;
        height: 9.375rem;
    }
    
    .product-colors-list {
        gap: 0.5rem;
    }
    
    .product-color-item {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .page-stats {
        flex-direction: column;
        gap: 0.625rem;
    }
    
    .stat-item {
        min-width: auto;
        width: 100%;
    }
    
    .tara-products-list {
        grid-template-columns: 1fr;
        padding: 0.9375rem;
    }
    
    .tara-group-header {
        padding: 0.75rem 0.9375rem;
    }
    
    .tara-group-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3125rem;
    }
    
    .tara-count {
        margin-left: 0;
        align-self: flex-start;
    }
}

/* Дополнительные стили для блоков корзины */
.product-item__buy-quantity-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 2rem;
    padding: 0.25rem;
}

.product-item__buy-quantity-btn-minus,
.product-item__buy-quantity-btn-plus {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.product-item__buy-quantity-btn-minus:hover,
.product-item__buy-quantity-btn-plus:hover {
    background: #f0f0f0;
}

.product-item__buy-quantity-btn-minus.gray svg,
.product-item__buy-quantity-btn-plus.active svg {
    stroke: #333;
}

.product-item__buy-quantity-input-input {
    width: 3rem;
    height: 2rem;
    border: none;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    background: transparent;
}

.product-item__buy-quantity-input-input:focus {
    outline: none;
}

.single-product-cart-block {
    width: 100%;
}

.add-to-cart-btn.hidden {
    display: none;
}

.group-product-row .group-add-to-cart-btn.hidden {
    display: none;
}

.group-product-row .product-item__buy-quantity-container {
    margin-left: auto;
}
.fixed_dixpro{
    position: fixed;
    bottom: 1rem;
    background: #7b8691;
    width: 20rem;
    text-align: center;
    padding: 1rem;
    border-radius: 2rem;
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #dc3545;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    text-align: right;
    position: sticky;
    bottom: 0;
    background: #fff;
    border-radius: 0 0 8px 8px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.color-edit-group,
.image-edit-group {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 10px;
}

.color-file-preview,
.image-preview {
    margin: 10px 0;
    max-width: 100px;
}

.color-file-preview img,
.image-preview img {
    max-width: 100%;
    max-height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
    margin-right: 10px;
}

.btn-secondary:hover {
    background: #545b62;
}

.message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Стили для миниатюр в заголовках фасовок (одна миниатюра) */
.tara-group-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.tara-group-title {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tara-preview-image {
     width: 3rem;
    height: 3rem;
    border-radius: 102%;
    overflow: hidden;
    border: 1px solid #ddd;
    margin-left: 10px;
}

.tara-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Стили для кнопки редактирования */
.product-edit-main-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: 10px;
    color: #6c757d;
    transition: color 0.2s;
}

.product-edit-main-btn:hover {
    color: #007bff;
}

.product-edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    color: #6c757d;
    transition: color 0.2s;
    margin-left: 10px;
}

.product-edit-btn:hover {
    color: #007bff;
}

/* Стили для характеристик товара (только цвет, без термостойкости) */
.group-product-characteristics {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.group-product-color {
    display: flex;
    align-items: center;
    gap: 5px;
}

.color-image {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

.color-name {
    font-size: 13px;
    color: #666;
}

/* Стили для названия с бейджами */
.product-color-badge,
.product-termo-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 5px;
}

.product-color-badge {
    background: #e3f2fd;
    color: #0d47a1;
}

.product-termo-badge {
    background: #ffebee;
    color: #b71c1c;
}


/* Мобильная адаптация (только пиксели) */
@media screen and (max-width: 768px) {
    .main-product-header {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }
.group-product-details-cell{
    display:none!important;
}
    .product-image {
        width: 100px;
        height: auto;
        max-width: 100%;
        margin: 0 auto;
        border-radius: 14px;
        left: 0;
        position: absolute;
        top: 11px;
    }
    .main-product-info .product-name{
        font-size: 14px;
        padding-left: 103px;
        height: 100px;
    }
.product-image img {
    height: 95px;
}
    .sistemflex {
        gap: 8px;
    }
    .product-colors-group, .product-tara-group {
        width: fit-content!important;
    }
    .rangeprice {
position: relative;
        top: 0;
        right: auto;
        width: 100%;
        padding-top: 4px;
        text-align: right;
        margin-top: 0;
    }

    /* Исправление для colors-header и taras-header */
    .product-colors-group,
    .product-tara-group {
        padding-left: 0;
        width: 100%;
        position: relative;
    }

    .colors-header,
    .taras-header {
        position: relative; /* Меняем с absolute на relative */
        width: auto; /* Автоматическая ширина */
        left: auto;
        display: inline-block; /* Чтобы не занимал всю ширину */
        background: #e9e800;
        padding: 4px 16px; /* 0.5rem = 8px, делаем 4px 16px для лучшего вида */
        border-radius: 24px; /* 1rem = 16px, увеличиваем для мобильных */
        height: 32px; /* 1.7rem ≈ 27px, делаем 32px для удобства тапа */
        line-height: 24px; /* Выравнивание текста */
        font-size: 13px; /* Явно задаем размер текста */
        margin-bottom: 0px; /* Добавляем отступ снизу */
        box-sizing: border-box;
        text-align: center;
        white-space: nowrap; /* Запрещаем перенос текста */
    }

    .colors-header .label,
    .taras-header .label {
        font-size: 13px; /* Увеличиваем для читаемости */
        font-weight: 600;
    }
     .product-tara-list,
    .product-colors-list {
        display:none;
    }

    .product-color-item {
        width: 36px; /* 1.7rem ≈ 27px, делаем 36px для удобного тапа */
        height: 36px;
        border-width: 2px;
    }

    .product-tara-list {
        justify-content: flex-start;
        gap: 8px;
        margin-top: 5px;
        width: 100%;
    }

    .product-tara-item {
        height: 32px; /* 1.7rem ≈ 27px, делаем 32px */
        line-height: 32px;
        padding: 0 12px; /* 0.5rem = 8px, увеличиваем */
        font-size: 12px; /* 0.6rem ≈ 10px, увеличиваем */
        border-radius: 20px; /* 1rem = 16px, увеличиваем */
        border-width: 1px;
    }

    /* Исправление для page_detail h4.group-product-name */
    .page_detail h4.group-product-name {
        font-size: 16px; /* 0.9rem ≈ 14px, увеличиваем */
        padding: 16px 0; /* 1rem = 16px */
        margin: 0;
        line-height: 1.3;
    }

    /* Остальные стили... */
    .main-product-actions {
        width: 100%;
        align-items: stretch;
    }

    .single-product-cart-block {
        width: 100%;
    }

    .product-item__buy-quantity-container {
        width: 100%;
        justify-content: center;
    }

    .group-actions {
        width: 100%;
    }
    .product-colors-group, .product-tara-group {

        display: flex!important;
    }
    .toggle-group-btn {
        width: 100%;
        padding: 12px;
    }

    /* Таблица товаров группы */
    .tara-products-table {
        display: block;
        overflow-x: auto;
    }

    .tara-products-table thead {
        display: none;
    }

    .tara-products-table tbody,
    .tara-products-table tr,
    .tara-products-table td {
        display: block;
        width: 100%;
    }

    .tara-products-table tr {
        margin-bottom: 16px;
        padding: 16px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
    }

    .group-product-name-cell,
    .group-product-details-cell,
    .group-product-actions-cell {
        width: 100% !important;
        padding: 4px 0;
    }

    .group-product-details-cell {
        margin: 8px 0;
    }

    .group-product-actions-cell .group-product-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .group-product-price {
        text-align: left;
        padding-left: 0;
    }

    .group-product-price .current {
        padding-left: 0;
        font-size: 14px;
    }

    .quantity-control {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 8px 0;
    }

    .quantity-btn.minus,
    .quantity-btn.plus {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 44px;
        height: 44px;
    }

    .quantity-input {
        width: calc(100% - 100px);
        margin: 0 8px;
        height: 44px;
        font-size: 16px;
    }

    .group-add-to-cart-btn {
        width: 100%;
        margin-top: 8px;
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Заголовки фасовок */
    .tara-group-header {
        padding: 12px;
    }

    .tara-group-title {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 16px;
    }

    .tara-preview-image {
        width: 40px;
        height: 40px;
    }

    .tara-count {
        margin-left: 0;
        width: 100%;
        text-align: center;
        padding: 6px 12px;
        font-size: 14px;
    }

    /* Модальное окно */
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .modal-header {
        padding: 12px 16px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .modal-close {
        font-size: 28px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-footer {
        padding: 12px 16px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        margin-bottom: 6px;
        font-size: 14px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }

    .color-edit-group,
    .image-edit-group {
        padding: 8px;
    }

    .color-file-preview img,
    .image-preview img {
        max-width: 100%;
        height: auto;
        max-height: 80px;
    }

    .modal-footer {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .modal-footer .btn {
        width: 100%;
        margin: 0;
        padding: 12px 16px;
        font-size: 14px;
    }

    .btn-secondary {
        margin-right: 0;
    }

    /* Фиксированный блок скачивания */
    .fixed_dixpro {
        width: 90%;
        left: 5%;
        right: 5%;
        padding: 12px;
        bottom: 8px;
        border-radius: 32px;
    }

    .sistemlinck_dw_order {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Лейблы товаров */
    .product-labels {
        justify-content: center;
        gap: 8px;
    }

    .label-tovar1,
    .label-hit,
    .label-novinka {
        padding: 4px 12px;
        font-size: 11px;
    }

    /* Загрузчик */
    .loading-spinner {
        padding: 16px;
    }

    .spinner {
        width: 32px;
        height: 32px;
        border-width: 3px;
    }

    /* Статистика */
    .page-stats {
        gap: 8px;
        padding: 12px;
    }

    .stat-item {
        min-width: auto;
        width: 100%;
        padding: 8px 12px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-value {
        font-size: 16px;
    }

    /* Описание страницы */
    .page-description {
        padding: 12px;
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* Дополнительная адаптация для очень маленьких экранов */
@media screen and (max-width: 480px) {
    .main-product-header {
        padding: 12px;
    }

    .product-name {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .product-name a {
        font-size: 14px;
    }

    .colors-header,
    .taras-header {
        padding: 3px 12px;
        height: 28px;
        line-height: 22px;
        font-size: 12px;
        border-radius: 20px;
    }

    .colors-header .label,
    .taras-header .label {
        font-size: 12px;
    }

    .product-color-item {
        width: 32px;
        height: 32px;
    }

    .product-tara-item {
        height: 28px;
        line-height: 28px;
        padding: 0 8px;
        font-size: 11px;
    }

    .page_detail h4.group-product-name {
        font-size: 15px;
        padding: 12px 0;
    }

    .product-colors-list {
        gap: 4px;
    }

    .product-tara-list {
        gap: 6px;
    }

    .group-product-name {
        font-size: 14px;
    }

    .group-product-nmtx {
        font-size: 11px;
    }

    .group-product-short-desc {
        font-size: 12px;
    }
    .toggle-group-btn {
        height: 40px;
        padding: 0 16px;
        border-radius: 30px!important;
        font-size: 31px!important;
    }
    .product-color-badge,
    .product-termo-badge {
        font-size: 14px;
        padding: 2px 12px;
        margin-left: 4px;
    }
        .colors-header .label, .taras-header .label {
        font-size: 10px!important;
    }
        .product-labels {
        position: absolute!important;
        top: 73px!important;
        left: 0!important;
        }
        .product-item__buy-quantity-container {
    border-radius: 30px!important;

}
.product-item__buy-quantity-input-input {
    width: 100%;
    height: 45px;
    border-radius: 30px;
    font-size: 16px;
}
.product-item__buy-quantity-btn-minus, .product-item__buy-quantity-btn-plus {
    width: 85px;
    height: 30px;
    border-radius: 50%;
}
.main-product-card {
    border-bottom: 1rem solid rgba(22, 50, 93, .3);
}


    .group-product-price .current {
        font-size: 28px!important;
    }
    .sistemlinck_dw_order {
        border-radius: 30px!important;
    }
    .page_detail h5, .page_detail h6 {
        width: 100%!important;
    }
    .group-product-characteristics {
        gap: 4px;
    }
    .group-add-to-cart-btn {
        border-radius: 30px!important;
    }
    .quantity-btn.minus, .quantity-btn.plus {
        width: 48px;
        height: 48px;
        color: #000;
        font-size: 36px;
    }
        .group-add-to-cart-btn, .add-to-cart-btn {
        min-height: 48px;
        font-size: 16px;
        border-radius: 30px;
    }
.tara-group-block {
    margin-bottom: 3rem;
    overflow: hidden;
    background: white;
    border: 4px solid #e0e0e0;
    padding: 10px;
    border-radius: 10px;
}
    .color-image {
        width: 24px;
        height: 24px;
        border-width: 1px;
    }

    .color-name {
        font-size: 11px;
    }

    .price-range .value,
    .price-single .value {
        font-size: 14px;
    }

    .price-range,
    .price-single {
        padding: 0 6px;
        height: 28px;
    }

    .toggle-group-btn {
        height: 40px;
        padding: 0 16px;
    }

    .toggle-group-btn .text {
        font-size: 12px;
    }

    .group-action-info {
        font-size: 10px;
    }

    .tara-group-title {
        font-size: 14px;
    }

    .tara-count {
        font-size: 12px;
    }

    .tara-products-list {
        padding: 12px;
        gap: 12px;
    }

    /* Кнопки количества */
    .quantity-btn {
        width: 40px;
        height: 40px;
    }

    .quantity-input {
        height: 40px;
        font-size: 14px;
    }

    .group-add-to-cart-btn {
        font-size: 13px;
        padding: 10px 14px;
    }

    /* Модальное окно для маленьких экранов */
    .modal-content {
        margin: 10px auto;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .form-control {
        font-size: 13px;
        padding: 8px 10px;
    }

    .color-file-preview img,
    .image-preview img {
        max-height: 60px;
    }
}

/* Исправление горизонтального скролла для таблиц */
.tara-products-table {
    overflow-x: auto;
    display: block;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

/* Улучшение тач-взаимодействия */
@media (hover: none) and (pointer: coarse) {
    .product-color-item:hover,
    .product-tara-item:hover,
    .toggle-group-btn:hover,
    .add-to-cart-btn:hover,
    .group-add-to-cart-btn:hover {
        transform: none;
    }
    .group-product-details-cell{
        display:none;
    }

    .product-color-item,
    .product-tara-item,
    .toggle-group-btn,
    .add-to-cart-btn,
    .group-add-to-cart-btn {
        transition: none;
    }

    .colors-header,
    .taras-header {
        cursor: default;
    }

    .quantity-btn.minus,
    .quantity-btn.plus {
        width: 48px;
        height: 48px;
    }

    .quantity-btn.minus svg,
    .quantity-btn.plus svg {
        width: 24px;
        height: 24px;
    }

    .quantity-input {
        height: 48px;
        font-size: 16px;
    }

    .group-add-to-cart-btn,
    .add-to-cart-btn {
        min-height: 48px;
    }

    .toggle-group-btn {
        min-height: 48px;
    }
}