* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f6f9;
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* ==========================================================
   NAVBAR
========================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background-color: #0E3193;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
    width: auto;
}

.nav-right {
    display: flex;
    gap: 20px;
    list-style: none;
    position: absolute; /* centered for desktop */
    left: 50%;
    transform: translateX(-50%);
}

.nav-right ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-right a {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav-right a:hover {
    color: #ffffff;
}

/* Dropdown support */
.nav-item {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 10px 0;
    list-style: none;
    min-width: 180px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: #000;
}

.dropdown-menu li a:hover {
    background-color: #f2f2f2;
}

.dropdown-menu.show {
    display: block;
}

/* Hamburger button for mobile */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* ==========================================================
   PAGE LAYOUT
========================================================== */
.page-layout {
    display: flex;
    align-items: flex-start;
}

/* ==========================================================
   SIDEBAR
========================================================== */
.sidebar {
    position: sticky;
    top: 80px;
    width: 250px;
    flex-shrink: 0;
    background-color: #f4f4f4;
    padding: 20px;
    border: 3px solid #0E3193;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin: 10px 0;
}

.sidebar a {
    display: block;
    padding: 10px;
    font-size: 1.1em;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sidebar a:hover {
    background-color: #ddd;
}

.sidebar a.active {
    background-color: #007bff;
    color: #fff;
}

/* ==========================================================
   MAIN CONTENT
========================================================== */
.main-content,
.content {
    flex: 1;
    padding: 30px;
}
/* ==========================================================
   GLOBAL RESET & BASE
========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f6f9;
    padding-top: 80px;
}

/* ========================= HERO ========================= */
.hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    animation: heroKenBurns 18s infinite;
    animation-fill-mode: both;
}

.hero-slideshow img:nth-child(1) { animation-delay: 0s; }
.hero-slideshow img:nth-child(2) { animation-delay: 6s; }
.hero-slideshow img:nth-child(3) { animation-delay: 12s; }

@keyframes heroKenBurns {
    0% { opacity: 0; transform: scale(1.05) translate(0, 0); }
    15% { opacity: 1; }
    45% { opacity: 1; transform: scale(1.15) translate(-3%, -3%); }
    60% { opacity: 0; }
    100% { opacity: 0; transform: scale(1.15) translate(-3%, -3%); }
}

.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

.hero-actions {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 4;
}

.hero-phone,
.hero-action {
    background: rgba(255,255,255,0.9);
    padding: 10px 14px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    color: #000;
}

.hero-action {
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.hero-action:hover {
    transform: translateY(-2px);
    color: #ff6a00;
}

.action-icon {
    font-size: 1.6rem;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-search {
    display: flex;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    max-width: 700px;
    width: 100%;
}

.hero-search input {
    flex: 1;
    padding: 14px;
    font-size: 1rem;
    border: none;
    outline: none;
}

.hero-search button {
    padding: 0 24px;
    background: #ff6a00;
    color: #fff;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.hero-search button:hover { background: #e85c00; }

@media (max-width: 600px) {
    .hero { height: 60vh; }
    .hero-actions { top: 10px; right: 10px; }
    .hero-search { flex-direction: column; }
    .hero-search button { padding: 12px; }
}

/* ==========================================================
   PRODUCT GRID
========================================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.product-card {
    position: relative;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

.product-card .name {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0 5px;
}

/* ==========================================================
   STOCK BADGE
========================================================== */
.ribbon {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    border-radius: 999px;
    pointer-events: none;
}

.ribbon-green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.ribbon-red {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* ==========================================================
   FOOTER
========================================================== */
.footer {
    background: #0E3193;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 8px 40px;
    color: #fff;
    width: 100%;
    text-align: left;
    margin-top: 30px;
}

.footer-column {
    flex: 1 1 250px;
    margin: 0 20px;
}

.footer-column h3 {
    margin-bottom: 6px;
    font-size: 1.1em;
}

.footer-column ul {
    list-style: none;
    padding-left: 0;
}

.footer-column ul li {
    margin-bottom: 2px;
}

.footer-column a {
    color: #fff;
    text-decoration: none;
}

.footer-column a:hover {
    color: #ddd;
}

.footer-copy {
    text-align: center;
    margin-top: 10px;
    font-size: 0.85em;
}

/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 768px) {

    /* Hamburger visible */
    .hamburger {
        display: block;
    }

    /* Mobile nav overlay */
    .nav-right {
        display: none;                  /* hidden by default */
        flex-direction: column;
        width: auto;                     /* adapt to content */
        background-color: #0E3193;
        position: absolute;
        top: 80px;
        left: 50%;                       /* center horizontally */
        transform: translateX(-50%);
        text-align: center;
        z-index: 999;
        overflow: hidden;
        max-height: 0;
        border-radius: 6px;
        padding: 5px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        transition: max-height 0.3s ease;
    }

    /* Show menu when hamburger is clicked */
    .nav-right.active {
        display: flex;
        max-height: 500px;
    }

    /* Nav items stacked in mobile */
    .nav-right ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    /* Dropdown inside mobile menu */
    .nav-right .dropdown-menu {
        display: none;                  /* hidden until toggle */
        position: relative;             /* stay within parent li */
        width: 180px;                   /* fixed width for neatness */
        margin: 5px auto 0 auto;        /* center below item */
        padding: 5px 0;
        background: #ffffff;
        border-radius: 6px;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    /* Show dropdown when toggled */
    .nav-right .dropdown-menu.show {
        display: block;
    }

    .nav-right .dropdown-menu li a {
        display: block;
        padding: 8px 15px;
        color: #000;
        text-decoration: none;
    }

    /* Sidebar hidden on mobile */
    .sidebar {
        display: none;
    }

    /* Footer stacked */
    .footer {
        flex-direction: column;
        align-items: center;
        padding: 20px 15px;
    }

    .footer-column {
        width: 100%;
        max-width: 320px;
        margin: 12px 0;
        text-align: center;
    }

    .footer-column h3,
    .footer-column p,
    .footer-column ul,
    .footer-column li {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================
   HERO
========================================================== */
.hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.hero-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    animation: heroKenBurns 18s infinite;
}

.hero-slideshow img:nth-child(1) { animation-delay: 0s; }
.hero-slideshow img:nth-child(2) { animation-delay: 6s; }
.hero-slideshow img:nth-child(3) { animation-delay: 12s; }

@keyframes heroKenBurns {
    0%, 60%, 100% { opacity: 0; transform: scale(1.05); }
    15%, 45% { opacity: 1; transform: scale(1.15) translate(-3%, -3%); }
}

.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}
