/* ============================================================
   Voltek — "Yeni əlavə olunanlar" bölməsi
   ------------------------------------------------------------
   Bu CSS tamamilə müstəqildir. Heç bir tema (.product, .media,
   .owl-*, ul.products) qaydası ilə qarışmır. Bütün siniflər
   "vnp" prefiksi ilə başlayır və yalnız bu bölmədə işlədilir.

   HTML strukturu:
     <section class="vnp">
       <div class="vnp__head">
         <h2 class="vnp__title">…</h2>
         <a class="vnp__more" href="…">…</a>
       </div>
       <div class="vnp__viewport">
         <ul class="vnp__track">
           <li class="vnp__slide">
             <article class="vnp__card">
               <div class="vnp__media">
                 <img class="vnp__img"  ... />
                 <span class="vnp__badge vnp__badge--new">…</span>
               </div>
               <div class="vnp__info">
                 <span class="vnp__brand">…</span>
                 <a class="vnp__name" href="…">…</a>
                 <div class="vnp__price-row">
                   <span class="vnp__price">… ₼</span>
                   <span class="vnp__price vnp__price--old">… ₼</span>
                 </div>
                 <div class="vnp__actions">
                   <button class="vnp__btn vnp__btn--calc">…</button>
                   <a class="vnp__btn vnp__btn--wp" href="…">…</a>
                   <a class="vnp__btn vnp__btn--cart" data-itemId="…">…</a>
                 </div>
               </div>
               <div class="vnp__meta">
                 <button class="vnp__fav voltek-favorite-btn" data-product-id="…">…</button>
                 <span class="vnp__views"><i class="far fa-eye"></i> 99</span>
               </div>
             </article>
           </li>
           ...
         </ul>
       </div>
       <button class="vnp__nav vnp__nav--prev" type="button">…</button>
       <button class="vnp__nav vnp__nav--next" type="button">…</button>
       <div class="vnp__dots"></div>
     </section>

   JS: voltek-newproducts.js inisializasiya edir.
   ============================================================ */

/* — Reset & base — */
.vnp,
.vnp *,
.vnp *::before,
.vnp *::after {
    box-sizing: border-box;
}

.vnp {
    position: relative;
    margin: 1.75rem 0 0;
    padding: clamp(16px, 2.4vw, 26px);
    border-radius: 22px;
    background:
        radial-gradient(circle at 10% 0%, rgba(214, 35, 35, 0.10), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
    box-shadow: 0 18px 46px rgba(37, 52, 68, 0.08);
    color: #1a2330;
    font-family: inherit;
}

.vnp > .vnp__viewport > ul.vnp__track {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.vnp > .vnp__viewport > ul.vnp__track::before,
.vnp > .vnp__viewport > ul.vnp__track::after {
    content: none !important;
    display: none !important;
}

.vnp__nav,
.vnp__dot {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.vnp img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* — Başlıq — */
.vnp__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
    flex-wrap: wrap;
}

.vnp__title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    padding: 0 !important;
    color: #1a2330 !important;
    font-size: clamp(1.25rem, 2.2vw, 1.85rem) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em;
    text-transform: none;
    text-shadow: none;
    border: 0;
    background: transparent;
}

.vnp__title::before {
    content: "";
    width: 32px;
    height: 3px;
    border-radius: 999px;
    background: #d62323;
    display: inline-block;
    flex-shrink: 0;
}

.vnp__title::after {
    content: none !important;
}

.vnp .vnp__more,
a.vnp__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: #1a2330 !important;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(26, 35, 48, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.vnp .vnp__more:hover,
.vnp .vnp__more:focus,
a.vnp__more:hover,
a.vnp__more:focus {
    color: #fff !important;
    background: #d62323 !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(214, 35, 35, 0.22);
    text-decoration: none;
}

/* — Viewport / track — */
.vnp__viewport {
    position: relative;
    overflow: hidden;
    margin: 0 -6px;
    padding: 6px 6px 8px;
}

.vnp__track {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 14px;
    width: 100%;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.vnp__track.is-dragging {
    transition: none;
    cursor: grabbing;
}

/* — Slayd: Məhsullar (nine-products) ilə eyni kart ölçüsü — */
.vnp .vnp__track.products.nine-products > li.product {
    flex: 0 0 auto;
    position: relative;
    width: calc((100% - 14px * 4) / 5) !important;
    max-width: none !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    min-width: 0;
    display: block !important;
    box-sizing: border-box !important;
}

.vnp .vnp__track.products.nine-products > li.product .loop-product-categories a {
    font-weight: 700 !important;
    color: #1a2330 !important;
}

.vnp .vnp__track.products.nine-products > li.product .product-inner,
.vnp .vnp__track.products.nine-products > li.product {
    padding-bottom: 0 !important;
}

.vnp .vnp__track.products.nine-products > li.product .product-inner {
    padding-bottom: 3px !important;
}

.vnp .vnp__track.products.nine-products > li.product .calculator {
    z-index: 60;
}

@media (max-width: 991px) {
    .vnp__track {
        gap: 12px;
    }

    .vnp .vnp__track.products.nine-products > li.product {
        width: calc((100% - 12px) / 2) !important;
    }
}

@media screen and (orientation: landscape) and (max-device-width: 800px) {
    .vnp .vnp__track.products.nine-products > li.product:last-of-type {
        display: block !important;
    }
}

/* Köhnə vnp kartı (variant=vnp) — saxlanılır, əsas səhifədə istifadə olunmur */
.vnp__card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border: 1px solid #e9eef3;
    border-radius: 18px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 6px 18px rgba(37, 52, 68, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.vnp__card:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 35, 35, 0.25);
    box-shadow: 0 16px 36px rgba(37, 52, 68, 0.14);
}

/* — Şəkil sahəsi — */
.vnp__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 12px 12px 0;
    width: calc(100% - 24px);
    border-radius: 14px;
    background: linear-gradient(160deg, #f7f9fc 0%, #eef2f7 100%);
    overflow: hidden;
}

.vnp__img {
    position: absolute;
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    object-fit: contain;
    transition: transform 0.35s ease;
}

.vnp__card:hover .vnp__img {
    transform: scale(1.05);
}

/* — Badge-lər — */
.vnp__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    display: inline-flex;
    pointer-events: none;
}

.vnp__badge img {
    width: 50px;
    height: auto;
    filter: drop-shadow(0 6px 12px rgba(37, 52, 68, 0.18));
}

.vnp__badge--stock {
    top: auto;
    bottom: 10px;
}

/* — Mətn sahəsi — */
.vnp__info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 12px 14px 10px;
    min-width: 0;
}

.vnp__brand {
    display: block;
    margin: 0 0 6px;
    color: #9aa3ad;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.vnp__name {
    display: -webkit-box;
    margin: 0 0 10px;
    color: #1a2330 !important;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.7em;
    text-decoration: none;
}

.vnp__name:hover {
    color: #d62323 !important;
}

.vnp__price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.vnp__price {
    color: #d62323;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.vnp__price--old {
    color: #9aa3ad;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: line-through;
}

/* — Aksiya düymələri — */
.vnp__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eef1f4;
}

.vnp__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #f6f8fb;
    color: #1a2330;
    box-shadow: inset 0 0 0 1px rgba(37, 52, 68, 0.07);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.vnp__btn:hover {
    background: #fff;
    box-shadow: 0 8px 18px rgba(37, 52, 68, 0.14);
    transform: translateY(-2px);
}

.vnp__btn img {
    max-width: 20px;
    max-height: 20px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.vnp__btn--calc:not(.is-active) {
    opacity: 0.55;
    cursor: not-allowed;
}

.vnp__btn--cart {
    margin-left: auto;
    background: #d62323;
    color: #fff;
    box-shadow: 0 6px 14px rgba(214, 35, 35, 0.28);
}

.vnp__btn--cart:hover {
    background: #b81818;
    color: #fff;
    box-shadow: 0 12px 22px rgba(214, 35, 35, 0.36);
}

.vnp__btn--cart img {
    filter: none;
}

.vnp__btn--cart i {
    font-size: 16px;
    line-height: 1;
    color: #fff;
}

.vnp__btn--cart svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #d62323;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vnp__btn--cart:hover svg {
    stroke: #fff;
}

/* — Footer (favorit + baxış sayı) — */
.vnp__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 14px;
    background: #fbfcfd;
    border-top: 1px solid #eef1f4;
}

.vnp__fav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #d62323;
    font-size: 0.95rem;
    line-height: 1;
}

.vnp__fav .fas {
    display: none;
}

.vnp__fav.is-active .far,
.vnp__fav[data-active="true"] .far {
    display: none;
}

.vnp__fav.is-active .fas,
.vnp__fav[data-active="true"] .fas {
    display: inline-block;
}

.vnp__views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7380;
    font-size: 0.84rem;
    font-weight: 600;
}

.vnp__views i {
    color: #d62323;
}

/* — Slider naviqasiyası — */
.vnp__nav {
    position: absolute;
    top: 50%;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #1a2330;
    box-shadow: 0 10px 24px rgba(37, 52, 68, 0.16);
    transform: translateY(-50%);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.vnp__nav:hover {
    background: #d62323;
    color: #fff;
    transform: translateY(calc(-50% - 2px));
}

.vnp__nav[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.vnp__nav--prev {
    left: -18px;
}

.vnp__nav--next {
    right: -18px;
}

.vnp__nav svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 767px) {
    .vnp__nav {
        width: 36px;
        height: 36px;
    }
    .vnp__nav--prev { left: 6px; }
    .vnp__nav--next { right: 6px; }
}

/* — Dots — */
.vnp__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
}

.vnp__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cfd6df;
    transition: width 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.vnp__dot.is-active {
    width: 28px;
    background: #d62323;
}

/* — Kalkulyator pop-up (legacy .calculator-i bu kart daxilində uyğunlaşdır) — */
.vnp__calc-wrap {
    position: relative;
}

.vnp__calc-wrap .calculator {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    z-index: 50;
}

/* — Kiçik ekranda paddingi azalt — */
@media (max-width: 700px) {
    .vnp { padding: 14px; border-radius: 18px; }
    .vnp__head { margin-bottom: 14px; }
    .vnp__more { min-height: 36px; padding: 0 14px; font-size: 0.8rem; }
}
