:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --accent: #ffc107;
    --dark: #212529;
    --light: #f8f9fa;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background: #fff;
    padding-top: 0;
}

.navbar { box-shadow: 0 2px 15px rgba(0,0,0,0.1); }
.navbar-brand { font-size: 1.3rem; letter-spacing: -0.5px; }
.navbar .nav-link { font-weight: 500; padding: 0.5rem 1rem !important; }

.hero-carousel-section { position: relative; }
.hero-slide {
    height: 85vh;
    min-height: 500px;
    max-height: 700px;
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
}
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-slide h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-slide .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}
#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    opacity: 1;
}
#heroCarousel .carousel-indicators button.active {
    background: #fff;
    border-color: #fff;
}
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
    opacity: 1;
}
#heroCarousel .carousel-control-prev { left: 20px; }
#heroCarousel .carousel-control-next { right: 20px; }

.hero-search { max-width: 500px; }
.hero-search .form-control {
    height: 54px; border-radius: 30px 0 0 30px; border: none; padding: 0 25px;
    font-size: 1rem; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.hero-search .btn {
    border-radius: 0 30px 30px 0; padding: 0 30px; font-weight: 600;
}

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.section-header p { color: #6c757d; max-width: 600px; margin: 0 auto; }

.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 220px;
    cursor: pointer;
    transition: var(--transition);
}
.category-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.category-card .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.5rem; color: #fff;
}
.category-card .overlay h5 { font-weight: 700; margin-bottom: 0.3rem; }
.category-card .overlay p { font-size: 0.85rem; opacity: 0.8; margin: 0; }

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #eee;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13,110,253,0.1);
    border-color: var(--primary);
}
.product-card .product-image {
    height: 240px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.08);
}
.product-card .product-image i {
    font-size: 4rem;
    color: #adb5bd;
    transition: var(--transition);
}
.product-card:hover .product-image i {
    transform: scale(1.1);
    color: var(--primary);
}
.product-card .badge-float {
    position: absolute;
    top: 10px;
    left: 10px;
}
.product-card .product-body { padding: 1.2rem; }
.product-card .product-body .category-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 600;
}
.product-card .product-body h6 {
    font-weight: 700;
    margin: 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
}
.product-card .product-body .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}
.product-card .product-body .price old {
    font-size: 0.9rem;
    color: #adb5bd;
    text-decoration: line-through;
    font-weight: 400;
}
.product-card .product-body .rating { color: var(--accent); font-size: 0.85rem; }

.btn-add-cart {
    width: 100%;
    border-radius: 0 0 12px 12px;
    padding: 0.6rem;
    font-weight: 600;
}

.feature-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eee;
    transition: var(--transition);
    height: 100%;
}
.feature-box:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(13,110,253,0.08);
}
.feature-box i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.feature-box h6 { font-weight: 700; }
.feature-box p { color: #6c757d; font-size: 0.9rem; margin: 0; }

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #eee;
    transition: var(--transition);
    height: 100%;
}
.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(13,110,253,0.08);
}
.testimonial-card .rating { color: var(--accent); margin-bottom: 1rem; }
.testimonial-card p { font-style: italic; color: #6c757d; }
.testimonial-card h6 { font-weight: 700; margin-bottom: 0.2rem; }
.testimonial-card small { color: #adb5bd; }

.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, #6610f2 100%);
    padding: 4rem 0;
    color: #fff;
}

.breadcrumb-nav { background: #f8f9fa; padding: 0.8rem 0; }
.breadcrumb-nav .breadcrumb { margin: 0; font-size: 0.9rem; }

.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 3px;
    color: var(--dark);
    border: 1px solid #dee2e6;
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

.cart-table img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.cart-table .qty-input { width: 70px; text-align: center; }

.checkout-summary { background: #f8f9fa; border-radius: 12px; padding: 1.5rem; }

.auth-form {
    max-width: 450px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.about-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: #fff;
    padding: 80px 0;
}

.team-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: var(--transition);
}
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.team-card .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2.5rem;
    color: var(--primary);
}

.contact-info-card {
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}
.contact-info-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(13,110,253,0.08);
}
.contact-info-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: var(--dark);
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 0.8rem 1.2rem;
    border-radius: 0;
    transition: var(--transition);
}
.admin-sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.admin-sidebar .nav-link.active {
    color: #fff;
    background: var(--primary);
}
.admin-sidebar .nav-link i { width: 24px; }

.stat-card {
    border-radius: 12px;
    padding: 1.5rem;
    color: #fff;
    border: none;
}
.stat-card i { font-size: 2.5rem; opacity: 0.3; position: absolute; right: 1rem; top: 1rem; }
.stat-card h3 { font-weight: 700; margin-bottom: 0.2rem; }
.stat-card p { opacity: 0.8; margin: 0; }

.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    border-bottom: 1px solid #dee2e6;
}

.filter-sidebar .list-group-item {
    border: none;
    padding: 0.5rem 0;
    background: transparent;
}
.filter-sidebar .list-group-item a {
    color: #6c757d;
    text-decoration: none;
    transition: var(--transition);
}
.filter-sidebar .list-group-item a:hover,
.filter-sidebar .list-group-item a.active {
    color: var(--primary);
    font-weight: 600;
}

.product-detail-image {
    background: #f8f9fa;
    border-radius: 12px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.product-detail-image i { font-size: 8rem; color: #adb5bd; }

.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    max-height: 320px;
    overflow-y: auto;
}
.search-results .list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 0.6rem 1rem;
}
.search-results .list-group-item:last-child { border-bottom: none; }
.search-results .list-group-item:hover { background: #f8f9fa; }

@media (max-width: 768px) {
    .hero-section { padding: 60px 0; }
    .hero-section h1 { font-size: 2rem; }
    .hero-section .lead { font-size: 1rem; }
    .navbar-brand { font-size: 1.1rem; }
    .product-card .product-image { height: 180px; }
}
