/* CSS Reset and Base Styles */
.hero-video-container {
    /* primary source of hero area height so slider and video match */
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    height: 240px; /* desktop default */
}

/* Make the slider fill the hero-video-container */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100px; /* final fallback */
    overflow: hidden;
}



@media (max-width: 480px) {
    
    .slide-content h2 { font-size: 0.95rem; }
    .slide-content p { display: none; }
}


.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #007bff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    position: relative;
}

.search-box form {
    display: flex;
}

.search-box input {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px 0 0 25px;
    outline: none;
    width: 250px;
}

.search-box button {
    padding: 0.5rem 1rem;
    background: #007bff;
    color: white;
    border: 2px solid #007bff;
    border-left: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-actions a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.user-actions a:hover {
    background: #007bff;
    color: white;
}

.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    min-width: 18px;
    text-align: center;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1600px; /* visual target width for hero images */
    margin: 0 auto;    /* center within page container */
    height: 300px;     /* desktop target height reduced to 400px */
    min-height: 220px; /* safe minimum for small viewports */
    overflow: hidden;
}

/* Responsive adjustments for hero slider heights (reduced) */
@media (max-width: 1400px) {
    .hero-slider { height: 360px; }
}

@media (max-width: 1200px) {
    /* Keep the slider visually balanced inside the page container */
    .hero-slider { height: 300px; }
}

@media (max-width: 992px) {
    .hero-slider { height: 240px; }
    .slide-content h2 { font-size: 1.8rem; }
    .slide-content p { font-size: 1rem; }
    .cta-button { padding: 1rem 2rem; font-size: 1rem; }
}

@media (max-width: 768px) {
    .hero-slider { height: 180px; }
    .slide-content { padding: 1rem; }
    .slide-content h2 { font-size: 1.4rem; }
    .slide-content p { font-size: 0.95rem; }
    .cta-button { padding: 0.9rem 1.8rem; font-size: 0.95rem; }
}

@media (max-width: 480px) {
    .hero-slider { height: 140px; }
    .slide-content h2 { font-size: 1.1rem; }
    .slide-content p { display: none; }
    .cta-button { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Layout: hero slider + optional video sidebar */
.hero-video-container {
    display: flex;
    align-items: stretch; /* ensure children stretch to same height */
    gap: 1.5rem;
}

.hero-slider-wrapper {
    flex: 1 1 auto; /* main slider grows */
}

.video-sidebar {
    width: 360px; /* default sidebar width on desktop */
    flex: 0 0 360px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-sidebar .auto-video-player {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

@media (max-width: 992px) {
    .video-sidebar { width: 240px; flex: 0 0 240px; }
}

/* Mega Offer Modal Styles (moved from offers.php) */
.mega-offer-modal{
    position:fixed!important;top:0!important;left:0!important;width:100%!important;height:100%!important;background:transparent!important;display:none;align-items:center!important;justify-content:center!important;z-index:10001!important;opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease}
.mega-offer-modal.active{opacity:1!important;visibility:visible!important;display:flex!important}
.mega-offer-content{background:transparent!important;background-image:url('assets/images/products/055.png')!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;border-radius:0!important;width:90%!important;max-width:600px!important;min-height:400px!important;position:relative!important;transform:scale(.8)!important;transition:transform .3s ease!important;overflow:hidden!important;box-shadow:none!important;margin:0!important}
.mega-offer-modal.active .mega-offer-content{transform:scale(1)!important}
.mega-offer-close{position:absolute;top:20px;right:25px;background:linear-gradient(135deg,#ff6b6b,#ee5a24);color:#fff;border:none;width:40px;height:40px;border-radius:50%;font-size:22px;font-weight:700;cursor:pointer;z-index:10002;display:flex;align-items:center;justify-content:center;transition:all .3s ease;box-shadow:0 4px 15px rgba(255,107,107,.4);border:2px solid rgba(255,255,255,.2)}
.mega-offer-close:hover{background:linear-gradient(135deg,#ff5252,#d84315);transform:scale(1.1) rotate(90deg);box-shadow:0 6px 20px rgba(255,82,82,.6)}
.mega-offer-header{background:transparent!important;color:#fff!important;padding:10px 15px!important;text-align:center!important;position:relative!important;overflow:hidden!important}
.mega-offer-body{padding:25px 20px!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:15px!important;background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(248,249,250,.9))!important}
.mega-offer-btn{display:inline-flex!important;align-items:center!important;gap:8px!important;background:rgba(255,255,255,.2);color:#fff!important;padding:12px 20px!important;border-radius:25px!important;text-decoration:none!important;font-weight:600!important;font-size:.9rem!important;transition:all .3s ease!important;box-shadow:0 8px 25px rgba(0,0,0,.2);border:2px solid rgba(255,255,255,.3);backdrop-filter:blur(10px)}
.mega-offer-btn:hover{background:rgba(255,255,255,.3);transform:translateY(-3px)!important;box-shadow:0 12px 35px rgba(0,0,0,.3)}
.mega-offer-text{color:#fff!important;max-width:400px}
.mega-offer-text h3{font-size:2rem;color:#fff;margin-bottom:15px;font-weight:700;text-shadow:2px 2px 4px rgba(0,0,0,.3)}
.mega-offer-text p{font-size:1.1rem;color:rgba(255,255,255,.9);line-height:1.6;margin-bottom:25px;text-shadow:1px 1px 2px rgba(0,0,0,.3)}
@media (max-width:768px){.mega-offer-content{max-width:90%;min-height:300px}.mega-offer-text h3{font-size:1.5rem}}

@media (max-width: 768px) {
    /* Keep side by side on mobile */
    .hero-video-container { flex-direction: row; gap: 1rem; }
    .hero-slider-wrapper { flex: 1 1 auto; }
    .video-sidebar { width: 200px; flex: 0 0 200px; height: 100%; }
    .video-sidebar .auto-video-player { height: 100%; }
}

@media (max-width: 480px) {
    /* Stack vertically on very small screens */
    .hero-video-container { flex-direction: column; gap: 1rem; }
    .video-sidebar { width: 100%; flex: 0 0 auto; height: auto; }
    .video-sidebar .auto-video-player { height: 320px; }
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    color: white;
    text-align: center;
}

.bg-fallback {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover; /* fallback if <img> isn't visible */
}

.slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 800px;
    padding: 2rem;
    animation: slideUp 1s ease-out;
}

/* Background image fallback inside slide element */
.slide .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: block; /* ensure image renders as a block-level replaced element */
}

.slide .slide-content {
    position: relative;
    z-index: 1;
}
/* Ensure slide has a visible background even if no background-image is set */
.slide {
    background-color: rgba(0,0,0,0.15);
}

/* Avoid hiding images globally by alt attribute - keep images visible */
.slide img[alt=""] { display: inline-block; }
@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 25px rgba(255,255,255,0.5), 0 0 50px rgba(255,215,0,0.3);
    letter-spacing: 1px;
    line-height: 1.2;
    -webkit-text-stroke: 1px rgba(0,0,0,0.1);
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #f8f9fa;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7), 0 0 10px rgba(255,255,255,0.2);
    font-weight: 400;
    line-height: 1.4;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #ff4757 100%);
    color: #ffffff;
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255,107,107,0.4), 0 0 30px rgba(255,71,87,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255,107,107,0.6), 0 0 40px rgba(255,71,87,0.4);
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 50%, #ff6b6b 100%);
    border-color: rgba(255,255,255,0.4);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    z-index: 10;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.indicator.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.3);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

/* Admin Dashboard Slider */
.admin-hero-slider {
    height: 200px;
    margin: 1rem 0;
}

.admin-hero-slider .slide-content h2 {
    font-size: 1.8rem;
}

.admin-hero-slider .slide-content p {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .admin-hero-slider {
        height: 150px;
    }
    
    .admin-hero-slider .slide-content h2 {
        font-size: 1.4rem;
    }
    
    .admin-hero-slider .slide-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .admin-hero-slider {
        height: 120px;
    }
    
    .admin-hero-slider .slide-content h2 {
        font-size: 1.2rem;
    }
    
    .admin-hero-slider .slide-content p {
        font-size: 0.8rem;
    }
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
}

.categories-section,
.products-section {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .categories-section,
    .products-section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .categories-section,
    .products-section {
        padding: 2rem 0;
    }
}

.categories-section {
    background: white;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Enhanced Category Cards */
.enhanced-category-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    overflow: hidden;
    position: relative;
}

.enhanced-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3, #007bff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.enhanced-category-card:hover::before {
    opacity: 1;
}

.enhanced-category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,123,255,0.2);
    border-color: #007bff;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
}

@media (max-width: 768px) {
    .category-link {
        padding: 2rem 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .category-icon-wrapper {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 70px;
        height: 70px;
    }
    
    .category-icon-wrapper i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .category-link {
        padding: 1.5rem 1rem;
    }
    
    .category-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 0.8rem;
    }
    
    .category-icon-wrapper i {
        font-size: 1.8rem;
    }
}

.category-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    box-shadow: 0 8px 25px rgba(0,123,255,0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.enhanced-category-card:hover .category-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0,123,255,0.4);
}

.category-icon-wrapper i {
    font-size: 2.2rem;
    color: white;
}

.category-content {
    flex: 1;
    text-align: left;
}

.category-title {
    margin: 0 0 0.8rem 0;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.enhanced-category-card:hover .category-title {
    color: #007bff;
}

.category-description {
    color: #666;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.category-arrow {
    margin-left: 1rem;
    font-size: 1.2rem;
    color: #007bff;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.enhanced-category-card:hover .category-arrow {
    transform: translateX(8px);
    color: #0056b3;
}

/* Legacy category card support */
.category-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card a {
    text-decoration: none;
    color: inherit;
}

.category-image {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.category-card h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.category-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .product-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        border-radius: 8px;
    }
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image:hover img {
    transform: scale(1.1);
}

.favorite-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.favorite-btn.active {
    color: #dc3545;
    background: rgba(255, 255, 255, 1);
}

.view-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 8px 12px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 5;
}

.product-image:hover .view-btn {
    opacity: 1;
    transform: translateY(0);
}

.view-btn:hover {
    background: rgba(0, 123, 255, 1);
    transform: scale(1.05);
}

/* Product Detail Modal */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.product-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { 
        opacity: 0; 
        transform: scale(0.9);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 400px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modal-image:hover img {
    transform: scale(1.05);
}

.modal-details h2 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 2rem;
}

.modal-category {
    color: #007bff;
    font-weight: 500;
    margin-bottom: 1rem;
}

.modal-price {
    margin-bottom: 1.5rem;
}

.modal-price .original-price {
    font-size: 1.2rem;
}

.modal-price .discount-price,
.modal-price .price {
    font-size: 1.8rem;
    color: #007bff;
    font-weight: bold;
}

.modal-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-actions .quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.modal-actions .quantity-selector input {
    width: 60px;
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    text-align: center;
}

.modal-favorite-btn {
    background: none;
    border: 2px solid #dc3545;
    color: #dc3545;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-favorite-btn:hover,
.modal-favorite-btn.active {
    background: #dc3545;
    color: white;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .modal-image {
        height: 250px;
    }
    
    .modal-details h2 {
        font-size: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

/* ========================================
   ADMIN PANEL STYLES
   ======================================== */

/* Admin Navigation */
.admin-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 2rem;
}

.admin-nav .nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.admin-nav .nav-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-nav .nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.admin-nav .nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.admin-nav .nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.admin-nav .nav-group {
    position: relative;
}

.admin-nav .nav-group-title {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.admin-nav .nav-group-title:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-nav .nav-group-items {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;
}

.admin-nav .nav-group:hover .nav-group-items {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-nav .nav-group-items li {
    margin: 0;
}

.admin-nav .nav-group-items a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.admin-nav .nav-group-items a:hover {
    background: #f8f9fa;
    color: #667eea;
    padding-left: 2rem;
}

.admin-nav .nav-group-items a.active {
    background: #667eea;
    color: white;
}

.admin-nav .nav-group-items a i {
    width: 16px;
    text-align: center;
}

/* Admin Content - Similar to index.php sections */
.admin-content {
    padding: 4rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-content h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

.admin-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Enhanced Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.stat-card .icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: block;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card .label {
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Admin Hero Slider */
.admin-hero-slider {
    margin: 3rem 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background: #f8f9fa;
}

.admin-hero-slider .slider-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.admin-hero-slider .slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.admin-hero-slider .slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.admin-hero-slider .slide.active {
    opacity: 1;
}

.admin-hero-slider .slide-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 2rem;
    z-index: 2;
}

.admin-hero-slider .slide-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.admin-hero-slider .slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.admin-hero-slider .cta-button {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: inline-block;
}

.admin-hero-slider .cta-button:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.admin-hero-slider .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
}

.admin-hero-slider .nav-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-hero-slider .nav-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.admin-hero-slider .slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.admin-hero-slider .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-hero-slider .indicator.active {
    background: white;
    transform: scale(1.3);
}

/* Admin Sections - Similar to index.php sections */
.admin-section {
    padding: 4rem 0;
    background: white;
    margin-bottom: 2rem;
}

.admin-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 700;
    position: relative;
}

.admin-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Admin Dashboard Grid */
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.admin-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f3f4;
    color: #555;
}

.admin-table tbody tr:hover {
    background: #f8f9fa;
    transition: background 0.3s ease;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.status-processing {
    background: linear-gradient(135deg, #cce5ff, #b3d9ff);
    color: #004085;
}

.status-shipped {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.status-delivered {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

.status-cancelled {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

/* Stock Badges */
.stock-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.stock-low {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.stock-critical {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.action-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    transition: left 0.5s ease;
}

.action-card:hover::before {
    left: 0;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-color: #667eea;
}

.action-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
    display: block;
    transition: all 0.3s ease;
}

.action-card:hover i {
    transform: scale(1.1);
    color: #764ba2;
}

.action-card span {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    transition: color 0.3s ease;
}

.action-card:hover span {
    color: #667eea;
}

/* Enhanced Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.btn-danger:hover {
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.btn-success:hover {
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

/* Out of Stock Button Styles */
.add-to-cart-btn.out-of-stock {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.add-to-cart-btn.out-of-stock:hover {
    transform: none !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
}

/* Out of Stock Overlay */
.out-of-stock-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    border-radius: 10px !important;
}

.out-of-stock-overlay span {
    background: #dc3545 !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3) !important;
}

/* Mobile Responsive for Admin */
@media (max-width: 1024px) {
    .admin-nav .nav-toggle {
        display: flex;
    }

    .admin-nav .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        overflow-y: auto;
        padding: 2rem 0;
    }

    .admin-nav .nav-menu.active {
        right: 0;
    }

    .admin-nav .nav-group {
        border-bottom: 1px solid #f1f3f4;
    }

    .admin-nav .nav-group-title {
        color: #333;
        font-size: 1rem;
        padding: 1rem 1.5rem;
        background: #f8f9fa;
        margin: 0;
    }

    .admin-nav .nav-group-items {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: white;
        padding: 0;
        min-width: auto;
    }

    .admin-nav .nav-group-items a {
        padding: 0.75rem 2rem;
        border-left: 3px solid transparent;
    }

    .admin-nav .nav-group-items a:hover {
        background: #f8f9fa;
        border-left-color: #667eea;
        padding-left: 2rem;
    }

    .admin-nav .nav-group-items a.active {
        border-left-color: #667eea;
        background: #f8f9fa;
        color: #667eea;
    }
}

@media (max-width: 768px) {
    .admin-content h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-card .icon {
        font-size: 3rem;
    }

    .stat-card .number {
        font-size: 2rem;
    }

    .admin-hero-slider .slider-container {
        height: 300px;
    }

    .admin-hero-slider .slide-content h2 {
        font-size: 2rem;
    }

    .admin-hero-slider .slide-content p {
        font-size: 1rem;
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .action-card {
        padding: 1.5rem 1rem;
    }

    .admin-table {
        font-size: 0.9rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #e74c3c, #f39c12, #27ae60);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ecf0f1;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #3498db;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #3498db;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #3498db;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
    max-width: 300px;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.newsletter-form button {
    padding: 0.5rem 1rem;
    background: #3498db;
    color: white;
    border: 1px solid #3498db;
    border-left: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #2980b9;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #95a5a6;
    margin: 0;
    font-size: 0.9rem;
}