/* ========================================= */
/* 1. Global Styles & Variables              */
/* ========================================= */

/* Import a modern font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-blue: #007bff;
    --dark-blue: #0056b3;
    --light-grey: #f8f9fa;
    --dark-grey: #343a40;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--white);
    color: var(--dark-grey);
}

img {
    max-width: 100%;
    display: block;
}

/* ========================================= */
/* 2. Header & Navigation                    */
/* ========================================= */

header {
    background-color: var(--dark-blue);
    padding: 1rem 2rem;
    color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary-blue);
}

/* ========================================= */
/* 3. Hero Section                           */
/* ========================================= */

.hero {
    background: linear-gradient(rgba(0, 123, 255, 0.8), rgba(0, 86, 179, 0.9)), url('https://images.unsplash.com/photo-1525547719571-a2d4ac8945e2?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwzNjUyOXwwfDF8c2VhcmNofDN8fHRlY2hub2xvZ3l8ZW58MHx8fHwxNjE2MTU0NTI0&ixlib=rb-1.2.1&q=80&w=1920') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 8rem 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--light-grey);
    color: var(--dark-blue);
    transform: translateY(-3px);
}

/* ========================================= */
/* 4. Product Showcase                       */
/* ========================================= */

.product-showcase {
    padding: 5rem 2rem;
    background-color: var(--light-grey);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--dark-grey);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.product-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--dark-grey);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-top: auto;
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.add-to-cart-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
}
/* ========================================= */
/* About & Contact Sections                  */
/* ========================================= */

.about-section {
    background-color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
}

.about-container, .contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-section {
    background-color: var(--light-grey);
    padding: 5rem 2rem;
    text-align: center;
}
/* ========================================= */
/* 5. Footer                                 */
/* ========================================= */

footer {
    background-color: var(--dark-grey);
    color: var(--light-grey);
    padding: 4rem 2rem 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

footer h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
}

footer p {
    line-height: 1.7;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--light-grey);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #495057;
}

/* ========================================= */
/* 6. Hamburger & Mobile Styles              */
/* ========================================= */

.hamburger {
    display: none;
    cursor: pointer;
    position: relative;
    z-index: 1001; /* Higher than the nav menu */
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: all 0.4s ease;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 65%;
        max-width: 300px;
        background-color: var(--dark-blue);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1000;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Hamburger to 'X' animation */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}
/* ========================================= */
/* 7. Scroll Animations                      */
/* ========================================= */

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Add to styles.css */

.logo-img {
    height: 70px;
    vertical-align: middle;
    margin-right: 0.5rem;
    border-radius: 12px;         /* Rounded corners */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* Soft shadow */
    background: #fff;            /* Optional: white background for contrast */
    object-fit: cover;           /* Ensures image covers the area smoothly */
}
/* ========================================= */
/* 8. Cart Page Styles (Optimized)           */
/* ========================================= */

.cart-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0; /* Remove padding to allow inner containers to manage it */
    background-color: transparent;
    box-shadow: none;
}

.continue-shopping-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed);
}

.continue-shopping-link:hover {
    text-decoration: underline;
}

/* New wrapper for the item list and total */
.cart-summary-box {
    background: var(--white);
    padding: 2rem;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    margin-bottom: 2.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align to top for better look with multi-line text */
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item:first-child {
    padding-top: 0;
}

.cart-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.item-info {
    flex-grow: 1;
}

.item-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.item-name span { /* For the color variant */
    font-weight: 400;
    color: #6c757d;
    font-size: 1rem;
}

.quantity-manager {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.quantity-manager button {
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    color: var(--dark-grey);
    cursor: pointer;
    font-weight: bold;
    border-radius: 50%; /* Make the buttons circular */
    width: 32px; /* Set a fixed size */
    height: 32px;
    display: flex; /* Helps center the new SVG icon */
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease;
}

.quantity-manager button svg {
    width: 16px;
}

.item-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    min-width: 100px; /* Ensures prices align nicely */
    text-align: right;
}

.cart-total {
    text-align: right;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--dark-grey);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Styles for the customer details form */
.customer-details-form {
    background: var(--white);
    padding: 2rem;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
}

/* Styles for the main checkout button */
.checkout-container {
    margin-top: 2.5rem;
    text-align: center; /* Center the button for emphasis */
}

#whatsapp-checkout-btn {
    background-color: var(--green-whatsapp);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    width: 100%; /* Make button full width */
    max-width: 400px; /* But not too wide on large screens */
    padding: 1.2rem 2rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

#whatsapp-checkout-btn:hover {
    background-color: var(--green-whatsapp-hover);
    color: var(--white);
    transform: scale(1.02);
}

.whatsapp-checkout-icon {
    vertical-align: middle;
    margin-right: 10px;
}
/* ========================================= */
/* 9. Floating Cart Styles                   */
/* ========================================= */

.floating-cart {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--primary-blue);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.floating-cart:hover {
    transform: scale(1.1);
}

.cart-item-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--dark-blue);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--white);
}
/* ========================================= */
/* 10. Success Page Styles                   */
/* ========================================= */
.success-container {
    max-width: 600px;
    margin: 4rem auto;
    padding: 3rem;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    text-align: center;
}

.success-checkmark {
    color: #28a745;
    margin-bottom: 1.5rem;
}

.success-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.success-container p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.order-summary {
    text-align: left;
    margin: 2.5rem 0;
    padding: 1.5rem;
    border: 1px dashed #ccc;
    border-radius: var(--border-radius);
}

.order-summary h2, .order-summary h3 {
    margin-bottom: 1rem;
}

.summary-total {
    margin-top: 1.5rem;
    text-align: right;
    font-size: 1.3rem;
}

.success-container .cta-button {
    margin-top: 1rem;
}
/* Add to styles.css */
.continue-shopping-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    margin-left: 1rem;
    padding: 0.75rem 2rem;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
}
.continue-shopping-link:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
}
/* Styling for product options */
.product-option {
    margin: 1rem 0;
}
.product-option select {
    padding: 0.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #ccc;
}
/* Styling for the new contact buttons wrapper */
.contact-buttons-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allows buttons to stack on small screens */
    gap: 1rem;
}

/* Style for the new WhatsApp button */
#whatsapp-checkout-btn {
    
    background-color: var(--dark-blue); /* Official WhatsApp Green */
    margin: auto;
    border: none;
    color: white;
}

#whatsapp-checkout-btn:hover {
    background-color: #1DA851; /* A slightly darker green for hover */
}

/* Align the SVG icon inside the button */
#whatsapp-checkout-btn svg {
    vertical-align: middle;
    margin-right: 8px;
}
/* In styles.css */

/* Add this new rule for the form group to fix the label alignment */
.form-group {
    display: flex;
    flex-direction: column; /* Stacks label on top of input */
    align-items: flex-start; /* Aligns label to the left */
    margin-bottom: 1.5rem;
}
input[type=text], select, textarea {
  width: 75%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
}
/* In styles.css, find this rule... */
.quantity-manager .btn-remove {
    background-color: transparent;
    border: none;
    color: var(--primary-blue);
    font-weight: normal;
    text-decoration: underline;
    width: auto;
    height: auto;
    /* Add this line to remove the circular shape */
    border-radius: 0;
}
/* Styling for the WhatsApp instruction text */
.whatsapp-instruction {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}