/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #000000;
    --accent-color: #5cb8e4;
    --bg-color: #ffffff;
    --text-color: #333333;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. NAVIGATION BAR
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-name {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-actions a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 14px;
}

.menu-btn {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* =========================================
   3. MOBILE MENU OVERLAY
   ========================================= */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: white;
    z-index: 2000;
    display: none; /* Hidden by default */
    flex-direction: column;
    padding: 20px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: #000;
    font-size: 24px;
    font-weight: 700;
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-mobile-primary {
    width: 100%;
    background: #000;
    color: white;
    padding: 15px;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    font-weight: 600;
}

.btn-mobile-secondary {
    width: 100%;
    background: #f5f5f5;
    color: #000;
    padding: 15px;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    font-weight: 600;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-image {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

/* 🔴 FIX: Force the book image to be small */
.hero-image img {
    max-width: 200px !important; /* Forces it to be small */
    width: 100%;
    height: auto;
    margin: 0 auto; /* Centers it */
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-subtext {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.small-note {
    font-size: 13px;
    color: #999;
    margin-top: 15px;
}

/* =========================================
   5. FEATURES SECTION (DARK)
   ========================================= */
.features {
    background-color: #000;
    color: #fff;
    padding: 80px 20px;
    text-align: center; /* 🔴 Center everything */
}

.feature-item {
    max-width: 500px; /* Narrow width like the screenshot */
    margin: 0 auto;
    padding: 10px 0;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #5cb8e4; /* 🔴 Blue Title */
    font-weight: 700;
}

.feature-item p {
    color: #ffffff; /* 🔴 White Text */
    font-size: 16px;
    line-height: 1.5;
}

.divider {
    border: 0;
    border-top: 1px solid #333; /* Grey line */
    margin: 40px auto;
    max-width: 500px;
}

.social-section {
    max-width: 500px;
    margin: 60px auto 0 auto;
    text-align: center;
}

.social-section p {
    color: #666; /* Grey "Follow MeendyDesign" */
    margin-bottom: 20px;
    font-size: 16px;
}

.social-icons {
    display: flex;
    justify-content: center; /* Center icons */
    gap: 25px;
    margin-top: 15px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px; /* Bigger icons */
    transition: transform 0.2s;
}

.social-icons a:hover {
    transform: scale(1.1);
}

/* Colors for the icons */
.fa-x-twitter { color: #fff; }
.fa-facebook { color: #1877F2; }
.fa-instagram { 
    background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   6. SHOP PAGE STYLES
   ========================================= */
/* 🔴 SHOP GRID FIXES */
.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.shop-header {
    text-align: center;
    margin-bottom: 40px;
}

.shop-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

/* 🔴 SHOP PAGE: ROUNDED SQUARES (Like Recent Work) */
.shop-grid {
    display: grid;
    /* Desktop: Medium sized squares (approx 4-5 per row) */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 20px; /* Nice spacing */
    padding-bottom: 40px;
}

.product-card {
    background: transparent; /* No white box background */
    border: none; /* No border */
    overflow: visible; /* Let the shadow show */
    display: flex;
    flex-direction: column;
}

/* The Image Container - Rounded Square */
.product-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Perfect Square */
    overflow: hidden;
    border-radius: 20px; /* 🔴 ROUNDED CORNERS like your screenshot */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Soft shadow */
    margin-bottom: 10px;
}

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

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

/* Info Section */
.product-info {
    padding: 5px 0;
    text-align: center; /* Centered text like screenshot */
}

.product-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.btn-buy {
    width: 100%;
    padding: 10px 0;
    font-size: 14px;
    border-radius: 30px; /* Round button */
    background: #000;
    color: #fff;
    font-weight: 600;
}

/* 🔴 MOBILE: 2 Columns */
@media screen and (max-width: 768px) {
    .shop-grid {
        grid-template-columns: 1fr 1fr; /* 2 items per row */
        gap: 15px;
    }
    
    .product-image {
        border-radius: 15px; /* Slightly less round on mobile */
    }
    
    .product-info h3 {
        font-size: 14px;
    }
}

/* =========================================
   7. CART PAGE STYLES
   ========================================= */
.cart-page-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.cart-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-summary {
    text-align: right;
    font-size: 24px;
    font-weight: bold;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 2px solid #f5f5f5;
}

.cart-actions-container {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.btn-checkout {
    background-color: #000;
    color: #fff;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn-clear {
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
}

/* Quantity Controls */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 30px;
}

.btn-qty {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-qty.minus { color: #ff4444; }

/* Checkout Form */
.checkout-section {
    margin-top: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.info-box {
    background-color: #f0f9ff;
    border-left: 4px solid #5cb8e4;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 8px;
}

.btn-submit {
    width: 100%;
    background-color: #5cb8e4;
    color: white;
    padding: 18px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 9999;
    font-weight: 600;
    transition: bottom 0.4s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast-notification.show { bottom: 30px; }

/* =========================================
   8. FOOTER
   ========================================= */
.main-footer {
    background-color: #fff;
    padding: 40px 20px;
    border-top: 1px solid #eee;
    margin-top: 60px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
    line-height: 2;
}

/* =========================================
   9. MOBILE RESPONSIVE
   ========================================= */
@media screen and (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .menu-btn { display: block; }
    
    /* Hero Mobile */
    .hero h1 { font-size: 32px; }
    
    /* Shop Mobile */
    .shop-grid { grid-template-columns: 1fr; }
    
    /* Cart Mobile Fixes */
    .cart-actions-container {
        flex-direction: column-reverse;
        width: 100%;
        gap: 15px;
    }
    
    .btn-checkout, .btn-clear {
        width: 100%;
        display: block;
        text-align: center;
        padding: 18px;
    }
    
    .btn-checkout {
        background-color: #000 !important;
        color: white !important;
        font-size: 18px;
    }
    
    .cart-summary {
        text-align: center;
        font-size: 28px;
    }
    
    /* Prevent Zoom */
    input, select, textarea { font-size: 16px !important; }
}

/* --- NEW BUTTON STYLES --- */

/* 1. Better Login Button (Navbar) */
.login-btn {
    background-color: #52B2E1 !important; /* New Blue */
    color: #fff !important;
    padding: 8px 18px;       /* Reduced padding */
    border-radius: 50px; /* Rounded pill shape */
    font-weight: 600;
    font-size: 13px;         /* Smaller font */
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.login-btn:hover {
    background-color: #419bc8 !important; /* Slightly darker blue on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

/* 2. Better Back to Home Button (Success Page) */
.home-btn {
    display: inline-block;
    background-color: #52B2E1 !important;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-btn:hover {
    background-color: #419bc8 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* 3. Better Back to Shop Button (Cart Page) */
.back-shop-btn {
    display: inline-block;
    background-color: #52B2E1 !important;
    color: #fff !important; /* Force white text */
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin: 20px; /* Adds space from the top-left corner */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.back-shop-btn:hover {
    background-color: #419bc8 !important;
    transform: translateY(-2px);
}

/* 4. Sign In & Other Action Buttons */
.btn-submit, .btn-primary, .btn-buy {
    background-color: #52B2E1 !important;
    color: #fff !important;
    border: none;
}
.btn-submit:hover, .btn-primary:hover, .btn-buy:hover {
    background-color: #419bc8 !important;
}

/* Fix for "Visit Shop" and "Start Order" buttons */
.preview-card .btn-link {
    background-color: #52B2E1 !important;
    color: #fff !important;
    border: none;
}

.preview-card .btn-link:hover {
    background-color: #419bc8 !important;
}

/* --- NEW: Testimonials Section --- */
.testimonials {
    background-color: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

.testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 30px auto 0;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.stars {
    color: #FFD700; /* Gold color */
    margin-bottom: 10px;
}

/* --- NEW: Standard Blue Button Class --- */
/* Use this class instead of writing style="..." every time */
.btn-primary {
    background-color: #52B2E1;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: #419bc8;
    transform: translateY(-2px);
}

/* Secondary Button (Outline) */
.btn-outline {
    background-color: transparent;
    color: #333;
    border: 2px solid #ddd;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    margin-top: 30px;
}

.btn-outline:hover {
    border-color: #52B2E1;
    color: #52B2E1;
    background-color: #fff;
}

/* Contact Method Radio Button Styling */
input[type="radio"][name="contact_method"] {
    accent-color: #52B2E1;
    cursor: pointer;
}

/* Highlight selected option */
input[type="radio"][name="contact_method"]:checked + i + div,
input[type="radio"][name="contact_method"]:checked ~ i + div {
    color: #52B2E1;
}

/* Highlight border when selected */
label:has(input[type="radio"][name="contact_method"]:checked) {
    border-color: #52B2E1 !important;
    background-color: #e3f2fd !important;
}

/* Hover effect on labels */
label:has(input[type="radio"][name="contact_method"]) {
    transition: all 0.2s ease;
}

label:has(input[type="radio"][name="contact_method"]):hover {
    border-color: #52B2E1 !important;
    box-shadow: 0 2px 8px rgba(82, 178, 225, 0.1);
}

/* 🟢 Floating Chat Bubble */
.chat-bubble {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #52B2E1 0%, #2196F3 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(82, 178, 225, 0.4);
    z-index: 99;
    transition: all 0.3s ease;
    border: none;
}

.chat-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(82, 178, 225, 0.6);
}

.bubble-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ff4444;
    border-radius: 50%;
    top: 0;
    right: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* 🟢 Chat Widget Modal */
.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    z-index: 100;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: linear-gradient(135deg, #52B2E1 0%, #2196F3 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9f9f9;
}

.chat-message {
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bot-message p {
    background: white;
    padding: 12px;
    border-radius: 12px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    background: white;
    border-radius: 0 0 12px 12px;
}

.chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: #52B2E1;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.chat-btn:hover {
    background: #2196F3;
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chat-bubble {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }

    .chat-widget {
        bottom: 80px;
        right: 20px;
        left: 20px;
        width: auto;
        max-width: none;
        height: 450px;
    }
}