/* ====================================================
   Back to top button
   ==================================================== */
.backtotop {
    cursor: pointer;
    background: var(--color-3);
    bottom: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px;
    position: fixed;
    right: 12px;
    text-align: center;
    text-transform: uppercase;
    width: 40px;
    z-index: 999;
    border-radius: 4px;
    border: 1px solid #FFF;
}

.backtotop svg {
    width: 26px;
    height: 18px;
    margin-bottom: -1px;
}

.backtotop svg path {
    stroke: #fff;
}

/* ====================================================
   Support Widget / Contact Panel
   ==================================================== */
.support-widget {
    position: fixed;
    bottom: 69px;
    right: 15px;
    z-index: 99;
}

.trigger-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-3);
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 167, 84, 0.4);
    transition: transform 0.2s;
}

.trigger-btn:hover {
    transform: scale(1.05);
}

.trigger-btn .icon-bvc-member img {
    /* width: 34px;
    height: 34px; */
    border-radius: 50%;
    object-fit: cover;
}

.trigger-btn .icon-close-main {
    display: none;
    width: 22px;
    height: 22px;
    fill: #fff;
}

.trigger-btn.active .icon-bvc-member {
    display: none;
}

.trigger-btn.active .icon-close-main {
    display: block;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-3);
    animation: pulse-ring 2s ease-out infinite;
    pointer-events: none;
}

.pulse-ring:nth-child(2) {
    animation-delay: 0.8s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.contact-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 310px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 20px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    z-index: 999;
}

.contact-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 14px 0;
    background: transparent;
    color: #0f172a;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-info {
    flex: 1;
}

.panel-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
}

.panel-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    line-height: 1.2;
}

.panel-info span {
    font-size: 13px;
    color: #22c55e;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    flex-shrink: 0;
}

.close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.panel-greeting {
    padding: 0;
    font-size: 14px;
    color: #475569;
    margin: 0 0 16px 0;
    border-bottom: none;
    line-height: 1.5;
    font-weight: 400;
}

.contact-list {
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
    padding: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none !important;
    background: #edf5fd;
    border: 1px solid #d0e4ff;
    color: #0f172a !important;
    transition: all 0.2s ease;
    gap: 12px;
    margin-bottom: 10px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item:hover {
    background: #e2f0fe;
    border-color: #3b82f6;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.contact-item .icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    overflow: hidden;
}

.contact-item .icon-wrap img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: contain;
}

.contact-text {
    flex: 1;
}

.contact-text strong {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: block;
    line-height: 1.25;
}

.contact-text p {
    font-size: 13px;
    color: #64748b;
    margin: 2px 0 0 0;
    line-height: 1.3;
    font-weight: 400;
}

.contact-arrow {
    margin-left: auto;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.contact-item:hover .contact-arrow {
    color: #475569;
    transform: translateX(2px);
}

.icon-bvc-member svg {
    width: 30px;
    height: 30px;
    fill: #FFF;
}

.icon-headset {
    fill: #3b82f6;
    width: 38px;
    height: 38px;
}

/* ====================================================
   Footer Component Layout & Styling
   ==================================================== */
.site-footer {
    background-color: var(--color-3);
    padding-top: 70px;
    position: relative;
    overflow: hidden;
    color: #FFF;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-3);
    opacity: 0.85;
    z-index: 1;
    pointer-events: none;
}


.site-footer::after {
    content: "";
    position: absolute;
    bottom: 48px;
    right: 0;
    width: 280px;
    height: 150px;
    background-image: radial-gradient(rgba(0, 139, 70, 0.08) 1.5px, transparent 1.5px);
    background-size: 15px 15px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-right: -15px;
    margin-left: -15px;
    position: relative;
    z-index: 2;
    /* above the background shapes */
    padding-bottom: 40px;
}

.footer-col {
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 25px;
}

.footer-col-1,
.footer-col-brand {
    flex: 0 0 21%;
    max-width: 21%;
}

.footer-col-brand p {
    line-height: 1.6;
}

.footer-col-2,
.footer-col.info {
    flex: 0 0 13%;
    max-width: 13%;
}

.footer-col-3,
.footer-col.company {
    flex: 0 0 15%;
    max-width: 15%;
}

.footer-col-4,
.footer-col.address {
    flex: 0 0 28%;
    max-width: 28%;
}

.footer-col-5,
.footer-col.social {
    flex: 0 0 18%;
    max-width: 18%;
}

.footer-col-brand .image {
    max-width: 136px;
    width: 100% !important;
    margin-bottom: 10px;
}

/* Title styling */
.footer-col h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    /* padding-left: 12px; */
    line-height: 1.2;
    text-transform: uppercase;
}

/* .footer-col h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background-color: var(--color-3);
} */

/* Contact Info Styling */
.contact-info-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-col-contact .contact-info-group:first-of-type {
    border-bottom: 1.5px dashed var(--color-3);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.footer-col-contact h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 7px;
}

.footer-col-contact p {
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col-contact h2+h3+p {
    border-bottom: 1.5px dashed var(--color-3);
    margin-bottom: 15px;
}

/* Links Styling */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    font-size: 15px;
    transition: all 0.2s ease;
    display: inline-block;
    color: #FFF;
}

.footer-col ul li a:hover {
    opacity: .7;
}

.footer-col.address ul li {
    padding-left: 30px;
    position: relative;
}

.footer-col.address ul li img {
    position: absolute;
    top: 0;
    left: 0;
}


/* Brand column styling */
.footer-logo {
    margin-bottom: 18px;
}

.footer-logo img {
    display: block;
    height: auto;
    max-width: 100%;
}

.footer-description {
    font-size: 13.5px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

/* Social icons styling */
.footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.social-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #7f7f7f;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-icon img {
    width: 12px;
    height: 12px;
}

.social-icon.linkedin {
    background-color: #0077b5;
}

.social-icon.facebook {
    background-color: #1877f2;
}

.social-icon.tiktok {
    background-color: #000000;
}

.social-icon.x {
    background-color: #000000;
}

.social-icon.youtube {
    background-color: #ff0000;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

/* Bottom Copyright Bar */
.footer-bottom {
    background-color: #121212;
    color: rgba(255, 255, 255, .5);
    padding: 10px 0;
    position: relative;
    z-index: 2;
}

.copyright-text {
    font-size: 15px;
    margin: 0;
    text-align: center;
    padding: 0 50px;
}

.copyright-text a {
    color: rgba(255, 255, 255, .5);
}

.icon-bvc-member svg {
    width: 30px;
    height: 30px;
    fill: #FFF;
}

.panel-avatar {
    display: flex;
}

.register-news-letter {
    display: block;
    color: #FFF;
    margin-top: 10px;
    font-size: 15px;
}

.register-news-letter:hover {
    color: #FFF;
    opacity: .7;
}

/* Responsive media queries */
@media (max-width: 1024px) {

    .footer-col-1,
    .footer-col-brand {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer-col-2,
    .footer-col-3,
    .footer-col-4,
    .footer-col-5,
    .footer-col:not(.footer-col-brand) {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding-top: 30px;
    }

    .footer-col.address,
    .footer-col.social {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .footer-col:not(.footer-col-brand) {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .site-footer::before {
        width: 100%;
        height: 120px;
        clip-path: polygon(0 100%, 100% 100%, 0 0);
    }

    .site-footer::after {
        display: none;
    }

    .footer-row {
        padding-bottom: 20px;
        margin-right: -10px;
        margin-left: -10px;
    }

    .footer-col {
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media (max-width: 480px) {
    /* .footer-col:not(.footer-col-brand) {
        flex: 0 0 100%;
        max-width: 100%;
    } */

    .footer-col ul li a {
        font-size: 14px;
    }

    .footer-col ul {
        gap: 10px;
    }

    .footer-col-contact .contact-info-group:first-of-type {
        border-bottom: 1.5px dashed var(--color-3);
        padding-bottom: 12px;
        margin-bottom: 12px;
        max-width: 100%;
    }

    .footer-col h2 {
        font-size: 15px;
    }
}



/* ====================================================
   Footer Categories (Product Categories Row)
   ==================================================== */
.footer-categories {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgb(54 152 216);
    /* Premium red divider line */
    position: relative;
    z-index: 2;
    /* Ensure clickable above overlay */
}

.footer-categories-title {
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-categories-item {
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background-color: rgb(52 149 211);
    /* Muted semi-transparent red-burgundy */
    /* border: 1px solid rgba(158, 35, 38, 0.75); */
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.footer-categories-item:hover {
    color: #ffffff;
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    .footer-categories {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    .footer-categories-title {
        margin-bottom: 15px;
    }

    .footer-categories-item {
        /* 2 items per row on tablet portrait */
        padding: 10px 15px;
        font-size: 13.5px;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .footer-categories-item {
        /* 1 item per row on mobile */
        padding: 11px 15px;
    }

    .footer-col-brand .image {
        max-width: 150px;
    }
}
