/* Home Page Specific Styles */

/* Hero Section */
.hero-section {
    position: relative;
    margin-top: 66px;
}

.hero-section .carousel-item {
    height: 60vh;
    min-height: 400px;
}

.hero-section .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 30px;
    bottom: 50px;
    right: 50px;
    left: 50px;
}

.hero-section .carousel-caption h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFD700;
}

.hero-section .carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Featured Products Section */
.featured-products {
    background: #f8f9fa;
}

.featured-products h2 {
    color: #8B4513;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.featured-products h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    border-radius: 2px;
}

/* Product Card Enhancements */
.product-card {
    position: relative;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-card .card-img-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-card .discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.product-card .wishlist-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.product-card .wishlist-btn:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

.product-card .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 250px);
}

.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card .card-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-card .price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.product-card .current-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #8B4513;
}

.product-card .original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}

.product-card .add-to-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-card .add-to-cart-btn:hover {
    background: linear-gradient(135deg, #A0522D, #8B4513);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

/* Categories Section */
.categories {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.categories h2 {
    color: #8B4513;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.categories h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    border-radius: 2px;
}

.category-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.category-card .category-image {
    height: 200px;
    overflow: hidden;
}

.category-card .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-card .category-info {
    padding: 20px;
    text-align: center;
}

.category-card .category-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.category-card .category-count {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section .carousel-item {
        height: 40vh;
        min-height: 250px;
    }
    
    .hero-section .carousel-caption {
        bottom: 20px;
        right: 20px;
        left: 20px;
        padding: 20px;
    }
    
    .hero-section .carousel-caption h3 {
        font-size: 1.8rem;
    }
    
    .hero-section .carousel-caption p {
        font-size: 1rem;
    }
    
    .product-card .card-img-container {
        height: 200px;
    }
    
    .product-card .card-body {
        height: calc(100% - 200px);
        padding: 15px;
    }
    
    .category-card .category-image {
        height: 150px;
    }
    
    .category-card .category-info {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .hero-section .carousel-caption h3 {
        font-size: 1.5rem;
    }
    
    .hero-section .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .product-card .current-price {
        font-size: 1.1rem;
    }
    
    .product-card .original-price {
        font-size: 0.9rem;
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
}

.skeleton-image {
    height: 250px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-content {
    padding: 20px;
}

.skeleton-line {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 10px;
    margin-bottom: 15px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}
