/* public/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    --primary-color: #f7bd2f;
    --secondary-color: #4c1c1d;
    --black-color: #000;
    --white-color: #ffffff;
}

body {
    background-color: var(--black-color) !important;
    color: var(--white-color) !important;
}

/* Navbar Styles */
.navbar {
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    z-index: 9999;
    transition: all 0.3s ease;
}

.active {
    color: var(--primary-color) !important;
}

/* Transparent (Dark) Navbar */
/* .navbar.navbar-transparent {
    background-color: transparent;
} */

.navbar.navbar-transparent .navbar-brand,
.navbar.navbar-transparent .nav-link,
.navbar.navbar-transparent .header-icons a {
    color: var(--white-color);
}

.navbar.navbar-transparent .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar.navbar-transparent .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Scrolled (White) Navbar */
.navbar.navbar-scrolled {
    background-color: var(--white-color) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.navbar.navbar-scrolled .navbar-brand,
.navbar.navbar-scrolled .nav-link,
.navbar.navbar-scrolled .header-icons a,
.navbar.navbar-scrolled .search-box .search-icon {
    color: var(--black-color) !important;
}

.navbar.navbar-scrolled .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.5) !important;
}

.navbar.navbar-scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.container-fluid {
    padding-left: 8% !important;
    padding-right: 8% !important;
}

.navbar-brand .logo-img {
    width: 70px;
    height: 70px;
    padding: 0.5rem;
}

.nav-link {
    color: var(--white-color);
    margin: 0 8px;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav {
    gap: 10px;
}

.search-box {
    position: relative;
}

.search-box .search-input {
    background-color: var(--black-color) !important;
    color: var(--white-color);
    border: 1px solid var(--white-color);
    width: 100% !important;
    max-width: 600px;
    padding-left: 40px;
    height: 38px;
    font-size: 0.9rem;
}

.navbar.navbar-scrolled .search-box .search-input {
    background-color: var(--white-color) !important;
    color: var(--black-color);
    border: 1px solid var(--black-color);
}

.navbar.navbar-scrolled .search-box .search-input::placeholder {
    color: #000 !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(247, 189, 47, 0.1);
}

/* Active state for nav links */
.nav-link.active {
    color: var(--primary-color) !important;

    font-weight: 600;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.search-box .search-input::placeholder {
    color: #ccc;
}

.search-box .search-input:focus {
    color: var(--primary-color);
    box-shadow: none;
    border-color: var(--primary-color);
}

.search-box .search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: var(--white-color);
    pointer-events: none;
    font-size: 1rem;
}

.search-box .search-input:focus + .search-icon {
    color: var(--primary-color);
}

.header-icons a {
    color: var(--white-color);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.header-icons .icon-size {
    font-size: 1.4rem;
}

.header-icons a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white-color) !important;
    font-size: 0.9rem;
    padding: 6px 12px;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background-color: transparent !important;
    font-size: 0.9rem;
    padding: 6px 12px;
}

.text-primary {
    color: var(--primary-color) !important;
}

.navbar.navbar-scrolled .btn-outline-primary {
    color: var(--black-color) !important;
    border-color: var(--black-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: var(--white-color) !important;
}

.dropdown-menu {
    background-color: var(--black-color);
    border: 1px solid var(--primary-color);
}

.navbar.navbar-scrolled .dropdown-menu {
    background-color: var(--white-color);
    border: 1px solid var(--black-color);
}

.dropdown-item {
    color: var(--white-color);
}

.navbar.navbar-scrolled .dropdown-item {
    color: var(--black-color);
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--black-color);
}

@media (max-width: 1328px) {
    .login-btn {
        margin-left: auto !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 1228px) {
    .search-box-responsive {
        margin-left: auto;
        /* padding-right: 20px; */
    }

    .login-btn {
        margin-left: 0px !important;
    }
}

@media (max-width: 825px) {
    .header-stats-icon {
        margin-left: auto;
    }

    .navbar-collapse {
        flex-grow: 0 !important;
    }

    .search-box-responsive {
        margin-left: 0px !important;
        /* padding-right: 20px; */
    }

    .login-btn {
        margin-left: 0px !important;
    }
}

@media (max-width: 730px) {
    .navbar-toggler {
        margin-left: auto !important;
        margin-right: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 664px) {
    .navbar-toggler {
        margin-left: 0 !important;
        margin-right: 20px;
        padding-right: 20px;
    }

    .login-btn {
        margin-left: auto !important;
    }
}

@media (max-width: 562px) {
    .navbar-toggler {
        margin-left: 0 !important;
        margin-right: 20px;
        padding-right: 20px;
    }

    .login-btn {
        margin-left: 0 !important;
    }

    .search-box-responsive {
        margin-left: 0 !important;
    }
}

@media (max-width: 485px) {
    .search-box-responsive-mobile {
        display: block;
        margin: 20px 10px;
    }

    .search-box-responsive {
        display: none;
    }
}

@media (min-width: 486px) {
    .search-box-responsive-mobile {
        display: none;
    }

    .search-box-responsive {
        display: block;
    }
}

/*
@media (max-width: 486px) {
    .navbar-toggler {
        margin-left: auto !important;
        margin-right: 20px;
        padding-right: 20px;
    }




}

@media (max-width: 396px) {
    .navbar-toggler {
        margin-left: auto !important;
        margin-right: 20px;
        padding-right: 20px;
    }

}

@media (max-width: 396px) {
    .navbar-toggler {
        margin-left: 0 !important;
        margin-right: 20px;
        padding-right: 20px;
    }

    .login-btn {
        margin-left: auto !important;
    }

} */

/* Extra large devices (1200px and up) */
@media (min-width: 992px) {
    .navbar-brand .logo-img {
        width: 90px;
        height: 90px;
    }

    .nav-link {
        margin: 0 15px;
    }

    .search-box {
        max-width: 300px;
    }
}

.flex-wrap-end {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

/* Carousel Styles */
.carousel-item {
    min-height: 500px;
    background: linear-gradient(135deg, #1a2a2a 0%, #2e3f3f 100%);
    width: 100% !important;
}

.shop-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.shop-btn:hover {
    background-color: #e55a2b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 0.9;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 10px;
    margin: 0 5px;
}

h1.display-4 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

p.lead {
    font-size: 1.25rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.img-fluid {
    max-height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    transition: transform 0.5s ease;
}

.img-fluid:hover {
    transform: translateY(-10px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .carousel-item {
        text-align: center;
        padding: 30px 0;
    }

    h1.display-4 {
        font-size: 2.5rem;
    }

    .img-fluid {
        max-height: 300px;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        min-height: 450px;
    }

    h1.display-4 {
        font-size: 2rem;
    }

    p.lead {
        font-size: 1.1rem;
    }

    .shop-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Brand Carousel Styles */
.brand-carousel .owl-stage {
    display: flex;
    align-items: center;
}

.brand-item {
    padding: 15px;
}

.brand-logo-wrapper {
    background: white;
    border-radius: 8px;
    padding: 20px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.brand-logo-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.brand-logo {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.owl-nav {
    position: absolute;
    transform: translateY(-100%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.owl-nav button {
    background: var(--secondary-color) !important;
    color: white !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    /* margin: 0 10px; */
}

.owl-nav button:hover {
    background: var(--primary-color) !important;
}

.owl-dots {
    margin-top: 20px;
}

.owl-dot span {
    width: 12px;
    height: 12px;
    margin: 5px;
}

.owl-dot.active span {
    background: var(--secondary-color) !important;
}

.category-card {
    background: #2a2a2a;
    border: none;
    border-radius: 1rem;
    text-align: center;
    height: 100%;
}

.category-card img,
.product-card img {
    max-width: 100%;
    width: 100%;
    max-height: 200px;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.category-card p,
.product-card p {
    margin-top: 10px;
    color: #ccc;
}

.product-card-cart {
    background: #1e1e1e;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card .product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.product-card .product-title:hover {
    color: var(--primary-color);
}

.product-card .sell-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
    margin: 5px 0;
}

.product-card .normal-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 10px;
}

.product-card .review {
    color: #f1c40f;
    margin-bottom: 10px;
}

.product-card .btn {
    font-size: 0.9rem;
    padding: 8px 12px;
    margin: 5px;
}

.testimonial-card {
    border-radius: 15px;
    padding: 20px;
    color: #ffffff;
    background-color: #1e2128;
}

.testimonial-card img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.testimonial-card p {
    max-height: 100px;
    overflow-y: auto;
    margin: 0;
    padding-right: 10px;
    /* Space for scrollbar */
    font-size: 16px;
    /* Adjust as needed */
    line-height: 1.5;
    /* Adjust for readability */
}

/* Optional: Custom scrollbar styling for better aesthetics */
.testimonial-card p::-webkit-scrollbar {
    width: 8px;
}

.testimonial-card p::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.testimonial-card p::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.testimonial-card p::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.faq-item {
    background-color: #2d2d2d;
    border: none;
    border-bottom: 1px solid #444;
    padding: 15px 20px;
}

.faq-item .accordion-button {
    color: #fff;
    background-color: #2d2d2d;
    font-size: 1.1rem;
    padding: 10px 0;
}

.faq-item .accordion-button:not(.collapsed) {
    color: #fff;
    background-color: #3d3d3d;
}

.faq-item .accordion-button::after {
    background-image: none;
    content: "\f067";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    float: right;
}

.faq-item .accordion-button:not(.collapsed)::after {
    content: "\f068";
}

.faq-item .accordion-collapse {
    color: #ccc;
    font-size: 1rem;
    padding-top: 10px;
}

.faq-item.rounded-bottom {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.faq-item.rounded-bottom .accordion-collapse.show {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.footer {
    background-color: #1a1a1a;
    border-top: 1px solid #444;
}

.footer-column {
    color: #ffffff;
}

.footer-column h5 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #fff;
}

.footer .social-icons a {
    color: #ccc;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer .social-icons a:hover {
    color: #fff;
}

.footer .copyright {
    color: #888;
    font-size: 0.9rem;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .footer-column {
        text-align: center;
    }

    .footer .social-icons {
        justify-content: center;
    }
}

.footer .contact-info p {
    color: #ffffff;
    /* margin: 5px 0; */
    font-size: 0.95rem;
    display: flex;
    justify-content: start;
    align-items: center;
}

.footer .contact-info i {
    color: #fff;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .contact-info {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: center;
        justify-content: center !important;
    }
}

.product-details-card {
    background-color: #1e222b;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.rating-section {
    background-color: #1e222b;
    border-radius: 0.5rem;
    padding: 1rem;
}

.price-tag {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.75rem;
}

.in-stock {
    background-color: var(--primary-color);
    color: black;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-block;
}

.quantity-control {
    background-color: #12141a;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
}

.quantity-control button {
    color: #9ca3af;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border: none;
    background: transparent;
}

.quantity-control input {
    width: 2.5rem;
    background-color: #12141a;
    color: white;
    text-align: center;
    border: none;
    font-weight: 600;
}

.btn-primary-custom {
    background-color: var(--primary-color) !important;
    color: black !important;
    font-weight: 600 !important;
    border: none !important;
}

.btn-primary-custom:hover {
    background-color: var(--secondary-color) !important;
    color: var(--color-white) !important;
}

.btn-outline-custom {
    border: 1px solid #6b7280 !important;
    color: #9ca3af !important;
    font-weight: 600 !important;
}

.btn-outline-custom:hover {
    border-color: white !important;
    color: white !important;
}

.specs-table tr {
    border-bottom: 1px solid #374151;
}

.specs-table td {
    padding: 0.25rem 0;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #d1d5db;
}

.specs-table td:last-child {
    text-align: right;
}

.zoomContainer {
    z-index: 999;
}

/* Enhanced main image styling */
.main-image-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #12141a;
    margin-bottom: 1rem;
}

#zoom-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: crosshair;
}

.thumbnail-carousel .item {
    padding: 0.25rem;
}

.thumbnail-carousel img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail-carousel img:hover,
.thumbnail-carousel img.active {
    opacity: 1;
    border: 2px solid var(--primary-color);
}

/* Review Section Styles */
.review-card {
    background-color: #1e222b;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
}

.review-date {
    color: #9ca3af;
    font-size: 0.875rem;
}

.review-content {
    color: #d1d5db;
    line-height: 1.6;
}

.review-images {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.review-image {
    width: 80px;
    height: 80px;
    border-radius: 0.25rem;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.review-image:hover {
    transform: scale(1.05);
}

.helpful-btn {
    background-color: transparent;
    border: 1px solid #374151;
    color: #9ca3af;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1rem;
}

.helpful-btn:hover {
    background-color: #374151;
    color: white;
}

.helpful-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: black;
}

.add-review-form {
    background-color: #1e222b;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: #d1d5db;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control-custom {
    background-color: #12141a;
    border: 1px solid #374151;
    color: white;
    border-radius: 0.25rem;
    padding: 0.75rem;
    width: 100%;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary-color);
}

.star-rating {
    display: flex;
    gap: 0.5rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 1.5rem;
    color: #374151;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating input:checked ~ label {
    color: #374151;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffd700;
}

.image-upload {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.image-upload-label {
    width: 80px;
    height: 80px;
    border: 2px dashed #374151;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.image-upload-label:hover {
    border-color: var(--primary-color);
}

.image-preview {
    position: relative;
    width: 80px;
    height: 80px;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
}

.review-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rating-breakdown {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rating-bar-label {
    width: 60px;
    color: #d1d5db;
    font-size: 0.875rem;
}

.rating-bar-progress {
    flex: 1;
    height: 6px;
    background-color: #374151;
    border-radius: 3px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background-color: #ffd700;
}

.rating-bar-count {
    width: 30px;
    color: #9ca3af;
    font-size: 0.875rem;
    text-align: right;
}

.reviews-sort {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.sort-select {
    background-color: #12141a;
    border: 1px solid #374151;
    color: white;
    border-radius: 0.25rem;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .main-image-container {
        height: 450px;
    }

    #zoom-image {
        height: 100%;
        /* object-fit: contain; */
    }
}

.pagination {
    color: var(--text-secondary);
    font-size: 0.9rem;
    user-select: none;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination button {
    background: var(--primary-bg);
    border: 1px solid #3d3d3d;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination button:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.pagination button.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    pointer-events: none;
}


.sidebar-chat-container {
    position: fixed;
    display: flex;
    flex-direction: column;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    gap: 10px; /* spacing between buttons */
}
/* Button styles (Chat, WhatsApp, and Back to Top) */
.chat-button,
.whatsapp-button,
.back-to-top-button {
    position: relative;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
}

.chat-button:hover,
.whatsapp-button:hover,
.back-to-top-button:hover {
    background-color: var(--secondary-color);
}

/* WhatsApp button specific styles */
.whatsapp-button {
    background-color: #25d366;
}

.whatsapp-button:hover {
    background-color: #1da851;
}

/* Back to Top button specific styles */
.back-to-top-button {
    background-color: #555555;
    display: none;
    /* Hidden by default */
}

.back-to-top-button.visible {
    display: flex;
}

.back-to-top-button:hover {
    background-color: #333333;
}

/* Hide Back to Top button when chat window is open and viewport height <= 100vh */
@media (max-height: 100vh) {
    .chat-window.open ~ .back-to-top-button {
        display: none !important;
    }
}

/* Chat window styles */
/* Placeholder text color */
input::placeholder {
    color: #ffffff !important;
    opacity: 0.7;
}

input::-webkit-input-placeholder {
    color: #ffffff !important;
    opacity: 0.7;
}

input::-moz-placeholder {
    color: #ffffff !important;
    opacity: 0.7;
}

input:-ms-input-placeholder {
    color: #ffffff !important;
    opacity: 0.7;
}

/* Chat Button */
.chat-button {
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s;
}
.chat-button:hover {
    transform: scale(1.1);
}

/* Chat Window */
.chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
   max-height: 400px;

    /* background: white; */
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.chat-window.open {
    display: flex;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-close {
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f1f5f9;
}

.chat-message {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.5;
    word-wrap: break-word;
}
.chat-message.bot {
    background: white;
    align-self: flex-start;
    color: #000000;
    border-bottom-left-radius: 4px;
}
.chat-message.user {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-input {
    display: flex;
    padding: 16px;
    background: #000;
    border-top: 1px solid #e2e8f0;
}
.chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    outline: none;
    font-size: 15px;
}
.chat-input input:focus {
    border-color: var(--primary-color);
}
.chat-input button {
    margin-left: 10px;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Welcome Form */
.welcome-form {
    padding: 30px 20px;
    text-align: center;
    /* background:; */
}
.welcome-form h3 {
    margin-bottom: 10px;
    color: #000000;
}
.welcome-form p {
    color: #64748b;
    margin-bottom: 20px;
}
.welcome-form input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
}
.welcome-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
}
.welcome-form input::placeholder {
    color: #000 !important; /* dark text */
    opacity: 1; /* ensures it is fully visible */
}

.typing {
    font-style: italic;
    color: #94a3b8;
    padding: 10px 16px;
}
