
.account-dashboard {
    margin: 3rem 0 8rem;
}

.account-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.account-sidebar {
    width: 320px;
    flex-shrink: 0;
}

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

.account-sidebar-widget {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.account-sidebar-title {
    background: #34495e;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 1rem 1.25rem;
    margin: 0;
    letter-spacing: 0.04em;
}

.account-sidebar-content {
    padding: 1.5rem 1.25rem;
}

.account-welcome {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.account-welcome-text {
    flex: 1;
}

.account-welcome-text strong {
    display: block;
    font-size: 1.125rem;
    color: #34495e;
    margin-bottom: 0.25rem;
}

.account-welcome-text p {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

.account-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.account-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: #34495e;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.account-menu-item:hover {
    background: #f7f6fb;
    border-color: #d0d0d0;
}

.account-menu-item.active {
    background: #34495e;
    color: #ffffff;
    border-color: #34495e;
}

.account-menu-item.active .account-menu-icon svg path {
    fill: #ffffff;
    stroke: #ffffff;
}

.account-menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-menu-text {
    font-size: 0.9375rem;
    font-weight: 600;
    flex: 1;
    letter-spacing: 0.04em;
}

.account-menu-logout {
    color: #ff0000;
    margin-top: 1rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
}

.account-welcome-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.account-welcome-icon {
    flex-shrink: 0;
}

.account-welcome-info {
    flex: 1;
}

.account-welcome-info h2 {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.account-welcome-info p {
    font-size: 1.125rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
    letter-spacing: 0.04em;
}

.account-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.account-section {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.account-section-title {
    background: #f7f6fb;
    color: #34495e;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1.25rem 1.5rem;
    margin: 0;
    border-bottom: 2px solid #e0e0e0;
    letter-spacing: 0.04em;
}

.account-section-content {
    padding: 1.5rem;
}

.account-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    color: #34495e;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s;
}

.account-link-item:hover {
    background: #f7f6fb;
    border-color: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.account-link-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f6fb;
    border-radius: 8px;
    flex-shrink: 0;
}

.account-link-info {
    flex: 1;
}

.account-link-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: #34495e;
    letter-spacing: 0.04em;
}

.account-link-info p {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.04em;
}

.account-link-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.account-stat-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.account-stat-card:hover {
    border-color: #34495e;
    box-shadow: 0 4px 12px rgba(52, 73, 94, 0.1);
}

.account-stat-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f6fb;
    border-radius: 8px;
    flex-shrink: 0;
}

.account-stat-info {
    flex: 1;
}

.account-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #34495e;
    line-height: 1;
    margin-bottom: 0.25rem;
    letter-spacing: 0.04em;
}

.account-stat-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Адаптивность */
@media all and (max-width: 980px) {
    .account-layout {
        flex-direction: column;
        gap: 2rem;
    }
    
    .account-sidebar {
        width: 100%;
    }
    
    .account-welcome-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .account-welcome-info h2 {
        font-size: 1.5rem;
    }
    
    .account-welcome-info p {
        font-size: 1rem;
    }
    
    .account-stats {
        grid-template-columns: 1fr;
    }
}

@media all and (max-width: 767px) {
    .account-dashboard {
        margin: 2rem 0 5rem;
    }
    
    .account-section-title {
        font-size: 1.25rem;
        padding: 1rem 1.25rem;
    }
    
    .account-link-item {
        padding: 1rem;
    }
    
    .account-link-info h4 {
        font-size: 1rem;
    }
    
    .account-link-info p {
        font-size: 0.8125rem;
    }
    
    .account-link-icon {
        width: 40px;
        height: 40px;
    }
    
    .account-stat-card {
        padding: 1.25rem;
    }
    
    .account-stat-icon {
        width: 56px;
        height: 56px;
    }
    
    .account-stat-number {
        font-size: 1.75rem;
    }
}

@media all and (max-width: 575px) {
    .account-menu-item {
        padding: 0.75rem;
    }
    
    .account-menu-text {
        font-size: 0.875rem;
    }
    
    .account-link-item {
        flex-wrap: wrap;
    }
    
    .account-link-info {
        order: 2;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .account-link-arrow {
        order: 1;
    }
}

@media all and (max-width: 450px) {
    .account-welcome-card {
        padding: 1.25rem;
    }
    
    .account-welcome-info h2 {
        font-size: 1.25rem;
    }
    
    .account-welcome-info p {
        font-size: 0.875rem;
    }
    
    .account-stat-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .account-stat-number {
        font-size: 1.5rem;
    }
}

.cart-page {
    margin: 3rem 0 0 0;
}

.cart-table-wrap {
    overflow-x: auto;
    margin: 2rem 0;
    border: 2px solid #d0d0d0;
    border-radius: 10px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.cart-th-image,
.cart-th-name,
.cart-th-model,
.cart-th-quantity,
.cart-th-price,
.cart-th-total,
.cart-th-actions {
    background: #3a3a3a;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1.25rem 1rem;
    text-align: center;
    border-bottom: 2px solid #34495e;
    letter-spacing: 0.04em;
}

.cart-th-name {
    text-align: left;
}

.cart-item {
    border-bottom: 1px solid #e0e0e0;
}

.cart-item:nth-child(even) {
    background-color: #f9f9f9;
}

.cart-td-image,
.cart-td-name,
.cart-td-model,
.cart-td-quantity,
.cart-td-price,
.cart-td-total,
.cart-td-actions {
    padding: 1.5rem 1rem;
    vertical-align: top;
}

.cart-td-image {
    text-align: center;
    width: 120px;
}

.cart-product-image {
    display: inline-block;
    width: 100px;
    height: 100px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.cart-product-image:hover img {
    transform: scale(1.05);
}

.cart-td-name {
    width: 30%;
}

.cart-product-name {
    font-size: 1.25rem;
    color: #34495e;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.cart-product-name:hover {
    color: #ff9b00;
}

.cart-stock {
    color: #ff0000;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.cart-options {
    margin-top: 0.75rem;
}

.cart-option {
    margin-bottom: 0.25rem;
}

.cart-option small {
    font-size: 0.875rem;
    color: #666;
}

.cart-option strong {
    color: #34495e;
}

.cart-reward,
.cart-recurring {
    margin-top: 0.75rem;
}

.cart-reward small,
.cart-recurring small {
    font-size: 0.875rem;
    color: #666;
}

.cart-recurring-label {
    display: inline-block;
    background: #34495e;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    margin-right: 0.5rem;
}

.cart-td-model {
    text-align: center;
    color: #666;
    font-size: 1rem;
    width: 15%;
}

.cart-td-quantity {
    text-align: center;
    width: 20%;
}

.cart-quantity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.cart-count {
    width: 150px;
}

.cart-count .count__field {
    height: 45px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #34495e;
}

.cart-count .count__minus,
.cart-count .count__plus {
    width: 30px;
    height: 30px;
}

.cart-update-btn {
    background: #34495e;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.cart-update-btn:hover {
    background: #2c3e50;
}

.cart-td-price,
.cart-td-total {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #34495e;
    width: 15%;
}

.cart-td-total {
    color: #ff9b00;
}

.cart-td-actions {
    text-align: center;
    width: 80px;
}

.cart-remove-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-remove-btn:hover {
    background: rgba(255, 0, 0, 0.1);
}

.cart-voucher .cart-quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    font-size: 1rem;
    color: #666;
    background: #f5f5f5;
}

.cart-modules {
    margin: 3rem 0;
    padding: 2rem;
    background: #f7f6fb;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.cart-modules-title {
    font-size: 1.75rem;
    color: #34495e;
    margin: 0 0 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.cart-modules-desc {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
}

.cart-accordion {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.cart-totals {
    margin: 3rem 0;
}

.cart-totals-wrap {
    max-width: 400px;
    margin-left: auto;
}

.cart-totals-table {
    background: #f7f6fb;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 1.5rem;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.cart-total-row:last-child {
    border-bottom: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff9b00;
    padding-top: 1rem;
    border-top: 2px solid #34495e;
}

.cart-total-label {
    font-size: 1.125rem;
    color: #34495e;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.cart-total-value {
    font-size: 1.125rem;
    color: #34495e;
    font-weight: 700;
    letter-spacing: 0.04em;
    min-width: 80px;
    text-align: right;
}

.cart-total-row:last-child .cart-total-label,
.cart-total-row:last-child .cart-total-value {
    font-size: 1.5rem;
}

.cart-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.cart-button-left .btn,
.cart-button-right .btn {
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin: 3rem 0;
}

.cart-empty-icon {
    margin-bottom: 2rem;
}

.cart-empty-text {
    font-size: 1.5rem;
    color: #34495e;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.cart-empty-button .btn {
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Адаптивность */
@media all and (max-width: 980px) {
    .cart-table-wrap {
        margin-left: -15px;
        margin-right: -15px;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
    
    .cart-th-image,
    .cart-th-name,
    .cart-th-model,
    .cart-th-quantity,
    .cart-th-price,
    .cart-th-total,
    .cart-th-actions {
        font-size: 1.125rem;
        padding: 1rem 0.75rem;
    }
    
    .cart-td-image,
    .cart-td-name,
    .cart-td-model,
    .cart-td-quantity,
    .cart-td-price,
    .cart-td-total,
    .cart-td-actions {
        padding: 1rem 0.75rem;
    }
    
    .cart-product-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-count {
        width: 120px;
    }
    
    .cart-totals-wrap {
        max-width: 100%;
    }
    
    .cart-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cart-button-left,
    .cart-button-right {
        width: 100%;
    }
    
    .cart-button-left .btn,
    .cart-button-right .btn {
        width: 100%;
    }
}

@media all and (max-width: 767px) {
    .cart-product-name {
        font-size: 1.125rem;
    }
    
    .cart-td-price,
    .cart-td-total {
        font-size: 1.125rem;
    }
    
    .cart-modules {
        padding: 1.5rem;
    }
    
    .cart-modules-title {
        font-size: 1.5rem;
    }
    
    .cart-modules-desc {
        font-size: 1rem;
    }
    
    .cart-total-row:last-child .cart-total-label,
    .cart-total-row:last-child .cart-total-value {
        font-size: 1.25rem;
    }
}

@media all and (max-width: 575px) {
    .cart-page {
        margin: 2rem 0 5rem;
    }
    
    .cart-empty {
        padding: 3rem 1rem;
    }
    
    .cart-empty-text {
        font-size: 1.25rem;
    }
    
    .cart-empty-button .btn {
        padding: 0.875rem 2rem;
        font-size: 1.125rem;
    }
    
    .cart-button-left .btn,
    .cart-button-right .btn {
        padding: 0.875rem 2rem;
        font-size: 1.125rem;
    }
}

@media all and (max-width: 450px) {
    .cart-count {
        width: 100px;
    }
    
    .cart-count .count__field {
        height: 40px;
        font-size: 1rem;
    }
    
    .cart-count .count__minus,
    .cart-count .count__plus {
        width: 25px;
        height: 25px;
    }
    
    .cart-update-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .cart-total-label,
    .cart-total-value {
        font-size: 1rem;
    }
    
    .cart-total-row:last-child .cart-total-label,
    .cart-total-row:last-child .cart-total-value {
        font-size: 1.125rem;
    }
}

fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.d-none {
    display: none !important;
}

.account-page {
    margin: 3rem 0 0;
}


.account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.account-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    justify-content: center;
}

.account-col {
    width: 50%;
    padding: 0 15px;
    margin-bottom: 30px;
}

.account-well {
    background: #eeeeee;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 2rem;
    height: 100%;
}

.account-well h2 {
    font-size: 2rem;
    color: #34495e;
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ff9b00;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.account-well strong {
    font-weight: 700;
    color: #34495e;
    display: block;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.account-well p {
    font-size: 1.125rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 2rem;
    letter-spacing: 0.04em;
}

.account-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
}

.form-label.required:after {
    content: '*';
    color: #ff0000;
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #d0d0d0;
    border-radius: 6px;
    background: #ffffff;
    transition: all 0.3s;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
}

.form-control:focus {
    border-color: #34495e;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 73, 94, 0.1);
}

.form-control::placeholder {
    color: #999;
}

.text-danger {
    color: #ff0000;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.radio-group,
.checkbox-group {
    margin-bottom: 0.5rem;
}

.radio-inline,
.checkbox-inline {
    display: inline-block;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

.radio-inline label,
.checkbox-inline label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
}

.radio-inline input[type="radio"],
.radio-inline input[type="checkbox"],
.checkbox-inline input[type="radio"],
.checkbox-inline input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.account-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.account-agree {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.account-agree input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.account-agree a {
    color: #34495e;
    text-decoration: underline;
}

.account-agree a:hover {
    color: #ff9b00;
}

.btn-primary {
    background: #34495e;
    color: #ffffff;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.04em;
}

.btn-primary:hover {
    background: #2c3e50;
}

.btn-block {
    display: block;
    width: 100%;
}

.account-link {
    color: #34495e;
    text-decoration: underline;
    font-size: 1rem;
    margin-top: 1rem;
    display: inline-block;
}

.account-link:hover {
    color: #ff9b00;
}

/* Поля с датой, временем */
.input-group {
    position: relative;
    display: flex;
}

.input-group .form-control {
    flex: 1;
}

.input-group-btn {
    margin-left: -1px;
}

.input-group-btn .btn {
    height: 100%;
    border: 2px solid #d0d0d0;
    border-left: none;
    background: #f5f5f5;
    padding: 0 1rem;
    cursor: pointer;
}

/* Кастомные поля */
.custom-field {
    margin-bottom: 1.5rem;
}

/* Легенда для fieldset */
fieldset legend {
    font-size: 1.5rem;
    font-weight: 700;
    color: #34495e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ff9b00;
    width: 100%;
    letter-spacing: 0.04em;
}

/* Адаптивность */
@media all and (max-width: 980px) {
    .account-col {
        width: 100%;
    }
    
    .account-well {
        padding: 2rem;
    }
    
    .account-well h2 {
        font-size: 1.75rem;
    }
}

@media all and (max-width: 767px) {
    .account-page {
        margin: 2rem 0 5rem;
    }
    
    .account-well {
        padding: 1.5rem;
    }
    
    .account-well h2 {
        font-size: 1.5rem;
    }
    
    .account-well p {
        font-size: 1rem;
    }
    
    .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .account-agree {
        font-size: 0.8125rem;
    }
    
    .radio-inline,
    .checkbox-inline {
        margin-right: 1rem;
        margin-bottom: 0.25rem;
    }
}

@media all and (max-width: 575px) {
    .account-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .account-agree {
        margin-bottom: 1rem;
        order: 2;
    }
    
    .btn-primary {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .account-well {
        padding: 1.25rem;
    }
}

@media all and (max-width: 450px) {
    .account-well h2 {
        font-size: 1.375rem;
    }
    
    .form-label {
        font-size: 1rem;
    }
    
    .radio-inline label,
    .checkbox-inline label {
        font-size: 0.9375rem;
    }
}











.compare-page {
    margin: 1rem 0 3rem;
}

.compare-table-wrap {
    overflow-x: auto;
    margin: 0;
    border: 2px solid #d0d0d0;
    border-radius: 10px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.compare-table-wrap::-webkit-scrollbar {
    height: 8px;
}

.compare-table-wrap::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
    margin: 0 10px;
}

.compare-table-wrap::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.compare-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.compare-table {
    width: auto;
    min-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.compare-header {
    background: #3a3a3a;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem;
    border-bottom: 2px solid #34495e;
}

.compare-row {
    border-bottom: 1px solid #e0e0e0;
}

.compare-row:nth-child(even) {
    background-color: #f9f9f9;
}

.compare-group-header {
    background: #34495e;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    padding: 0.75rem;
    border-bottom: 2px solid #ff9b00;
}

.compare-label {
    font-size: 1rem;
    font-weight: 600;
    color: #34495e;
    padding: 0.75rem 1rem;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    vertical-align: middle;
    border-right: 1px solid #e0e0e0;
    background: #f5f5f5;
    position: sticky;
    left: 0;
    z-index: 2;
    letter-spacing: 0.04em;
}

.compare-cell {
    padding: 0.75rem 1rem;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid #e0e0e0;
    min-width: 280px;
    max-width: 280px;
}

.compare-cell:last-child {
    border-right: none;
}

.compare-product-name {
    font-size: 1.125rem;
    color: #34495e;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-product-name:hover {
    color: #ff9b00;
}

.compare-product-image {
    margin: 0 auto 0.75rem;
    max-width: 200px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.compare-price {
    font-size: 1.375rem;
    font-weight: 700;
    color: #34495e;
    margin: 0.5rem 0;
}

.compare-price-old {
    font-size: 1.125rem;
    color: #999;
    margin: 0.5rem 0;
    text-decoration: line-through;
}

.compare-price-special {
    font-size: 1.375rem;
    font-weight: 700;
    color: #ff9b00;
    margin: 0.5rem 0;
}

.compare-rating {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.compare-star {
    width: 20px;
    height: 20px;
    margin: 0 2px;
    display: inline-block;
    position: relative;
}

.compare-star-filled:before {
    content: '★';
    color: #ff9b00;
    font-size: 20px;
}

.compare-star-empty:before {
    content: '☆';
    color: #ccc;
    font-size: 20px;
}

.compare-reviews {
    font-size: 0.875rem;
    color: #666;
}

.compare-description {
    font-size: 0.9375rem;
    line-height: 1.4;
    color: #333;
    text-align: left;
    max-width: 260px;
    margin: 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-actions {
    background: #f0f0f0;
}

.compare-actions .compare-label {
    background: #f0f0f0;
}

.compare-add-to-cart,
.compare-remove {
    display: inline-block;
    width: auto;
    margin: 0.25rem;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
}

.compare-add-to-cart {
    background: #34495e;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

.compare-add-to-cart:hover {
    background: #2c3e50;
}

.compare-remove {
    background: #f0f0f0;
    color: #34495e;
    border: 1px solid #34495e;
}

.compare-remove:hover {
    background: #34495e;
    color: #ffffff;
}

.compare-empty {
    text-align: center;
    padding: 4rem 2rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin: 3rem 0;
}

.compare-empty p {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
}

.compare-continue {
    margin-top: 2rem;
}

.compare-table-wrap[data-count="2"] {
    overflow-x: hidden;
}

.compare-table-wrap[data-count="2"] .compare-table {
    width: 100%;
}

.compare-table-wrap[data-count="2"] .compare-cell {
    width: calc((100% - 200px) / 2);
    min-width: auto;
    max-width: none;
}

.compare-table-wrap[data-count="3"] .compare-table {
    width: calc(100% + 100px); 
}

.compare-table-wrap[data-count="4"] .compare-cell,
.compare-table-wrap[data-count="5"] .compare-cell,
.compare-table-wrap[data-count="6"] .compare-cell {
    min-width: 240px;
    max-width: 240px;
}

@media all and (max-width: 980px) {
    .compare-table-wrap {
        margin-left: -15px;
        margin-right: -15px;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
    
    .compare-label {
        font-size: 0.9375rem;
        padding: 0.75rem;
        width: 180px;
        min-width: 180px;
        max-width: 180px;
    }
    
    .compare-cell {
        padding: 0.75rem;
        min-width: 220px;
        max-width: 220px;
    }
    
    .compare-product-image {
        max-width: 150px;
    }
    
    .compare-table-wrap[data-count="2"] .compare-cell {
        width: calc((100% - 180px) / 2);
    }
    
    .compare-table-wrap[data-count="4"] .compare-cell,
    .compare-table-wrap[data-count="5"] .compare-cell,
    .compare-table-wrap[data-count="6"] .compare-cell {
        min-width: 200px;
        max-width: 200px;
    }
}

@media all and (max-width: 767px) {
    .compare-header {
        font-size: 1.25rem;
        padding: 0.75rem;
    }
    
    .compare-group-header {
        font-size: 1.125rem;
        padding: 0.625rem;
    }
    
    .compare-label {
        font-size: 0.875rem;
        width: 150px;
        min-width: 150px;
        max-width: 150px;
        padding: 0.5rem;
    }
    
    .compare-cell {
        padding: 0.5rem;
        min-width: 180px;
        max-width: 180px;
    }
    
    .compare-product-name {
        font-size: 1rem;
        white-space: normal;
        line-height: 1.3;
    }
    
    .compare-product-image {
        max-width: 120px;
    }
    
    .compare-price {
        font-size: 1.125rem;
    }
    
    .compare-price-special {
        font-size: 1.125rem;
    }
    
    .compare-add-to-cart,
    .compare-remove {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
    }
    
    .compare-table-wrap[data-count="2"] .compare-cell {
        width: calc((100% - 150px) / 2);
        min-width: auto;
    }
    
    .compare-table-wrap[data-count="3"] .compare-table {
        width: calc(100% + 60px);
    }
    
    .compare-table-wrap[data-count="4"] .compare-cell,
    .compare-table-wrap[data-count="5"] .compare-cell,
    .compare-table-wrap[data-count="6"] .compare-cell {
        min-width: 160px;
        max-width: 160px;
    }
}

@media all and (max-width: 575px) {
    .compare-label {
        width: 130px;
        min-width: 130px;
        max-width: 130px;
        font-size: 0.8125rem;
    }
    
    .compare-cell {
        min-width: 150px;
        max-width: 150px;
        padding: 0.375rem;
    }
    
    .compare-product-image {
        max-width: 100px;
    }
    
    .compare-description {
        font-size: 0.8125rem;
        max-width: 140px;
    }
    
    .compare-empty {
        padding: 3rem 1rem;
    }
    
    .compare-empty p {
        font-size: 1.25rem;
    }
    
    .compare-table-wrap[data-count="2"] .compare-cell {
        width: calc((100% - 130px) / 2);
    }
    
    .compare-table-wrap[data-count="4"] .compare-cell,
    .compare-table-wrap[data-count="5"] .compare-cell,
    .compare-table-wrap[data-count="6"] .compare-cell {
        min-width: 140px;
        max-width: 140px;
    }
}

@media all and (max-width: 450px) {
    .compare-label {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
    }
    
    .compare-cell {
        min-width: 130px;
        max-width: 130px;
    }
    
    .compare-product-image {
        max-width: 80px;
    }
    
    .compare-star {
        width: 16px;
        height: 16px;
    }
    
    .compare-star-filled:before,
    .compare-star-empty:before {
        font-size: 16px;
    }
    
    .compare-table-wrap[data-count="4"] .compare-cell,
    .compare-table-wrap[data-count="5"] .compare-cell,
    .compare-table-wrap[data-count="6"] .compare-cell {
        min-width: 120px;
        max-width: 120px;
    }
}












.article-image {
    height: 450px;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}
.article-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}
.directon__cite p {
    margin: 0;
}
.pager-inner {
    padding-top: 1.25rem;
}
.fancybox__content {
    padding: 0;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    max-width: 600px;
    width: 100%;
}

.popup-content {
    padding: 40px 30px 30px;
}

.popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #34495e;
    margin: 0 0 25px;
    text-align: center;
    letter-spacing: 0.04em;
}

.popup-form {
    margin-top: 20px;
}

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

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.form-product-info {
    display: flex;
    align-items: flex-start;
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.form-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
    border: 1px solid #ddd;
}

.form-product-details {
    flex: 1;
}

.form-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #34495e;
    margin: 0 0 8px;
    line-height: 1.3;
}

.form-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff9b00;
    margin: 0 0 8px;
}

.form-product-size {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.form-product-size img {
    margin-right: 6px;
    opacity: 0.7;
}

.popup-count {
    width: 150px;
}

.popup-count .count__field {
    height: 45px;
    font-size: 18px;
}

.popup-count .count__minus,
.popup-count .count__plus {
    width: 30px;
    height: 30px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #ffffff;
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #34495e;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 73, 94, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.form-checkbox {
    margin: 0 10px 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-checkbox-label {
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    cursor: pointer;
    flex: 1;
}

.form-link {
    color: #34495e;
    text-decoration: underline;
}

.form-link:hover {
    color: #ff9b00;
}

.popup-submit {
    display: block;
    padding: 0;
    text-align: center;
    width: 100%;
    height: 3.3125rem;
    line-height: 2.9375rem;
    font-size: 1.375rem;
}

.popup-submit:hover {
    background: #2c3e50;
}

.popup-note {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 15px 0 0;
    line-height: 1.4;
}

/* Стили fancybox */
.fancybox__container {
    z-index: 1050;
}

.fancybox__backdrop {
    background: rgba(0, 0, 0, 0.7);
}

.fancybox__toolbar {
    background: transparent;
}

.fancybox__nav {
    display: none;
}

/* Адаптивность для попапа */
@media all and (max-width: 650px) {
    .popup-content {
        padding: 30px 20px 25px;
    }
    
    .popup-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .form-product-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .form-product-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .popup-submit {
        height: 50px;
        font-size: 16px;
    }
    
    .fancybox__content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
}

@media all and (max-width: 480px) {
    .popup-content {
        padding: 25px 15px 20px;
    }
    
    .popup-title {
        font-size: 22px;
    }
    
    .form-input,
    .form-textarea {
        padding: 10px 12px;
        font-size: 15px;
    }
}







.product__controls-link {
    cursor: pointer;
}
.select-wrap {
    margin: 20px 0;
}
.select-wrap .control-label {
    font-size: 1.4375rem;
    line-height: 1.2;
    display: inline-block;
    color: #7a7a7a;
    letter-spacing: 0.04em;
    margin-right: 10px;
}

.select-wrap select {
    padding: 10px 15px;
    font-size: 1rem;
    border: 2px solid #A8A6A6;
    border-radius: 6px;
}

.radio-wrap .product__checkbox-btn{
    border-radius: 50%;
}

.radio-wrap + .form-group {
    margin-top: 20px;
}
.text-danger {
    color: red;
}

.product__checkboxes .text-danger {
    margin-top: 15px;
}

.product__discount {
    font-size: 1.4375rem;
    line-height: 1.2;
    display: block;
    color: #7a7a7a;
    letter-spacing: 0.04em;
    margin: 5px 0;
}
.product__discount-wrap .product__discount:first-child {
    margin-top: 0;
}
.product__discount-wrap .product__discount:last-child {
    margin-bottom: 0;
}
.product_counter,
.product__discount-wrap {
    margin-bottom: 2.75rem;
}

.product_counter {
    width: 21.625rem;
}

.share-popup {
    position: absolute;
    background: #ffffff;
    border: 2px solid #34495e;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 180px;
    display: none;
    top: 40px;
    left: 0;
}

.share-popup:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid #34495e;
}

.share-popup:after {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid #ffffff;
}

.share-popup.opened {
    display: block;
}

.share-popup__list {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 15px;
}

.share-popup__item {
    margin: 0;
    padding: 0;
}

.product__controls-link.js-share-button {
    position: relative;
}

@media all and (max-width: 980px) {
    .share-popup {
        left: auto;
        right: 0;
    }
    
    .share-popup:before {
        left: auto;
        right: 20px;
    }
    
    .share-popup:after {
        left: auto;
        right: 20px;
    }
    
    .share-popup__list {
        gap: 12px;
    }
    
}

@media all and (max-width: 450px) {
    .share-popup {
        padding: 12px 15px;
        min-width: 160px;
    }
    
    .share-popup__list {
        gap: 10px;
    }
    
    .share-popup__link {
        width: 32px;
        height: 32px;
    }
}



.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 3rem 0 0 0;
    padding: 0;
    list-style: none;
}

.pagination li {
    margin: 0 0.3125rem;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.8125rem;
    height: 2.8125rem;
    border: 0.125rem solid #34495e;
    font-size: 1.375rem;
    color: #34495e;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination li a:hover {
    background-color: #34495e;
    color: #ffffff;
    border-color: #34495e;
}

.pagination li.active span {
    background-color: #ff9b00;
    color: #000000;
    border-color: #ff9b00;
    font-weight: bold;
}

.pagination li a:first-child:before,
.pagination li a:last-child:before {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: bold;
}

/* Адаптивность для пагинации */
@media all and (max-width: 767px) {
    .pagination li {
        margin: 0 0.1875rem;
    }
    
    .pagination li a,
    .pagination li span {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.125rem;
    }
}

@media all and (max-width: 575px) {
    .pagination {
        margin: 1.5rem 0;
    }
    
    .pagination li a,
    .pagination li span {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
    }
}

@media all and (max-width: 450px) {
    .pagination li {
        margin: 0 0.125rem;
    }
    
    .pagination li a,
    .pagination li span {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
}

.price-old {
    text-decoration: line-through;
}

.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    max-width: 350px;
}

.alert-container .alert a {
    color: #ffffff;
    border-bottom: 1px solid transparent;
}

.alert-container .alert a:hover {
    border-bottom: 1px solid #ffffff;
}

.alert {
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    color: white;
    font: 400 16px / 20px Arial, Helvetica, sans-serif;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    animation: slideInRight 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-left: 4px solid #2E7D32;
}
.alert-danger,
.alert-error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    border-left: 4px solid #B71C1C;
}

.alert-message {
    flex: 1;
    margin-right: 15px;
}

.alert-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-close:hover {
    opacity: 1;
}

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

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






@media all and (max-width: 767px) {
    .cart-table-wrap {
        border: none;
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .cart-table {
        min-width: 100%;
        display: block;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody {
        display: block;
    }
    
    .cart-item {
        display: flex;
        flex-wrap: wrap;
        padding: 15px;
        border-bottom: 2px solid #e0e0e0;
        margin-bottom: 15px;
    }
    
    .cart-item:nth-child(even) {
        background-color: #f9f9f9;
    }
    
    .cart-td-image {
        width: 100px;
        padding: 0 0 10px 0;
        text-align: left;
    }
    
    .cart-td-name {
        width: calc(100% - 100px);
        padding: 0 0 10px 10px;
    }
    
    .cart-td-model,
    .cart-td-quantity,
    .cart-td-price,
    .cart-td-total {
        width: 50%;
        padding: 10px 5px;
        text-align: left;
        position: relative;
    }
    
    .cart-td-model:before,
    .cart-td-quantity:before,
    .cart-td-price:before,
    .cart-td-total:before {
        content: attr(data-label);
        display: block;
        font-size: 0.875rem;
        font-weight: 600;
        color: #666;
        margin-bottom: 5px;
    }
    
    .cart-td-actions {
        text-align: right;
        padding: 0;
        position: absolute;
        top: 23px;
        right: 0;
        width: 40px;
        height: 35px;
        background-color: #fff;
    }
    .cart-item {
        position: relative;
    }
    
    .cart-td-model {
        order: 1;
    }
    
    .cart-td-quantity {
        order: 2;
    }
    
    .cart-td-price {
        order: 3;
    }
    
    .cart-td-total {
        order: 4;
    }
    
    .cart-quantity {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
    }
    
    .cart-count {
        width: 120px;
    }
    
    .cart-update-btn {
        margin-left: 10px;
    }
}

@media all and (max-width: 450px) {
    .cart-item {
        padding: 10px;
    }
    
    .cart-td-image {
        width: 80px;
    }
    
    .cart-td-name {
        width: calc(100% - 80px);
    }
    
    .cart-product-image {
        width: 70px;
        height: 70px;
    }
    
    .cart-td-model,
    .cart-td-quantity,
    .cart-td-price,
    .cart-td-total {
        width: 50%;
        padding: 8px 5px;
    }
    
    .cart-count {
        width: 100px;
    }
}

#cookie-note { 
    display: none;
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-sizing: border-box;
    z-index: 99;
    background: #ffffff;
}

#cookie-note.show{
    display: block;
}

.cookie-note-button{
    width:40%;
}
.cookie-note-button button {
    margin: 0;
    width: 100%;
    font-size: 1.4375rem;
    padding: 15px 15px;
    border: .1875rem solid #34495e;
}
.cookie-note-button button:hover {
    background: #34495e;
    color: #FFFFFF;
}
.cookie-note-wrap {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}
.cookie-note-text {
    font-size: 13px;
    font-family: inherit;
}
.cookie-note-text p {
    margin: 0;
}
.cookie-note-text a {
    color: #FF0000;
}
@media (max-width: 992px){
    .cookie-note-wrap {
        display: block;
    }
    .cookie-note-button {
        margin-top: 10px;
    }
}