/* Custom Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.container {
    flex: 1;
}

/* Navbar */
.navbar {
    background-color: #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
}

.nav-link:hover {
    color: #0d6efd !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    margin-top: -20px;
    margin-bottom: 60px;
}

.hero-image .phone-preview {
    animation: float 3s ease-in-out infinite;
}

.hero-image .phone-preview:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-image .phone-preview:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Titles */
.section-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #212529;
}

/* Brand Cards */
.brand-card {
    transition: all 0.3s ease;
    background: #fff;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #0d6efd !important;
}

/* Product Cards */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12) !important;
    border-color: #0d6efd;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-image {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-name {
    color: #212529;
    transition: color 0.3s ease;
}

.product-card:hover .product-name {
    color: #0d6efd;
}

.product-description {
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.5;
}

.product-name {
    font-size: 1rem;
    color: #212529;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    color: #0d6efd;
    font-weight: 700;
}

/* Promotional Banners */
.promo-banner {
    min-height: 200px;
    position: relative;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.promo-badge {
    opacity: 0.3;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    background: #fff;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #0d6efd !important;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: #212529 !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff !important;
}

/* General */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    font-weight: bold;
}

.btn {
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.table {
    border-radius: 5px;
    overflow: hidden;
}

.badge {
    padding: 0.5em 0.75em;
}

/* Alerts */
.alert {
    border-radius: 8px;
}

/* List Group */
.list-group-item-action.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

/* Card Improvements */
.card {
    border-radius: 8px;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
}

/* Badge */
.badge {
    font-weight: 500;
}

/* Product Detail Page */
.variant-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.variant-card.border-primary {
    background-color: #f0f7ff;
}

/* Banner Carousel */
.carousel-item img {
    filter: brightness(0.95);
    transition: filter 0.3s;
}

.carousel-item:hover img {
    filter: brightness(1);
}

.carousel-caption {
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Button Improvements */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
}

/* Card Hover Effects */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-5px);
}

/* Input Focus */
.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Badge Improvements */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}

/* Alert Improvements */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Table Improvements */
.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    transition: all 0.2s;
}

/* Category Cards */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    background: #fff;
    display: block;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    text-decoration: none;
}

.category-image-wrapper {
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover .category-image-wrapper {
    transform: scale(1.05);
}

.category-image-wrapper img {
    transition: transform 0.3s ease;
}

.category-card:hover .category-image-wrapper img {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-name {
        min-height: auto;
    }
    
    .brand-card, .service-card {
        margin-bottom: 15px;
    }
    
    .carousel-caption {
        font-size: 0.875rem;
        padding: 0.5rem !important;
    }
    
    .category-image-wrapper {
        height: 100px !important;
    }
}

