/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Hero Section with Video */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 650px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.hero-video {
    width: 100%;
    height: 650px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-content p.lead {
    font-size: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1.2s ease;
}

.hero-content .btn {
    animation: fadeInUp 1.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#muteToggle {
    margin-top: 1rem;
    animation: fadeInUp 1.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Home Image Section */
.home-image-section {
    width: 100%;
    overflow: hidden;
    max-height: 500px;
}

.home-image-section img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Why Choose Section */
.why-choose-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h4 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Smooth Animations */
* {
    transition: var(--transition);
}

/* Product Card Enhancements */
.product-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.product-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    height: 280px;
}

.product-card .card-img-wrapper > a {
    display: block;
    height: 100%;
    width: 100%;
    cursor: pointer;
}

.product-card img {
    transition: transform 0.5s ease;
    height: 100%;
    width: 100%;
    object-fit: contain;
    padding: 20px;
}

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

/* Product Badge */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--danger-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.product-badge.sale {
    background: var(--danger-color);
}

.product-badge.new {
    background: var(--success-color);
}

.product-badge.low-stock {
    background: var(--warning-color);
    color: var(--dark-color);
}

/* Product Title */
.product-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.product-title:hover {
    color: var(--primary-color);
}

/* Product Category */
.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Product Price */
.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-original {
    font-size: 1rem;
    color: var(--secondary-color);
    text-decoration: line-through;
}

.price-discount {
    background: var(--danger-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.product-rating .stars {
    color: #ffc107;
}

.product-rating .rating-count {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Stock Status */
.stock-status {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stock-status.in-stock {
    color: var(--success-color);
}

.stock-status.low-stock {
    color: var(--warning-color);
}

.stock-status.out-of-stock {
    color: var(--danger-color);
}

/* Button Enhancements */
.btn-add-to-cart {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-add-to-cart:active {
    transform: translateY(0);
}

.btn-view-details {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    background: var(--dark-color);
    color: white;
    border-color: var(--dark-color);
}

/* Quick View Icon */
.quick-view-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateY(0);
}

.quick-view-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title p {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Category Card */
.category-card {
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Filter Sidebar */
.filter-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-section h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
}

.page-link {
    border-radius: 8px;
    margin: 0 4px;
    border: none;
    color: var(--dark-color);
    font-weight: 500;
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .product-card .card-img-wrapper {
        height: 220px;
    }

    .price-current {
        font-size: 1.25rem;
    }
}

/* Card Footer */
.card-footer {
    background: white;
    border-top: 1px solid #f0f0f0 !important;
    padding: 1rem;
}

/* Wishlist Button */
.btn-wishlist {
    position: absolute;
    top: 15px;
    right: 60px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2;
    color: var(--danger-color);
}

.product-card:hover .btn-wishlist {
    opacity: 1;
    transform: translateY(0);
}

.btn-wishlist:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.1);
}

.btn-wishlist.active {
    background: var(--danger-color);
    color: white;
}

/* Navbar Enhancements */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Cart Badge */
#cart-count {
    position: relative;
    top: -2px;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
}
