

/* Start:/bitrix/templates/preventa/template_styles.css?17765450149152*/
/*
 * Preventa Violet Theme - Bitrix Integration Styles
 * Additional styles for Bitrix CMS compatibility
 */

/* Bitrix Admin Panel Adjustments */
#panel {
    position: relative;
    z-index: 9999;
}

/* Admin mode fixes */
.bx-compact-menu .header {
    top: 40px;
}

/* Bitrix Content Area */
.bx-content-section {
    min-height: 400px;
}

/* Search form integration */
#search-form form {
    margin: 0;
}

#search-form .input-group {
    display: flex;
    align-items: center;
}

/* Menu active states */
.menu-item.active > a,
.menu-item a.active {
    color: #d19c7f;
}

/* Product card fixes for Bitrix */
.product-card .showcase-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Pagination styling */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d19c7f;
    color: #d19c7f;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: #d19c7f;
    color: #fff;
}

/* Breadcrumb styling */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 0 8px;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #d19c7f;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Bitrix Messages */
.bx-messenger {
    z-index: 9998;
}

/* Form styling for Bitrix */
.bx-content input[type="text"],
.bx-content input[type="email"],
.bx-content input[type="password"],
.bx-content textarea,
.bx-content select {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.bx-content input:focus,
.bx-content textarea:focus,
.bx-content select:focus {
    border-color: #d19c7f;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(209, 156, 127, 0.25);
}

/* Utility classes for spacing */
.mt-48 { margin-top: 48px; }
.mb-48 { margin-bottom: 48px; }
.pt-48 { padding-top: 48px; }
.pb-48 { padding-bottom: 48px; }

/* Fix for Bitrix components inside template */
.bx-component-content {
    position: relative;
}

/* Loading state for AJAX requests */
.bx-ajax-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Cart popup adjustments */
#sidebar-cart {
    z-index: 9997;
}

#sidebar-cart-curtain {
    z-index: 9996;
}

/* Responsive fixes */
@media (max-width: 1199px) {
    .right-content {
        display: none !important;
    }
    
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
}

/* Blog banner title - responsive font size */
.page-start-banner .title {
    font-size: clamp(28px, 4vw, 48px)!important;
    word-break: break-word;
    max-width: 90%;
}

@media (max-width: 767px) {
    .page-start-banner .title {
        font-size: clamp(24px, 5vw, 36px)!important;
        max-width: 100%;
    }
}

@media (max-width: 492px) {
    .page-start-banner .title {
        font-size: clamp(20px, 6vw, 28px)!important;
    }
}

/* Sidebar Cart Styles */
#sidebar-cart {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100vh;
    background: #fff;
    z-index: 9997;
    padding: 48px;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

#sidebar-cart.open {
    right: 0;
}

#sidebar-cart-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9996;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#sidebar-cart-curtain.show {
    opacity: 1;
    visibility: visible;
}

#sidebar-cart .close-button {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 24px;
    color: #000;
    text-decoration: none;
}

#sidebar-cart .font-sec {
    font-family: 'Roboto Serif', serif;
    font-size: 24px;
    font-weight: 600;
}

#sidebar-cart .h-27 {
    color: #d19c7f;
}

#sidebar-cart .vr-line {
    height: 1px;
    background: #e5e5e5;
}

#sidebar-cart .product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar-cart .product-item {
    display: flex;
    gap: 16px;
}

#sidebar-cart .item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

#sidebar-cart .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#sidebar-cart .product-text {
    flex: 1;
}

#sidebar-cart .product-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

#sidebar-cart .qp_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#sidebar-cart .quantity-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #e5e5e5;
}

#sidebar-cart .quantity-wrap input {
    width: 32px;
    height: 32px;
    border: none;
    text-align: center;
    background: #fff;
}

#sidebar-cart .quantity-wrap .decrement,
#sidebar-cart .quantity-wrap .increment {
    cursor: pointer;
    background: #f5f5f5;
}

#sidebar-cart .quantity-wrap .number {
    font-weight: 600;
}

#sidebar-cart .price h5 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

#sidebar-cart .color-primary {
    color: #d19c7f;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
}

#sidebar-cart .price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

#sidebar-cart .price-total h4 {
    font-size: 18px;
    font-weight: 600;
}

#sidebar-cart .action-buttons {
    display: flex;
    gap: 16px;
}

#sidebar-cart .action-buttons .cus-btn {
    flex: 1;
    text-align: center;
}

/* Hide default Bitrix cart */
.bx-basket {
    display: none !important;
}

/* Responsive */
@media (max-width: 480px) {
    #sidebar-cart {
        width: 100%;
        right: -100%;
    }
}

/* Product Card Fixed Height */
.product-card {
    height: 100%;
    max-height: 430px;
    display: flex;
    flex-direction: column;
}

.product-card .showcase-box {
    height: 320px;
    min-height: 320px;
    max-height: 320px;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    margin-bottom: 0!important;
}

.product-card .showcase-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-card .title {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: start;
    min-height: 40px;
    max-height: 110px;
    overflow: hidden;
    font-size: 18px!important;
    line-height: 1!important;
}

.product-card .title .price {
    font-size: 20px!important;
    line-height: 1!important;
}

/* Ensure grid items have consistent height - only for product cards */
.row.row-cols-xl-4 > [class*="col-"],
.row.row-cols-lg-3 > [class*="col-"],
.row.row-cols-md-2 > [class*="col-"] {
    display: flex;
}

.row.row-cols-xl-4 > [class*="col-"] > .product-card,
.row.row-cols-lg-3 > [class*="col-"] > .product-card,
.row.row-cols-md-2 > [class*="col-"] > .product-card {
    width: 100%;
}

/* Sidebar Cart Open State */
#sidebar-cart.open {
    right: 0;
    visibility: visible;
}

#sidebar-cart-curtain.show {
    display: block;
}

/* Add to Cart button loading state */
.add-to-cart.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Pagination styles - matching html/shop.html design */
.pagination-wrape {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.pagination-wrape .pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.pagination-wrape .page-item {
    display: inline-block;
}

.pagination-wrape .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #FFFFFF;
    color: #333333;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
}

.pagination-wrape .page-link:hover {
    background: #F5F5F5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.pagination-wrape .page-link.current,
.pagination-wrape .page-item.active .page-link {
    background: #8D72CC;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(141, 114, 204, 0.4);
}

.pagination-wrape .page-link.arrow {
    font-size: 16px;
}

.pagination-wrape .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* End */
/* /bitrix/templates/preventa/template_styles.css?17765450149152 */
