/* ==========================================
   E-COMMERCE STORE - MAIN STYLESHEET
   ========================================== */

/* Variables CSS */
:root {
   --primary-color: #4a9560;
    --secondary-color: #e95f3c;
    --accent-color: #b58a15;
    --success-color: #4a9560;
    --warning-color: #e95f3c;
    --light-bg: #f8e9c6;
    --dark-bg: #3d7a4f;
    --text-color: #2d4a35;
    --text-light: #5a7a63;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(74, 149, 96, 0.15);
    --shadow-hover: 0 8px 25px rgba(74, 149, 96, 0.25);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}
/* Logo image */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    height: 35px;
    width: auto;
}

.logo span {
    font-size: 24px;
    font-weight: bold;
}

/* Logo dans le sidebar admin */
.sidebar-header .logo-img {
    height: 35px;
    filter: brightness(0) invert(1); /* Rend le logo blanc pour sidebar sombre */
}

/* Responsive */
@media (max-width: 768px) {
    .header-main .logo .logo-img {
        height: 35px;
    }
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-top {
    background: var(--dark-bg);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: var(--white);
    margin-left: 20px;
    transition: var(--transition);
}

.header-top a:hover {
    color: var(--accent-color);
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    font-size: 35px;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 15px 60px 15px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-actions a,
.header-actions button {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--primary-color);
    background: none;
    transition: var(--transition);
    padding: 10px 15px;
    border-radius: var(--border-radius);
}

.header-actions a:hover,
.header-actions button:hover {
    background: var(--light-bg);
    color: var(--accent-color);
}

/* Mobile Search Button - Hidden on desktop */
.search-btn-mobile {
    display: none;
}

/* Mobile Menu Button - Hidden on desktop */
.mobile-menu-btn {
    display: none;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-color);
    color: var(--white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Navigation Menu */
.nav-menu {
    background: var(--primary-color);
}

.nav-menu .container {
    display: flex;
    justify-content: center;
}

.nav-menu ul {
    display: flex;
    gap: 5px;
}

.nav-menu a {
    display: block;
    padding: 15px 25px;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   CAROUSEL (HERO SECTION)
   ========================================== */
.carousel {
    margin-top: 150px;
    position: relative;
    overflow: hidden;
    height: 550px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.carousel-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 40px;
    color: var(--white);
}

.carousel-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.carousel-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.carousel-content .price {
    font-size: 36px;
    font-weight: bold;
    color: var(--success-color);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.carousel-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease 0.6s both;
}

.carousel-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 2;
}

.carousel-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.carousel-arrow:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

.carousel-arrow.prev {
    left: 30px;
}

.carousel-arrow.next {
    right: 30px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    font-size: 18px;
}

.section-header .view-all {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    transition: var(--transition);
}

.section-header .view-all:hover {
    background: var(--accent-color);
}

/* ==========================================
   CATEGORIES
   ========================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.category-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.category-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--accent-color);
    transition: var(--transition);
}

.category-card:hover .icon {
    background: var(--accent-color);
    color: var(--white);
}

.category-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.category-card span {
    color: var(--text-light);
    font-size: 14px;
}

/* ==========================================
   PRODUCTS GRID
   ========================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--light-bg);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
}

.badge-sale {
    background: var(--secondary-color);
}

.badge-new {
    background: var(--success-color);
}

.badge-hot {
    background: var(--warning-color);
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-actions button {
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-actions button:hover {
    background: var(--accent-color);
    color: var(--white);
}

.product-info {
    padding: 25px;
}

.product-category {
    color: var(--accent-color);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.product-rating .stars {
    color: #ffc107;
    font-size: 14px;
}

.product-rating span {
    color: var(--text-light);
    font-size: 14px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
}

.original-price {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    transition: var(--transition);
    margin-top: 20px;
}

.product-btn:hover {
    background: var(--accent-color);
}

/* ==========================================
   PROMO BANNERS
   ========================================== */
.promo-banners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.promo-banner {
    position: relative;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
}

.promo-banner-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

.promo-banner-content h3 {
    font-size: 32px;
    margin-bottom: 15px;
}

.promo-banner-content p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.promo-banner-content .btn {
    display: inline-block;
    padding: 12px 35px;
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    width: fit-content;
}

.promo-banner-content .btn:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features {
    background: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--white);
}

.feature-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* ==========================================
   NEWSLETTER
   ========================================== */
.newsletter {
    background: var(--dark-bg);
    color: var(--white);
    padding: 80px 0;
}

.newsletter .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.newsletter-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.newsletter-content p {
    font-size: 18px;
    opacity: 0.8;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
}

.newsletter-form button {
    padding: 18px 40px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--accent-color);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about .logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-about p {
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

.footer-links ul {
    margin-top: 15px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--accent-color);
}

.footer-contact ul {
    margin-top: 15px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-contact i {
    color: var(--accent-color);
    font-size: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.8;
}

/* ==========================================
   CART MODAL
   ========================================== */
.cart-modal {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-modal.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.cart-header h3 {
    font-size: 22px;
    color: var(--primary-color);
}

.cart-close {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-color);
    transition: var(--transition);
}

.cart-close:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--secondary-color);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.cart-item-quantity button {
    width: 30px;
    height: 30px;
    background: var(--light-bg);
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
}

.cart-item-quantity button:hover {
    background: var(--accent-color);
    color: var(--white);
}

.cart-item-remove {
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: var(--secondary-color);
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid #e0e0e0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 20px;
}

.cart-total span:last-child {
    font-weight: bold;
    color: var(--secondary-color);
}

.cart-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--accent-color);
}

/* ==========================================
   NOTIFICATION
   ========================================== */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: var(--success-color);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    z-index: 3000;
    transform: translateX(400px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: var(--secondary-color);
}

.notification-info {
    background: #3498db;
}

.notification-success {
    background: var(--success-color);
}

.notification i {
    font-size: 24px;
}

/* ==========================================
   ADMIN PANEL STYLES
   ========================================== */
.admin-wrapper {
    display: flex;
    margin-top: 150px;
    min-height: calc(100vh - 150px);
}

.admin-sidebar {
    width: 280px;
    background: var(--dark-bg);
    color: var(--white);
    padding: 30px 0;
    position: fixed;
    top: 150px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

.admin-sidebar .logo {
    padding: 0 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.admin-sidebar .logo span {
    color: var(--white);
}

.admin-menu {
    padding: 0 15px;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.admin-menu-item:hover,
.admin-menu-item.active {
    background: var(--accent-color);
    color: var(--white);
}

.admin-menu-item i {
    font-size: 20px;
    width: 25px;
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.admin-header h1 {
    font-size: 32px;
    color: var(--primary-color);
}

.admin-header .btn {
    padding: 12px 25px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.admin-header .btn:hover {
    background: var(--primary-color);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.stat-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 15px;
}

.stat-card .icon.blue {
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent-color);
}

.stat-card .icon.green {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.stat-card .icon.red {
    background: rgba(231, 76, 60, 0.1);
    color: var(--secondary-color);
}

.stat-card .icon.orange {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.stat-card h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--text-light);
}

.admin-table {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.admin-table-header h3 {
    font-size: 20px;
    color: var(--primary-color);
}

.admin-table-header .search-input {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    width: 300px;
    font-size: 14px;
}

.admin-table-header .search-input:focus {
    border-color: var(--accent-color);
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 20px 25px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.admin-table th {
    background: var(--light-bg);
    font-weight: 600;
    color: var(--primary-color);
}

.admin-table td {
    color: var(--text-color);
}

.admin-table .product-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-table .product-cell img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.admin-table .status {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status.active {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.status.pending {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.status.inactive {
    background: rgba(231, 76, 60, 0.1);
    color: var(--secondary-color);
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.admin-actions button {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.admin-actions .edit {
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent-color);
}

.admin-actions .edit:hover {
    background: var(--accent-color);
    color: var(--white);
}

.admin-actions .delete {
    background: rgba(231, 76, 60, 0.1);
    color: var(--secondary-color);
}

.admin-actions .delete:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* ==========================================
   MODAL STYLES
   ========================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    font-size: 24px;
    color: var(--primary-color);
}

.modal-close {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.form-actions .btn {
    padding: 15px 35px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary {
    background: var(--light-bg);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-color);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .header-main .container {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        max-width: 100%;
        margin: 20px 0 0;
        flex: 0 0 100%;
    }
    
    .nav-menu {
        display: none;
    }
    
    .carousel {
        height: 450px;
    }
    
    .carousel-content h2 {
        font-size: 36px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .newsletter .container {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        max-width: 100%;
    }
    
    .admin-sidebar {
        width: 80px;
    }
    
    .admin-sidebar .logo span,
    .admin-menu-item span {
        display: none;
    }
    
    .admin-main {
        margin-left: 80px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .carousel {
        margin-top: 80px;
        height: 400px;
    }
    
    .carousel-content h2 {
        font-size: 28px;
    }
    
    .carousel-content p {
        font-size: 16px;
    }
    
    .carousel-arrow {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .carousel-arrow.prev {
        left: 15px;
    }
    
    .carousel-arrow.next {
        right: 15px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .promo-banners {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-modal {
        width: 100%;
        right: -100%;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        text-align: center;
    }
    
    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .header-main {
        padding: 10px 0;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .header-actions a span,
    .header-actions button span {
        display: none;
    }
    
    .carousel {
        height: 350px;
    }
    
    .carousel-content {
        padding: 25px;
    }
    
    .carousel-content h2 {
        font-size: 24px;
    }
    
    .carousel-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-card {
        padding: 20px 15px;
    }
    
    .category-card .icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 250px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .admin-main {
        padding: 20px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .admin-table {
        overflow-x: auto;
    }
    
    .admin-table table {
        min-width: 800px;
    }
}

/* Quick View Modal Styles */
#quickViewModal .modal-content,
#favoritesModal .modal-content {
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#quickViewModal .modal-body {
    padding: 30px;
}

#quickViewContent img {
    transition: transform 0.3s ease;
}

#quickViewContent img:hover {
    transform: scale(1.02);
}

#quickViewContent .product-category {
    font-weight: 600;
}

#quickViewContent .stars {
    color: #ffc107;
}

#quickViewContent .btn {
    transition: all 0.3s ease;
}

#quickViewContent .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Favorites Modal Styles */
#favoritesModal .modal-body {
    padding: 25px;
    max-height: 500px;
    overflow-y: auto;
}

#favoritesModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#favoritesModal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#favoritesModal .modal-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

#favoritesContent img {
    transition: transform 0.3s ease;
}

#favoritesContent img:hover {
    transform: scale(1.05);
}

#favoritesContent .btn {
    transition: all 0.3s ease;
}

#favoritesContent .btn:hover {
    transform: scale(1.05);
}

/* Responsive for Quick View */
@media (max-width: 768px) {
    #quickViewContent > div {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    #quickViewContent img {
        max-width: 100% !important;
    }
    
    #quickViewContent .btn {
        min-width: 100% !important;
    }
}