/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Header */
.header {
    background-color: royalblue;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.branding h1 {
    font-size: 1.5rem;
    color: white;
}

/* Navbar */
.navbar {
    display: flex;
    list-style: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 10px;
    transition: background 0.3s;
}

.nav-links a:hover {
    background: #0056b3;
    border-radius: 5px;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-bar {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

.navbar {
    display: none;
    flex-direction: column;
    gap: 15px;
    background-color: royalblue;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 15px;
    border-radius: 0 0 8px 8px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateX(100%);
    opacity: 0;
    z-index: 1000;
}

.navbar.active {
    transform: translateX(0);
    opacity: 1;
}

/* Hero Section */
.hero {
    background: url('./assets/Living\ room1.jpg') no-repeat center center/cover;
    color: white;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-primary {
    background-color: royalblue;
    color: white;
}

.btn-primary:hover {
    background-color: #003c8f;
}

.btn-secondary {
    background-color: white;
    color: royalblue;
    border: 2px solid royalblue;
}

.btn-secondary:hover {
    background-color: royalblue;
    color: white;
    transform: scale(1.05);
}

/* About Section */
.about {
    padding: 60px 0;
    text-align: center;
    background-color: #fff;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: royalblue;
}

.about p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #555;
}

/* Shop Section */
.shop {
    padding: 60px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.shop h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: royalblue;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product h3 {
    font-size: 1.5rem;
    color: royalblue;
    margin: 15px 0;
}

.product p {
    padding: 0 15px;
    color: #666;
    line-height: 1.6;
}

.product .btn {
    margin: 20px;
}

.product:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact {
    padding: 60px 0;
    background-color: white;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: royalblue;
}

.contact-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Arial', sans-serif;
    color: #333;
}

.contact-form button {
    width: 100%;
    max-width: 200px;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

.footer p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.footer .social-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 15px;
}

.footer .social-links a {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer .social-links a:hover {
    color: #ffdf5d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .navbar {
        display: none;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .product img {
        height: 150px;
    }
}

/* Collection Section */
.collection {
    padding: 60px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.collection h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: royalblue;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product h3 {
    font-size: 1.5rem;
    color: royalblue;
    margin: 15px 0;
}

.product p {
    padding: 0 15px;
    color: #666;
    line-height: 1.6;
}

.product .btn {
    margin: 20px;
    text-decoration: none;
}

.product:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* General Button Styles */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    padding: 10px 20px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

/* Secondary Buttons for "View More" */
.btn-secondary {
    background-color: white;
    color: royalblue;
    border: 2px solid royalblue;
    font-size: 1rem;
    padding: 12px 30px; /* Increased padding to make the button more prominent */
    margin-top: 15px;
    width: auto;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.btn-secondary:hover {
    background-color: royalblue;
    color: white;
    transform: scale(1.05);
}

/* Navbar */
.navbar {
    display: none; /* Hidden by default */
    flex-direction: column; /* Make items stack vertically for mobile */
    gap: 15px;
    background-color: royalblue;
    position: absolute; /* Keeps it in a fixed position relative to the header */
    top: 60px;
    right: 0; /* Aligns it to the right edge */
    width: 100%; /* Ensure the navbar takes full width of the screen */
    max-width: 100%; /* Prevent it from getting wider than the screen */
    padding: 15px;
    box-sizing: border-box; /* Include padding in the total width calculation */
    border-radius: 0 0 8px 8px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateX(100%); /* Initially hidden off-screen to the right */
    opacity: 0; /* Hidden by opacity */
    z-index: 1000;
    overflow: hidden; /* Prevent overflow in mobile view */
}

.navbar.active {
    display: flex;
    transform: translateX(0); /* Slide into view */
    opacity: 1; /* Make it visible */
}

/* Navbar Links */
.navbar ul {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.navbar ul li {
    text-align: center;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-bar {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* For larger screens (Desktop view) */
@media (min-width: 769px) {
    .navbar {
        display: flex !important; /* Always show navbar in desktop view */
        flex-direction: row; /* Stack items horizontally */
        gap: 30px;
        position: static; /* Remove the absolute positioning */
        background-color: transparent; /* Transparent background for desktop */
        box-shadow: none; /* No shadow for desktop */
        padding: 0; /* Remove padding for desktop */
    }

    .navbar ul {
        display: flex; /* Arrange navbar items horizontally */
        flex-direction: row;
        gap: 30px;
    }

    .navbar ul li {
        text-align: left; /* Align text to the left for larger screens */
    }

    .menu-toggle {
        display: none; /* Hide the hamburger icon on desktop */
    }
}

/* Ensure everything fits properly on small screen sizes */
@media (max-width: 768px) {
    .navbar {
        display: flex;
        flex-direction: column;
        width: 100%; /* Make sure the navbar takes up full width */
    }

    .menu-toggle {
        display: flex;
    }

    .navbar ul {
        display: flex;
        flex-direction: column; /* Stack items vertically */
        gap: 20px;
    }
}

/* Prevent horizontal scrolling */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Ensure container widths don't exceed the viewport */
.container, .header, .footer {
    max-width: 100%;
    box-sizing: border-box;
}

/* Prevent individual elements from causing overflow */
* {
    box-sizing: border-box;
}

/* Correct any large images or elements */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* WhatsApp Floating Icon */
.whatsapp-icon {
    position: fixed;
    bottom: 20px; /* Distance from the bottom of the screen */
    right: 20px; /* Distance from the right edge of the screen */
    z-index: 1000; /* Ensure it's on top of other content */
    width: 60px; /* Icon size */
    height: 60px; /* Icon size */
    border-radius: 50%; /* Make the icon round */
    overflow: hidden; /* Ensures no content overflows the circle */
    background-color: #25d366; /* Optional: a background color if you want a border color or hover effect */
}

/* Optional: Styling for the image inside the button */
.whatsapp-icon img {
    width: 100%; /* Makes the image take up the full size of the container */
    height: 100%; /* Makes the image take up the full size of the container */
    object-fit: cover; /* Ensures the image maintains aspect ratio */
}

