

/* Start:/local/components/custom/car.visualizer/templates/.default/style.css?17644591158380*/
/* ==========================================================================
   SPLIT LAYOUT
   ========================================================================== */
.viz-split-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-top: 20px;
    width: 100%;
}

/* ЛЕВАЯ КОЛОНКА (Гараж) - 65% */
.viz-column-left {
    width: 65%;
    position: sticky;
    top: 20px; 
}

/* ПРАВАЯ КОЛОНКА (Товары) - 35% */
.viz-column-right {
    width: 35%;
    min-width: 360px;
}

/* Адаптив */
@media (max-width: 1200px) {
    .viz-split-layout { flex-direction: column; }
    .viz-column-left, .viz-column-right { width: 100%; position: static; }
}

/* ==========================================================================
   ЗАГОЛОВОК
   ========================================================================== */
.viz-header-compact {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.viz-title-light { font-size: 16px; color: #666; font-weight: 400; }
.viz-title-bold { font-size: 22px; color: #000; font-weight: 700; }

/* ==========================================================================
   3D ОКНО
   ========================================================================== */
.visualizer-wrapper {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    background-color: #f0f0f0;
    overflow: hidden;
    font-family: 'Open Sans', sans-serif;
    border-radius: 8px;
    border: 1px solid #ddd;
}
#visualizer-scene { width: 100%; height: 100%; display: block; outline: none; }

.viz-loader {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: #f0f0f0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; z-index: 100; color: #333; transition: opacity 0.5s;
}
.viz-loader.hidden { opacity: 0; pointer-events: none; }
.spinner {
    width: 50px; height: 50px; border: 3px solid #ccc;
    border-top: 3px solid #ff4e33; border-radius: 50%;
    animation: spin 0.8s linear infinite; margin-bottom: 15px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Тулбар */
.viz-toolbar {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 65px;
    background: rgba(30, 30, 30, 0.9); backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    gap: 1px; z-index: 20; border-top: 1px solid #444;
}
.tool-btn {
    flex: 1; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; color: #ccc; cursor: pointer;
    transition: 0.3s; border-right: 1px solid rgba(255,255,255,0.1);
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
}
.tool-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.tool-btn svg { width: 22px; height: 22px; fill: currentColor; margin-bottom: 6px; }

/* Всплывашки */
.tool-popup {
    position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%);
    background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none; z-index: 30; min-width: 280px;
}
.tool-popup.active { display: block; }
.color-grid { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.color-dot { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; border: 3px solid #eee; transition: 0.2s; }
.color-dot:hover { transform: scale(1.1); border-color: #ccc; }
.range-slider { width: 100%; }

/* ==========================================================================
   СЕТКА ТОВАРОВ
   ========================================================================== */
.custom-catalog-grid { 
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px;
    margin-bottom: 30px;
    width: 100% !important;
    box-sizing: border-box;
}

/* ==========================================================================
   КАРТОЧКА ТОВАРА
   ========================================================================== */
.custom-product-card {
    background: #fff; border: 1px solid #eef0f3; padding: 10px;
    border-radius: 6px; display: flex; flex-direction: column; position: relative;
    height: 100%; min-width: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}
.custom-product-card.active { border: 2px solid #ff4e33; }
.custom-product-card:hover {
    transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: transparent; z-index: 2;
}

/* --- КВАДРАТНАЯ КАРТИНКА --- */
.card-image {
    position: relative;
    width: 100%;
    /* height: 160px; УДАЛИЛИ ФИКСИРОВАННУЮ ВЫСОТУ */
    aspect-ratio: 1 / 1; /* ДЕЛАЕМ СТРОГИЙ КВАДРАТ */
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px; overflow: hidden;
    background: #fff;
}
.card-image img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.custom-product-card:hover .card-image img { transform: scale(1.05); }

.card-stickers {
    position: absolute; bottom: 5px; right: 5px; display: flex; flex-direction: column; gap: 4px; z-index: 5;
}
.sticker { font-size: 10px; padding: 3px 8px; border-radius: 3px; color: #fff; font-weight: 700; text-transform: uppercase; }
.sticker.hit { background: #ff9800; }
.sticker.sale { background: #ff4e33; }

.card-prices-list { margin-bottom: 8px; min-height: 35px; }
.price-row { font-size: 13px; line-height: 1.4; color: #333; display: flex; align-items: center; gap: 4px; }
.price-label { color: #777; font-size: 12px; }
.price-value { font-weight: 700; font-size: 14px; color: #000; }

.card-title { margin-bottom: 8px; height: 36px; overflow: hidden; }
.card-title a {
    font-size: 13px; line-height: 1.3; color: #000; font-weight: 600;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    text-decoration: none !important;
}
.card-title a:hover { color: #ff4e33; }

.card-stocks { margin-bottom: 10px; font-size: 11px; margin-top: auto; }
.stock-row { display: flex; justify-content: space-between; margin-bottom: 2px; }
.stock-val.in-stock { color: #28a745; position: relative; padding-left: 12px; }
.stock-val.in-stock:before { content:""; width:6px; height:6px; background:#28a745; border-radius:50%; position:absolute; left:0; top:6px; }

.card-article { font-size: 11px; color: #aaa; margin-bottom: 10px; }

/* КНОПКИ */
.card-actions { margin-top: 0; display:flex; gap:6px; }
.btn-custom-buy {
    background: #ff4e33; color: white; border: none; flex:1;
    padding: 10px 5px; border-radius: 4px; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: background 0.2s; text-transform: none; position: relative;
    white-space:nowrap;
}
.btn-custom-buy:hover { background: #e03e25; }
.btn-custom-buy.success-added { background-color: #7dca8f !important; pointer-events: none; }
.btn-custom-buy.loading { opacity: 0.8; cursor: wait; color: transparent !important; }
.btn-custom-buy.loading::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px;
    margin-left: -8px; margin-top: -8px; border: 2px solid #fff; border-radius: 50%;
    border-top-color: transparent; animation: btn-spin 0.8s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* TOAST */
#cart-toast {
    position: fixed; top: 100px; right: 30px; z-index: 2147483647;
    min-width: 320px; background-color: #fff; color: #333;
    border-radius: 8px; padding: 18px; box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    border-left: 5px solid #7dca8f; opacity: 0; transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s; font-size: 14px; display: none; align-items: center; gap: 15px;
}
#cart-toast.show { opacity: 1; transform: translateY(0); }
.toast-icon { width: 26px; height: 26px; flex-shrink: 0; }
.toast-icon svg { fill: #7dca8f; width: 100%; height: 100%; }
.toast-content { display: flex; flex-direction: column; }
.toast-title { font-weight: 700; margin-bottom: 2px; font-size: 16px; }
.toast-message { color: #666; font-size: 14px; }
/* End */
/* /local/components/custom/car.visualizer/templates/.default/style.css?17644591158380 */
