/* --- CSS VARIABLES & RESET --- */
:root {
    --primary: #008080; /* Teal */
    --primary-dark: #005f5f;
    --secondary: #e0f7f7; /* Light Cyan */
    --text-dark: #003737;
    --text-light: #4da2a2;
    --white: #ffffff;
    --shadow-soft: 0 4px 20px rgba(0, 128, 128, 0.15);
    --shadow-hover: 0 8px 30px rgba(0, 128, 128, 0.25);
    --radius: 12px;
    --gradient: linear-gradient(135deg, #008080 0%, #4dd2d2 100%);
    --transition: all 0.3s ease;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f4f6f9;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
}

input {
  font-family: inherit;
  outline: none;
}

/* --- UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 128, 128, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
}

/* --- HEADER --- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Top Bar */
.top-bar {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 8px 0;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Middle Bar */
.middle-bar {
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-container {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.search-bar {
  width: 100%;
  padding: 12px 20px;
  border-radius: 50px;
  border: 2px solid #e0e0e0;
  background: var(--secondary);
  transition: var(--transition);
  font-size: 1rem;
}

.search-bar:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.1);
}

.search-results {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 1001;
  border: 1px solid #eee;
}

.search-results.active {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  gap: 12px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: var(--transition);
}

.search-item:hover {
  background: #f8faff;
}

.search-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}

.search-item-info {
  flex: 1;
}

.search-item-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.search-item-price {
  color: var(--primary);
  font-weight: 700;
}

.no-match {
  padding: 20px;
  text-align: center;
  color: var(--text-light);
}

.nav-icons {
  display: flex;
  gap: 20px;
}

.icon-btn {
  position: relative;
  font-size: 1.2rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.icon-btn:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4757;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Last Bar (Mega Menu) */
.mega-menu-bar {
  background: var(--white);
  border-top: 1px solid #eee;
  padding: 0 20px;
}

.menu-list {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.menu-item {
  padding: 15px 0;
  position: relative;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-item:hover {
  color: var(--primary);
}

/* Mega Menu Dropdown */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--white);
  border-top: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: none;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  padding: 20px;
  z-index: 999;
  border-radius: 0 0 var(--radius) var(--radius);
}

.menu-item:hover .mega-dropdown {
  display: grid;
}

.mega-col h4 {
  margin-bottom: 10px;
  color: var(--primary);
}

.mega-col ul li {
  padding: 5px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.mega-col ul li:hover {
  color: var(--text-dark);
  text-decoration: underline;
}

.mega-img {
  width: 100%;
  height: 120px;
  background: #eee;
  border-radius: var(--radius);
  object-fit: cover;
}

.mega-featured {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 5px;
}

/* --- HERO SECTION --- */
.hero {
  background: var(--gradient);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Floating Cards Animation */
.floating-card {
  position: absolute;
  background: var(--white);
  color: var(--text-dark);
  padding: 10px 15px;
  border-radius: var(--radius);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
  animation: float 4s ease-in-out infinite;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fc-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.fc-2 {
  bottom: 20%;
  right: 10%;
  animation-delay: 1s;
}

.fc-3 {
  top: 40%;
  right: 15%;
  animation-delay: 2s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* --- ABOUT SECTION --- */
.about {
  padding: 60px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.about-card {
  padding: 30px;
  background: var(--secondary);
  border-radius: var(--radius);
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.about-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.about-card h3 {
  margin-bottom: 10px;
}

/* --- PRODUCTS SECTION --- */
.products {
  padding: 60px 0;
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid #ddd;
  font-weight: 500;
  transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.p-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: #f0f0f0;
}

.p-details {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.p-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.p-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 10px;
  flex: 1;
}

.p-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
}

.p-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.action-btn {
  padding: 8px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: var(--transition);
}

.add-cart {
  background: var(--primary);
  color: white;
}

.add-cart:hover {
  background: var(--primary-dark);
}

.add-wish {
  background: #f0f0f0;
  color: var(--text-dark);
}

.add-wish:hover {
  background: #ffe0e0;
  color: #ff4757;
}

/* --- 8 REASONS --- */
.reasons {
  padding: 60px 0;
  background: var(--white);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.reason-item {
  text-align: center;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: var(--radius);
  transition: var(--transition);
}

.reason-item:hover {
  border-color: var(--primary);
  background: #f8faff;
}

.reason-item i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.reason-item p {
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- PERSUASIVE PARAGRAPHS --- */
.persuasion {
  padding: 60px 0;
  text-align: center;
  background: #f8f9fa;
}

.persuasion p {
  max-width: 800px;
  margin: 0 auto 20px auto;
  font-size: 1.1rem;
  color: var(--text-dark);
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border-left: 4px solid var(--primary);
}

/* --- CONTACT & NEWSLETTER --- */
.contact-section {
  padding: 60px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info div {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
}

.contact-info i {
  color: var(--primary);
  width: 25px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
}

.form-group textarea {
  height: 100px;
  resize: none;
}

.newsletter {
  background: var(--secondary);
  padding: 60px 0;
  text-align: center;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  text-align: left;
}

/* --- FOOTER --- */
footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  margin: 0 10px;
  color: var(--white);
  cursor: pointer;
}

.footer-links a:hover {
  color: var(--primary);
}

/* --- MODALS (Wishlist, Cart, Checkout, Policies) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--white);
  width: 90%;
  max-width: 600px;
  border-radius: var(--radius);
  padding: 25px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.close-modal {
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
}

.close-modal:hover {
  color: #000;
}

/* Cart & Wishlist Items */
.cart-item,
.wishlist-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.cart-item img,
.wishlist-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.item-details {
  flex: 1;
}

.item-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.item-price {
  color: var(--primary);
  font-weight: 700;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.qty-btn {
  width: 25px;
  height: 25px;
  background: #eee;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-btn {
  color: #ff4757;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 10px;
}

/* Cart Summary */
.cart-summary {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.summary-row.total {
  font-weight: 800;
  font-size: 1.1rem;
  border-top: 1px solid #ddd;
  padding-top: 8px;
  margin-top: 8px;
  color: var(--primary);
}

.free-delivery-msg {
  color: #28a745;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 5px;
  display: none;
}

/* Checkout Form */
.checkout-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.payment-options {
  margin: 15px 0;
  display: flex;
  gap: 15px;
}

.payment-opt {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.payment-opt.selected {
  border-color: var(--primary);
  background: #f0f4ff;
  color: var(--primary);
}

/* Policy Modal */
.policy-content {
  height: 300px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.policy-content h3 {
  margin-top: 15px;
  color: var(--text-dark);
}

/* Success Message */
.success-msg {
  text-align: center;
  padding: 30px;
}

.success-icon {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 20px;
  animation: pop 0.5s ease;
}

@keyframes pop {
  0% {
    transform: scale(0);
  }

  80% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .middle-bar {
    flex-direction: column;
    gap: 15px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .menu-list {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .mega-dropdown {
    display: none;
  }

  /* Disable hover mega menu on mobile */
  .floating-card {
    display: none;
  }

  .checkout-form .form-row {
    grid-template-columns: 1fr;
  }
}

  /* --- Modal Overlay --- */
        .modal {
            display: none; /* Hidden by default */
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.5);
            justify-content: center;
            align-items: center;
        }

        /* --- Modal Content --- */
        .modal-content {
            background-color: #ffffff;
            padding: 30px;
            border-radius: 12px;
            width: 90%;
            max-width: 400px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.2);
            position: relative;
       
            transition: all 0.3s ease;
        }

        /* --- Close Button --- */
        .close {
            position: absolute;
            top: 12px;
            right: 15px;
            font-size: 24px;
            font-weight: bold;
            color: #333;
            cursor: pointer;
        }

        /* --- Form Fields --- */
        .modal form {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-top: 10px;
        }

        input[type="email"],
        input[type="text"] {
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 8px;
            font-size: 16px;
        }

        label {
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        input[type="checkbox"] {
            width: 18px;
            height: 18px;
        }

        button {
            padding: 12px;
            
         
            font-size: 16px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

       

        /* --- Confirmation Message --- */
        .confirmation {
            display: none;
            font-size: 18px;
            color: #28a745;
            margin-top: 20px;
        }