.latest-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.latest-grid {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.latest-loading {
    text-align: center;
    padding: 14px 0;
    display: none;
}

/* === LATEST cards: action buttons === */
#latest-products-list .product-block-inner .image {
    position: relative;
}

/* Button group: position + show/hide */
#latest-products-list .product-block-inner .image .button-group {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;

    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

/* Show on hover/focus */
#latest-products-list .product-block-inner .image:hover .button-group,
#latest-products-list .product-block-inner:focus-within .button-group {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Vertical stack */
#latest-products-list .product-block-inner .image .top-btn {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

/* Button style */
#latest-products-list .product-block-inner .image .top-btn button,
#latest-products-list .product-block-inner .image .top-btn a {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(15, 23, 42, .10);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(10px);

    box-shadow: 0 10px 20px rgba(2, 6, 23, .12);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    text-decoration: none;
    cursor: pointer;
}

#latest-products-list .product-block-inner .image .top-btn i {
    font-size: 15px;
    line-height: 1;
    color: #0f172a;
    display: inline-block; /* icon gizlənməsin */
}

/* Hover effects */
#latest-products-list .product-block:hover .top-btn button,
#latest-products-list .product-block:hover .top-btn a {
    box-shadow: 0 16px 34px rgba(2, 6, 23, .16);
}

#latest-products-list .product-block-inner .image .top-btn button:hover,
#latest-products-list .product-block-inner .image .top-btn a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .95);
}

/* Mobile/touch: always visible */
@media (hover: none) {
    #latest-products-list .product-block-inner .image .button-group {
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }
}

/* Bottom add-to-cart button */
#latest-products-list .product-details .caption > .addtocart {
    margin-top: 10px;
    width: 100%;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(109, 94, 252, .95), rgba(0, 212, 255, .90));
    color: #fff;
    font-weight: 800;
    padding: 10px 12px;
    box-shadow: 0 14px 28px rgba(109, 94, 252, .18);
    transition: transform .15s ease, box-shadow .15s ease;
}

#latest-products-list .product-details .caption > .addtocart:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(109, 94, 252, .22);
}


.latest-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 22px 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
    border: 1px solid #eceff3;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.latest-products-head__left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.latest-products-head__title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: #1f2937;
}

.latest-products-head__desc {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.latest-products-head__right {
    margin-left: auto;
}

.latest-products-head__btn i {
    font-size: 13px;
    transition: transform .25s ease;
}

.latest-products-head__btn:hover i {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .latest-products-head {
        padding: 18px;
    }

    .latest-products-head__title {
        font-size: 22px;
    }

    .latest-products-head__right {
        width: 100%;
        margin-left: 0;
    }

    .latest-products-head__btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===============================
   VERTICAL CATEGORY MENU - NEW
   =============================== */

#verticalmenublock {
    position: relative;
    z-index: 120;
}

#verticalmenublock .box-heading {
    position: relative;
    z-index: 2;
}

#verticalmenublock .categorymenu_block {
    padding: 0;
    overflow: visible !important;
    background: #fff;
}

#verticalmenublock .category-menu-shell {
    position: relative;
    overflow: visible;
}

#verticalmenublock .category-menu-scroll {
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border: 1px solid #e7eaf0;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, .25) transparent;
}

#verticalmenublock .category-menu-scroll {
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    border: 1px solid #e7eaf0;
    border-top: 0;
    border-radius: 0 0 14px 14px;

    -ms-overflow-style: none;   /* IE və köhnə Edge */
    scrollbar-width: none;      /* Firefox */
}

#verticalmenublock .category-menu-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

#verticalmenublock .category-menu-root {
    list-style: none;
    margin: 0;
    padding: 0;
}

#verticalmenublock .category-item {
    position: relative;
    border-bottom: 1px solid #eef1f5;
    background: #fff;
}

#verticalmenublock .category-item:last-child {
    border-bottom: 0;
}

#verticalmenublock .category-item__row {
    display: flex;
    align-items: stretch;
    min-height: 52px;
}

#verticalmenublock .category-item__link {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #526277;
    padding: 0 14px;
    transition: background .18s ease, color .18s ease;
}

#verticalmenublock .category-item__left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

#verticalmenublock .category-item__left span {
    display: block;
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}

#verticalmenublock .category-item__toggle {
    width: 46px;
    min-width: 46px;
    border: 0;
    border-left: 1px solid #eef1f5;
    background: #fff;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

#verticalmenublock .category-item__toggle i {
    font-size: 18px;
    line-height: 1;
}

#verticalmenublock .category-item:hover > .category-item__row .category-item__link,
#verticalmenublock .category-item.is-active > .category-item__row .category-item__link {
    background: #f8fbff;
    color: #1e3a8a;
}

#verticalmenublock .category-item:hover > .category-item__row .category-item__toggle,
#verticalmenublock .category-item.is-active > .category-item__row .category-item__toggle {
    background: #f8fbff;
    color: #1e3a8a;
}

#verticalmenublock .category-submenu-template {
    display: none !important;
}

#verticalmenublock .category-inline-panel {
    display: none;
    padding: 8px 12px 12px;
    background: #f8fafc;
    border-top: 1px solid #eef1f5;
}

#verticalmenublock .category-inline-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#verticalmenublock .category-inline-list li + li {
    margin-top: 6px;
}

#verticalmenublock .category-inline-list a {
    display: block;
    text-decoration: none;
    color: #475569;
    background: #fff;
    border: 1px solid #e7eaf0;
    border-radius: 10px;
    padding: 10px 12px;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

#verticalmenublock .category-inline-list a:hover {
    color: #1e3a8a;
    border-color: #cdd9ee;
    background: #fdfefe;
}

/* Desktop flyout */
#verticalmenublock .category-flyout {
    position: absolute;
    left: calc(100% + 12px);
    top: 0;
    width: 300px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 9999;
}

#verticalmenublock .category-flyout.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

#verticalmenublock .category-flyout-card {
    background: #fff;
    border: 1px solid #dbe5f1;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
    overflow: hidden;
}

#verticalmenublock .category-flyout-card__title {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 1px solid #eef1f5;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

#verticalmenublock .category-flyout-list {
    list-style: none;
    margin: 0;
    padding: 8px;
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, .25) transparent;
}

#verticalmenublock .category-flyout-list::-webkit-scrollbar {
    width: 6px;
}

#verticalmenublock .category-flyout-list::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, .22);
    border-radius: 20px;
}

#verticalmenublock .category-flyout-list::-webkit-scrollbar-track {
    background: transparent;
}

#verticalmenublock .category-flyout-list li + li {
    margin-top: 4px;
}

#verticalmenublock .category-flyout-list a {
    display: block;
    text-decoration: none;
    color: #475569;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background .18s ease, color .18s ease;
}

#verticalmenublock .category-flyout-list a:hover {
    background: #f8fbff;
    color: #1e3a8a;
}

/* Slider altda qalmasın */
.content-top,
.home-container,
.main-slider,
.swiper-viewport,
#slideshow0 {
    position: relative;
}

.main-slider,
.swiper-viewport,
#slideshow0 {
    z-index: 1;
}

#verticalmenublock,
#verticalmenublock .category-menu-shell {
    z-index: 120;
}

@media (max-width: 991px) {
    #verticalmenublock {
        z-index: auto;
    }

    #verticalmenublock .category-menu-scroll {
        max-height: 360px;
        border-radius: 0 0 12px 12px;
    }

    #verticalmenublock .category-flyout {
        display: none !important;
    }

    #verticalmenublock .category-item__toggle {
        display: inline-flex;
    }

    #verticalmenublock .category-item.is-mobile-open > .category-item__row .category-item__toggle i {
        transform: rotate(90deg);
    }
}

@media (min-width: 992px) {
    #verticalmenublock .category-inline-panel {
        display: none !important;
    }
}
