: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;
    }
}



/* ===== SHOP SECTION (MATCHING YOUR BRAND) ===== */
.shop-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
}

.shop-header h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary);
}

/* GRID */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* CARD */
.shop-card {
  background: var(--card);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.shop-card:hover{
    transform: scale(1.05);
}


/* IMAGE */
.shop-image {
  position: relative;
}

.shop-image img {
  width: 100%;
  height: 220px;  
  object-fit: cover; 
  border-radius: 10px;
  background: #f8f8f8;
}

/* BADGE */
.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--secondary); /* 🔥 your theme color */
  color: white;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
}

/* ICONS */
.shop-icons {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shop-icons i {
  background: white;
  padding: 6px;
  border-radius: 50%;
  font-size: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* DOTS */
.shop-dots {
  display: flex;
  justify-content: center;
  margin-top: 5px;
}

.shop-dots span {
  width: 6px;
  height: 6px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 2px;
}

.shop-dots .active {
  background: var(--secondary);
}

/* TEXT */
.shop-card h4 {
  font-size: 17px;
  margin: 8px 0;
}

/* PRICE */
.shop-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-price .old {
  text-decoration: line-through;
  color: #aaa;
  font-size: 12px;
}

.shop-price .new {
  color: var(--primary);
  font-weight: bold;
}

/* CART BUTTON */
.shop-price button {
  background: rgba(20,184,166,0.15);
  border: none;
  padding: 8px;
  border-radius: 8px;
  color: var(--primary);
  cursor: pointer;
}

.shop-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

/* RESPONSIVE */
@media (min-width: 768px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .shop-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .shop-image img {
    height: 160px;
  }
}

@media (min-width: 1024px) {
  .shop-image img {
    height: 240px;
  }
}



/* IMAGE WRAPPER FOR SWIPE */
.modal-image-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: 5px;
}

/* SMOOTH TRANSITION */
.modal-main-img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ORDER BUTTON */
.order-btn {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}


/* ===== PRODUCT MODAL OVERLAY ===== */
.modal-content {
  background: #fff;
  width: 92%;
  max-width: 420px;  
  border-radius: 12px;
  padding: 15px;
  max-height: 85vh; 
  overflow: hidden; 
  position: relative;
}

.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  touch-action: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* ===== MODAL CONTENT ===== */
.modal-content {
  background: #fff;
  width: 92%;
  max-width: 420px;   
  border-radius: 12px;
  padding: 15px;
  max-height: 85vh; 
  overflow-y: auto; 
  position: relative;
}

/* ===== MAIN IMAGE ===== */
.modal-main-img {
  width: 100%;
  height: 220px;   
  object-fit: contain;
  display: block;
  margin: 10px auto;
  border-radius: 10px;
  background: #f5f5f5;
}

/* ===== THUMBNAILS ===== */
.modal-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 15px;
}

.modal-thumbs img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
}

.modal-thumbs img.active {
  border-color: var(--primary);
}

/* ===== TEXT ===== */
.modal-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.modal-price .new {
  color: red;
  font-size: 22px;
  font-weight: bold;
}

.modal-price .old {
  text-decoration: line-through;
  color: #aaa;
  margin-left: 10px;
}

/* ===== CLOSE BUTTON ===== */
.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;              /* 🔥 ensures it's above image */
  background: #fff;         /* optional: cleaner look */
  border-radius: 50%;
  padding: 2px 8px;
}

@media (max-width: 600px) {

  .product-modal {
    align-items: center;
  }

  .modal-content {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    padding: 15px;
  }

  .modal-main-img {
    height: 220px;
  }

}

@media (min-width: 1024px) {
  .modal-content {
    max-width: 450px;
  }

  .modal-main-img {
    height: 280px;
  }
}

@media (max-width: 600px) {
  .modal-main-img {
    height: 220px;
  }
}

@media (min-width: 1024px) {
  .modal-main-img {
    height: 300px;
  }
}

@media (max-width: 600px) {

  .modal-content {
    width: 100%;
    height: auto;
    max-height: 100vh;
    border-radius: 0;
    padding: 12px;
  }

  .modal-main-img {
    height: 200px;
  }

}