/*   
Theme Name: auto
*/

.pagination {
    display: flex !important;
    justify-content: center;
}

/* Стили для бейджей статусов товаров */
.ab-banner.ab-banner-sold {
    background-color: #dc3545 !important; /* Яркий красный для SOLD */
    color: #fff !important;
}

.ab-banner.ab-banner-booked {
    background-color: #ffc107 !important; /* Яркий желтый/золотой для BOOKED */
    color: #000 !important;
}

.ab-banner.ab-banner-sale {
    background-color: #28a745 !important; /* Яркий зеленый для SALE */
    color: #fff !important;
}

.ab-banner.ab-banner-featured {
    background-color: #007bff !important; /* Яркий синий для FEATURED */
    color: #fff !important;
}

/* Стили для слайдера категорий */
.ab-categories-slider-wrapper {
    position: relative;
    padding: 0 60px !important;
}

.ab-categories-slider .ab-category-slide {
    padding: 0 10px;
}

.ab-categories-slider .slick-prev,
.ab-categories-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: #ee3516 !important;
    border-radius: 50px;
    padding: 0 !important; /* Убираем padding, чтобы ::after был точно по центру */
    border: none;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in;
    box-shadow: 0 4px 15px rgba(238, 53, 22, 0.3);
    user-select: none;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px;
    min-height: 50px;
    /* Скрываем стандартный текст Slick */
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: 0 !important;
    overflow: visible !important;
}

.ab-categories-slider .slick-prev:before,
.ab-categories-slider .slick-next:before {
    display: none !important;
    content: '' !important;
}

/* Показываем символы через ::after */
.ab-categories-slider .slick-prev::after {
    content: '<' !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 30px !important;
    line-height: 1 !important;
    font-weight: bold !important;
    color: #fff !important;
    display: block !important;
    font-family: 'bebas', Arial, sans-serif !important;
    pointer-events: none !important;
    white-space: nowrap !important;
    z-index: 1 !important;
}

.ab-categories-slider .slick-next::after {
    content: '>' !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 30px !important;
    line-height: 1 !important;
    font-weight: bold !important;
    color: #fff !important;
    display: block !important;
    font-family: 'bebas', Arial, sans-serif !important;
    pointer-events: none !important;
    white-space: nowrap !important;
    z-index: 1 !important;
}

.ab-categories-slider .slick-prev {
    left: -25px;
}

.ab-categories-slider .slick-next {
    right: -25px;
}

.ab-categories-slider .slick-prev:hover,
.ab-categories-slider .slick-next:hover {
    background-color: #000 !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transform: translateY(-50%) scale(1.05);
}

.ab-categories-slider .slick-prev:hover::after,
.ab-categories-slider .slick-next:hover::after {
    color: #ee3516 !important;
}

/* Скрываем любые дочерние элементы внутри кнопок */
.ab-categories-slider .slick-prev > *,
.ab-categories-slider .slick-next > * {
    display: none !important;
}

.ab-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.ab-category-card:hover .ab-category-image img {
    transform: scale(1.1);
}

/* Адаптивные стили для блока категорий на главной */
@media (max-width: 1200px) {
    .ab-categories-slider-wrapper {
        padding: 0 50px !important;
    }
    
    .ab-categories-slider .slick-prev {
        left: -20px;
    }
    
    .ab-categories-slider .slick-next {
        right: -20px;
    }
}

@media (max-width: 768px) {
    .ab-categories-slider-wrapper {
        padding: 0 40px !important;
    }
    
    .ab-category-image {
        height: 200px !important;
    }
    
    .ab-large-title-wrap h2.ab-large-title {
        font-size: 36px !important;
    }
    
    .ab-categories-slider .slick-prev,
    .ab-categories-slider .slick-next {
        padding: 8px 15px 3px;
        font-size: 20px;
        min-width: 45px;
        min-height: 45px;
    }
    
    .ab-categories-slider .slick-prev {
        left: -15px;
    }
    
    .ab-categories-slider .slick-next {
        right: -15px;
    }
    
    .ab-categories-slider .slick-prev,
    .ab-categories-slider .slick-next {
        font-size: 24px;
    }
    
    .ab-categories-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .ab-categories-buttons .ab-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ab-categories-slider-wrapper {
        padding: 0 30px !important;
    }
    
    .ab-categories-slider .slick-prev,
    .ab-categories-slider .slick-next {
        padding: 6px 12px 2px;
        font-size: 18px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .ab-categories-slider .slick-prev,
    .ab-categories-slider .slick-next {
        font-size: 20px;
    }
}

/* Стили для стрелок главного слайдера (cycler) */
#cycler a.next-cycle,
#cycler a.previous-cycle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0.7 !important;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-radius: 50%;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    font-size: 40px !important;
    line-height: 1 !important;
    font-weight: bold !important;
    color: #fff !important;
    text-decoration: none !important;
    z-index: 100 !important;
}

#cycler a.next-cycle:hover,
#cycler a.previous-cycle:hover {
    opacity: 1 !important;
    background-color: rgba(238, 53, 22, 0.8) !important;
    color: #fff !important;
    text-decoration: none !important;
}

#cycler a.previous-cycle {
    left: 20px !important;
}

#cycler a.next-cycle {
    right: 20px !important;
}

@media (max-width: 768px) {
    #cycler a.next-cycle,
    #cycler a.previous-cycle {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        font-size: 30px !important;
    }
    
    #cycler a.previous-cycle {
        left: 10px !important;
    }
    
    #cycler a.next-cycle {
        right: 10px !important;
    }
}

/* Стили для кнопки Buy Now на странице товара */
.boxcar-title-header {
    margin-bottom: 15px;
}

.boxcar-title-row {
display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.boxcar-title-row h2 {
    flex: 1;
    margin: 0;
}

.price-and-button {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.buy-now-wrapper {
    display: flex;
    justify-content: flex-end;
}

.buy-now-button {
    background-color: #ee3516;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buy-now-button:hover {
    background-color: #d32a15;
}

/* Стили для списка характеристик */
.spectes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.spectes-list li {
    margin: 0;
}

.spectes-list li span {
    display: inline-block;
    font-size: 15px;
    color: #050b20;
    border-radius: 120px;
    background: #efefef;
    padding: 7px 20px 5px;
    white-space: nowrap;
}

/* Стили для модального окна Buy Now */
.buy-now-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.buy-now-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.buy-now-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10001;
}

.buy-now-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10002;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.buy-now-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10003;
}

.buy-now-modal-close:hover {
    color: #000;
}

.buy-now-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
}

.buy-now-modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #212529;
}

.buy-now-modal-header p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.buy-now-modal-body {
    padding: 30px;
}

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

.buy-now-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.buy-now-form .form-control:focus {
    outline: none;
    border-color: #ee3516;
}

.buy-now-form .form-submit {
    margin-top: 20px;
}

.buy-now-form .theme-btn {
    width: 100%;
    padding: 12px 30px;
    background-color: #ee3516;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buy-now-form .theme-btn:hover {
    background-color: #d32a15;
}

@media (max-width: 768px) {
    .boxcar-title-row {
        flex-direction: column;
    }
    
    .price-and-button {
        align-items: flex-start;
        width: 100%;
    }
    
    .buy-now-wrapper {
                justify-content: flex-start;
        width: 100%;
        margin-bottom: -5px;
    }
    
    .buy-now-button {
       margin-left: auto;
    }
}

/* Стили для модального окна успешной отправки */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
}

.success-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 20001;
}

.success-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    padding: 40px 30px;
    text-align: center;
    z-index: 20002;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.success-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20003;
}

.success-modal-close:hover {
    color: #000;
}

.success-modal-icon {
    margin: 0 auto 20px;
    width: 64px;
    height: 64px;
}

.success-modal-icon svg {
    width: 100%;
    height: 100%;
}

.success-modal-content h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 600;
    color: #212529;
}

.success-modal-content p {
    margin: 0 0 25px 0;
    font-size: 16px;
    color: #6c757d;
    line-height: 1.5;
}

.success-modal-btn {
    background-color: #ee3516;
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.success-modal-btn:hover {
    background-color: #d32a15;
}

.success-modal.error .success-modal-icon svg circle,
.success-modal.error .success-modal-icon svg path {
    stroke: #dc3545;
}

.success-modal.error .success-modal-content h2 {
    color: #dc3545;
}

/* Стили для блока статистики - равномерное распределение на десктопе */
@media (min-width: 768px) {
    .ab-statistics-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: stretch !important;
        gap: 20px;
        width: 100%;
    }
    
    .ab-stat-item {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

/* На мобильных устройствах оставляем как есть */
@media (max-width: 767px) {
    .ab-statistics-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .ab-stat-item {
        flex: 0 1 auto;
        min-width: 220px;
        max-width: 280px;
    }
}

/* Стили для бейджа на странице товара (single.php) */
.single-product-badge {
 position: absolute;
    top: -29px;
    margin-right: 0px;
    right: 20px;
    z-index: 10;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.single-product-badge:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .single-product-badge {
        top: inherit;
        right: 20px;
        bottom: 35px;
        padding: 6px 15px;
        font-size: 12px;
        margin-right: 0px;
    }
    .inventory-section .boxcar-title-three .spectes-list{
            margin-top: -48px!important;
    }
}

/* Стили для иконки закрепления карточки */
.pinned-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background-color: rgba(238, 53, 22, 0.95);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pinned-badge:hover {
    background-color: rgba(238, 53, 22, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(238, 53, 22, 0.5);
}

.pinned-badge i {
    font-size: 16px;
    transform: rotate(-45deg);
}

.ab-lead-photo {
    position: relative;
}

@media (max-width: 768px) {
    .pinned-badge {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }
    
    .pinned-badge i {
        font-size: 14px;
    }
}


@media (max-width: 450px) {
  .buy-now-wrapper {
        margin-bottom: 55px;
    }
    .buy-now-button{
        margin-left: 0px;
        margin-top: 15px;
    }
      .single-product-badge {
        top: inherit;
        right: inherit;
        left: 20px;
        bottom: 95px;
    }
}