/* Reset body and html to prevent white space */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

/* Prevent horizontal scrolling on all devices */
* {
    box-sizing: border-box;
}

/*.container-fluid, .container {
    overflow-x: hidden !important;
}*/

/* Mobile and tablet specific fixes */
@media (max-width: 1024px) {
    html, body {
        overflow-x: hidden !important;
        position: relative;
        width: 100vw !important;
        max-width: 100vw !important;
    }
    
    .container-fluid {
        padding-left: 5px !important;
        padding-right: 5px !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
    
    .regular-products-grid,
    .regular-products-grid.index-grid {
        gap: 5px !important;
        padding: 5px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .product-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
    
    .regular-products-section {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
}

/* Mobile Categories Styles */
.categories-scroll-container {
    position: relative;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-row {
    display: flex
;
    flex-direction: row-reverse;
    justify-content: flex-end;
    width: 100%;
    background: linear-gradient(-225deg, #445972 0%, #2580B3 100%);
    border: 1px solid #ede6f0;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.category-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #dbcdd6;
}

.category-row.active {
    background: #c9b4c1;
    border-color: #bda6b3;
}

.cat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 10px;
}

.cat-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

.cat-subtitle {
    font-size: 12px;
    color: #ffffff;
}

.cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -2px 6px rgba(0,0,0,0.06);
}

.cat-icon i {
    font-size: 20px;
    color: #303030;
}

.category-row.active .cat-title { color: #ffffff; }
.category-row.active .cat-subtitle { color: #f7eef3; }
.category-row.active .cat-icon { background: #b89cab; }
.category-row.active .cat-icon i { color: #fff; }

@media (max-width: 480px) {
    .category-row { padding: 12px 14px; }
    .cat-title { font-size: 15px; }
    .cat-subtitle { font-size: 11px; }
    .cat-icon { width: 40px; height: 40px; }
}

.categories-scroll-container .d-flex::-webkit-scrollbar {
    display: none;
}

.category-card {
    min-width: 80px;
    text-align: center;
}

.category-icon-wrapper {
    margin-bottom: 8px;
}
.container-fluid{
    padding-left: 5px !important;
    padding-right: 5px !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Special handling for sections that need full width 
.hero-section .container-fluid,
.navbar .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important; 
}*/
    
.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}


.category-icon i {
    font-size: 24px;
    color: white;
}

.category-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    margin-top: 4px;
    line-height: 1.2;
}
.product-details {
    padding-top: 10px;
}
.objet{
   width: 60px;
   height: 60px;
   object-fit: contain;
}

/* Global Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #eef2f5 !important;
    line-height: 1.6;
}

/* New Clean Navbar Styles */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1rem 1rem 1rem 1rem;
}

.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.hero-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: 0.5px;
}

.store-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 1px;
    margin-top: -2px;
}

/* Search Section */
.search-section {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 10;
}

.search-input {
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    padding: 12px 20px 12px 45px;
    font-size: 0.95rem;
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.search-input::placeholder {
    color: #94a3b8;
}

/* Mobile Menu Styles */
.offcanvas-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.offcanvas-body .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-weight: 500;
}

.offcanvas-body .nav-link:hover {
    color: #2563eb;
    background-color: transparent;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.nav-link:hover {
    color: #fff !important;
    background-color: rgba(255,255,255,0.1);
}

.nav-link.active {
    color: #fff !important;
    background-color: rgba(255,255,255,0.2);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    margin-bottom: 30px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}



/* Category Section */
.category-section {
    margin-bottom: 40px;
}

.category-title {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Categories Card */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-header {
    background-color: #3498db !important;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.card-header h5 {
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.list-group-item {
    border: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.list-group-item:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.list-group-item a {
    color: #2c3e50;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.list-group-item:hover a {
    color: #3498db;
    transform: translateX(-5px);
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image-container {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    position: relative;
    flex-shrink: 0;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 0px;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom:0;
}

.product-rating {
    color: #f1c40f;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.product-meta p {
    margin-bottom: 0.5rem;
    color: #666;
}

.product-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-meta a:hover {
    text-decoration: underline;
}

/* Legacy product actions - keeping for backward compatibility */
.legacy-product-actions {
    margin-top: 1rem;
}

.legacy-product-actions .btn {
    margin-bottom: 0.5rem;
    width: 100%;
}

/* Product Details Page */
.product-details-section {
    padding: 2rem 0;
}

.product-details-section .product-card {
    margin-bottom: 0;
}

.product-details-section .product-img {
    padding-top: 0;
    height: 400px;
}

.product-details-section .product-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-details-section .product-price {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-details-section .product-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.product-thumbnails img {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-thumbnails img.active,
.product-thumbnails img:hover {
    border-color: var(--primary-color);
}

/* Categories Showcase */
.categories-showcase {
    margin-bottom: 40px;
}

.category-card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-img {
    position: relative;
    height: 250px;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-overlay h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Category Header */
/*.category-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
*/
/* Cart Styles */
.cart-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.cart-summary {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

/* Form Styles */
.form-container {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-title {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Product Details */
.product-details-img {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-details-img img {
    width: 100%;
    height: auto;
}

.product-details-info {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-details-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-details-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.product-details-description {
    margin-bottom: 20px;
}


/* Cart Button */
.cart-btn {
    position: relative;
    padding: 0.5rem 1rem;
    color: rgba(255,255,255,0.8) !important;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.cart-btn:hover {
    color: #fff !important;
    background-color: rgba(255,255,255,0.1);
}

.cart-count {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #e74c3c;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Footer Styles */
footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    
    .category-img {
        height: 200px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Custom Alert Styles */
.alert {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Pagination Styles */
.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link {
    color: var(--primary-color);
}

/* Admin Dashboard Styles */
.dashboard-card {
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    color: white;
    text-align: center;
}

.dashboard-card-1 {
    background-color: var(--primary-color);
}

.dashboard-card-2 {
    background-color: var(--success-color);
}

.dashboard-card-3 {
    background-color: var(--warning-color);
}

.dashboard-card-4 {
    background-color: var(--danger-color);
}

.dashboard-card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.dashboard-card-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.dashboard-card-value {
    font-size: 2rem;
    font-weight: bold;
}

/* Alert Container */
#alert-container {
    z-index: 1050;
}

/* Index Page Specific Styles */


/* Flash Sales Styles - New Design */
.flash-sales-section {
    background: linear-gradient(45deg, hsl(192deg 51% 45% / 80%) 0%, hsl(222.38deg 58.37% 48.04% / 80%) 100%);
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#dd3939", endColorstr="#dd4d34", GradientType=1 );
    border-radius: 20px;
    padding: 20px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgb(54 114 187 / 40%);
}

.flash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
    flex-wrap: wrap;
    gap: 15px;
}

.flash-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flash-icon {
    font-size: 2rem;
    color: #fff200;
    text-shadow: 0 0 10px rgba(255, 242, 0, 0.5);
}

.flash-main-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.flash-countdown-main {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.countdown-label {
    font-size: 1rem;
    font-weight: 500;
}

.countdown-timer {
    display: flex;
    gap: 10px;
    background: rgba(255,255,255,0.15);
    padding: 10px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.time-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #fff200;
}

.time-label {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 2px;
}
.product-card {
    background: white;
    border-radius: 12px;
    width: 250px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

/* Mobile - product card width */
@media (max-width: 768px) {
    .product-card {
        width: 180px;
    }
}

/* Product Image Gallery Styles */
.product-image-gallery {
    max-width: 100%;
}

.main-image-container {
    position: relative;
    width: 100%;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-product-image:hover {
    transform: scale(1.05);
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.thumbnail-item {
    width: 50px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-item:hover {
    border-color: #007bff;
    transform: translateY(-2px);
}

.thumbnail-item.active {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover .thumbnail-image {
    transform: scale(1.1);
}
.flash-products-container {
    margin-bottom: 15px;
}

.flash-products-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.flash-products-scroll::-webkit-scrollbar {
    display: none;
}

.flash-product-card {
    background: white;
    border-radius: 12px;
    width: 155px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.flash-product-card.destockage-product-card {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
}

.flash-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.flash-badge {
    position: absolute;
    top: 8px;
    right: 55%;
    z-index: 3;
}
.flash-badge1 {
    position: absolute;
    top: 8px;
    right: 65%;
    z-index: 3;
}

.flash-label {
    background: #3574ba;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.flash-label1 {
    background: #3574ba;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
/* Destockage badge specific styling */
.flash-badge .flash-label[data-type="destockage"] {
    background: #f54400 !important;
}
/* Destockage badge specific styling */
.flash-badge1 .flash-label1[data-type="destockage"] {
    background: #f54400 !important;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Creates 1:1 aspect ratio */
    overflow: hidden;
    background: #f8f9fa;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.flash-product-card:hover .product-image {
    transform: scale(1.05);
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.favorite-btn:hover {
    background: white;
    transform: scale(1.1);
}

.favorite-btn i {
    color: #666;
    font-size: 1rem;
}

.product-info {
    padding: 8px !important;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.product-title {
    height: 25px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-link {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.product-link:hover {
    color: #e91e63;
}

.vendor-info {
    font-size: 0.85rem;
}

.vendor-label {
    color: #666;
}

.vendor-name {
    color: #17a2b8;
    font-weight: 500;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #345dc3;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.currency {
    font-size: 0.9rem;
    font-weight: 500;
}

.original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: #ff4444;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
}
.discount-badge-product-page {
    background: #ff4444;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    position: absolute;
    top: 5%;
    right:5%;
    z-index: 3;
}
.product-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.add-to-cart-flash, .add-to-cart-btn, .add-to-cart-destockage {
    background: #ff9800;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(25, 135, 84, 0.3);
}

.add-to-cart-flash:hover, .add-to-cart-btn:hover, .add-to-cart-destockage:hover {
    background: #146c43;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(25, 135, 84, 0.4);
}

.buy-now-flash, .buy-now-btn, .buy-now-destockage {
    background: #3574ba;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(53, 116, 186, 0.3);
    flex: 1;
    text-align: center;
}

.buy-now-flash:hover, .buy-now-btn:hover, .buy-now-destockage:hover {
    background: #2a5d96;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(53, 116, 186, 0.4);
}

/* Mobile responsive styles for product actions */
@media (max-width: 768px) {
    .product-actions {
        display: flex;
        gap: 6px;
        align-items: center;
        justify-content: space-between;
        margin-top: auto;
    }
    
    .add-to-cart-btn {
        background: #ff9800;
        color: white;
        border: none;
        width: 30px;
        height: 30px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 6px rgba(25, 135, 84, 0.3);
        font-size: 0.8rem;
    }
    
    .add-to-cart-btn:hover {
        background: #146c43;
        transform: scale(1.05);
        box-shadow: 0 4px 10px rgba(25, 135, 84, 0.4);
    }
    
    .buy-now-btn {
        background: #3574ba;
        color: white;
        border: none;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 0.7rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 6px rgba(53, 116, 186, 0.3);
        flex: 1;
        text-align: center;
    }
    
    .buy-now-btn:hover {
        background: #2a5d96;
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(53, 116, 186, 0.4);
    }
    
    /* Original price styles for related products */
    .original-price {
        font-size: 0.7rem;
        color: #999;
        text-decoration: line-through;
        margin-bottom: 2px;
    }
    
    /* Product badges for related products - matching products.php style */
    .product-badges {
        position: absolute;
        top: 8px;
        right: 8px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        z-index: 3;
    }
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #232b3be6;
    backdrop-filter: blur(3px);
    border-radius: 50px;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 8px 5px;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    body {
        padding-bottom: 90px;
    }
}

.nav-container {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    padding: 5px 15px;
    border-radius: 20px;
    min-width: 60px;
}

.nav-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-icon i {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    margin-top: 4px;
}

.nav-item.active .nav-icon i {
    color: #007bff;
    transform: scale(1.1);
    font-weight: 600;
}

/* WhatsApp button special styling */
.nav-item[data-page="whatsapp"] .nav-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.nav-item[data-page="whatsapp"] .nav-icon i {
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.nav-item[data-page="whatsapp"]:hover .nav-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.nav-item[data-page="whatsapp"].active .nav-icon {
    border: 3px solid #25D366;
    background: linear-gradient(135deg, #25D366, #128C7E);
    transform: scale(1.15);
}

.nav-item[data-page="whatsapp"].active .nav-icon i {
    color: white;
    transform: scale(1.2);
}

.nav-item.active .nav-label {
    color: #ffffff;
    font-weight: 600;
}

.nav-item.active .nav-icon {
    border: 2px solid #007bff;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.1);
    transform: scale(1.1);
    transition: all 0.3s ease;
}



.nav-item:hover:not(.active) .nav-icon i {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.nav-item:hover:not(.active) .nav-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Categories Popup Styles */
.categories-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.categories-popup.show {
    opacity: 1;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.popup-content {
    position: relative;
    background: #ffffff;
    border-radius: 22px;
    padding: 18px 18px 20px;
    width: 92%;
    max-width: 520px;
    max-height: 84vh;
    overflow-y: auto;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
    transform: translateY(10px);
    transition: transform 0.25s ease;
}

.categories-popup.show .popup-content {
    transform: translateY(0);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.popup-header h3 {
    margin: 0;
    color: #4c3f51;
    font-size: 22px;
    font-weight: 800;
}

.close-btn {
    background: none;
    border: none;
    font-size: 30px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #dc3545;
    transform: rotate(90deg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    max-width: 500px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.category-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.category-name {
    color: #3d3d3d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

@media (max-width: 480px) {
    .popup-content {
        padding: 20px;
        margin: 20px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-item {
        padding: 15px 10px;
    }
    
    .category-icon {
        font-size: 28px;
    }
    
    .category-name {
        font-size: 12px;
    }
}


.flash-footer {
    text-align: center;
}

.view-all-offers-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.view-all-offers-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .flash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .flash-countdown-main {
        align-self: stretch;
        justify-content: center;
    }
    
    .flash-main-title {
        font-size: 1.5rem;
    }
    
    .flash-product-card {
        width: 250px;
    }
    
    .flash-product-card.destockage-product-card {
        width: 250px !important;
        min-width: 250px !important;
        max-width: 250px !important;
    }
    
    .countdown-timer {
        padding: 8px 12px;
    }
    
    .time-value {
        font-size: 1.2rem;
    }
}

/* Flash Sales JavaScript Integration */
.flash-sales-section .countdown {
    font-weight: bold;
    color: #fff200;
}

/* Fix for webkit line-clamp compatibility */
.product-link {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Flash Sale Products Page Styles */
.flash-price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.flash-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e91e63;
}

.original-price {
    font-size: 0.7rem;
    color: #999;
    text-decoration: line-through;
}

.flash-event-info {
    margin-bottom: 10px;
}

/* Product Badges on Images */
.product-img {
    position: relative;
    overflow: hidden;
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.flash-badge-product {
    background: #e91e63;
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.discount-badge-product {
    background: #ff4444;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
}

.destockage-badge-product {
    background: #ff9800;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

/* Destockage Styles */
.destockage-section {
    background: linear-gradient(219deg, rgb(255 107 53 / 80%), rgb(247 147 30 / 80%));
    border-radius: 20px;
    padding: 20px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.3);
}

.destockage-product-card {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    flex-shrink: 0 !important;
}

.destockage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.destockage-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.destockage-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.destockage-main-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.destockage-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.destockage-products-container {
    margin-bottom: 20px;
}

.destockage-products-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.destockage-products-scroll::-webkit-scrollbar {
    display: none;
}

.destockage-footer {
    text-align: center;
}

.view-all-destockage-btn {
    background: rgb(255 255 255 / 20%);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-all-destockage-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* Regular Products Styles */
.regular-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.regular-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.regular-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.regular-main-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.regular-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Grid for index.php - 6 products per row */
.regular-products-grid.index-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    justify-items: center;
    place-self: center;
}

/* Grid for products.php - 5 products per row */
.regular-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    padding: 20px 0;
    margin-bottom: 20px;
}

/* Tablet - 4 products per row */
@media (max-width: 1024px) {
    .regular-products-grid,
    .regular-products-grid.index-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

/* Mobile - 2 products per row */
@media (max-width: 768px) {
    .regular-products-grid,
    .regular-products-grid.index-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px 0;
    }
    
    .flash-product-card {
        width: 180px;
    }
    
    .flash-product-card.destockage-product-card {
        width: 180px !important;
        min-width: 180px !important;
        max-width: 180px !important;
    }
}

.regular-footer {
    text-align: center;
}

.view-all-products-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-all-products-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.destockage-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 2;
}

.destockage-label {
    background: #ff9800;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.destockage-footer {
    text-align: center;
}

.view-all-destockage-btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.view-all-destockage-btn:hover {
    background: linear-gradient(45deg, #f57c00, #e65100);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.add-to-cart-destockage {
    background: #ff9800;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.add-to-cart-destockage:hover {
    background: #f57c00;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.buy-now-destockage {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    flex: 1;
    text-align: center;
}

.buy-now-destockage:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Mobile Categories Styles */
.categories-toggle {
    font-size: 1.2rem;
    padding: 12px;
    position: relative;
    text-align: right;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.categories-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

@media (max-width: 991px) {
    .categories-card {
        display: none;
    }

    .categories-card.show {
        display: block;
    }

    #mobileCategories {
        margin-bottom: 1rem;
    }

    .categories-toggle {
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
}
