:root {
    /* --primary-color: #0d6efd; */
    /* --secondary-color: #6c757d; */
    /* --dark-color: #212529; */
    --light-color: #f8f9fa;
    --bs-body-bg: #fff;
    --bs-navbar-brand-font-size: 1.25rem !important;
    --body-background-color: #f8f9fc;
    --bs-modal-padding: 0.5rem;
    --bs-modal-footer-border: none;

    --primary-color: #3498db;
    --secondary-color: #f8f9fa;
    --accent-color: #e74c3c;
    --dark-color: #343a40;
    --light-background-color: #dde7f1;
    --highlight-background-color: #ecf0f1;

    --user-primary-color: #4e73df;
    --user-seller-color: #28a745;
    --user-secondary-color: #f8f9fc;
    --user-accent-color: #dddfeb;

    --input-placeholder-textcolor: #c0c0c0;
}

input.form-control::placeholder {
    color: var(--input-placeholder-textcolor);
}

.required-field::after {
            content: "*";
            color: #dc3545;
            margin-left: 4px;
        }

main { overflow: hidden; }

.navbar-brand {
    font-weight: 700;
}

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1505740420928-5e560c06d30e?ixlib=rb-4.0.3');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    margin-bottom: 30px;
}

.lead {
    font-style: italic;
}

.product-card {
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-img {
    height: auto;
    object-fit: contain;
    padding: 20px;
}

.price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--secondary-color);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.rating {
    color: #ffc107;
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0;
    margin-top: 50px;
}

.social-icons a {
    color: white;
    margin-right: 15px;
    font-size: 1.2rem;
}

.product-detail-img {
    max-height: 400px;
    object-fit: contain;
}

body {
    background-color: var(--body-background-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: 700;
    /* color: var(--primary-color); */
}

.cart-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    /* margin-top: 20px; */
}

.cart-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.cart-item:last-child {
    border-bottom: none;
}

#cart .product-img {
    max-width: 100px;
    height: auto;
    border-radius: 5px;
    padding: unset;
}

.quantity-selector {
    width: 70px;
    text-align: center;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 4px;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    height: 30px;
    margin: 0 5px;
}

.remove-item {
    color: var(--light-color);
    cursor: pointer;
    padding: 7px 12px !important;
}

.summary-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 20px;
}

.btn-checkout {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 10px;
}

.btn-checkout:hover {
    background-color: #2980b9;
    color: white;
}

.continue-shopping {
    color: var(--primary-color);
    text-decoration: none;
}

.empty-cart {
    text-align: center;
    padding: 50px 0;
}

.empty-cart-icon {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 20px;
}

.navbar-brand {
    font-weight: 700;
    /* color: var(--primary-color); */
}

.product-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 20px;
}

.product-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: zoom-in;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 5px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: var(--primary-color);
}

.product-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
    white-space: nowrap;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.4rem;
    margin-left: 10px;
}

.product-meta {
    margin-bottom: 20px;
}

.product-meta span {
    margin-right: 15px;
    color: #666;
}

.product-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.product-actions {
    margin: 25px 0;
}

.quantity-selector {
    width: 100px;
    text-align: center;
    margin-right: 15px;
}

.btn-add-to-cart {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 10px 25px;
}

.btn-add-to-cart:hover {
    background-color: #2980b9;
    color: white;
}

.btn-wishlist {
    background-color: white;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px 15px;
    margin-left: 10px;
}

.btn-wishlist:hover {
    background-color: #f8f9fa;
    color: var(--accent-color);
}

.product-tabs {
    margin-top: 40px;
}

.nav-tabs .nav-link {
    color: #666;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    padding: 20px 0;
    line-height: 1.8;
}

.product-features {
    list-style-type: none;
    padding-left: 0;
}

.product-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.product-features li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.review-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.review-author {
    font-weight: 600;
    margin-bottom: 5px;
}

.review-date {
    color: #999;
    font-size: 0.9rem;
}

.rating {
    color: #ffc107;
    margin-bottom: 10px;
}

.related-products {
    margin-top: 50px;
}

.product-card {
    position: relative;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    padding: 0 0 10px 0;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card-body {
    padding: 15px;
}

.product-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    /* height: 50px; */
    overflow: hidden;
}

.product-card-price {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.badge-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.social-icons a {
    color: white;
    margin-right: 15px;
    font-size: 1.2rem;
}

.social-share {
    margin-top: 20px;
}

.social-share a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #f5f5f5;
    border-radius: 50%;
    margin-right: 10px;
    color: #666;
    transition: all 0.3s ease;
}

.social-share a:hover {
    color: white;
}

.social-share .facebook:hover {
    background-color: #3b5998;
}

.social-share .twitter:hover {
    background-color: #1da1f2;
}

.social-share .pinterest:hover {
    background-color: #bd081c;
}

/* Contact Us */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--body-background-color);
}

.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
}

.contact-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    margin-bottom: 30px;
    height: 100%;
}

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

.contact-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 10px 25px;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

.business-hours {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 10px;
}

.business-hours table tr td {
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.business-hours table tr:last-child td {
    border-bottom: none;
}

.map-container {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 30px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #0b5ed7;
    transform: translateY(-3px);
}

/* Categories */

/* Category Cards */
.category-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-icon {
    background-color: var(--light-background-color);
    padding: 2rem;
    font-size: 3rem;
    color: #0d6efd;
}

.category-card-sm {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card-sm:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-icon-sm {
    background-color: var(--light-background-color);
    padding: 1.5rem;
    font-size: 1.5rem;
    color: #0d6efd;
}

/* Header */
header {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    margin-bottom: 2rem;
}

/* Footer */
footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #adb5bd !important;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-icon {
        padding: 1.5rem;
        font-size: 2.5rem;
    }
}

/* About Us */
#about-us {

    /* Navigation */
    .navbar {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    /* Hero Section */
    .about-hero {
        background: linear-gradient(135deg, #0d6efd, #0b5ed7);
        padding-top: 100px;
        padding-bottom: 100px;
    }

    /* Our Mission */
    #our-mission {

        /* Icon Boxes */
        .icon-box {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            font-size: 30px;
        }
    }

    /* Team Cards */
    .team-card {
        transition: transform 0.3s ease;
        border-radius: 10px;
        overflow: hidden;
    }

    .team-card:hover {
        transform: translateY(-10px);
    }

    .team-card img {
        transition: transform 0.3s ease;
    }

    .team-card:hover img {
        transform: scale(1.05);
    }

    .social-links a {
        display: inline-block;
        width: 36px;
        height: 36px;
        line-height: 36px;
        text-align: center;
        background-color: #f8f9fa;
        border-radius: 50%;
        margin: 0 5px;
        color: #333;
        transition: all 0.3s ease;
    }

    .social-links a:hover {
        background-color: #0d6efd;
        color: white;
    }

    /* Counter Section */
    .counter-box {
        padding: 20px;
    }

    .counter-box i {
        color: #0d6efd;
    }

    /* Testimonials */
    .card {
        border-radius: 10px;
    }

    /* Footer */
    footer a {
        text-decoration: none;
        transition: color 0.3s ease;
    }

    footer a:hover {
        color: #adb5bd !important;
    }

    .social-icons a {
        display: inline-block;
        width: 36px;
        height: 36px;
        line-height: 36px;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transition: background-color 0.3s ease;
        margin-right: 10px;
    }

    .social-icons a:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

.features-section {
    background-color: var(--highlight-background-color);
    padding: 80px 0;
    margin: 50px 0;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title {
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 0;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-outline-primary {
    /* padding: 10px 25px; */
    font-weight: 500;
}

.btn-outline-primary:hover {
    /* background-color: #2980b9; */
    border-color: #2980b9;
}

/* User Profile */
#user-profile {
    .tab-pane > h5 {
        font-weight: bold;
    }

    .tab-pane > table {
        border: solid 1px #ccc;
    }
}

#product-detail {
    .card {
        .product-img {
            height: 200px;
        }
    }
}

#shopping-cart {
    .btn-outline-primary {
        padding: 7px 25px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-hero {
        padding-top: 80px;
        padding-bottom: 80px;
        text-align: center;
    }
    
    .about-hero img {
        margin-top: 30px;
    }
}
.bi{vertical-align:-.125em;fill:#fff}

.btn-toggle {
  /* padding: .25rem .5rem; */
  /* font-weight: 600; */
  color: var(--bs-emphasis-color);
  background-color: transparent;
  width: 100%;
  position: relative;
}
.btn-toggle:hover,
.btn-toggle:focus {
  color: rgba(var(--bs-emphasis-color-rgb), .85);
  background-color: var(--bs-tertiary-bg);
}

.btn-toggle .fa {
    margin-right: 5px;
}

.btn-toggle-nav .fa {
    margin-right: 5px;
    font-size: 1.2rem;
}

/* .btn-toggle::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  transform-origin: .5em 50%;
} */

.btn-toggle::after {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  transform-origin: .5em 50%;
  margin-left: 10px;
}

/* [data-bs-theme="dark"] .btn-toggle::before {
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28255,255,255,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
} */

[data-bs-theme="dark"] .btn-toggle::after {
  /* content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%28255,255,255,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e"); */
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba%28255,255,255,.5%29' class='bi bi-caret-down-fill' viewBox='0 0 16 16'%3e%3cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3e%3c/svg%3e");
}

.btn-toggle[aria-expanded="true"] {
  color: rgba(var(--bs-emphasis-color-rgb), .85);
}
/*.btn-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}*/
.btn-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.btn-toggle-nav a {
  padding: .1875rem .5rem;
  margin-top: .125rem;
  margin-left: 1.25rem;
}
.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  background-color: var(--bs-tertiary-bg);
}

.filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.search-container {
  display: flex;
  align-items: center;
}

.search-input-wrapper {
    /* display: none; */
  overflow: hidden; /* Hide overflowing content */
  width: 0; /* Initially hide the input wrapper */
  transition: width 0.5s ease-in-out; /* Smooth transition for width change */
}

.search-input-wrapper.active {
    /* display: block; */
  width: 200px; /* Adjust as needed for desired input width */
}

.search-input {
  /* Basic styling for the input */
  border: none;
  padding: 0.5rem;
}

.modal-footer{
    border-top: var(--bs-modal-footer-border);
    padding: var(--bs-modal-padding);
}