/* ===========================
   GLOBAL
=========================== */

body {
    font-family: "Cairo", sans-serif;
    background: #f6eee7;
    color: #111;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   HEADER + MEGA MENU
=========================== */

.header {
    background: #ffffff;
    border-bottom: 1px solid #e5d5c3;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 28px;
    letter-spacing: 1px;
}

/* MENU */
.menu {
    list-style: none;
    font-size: 17px;
}

.menu > li {
    position: relative;
    padding: 10px 0;
    cursor: pointer;
}

/* Style for the button inside the list item for A11Y */
.menu > li > button {
    background: none;
    border: none;
    padding: 0; /* Adjusted padding as the LI has padding */
    font-size: 17px;
    font-family: "Cairo", sans-serif;
    cursor: pointer;
    color: inherit;
    display: inline-block;
    font-weight: 400; 
}

.menu > li > button:hover {
    opacity: 0.8;
}

/* MEGA MENU BLOCK */
.mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 650px;
    display: none;
    background: #fff;
    padding: 25px 30px;
    border-radius: 6px;
    border: 1px solid #e5d5c3;
    box-shadow: 0 6px 30px rgba(0,0,0,0.1);
    z-index: 999;
}

/* Desktop hover logic (kept for non-JS fallback / simplicity) */
.mega-parent:hover .mega-menu {
    display: flex;
    gap: 40px;
}

/* Class added by JS for desktop/mobile visibility */
.mega-menu.show-mega {
    display: flex;
    gap: 40px;
}

.m-block h4 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.m-block a {
    display: block;
    padding: 3px 0;
    color: #444;
    transition: 0.2s;
}

.m-block a:hover {
    color: #c9a27e;
}

/* ===========================
   HERO BANNER
=========================== */

.hero-banner {
    height: 58vh;
    background: url("../img/banner.jpg") center/cover no-repeat;
    border-bottom: 1px solid #e5d5c3;
}

.hero-banner h1 {
    font-size: 48px;
}

.hero-banner p {
    font-size: 20px;
}

/* ===========================
   PRODUCT GRID
=========================== */

.product-card {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    border: 1px solid #e5d5c3;
    transition: 0.25s ease;
    display: block; /* Make the whole card a link area */
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-card h5 {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 600;
}

.price {
    margin-top: 5px;
    color: #c9a27e;
    font-size: 17px;
    font-weight: 700;
}

/* ===========================
   INSTAGRAM GALLERY
=========================== */

.instagram-section img {
    border-radius: 8px;
    transition: 0.2s ease;
}

.instagram-section img:hover {
    transform: scale(1.05);
}

/* ===========================
   NEWSLETTER
=========================== */

.newsletter {
    background: #fff;
    border-top: 1px solid #e5d5c3;
    border-bottom: 1px solid #e5d5c3;
}

.newsletter-form input {
    border: 1px solid #c9a27e;
    border-radius: 4px;
}

.newsletter-form button {
    background: #111;
    color: #fff;
    border-radius: 4px;
    border: none;
    transition: 0.2s ease;
}

.newsletter-form button:hover {
    background: #c9a27e;
    color: #fff;
}

/* ===========================
   FOOTER
=========================== */

.footer {
    background: #111;
    color: #fff;
}

.footer a:hover {
    color: #c9a27e;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 992px) {
    .mega-menu {
        width: 95%;
        right: 0;
        left: 0;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-banner h1 {
        font-size: 32px;
    }
    .hero-banner p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form input {
        width: 100% !important;
    }
    .newsletter-form button {
        width: 100%;
        margin-top: 10px;
    }
}