.willy-search {
    display: flex;
    align-items: center;
    width: min(540px, 100%);
    background: linear-gradient(135deg, #ffffff 0%, #f7faf8 100%);
    border: 1px solid #d4ded9;
    border-radius: 999px;
    padding: 6px 6px 6px 14px;
    box-shadow: 0 8px 18px rgba(6, 71, 31, 0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.willy-search:hover,
.willy-search:focus-within {
    border-color: #0d8f3a;
    box-shadow: 0 12px 24px rgba(6, 71, 31, 0.16);
    transform: translateY(-1px);
}

.willy-search-icon {
    color: #0d8f3a;
    font-size: 1.6rem;
    margin-right: 10px;
}

.willy-search input.form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
    height: 40px;
    padding: 0;
    color: #1f2937;
    font-size: 1.4rem;
}

.willy-search input.form-control::placeholder {
    color: #6b7280;
    opacity: 1;
}

.willy-search input.form-control:focus {
    border: 0;
    box-shadow: none;
}

.willy-search-btn {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d8f3a 0%, #07622a 100%);
    color: #fff;
    min-width: 102px;
    height: 40px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.willy-search-btn:hover,
.willy-search-btn:focus {
    color: #fff;
    transform: translateY(-1px);
}

.mobile-menu-container .willy-search {
    width: 100%;
    margin-bottom: 12px;
}

.mobile-menu-container .willy-search-btn {
    min-width: 90px;
}

@media (max-width: 1199px) {
    .header-middle .container {
        gap: 12px;
    }

    .willy-search {
        width: min(430px, 100%);
    }

    .willy-search-btn {
        min-width: 88px;
    }
}

@media (max-width: 991px) {
    .header-search-mobile-hide {
        display: none;
    }
}

/* Recent products modern cards */
.recent-products-section {
    margin-top: 4px;
}

.recent-products-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.recent-products-title {
    margin: 0;
    font-size: clamp(2.8rem, 3vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.recent-products-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 1.35rem;
}

.recent-products-grid {
    margin: 0 -10px;
}

.recent-product-item {
    padding: 10px;
}

.recent-product-card {
    background: #fff;
    border: 1px solid #e5ebe7;
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.recent-product-card:hover {
    transform: translateY(-4px);
    border-color: #0d8f3a;
    box-shadow: 0 12px 22px rgba(6, 71, 31, 0.11);
}

.recent-product-media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f5f4;
}

.recent-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.recent-product-card:hover .recent-product-image {
    transform: scale(1.04);
}

.recent-product-body {
    padding: 14px 14px 16px;
}

.recent-product-category {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ecf7ef;
    color: #0c7a33;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 10px;
}

.recent-product-name {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 2.2vw, 2.5rem);
    line-height: 1.2;
}

.recent-product-name a {
    color: #23272f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d8f3a;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.recent-product-link i {
    font-size: 1.2rem;
}

@media (max-width: 767px) {
    .recent-products-head {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 12px;
    }

    .recent-products-subtitle {
        font-size: 1.2rem;
    }

    .recent-product-body {
        padding: 12px 12px 14px;
    }
}

/* Home top modern refresh */
.home-nav-modern {
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.home-nav-modern .main-nav>ul>li>a {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.home-category-modern .category-toggle {
    background: linear-gradient(135deg, #0d8f3a 0%, #07622a 100%);
}

.home-category-modern .dropdown-box {
    border: 1px solid #dbe7e0;
    border-top: 0;
    box-shadow: 0 12px 22px rgba(6, 71, 31, 0.1);
}

.home-hero-shell {
    margin-top: 14px;
}

.home-hero-slider {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 30px rgba(17, 24, 39, 0.15);
}

.home-hero-slider .swiper-button-next,
.home-hero-slider .swiper-button-prev {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
    color: #fff;
}

.home-hero-slider .swiper-button-next::after,
.home-hero-slider .swiper-button-prev::after {
    font-size: 1.4rem;
    font-weight: 700;
}

.home-features-modern {
    background: #fff;
    border: 1px solid #e4ece8;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(6, 71, 31, 0.06);
    padding: 10px 0;
}

.home-features-modern .swiper-wrapper {
    margin: 0;
}

.home-features-modern .swiper-slide {
    padding: 0 6px;
    box-sizing: border-box;
}

.home-feature-card {
    border-radius: 12px;
    margin: 0;
    padding: 12px 10px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.home-feature-card .icon-box-icon {
    color: #0d8f3a;
}

.home-feature-card .icon-box-title {
    font-size: 1.8rem;
    margin: 0;
}

.home-feature-card:hover {
    background: #f3faf5;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .home-nav-modern {
        border-radius: 10px;
    }

    .home-hero-slider {
        border-radius: 14px;
    }

    .home-feature-card .icon-box-title {
        font-size: 1.6rem;
    }
}

/* Home alignment fix: keep category panel visible */
.home-nav-modern {
    overflow: visible;
}

.home-category-modern {
    position: relative;
    z-index: 20;
}

.home-category-modern .dropdown-box {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    left: 0;
    top: 100%;
    z-index: 30;
}

@media (max-width: 991px) {
    .home-category-modern .dropdown-box {
        display: none;
    }
}

/* Rewritten home benefits section */
.home-benefits-section {
    background: #fff;
    border: 1px solid #e4ece8;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(6, 71, 31, 0.06);
    padding: 8px;
}

.home-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.home-benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 12px;
    padding: 14px 12px;
    background: #ffffff;
    min-height: 128px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.home-benefit-card:hover {
    background: #f3faf5;
    transform: translateY(-2px);
}

.home-benefit-icon {
    color: #0d8f3a;
    font-size: 2.6rem;
    line-height: 1;
    margin-top: 2px;
}

.home-benefit-content h4 {
    margin: 0 0 6px;
    font-size: 1.8rem;
    line-height: 1.25;
    color: #2a2f39;
    min-height: 4.5rem;
    display: flex;
    align-items: center;
}

.home-benefit-content p {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.45;
    color: #6b7280;
    max-width: 28ch;
}

@media (max-width: 1199px) {
    .home-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .home-benefits-section {
        padding: 6px;
    }

    .home-benefits-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .home-benefit-card {
        padding: 12px 10px;
    }

    .home-benefit-content h4 {
        font-size: 1.75rem;
    }
}

/* Modern side category panel */
.home-category-modern .dropdown-box {
    background: #fdfdfd;
    border: 1px solid #dbe7e0;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 14px 26px rgba(6, 71, 31, 0.12);
    padding: 8px 0;
    overflow: hidden;
}

.home-category-modern .dropdown-box::before {
    display: none;
}

.home-category-modern .category-menu {
    margin: 0;
}

.home-category-modern .category-menu>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    color: #2b3440;
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.3;
    border-bottom: 1px solid #eef3f0;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.home-category-modern .category-menu>li:last-child>a {
    border-bottom: 0;
    margin-top: 2px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #0d8f3a;
    background: #eff9f2;
}

.home-category-modern .category-menu>li>a:hover {
    background: #f2faf5;
    color: #0d8f3a;
    padding-left: 20px;
}

.home-category-modern .category-menu>li:last-child>a:hover {
    background: #e4f6ea;
}

@media (max-width: 991px) {
    .home-category-modern .dropdown-box {
        display: block;
        position: static;
        margin-top: 0;
        border-top: 1px solid #dbe7e0;
        border-radius: 0 0 12px 12px;
    }

    .home-category-modern .category-menu>li>a {
        padding: 11px 14px;
        font-size: 1.35rem;
    }
}

/* Item page modern layout */
.item-page-modern {
    margin-top: 10px;
}

.item-modern-shell {
    background: #fff;
    border: 1px solid #e2eae6;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 12px 24px rgba(6, 71, 31, 0.07);
    margin-bottom: 26px;
}

.item-modern-media {
    border-radius: 14px;
    overflow: hidden;
    background: #f3f6f4;
}

.item-modern-image {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.item-modern-details {
    padding: 6px 6px 0;
}

.item-modern-title {
    margin: 0 0 10px;
    font-size: clamp(2.8rem, 3.6vw, 4.4rem);
    line-height: 1.1;
    color: #232a34;
}

.item-modern-category {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #ecf7ef;
    color: #0c7a33;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.item-modern-desc {
    color: #374151;
    font-size: 1.52rem;
    line-height: 1.55;
}

.item-modern-desc p {
    margin-bottom: 0.8rem;
}

.item-modern-models {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8efeb;
}

.item-modern-models-title {
    margin: 0 0 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.item-modern-model-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.item-modern-model-tag {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #d8e6dd;
    background: #fff;
    color: #2b3440;
    font-size: 1.3rem;
    line-height: 1;
}

.item-related-section {
    margin-top: 8px;
}

.item-related-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.item-related-title {
    margin: 0;
    font-size: clamp(2.4rem, 2.8vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.item-related-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 1.3rem;
}

.item-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.item-related-card {
    background: #fff;
    border: 1px solid #e4ece8;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.item-related-card:hover {
    transform: translateY(-4px);
    border-color: #0d8f3a;
    box-shadow: 0 14px 24px rgba(6, 71, 31, 0.1);
}

.item-related-media {
    display: block;
    aspect-ratio: 4 / 3;
    background: #f3f5f4;
    overflow: hidden;
}

.item-related-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.item-related-card:hover .item-related-image {
    transform: scale(1.04);
}

.item-related-body {
    padding: 13px 13px 14px;
}

.item-related-category {
    display: inline-block;
    margin-bottom: 9px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #ecf7ef;
    color: #0c7a33;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1;
}

.item-related-name {
    margin: 0 0 10px;
    min-height: 5.2rem;
    font-size: clamp(2rem, 2.1vw, 2.8rem);
    line-height: 1.2;
}

.item-related-name a {
    color: #252b34;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-related-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d8f3a;
    font-size: 1.22rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.item-related-empty {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px dashed #cddad3;
    border-radius: 14px;
    padding: 22px;
    text-align: center;
    color: #6b7280;
    font-size: 1.5rem;
}

.item-not-found {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px solid #e4ece8;
    border-radius: 16px;
}

.item-not-found h3 {
    margin-bottom: 10px;
}

.item-not-found p {
    margin-bottom: 16px;
    color: #6b7280;
}

@media (max-width: 991px) {
    .item-modern-image {
        min-height: 320px;
    }

    .item-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .item-related-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .item-modern-shell {
        padding: 12px;
    }

    .item-modern-title {
        font-size: clamp(2.4rem, 8vw, 3.2rem);
    }

    .item-related-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .item-related-name {
        min-height: 0;
    }
}

/* Modern categories page */
.categories-page-modern {
    margin-top: 8px;
}

.categories-modern-shell {
    background: #fff;
    border: 1px solid #e3ebe7;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(6, 71, 31, 0.07);
    padding: 20px;
}

.categories-modern-head {
    margin-bottom: 18px;
}

.categories-modern-title {
    margin: 0;
    font-size: clamp(3rem, 4vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.categories-modern-subtitle {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 1.45rem;
}

.categories-modern-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.categories-modern-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
    border: 1px solid #e4ece8;
    border-radius: 14px;
    padding: 14px 14px;
    min-height: 64px;
    color: #2a313c;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.categories-modern-card:hover {
    transform: translateY(-3px);
    border-color: #0d8f3a;
    box-shadow: 0 12px 20px rgba(6, 71, 31, 0.1);
    background: #f1faf4;
    color: #0d8f3a;
}

.categories-modern-name {
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.25;
}

.categories-modern-arrow {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecf7ef;
    color: #0c7a33;
    font-size: 1.2rem;
}

.categories-modern-empty {
    grid-column: 1 / -1;
    border: 1px dashed #cfdbd4;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 1.5rem;
}

@media (max-width: 1199px) {
    .categories-modern-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .categories-modern-shell {
        padding: 16px;
    }

    .categories-modern-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .categories-modern-grid {
        grid-template-columns: 1fr;
    }

    .categories-modern-card {
        min-height: 58px;
        padding: 12px 12px;
    }

    .categories-modern-name {
        font-size: 1.52rem;
    }
}

/* Items page modern listing */
.items-page-modern {
    margin-top: 8px;
}

.items-modern-shell {
    background: #fff;
    border: 1px solid #e3ebe7;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(6, 71, 31, 0.07);
    padding: 20px;
    margin-bottom: 20px;
}

.items-modern-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.items-modern-title {
    margin: 0;
    font-size: clamp(2.8rem, 3.3vw, 3.8rem);
    line-height: 1.1;
}

.items-modern-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 1.35rem;
}

.items-filter-form {
    margin-bottom: 14px;
}

.items-filter-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e4ece8;
    border-radius: 12px;
    background: #f8fbf9;
    width: fit-content;
}

.items-filter-label {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    color: #374151;
}

.items-filter-select {
    min-width: 220px;
    border-radius: 10px;
    border-color: #cfe0d7;
    background: #fff;
}

.items-view-item {
    padding: 10px;
}

.items-view-card {
    background: #fff;
    border: 1px solid #e4ece8;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.items-view-card:hover {
    transform: translateY(-4px);
    border-color: #0d8f3a;
    box-shadow: 0 14px 24px rgba(6, 71, 31, 0.1);
}

.items-view-media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f5f4;
}

.items-view-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.items-view-card:hover .items-view-image {
    transform: scale(1.04);
}

.items-view-body {
    padding: 13px 13px 14px;
}

.items-view-category {
    display: inline-block;
    margin-bottom: 9px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #ecf7ef;
    color: #0c7a33;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1;
}

.items-view-name {
    margin: 0 0 10px;
    min-height: 5.2rem;
    font-size: clamp(2rem, 2.1vw, 2.8rem);
    line-height: 1.2;
}

.items-view-name a {
    color: #252b34;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.items-view-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d8f3a;
    font-size: 1.22rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.items-view-empty {
    width: 100%;
    border: 1px dashed #cfdbd4;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 1.5rem;
}

.items-modern-pagination {
    margin-top: 14px;
}

.items-modern-pagination .pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.items-modern-pagination .pagination li a,
.items-modern-pagination .pagination li span {
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #d5e4db;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    padding: 0 10px;
}

.items-modern-pagination .pagination .active span,
.items-modern-pagination .pagination li a:hover {
    border-color: #0d8f3a;
    background: #ecf7ef;
    color: #0d8f3a;
}

@media (max-width: 991px) {
    .items-modern-shell {
        padding: 16px;
    }

    .items-modern-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .items-filter-wrap {
        width: 100%;
        flex-wrap: wrap;
    }

    .items-filter-select {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .items-modern-shell {
        padding: 12px;
    }

    .items-view-name {
        min-height: 0;
    }
}
/* Scroll-top progress ring color */
#scroll-top svg #progress-indicator {
    stroke: #0d8f3a !important;
}

/* Home category + card balance fixes */
.home-category-modern .dropdown-box {
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.home-category-modern:hover .dropdown-box,
.home-category-modern.show .dropdown-box,
.home-category-modern.open .dropdown-box {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.home-benefits-section {
    position: relative;
    z-index: 1;
}

.recent-products-grid {
    align-items: stretch;
}

.recent-product-item {
    display: flex;
}

.recent-product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.recent-product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.recent-product-name {
    min-height: 6rem;
}

.recent-product-link {
    margin-top: auto;
}

@media (max-width: 991px) {
    .home-category-modern .dropdown-box {
        display: none;
    }

    .home-category-modern.show .dropdown-box,
    .home-category-modern.open .dropdown-box {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .recent-product-name {
        min-height: 0;
    }
}

/* Recent product equal-height hard fix */
.recent-product-name {
    min-height: 8.2rem;
}

.recent-product-name a {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.2;
    max-height: 2.4em;
}

@media (max-width: 991px) {
    .recent-product-name {
        min-height: 0;
    }
}

/* Home category scroll behavior: open by default, hide on scroll down, keep hover open */
@media (min-width: 992px) {
    .home-category-modern .dropdown-box {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .home-category-modern.is-scrolled .dropdown-box {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(6px) !important;
    }

    .home-category-modern.is-scrolled:hover .dropdown-box,
    .home-category-modern.is-scrolled:focus-within .dropdown-box,
    .home-category-modern.is-scrolled.show .dropdown-box,
    .home-category-modern.is-scrolled.open .dropdown-box {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
}

/* Contact page modern upgrade */
.contact-page-modern {
    padding-bottom: 0;
}

.contact-modern-wrapper {
    margin-top: 6px;
}

.contact-modern-head {
    margin-bottom: 16px;
}

.contact-modern-title {
    margin: 0;
    font-size: clamp(2.6rem, 3.1vw, 3.4rem);
    line-height: 1.12;
}

.contact-modern-subtitle {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 1.4rem;
}

.contact-modern-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.contact-modern-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
    border: 1px solid #e4ece8;
    border-radius: 16px;
    padding: 18px 16px;
    min-height: 215px;
    box-shadow: 0 10px 18px rgba(6, 71, 31, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-modern-card:hover {
    transform: translateY(-3px);
    border-color: #0d8f3a;
    box-shadow: 0 14px 24px rgba(6, 71, 31, 0.1);
}

.contact-modern-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #ecf7ef;
    color: #0d8f3a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    margin-bottom: 12px;
}

.contact-modern-card h4 {
    margin: 0 0 8px;
    font-size: 2rem;
    line-height: 1.2;
    color: #222a35;
}

.contact-modern-card h5 {
    margin: 10px 0 6px;
    font-size: 1.45rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-modern-card p {
    margin: 0 0 4px;
    font-size: 1.45rem;
    line-height: 1.5;
    color: #4b5563;
}

.contact-modern-card a {
    color: #0a7a33;
}

.contact-modern-form-wrap {
    margin-top: 8px;
}

.contact-modern-form-card {
    background: #fff;
    border: 1px solid #e4ece8;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 12px 24px rgba(6, 71, 31, 0.07);
}

.contact-modern-form-title {
    margin: 0 0 14px;
    font-size: clamp(2.4rem, 2.7vw, 3rem);
}

.contact-modern-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.contact-modern-form .form-group {
    margin-bottom: 12px;
}

.contact-modern-form .form-group label {
    font-size: 1.4rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.contact-modern-form .form-control {
    height: 48px;
    border-radius: 12px;
    border-color: #d3e0d8;
    background: #f9fcfa;
    padding: 0 14px;
    font-size: 1.42rem;
    color: #1f2937;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-modern-form textarea.form-control {
    min-height: 150px;
    padding: 12px 14px;
}

.contact-modern-form .form-control:focus {
    border-color: #0d8f3a;
    box-shadow: 0 0 0 3px rgba(13, 143, 58, 0.12);
    background: #fff;
}

.contact-modern-captcha {
    margin-top: 4px;
    margin-bottom: 10px;
}

.contact-modern-btn {
    min-width: 150px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d8f3a 0%, #07622a 100%);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-modern-btn:hover,
.contact-modern-btn:focus {
    color: #fff;
    background: linear-gradient(135deg, #0f9b3f 0%, #08692d 100%);
}

.contact-modern-maps {
    margin-top: 6px;
    padding-bottom: 18px;
}

.contact-modern-map-card {
    background: #fff;
    border: 1px solid #e4ece8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 22px rgba(6, 71, 31, 0.07);
}

.contact-modern-map-card h5 {
    margin: 0;
    padding: 12px 14px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    border-bottom: 1px solid #edf2ef;
    background: #f8fbf9;
}

.contact-modern-map-card iframe {
    display: block;
}

@media (max-width: 1199px) {
    .contact-modern-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .contact-modern-grid,
    .contact-modern-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-modern-form-card {
        padding: 14px;
    }
}
