/* =====================================
   GENERAL STYLES
===================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #e6e1cade;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


/* =====================================
   HEADER STYLES 
===================================== */
.header {
    background-color: #e6e1cade;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
}


.logo {
    color: #0055a5;
    font-weight: bold;
    font-size: 24px;
}

.logo span {
    color: #666;
    font-size: 12px;
    display: block;
}

/* =====================================
   NAVBAR STYLES
===================================== */
.navbar {
    background-color: white !important;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
}

/* LOGO (Mutat spre stânga) */
.navbar-brand {
    margin-left: 20px;
    /* Reduced from -250px */
}

.navbar-brand img {
    width: 180px;
    height: auto;
    margin-left: -230px;
}

/* Secțiunea centrală cu CATEGORII + SEARCH */
.navbar-center {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
    gap: 20px;
    margin-left: -30px;
}

/* Buton CATEGORII */
.dropdown-toggle {
    background-color: #dc3545;
    color: white;
    padding: 10px 30px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-right: 40px;
    margin-left: 30px;
}

/* ✅ Butonul principal "CATEGORII" - doar acesta trebuie să fie roșu */
.dropdown-toggle {
    background-color: #089e49;
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

/* Search Bar */
.search-container {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    margin-right: 50px;
    gap: 20px;
    position: relative;
}

.search-container button:hover {
    background-color: #05bd24;
    border: 1px solid #004494;
}

.search-container input {
    padding: 10px;
    width: 100%;
    max-width: 900px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-bar {
    display: flex;
    width: 40%;
}

.search-bar input {
    width: 100%;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.search-bar button {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-left: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Contul meu & Coș */
.account-cart {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 250px;
    gap: 15px;
    margin-right: -180px;
}

.account-cart a {
    color: #333;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
}

.account-cart a:hover {
    color: #0b7910;
}

/* 🔹 Stil pentru Second Navigation Bar */
.navbar-light .navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
}

/* 🔹 Efect de hover */
.navbar-light .navbar-nav .nav-link:hover {
    color: #09782e;
    text-decoration: none;
}

/* =====================================
   CATEGORY MENU STYLES
===================================== */
/* Category dropdown menu */
#categorieMenu {
    transition: opacity 0.3s, visibility 0.3s;
    min-width: 280px;
    z-index: 1030;
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
}

#categorieMenu.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Style for all dropdown menus - removing excess padding */
.dropdown-menu {
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    margin: 0;
    border-radius: 5px;
}

/* Reset styles for all menu items to ensure consistent appearance */
#categorieMenu .nav-item,
#categorieMenu .dropdown-submenu,
#categorieMenu .dropdown-item {
    margin: 0;
    width: 100%;
    position: relative;
}

/* Style for category items - NO BACKGROUND, LARGER TEXT */
#categorieMenu .dropdown-item {
    background: transparent;
    color: #333;
    padding: 10px 18px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    width: 100%;
    text-align: left;
    position: relative;
    font-size: 15px;
    line-height: 1.4;
}

/* Remove last border */
#categorieMenu .dropdown-item:last-child {
    border-bottom: none;
}

/* Style for dropdown submenu positioning */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -5px;
    margin-left: 0;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    min-width: 280px;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 5px 0;
}

/* Hover effect - just change text color */
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f8f9fa;
    color: #dc3545;
    text-decoration: none;
}

/* Fix dropdown toggle arrow positioning */
.dropdown-toggle::after {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform 0.2s;
}

/* Right-pointing caret for submenu toggles - fixed positioning */
.dropdown-submenu .dropdown-toggle::after {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 0.3em solid transparent;
    border-right: 0;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid;
}

/* Show submenus on hover */
.dropdown-submenu:hover>.dropdown-menu,
.dropdown-submenu:focus>.dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Ensure dropdowns are visible when activated */
#categorieMenu.show .dropdown-menu {
    display: block;
    opacity: 1;
}

/* Remove unwanted containers/backgrounds */
#categorieMenu .card,
#categorieMenu .card-body,
#categorieMenu .container,
#categorieMenu .row,
#categorieMenu .col {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;

}

/* Flex container resets */
#categorieMenu .nav {
    display: block;
    width: 100%;
}

#categorieMenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* =====================================
   BREADCRUMB STYLES
===================================== */
.breadcrumb {
    padding: 15px 0;
    margin-bottom: 20px;
    list-style: none;
    background-color: transparent;
    display: flex;
    flex-wrap: wrap;
    margin-left: 15px;
    /* Reduced from 60px */
}


.breadcrumb-item {
    font-size: 14px;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    padding: 0 8px;
    color: #6c757d;
}

/* =====================================
   CARD STYLES
===================================== */
.card {
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
    margin-left: 0px;
    margin-right: 20px;
    /* Reduced from 40px */
}

.card-header {
    padding: 15px;
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
}

.card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.card-body {
    padding: 15px;
}

/* =====================================
   HOME PAGE CAROUSEL STYLES - FIXED
===================================== */

/* Apply reset ONLY to carousel section containers, not sitewide */
#carouselSection .container,
#carouselSection .container-fluid,
#carouselSection .container-lg,
#carouselSection .container-md,
#carouselSection .container-sm,
#carouselSection .container-xl,
#carouselSection .container-xxl {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
}

/* Reset row and column padding ONLY within carousel section */
#carouselSection .row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

#carouselSection .col,
#carouselSection [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

/* Target the main container div that wraps the carousel - FIXED */
.row.align-items-center {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* Target the specific carousel containers - FIXED */
.carousel-inner.rounded.shadow,
div#mainCarousel.carousel.slide {
    width: 100%;
    max-width: 100%;
    height: 650px;
    position: relative;
    margin: 0 auto;
}

/* Main carousel container - FIXED */
#mainCarousel {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 40px auto 60px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

/* Carousel inner container */
#mainCarousel .carousel-inner {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Common carousel content styling */
.carousel-content {
    min-height: 800px;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Row within carousel content */
.carousel-content .row {
    width: 100%;
    min-height: 800px;
}

/* Text content column with increased padding */
.carousel-content .col-md-6.p-5 {
    padding: 6rem !important;
}

/* Main heading styles with larger text */
.carousel-content .display-4 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.8rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Secondary heading with larger text */
.carousel-content h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

/* Lead paragraph with larger text */
.carousel-content .lead {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    line-height: 1.4;
}

/* Call to action buttons with larger size */
.carousel-content .btn-lg {
    padding: 1.5rem 3.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Button hover effect */
.carousel-content .btn-lg:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Image container */
.carousel-content .col-md-6:nth-child(2) {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 3rem;
}

/* Carousel images with increased size */
.carousel-content .img-fluid {
    max-height: 750px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

/* Indicators styling */
.carousel-indicators {
    bottom: 50px;
    z-index: 20;
}

.carousel-indicators li {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin: 0 12px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: #fff;
    width: 28px;
    height: 28px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* Control arrows with increased size */
.carousel-control-prev,
.carousel-control-next {
    width: 12%;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 60px;
    height: 60px;
    background-size: 100%;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
}

/* Control positioning */
.carousel-control-prev {
    left: 0;
    border-radius: 0 15px 15px 0;
}

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

/* Enhance slide specific background styles with bolder gradients */
.carousel-item:nth-child(1) .carousel-content {
    background: linear-gradient(135deg, #8fccc1 0%, #2a9183 100%);
}

.carousel-item:nth-child(2) .carousel-content {
    background: linear-gradient(135deg, #e6f2ff 0%, #75b3ff 100%);
}

.carousel-item:nth-child(3) .carousel-content {
    background: linear-gradient(135deg, #f8e9e9 0%, #e88e8e 100%);
}

.carousel-item:nth-child(4) .carousel-content {
    background: linear-gradient(135deg, #e8f4e8 0%, #8ad18a 100%);
}

/* Enhanced slide animation */
.carousel-item {
    transition: transform 1.5s ease-in-out;
}

/* Optional caption styling with increased size */
.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 18px;
    max-width: 80%;
    margin: 0 auto;
    bottom: 100px;
}

/* Header and navigation bar preservation */
header,
.top-navigation,
.main-nav,
.navbar,
nav {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    position: static !important;
    transform: none !important;
    left: auto !important;
}

/* Banner and top info bar */
.top-info-bar,
.banner {
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    transform: none !important;
    left: auto !important;
}

/* Override for navigation elements */
.navbar .container,
.navbar .container-fluid,
nav .container,
nav .container-fluid,
header .container,
header .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 1200px !important;
    /* Or whatever your original container width was */
    margin-left: auto !important;
    margin-right: auto !important;
    position: static !important;
    transform: none !important;
}

/* =====================================
   FEATURED PRODUCTS SECTION STYLES
===================================== */

/* Section heading with larger text */
.featured-products {
    width: 100%;
    margin-right: 0;
    /* Removed margin-right value */
}

.featured-products h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: #333;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.featured-products h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    border-radius: 2px;
}

/* Product cards with increased size */
.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    margin-bottom: 30px;
}

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

/* Product image container with increased size */
.product-card .card-img-top {
    height: 300px;
    object-fit: contain;
    padding: 20px;
    background-color: #f8f9fa;
    transition: all 0.4s ease;
}

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

/* Product badge with increased size */
.product-card .badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 15px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.product-card .badge-danger {
    background-color: #e74c3c;
}

/* Product info with larger text */
.product-card .card-body {
    padding: 25px;
}

.product-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    min-height: 60px;
}

.product-card .card-text {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.original-price {
    text-decoration: line-through;
    font-size: 1.2rem;
    margin-right: 10px;
}

/* Product buttons with increased size */
.product-card .btn {
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-card .btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.product-card .btn-primary:hover {
    background-color: #20950e;
    border-color: #20950e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.product-card .btn-success {
    background-color: #2ecc71;
    border-color: #2ecc71;
}

.product-card .btn-success:hover {
    background-color: #27ae60;
    border-color: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* Button container with better spacing */
.product-card .d-flex {
    gap: 10px;
}
.col-md-5 {
    margin-left: 90px;

}

/* =====================================
   CATEGORY BANNERS SECTION STYLES
===================================== */

/* Category banners section with increased spacing */
.category-banners {
    margin: 60px 0;
    margin-right: 0;
    /* Reduced from 135px */
    width: 100%;
}

/* Category card with increased size */
.category-banners .card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

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

/* Category image with increased size */
.category-banners .card-img {
    height: 350px;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

/* Category content with larger text */
.category-banners .card-body {
    padding: 30px;
}

.category-banners .card-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.category-banners .card-text {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 25px;
}

/* Category button with increased size */
.category-banners .btn {
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-banners .btn-outline-primary {
    color: #3498db;
    border-color: #3498db;
}

.category-banners .btn-outline-primary:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}


/* Reset for all containers to ensure maximum width utilization */
.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    width: 100%;
    max-width: 100%;
}

/* Reset row and column padding */
.row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    
}

.col,
[class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}


/* Common carousel content styling - FIXED */
.carousel-content {
    min-height: 800px;
    display: flex;
    align-items: center;
}

/* Enhanced slide animation */
.carousel-item {
    transition: transform 1.5s ease-in-out;
}

/* Optional caption styling with increased size */
.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 18px;
    max-width: 80%;
    margin: 0 auto;
    bottom: 100px;
}

/* =====================================
   PRODUCT SECTION LAYOUT - FINAL ADJUSTMENT
===================================== */
.product-section {
    display: flex;
    flex-direction: row;
    margin: 30px auto;
    /* Changed from 30px 0 30px 40px */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
    max-width: 1250px;
    /* Controlled maximum width */
    width: 95%;
    /* Adjusted width */

}

/* Left side - Product Gallery */
.product-gallery-container {
    flex: 0 0 52%;
    /* Slightly increased gallery size */
    padding-right: 25px;
}

/* Right side - Product Details */
.product-details-container {
    flex: 0 0 48%;
    /* Adjusted details size */
    padding-left: 25px;
    padding-right: 15px;
    /* Added right padding to prevent text touching border */
}

/* For the product info section below the image */
.product-info,
.product-description {
    padding-left: 20px;
    /* Add left padding to all product text sections */
    padding-right: 20px;
    /* Add right padding to all product text sections */
}

/* Tab navigation container */
.nav-tabs,
.tab-content {
    padding-left: 20px;
    /* Add padding to tab content */
    padding-right: 20px;
    /* Add padding to tab content */
}

/* =====================================
   PRODUCT GALLERY STYLES - UNCHANGED
===================================== */
.product-gallery {
    position: relative;
    width: 100%;
}

.product-gallery img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.carousel-inner {
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.carousel-item {
    padding: 20px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.carousel-navigation-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.carousel-navigation-arrow:hover {
    opacity: 1;
    background-color: #f8f9fa;
}

.carousel-navigation-arrow.prev {
    left: 15px;
}

.carousel-navigation-arrow.next {
    right: 15px;
}

/* Thumbnails row */
.thumbnails-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail-nav {
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
    overflow: hidden;
    width: 80px;
    height: 80px;
    padding: 3px;
}

.thumbnail-nav img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}

.border-active {
    border: 2px solid #0d6efd;
    transform: scale(1.05);
}

.border-default {
    border: 1px solid #dee2e6;
}

/* Additional classes for container management */
.container-product {
    padding-left: 15px;
    /* Reduced padding to allow more left shift */
    padding-right: 15px;
    /* Changed from 30px to 15px */
    max-width: 1300px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .product-section {
        flex-direction: column;
        padding: 20px;
        margin: 20px auto;
        /* Center on mobile */
        width: 95%;
    }

    .product-gallery-container,
    .product-details-container {
        flex: 0 0 100%;
        padding: 0;
        max-width: 100%;
    }

    .product-gallery-container {
        margin-bottom: 30px;
    }

    .carousel-item {
        height: 400px;
    }

    .product-info,
    .product-description,
    .nav-tabs,
    .tab-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 300px;
    }

    .thumbnail-nav {
        width: 60px;
        height: 60px;
    }

    .product-section {
        padding: 15px;
    }
}

/* =====================================
   PRODUCT DASHBOARD STYLES
===================================== */
.product-dashboard {
    border-radius: 8px;
    overflow: hidden;
}

.dashboard-price-section {
    margin-bottom: 20px;
}

.product-price {
    font-size: 28px;
    color: #0d6efd;
    margin-bottom: 5px;
}

.price-with-vat {
    font-size: 14px;
    color: #6c757d;
}

/* =====================================
   STOCK BADGE STYLES (CONTINUED)
===================================== */
.stock-badge {
    font-size: 14px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.stock-badge i {
    font-size: 10px;
    margin-right: 5px;
}

.in-stock {
    color: #198754;
}

.out-of-stock {
    color: #dc3545;
}

/* =====================================
   DELIVERY BANNER STYLES
===================================== */
.delivery-banner {
    background-color: #198754;
    color: white;
    padding: 8px 15px;
    text-align: center;
    border-radius: 5px;
    font-weight: 500;
}

.delivery-time {
    font-size: 14px;
}

/* =====================================
   PRODUCT REFERENCE STYLES
===================================== */
.product-reference {
    font-size: 14px;
    color: #6c757d;
}

/* =====================================
   ACTION SECTION STYLES
===================================== */
.action-section {
    display: flex;
    flex-direction: column;
}

.quantity-control {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.quantity-btn:hover {
    background-color: #e9ecef;
}

.quantity-input {
    width: 50px;
    height: 40px;
    border: 1px solid #dee2e6;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 16px;
}

.add-to-cart-btn {
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
    flex-grow: 0.5;
}

.add-to-cart-btn:hover {
    background-color: #0b5ed7;
}

/* =====================================
   SUPPORT CONTACT STYLES
===================================== */
.support-contact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.support-contact p {
    font-size: 14px;
    color: #6c757d;
}

.consultant-img img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #eee;
}

.phone-number {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.work-hours {
    font-size: 14px;
    color: #6c757d;
}

/* =====================================
   RECOMMENDED PRODUCTS STYLES
===================================== */
.recommended-products {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.recommended-product {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.recommended-product:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.recommended-product-img img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border: 1px solid #eee;
    padding: 5px;
    border-radius: 5px;
}

.recommended-product-details h6 {
    font-size: 16px;
    margin-bottom: 5px;
}

.recommended-product-details h6 a {
    color: #333;
    text-decoration: none;
}

.recommended-product-details h6 a:hover {
    color: #0d6efd;
}

.recommended-product-details .price {
    font-size: 16px;
    color: #0d6efd;
}

.price-note {
    font-size: 12px;
    color: #6c757d;
}

/* =====================================
   TAB NAVIGATION STYLES
===================================== */
.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-link {
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    color: #6c757d;
    padding: 10px 15px;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    font-weight: 600;
    border-color: #dee2e6 #dee2e6 #fff;
}

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

.tab-pane h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* =====================================
   FOOTER STYLES
===================================== */
.footer {
    background-color: #e4e3e0de !important;
    font-size: 14px;
    color: #333;
    width: 100%;
   
}

.footer h6 {
    font-weight: bold;
    color: #000;
}

.footer hr {
    width: 50px;
    border-top: 2px solid #82f670;
}

.footer a {
    color: #0a7804;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* =====================================
   CART FLOATING BUTTON STYLES
===================================== */
.cart-floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 24px;
    transition: transform 0.3s ease-in-out;
    z-index: 9998 !important;
    /* High z-index but below cart sidebar */
}

.cart-floating-button:hover {
    transform: scale(1.1);
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 14px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    z-index: 10001 !important;
    /* Make the cart count badge appear above everything */
}

.cart-floating-button img {
    width: 45px;
    height: auto;
    z-index: inherit;
}

/* =====================================
   CART SIDEBAR STYLES - FIXED VERSION
===================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 300px;
    height: 100%;
    background: white;
    box-shadow: -3px 0px 10px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    padding: 20px;
    display: flex;
    flex-direction: column;
    z-index: 9999 !important;
    /* Increased z-index to ensure it displays over everything */
}

.cart-sidebar.open {
    right: 0;
}

/* Make all cart-related elements have high z-index */
.cart-header,
.cart-items,
.cart-item,
#cart-items,
.cart-footer,
.qty-input,
.btn-plus,
.btn-minus {
    position: relative !important;
    z-index: 10000 !important;
    /* Even higher z-index for cart components */
}

/* Ensure product elements have lower z-index */
.carousel,
.carousel-item,
.carousel-inner,
.carousel-content,
.product-container,
.products-wrapper,
.banner-container,
#mainCarousel,
.category-banners,
.featured-products {
    z-index: 1 !important;
    margin-right: 0;
    /* Removed margin-right value */
}

/* Cart header elements */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

#close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
}

/* Cart items container */
.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px 0;
}

/* Cart footer */
.cart-footer {
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

/* Checkout button */
.checkout-button {
    width: 100%;
    background: red;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
    z-index: 10000;
}

.checkout-button:hover {
    background: #0056b3;
    color: white;
}

/* Ensure quantity controls in cart are on top */
.cart-item .d-flex .qty-input,
.cart-item .d-flex .btn-minus,
.cart-item .d-flex .btn-plus {
    position: relative !important;
    z-index: 10001 !important;
}

/* =====================================
   SEARCH SUGGESTIONS STYLES
===================================== */
#suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px;
}

#suggestions-container h5 {
    margin-top: 0;
    font-size: 16px;
    font-weight: bold;
}

#suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.suggestion-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    border: 1px solid #eaeaea;
    border-radius: 5px;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.suggestion-item:hover {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.suggestion-item img {
    width: 100%;
    height: auto;
    max-height: 100px;
}

.suggestion-item p {
    margin-top: 10px;
    font-size: 14px;
}

.suggestion-item .sale-price {
    font-size: 14px;
    font-weight: bold;
    color: #ff0000;
    margin-top: 5px;
}

.hidden {
    display: none;
}

#product-count {
    font-weight: bold;
    color: #007bff;
    margin-left: 5px;
}

/* =====================================
   LOGIN PAGE STYLES
===================================== */
.login-form {
    padding: 1rem 2rem 1rem 1rem;
}

.login-title,
.register-title {
    color: #333;
    font-weight: 600;
    position: relative;
}

.login-title:after,
.register-title:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    border-top: 2px solid #007bff;
}

.form-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
}

.form-input {
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
}

.toggle-password:hover {
    color: #333;
}

.form-check-input {
    margin-top: 0.3rem;
}

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

.forgot-password {
    font-size: 0.9rem;
    color: #007bff;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login {
    background-color: #3c6fc7;
    color: white;
    padding: 0.75rem;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #2d5ba9;
}

.btn-register {
    background-color: #dc3545;
    color: white;
    padding: 0.75rem;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-register:hover {
    background-color: #c82333;
}

.vertical-divider {
    height: 90%;
    width: 1px;
    background-color: #e0e0e0;
    margin: auto 0;
}

.new-account {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.register-text {
    color: #666;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* =====================================
   FILTER SIDEBAR STYLES
===================================== */
.filter-sidebar {
    background-color: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section-title {
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.filter-option {
    margin-bottom: 8px;
}

.filter-option label {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.filter-option input[type="checkbox"] {
    margin-right: 8px;
}

.filter-apply-btn {
    background-color: #3c6fc7;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 100%;
    font-weight: 500;
    transition: background-color 0.3s;
}

.filter-apply-btn:hover {
    background-color: #2d5ba9;
}

/* Product card styles */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

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

.product-image-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow: hidden;
}

.product-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.price-display {
    font-size: 18px;
    margin: 10px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-sidebar {
        margin-bottom: 20px;
    }
}

/* Stiluri generale pentru contul utilizatorului */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --primary-light: #e3f2fd;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #777;
    --white: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Card principal cont */
.account-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.account-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 1.2rem;
    border-bottom: none;
}

/* Titluri secțiuni */
.account-section-title {
    font-size: 1.4rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.account-section-title i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Informații utilizator */
.user-info-card {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    transition: var(--transition);
}

.user-info-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.user-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--primary-color);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-details p {
    margin-bottom: 0.3rem;
}

.info-label {
    font-weight: 600;
    color: var(--dark-gray);
    display: inline-block;
    min-width: 80px;
}

.info-value {
    color: var(--secondary-color);
}

/* Adrese (continued) */
.address-card {
    border-radius: 8px;
    border: 1px solid var(--medium-gray);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.address-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.address-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-personal {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.badge-company {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-dark);
}

.address-details {
    margin-top: 1rem;
}

.address-details p {
    margin-bottom: 0.3rem;
}

.address-actions {
    display: flex;
    gap: 0.5rem;
}

/* Buton adaugă adresă */
.add-address-btn {
    transition: var(--transition);
    border-radius: 30px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.add-address-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.4);
}

.add-address-btn i {
    margin-right: 0.3rem;
}

/* Empty state pentru secțiunile goale */
.empty-state {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.empty-state i {
    color: var(--dark-gray);
    opacity: 0.5;
}

/* Comenzi */
.order-card {
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.order-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--medium-gray);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-items {
    padding: 1rem;
}

.order-status .badge {
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
}

/* Formulare */
.form-input {
    border-radius: 5px;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--medium-gray);
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.input-group-text {
    background-color: var(--light-gray);
    border-color: var(--medium-gray);
    color: var(--dark-gray);
}

/* Autentificare și înregistrare */
.login-form,
.new-account {
    padding: 1rem;
}

.login-title,
.register-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

.btn-login,
.btn-register {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-login:hover,
.btn-register:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.4);
}

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

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

.vertical-divider {
    width: 1px;
    height: 100%;
    background-color: var(--medium-gray);
}

/* Butoane sociale */
.social-login {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--medium-gray);
}

.btn-social {
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: var(--transition);
    width: 120px;
}

.btn-google {
    background-color: #db4437;
    color: var(--white);
}

.btn-facebook {
    background-color: #4267B2;
    color: var(--white);
}

.btn-google:hover,
.btn-facebook:hover {
    transform: translateY(-3px);
    color: var(--white);
    opacity: 0.9;
}

/* Lista beneficii */
.benefits-list {
    margin-top: 1rem;
}

.benefits .list-group-item {
    border: none;
    padding: 0.5rem 0;
    background-color: transparent;
    display: flex;
    align-items: center;
}

.benefits .list-group-item i {
    margin-right: 0.5rem;
}

/* Modal adaugă adresă */
.modal-content {
    border-radius: 10px;
    overflow: hidden;
    border: none;
}

.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
    padding: 1rem 1.5rem 1.5rem;
}

/* Animații și efecte hover */
.btn {
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Efecte interactive */
.user-info-card,
.address-card,
.order-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.user-info-card::before,
.address-card::before,
.order-card::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(52, 152, 219, 0.05) 70%);
    transform: translateX(-100%);
    transition: var(--transition);
}

.user-info-card:hover::before,
.address-card:hover::before,
.order-card:hover::before {
    transform: translateX(0);
}

/* Design responsiv */
@media (max-width: 767px) {
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vertical-divider {
        width: 100%;
        height: 1px;
        margin: 2rem 0;
    }

    .login-form,
    .new-account {
        padding: 1rem 0;
    }

    .benefits .list-group-item {
        font-size: 0.9rem;
    }
}

/* Efecte de animație pentru elemente */
.empty-state i,
.user-avatar i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.add-address-btn {
    position: relative;
    overflow: hidden;
}

.add-address-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.add-address-btn:hover::after {
    transform: translateX(100%);
}

/* Tooltip personalizat */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.8rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

/* Efecte pentru tabel */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background-color: var(--light-gray);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

/* Personalizare butoane din modal */
.btn-close-white {
    filter: brightness(0) invert(1);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Animații adresă */
.new-address-animation {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.address-added {
    opacity: 1;
    transform: translateY(0);
}

.address-removing {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.address-highlight {
    animation: highlight-pulse 1.5s ease;
}

@keyframes highlight-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.5);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0.2);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

/* Personalizare checkbox-uri și selectori */
.product-select,
.select-all-products {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

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

/* Animație pentru adăugarea în coș */
.cart-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.cart-counter-animation {
    animation: cart-pulse 0.5s ease;
}

@keyframes cart-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}

/* Stiluri pentru butoanele din tabele */
.table .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Stiluri pentru input de cantitate */
.product-quantity {
    min-width: 60px;
    max-width: 80px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid var(--medium-gray);
    padding: 0.25rem;
}

.product-quantity:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Stiluri pentru password strength */
.password-strength {
    margin-top: 5px;
}

.password-strength .progress {
    height: 5px;
    border-radius: 3px;
}

.password-strength-text {
    font-size: 0.8rem;
    margin-top: 3px;
}

/* Animații pentru butoane */
.btn:active {
    transform: scale(0.95);
}

/* Stiluri pentru acțiuni card de adrese */
.address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.5rem;
    align-items: center;
}

.default-badge {
    padding: 0.25rem 0.75rem;
    font-weight: normal;
}

/* Efect focus pentru input-uri */
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
    border-color: var(--primary-color);
}

/* Stiluri pentru checkbox-uri în tabele */
td .form-check-input {
    margin-top: 0;
    cursor: pointer;
}

.select-all-products {
    cursor: pointer;
}

/* Stiluri pentru butoane din modal */
.modal-footer {
    border-top: 1px solid var(--light-gray);
    padding-top: 1rem;
}

.modal-header {
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(52, 152, 219, 0.8), rgba(52, 152, 219, 0.2));
}

/* Efecte pentru butoane order */
.repeat-order-btn {
    transition: all 0.3s ease;
}

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

/* Stiluri pentru secțiunea de order */
.order-header {
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--medium-gray);
    padding: 0.8rem 1rem;
    border-radius: 8px 8px 0 0;
}

.order-number {
    font-size: 1.1rem;
}

.order-date {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.order-status .badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

.order-items {
    padding: 1rem;
}

.order-actions {
    padding: 0.5rem 1rem 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Stiluri pentru componente interactive */
.toggle-password {
    cursor: pointer;
    border-color: var(--medium-gray);
}

.toggle-password:hover {
    background-color: var(--light-gray);
}

/* Stiluri pentru notificări */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    min-width: 300px;
    max-width: 450px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.notification.visible {
    transform: translateX(0);
}

.notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
}

.notification-info::before {
    background-color: #3498db;
}

.notification-success::before {
    background-color: #2ecc71;
}

.notification-warning::before {
    background-color: #f39c12;
}

.notification-error::before {
    background-color: #e74c3c;
}

.notification-icon {
    margin-right: 12px;
    font-size: 1.2rem;
}

.notification-info .notification-icon {
    color: #3498db;
}

.notification-success .notification-icon {
    color: #2ecc71;
}

.notification-warning .notification-icon {
    color: #f39c12;
}

.notification-error .notification-icon {
    color: #e74c3c;
}

.notification-content {
    flex-grow: 1;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: #777;
    padding: 0;
    margin-left: 10px;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: #333;
}

/* Responsive styles */
@media (max-width: 767px) {
    .order-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .order-date,
    .order-total,
    .order-status {
        margin-left: 0;
    }

    .address-card {
        margin-bottom: 1rem;
    }

    .address-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .address-actions button,
    .address-actions .badge {
        margin-top: 0.5rem;
        width: 100%;
    }

    .notification {
        min-width: auto;
        max-width: 90%;
    }
}

/* Recommended Products Vertical List Styles */
.recommended-products-container {
    position: relative;
    height: 410px;
    /* Height for 3 products */
    overflow-y: auto;
}

.recommended-product-item {
    padding: 12px 5px;
    border-bottom: 1px solid #eee;
}

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

.recommended-product-img {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recommended-product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.recommended-product-details {
    padding-left: 16px;
    /* Increased spacing between image and text */
}

.recommended-product-details h6 {
    margin-top: 4px;
    /* Add some space at the top */
    margin-bottom: 8px;
    /* Add more space after title */
}

/* Custom scrollbar styling */
.recommended-products-container::-webkit-scrollbar {
    width: 8px;
}

.recommended-products-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.recommended-products-container::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 4px;
}

.recommended-products-container::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}

/* For Firefox */
.recommended-products-container {
    scrollbar-width: thin;
    scrollbar-color: #0d6efd #f1f1f1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .recommended-product-card {
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .recommended-product-card {
        min-width: calc(100% - 10px);
    }
}

.justify-content-end {
    margin-right: 0;
    /* Changed from 80px to fix spacing issue */
}

/* =====================================
   PRODUCT CARD STYLES
===================================== */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

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

.product-image-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow: hidden;
}

.product-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.price-display {
    font-size: 18px;
    margin: 10px 0;
}

/* =====================================
   CHECKOUT PAGE STYLES
===================================== */
.modal-content {
    border-radius: 8px;
}

.radio-card input[type="radio"] {
    pointer-events: none;
    margin-right: 10px;
    transform: scale(1) !important;
}

.radio-card {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.radio-card:hover {
    background-color: #f8f9fa;
}

/* =====================================
   PRODUCT SECTION STYLES
===================================== */
.product-section {
    display: flex;
    margin: 20px auto;
    /* Changed from 20px 0 */
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 20px;
    width: 100%;
    max-width: 1200px;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #056351;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.product-img {
    width: 100%;
    height: auto;
    display: block;
}

.product-details {
    flex: 0 0 60%;
    padding-left: 30px;
}

.product-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.price-container {
    margin-bottom: 20px;
}

.old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 18px;
}

.current-price {
    color: #333;
    font-size: 24px;
    font-weight: bold;
    margin-left: 10px;
}

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

.feature-item {
    margin-bottom: 10px;
    color: #666;
}

.product-meta {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.meta-item {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.meta-item span {
    font-weight: bold;
    color: #333;
}

.social-share {
    display: flex;
    margin-top: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: white;
    transition: opacity 0.3s;
}

.social-btn:hover {
    opacity: 0.8;
}

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

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

.email {
    background-color: #333;
}

.sidebar {
    width: 300px;
    margin-left: 30px;
}

.widget {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 15px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
}

.widget-content {
    color: #666;
    font-size: 14px;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.benefit-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.benefit-text {
    font-weight: bold;
}

.benefit-text span {
    display: block;
    font-weight: normal;
    font-size: 12px;
    color: #999;
}

/* Category Card Button Styles - targeting only the category listing cards */

/* Target specifically the category listing cards but not product page */
.row-cols-1 .card .btn,
.row-cols-md-2 .card .btn,
.row-cols-lg-3 .card .btn {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    min-width: 90px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Style for "Detalii" button in category cards */
.row-cols-1 .card .btn-primary,
.row-cols-md-2 .card .btn-primary,
.row-cols-lg-3 .card .btn-primary,
.row-cols-1 .card a[href*="Detalii"],
.row-cols-md-2 .card a[href*="Detalii"],
.row-cols-lg-3 .card a[href*="Detalii"] {
    background-color: green;
    color: white;
    border: 1px solid #3c6fc7;
}

.row-cols-1 .card .btn-primary:hover,
.row-cols-md-2 .card .btn-primary:hover,
.row-cols-lg-3 .card .btn-primary:hover,
.row-cols-1 .card a[href*="Detalii"]:hover,
.row-cols-md-2 .card a[href*="Detalii"]:hover,
.row-cols-lg-3 .card a[href*="Detalii"]:hover {
    background-color: green;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Style for "Adaugă" button in category cards */
.row-cols-1 .card .btn-success,
.row-cols-md-2 .card .btn-success,
.row-cols-lg-3 .card .btn-success,
.row-cols-1 .card a[href*="Adaug"],
.row-cols-md-2 .card a[href*="Adaug"],
.row-cols-lg-3 .card a[href*="Adaug"] {
    background-color: #155bd3;
    color: white;
    border: none;
}

.row-cols-1 .card .btn-success:hover,
.row-cols-md-2 .card .btn-success:hover,
.row-cols-lg-3 .card .btn-success:hover,
.row-cols-1 .card a[href*="Adaug"]:hover,
.row-cols-md-2 .card a[href*="Adaug"]:hover,
.row-cols-lg-3 .card a[href*="Adaug"]:hover {
    background-color: #195aca;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* This targets the button container in category cards */
.row-cols-1 .card-body div:last-child,
.row-cols-md-2 .card-body div:last-child,
.row-cols-lg-3 .card-body div:last-child {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
}

/* Responsive styles for buttons in category cards */
@media (max-width: 576px) {

    .row-cols-1 .card-body div:last-child,
    .row-cols-md-2 .card-body div:last-child,
    .row-cols-lg-3 .card-body div:last-child {
        flex-direction: column;
        align-items: center;
    }

    .row-cols-1 .card .btn,
    .row-cols-md-2 .card .btn,
    .row-cols-lg-3 .card .btn {
        width: 80%;
        margin: 5px 0;
    }
}

.radio-card input[type="radio"] {
    pointer-events: none;
    margin-right: 10px;
    transform: scale(1.5);
}

/* Checkout Page Styles Finished*/

/* Category Page Styles */

/* Filter sidebar styles */
.filter-sidebar {
    background-color: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section-title {
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.filter-option {
    margin-bottom: 8px;
}

.filter-option label {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.filter-option input[type="checkbox"] {
    margin-right: 8px;
}

.filter-apply-btn {
    background-color: #3c6fc7;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 100%;
    font-weight: 500;
    transition: background-color 0.3s;
}

.filter-apply-btn:hover {
    background-color: #2d5ba9;
}

/* =====================================
   CATEGORY PAGE SPECIFIC STYLES - GREEN BUTTONS
===================================== */
/* Stiluri specifice doar pentru pagina de categorii */

/* Titlul categoriei (CASA & GRADINA) - verde închis */
.text-primary {
    color: #2c3e50 !important; /* Gri închis/Verde închis */
}

/* Butonul "Aplică filtre" - DOAR în pagina de categorii */
body .filter-apply-btn {
    background-color: #089e49 !important;
}

body .filter-apply-btn:hover {
    background-color: #067a38 !important;
}

/* Butoanele "Adaugă" - DOAR în pagina de categorii */
body .row-cols-1 .card .btn-success,
body .row-cols-md-2 .card .btn-success,
body .row-cols-lg-3 .card .btn-success,
body .row-cols-1 .card a[href*="Adaug"],
body .row-cols-md-2 .card a[href*="Adaug"],
body .row-cols-lg-3 .card a[href*="Adaug"] {
    background-color: #089e49 !important;
}

body .row-cols-1 .card .btn-success:hover,
body .row-cols-md-2 .card .btn-success:hover,
body .row-cols-lg-3 .card .btn-success:hover,
body .row-cols-1 .card a[href*="Adaug"]:hover,
body .row-cols-md-2 .card a[href*="Adaug"]:hover,
body .row-cols-lg-3 .card a[href*="Adaug"]:hover {
    background-color: #067a38 !important;
}



.col-md-3 {
    padding-left: 40px;
}

/* Notification Styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    min-width: 300px;
    max-width: 450px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.notification.visible {
    transform: translateX(0);
}

.notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
}

.notification-info::before {
    background-color: #3498db;
}

.notification-success::before {
    background-color: #2ecc71;
}

.notification-warning::before {
    background-color: #f39c12;
}

.notification-error::before {
    background-color: #e74c3c;
}

.notification-icon {
    margin-right: 12px;
    font-size: 1.2rem;
}

.notification-info .notification-icon {
    color: #3498db;
}

.notification-success .notification-icon {
    color: #2ecc71;
}

.notification-warning .notification-icon {
    color: #f39c12;
}

.notification-error .notification-icon {
    color: #e74c3c;
}

.notification-content {
    flex-grow: 1;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: #777;
    padding: 0;
    margin-left: 10px;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: #333;
}

/* Flash Messages Styles */
/* --- */
.flash {
    padding: 1em;
    margin: 1em 0;
    border-radius: 8px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Error messages */
.flash.error {
    background-color: #e74c3c;
}

/* Success messages */
.flash.success {
    background-color: #2ecc71;
}

/* Warning messages */
.flash.warning {
    background-color: #f1c40f;
    color: #333;
}

/* Info messages */
.flash.info {
    background-color: #3498db;
}

/* --- */

/* Cart Animation Styles */
.cart-counter-animation {
    animation: cart-pulse 0.5s ease;
}

@keyframes cart-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Cart sidebar animations */
.cart-sidebar {
    transition: right 0.3s ease-in-out;
}

.cart-sidebar.open {
    right: 0;
}

/* Cart item animations */
.cart-item {
    transition: all 0.3s ease;
}

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

/* Quantity control styling */
.qty-input {
    width: 50px !important;
    text-align: center;
    border: 1px solid #dee2e6;
}

.btn-minus,
.btn-plus {
    width: 30px;
    height: 30px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Recommended products styling */
.recommended-product-item:hover {
    background-color: #f8f9fa;
}

.recommended-product-item .btn-sm {
    transition: all 0.2s ease;
}

.recommended-product-item .btn-sm:hover {
    transform: translateY(-2px);
}

/* =========================
   Responsive Styles - MOBILE & TABLET ONLY
   ========================= */

/* ---------- Mobile and Tablet only (max-width: 1024px) ---------- */
@media (max-width: 1024px) {

    /* Mobile responsiveness styles */
    body,
    html {
        font-size: 15px;
        overflow-x: hidden;
    }

    .container,
    .container-fluid {
        width: 100% !important;
        padding: 0 8px !important;
        margin: 0 auto !important;
    }

    header,
    nav,
    .navbar,
    .header-top {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .navbar-brand img {
        width: 120px !important;
        margin: 0 auto !important;
    }

    .navbar-center,
    .navbar-nav,
    .nav {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .navbar-center>* {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .dropdown-toggle,
    .dropdown-menu {
        width: 100% !important;
        text-align: left !important;
        font-size: 1.1em !important;
    }

    .account-cart,
    .search-container {
        width: 100% !important;
        margin: 0 !important;
        justify-content: flex-start !important;
    }

    .breadcrumb {
        font-size: 0.95em !important;
        margin-left: 0 !important;
        padding: 8px 0 !important;
    }

    /* Mobile Hamburger Styles */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 36px;
        height: 36px;
        margin: 0 0 10px 0;
        cursor: pointer;
        z-index: 1002;
    }

    .hamburger span {
        display: block;
        width: 24px;
        height: 3px;
        margin: 3px 0;
        background: #dc3545;
        border-radius: 2px;
        transition: all 0.3s;
    }

    /* Hamburger Active State */
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-7px, 7px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-7px, -7px);
    }

    /* Hide nav links, show hamburger */
    .navbar-center,
    .navbar-nav {
        display: none !important;
    }

    .navbar-center.active,
    .navbar-nav.active {
        display: flex !important;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100vw;
        z-index: 1001;
        padding: 15px 0;
    }

    /* Mobile Category Sidebar */
    .mobile-category-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100%;
        background: #fff;
        box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
        transition: left 0.3s ease-in-out;
        z-index: 10000;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .mobile-category-sidebar.active {
        left: 0;
    }

    /* Sidebar Header */
    .sidebar-header {
        padding: 15px 18px;
        background: #dc3545;
        color: white;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 10001;
    }

    .sidebar-header h5 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

    .btn-close {
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .btn-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

    /* Sidebar Categories */
    .mobile-category-sidebar .dropdown-item {
        padding: 12px 16px;
        border-bottom: 1px solid #f0f0f0;
        color: #333;
        text-decoration: none;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.2;
    }

    .mobile-category-sidebar .dropdown-item i {
        margin-right: 12px;
        width: 18px;
        color: #dc3545;
        text-align: center;
        font-size: 13px;
    }

    .mobile-category-sidebar .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #dc3545;
        padding-left: 24px;
        border-left: 3px solid #dc3545;
        text-decoration: none;
    }

    .mobile-category-sidebar .dropdown-item:last-child {
        border-bottom: none;
    }

    /* Account Section */
    .mobile-category-sidebar .sidebar-content {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: calc(100vh - 60px);
    }

    .mobile-category-sidebar .nav {
        flex-grow: 1;
    }

    .account-section {
        margin-top: auto;
        padding-top: 15px;
    }

    .sidebar-divider {
        border: none;
        height: 1px;
        background: linear-gradient(to right, transparent, #e0e0e0, transparent);
        margin: 10px 16px;
    }

    .account-links {
        background-color: #fafafa;
        border-top: 1px solid #f0f0f0;
    }

    .account-item {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        background-color: transparent;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: #333;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 14px;
        font-weight: 500;
    }

    .account-item:hover {
        background-color: #f0f4ff;
        color: #007bff;
        padding-left: 24px;
        border-left: 3px solid #007bff;
        text-decoration: none;
    }

    .account-item i {
        width: 18px;
        text-align: center;
        margin-right: 12px;
        color: #666;
        font-size: 14px;
    }

    .account-item:hover i {
        color: #007bff;
    }

    /* Log Out special styling */
    .account-item[href="/logout"]:hover {
        background-color: #fff5f5;
        color: #dc3545;
        border-left-color: #dc3545;
    }

    .account-item[href="/logout"]:hover i {
        color: #dc3545;
    }

    /* Admin link special styling */
    .account-item[href="/admin"]:hover {
        background-color: #f8f5ff;
        color: #6f42c1;
        border-left-color: #6f42c1;
    }

    .account-item[href="/admin"]:hover i {
        color: #6f42c1;
    }

    /* Remove bottom border from last account item */
    .account-item:last-child {
        border-bottom: none;
    }

    /* Ensure proper spacing */
    .category-name {
        flex-grow: 1;
    }

    /* Animation for account items when sidebar opens */
    .mobile-category-sidebar.active .account-item {
        animation: slideInAccount 0.3s ease forwards;
        opacity: 0;
        transform: translateX(-20px);
    }

    .mobile-category-sidebar.active .account-item:nth-child(1) {
        animation-delay: 0.5s;
    }

    .mobile-category-sidebar.active .account-item:nth-child(2) {
        animation-delay: 0.6s;
    }

    .mobile-category-sidebar.active .account-item:nth-child(3) {
        animation-delay: 0.7s;
    }

    @keyframes slideInAccount {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Add some spacing at the bottom of the sidebar */
    .sidebar-content {
        flex: 1;
        padding-bottom: 20px;
    }

    /* Custom scrollbar for sidebar */
    .mobile-category-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .mobile-category-sidebar::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .mobile-category-sidebar::-webkit-scrollbar-thumb {
        background: #dc3545;
        border-radius: 3px;
    }

    .mobile-category-sidebar::-webkit-scrollbar-thumb:hover {
        background: #c82333;
    }
}

/* ---------- Smartphones (max-width: 600px) ---------- */
@media (max-width: 600px) {
    .mobile-category-sidebar {
        width: 85%;
        left: -85%;
        max-width: 280px;
    }
    
    .sidebar-header {
        padding: 12px 15px;
    }
    
    .mobile-category-sidebar .dropdown-item {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    /* Add col-md-5 styles only for smartphones */
    .col-md-5 {
        margin-right: 0;
        margin-left: 0;
    }
}

/* ---------- Very small screens (max-width: 480px) ---------- */
@media (max-width: 480px) {
    .mobile-category-sidebar {
        width: 90%;
        left: -90%;
        max-width: 260px;
    }

    .sidebar-header h5 {
        font-size: 15px;
    }

    .mobile-category-sidebar .dropdown-item {
        padding: 9px 12px;
        font-size: 12px;
    }
}

/* ---------- Desktop (min-width: 1025px) ---------- */
@media (min-width: 1025px) {

    /* Hide hamburger and mobile sidebar on desktop */
    .hamburger,
    .mobile-category-sidebar,
    .mobile-category-overlay {
        display: none !important;
    }

    /* Desktop styles remain unchanged */
    .account-cart {
        display: flex !important;
    }

    .navbar-center {
        display: flex !important;
    }
}

/* Mobile/Tablet specific scrolling fix */
@media (max-width: 991.98px) {
    .order-items .table-responsive {
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Enables momentum scrolling on iOS */
        max-height: 400px; /* Adjust as needed */
    }
    
    /* Ensure table doesn't collapse on mobile */
    .order-items table {
        min-width: 100%;
        white-space: nowrap;
    }
    
    /* Fix for Android scrolling issues */
    .order-items .table-responsive {
        transform: translateZ(0);
        position: relative;
    }
}

/* For phones specifically */
@media (max-width: 576px) {
    .order-items .table-responsive {
        max-height: 300px;
    }
    
    /* Make table cells wrap on very small screens if needed */
    .order-items td {
        padding: 0.5rem 0.25rem;
        font-size: 0.875rem;
    }
}

/* =========================
   NAVBAR FIXES FOR LAPTOPS
   Keep navbar centered while account content is pushed right
   ========================= */

/* Fix navbar positioning for laptops */
@media (min-width: 992px) and (max-width: 1299px) {
    
    /* Reset navbar positioning */
    .navbar {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        position: static;
        padding: 10px 15px;
    }
    
    /* Logo positioning - keep it centered */
    .navbar-brand img {
        width: 140px;
        margin-left: -50px; /* Adjust for center alignment */
    }
    
    /* Navbar center - keep it centered */
    .navbar-center {
        margin-left: 0; /* Reset any negative margins */
        padding-left: 0;
        position: relative;
    }
    
    /* Search container - keep within bounds */
    .search-container {
        margin-right: 20px;
        width: auto;
        max-width: 500px;
    }
    
    .search-container input {
        max-width: 400px;
    }
    
    /* Account/cart section - prevent overflow */
    .account-cart {
        width: 200px;
        margin-right: 10px; /* Reduce negative margin */
        padding-right: 10px;
    }
    
    /* Categories button - keep in bounds */
    .dropdown-toggle {
        margin-left: 10px;
        margin-right: 15px;
    }
    
    /* Container for navbar - full width */
    .navbar .container {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Account page specific - override only the content below navbar */
    body {
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    
    /* Apply right push only to the account content area, not navbar */
    .container.mt-5 {
        margin-left: 8%; /* Push only the account content */
        margin-right: auto;
    }
    
    /* Ensure account sections don't break navbar layout */
    .account-card {
        position: relative;
        z-index: 1;
    }
}

/* For smaller laptops */
@media (min-width: 992px) and (max-width: 1199px) {
    
    /* More compact navbar */
    .navbar-brand img {
        width: 120px;
        margin-left: -30px;
    }
    
    .search-container {
        max-width: 400px;
    }
    
    .search-container input {
        max-width: 300px;
    }
    
    .account-cart {
        width: 180px;
        margin-right: 5px;
    }
    
    /* Account content push for smaller laptops */
    .container.mt-5 {
        margin-left: 10%;
    }
}

/* For larger laptops */
@media (min-width: 1200px) and (max-width: 1299px) {
    
    /* Balanced navbar */
    .navbar-brand img {
        width: 150px;
        margin-left: -60px;
    }
    
    .search-container {
        max-width: 550px;
    }
    
    .search-container input {
        max-width: 450px;
    }
    
    .account-cart {
        width: 220px;
        margin-right: 15px;
    }
    
    /* Moderate account content push */
    .container.mt-5 {
        margin-left: 6%;
    }
}

/* Ensure navbar elements don't get affected by account content adjustments */
@media (min-width: 992px) and (max-width: 1299px) {
    
    /* Top info bar - full width */
    .top-info-bar,
    .banner {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        position: static;
    }
    
    /* Navbar wrapper - full width */
    .navbar,
    .navbar-expand-lg {
        width: 100%;
        position: static;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Secondary navigation - full width */
    .navbar-light {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Account/login links positioning */
    .account-cart a {
        white-space: nowrap;
        font-size: 14px;
    }
}
/* Add these styles to your CSS file or in a <style> tag in the head of your HTML */

/* Essential carousel styles to ensure proper display */
#productImageCarousel {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
  }
  
  .carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
  }
  
  .carousel-item {
    position: relative;
    display: none;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: transform .6s ease-in-out;
  }
  
  .carousel-item.active {
    display: block;
  }
  
  /* Styling for the navigation arrows */
  .carousel-navigation-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .carousel-navigation-arrow:hover {
    background-color: rgba(255, 255, 255, 0.9);
  }
  
  .carousel-navigation-arrow.prev {
    left: 10px;
  }
  
  .carousel-navigation-arrow.next {
    right: 10px;
  }
  
  /* Styles for the thumbnail navigation */
  .thumbnail-nav {
    border: 2px solid #ccc;
    cursor: pointer;
    transition: border-color 0.3s;
  }
  
  .thumbnail-nav.border-active,
  .thumbnail-nav:hover {
    border: 2px solid #0d6efd !important;
  }
  
  /* Debug styles - makes it easier to see the carousel structure */
  .product-gallery {
    border: 1px solid transparent;
  }

  /* Add these styles to your CSS file to enhance the clickable product cards */

.product-container {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
  }
  
  .product-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
  }
  
  /* Ensure the "Adaugă în coș" button doesn't trigger the card click */
  .add-to-cart-btn {
    position: relative;
    z-index: 2;
  }
  
  /* Visual indicator for clickable area */
  .product-card .card-img-top {
    transition: opacity 0.2s ease;
  }
  
  .product-container:hover .card-img-top {
    opacity: 0.9;
  }
  
  /* Style for badges */
  .badge {
    z-index: 1;
    font-size: 0.8rem;
    padding: 0.5em 0.7em;
  }
  
/* Target the specific classes I can see in your screenshot */
.col-md-5.new-account {
    margin-left: 0 !important;
}

/* account toggle checkout la final */
/* Account Toggle Section */
.account-toggle-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.account-options {
    text-align: center;
}

.account-toggle-btn {
    background: white;
    border: 2px solid #e9ecef;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.account-toggle-btn:hover:not(.active) {
    border-color: #007bff;
    color: #007bff;
    text-decoration: none;
}

.account-toggle-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.account-toggle-btn.active:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Customer Form Sections */
.customer-form-section {
    margin-bottom: 20px;
}

.customer-form-section .card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.customer-form-section .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 10px 10px 0 0 !important;
    padding: 15px 20px;
}

.customer-form-section .card-header h4 {
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.customer-form-section .card-body {
    padding: 20px;
}

/* Section Titles */
.section-title h5 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

/* Form Styling */
.customer-form-section .form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 10px 12px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.customer-form-section .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.customer-form-section .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}

/* Password Container */
.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 14px;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #007bff;
}

/* Button Styling */
.customer-form-section .btn-primary {
    background: #007bff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.15s ease-in-out;
}

.customer-form-section .btn-primary:hover {
    background: #0056b3;
}

.customer-form-section .btn-outline-danger,
.customer-form-section .btn-outline-primary {
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px;
}

/* Form Check Styling */
.customer-form-section .form-check {
    margin-bottom: 10px;
}

.customer-form-section .form-check-input {
    margin-top: 0.3em;
}

.customer-form-section .form-check-label {
    font-size: 14px;
    color: #495057;
    line-height: 1.4;
}

.customer-form-section .form-check-label a {
    color: #007bff;
    text-decoration: none;
}

.customer-form-section .form-check-label a:hover {
    text-decoration: underline;
}

/* Text Styling */
.text-danger {
    color: #dc3545 !important;
}

.text-muted {
    color: #6c757d !important;
    font-size: 12px;
}

/* Social Login Buttons */
.btn-outline-danger.btn-sm {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-outline-danger.btn-sm:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-outline-primary.btn-sm {
    border-color: #007bff;
    color: #007bff;
}

.btn-outline-primary.btn-sm:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .account-toggle-btn {
        font-size: 12px;
        padding: 8px 12px;
        margin: 2px;
        flex: 1;
        min-width: 0;
    }
    
    .customer-form-section .card-body {
        padding: 15px;
    }
    
    .account-toggle-section {
        padding: 15px;
    }
    
    .account-options .d-flex {
        flex-wrap: wrap;
        gap: 8px !important;
    }
    
    .account-toggle-btn {
        flex-basis: calc(50% - 4px);
    }
    
    .account-toggle-btn:last-child {
        flex-basis: 100%;
    }
}

@media (max-width: 576px) {
    .account-options .d-flex {
        flex-direction: column;
        gap: 8px !important;
    }
    
    .account-toggle-btn {
        width: 100%;
        margin: 2px 0;
        flex-basis: auto;
    }
}

/* Guest Email Section */
#guestEmailSection {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

#guestEmailSection .form-label {
    font-weight: 600;
    color: #495057;
}

/* Separator */
hr.my-4 {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #007bff, transparent);
    margin: 2rem 0;
}

/* Animation for form transitions */
.customer-form-section {
    transition: all 0.3s ease-in-out;
}

.customer-form-section.d-none {
    display: none !important;
}

/* Focus states */
.account-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Error states */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220,53,69,0.25);
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}
.login-left {
    justify-content: center;
    align-items: center;
   
}

/* Or alternatively, if you prefer a simpler approach: */
.login-left {
    text-align: center;
    margin: 0 auto;
    max-width: 500px; /* adjust width as needed */
}

/* Sale price styling - Regular price */


.product-price.text-danger,
.price-display .text-danger,
h2.product-price.fw-bold.text-danger {
    color: black !important; 
    font-weight: bold;
}

/* Regular price styling - when there's no sale */
.product-price.text-primary,
h2.product-price.fw-bold.text-primary {
    color: black !important; 
}

/* Crossed out regular price when on sale */
.product-price.text-muted s,
h2.product-price.fw-bold.text-muted s {
    color: red !important; /* Muted gray for crossed out price */
    text-decoration: line-through;
}
/* Sale price in product cards */
.card .text-danger {
    color: #dc3545 !important;
}

/* Original price in product cards */
.card .original-price {
    text-decoration: line-through;
    color: black !important;
    font-size: 1.2rem;
    margin-right: 10px;
}

/* Additional styling for product page price section */
.product-dashboard .dashboard-price-section h2 {
    display: inline-block;
    margin-right: 15px;
}

/* Ensure both sale and regular prices are visible and properly sized */
.dashboard-price-section .product-price {
    font-size: 28px !important;
    line-height: 1.2;
}

/* Special handling for when both prices are shown */
.dashboard-price-section .d-flex.justify-content-between.align-items-center h2 {
    font-size: 26px !important;
    margin-bottom: 0 !important;
}

/* =====================================
   4 PRODUCTS PER ROW LAYOUT
===================================== */

/* Reduce overall card height and elements for 4 products per row */
.product-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 15px; /* Reduced from 30px */
}

.product-card:hover {
    transform: translateY(-3px); /* Reduced from -15px */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Reduced shadow */
}

/* Smaller product image container */
.product-image-container {
    height: 160px; /* Reduced from 200px */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Reduced from 15px */
    overflow: hidden;
    background-color: #f8f9fa;
}

.product-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.03); /* Reduced from 1.05 */
}

/* Compact card body */
.product-card .card-body {
    padding: 15px; /* Reduced from 25px */
}

/* Smaller title */
.product-card .card-title {
    font-size: 1.1rem; /* Reduced from 1.5rem */
    font-weight: 600;
    margin-bottom: 8px; /* Reduced from 15px */
    color: #333;
    min-height: 45px; /* Reduced from 60px */
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Compact price display */
.price-display {
    font-size: 16px; /* Reduced from 18px */
    margin: 8px 0; /* Reduced from 10px 0 */
    font-weight: bold;
}

/* Smaller buttons */
.product-card .btn {
    padding: 8px 16px; /* Reduced from 12px 20px */
    font-size: 0.9rem; /* Reduced from 1.1rem */
    font-weight: 600;
    border-radius: 6px; /* Reduced from 8px */
    transition: all 0.3s ease;
}

.product-card .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.product-card .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px); /* Reduced from -3px */
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3); /* Reduced shadow */
}

/* Compact button container */
.product-card .d-flex {
    gap: 8px; /* Reduced from 10px */
    margin-top: 10px; /* Reduced from 15px */
}

/* Adjust gap between cards */
.g-3 > .col,
.g-3 > [class*="col-"] {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-bottom: 1rem;
}

/* Price styling for smaller cards */
.card .text-danger {
    color: #dc3545 !important;
    font-size: 25px; /* Slightly smaller */
}

.card .text-muted small {
    font-size: 13px; /* Smaller crossed out price */
}

/* Responsive adjustments for very small screens */
@media (max-width: 576px) {
    .product-image-container {
        height: 140px;
    }
    
    .product-card .card-title {
        font-size: 1rem;
        min-height: 40px;
    }
    
    .price-display {
        font-size: 14px;
    }
    
    .product-card .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Medium screens - 3 products */
@media (min-width: 768px) and (max-width: 991px) {
    .product-image-container {
        height: 180px;
    }
}

/* Large screens - 4 products */
@media (min-width: 992px) {
    .product-image-container {
        height: 160px;
    }
    
    .product-card .card-title {
        font-size: 1.05rem;
    }
}

/* Extra large screens - keep 4 products but slightly bigger */
@media (min-width: 1200px) {
    .product-image-container {
        height: 170px;
    }
    
    .product-card .card-title {
        font-size: 1.1rem;
    }
    
    .price-display {
        font-size: 17px;
    }
}

/* Ensure filter sidebar doesn't interfere with 4-column layout */
.col-md-9 {
    padding-left: 15px;
    padding-right: 15px;
}

.col-md-3 {
    padding-left: 20px; /* Reduced from 40px */
}

/* Category page specific adjustments */
.container.my-5 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Hover effects for better UX on smaller cards */
.product-container {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.product-container:hover {
    transform: translateY(-2px); /* Subtle lift */
    box-shadow: 0 6px 15px rgba(0,0,0,0.1) !important;
}

/* Make sure add to cart button is prominent */
.add-to-cart-btn {
    position: relative;
    z-index: 2;
    width: 50%;
    font-weight: 600;
}

.add-to-cart-btn:hover {
    transform: translateY(-1px);
}

.nav-tabs .nav-link {
    background: none !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    color: #6c757d !important;
}

.nav-tabs .nav-link.active {
    background: none !important;
    border: none !important;
    border-bottom: 2px solid #0d6efd !important;
    color: #0d6efd !important;
}

.nav-tabs .nav-link:hover {
    background: none !important;
    border: none !important;
    border-bottom: 2px solid #0d6efd !important;
    color: #0d6efd !important;
}

.description-container {
    position: relative;
}

.description-preview,
.description-full {
    text-align: justify;
    line-height: 1.6;
}

#read-more-btn {
    color: #20950e;
    text-decoration: none;
    border: none;
    background: none;
    font-size: 0.9rem;
}

#read-more-btn:hover {
    color: #20950e;
    text-decoration: underline;
}

.similar-product-item:last-child .border-bottom {
    border-bottom: none !important;
}

.recommended-product-item:last-child .border-bottom {
    border-bottom: none !important;
}

/* Compact product cards */
.similar-products-container,
.recommended-products-container {
    max-height: 400px;
    overflow-y: auto;
}

.similar-products-container::-webkit-scrollbar,
.recommended-products-container::-webkit-scrollbar {
    width: 4px;
}

.similar-products-container::-webkit-scrollbar-track,
.recommended-products-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.similar-products-container::-webkit-scrollbar-thumb,
.recommended-products-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

.similar-products-container::-webkit-scrollbar-thumb:hover,
.recommended-products-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}
.similar-product-item:hover,
.recommended-product-item:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Responsive pentru mobile */
@media (max-width: 768px) {
    .similar-product-img img,
    .recommended-product-img img {
        width: 35px !important;
        height: 35px !important;
    }
    
    .similar-product-details h6,
    .recommended-product-details h6 {
        font-size: 0.7rem !important;
    }
    
    .price {
        font-size: 0.75rem !important;
    }
    
    .add-to-cart-btn {
        font-size: 0.6rem !important;
        padding: 0.2rem 0.3rem !important;
    }
}
/* Scroll container pentru produse recomandate */
.recommended-products-container.with-scroll {
    max-height: 400px;
    overflow-y: auto;
    position: relative;
}

/* Custom scrollbar pentru produse recomandate */
.recommended-products-container.with-scroll::-webkit-scrollbar {
    width: 6px;
}

.recommended-products-container.with-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.recommended-products-container.with-scroll::-webkit-scrollbar-thumb {
    background: #20950e;
    border-radius: 3px;
}

.recommended-products-container.with-scroll::-webkit-scrollbar-thumb:hover {
    background: #20950e;
}

/* Firefox scrollbar */
.recommended-products-container.with-scroll {
    scrollbar-width: thin;
    scrollbar-color: #20950e #f1f1f1;
}

.similar-product-item:hover,
.recommended-product-item:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Responsive pentru mobile */
@media (max-width: 768px) {
    .similar-product-img img,
    .recommended-product-img img {
        width: 35px !important;
        height: 35px !important;
    }
    
    .similar-product-details h6,
    .recommended-product-details h6 {
        font-size: 0.7rem !important;
    }
    
    .price {
        font-size: 0.75rem !important;
    }
    
    .add-to-cart-btn {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.35rem !important;
        white-space: nowrap;
    }
}

/* Elimină border-bottom de la ultimul element */
.similar-products-container .row > div:last-child .border-bottom,
.recommended-products-container .row > div:last-child .border-bottom {
    border-bottom: none !important;
}

/* Adaugă aceste stiluri în styles.css pentru layout dinamic */

/* Container pentru produse recomandate - se adaptează la conținut */
.recommended-products-container {
    min-height: auto !important; /* Elimină înălțimea fixă */
    height: auto !important;
    display: flex;
    flex-direction: column;
}

/* Când ai 1-2 produse - compact layout */
.recommended-products-container .row {
    margin: 0;
    gap: 0;
}

.recommended-products-container .col-12 {
    padding: 0;
    margin: 0;
}

/* Elementele de produs - spațiere uniformă */
.recommended-product-item {
    padding: 8px 5px !important;
    margin: 0;
    border-bottom: 1px solid #eee;
    min-height: 60px; /* Înălțime minimă consistentă */
}

.recommended-product-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0;
}

/* Card container - se ajustează la conținut */
.recommended-products-container .card-body {
    padding: 10px 15px !important;
    min-height: auto !important;
}

/* Scrollbar doar când sunt multe produse (>3) */
.recommended-products-container.with-scroll {
    max-height: 300px; /* Ajustează după nevoie */
    overflow-y: auto;
}

/* Fără scroll când sunt puține produse */
.recommended-products-container:not(.with-scroll) {
    max-height: none;
    overflow: visible;
}

/* Layout responsive pentru diferite numere de produse */

/* 1 produs - foarte compact */
.recommended-products-container[data-count="1"] {
    min-height: 80px;
}

.recommended-products-container[data-count="1"] .recommended-product-item {
    padding: 10px 5px;
}

/* 2-3 produse - layout normal */
.recommended-products-container[data-count="2"],
.recommended-products-container[data-count="3"] {
    min-height: auto;
}

/* 4+ produse - activează scroll */
.recommended-products-container[data-count="4"],
.recommended-products-container[data-count="5"],
.recommended-products-container[data-count="6"] {
    max-height: 280px;
    overflow-y: auto;
}

/* Card header - spacing consistent */
.recommended-products-container .card-header {
    padding: 12px 15px;
    background-color: #f8f9fa;
}

.recommended-products-container .card-header h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Elimină spațiile goale */
.recommended-products-container .card {
    margin-bottom: 0 !important;
}

/* Responsive pentru mobile */
@media (max-width: 768px) {
    .recommended-product-item {
        padding: 6px 3px !important;
        min-height: 50px;
    }
    
    .recommended-product-img img {
        width: 35px !important;
        height: 35px !important;
    }
    
    .recommended-product-details h6 {
        font-size: 0.7rem !important;
    }
    
    .recommended-products-container[data-count="4"],
    .recommended-products-container[data-count="5"],
    .recommended-products-container[data-count="6"] {
        max-height: 200px;
    }
}

/* Smooth transitions pentru schimbările de layout */
.recommended-products-container {
    transition: height 0.3s ease, max-height 0.3s ease;
}

.recommended-product-item {
    transition: padding 0.2s ease;
}

/* Stiluri pentru scroll custom */
.recommended-products-container.with-scroll::-webkit-scrollbar {
    width: 4px;
}

.recommended-products-container.with-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.recommended-products-container.with-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

.recommended-products-container.with-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Enhanced Product Options Styling */
#variant-options .card {
    border-radius: 15px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important;
    border: 1px solid #e9ecef !important;
    overflow: hidden !important;
}

#variant-options .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-bottom: 2px solid #20950e !important;
    padding: 15px 20px !important;
}

#variant-options .card-header h6 {
    font-weight: 700 !important;
    color: #2c3e50 !important;
    margin: 0 !important;
    font-size: 1.1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#variant-options .card-header h6::before {
    content: '⚙️';
    font-size: 1.2rem;
}

#variant-options .card-body {
    padding: 20px !important;
    background: white !important;
}

/* Enhanced form labels */
#variant-options .fw-bold {
    color: #495057 !important;
    font-size: 1rem !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Enhanced select dropdowns */
#variant-options .form-select {
    background: white !important;
    border: 2px solid #e9ecef !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #495057 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

#variant-options .form-select:focus {
    outline: none !important;
    border-color: #20950e !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
    transform: translateY(-1px) !important;
}

#variant-options .form-select:hover {
    border-color: #20950e !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

/* Enhanced color swatches */
#variant-options .color-swatch {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: 3px solid #e9ecef !important;
    margin: 4px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

#variant-options .color-swatch:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

#variant-options .color-swatch.selected {
    border: 3px solid #20950e !important;
    transform: scale(1.15) !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
}

/* Enhanced option groups */
#variant-options .mb-3 {
    background: rgba(13, 110, 253, 0.02) !important;
    padding: 15px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(13, 110, 253, 0.1) !important;
    margin-bottom: 20px !important;
}

/* Responsive */
@media (max-width: 768px) {
    #variant-options .card-body {
        padding: 15px !important;
    }
    
    #variant-options .mb-3 {
        padding: 12px !important;
    }
    
    #variant-options .color-swatch {
        width: 35px !important;
        height: 35px !important;
        margin: 3px !important;
    }
}

.btn-remove {
    display: none !important;
}

/* =====================================
   MOBILE SEARCH BAR STYLES - DISPLAY FIX
===================================== */

/* Mobile search container */
.mobile-search-container {
    display: none;
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1000;
}

/* Mobile search wrapper */
.mobile-search-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    overflow: visible; /* CHANGED: Allow overflow for suggestions */
    position: relative;
}

.mobile-search-wrapper:focus-within {
    border-color: #dc3545;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.2);
    transform: translateY(-2px);
}

/* Mobile search input */
.mobile-search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    color: #333;
    background: transparent;
    outline: none;
    border-radius: 25px;
    font-weight: 400;
}

.mobile-search-input::placeholder {
    color: #8e9297;
    font-style: italic;
}

/* Mobile search button - FIXED */
.mobile-search-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    padding: 12px 18px;
    color: white;
    cursor: pointer;
    border-radius: 0 23px 23px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: 48px;
    position: relative;
    overflow: hidden;
    margin: 0;
    flex-shrink: 0;
}

.mobile-search-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: scale(1.02);
}

.mobile-search-btn i {
    font-size: 16px;
    color: white;
    line-height: 1;
}

/* Clear search button */
.mobile-search-clear {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    margin-right: 4px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 14px;
}

.mobile-search-input:not(:placeholder-shown) ~ .mobile-search-clear {
    opacity: 1;
    pointer-events: auto;
}

.mobile-search-clear:hover {
    color: #dc3545;
    background: #fff5f5;
}

/* Mobile navbar modifications */
@media (max-width: 1024px) {
    .mobile-search-container {
        display: block;
    }
    
    .navbar {
        flex-direction: column;
        padding: 8px 15px 0;
    }
    
    .navbar-top-row {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 8px 0;
        background: white;
        position: relative;
        z-index: 1001;
    }
    
    .navbar-top-row .navbar-brand {
        margin: 0;
        flex: 0 0 auto;
    }
    
    .navbar-top-row .navbar-brand img {
        width: 120px !important;
        margin: 0 !important;
        height: auto;
    }
    
    .hamburger {
        position: relative;
        z-index: 1002;
        margin: 0;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 36px;
        height: 36px;
        cursor: pointer;
    }
    
    .hamburger span {
        display: block;
        width: 24px;
        height: 3px;
        margin: 3px 0;
        background: #dc3545;
        border-radius: 2px;
        transition: all 0.3s;
    }
    
    .search-container,
    .search-bar,
    .account-cart {
        display: none !important;
    }
}

/* FIXED: Mobile search suggestions - This was the main issue */
.mobile-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid #e9ecef;
    border-top: none;
    max-height: 400px; /* INCREASED height */
    overflow-y: auto;
    z-index: 2000; /* INCREASED z-index */
    display: none; /* Start hidden */
    width: 100%; /* Ensure full width */
}

/* FIXED: Show suggestions when active */
.mobile-search-suggestions.show {
    display: block !important; /* Force display */
    opacity: 1 !important;
    visibility: visible !important;
    animation: slideDownFade 0.3s ease forwards;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FIXED: Mobile suggestion items */
.mobile-suggestion-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex !important; /* Force flex display */
    align-items: center;
    gap: 12px;
    background: white; /* Ensure background */
    min-height: 60px; /* Minimum height for visibility */
}

.mobile-suggestion-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    padding-left: 20px;
}

.mobile-suggestion-item:last-child {
    border-bottom: none;
    border-radius: 0 0 15px 15px;
}

/* FIXED: Product suggestion styling */
.suggestion-image {
    flex-shrink: 0;
    width: 40px; /* INCREASED size */
    height: 40px; /* INCREASED size */
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    background: white; /* Ensure background */
}

.suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block; /* Ensure image displays */
}

.suggestion-content {
    flex: 1;
    display: flex !important; /* Force flex display */
    flex-direction: column;
    gap: 4px; /* INCREASED gap */
    min-width: 0; /* Allow text to wrap */
}

.search-text {
    font-size: 14px;
    color: #333 !important; /* Force color */
    font-weight: 500;
    line-height: 1.3;
    display: block !important; /* Force display */
}

.search-price {
    font-size: 12px;
    color: #dc3545 !important; /* Force color */
    font-weight: 600;
    display: block !important; /* Force display */
}

/* Enhanced mobile search with animation */
@media (max-width: 600px) {
    .mobile-search-container {
        padding: 8px 12px;
    }
    
    .mobile-search-input {
        padding: 10px 16px;
        font-size: 15px;
    }
    
    .mobile-search-btn {
        padding: 10px 14px;
        min-width: 42px;
    }
    
    .mobile-search-btn i {
        font-size: 14px;
    }
    
    .navbar-top-row .navbar-brand img {
        width: 100px !important;
    }
    
    /* Adjust suggestions for small screens */
    .suggestion-image {
        width: 35px;
        height: 35px;
    }
    
    .search-text {
        font-size: 13px;
    }
    
    .search-price {
        font-size: 11px;
    }
}

/* Loading state for search */
.mobile-search-btn.loading {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    cursor: not-allowed;
}

.mobile-search-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* DEBUG: Temporary red border to see if suggestions container exists */
.mobile-search-suggestions.show {
    border: 2px solid red !important; /* REMOVE this after testing */
}

/* =====================================
   TOP BAR MOBILE - KEEP ORIGINAL MESSAGE, HIDE CONTACT
===================================== */

@media (max-width: 768px) {
    /* Adjust top bar for mobile */
    .top-bar {
        padding: 8px 0; /* Reduce padding for mobile */
    }
    
    .top-bar .container {
        justify-content: center;
        text-align: center;
        margin-left: 80px; /* Subtle push to the right */
    }
    
    /* Hide all contact details (phone, hours, store finder) */
    .top-bar div:last-child {
        display: none;
    }
    
    
}