:root{
  --primary:#0f766e;
  --secondary:#14b8a6;
  --bg:#f6fbfb;
  --card:#ffffff;
  --text:#1f2937;
  --radius:14px;
}

*{box-sizing:border-box;margin:0;padding:0;font-family:Segoe UI,system-ui,sans-serif}
body{background:var(--bg);color:var(--text)}
.container{max-width:1200px;margin:auto;display:flex;align-items:center;justify-content:space-between}

/* HEADER */
header {
    background: #0f766e;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 4.5rem;
    width: 4.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin-left: auto;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #ffd166;
}

/* ===== Side Menu ===== */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin-left: auto;
}

.nav-links.active {
    right: 0;
}

.nav-links li {
    margin: 20px 0;
    text-align: center;
}

/* overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1500;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


.menu-toggle {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

.drawer-close {
    display: none;
    text-align: right;
    padding: 10px 20px;
}


.drawer-close i {
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}


/* ===== Navbar Responsive ===== */
@media (max-width: 768px) {

    .navbar {
        padding: 6px 16px;   /* 🔥 reduce header height */
    }

    .nav-links {
    position: fixed;
    top: 0;
    right: -180px;   /* 🔥 smaller drawer */
    height: 100vh;
    width: 160px;
    background: #0f766e;
    flex-direction: column;
    padding-top: 70px;
    transition: right 0.3s ease;
    z-index: 2000;
}

.nav-links.active {
    right: 0;
}

    .logo img {
        height: 3.5rem;      /* 🔥 smaller logo on mobile */
        width: 3.5rem;
    }

    .nav-links li {
        margin: 12px 0;
    }

    .menu-toggle {
        display: block;
    }

    .drawer-close {
    display: block;
}
}



/* ===== HERO / TOP DEALS SECTION ===== */
.hero {
    position: relative;
    height: 400px;
    background: url("images/background.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    color: white;
    overflow: hidden;
    touch-action: pan-y;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55); /* dark overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 50%;
}

.hero-content h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 26px;
    margin-bottom: 5px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 20px;
}

.order-btn {
    display: inline-block;
    background: #1a7f37;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.order-btn:hover {
    background: #145c29;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    width: 380px;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    animation: float 3s ease-in-out infinite;
}

/* ===== Slider Fade + Slide ===== */
.hero-content,
.hero-image {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero.fade-out .hero-content {
    opacity: 0;
    transform: translateX(-20px);
}

.hero.fade-out .hero-image {
    opacity: 0;
    transform: translateX(20px);
}

/* ===== Slider Dots ===== */
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slider-dots span {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.slider-dots span.active {
    background: #ffd166;
    transform: scale(1.2);
}


/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 40px 20px;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .hero-image img {
        width: 85%; 
    max-width: 300px;
    margin: auto;
    display: block;
    }
}

/* BUTTON */
.btn{display:inline-block;padding:12px 28px;border-radius:30px;background:var(--primary);color:#fff;text-decoration:none;font-weight:600}
.btn:hover{background:var(--secondary)}

/* SECTIONS */
.section{
    max-width:1200px;margin:60px auto;padding:0 20px;
}

.section h2 {
    text-align:center;margin-bottom:30px;font-size:28px;
}

.products {
    display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:25px;
}

.card {
    background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:0 10px 25px rgba(0,0,0,.05);transition:.3s;text-align:center;
    display: flex;
    flex-direction: column;
}

.card:hover{transform:translateY(-8px)}

.card img {
    width: 100%;
    height: 220px;         
    object-fit: contain;        
    object-position: center;    
    background: #f8f8f8;     
    padding: 10px;           
    border-bottom: 1px solid #eee;
}



.card h3{margin:15px 0 5px}

.card .price{color:var(--primary);margin-bottom:10px}


/* ===== Footer (Same as Main Website) ===== */
.footer {
    background: #0f766e;
    color: #fff;
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer-box h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.footer-box p {
    line-height: 1.7;
    font-size: 15px;
}

.footer-box ul {
    list-style: none;
}

.footer-box ul li {
    margin-bottom: 10px;
}

.footer-box ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-box ul li a:hover {
    color: #ffd166;
}

.social-links a {
    display: inline-block;
    margin-right: 12px;
    font-size: 20px;
    color: #fff;
    transition: transform 0.3s, color 0.3s;
}

.social-links a:hover {
    color: #ffd166;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    font-size: 14px;
}


/* RESPONSIVE */
@media(max-width:768px){
  .slide {
    flex-direction:column;text-align:center;
  }

  .slide img {
    margin-top:20px;width:90%;
  }

  nav {
    display:none;
  }

.btn {
    width: auto;    
    max-width: 220px;
    margin: 10px auto;
    display: block;
    text-align: center;
}

}

/* ===== Desktop drawer reset ===== */
@media (min-width: 769px) {

    .drawer-close {
        display: none !important;
    }

    .nav-links li {
        margin: 0;
    }

}

/* ===== Product Grid Mobile ===== */
@media (max-width: 600px) {
    .products {
        grid-template-columns: repeat(2, 1fr); /* 2 products per row */
        gap: 15px;
    }

    .card h3 {
        font-size: 14px;
    }

    .card .price {
        font-size: 14px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .products {
        grid-template-columns: 1fr; /* 1 product per row on very small phones */
    }

    .card img {
        height: 200px;
        padding: 8px;
    }
}
