/* Color Variables */
:root {
    --primary-color: #AA2956;
    --secondary-color: #B32B5B;
    --dark-primary: #741A3A;
    --accent-color: #882145;
    --white: #ffffff;
    --light-bg: #f8f9fa;
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
}

/* Header Styles */
.site-header {
    background: white;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    height: 50px;
}

/* Logo */
.logo {
    order: 2;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.logo img {
    max-height: 55px;
    width: auto;
}

/* Search Active State */
.search-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.7);
}

.search-active-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

/* Logo in active state */
.search-active .logo {
    position: absolute;
    left: 0;
}

.search-active .logo img {
    height: 55px;
    filter: brightness(0) invert(1);
}

/* Search form in active state */
.search-active form {
    width: 600px;
    margin: 0 auto;
    background: white;
    padding: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Hide account and cart boxes completely */
.search-active .header-actions {
    display: none !important;
}

/* Container for active search */
.search-active-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Search Box */
.search-box {
    order: 1;
    flex: 0 0 auto;
    width: 300px;
}

.search-box form {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f7f7f7;
}

.search-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box .form-control {
    height: 34px;
    border: none;
    background: transparent;
    padding: 0.3rem 1rem;
    width: 100%;
    font-size: 0.9rem;
}

.search-box .form-control:focus {
    outline: none;
    box-shadow: none;
}

/* Clear button (X) */
.search-clear {
    display: none;
    background: none;
    border: none;
    padding: 0 8px;
    color: #999;
    cursor: pointer;
    font-size: 18px;
}

.search-clear:hover {
    color: #666;
}

.search-clear.visible {
    display: block;
}

/* Search button */
.search-box .btn {
    padding: 0.3rem 0.75rem;
    border: none;
    background: transparent;
    color: #666;
    border-left: 1px solid #ddd;
}

/* Account and Cart */
.header-actions {
    order: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 300px;
    justify-content: flex-end;
}

.account-box .btn,
.cart-box .btn {
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    padding: 0;
    background: transparent;
    border: none;
}

.account-box .btn:hover,
.cart-box .btn:hover {
    color: var(--primary-color);
}

.cart-box {
    margin-left: 1rem;
}

.cart-box .badge {
    font-size: 0.6rem;
    padding: 0.15em 0.35em;
    background: var(--primary-color);
}

/* Navigation Styles */
.main-navigation {
    background-color: var(--white);
    border-bottom: 1px solid #eee;
    position: relative;
}

.main-navigation .nav {
    justify-content: flex-start;
    padding: 0;
}

.main-navigation .nav-item {
    position: relative;
}

.main-navigation .nav-link {
    color: #333;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation .nav-link:hover {
    color: var(--primary-color);
}

/* Remove dropdown arrows */
.main-navigation .nav-link.dropdown-toggle::after {
    display: none;
}

/* Adjust navigation container padding */
.main-navigation .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Adjust dropdown position due to reduced nav height */
.main-navigation .dropdown-menu {
    margin-top: 0.5rem;
}

/* Dropdown Styles */
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% - 10px);
    left: 0;
    background: var(--white);
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    min-width: 800px;
    z-index: 1000;
    transform: translateX(-25%);
    margin-top: 0;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.dropdown-grid {
    display: flex;
    flex-direction: row;
    gap: 3rem;
}

.dropdown-column {
    min-width: 160px;
}

.dropdown-header {
    color: #333;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    white-space: nowrap;
}

.dropdown-item {
    color: #666;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    transition: all 0.2s ease;
    background: transparent;
    white-space: nowrap;
}

.dropdown-item:hover {
    color: var(--primary-color);
    background: transparent;
    padding-left: 0.5rem;
}

/* Adjust dropdown position for last items */
.nav-item:last-child .dropdown-menu,
.nav-item:nth-last-child(2) .dropdown-menu {
    right: 0;
    left: auto;
    transform: translateX(0);
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .main-navigation .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .dropdown-menu {
        position: static;
        min-width: 100%;
        padding: 1rem;
        transform: none;
    }
    
    .dropdown-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .dropdown-item {
        white-space: normal;
    }
}

/* Promotional Banner */
.promotional-banner {
    margin-bottom: 2rem;
}

.promotional-banner .carousel-item {
    height: 400px;
}

.promotional-banner .carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 8px;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Shop by Category */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Category Card Styles */
.category-card {
    margin-bottom: 1rem;
}

.category-card .card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(170, 41, 86, 0.15);
}

.category-card .card-img-top {
    height: 200px;
    object-fit: cover;
    padding: 0;
    width: 100%;
}

.category-card .card-title {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.category-card .card-body {
    padding: 1rem;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.category-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.shop-now {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.shop-now:hover {
    opacity: 1;
}

.shop-now i {
    transition: transform 0.3s ease;
}

.shop-now:hover i {
    transform: translateX(5px);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--dark-primary);
    border-color: var(--dark-primary);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Badge Styles */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Product Sections */
.products-slider,
.brands-slider {
    position: relative;
    padding: 0 40px;
}

/* Slider Arrows Positioning */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.slider-arrow:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.prev-arrow {
    left: -50px;
}

.next-arrow {
    right: -50px;
}

/* Adjust container padding for arrows */
.products-slider {
    padding: 0 20px;
    position: relative;
}

/* Make sure products don't overflow */
.products-slider .row {
    margin: 0 -10px;
}

.products-slider .col-md-3 {
    padding: 0 10px;
}

/* Product Card Styles */
.product-card {
    padding: 0.5rem;
    text-decoration: none;
}

.product-card:hover {
    text-decoration: none;
}

.product-card .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 0.5rem;
    position: relative;
}

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

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

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 1;
    margin-left: 0.5rem;
}

.product-card .card-title,
.product-card .brand-name,
.product-card .price {
    text-decoration: none;
    color: inherit;
}

.card-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.brand-name {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

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

/* Wishlist Button Styles */
.wishlist-btn {
    position: relative;
    transition: all 0.3s ease;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.wishlist-btn:hover {
    background-color: rgba(170, 41, 86, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.wishlist-btn:active {
    transform: scale(0.98);
}

.wishlist-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Product Card Wishlist Button */
.product-card .wishlist-btn {
    background: transparent;
    border: none;
    padding: 8px;
    color: var(--primary-color);
    transition: transform 0.2s ease;
}

.product-card .wishlist-btn:hover {
    transform: scale(1.1);
}

.product-card .wishlist-btn i {
    font-size: 1.2rem;
}

/* Product Detail Wishlist Button */
.product-info .wishlist-btn {
    width: 100%;
    padding: 12px 24px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

/* Hover Effect */
.product-info .wishlist-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Icon styles */
.product-info .wishlist-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Focus state */
.product-info .wishlist-btn:focus {
    outline: none;
    box-shadow: none;
}

/* Disabled state */
.product-info .wishlist-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

/* When heart is filled (in wishlist) */
.product-info .wishlist-btn .fas {
    color: var(--primary-color);
}

.product-info .wishlist-btn:hover .fas {
    color: white;
}

/* List View Styles */
.product-card.list-view {
    display: flex;
    width: 100%;
}

.product-card.list-view .card {
    flex-direction: row;
    width: 100%;
}

.product-card.list-view .card-img-top {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.product-card.list-view .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
}

.product-card.list-view .product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-card.list-view .price-wishlist {
    margin-top: auto;
}

/* Price Range Styles */
.price-range {
    padding: 0.5rem 0;
}

/* Remove default focus outline */
.price-range .form-range:focus {
    outline: none;
}

.price-range .form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 0.25rem rgba(170, 41, 86, 0.25); /* Primary color with opacity */
}

.price-range .form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 0.25rem rgba(170, 41, 86, 0.25);
}

/* Slider thumb (the ball) */
.price-range .form-range::-webkit-slider-thumb {
    background: var(--primary-color);
    cursor: pointer;
}

.price-range .form-range::-moz-range-thumb {
    background: var(--primary-color);
    cursor: pointer;
}

/* Focus/Active states */
.price-range .form-range::-webkit-slider-thumb:active {
    background: var(--dark-primary);
}

.price-range .form-range::-moz-range-thumb:active {
    background: var(--dark-primary);
}

/* Track styles */
.price-range .form-range::-webkit-slider-runnable-track {
    background: #eee;
}

.price-range .form-range::-moz-range-track {
    background: #eee;
}

.price-range span {
    font-size: 0.9rem;
    color: #666;
}

/* Mobile Filters Button */
.btn-filter {
    background: white;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-filter i {
    margin-right: 0.5rem;
}

/* Brand Card Styles */
.brand-card {
    padding: 0.5rem;
}

.brand-card .card {
    border: none;
    box-shadow: 0 2px 10px rgba(170, 41, 86, 0.1);
    transition: transform 0.3s ease;
    padding: 1rem;
}

.brand-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(170, 41, 86, 0.15);
}

.brand-card .card-img-top {
    height: 100px;
    object-fit: contain;
}

/* Footer Styles */
.site-footer {
    background-color: var(--white);
    color: #333;
    border-top: 1px solid #eee;
    padding: 4rem 0 2rem;
}

.footer-logo img {
    max-height: 65px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
    opacity: 1;
}

.text-white {
    color: #333 !important;
}

.text-white-50 {
    color: #666 !important;
}

.footer-contact li {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: #666;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.social-links a:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: translateY(-3px);
}

.footer-divider {
    border-color: #eee;
    margin: 2rem 0;
    opacity: 0.5;
}

/* Payment Methods */
.payment-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.payment-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.payment-methods {
    max-height: 25px;
}

.payment-methods img {
    opacity: 0.8;
}

/* Footer Titles */
.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

/* Features Section */
.features-section {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.feature-card {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    height: 80px;
    width: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto;
    background-color: rgba(170, 41, 86, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: rotateY(180deg);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--white);
    padding: 4rem 0;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.newsletter-description {
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form .form-control {
    height: 50px;
    border: 1px solid #eee;
    padding: 0 1.5rem;
    font-size: 0.95rem;
    border-radius: 4px 0 0 4px;
}

.newsletter-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.newsletter-form .btn {
    padding: 0 2rem;
    height: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    background-color: #000;
    border: none;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    background-color: var(--primary-color);
}

.newsletter-form .input-group {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* Search Overlay Styles */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Search Active State */
.search-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.7);
}

.search-active-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

.search-active .logo img {
    filter: brightness(0) invert(1);
}

.search-active form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Search Results in Active State */
.search-active .search-results {
    background: white;
    margin-top: 10px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Search Sections */
.search-section {
    padding: 15px 0;
}

.search-section-title {
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0 20px 10px;
    border-bottom: 1px solid #eee;
    margin: 0;
}

/* Search Suggestions */
.search-suggestions {
    padding: 0;
    margin: 0;
    list-style: none;
}

.search-suggestion-item {
    padding: 8px 20px;
    cursor: pointer;
}

.search-suggestion-item:hover {
    background-color: #f8f9fa;
}

.search-suggestion-text {
    color: #333;
    font-size: 0.9rem;
}

.search-suggestion-text span {
    color: var(--primary-color);
}

/* Products Section */
.search-products {
    border-top: 1px solid #eee;
    padding: 15px 0;
}

/* Search Results Product Styles */
.search-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1.5rem;
    border-bottom: 1px solid #eee;
}

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

.search-item-image-link {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: block;
}

.search-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.search-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.search-item-title {
    color: #333;
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.3;
}

.search-item-brand {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.search-item-price {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: 0.2rem;
}

/* Add fallback background for images that fail to load */
.search-item-image:-moz-loading,
.search-item-image:not([src]),
.search-item-image[src=""] {
    background-color: #f8f9fa;
}

/* Loading State */
.search-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* Empty State */
.search-empty {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Custom Scrollbar for Search Results */
.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.search-results::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Adjust header when search is active */
.search-active-header {
    visibility: hidden;
}

/* Active state styles */
.search-active form {
    background: white;
}

/* Search Results Positioning */
.search-results {
    position: fixed;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    max-height: 70vh;
    overflow-y: auto;
}

.search-active .search-results {
    position: fixed;
    margin-top: 0;
}

/* Account Dropdown Styles */
.account-box {
    position: relative;
}

/* Add invisible bridge to prevent dropdown from closing */
.account-box::after {
    content: '';
    position: absolute;
    height: 20px;
    width: 100%;
    bottom: -10px;
    left: 0;
}

.account-box .dropdown-menu {
    min-width: 280px;
    padding: 1.5rem;
    margin-top: 0.5rem;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    right: 0;
    left: auto;
    transform: none;
    transition: all 0.3s ease;
    display: none;
}

/* Show dropdown on hover */
.account-box:hover .dropdown-menu,
.account-box .dropdown-menu:hover {
    display: block;
}

/* Login/Register Buttons */
.account-box .dropdown-menu .btn-login,
.account-box .dropdown-menu .btn-register {
    width: 100%;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.account-box .dropdown-menu .btn-login {
    background: var(--primary-color);
    color: white;
}

.account-box .dropdown-menu .btn-register {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #eee;
}

.account-box .dropdown-menu .btn-login:hover {
    background: var(--dark-primary);
}

.account-box .dropdown-menu .btn-register:hover {
    background: #e9ecef;
}

/* Links Section */
.account-box .dropdown-menu .links-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.account-box .dropdown-menu .account-link {
    display: block;
    padding: 0.5rem 0;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.account-box .dropdown-menu .account-link:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

/* Authentication Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('../images/auth/beauty-workspace.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2rem 0;
    position: relative;
}

/* Dark overlay */
.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Adjust opacity as needed */
    z-index: 1;
}

/* Ensure content stays above overlay */
.auth-page .container {
    position: relative;
    z-index: 2;
}

.auth-box {
    background: white;
    padding: 3.5rem 2.5rem 2.5rem;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

.auth-logo {
    height: 45px;
    width: auto;
    margin-top: -2rem;
    margin-bottom: 2.5rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
}

.auth-subtitle {
    color: #666;
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.auth-form .form-label {
    font-weight: 500;
    color: #444;
}

.auth-form .form-control {
    padding: 0.75rem 1rem;
    border-color: #e0e0e0;
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(170, 41, 86, 0.15);
}

/* Password Input Styles */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input .form-control {
    padding-right: 40px;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    color: #666;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-toggle:focus {
    outline: none;
}

.password-toggle i {
    font-size: 1rem;
    line-height: 1;
    pointer-events: none;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    color: var(--dark-primary);
    text-decoration: underline;
}

.auth-form .btn-primary {
    padding: 0.75rem;
    font-weight: 500;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-form .btn-primary:hover {
    background-color: var(--dark-primary);
    border-color: var(--dark-primary);
}

/* Login Form Styles */
.auth-form .register-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-form .register-link:hover {
    color: var(--dark-primary);
    text-decoration: underline;
}

/* Register Form Styles */
.auth-form .login-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-form .login-link:hover {
    color: var(--dark-primary);
    text-decoration: underline;
}

/* Shop Page Layout */
.shop-section {
    background-color: #f8f9fa;
}

/* Sidebar Styles */
.shop-sidebar {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filters-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.filters-title {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

/* Clear All Button Styles */
.clear-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    border: none;
    background: none;
    padding: 0.35rem 1rem;  /* Increased padding for bigger circle */
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 20px;
    position: relative;
}

.clear-all:hover {
    transform: translateY(-1px);
    color: var(--primary-color);  /* Keep primary color on hover */
}

.clear-all:active {
    background-color: rgba(170, 41, 86, 0.1);
    transform: translateY(0);
    color: var(--primary-color);  /* Keep primary color when active */
}

.clear-all:focus {
    outline: none;
    box-shadow: none;
    color: var(--primary-color);  /* Keep primary color when focused */
}

/* Remove default button focus styles */
.btn-link:focus {
    box-shadow: none;
}

/* Filter Section Styles */
.filter-section {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Filter Headers */
.filter-header {
    margin-bottom: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.filter-title {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #333;
}

/* Filter Content */
.filter-content {
    max-height: 500px;
    overflow: hidden;
    transition: all 0.3s ease-out;
    padding-right: 0.5rem;
}

.filter-content.collapsed {
    max-height: 0;
    margin-top: 0;
}

/* Checkbox Styles */
.form-check {
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
}

.form-check:last-child {
    margin-bottom: 0;
}

.form-check-input {
    margin-left: -1.8rem;
    cursor: pointer;
    width: 16px;
    height: 16px;
    border-color: #ddd;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(170, 41, 86, 0.25);  /* Light pink shadow */
}

.form-check-input:active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:hover {
    border-color: var(--primary-color);
}

.form-check-label {
    font-size: 0.875rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.form-check-label:hover {
    color: var(--primary-color);
}

/* Chevron Icon */
.filter-header i {
    font-size: 0.75rem;
    color: #999;
    transition: all 0.3s ease;  /* Smooth transition for all changes */
}

.filter-header:hover i {
    color: var(--primary-color);
}

/* When content is collapsed (closed) */
.filter-content.collapsed + .filter-header i,
.filter-header i.fa-chevron-down {
    transform: rotate(0deg);
}

/* When content is expanded (open) */
.filter-content:not(.collapsed) + .filter-header i,
.filter-header i.fa-chevron-up {
    transform: rotate(180deg);
}

/* Brand Search Input Styles */
.brands-search {
    margin-bottom: 1rem;
}

.brands-search .form-control {
    height: 32px;  /* Reduced height */
    font-size: 0.813rem;  /* Slightly smaller font */
    padding: 0.375rem 0.625rem;  /* Reduced padding */
    border: 1px solid #E5E5E5;
    border-radius: 4px;
}

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

.brands-search .form-control::placeholder {
    color: #999;
    font-size: 0.813rem;
}

/* Brands List Scrollbar */
.brands-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.brands-list::-webkit-scrollbar {
    width: 4px;
}

.brands-list::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.brands-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.brands-list::-webkit-scrollbar-thumb:hover {
    background: var(--dark-primary);
}

/* Products Header */
.products-header {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.products-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.showing-results {
    color: #666;
    font-size: 0.9rem;
}

/* Sort and View Controls */
.sort-by .form-select {
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-size: 0.875rem;
    color: #666;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23AA2956' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-size: 12px;
}

.sort-by .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(170, 41, 86, 0.15);
    outline: none;
}

.sort-by .form-select:hover {
    border-color: var(--primary-color);
}

/* Remove default arrow in IE */
.sort-by .form-select::-ms-expand {
    display: none;
}

/* Products Grid */
.products-grid .row {
    margin: 0 -0.75rem;
}

.products-grid .col-md-3 {
    padding: 0 0.75rem;
    margin-bottom: 1.5rem;
}

/* Filter Styles */
.filter-group {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0;
}

.filter-group-header h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.filter-group-header i {
    font-size: 0.8rem;
    color: #666;
    transition: transform 0.3s ease;
}

/* When collapsed (closed) */
.filter-group-header.collapsed i {
    transform: rotate(0deg);
}

/* When expanded (open) */
.filter-group-header:not(.collapsed) i {
    transform: rotate(180deg);
}

.filter-group-content {
    padding-top: 0.5rem;
}

.form-check {
    margin-bottom: 0.5rem;
}

.form-check:last-child {
    margin-bottom: 0;
}

.form-check-label {
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.form-check-input:checked + .form-check-label {
    color: var(--primary-color);
}

/* Update the loading spinner colors */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color); /* Using the site's primary color #AA2956 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Search Results Loading Spinner */
.search-results-loading {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: searchSpin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes searchSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Style for the search results container when loading */
.search-results.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Custom Spinner Color */
.spinner-border.text-primary {
    color: var(--primary-color) !important;
}

/* Or create a custom spinner class */
.spinner-border.text-alsiraj {
    color: var(--primary-color) !important;
}

/* Button Focus/Active States */
.btn:focus,
.btn:active,
.btn.active {
    outline: none !important;
    box-shadow: 0 0 0 0.25rem rgba(170, 41, 86, 0.25) !important; /* Using primary color with opacity */
}

/* Primary Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: var(--dark-primary) !important;
    border-color: var(--dark-primary) !important;
    color: var(--white) !important;
}

/* Outline Button Styles */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* You May Also Like Section */
.you-may-like .category-link {
    text-decoration: none;
    display: block;
}

.you-may-like .category-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.you-may-like .category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.you-may-like .category-card:hover img {
    transform: scale(1.1);
}

.you-may-like .category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transition: all 0.3s ease;
}

.you-may-like .category-content h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.you-may-like .shop-now {
    color: white;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.you-may-like .shop-now:hover {
    opacity: 1;
}

.you-may-like .shop-now i {
    transition: transform 0.3s ease;
}

.you-may-like .category-link:hover .shop-now i {
    transform: translateX(5px);
}

/* Brand Search Styles */
.brand-search {
    position: relative;
}

.brand-search .form-control {
    padding-right: 30px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
}

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

.brands-list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.brands-list::-webkit-scrollbar {
    width: 6px;
}

.brands-list::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.brands-list::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Hide default scrollbar */
::-webkit-scrollbar {
    display: none;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--dark-primary);
}

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

/* Product Detail Styles */
.product-detail-section {
    background-color: var(--white);
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Product Images */
.product-images {
    position: relative;
}

.product-images .main-image {
    position: relative;
    background: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 1;  /* Maintain square ratio */
}

.product-images .main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.product-images .main-image.loading img {
    opacity: 0;
}

.product-images .main-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    opacity: 0;
    pointer-events: none;
}

.product-images .main-image.loading::after {
    opacity: 1;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Thumbnail Images Styles */
.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 80px);
    gap: 10px;
    margin-top: 1rem;
}

.thumbnail-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.thumbnail-images img:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Product Info */
.product-info {
    padding-left: 2rem;
}

.brand-name {
    display: block;
    color: #666;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin: 0.5rem 0 1rem;
}

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

/* Size Selection */
.size-selection label {
    font-weight: 500;
    color: #333;
}

.size-options {
    display: flex;
    gap: 1rem;
}

.size-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #ddd;
    background: none;
    border-radius: 4px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.size-btn:hover,
.size-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.add-to-cart {
    flex: 1;
    padding: 1rem 2rem;
    font-weight: 500;
    font-size: 1.1rem;
}

.wishlist {
    width: 54px;
    height: 54px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.btn-quantity {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
}

.btn-quantity:hover {
    background: #f8f9fa;
    color: var(--dark-primary);
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-left: 0;
    border-right: 0;
    padding: 8px;
}

/* Remove spinner buttons */
.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

/* Product Info Loading States */
.product-info {
    position: relative;
}

.product-info.loading .brand-name,
.product-info.loading .product-title,
.product-info.loading .price,
.product-info.loading .product-description {
    color: transparent !important;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.product-info.loading .brand-name {
    min-height: 24px;
    width: 120px;
    margin-bottom: 8px;
}

.product-info.loading .product-title {
    min-height: 48px;
    width: 90%;
    margin-bottom: 16px;
}

.product-info.loading .price {
    min-height: 40px;
    width: 150px;
    margin-bottom: 16px;
}

.product-info.loading .product-description {
    min-height: 80px;
    width: 100%;
}

.product-info.loading .brand-name::after,
.product-info.loading .product-title::after,
.product-info.loading .price::after,
.product-info.loading .product-description::after,
.product-images .main-image.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite linear;
    will-change: background-position;
}

/* Breadcrumb Styles */
.breadcrumb-section {
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 0.75rem 0;
}

.breadcrumb {
    font-size: 0.813rem;  /* Slightly smaller */
    font-weight: 400;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: 'Inter', sans-serif;  /* Match site font */
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* Separator Style */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›" !important;  /* Changed from > to › for better look */
    color: #999;
    font-size: 1rem;  /* Slightly larger than text */
    font-weight: 400;
    padding: 0 0.5rem;
    margin-top: -2px;  /* Adjust vertical alignment */
    line-height: 1;
}

/* Make breadcrumb responsive */
@media (max-width: 576px) {
    .breadcrumb {
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 3px;  /* Space for scrollbar */
    }
    
    .breadcrumb::-webkit-scrollbar {
        height: 2px;
    }
    
    .breadcrumb::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }
}

/* Product Card Link Styles */
.product-image-link,
.product-title-link,
.brand-link {
    text-decoration: none;
    color: inherit;
}

.product-title-link:hover,
.product-title-link:focus {
    text-decoration: none;
    color: var(--primary-color);
}

.brand-link:hover,
.brand-link:focus {
    text-decoration: none;
    color: var(--primary-color);
}

.product-title-link h5,
.brand-link p {
    margin: 0;
    transition: color 0.2s ease;
}

/* Ensure card title and brand name inherit styles */
.product-card .card-title,
.product-card .brand-name {
    color: inherit;
    margin: 0;
}

/* Login Overlay Styles */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-modal {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.login-modal h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.login-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.login-buttons .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    max-width: 150px;
}

/* Close button */
.login-modal .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
}

.login-modal .close-btn:hover {
    color: var(--primary-color);
}

/* Search Results Link Styles */
.search-item-title-link,
.search-item-brand-link,
.search-item-image-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.search-item-title-link:hover,
.search-item-title-link:focus {
    color: var(--primary-color);
}

.search-item-brand-link:hover,
.search-item-brand-link:focus {
    color: var(--primary-color);
}

/* Product Title and Brand Styles in Search Results */
.search-item-title {
    color: #333;
    margin: 0;
    font-weight: 500;
    transition: color 0.2s ease;
}

.search-item-brand {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.search-item-title-link:hover .search-item-title,
.search-item-title-link:focus .search-item-title {
    color: var(--primary-color);
}

.search-item-brand-link:hover .search-item-brand,
.search-item-brand-link:focus .search-item-brand {
    color: var(--primary-color);
}

/* Search Suggestions Link Styles */
.search-suggestion-text a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.search-suggestion-text a:hover,
.search-suggestion-text a:focus {
    color: var(--primary-color);
}

/* Keep the highlight span style */
.search-suggestion-text span {
    color: var(--primary-color);
    font-weight: 500;
}

/* Basket Page Styles */
.basket-title {
    font-size: 1.75rem;
    font-weight: 500;
    color: #333;
}

#emptyBasket {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#emptyBasket h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Basket Items Styles */
.basket-items {
    margin-bottom: 2rem;
}

.basket-item {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.basket-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.basket-item .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.basket-item .card-text {
    color: #666;
}

/* Basket Summary Styles */
.basket-summary .card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.basket-summary .card-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #333;
}

.basket-summary hr {
    margin: 1rem 0;
    opacity: 0.1;
}

.basket-summary .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* Add these styles for the filter collapse functionality */
.filter-content {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.filter-content.collapsed {
    max-height: 0;
}

.filter-header i {
    transition: transform 0.3s ease;
}

.filter-header i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Update Price Range Slider Styles */
.price-range-slider {
    padding: 10px 8px;  /* Add horizontal padding */
    position: relative;
}

.price-range-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    position: relative;
}

.min-price, .max-price {
    color: #666;
    font-size: 0.875rem;
    font-weight: 500;
}

.current-price {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #AA2956;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Range Input (Slider) Styles */
.form-range {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    background: transparent;
    height: 4px;
    border-radius: 4px;
    outline: none;
    padding: 8px 0;
    margin: 15px 0;
}

/* Track Styles */
.form-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #E5E5E5;  /* Light gray for track */
    border-radius: 4px;
    cursor: pointer;
}

.form-range::-moz-range-track {
    width: 100%;
    height: 4px;
    background: #E5E5E5;
    border-radius: 4px;
    cursor: pointer;
}

/* Progress/Fill Style */
.form-range::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) var(--range-progress, 0%), #E5E5E5 var(--range-progress, 0%));
}

.form-range::-moz-range-progress {
    background: var(--primary-color);
    height: 4px;
    border-radius: 4px;
}

/* Slider Thumb (Ball) Styles */
.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: none;
    margin-top: -5px;
    transition: all 0.2s ease;
}

.form-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: none;
    transition: all 0.2s ease;
}

/* Active/Pressed State */
.form-range::-webkit-slider-thumb:active {
    background: var(--dark-primary);
    transform: scale(1.2);  /* Slightly enlarge when pressed */
    box-shadow: 0 0 0 3px rgba(170, 41, 86, 0.25);  /* Light pink shadow */
}

.form-range::-moz-range-thumb:active {
    background: var(--dark-primary);
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(170, 41, 86, 0.25);
}

/* Hover State */
.form-range::-webkit-slider-thumb:hover {
    background: var(--dark-primary);
}

.form-range::-moz-range-thumb:hover {
    background: var(--dark-primary);
}

/* Focus State */
.form-range:focus {
    outline: none;
}

.form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(170, 41, 86, 0.25);
}

.form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(170, 41, 86, 0.25);
}

/* Brands Filter Styles */
.brands-search .form-control {
    border: 1px solid #E5E5E5;
    padding: 0.5rem;
    font-size: 0.875rem;
}

.brands-search .form-control:focus {
    border-color: #AA2956;
    box-shadow: none;
}

.brands-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar Styles for Brands List */
.brands-list::-webkit-scrollbar {
    width: 4px;
}

.brands-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.brands-list::-webkit-scrollbar-thumb {
    background: #AA2956;
    border-radius: 4px;
}

.brands-list::-webkit-scrollbar-thumb:hover {
    background: #741A3A;
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1050;
}

.toast-notification {
    background-color: #fff;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
    opacity: 1;
    transition: opacity 0.3s ease-out;
    max-width: 350px;
}

.toast-notification.fade-out {
    opacity: 0;
}

.toast-notification i {
    color: var(--primary-color);
    font-size: 20px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    font-size: 0.95rem;
}

.toast-message {
    color: #666;
    margin: 0;
    font-size: 0.85rem;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Add to your existing styles */
.wishlist-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.wishlist-btn:active {
    transform: none !important;
}

/* Product Detail Buttons Container */
.product-info .product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.btn-quantity {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
}

.btn-quantity:hover {
    background: #f8f9fa;
    color: var(--dark-primary);
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-left: 0;
    border-right: 0;
    padding: 8px;
}

/* Remove spinner buttons */
.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

/* Product Detail Add to Cart Button */
.product-info .btn-primary {
    width: 100%;
    padding: 12px 24px;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.product-info .btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Cart icon styles */
.product-info .btn-primary i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Focus state */
.product-info .btn-primary:focus {
    outline: none;
    box-shadow: none;
}

/* Disabled state */
.product-info .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.user-info .user-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Basket Item Image Styles */
.basket-item .col-md-2 {
    max-width: 120px;  /* Limit the column width */
}

.basket-item img {
    width: 100%;
    height: 120px;  /* Fixed height */
    object-fit: contain;  /* Maintain aspect ratio */
    padding: 10px;  /* Add some padding around the image */
}

/* Basket Item Styles */
.basket-item.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.basket-item .card-body {
    padding: 1.25rem;
}

.basket-item .card-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.basket-item .text-muted {
    font-size: 0.9rem;
    color: #666 !important;
}

/* Quantity Controls */
.basket-item .quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.basket-item .quantity-controls .btn {
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.basket-item .quantity-controls .btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
}

.basket-item .quantity-controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.basket-item .quantity-controls span {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
    color: #333;
}

/* Remove Button */
.basket-item .btn-link.text-danger {
    color: #666 !important;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.basket-item .btn-link.text-danger:hover {
    color: var(--primary-color) !important;
}

/* Price */
.basket-item .card-text strong {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
}

/* Wishlist Styles */
.wishlist-page .page-title h1 {
    font-size: 1.75rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 2rem;
}

.wishlist-item.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.wishlist-item.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(170, 41, 86, 0.15);
}

.wishlist-item .card-img-top {
    height: 200px;
    object-fit: cover;
    padding: 0;
    width: 100%;
}

.wishlist-item .card-body {
    padding: 1.25rem;
}

.wishlist-item .card-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.wishlist-item .price {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
    margin: 0;
}

.btn-remove-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.btn-remove-wishlist:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.btn-remove-wishlist i {
    transition: transform 0.3s ease;
}

.btn-remove-wishlist:hover i {
    transform: scale(1.1);
}

/* Responsive grid adjustments */
@media (max-width: 576px) {
    .wishlist-item .card-img-top {
        height: 180px;
    }
}

/* Empty State Icons */
.empty-state-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.empty-state-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.empty-state-message {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Shared Page Styles */
.basket-page .page-title h1,
.wishlist-page .page-title h1 {
    font-size: 1.75rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 2rem;
}

/* Update basket items container */
#basketItems {
    margin-top: 1rem;
}

/* Ensure consistent spacing in both pages */
.basket-page .container,
.wishlist-page .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Match empty state spacing */
#emptyBasket,
#emptyWishlist {
    padding: 4rem 1rem;
}
