/* =========================================
   HOME PAGE STYLES (index.css)
   ========================================= */

/* --- HERO SLIDER --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    background: #000;
}

.slides {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    color: var(--white);
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.3s;
}

.slide-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.5s;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.slide-content .btn {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.7s;
}

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

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active, .dot:hover {
    background: var(--primary);
    transform: scale(1.2);
}

/* --- BUTTONS --- */
.btn { 
    padding: 12px 35px; 
    background: var(--primary); 
    color: var(--white); 
    font-weight: 600; 
    border-radius: 30px; 
    transition: 0.3s; 
    border: 2px solid var(--primary); 
    display: inline-block;
    text-decoration: none;
}

.btn:hover { 
    background: transparent; 
    color: var(--primary); 
}

.slide-content .btn:hover {
    color: var(--white);
    background: rgba(255,255,255,0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* --- FEATURED PRODUCTS (Matches Shop.php) --- */
.featured-products {
    padding: 80px 5%;
    background-color: #f8f9fa;
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #2C3E50;
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    font-size: 1rem;
}

/* Duplicating shop.css card styling to ensure it works on home page independently */
.shop-card { 
    background: #fff; 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid #eee; 
    transition: 0.3s; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    cursor: pointer; 
    text-decoration: none; 
}
.shop-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.08); border-color: #dcedc1; }

.card-img-wrap { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; position: relative; background: #fff; display: flex; justify-content: center; align-items: center; }
.card-img-wrap img { width: 85%; height: 85%; object-fit: contain; transition: transform 0.5s; }
.shop-card:hover .card-img-wrap img { transform: scale(1.08); }

.card-info { padding: 18px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-title { font-size: 15px; color: #2C3E50; margin-bottom: 8px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 42px; }
.card-price { font-size: 18px; color: var(--primary); font-weight: 700; margin-bottom: 15px; }

.btn-add-cart { width: 100%; background: #fff; color: var(--primary); border: 1px solid var(--primary); padding: 10px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 8px; }
.shop-card:hover .btn-add-cart, .btn-add-cart:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-add-cart:active { transform: scale(0.97); }

/* --- ABOUT PREVIEW --- */
.about-preview { 
    padding: 80px 10%; 
    text-align: center; 
    background: #fff; 
}

.about-preview h2 { 
    font-size: 2.5rem; 
    margin-bottom: 20px; 
    color: #2C3E50; 
    font-family: 'Playfair Display', serif;
}

.about-preview p { 
    max-width: 800px; 
    margin: 0 auto 30px; 
    color: #555; 
    line-height: 1.8; 
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-slider { height: 60vh; }
    .slide-content h1 { font-size: 2.2rem; }
    .slide-content p { font-size: 1rem; margin-bottom: 20px; }
    .slide-content .btn { padding: 10px 25px; font-size: 0.9rem; }
    
    .featured-products { padding: 50px 10px; }
    .section-title h2 { font-size: 2rem; }
    
    /* Responsive Grid like Shop page */
    #homeShopGrid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .shop-card { border-radius: 8px; }
    .card-info { padding: 10px; }
    .card-title { font-size: 12px; line-height: 1.3; height: 32px; margin-bottom: 5px; }
    .card-price { font-size: 15px; margin-bottom: 10px; }
    .btn-add-cart { padding: 8px 5px; font-size: 12px; gap: 5px; border-radius: 6px; }
    .btn-add-cart i { font-size: 11px; }

    .about-preview { padding: 50px 5%; }
    .about-preview h2 { font-size: 2rem; }
}
