/* Additional custom styles to supplement Tailwind */

:root {
    --primary: #d12421;
    --primary-hover: #b91613;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Header scrolled state additional styles */
#mainHeader.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    #mainHeader.scrolled #headerContent {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    #mainHeader.scrolled .header-logo {
        height: 2rem;
    }

    #mainHeader.scrolled .header-button {
        padding:6px 12px !important;
    }


/* Embla Carousel Styles */
.embla {
    overflow: hidden;
}

.embla__container {
    display: flex;
}

.embla__slide {
    flex: 0 0 100%;
    min-width: 0;
}

.embla__dot {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}
/* Carousel dot active state */
.embla__dot.is-selected {
    width: 2rem;
    background-color: white;
}

/* Mobile menu open state */
#mobileMenu.open {
    transform: translateX(0);
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d12421;
    outline-offset: 2px;
}


/*FAQ page styles*/
.faq-item {
    border: 1px solid #e0e0e0;
    overflow: hidden;
}
.faq-question-btn.active {
    background-color: rgba(0, 0, 0, 0.05);
}
.faq-question-btn.active .faq-chevron {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.open {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}

.faq-answer-content  a{
    color: var(--primary);
}
.faq-answer-content a:hover {
    color: var(--primary-hover);
}


/*resources page*/
.resources-button:hover{
    background-color:rgba(0,0,0,.05);
}

.resources-secondary a {
    color: var(--muted-foreground);
}

.resources-secondary a:hover {
    color: var(--foreground);
}

.hide-scrollbar {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}



/*custom products page */
/* Lightbox Styles */
#customProduct-lightbox {
    display: none;
}

#customProduct-lightbox.active {
    display: flex;
}

#customProduct-lightboxImage {
    cursor: default;
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}


/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/*product details*/
.product-details ul{
    list-style:disc;
    padding-left:20px;
}
.product-details li {
    padding-bottom:8px;
}

.product-details h1, .product-details h2, .product-details h3 {
    font-weight:700;
    margin-bottom:10px;
    margin-top:4px;
}

/*distributor portal*/

.portal-scroll {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(0,0,0,.25) transparent;
}


.portal-scroll::-webkit-scrollbar {
    width: 8px; /* vertical */
    height: 8px; /* horizontal */
}

.portal-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.portal-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,.25);
    border-radius: 9999px;
    border: 2px solid transparent; /* creates inset look */
    background-clip: content-box;
}

    .portal-scroll::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0,0,0,.4);
    }


.portal-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,.15);
}

.portal-scroll:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,.35);
}