/* --- Global Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden; /* স্ক্রিন যেন ডানে-বামে না নড়ে */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* --- Header & Logo Style --- */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    display: block;
    max-height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo a:hover img {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap; /* বড় স্ক্রিনে মেনু বেশি হলে নিচে নামবে না, ফ্লেক্সিবল রাখবে */
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #38bdf8;
}

.btn-login {
    border: 1px solid #2563eb;
    padding: 6px 14px;
    border-radius: 4px;
    color: #2563eb !important;
}

.btn-register {
    background: #2563eb;
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 4px;
}

.btn-logout {
    color: #ef4444 !important;
    border: 1px solid #ef4444;
    padding: 6px 14px;
    border-radius: 4px;
}

/* --- Content & Footer --- */
.site-content {
    min-height: 75vh;
    padding: 0;
}

.site-footer {
    background: #0f172a;
    color: #fff;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
}

/* --- Shop Management Hero Section --- */
.shop-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 80px 0;
}

.shop-hero .hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.shop-hero .hero-content h1 {
    font-size: 40px;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.shop-hero .hero-content h1 span {
    color: #38bdf8;
}

.shop-hero .hero-content p {
    font-size: 17px;
    color: #94a3b8;
    margin-bottom: 30px;
}

.badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: #2563eb;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: #38bdf8;
    border: 2px solid #38bdf8;
    padding: 10px 23px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background-color: #38bdf8;
    color: #0f172a;
}

/* Shop Dashboard Mockup Card */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

.shop-mockup-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 380px;
    overflow: hidden;
}

.mockup-header {
    background: #1e293b;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.mockup-body {
    padding: 25px;
}

.mockup-body h3 {
    font-size: 18px;
    color: #f8fafc;
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #1e293b;
    color: #94a3b8;
    font-size: 15px;
}

.stat-row strong {
    color: #38bdf8;
}

/* --- Features Grid Styling --- */
.features-section {
    padding: 70px 0;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 30px;
    color: #1e293b;
    margin-bottom: 10px;
}

.section-title p {
    color: #64748b;
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-box {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-box .icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.feature-box h3 {
    font-size: 19px;
    color: #1e293b;
    margin-bottom: 10px;
}

.feature-box p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 15px;
    color: #dbeafe;
    margin-bottom: 25px;
}

.cta-btn {
    background: #ffffff !important;
    color: #1d4ed8 !important;
    padding: 12px 30px;
    font-size: 16px;
}

.cta-btn:hover {
    background: #f1f5f9 !important;
}

/* --- Authentication & Forms Styling --- */
.auth-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    width: 100%;
}

.auth-card h2 {
    color: #1e293b;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #334155;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    color: #1e293b;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* --- Alert Messages --- */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* ==========================================
   --- Responsive Design for Mobile & Tablet ---
   ========================================== */

@media (max-width: 992px) {
    .shop-hero .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 34px;
    }
    .hero-image {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        justify-content: center;
        gap: 10px;
        font-size: 13px;
    }

    .logo img {
        max-height: 50px;
    }

    .shop-hero {
        padding: 50px 0;
    }

    .shop-hero .hero-content h1 {
        font-size: 28px;
    }

    .shop-hero .hero-content p {
        font-size: 15px;
    }

    .features-section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .cta-section {
        padding: 40px 15px;
    }

    .cta-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .main-nav ul {
        gap: 8px;
    }
    .main-nav a {
        font-size: 12px;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}