/* Import base styles and extend them */
@import url('style_kbi.css'); /* Your existing CSS file */


/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a4f, #2a2a8a);
    color: #fff;
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Search Container */
.search-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.search-input {
    padding: 0.8rem 1.5rem;
    border: 2px solid #fff;
    border-radius: 25px 0 0 25px;
    font-size: 1rem;
    width: 300px;
    outline: none;
    background: #fff;
    color: #333;
}

.search-input:focus {
    border-color: #1a1a4f;
    box-shadow: 0 0 0 3px rgba(26, 26, 79, 0.2);
}

.search-btn {
    background-color: #fff;
    color: #1a1a4f;
    border: 2px solid #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-btn:hover {
    background-color: #1a1a4f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Filter Section */
.filter-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.filter-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1a1a4f;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #1a1a4f;
    background: white;
    color: #1a1a4f;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover {
    background: #1a1a4f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.filter-btn.active {
    background: #666;
    color: white;
    border-color: #666;
}

/* Products Section */
.products-section {
    padding: 4rem 0;
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    border-color: #1a1a4f;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 79, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: #fff;
    color: #1a1a4f;
    border: 2px solid #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-view-btn:hover {
    background: #1a1a4f;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a4f;
}

.product-category {
    color: #666;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-features {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: #f8f9fa;
    color: #1a1a4f;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid #e9ecef;
}

.product-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a1a4f;
}

.add-to-cart-btn {
    background: #1a1a4f;
    color: white;
    border: 2px solid #1a1a4f;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-to-cart-btn:hover {
    background: #fff;
    color: #1a1a4f;
    border: 2px solid #1a1a4f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.product-details {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    margin-top: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card.expanded .product-details {
    max-height: 200px;
    padding-top: 1.5rem;
}

.product-details h4 {
    color: #1a1a4f;
    margin-bottom: 0.5rem;
}

.product-details ul {
    list-style: none;
    padding: 0;
}

.product-details li {
    padding: 0.3rem 0;
    color: #666;
    position: relative;
    padding-left: 1rem;
}

.product-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1a1a4f;
    font-weight: bold;
}

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

/* Hidden class for filtering */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .search-input {
        width: 250px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-pricing {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .search-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input {
        border-radius: 25px;
        width: 100%;
    }
    
    .search-btn {
        border-radius: 25px;
        width: 100%;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        text-align: center;
    }
}