:root {
  --primary-color: #FF6F61;
  /* Coral */
  --primary-dark: #D8433E;
  --accent-color: #FFF3E0;
  /* Light Peach */
  --text-dark: #333333;
  --text-light: #777777;
  --white: #ffffff;
  --light-gray: #f9f6f2;
  --border-color: #e8dad0;
  --success: #4CAF50;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--light-gray);
  color: var(--text-dark);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

/* --- HEADER SECTION --- */

/* Top Bar */
.top-bar {
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 1001;
}

/* Middle Bar */
.middle-bar {
  background: var(--white);
  padding: 15px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Search Bar */
.search-container {
  flex: 1;
  max-width: 500px;
  position: relative;
  margin: 0 20px;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  padding-right: 45px;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--accent-color);
}

.search-icon-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  background: none;
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-top: 10px;
  display: none;
  /* Hidden by default */
  max-height: 300px;
  overflow-y: auto;
  z-index: 1002;
}

.search-results.active {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--light-gray);
  cursor: pointer;
  transition: var(--transition);
}

.search-item:hover {
  background-color: var(--accent-color);
}

.search-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 12px;
}

.search-item-info h4 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.search-item-info p {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
}

.no-results {
  padding: 15px;
  text-align: center;
  color: var(--text-light);
}

/* Header Icons */
.header-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.icon-wrap {
  position: relative;
  font-size: 1.4rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.icon-wrap:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary-color);
  color: var(--white);
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Mega Menu (Last Bar) */
.nav-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
}

.nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
  background: var(--light-gray);
}

/* Mega Menu Dropdown */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 600px;
  /* Wide menu */
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 20px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  z-index: 999;
  border: 1px solid var(--border-color);
}

.nav-item:hover .mega-menu {
  display: grid;
}

.mm-column h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 5px;
}

.mm-column ul li {
  margin-bottom: 8px;
}

.mm-column ul li a {
  font-size: 0.9rem;
  color: var(--text-light);
  transition: var(--transition);
}

.mm-column ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.mm-featured img {
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.mm-featured h4 {
  font-size: 0.9rem;
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(135deg, var(--primary-color), #D8433E);
  color: var(--white);
  padding: 80px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 50%;
  z-index: 2;
  animation: fadeInLeft 1s ease;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--light-gray);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* Floating Cards Animation */
.hero-visual {
  position: relative;
  width: 40%;
  height: 400px;
}

.floating-card {
  position: absolute;
  background: var(--white);
  padding: 10px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 180px;
  animation: float 6s ease-in-out infinite;
}

.floating-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
}

.floating-card h5 {
  font-size: 0.8rem;
  color: var(--text-dark);
}

.floating-card span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
}

.fc-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.fc-2 {
  top: 50%;
  left: 40%;
  animation-delay: 2s;
  z-index: 3;
}

.fc-3 {
  top: 10%;
  left: 50%;
  animation-delay: 1s;
  z-index: 1;
  opacity: 0.8;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- ABOUT SECTION --- */
.about {
  padding: 60px 5%;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  background: var(--white);
}

.about-card {
  flex: 1;
  text-align: center;
  padding: 20px;
}

.about-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.about-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.about-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* --- PRODUCT CATEGORY SECTION --- */
.products-section {
  padding: 60px 5%;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--text-dark);
}

.section-title span {
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  display: block;
  margin: 10px auto;
  border-radius: 2px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.p-img-container {
  height: 300px;
  overflow: hidden;
  position: relative;
}

.p-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .p-img-container img {
  transform: scale(1.1);
}

.p-details {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.p-cat {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.p-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 5px 0 10px;
}

.p-price {
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 10px;
}

.p-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.4;
  flex-grow: 1;
}

.p-actions {
  display: flex;
  gap: 10px;
}

.btn-cart {
  flex: 1;
  padding: 8px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 6px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-cart:hover {
  background: var(--primary-dark);
}

.btn-wish {
  width: 40px;
  background: var(--light-gray);
  color: var(--text-dark);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-wish:hover {
  background: #ffecec;
  color: #ff4757;
}

/* --- 8 REASONS --- */
.reasons {
  padding: 60px 5%;
  background: var(--white);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.reason-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: var(--transition);
}

.reason-item:hover {
  border-color: var(--primary-color);
  background: var(--accent-color);
}

.reason-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 3px;
}

.reason-item h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.reason-item p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- PERSUASIVE TEXT --- */
.persuasive {
  padding: 60px 10%;
  text-align: center;
}

.persuasive p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 60px 5%;
  background: var(--white);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info,
.contact-form {
  flex: 1;
  min-width: 300px;
}

.info-box {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: center;
}

.info-box i {
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* --- NEWSLETTER --- */
.newsletter {
  padding: 60px 5%;
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
}

.newsletter-form {
  max-width: 500px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.newsletter-row {
  display: flex;
  gap: 10px;
}

.newsletter input {
  padding: 12px;
  border-radius: 8px;
  border: none;
  flex: 1;
}

.newsletter .checkbox-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
}

.btn-sub {
  background: var(--text-dark);
  color: var(--white);
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-sub:hover {
  background: #000;
}

/* --- FOOTER --- */
footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 50px 5% 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  transition: var(--transition);
  cursor: pointer;
}

.footer-col ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* --- MODALS --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  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: 500px;
  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);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-light);
}

/* Cart/Wishlist Items inside Modal */
.modal-item {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.modal-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.item-info {
  flex: 1;
}

.item-info h4 {
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.item-info p {
  color: var(--primary-color);
  font-weight: 600;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.qty-btn {
  width: 25px;
  height: 25px;
  background: var(--light-gray);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-summary {
  background: var(--light-gray);
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.summary-row.total {
  font-weight: 700;
  font-size: 1.1rem;
  border-top: 1px solid #ddd;
  padding-top: 8px;
  color: var(--primary-color);
}

/* Checkout Form */
.checkout-form {
  display: grid;
  gap: 15px;
}

.payment-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 15px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
  }

  .hero-content {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .hero-visual {
    width: 100%;
    height: 300px;
  }

  .hero-btns {
    justify-content: center;
  }

  .middle-bar {
    flex-direction: column;
    gap: 15px;
  }

  .search-container {
    width: 100%;
    margin: 10px 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
  }

  .mega-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    display: none;
    border: none;
    padding: 10px;
    background: var(--light-gray);
  }

  .nav-item:hover .mega-menu {
    display: block;
  }

  .about {
    flex-direction: column;
  }

  .contact-container {
    flex-direction: column;
  }

  .newsletter-row {
    flex-direction: column;
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--text-dark);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transform: translateY(100px);
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateY(0);
}

.toast.success {
  border-left: 5px solid var(--success);
}