/*
Custom Css
*/

.navbar.sticky-top {
    z-index: 1030;
}

#templatemo_main_nav .nav-link.active {
    color: #69bb7e;
}

/* Product Categories Sidebar */
.category-sidebar {
    background: #fff;
    border-radius: 14px;
    padding: 26px 22px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 90px;
}

.category-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #222;
    padding-bottom: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.category-title i {
    color: #69bb7e;
    margin-right: 8px;
}

.category-group {
    border-bottom: 1px solid #f2f2f2;
}

.category-group:last-child {
    border-bottom: none;
}

.category-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 4px;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 600;
    line-height: inherit;
    color: #222;
    text-decoration: none;
    background: transparent;
    border: none;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
}

.category-toggle:focus,
.category-toggle:hover {
    outline: none;
    box-shadow: none;
}

.category-toggle:hover {
    color: #69bb7e;
}

.category-toggle span i {
    color: #69bb7e;
    width: 20px;
    margin-right: 8px;
}

.category-toggle .toggle-icon {
    font-size: 12px;
    color: #aaa;
    transition: transform 0.3s ease;
}

.category-toggle:not(.collapsed) .toggle-icon {
    transform: rotate(180deg);
    color: #69bb7e;
}

.category-list {
    list-style: none;
    padding: 2px 0 12px 28px;
    margin: 0;
}

.category-list li a {
    display: block;
    padding: 7px 10px;
    margin-bottom: 2px;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.category-list li a:hover {
    background: rgba(105, 187, 126, 0.1);
    color: #4a9a63;
    transform: translateX(4px);
}

/* Certificate Section */
.certificate-section {
    background: #f8f9fa;
}

.certificate-frame {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border: 6px solid #fff;
    outline: 1px solid #e6e6e6;
}

.certificate-frame .certificate-img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.certificate-frame:hover .certificate-img {
    transform: scale(1.04);
}

.certificate-zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #69bb7e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.certificate-frame:hover .certificate-zoom {
    opacity: 1;
    transform: translateY(0);
}

.certificate-section .badge-label {
    display: inline-flex;
    align-items: center;
    background: rgba(105, 187, 126, 0.12);
    color: #4a9a63;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 30px;
}

.certificate-points li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.certificate-points h5 {
    margin-bottom: 4px;
    font-weight: 600;
}

.certificate-points .icon-circle {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(105, 187, 126, 0.12);
    color: #69bb7e;
    font-size: 20px;
    position: relative;
    animation: icon-breathe 3s ease-in-out infinite;
}

.certificate-points li:nth-child(2) .icon-circle {
    animation-delay: 0.4s;
}

.certificate-points li:nth-child(3) .icon-circle {
    animation-delay: 0.8s;
}

.certificate-points .icon-circle::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(105, 187, 126, 0.4);
    animation: icon-ring 2.5s ease-out infinite;
}

.certificate-points li:nth-child(2) .icon-circle::before {
    animation-delay: 0.4s;
}

.certificate-points li:nth-child(3) .icon-circle::before {
    animation-delay: 0.8s;
}

.certificate-points li:hover .icon-circle {
    background: #69bb7e;
    color: #fff;
    transform: scale(1.08);
}

@keyframes icon-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes icon-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.badge-label i {
    animation: icon-breathe 2.5s ease-in-out infinite;
}

/* Factory Proof Gallery */
.factory-photo {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.factory-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.factory-large img {
    height: 460px;
}

.factory-small img {
    height: 220px;
}

.factory-photo:hover img {
    transform: scale(1.06);
}

.factory-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.factory-photo:hover::after {
    opacity: 1;
}

.factory-zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #69bb7e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.factory-photo:hover .factory-zoom {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .factory-large img {
        height: 280px;
    }

    .factory-small img {
        height: 160px;
    }
}

/* Animated hamburger -> X toggler */
.custom-toggler {
    width: 22px;
    height: 18px;
    padding: 0;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
}

.custom-toggler:focus {
    box-shadow: none;
    outline: none;
}

.custom-toggler .toggler-bar {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background-color: #888;
    transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
    position: relative;
}

/* Open state (Bootstrap removes .collapsed when menu is shown) */
.custom-toggler:not(.collapsed) .bar1 {
    transform: translateY(8px) rotate(45deg);
}

.custom-toggler:not(.collapsed) .bar2 {
    opacity: 0;
}

.custom-toggler:not(.collapsed) .bar3 {
    transform: translateY(-8px) rotate(-45deg);
}
