/* ===== Product Category Grid ===== */
.fc-product-cat-grid {
    display: grid;
    gap: 20px 12px;
    grid-template-columns: repeat(8, 1fr);
}

/* Responsive */
@media (max-width: 1200px) {
    .fc-product-cat-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 900px) {
    .fc-product-cat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .fc-product-cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 400px) {
    .fc-product-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.fc-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 10px;
    transition: transform 0.2s ease;
}

.fc-cat-item:hover {
    transform: translateY(-4px);
}

.fc-cat-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.fc-cat-thumb img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.fc-cat-name {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    color: #333;
    line-height: 1.4;
}

/* ===== Parent -> Child Categories ===== */
.fc-parent-child-categories {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Danh sách logo hãng nằm ngang */
.fc-parent-child-categories .fc-pcc__grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Mỗi ô logo */
.fc-parent-child-categories .fc-pcc__item {
    width: auto;
    min-width: 124px;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px;
    background: #f4f6f8;
    border: 1px solid #edf0f3;
    border-radius: 16px;

    transition: all 0.25s ease;
}

/* Hover đẹp hơn */
.fc-parent-child-categories .fc-pcc__item:hover {
    background: #fff;
    border-color: #0b7f3a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Khung ảnh */
.fc-parent-child-categories .fc-pcc__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Logo hãng */
.fc-parent-child-categories .fc-pcc__thumb img {
    width: auto;
    height: 70px;
    object-fit: contain;
    display: block;
}

/* ===== Home News ===== */
.fc-home-news {
    overflow: hidden;
}


.fc-home-news__body {
    display: grid;
    grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
    gap: 18px;
}

.fc-home-news__featured {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fc-home-news__featured-media,
.fc-home-news__item-media {
    display: block;
    overflow: hidden;
    background: #f5f5f5;
}

.fc-home-news__featured-media {
    height: 249px
}

.fc-home-news__item-media {
    flex: 0 0 160px;
    width: 160px;
    aspect-ratio: 16 / 9;
}

.fc-home-news__featured-media img,
.fc-home-news__item-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fc-home-news__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e6e6e6);
}

.fc-home-news__post-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.fc-home-news__post-title a {
    color: #111;
    text-decoration: none;
}

.fc-home-news__post-title a:hover {
    color: #0a9b58;
}

.fc-home-news__post-title--featured {
    font-size: 19px;
}

.fc-home-news__date {
    color: #8e97a3;
    font-size: 14px;
    line-height: 1.35;
}

.fc-home-news__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
}

.fc-home-news__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.fc-home-news__item-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 900px) {
    .fc-home-news__body {
        grid-template-columns: 1fr;
    }

    .fc-home-news__list {
        grid-template-columns: 1fr;
    }

    .fc-home-news__item-media {
        flex-basis: 140px;
        width: 140px;
    }
}

@media (max-width: 640px) {
    .fc-home-news__body {
        padding: 12px;
    }

    .fc-home-news__item {
        gap: 10px;
    }

    .fc-home-news__featured-media {
        aspect-ratio: 4 / 3;
    }

    .fc-home-news__item-media {
        flex-basis: 110px;
        width: 110px;
    }

.fc-home-news__post-title--featured {
    font-size: 17px;
}
}

/* ===== Shop Page Categories ===== */
.shop-page-cat {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0;
    background: #fff;
    border: 1px solid #ececec;
    overflow: hidden;
}

.shop-page-cat__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 136px;
    padding: 12px 8px 10px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    border-right: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.shop-page-cat__item:hover {
    background: #fafafa;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

.shop-page-cat__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    overflow: hidden;
    flex: 0 0 auto;
}

.shop-page-cat__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-page-cat__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.25;
    color: #111;
    word-break: break-word;
    min-height: 35px;
}

.shop-page-cat__item:nth-child(8n) {
    border-right: 0;
}

@media (max-width: 1024px) {
    .shop-page-cat {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .shop-page-cat__item:nth-child(8n) {
        border-right: 1px solid #ececec;
    }

    .shop-page-cat__item:nth-child(5n) {
        border-right: 0;
    }
}

@media (max-width: 640px) {
    .shop-page-cat {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-page-cat__item {
        min-height: 124px;
        padding: 10px 8px;
    }

    .shop-page-cat__image {
        width: 66px;
        height: 66px;
    }

    .shop-page-cat__title {
        font-size: 13px;
        line-height: 1.25;
        min-height: 32px;
    }

    .shop-page-cat__item:nth-child(5n),
    .shop-page-cat__item:nth-child(8n) {
        border-right: 1px solid #ececec;
    }

    .shop-page-cat__item:nth-child(2n) {
        border-right: 0;
    }
}

/* ===== Site Breadcrumb ===== */
.fc-site-breadcrumb {
    padding: 10px 0 12px;
    background: #fff;
}

.fc-site-breadcrumb__nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.fc-site-breadcrumb__link {
    color: #444;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fc-site-breadcrumb__link:hover {
    color: var(--primary-color);
}

.fc-site-breadcrumb__sep {
    color: #bbb;
}

.fc-site-breadcrumb__current {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== Product Slider ===== */
.fc-product-slider-wrap {
    position: relative;
    padding: 0;
}

.fc-product-slider .swiper-button-next,
.fc-product-slider .swiper-button-prev {
    color: #333;
    background: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    top: 38%;
}

.fc-product-slider .swiper-button-next::after,
.fc-product-slider .swiper-button-prev::after {
    font-size: 14px;
    font-weight: 700;
}

/* Card */
.fc-product-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.2s ease;
}

.fc-product-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

/* Image */
.fc-card-img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
}

.fc-card-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: opacity 0.35s ease;
}

.fc-img-hover {
    opacity: 0;
}

.fc-card-img-wrap:hover .fc-img-main {
    opacity: 0;
}

.fc-card-img-wrap:hover .fc-img-hover {
    opacity: 1;
}

/* Card Body */
.fc-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.fc-brand {
    font-size: 12px;
    font-weight: 700;
    color: #0073e6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fc-card-title {
    font-size: 13px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fc-card-title:hover {
    color: #e30;
}

/* Prices */
.fc-prices {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fc-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fc-price-original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.fc-badge-discount {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #e00;
    padding: 1px 6px;
    border-radius: 4px;
}

.fc-price-sale {
    font-size: 16px;
    font-weight: 700;
    color: #e00;
}

.fc-price-sale .woocommerce-Price-amount,
.fc-price-original .woocommerce-Price-amount {
    font-size: inherit;
    color: inherit;
}

/* Call Button */
.fc-call-btn {
    display: block;
    margin-top: auto;
    /* padding: 8px 10px;
    background: #fff5f5;
    border: 1px solid #f8d0d0;
    border-radius: 6px;
    text-align: center; */
    text-decoration: none;
    font-size: 15px;
    color: #c00;
    line-height: 1.5;
    transition: background 0.2s ease;
}

/* .fc-call-btn:hover {
    background: #ffe0e0;
    color: #900;
} */

.fc-call-btn small {
    font-size: 13px;
    color: #888;
    font-weight: 400;
}

@media (max-width: 768px) {
    .fc-product-slider-wrap {
        padding: 0 28px;
    }
}

/* =====================================================
   Product Filter Shortcode
   ===================================================== */

/* Breadcrumb */
.fc-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 18px;
}

.fc-breadcrumb a {
    color: #555;
    text-decoration: none;
}

.fc-breadcrumb a:hover {
    color: #e00;
}

.fc-breadcrumb .fc-sep {
    margin: 0 6px;
    color: #ccc;
}

.fc-breadcrumb span {
    color: #222;
    font-weight: 600;
}

/* Controls bar */
.fc-filter-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 18px;
}

.fc-filter-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fc-filter-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Brand button */
.fc-brand-filter-wrap {
    position: relative;
}

.fc-brand-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    position: relative;
}

.fc-brand-btn:hover {
    border-color: #333;
}

.fc-brand-btn.has-filter {
    border-color: var(--fs-color-primary);
    color: var(--fs-color-primary);
}

.fc-brand-btn.is-open {
    border-color: #333;
}

.fc-brand-btn.is-open .fc-chevron {
    transform: rotate(180deg);
}

.fc-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.fc-active-dot {
    display: none;
    width: 8px;
    height: 8px;
    background: var(--fs-color-primary);
    border-radius: 50%;
}

.fc-active-dot.show {
    display: inline-block;
}

/* Brand dropdown */
.fc-brand-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 360px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    padding: 16px;
    z-index: 500;
}

.fc-brand-dropdown.open {
    display: block;
}

.fc-brand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.fc-brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    cursor: pointer;
    min-height: 56px;
    margin: 0;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.fc-brand-item:hover {
    border-color: #aaa;
}

.fc-brand-item.selected {
    border-color: var(--fs-color-primary);
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.15);
}

.fc-brand-item img {
    max-width: 100%;
    max-height: 36px;
    object-fit: contain;
}

.fc-brand-text {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    text-align: center;
}

/* Sort */
.fc-sort-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fc-sort-label {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
    margin-bottom: 0;
}

.fc-sort-select {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    color: #333;
    background: #fff;
    cursor: pointer;
    outline: none;
    margin-bottom: 0;
}

.fc-sort-select:focus {
    border-color: #333;
}

/* Result count */
.fc-result-count {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.fc-result-count strong {
    color: #222;
}

/* Selected filters bar */
.fc-selected-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 14px;
}

.fc-selected-label {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fc-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
}

.fc-tag-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    color: #999;
    padding: 0;
    margin: 0;
}

.fc-tag-remove:hover {
    color: var(--fs-color-primary);
}

.fc-clear-all {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--fs-color-primary);
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
    margin: 0 0 0 10px;
}

/* Grid wrap & loading */
.fc-grid-wrap {
    position: relative;
    min-height: 200px;
}

.fc-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.fc-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #f0f0f0;
    border-top-color: #e00;
    border-radius: 50%;
    animation: fc-spin 0.7s linear infinite;
}

@keyframes fc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Products grid */
.fc-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    transition: opacity 0.2s ease;
}

/* Product item card */
.fc-product-item {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.fc-product-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
}

.fc-product-item .fc-card-img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
}

.fc-product-item .fc-card-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: opacity 0.35s ease;
}

.fc-product-item .fc-img-hover {
    opacity: 0;
}

.fc-product-item .fc-card-img-wrap:hover .fc-img-main {
    opacity: 0;
}

.fc-product-item .fc-card-img-wrap:hover .fc-img-hover {
    opacity: 1;
}

.fc-product-item .fc-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

/* Pagination */
.fc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.fc-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    color: #333;
    transition: background 0.15s, border-color 0.15s;
}

.fc-page-btn:hover {
    border-color: #333;
    background: #f5f5f5;
}

.fc-page-btn.active {
    background: #e00;
    color: #fff;
    border-color: #e00;
    font-weight: 700;
}

.fc-page-ellipsis {
    font-size: 14px;
    color: #999;
    padding: 0 4px;
}

.fc-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 15px;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1200px) {
    .fc-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .fc-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .fc-brand-dropdown {
        min-width: 300px;
    }

    .fc-brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .fc-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .fc-filter-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .fc-brand-dropdown {
        min-width: 280px;
    }

    .fc-brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fc-result-count {
        font-size: 12px;
    }
}

/* Mega Menu Home */

.header-nav-main-content.is-home {
    display: none !important;
}

.nv-mega-menu-card {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.nv-mega-menu-card__shell {
    display: flex;
    align-items: stretch;
    gap: 12px;
    position: relative;
    overflow: visible;
}

.nv-mega-menu-card__menu-wrap {
    position: relative;
    width: 100%;
    z-index: 2;
}

.nv-mega-menu-card__menu-scroller {
    overflow: visible;
    max-height: none;
}

.nv-mega-menu-card__entry.is-hidden {
    display: none !important;
}

.nv-mega-menu-card__menu {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: visible;
    height: 400px;
    overflow: auto;
}

.nv-mega-menu-card__entry {
    position: relative;
    z-index: 1;
}

.nv-mega-menu-card__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 8px 16px 8px 18px;
    color: #444;
    text-decoration: none;
    background: #fff;
    border-bottom: 1px solid #ededed;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nv-mega-menu-card__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: transparent;
    transition: background-color 0.18s ease;
}

.nv-mega-menu-card__entry:last-of-type>.nv-mega-menu-card__item {
    border-bottom: 0;
}

.nv-mega-menu-card__entry:hover,
.nv-mega-menu-card__entry:focus-within,
.nv-mega-menu-card__entry.is-active {
    z-index: 20;
}

.nv-mega-menu-card__entry:hover>.nv-mega-menu-card__item,
.nv-mega-menu-card__entry:focus-within>.nv-mega-menu-card__item,
.nv-mega-menu-card__entry.is-active>.nv-mega-menu-card__item {
    background: #f2fbf4;
    color: var(--fs-color-primary, #2f7d32);
}

.nv-mega-menu-card__entry:hover>.nv-mega-menu-card__item::before,
.nv-mega-menu-card__entry:focus-within>.nv-mega-menu-card__item::before,
.nv-mega-menu-card__entry.is-active>.nv-mega-menu-card__item::before {
    background: var(--fs-color-primary, #2f7d32);
}

.nv-mega-menu-card__item:focus-visible {
    outline: 2px solid var(--fs-color-primary, #2f7d32);
    outline-offset: -2px;
}

.nv-mega-menu-card__icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nv-mega-menu-card__icon img,
.nv-mega-menu-card__icon svg,
.nv-mega-menu-card__icon i {
    display: block;
    max-width: 22px;
    max-height: 22px;
}

.nv-mega-menu-card__icon--empty {
    width: 22px;
    height: 22px;
}

.nv-mega-menu-card__label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 400;
    color: inherit;
    word-break: break-word;
}

.nv-mega-menu-card__chevron {
    flex: 0 0 auto;
    margin-left: auto;
    color: #8e8e8e;
    font-size: 22px;
    line-height: 1;
}

.nv-mega-menu-card__entry:hover>.nv-mega-menu-card__chevron,
.nv-mega-menu-card__entry:focus-within>.nv-mega-menu-card__chevron,
.nv-mega-menu-card__entry.is-active>.nv-mega-menu-card__chevron {
    color: var(--fs-color-primary, #2f7d32);
}

.nv-mega-menu-card__panel-area {
    position: absolute;
    top: 0;
    left: 100%;
    width: calc(100vw - 360px);
    min-width: 480px;
    max-width: 900px;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 1;
}

.nv-mega-menu-card.has-active-panel .nv-mega-menu-card__panel-area {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.nv-mega-menu-card__panel-area[aria-hidden="true"] {
    pointer-events: none;
}

.nv-mega-menu-card__panel {
    display: block;
    width: 100%;
    height: 100%;
}

.nv-mega-menu-card__panel[hidden] {
    display: none !important;
}

.nv-mega-menu-card__panel-inner {
    min-height: 100%;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    padding: 16px 18px 18px;
    overflow: auto;
    max-height: min(70vh, 700px);
}

.nv-mega-menu-card__panel-header {
    margin-bottom: 14px;
}

.nv-mega-menu-card__panel-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px 18px;
}

.nv-mega-menu-card__column-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.nv-mega-menu-card__column-title a {
    color: #111;
    text-decoration: none;
}

.nv-mega-menu-card__column-title a:hover {
    color: var(--fs-color-primary, #2f7d32);
}

.nv-mega-menu-card__sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nv-mega-menu-card__sublist-item+.nv-mega-menu-card__sublist-item {
    margin-top: 2px;
}

.nv-mega-menu-card__sublist-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: #444;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
}

.nv-mega-menu-card__sublist-item a:hover {
    color: var(--fs-color-primary, #2f7d32);
}

.nv-mega-menu-card__sublist-item img {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
}

@media (max-width: 768px) {
    .nv-mega-menu-card__shell {
        flex-direction: column;
    }

    .nv-mega-menu-card__menu-wrap {
        width: 100%;
        max-width: 100%;
    }

    .nv-mega-menu-card__panel-area {
        position: static;
        width: 100%;
        order: 2;
    }

    .nv-mega-menu-card__label {
        font-size: 15px;
    }

    .nv-mega-menu-card__chevron {
        font-size: 20px;
    }

    .nv-mega-menu-card__panel-inner {
        margin-top: 0;
        max-height: none;
    }

    .nv-mega-menu-card__panel-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .nv-mega-menu-card__panel-columns {
        grid-template-columns: 1fr;
    }
}
