/* ===== রিসেট ও বেস ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f9f9f9;
    color: #2d2d2d;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== টপ স্ক্রল বার ===== */
.top-scroll-bar {
    background: #2e7d32;
    color: #ffffff;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 999;
}

.scroll-text {
    display: inline-block;
    animation: scroll-left 25s linear infinite;
    padding-left: 100%;
}

@keyframes scroll-left {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* ===== হেডার ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: #2d2d2d;
}
.logo i {
    color: #2e7d32;
    margin-right: 6px;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}
nav a {
    color: #2d2d2d;
    font-weight: 500;
    transition: 0.3s;
}
nav a:hover {
    color: #2e7d32;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 12px;
}
.auth-links .btn-login {
    background: #2e7d32;
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    transition: 0.3s;
}
.auth-links .btn-login:hover {
    background: #1b5e20;
}

/* ===== হিরো সেকশন (ভিডিও) ===== */
.hero {
    position: relative;
    height: 75vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.hero-text {
    text-align: center;
    color: #fff;
    background: rgba(0,0,0,0.45);
    padding: 40px 60px;
    border-radius: 20px;
    animation: fadeInUp 1s ease;
}
.hero-text h1 {
    font-size: 48px;
    margin-bottom: 12px;
}
.hero-text p {
    font-size: 18px;
    opacity: 0.9;
}
.btn {
    display: inline-block;
    margin-top: 22px;
    padding: 14px 40px;
    background: #2e7d32;
    color: #fff;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}
.btn:hover {
    background: #1b5e20;
    transform: scale(1.04);
}

/* ===== ফ্ল্যাশ সেল ===== */
.flash-sale {
    padding: 60px 20px;
    text-align: center;
}
.flash-sale h2 {
    font-size: 28px;
    color: #2e7d32;
    margin-bottom: 15px;
}
#timer {
    font-size: 40px;
    font-weight: bold;
    background: #2d2d2d;
    color: #fff;
    display: inline-block;
    padding: 15px 40px;
    border-radius: 60px;
    margin: 15px 0 30px;
}
#timer span {
    background: #2e7d32;
    padding: 5px 14px;
    border-radius: 10px;
    margin: 0 4px;
}

.sale-products {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* ===== প্রোডাক্ট কার্ড ===== */
.product-card {
    background: #fff;
    padding: 22px 18px 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    width: 230px;
    transition: 0.4s ease;
    text-align: center;
}
.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(46, 125, 50, 0.15);
}
.product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
}
.product-card h3 {
    margin: 14px 0 6px;
    font-size: 18px;
}
.product-card .price {
    font-size: 22px;
    font-weight: bold;
    color: #2e7d32;
}
.product-card .old-price {
    font-size: 16px;
    text-decoration: line-through;
    color: #aaa;
    margin-left: 8px;
}
.add-to-cart {
    background: #2d2d2d;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 8px;
}
.add-to-cart:hover {
    background: #2e7d32;
}

/* ===== ফুটার ===== */
footer {
    text-align: center;
    padding: 30px 20px;
    background: #2d2d2d;
    color: #ccc;
    margin-top: 50px;
}
footer a {
    color: #ccc;
    text-decoration: none;
}
footer a:hover {
    color: #fff;
}

/* ===== অ্যানিমেশন ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== রেস্পন্সিভ ===== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 12px 20px;
        gap: 10px;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .hero-text h1 {
        font-size: 28px;
    }
    .hero-text p {
        font-size: 16px;
    }
    #timer {
        font-size: 24px;
        padding: 10px 20px;
    }
    .sale-products {
        flex-direction: column;
        align-items: center;
    }
    .product-card {
        width: 90%;
        max-width: 300px;
    }
    .auth-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}