/* 
   ==========================================================================
   3-layout.css
   ==========================================================================
   This file defines the structural layout of the page.
   It includes:
   - Header & Navigation
   - Hero / Banner Section
   - Product Grid Layout
   - Controls Bar (Sort/Filter/Search)
   - Footer
   - Mobile Side Panel & Overlay
*/

/* ----------------------------------------------------- */
/* HEADER & NAVIGATION */
/* ----------------------------------------------------- */
header {
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    /* Glassmorphism effect */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem;
    border-bottom: 1px solid #333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* ----------------------------------------------------- */
/* HERO / BANNER SECTION */
/* ----------------------------------------------------- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #1e1e1e, #121212);
}

.hero-text h1 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.hero-text span {
    color: var(--primary-color);
}

.hero-text p {
    margin-bottom: 2rem;
    max-width: 600px;
    color: #ccc;
}

/* Floating Animation for Hero Image */
.hero-image img {
    margin-top: 2rem;
    max-width: 100%;
    height: auto;
    width: 300px;
    filter: drop-shadow(0 0 20px rgba(255, 69, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ----------------------------------------------------- */
/* PRODUCTS CONFIG (TITLES & CONTROLS) */
/* ----------------------------------------------------- */
.section-title {
    text-align: center;
    margin: 3rem 0;
    font-size: 2rem;
    color: var(--heading-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.controls-bar {
    max-width: 1200px;
    margin: 2rem auto;
    padding-top: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.controls-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
}



/* ----------------------------------------------------- */
/* PRODUCTS GRID */
/* ----------------------------------------------------- */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Center items if they don't fill the row */
    gap: 2rem;
    padding: 1rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* ----------------------------------------------------- */
/* FOOTER */
/* ----------------------------------------------------- */
footer {
    background-color: #0d0d0d;
    padding: 3rem 1rem;
    margin-top: 4rem;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #888;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-links a img {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.social-links a:hover img {
    filter: none;
    transform: scale(1.1);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    color: #555;
    font-size: 0.9rem;
}

/* Links Section in Footer */
.Links-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.Links-section h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.Links-section .social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.Links-section .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.Links-section .social-links a:hover {
    transform: translateY(-3px) scale(1.1);
}

.Links-section .social-links a img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: var(--transition);
}

.Links-section .social-links a:hover img {
    opacity: 0.8;
}

/* ----------------------------------------------------- */
/* MOBILE SIDE PANEL */
/* ----------------------------------------------------- */
.hamburger {
    display: none;
    /* Hidden on desktop */
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    color: var(--text-color);
}

.side-panel {
    position: fixed;
    top: 0;
    left: -280px;
    /* Hidden off-screen by default */
    width: 250px;
    height: 100%;
    background-color: var(--card-bg);
    z-index: 2000;
    transition: var(--transition);
    padding: 2rem 1rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.side-panel.open {
    left: 0 !important;
}

.side-panel .close-btn {
    align-self: flex-end;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.side-panel a {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: block;
    color: var(--text-color);
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.side-panel a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}