/* ---------- Reset Styles ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #fff;
  color: #222;
  line-height: 1.6;
}

/* ---------- Header ---------- */
.header {
  width: 100%;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 60px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 26px;
  font-weight: bold;
}

.logo-online {
  color: #fbbf24; /* Golden shade */
}

.logo-shop {
  color: #fff;
}

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  align-items: center;
  gap: 25px;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  padding: 5px 8px;
  transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
  color: #fbbf24;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 100;
}

.dropdown-content a {
  color: #222;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background: #f4f4f4;
  color: #fbbf24;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ---------- Utility Icons ---------- */
.utility-icons a {
  color: #fff;
  font-size: 22px;
  margin-left: 15px;
  transition: 0.3s;
  position: relative;
}

.utility-icons a:hover {
  color: #fbbf24;
}

.cart-icon {
  position: relative;
}

.cart-item-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #fbbf24;
  color: #111;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ---------- Home Section ---------- */
.home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 60px;
  background: #fafafa;
}

.home-content {
  max-width: 600px;
}

.home-content h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.home-content h3 {
  font-size: 22px;
  color: #555;
  margin-bottom: 15px;
}

.home-content p {
  margin-bottom: 20px;
  color: #444;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #fbbf24;
  color: #111;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
}

.btn:hover {
  background: #111;
  color: #fff;
}

.home img {
  max-width: 750px;
  border-radius: 10px;
}

/* ---------- Sections ---------- */
.section-title {
  text-align: center;
  font-size: 28px;
  margin: 40px 0 20px;
  color: #111;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  padding: 0 60px 40px;
}

.product-card {
  background: #fcf5f5;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s;;
}

.product-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
}

.product-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.product-card p {
  color: #333;
  font-weight: bold;
}

.product-card:hover {
  transform: translateY(-6px);
}

.add-to-cart-btn {
  background: #fbbf24;
  color: #111;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
  width: 100%;
}

.add-to-cart-btn:hover {
  background: #111;
  color: #fff;
}

/* Discounts */
.product-card.discount p {
  color: #d32f2f;
}

.old-price {
  text-decoration: line-through;
  color: #888;
  margin-right: 8px;
}

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(90deg, #000000 0%, #797070 100%);
  color: #fff;
  padding: 22px 60px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -2px 16px rgba(102,126,234,0.10);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
  flex-wrap: wrap;
}

.footer-text {
  font-size: 17px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.5px;
}

.shop-now-btn {
  display: inline-block;
  padding: 10px 22px;
  background: #fbbf24;
  color: #764ba2;
  font-weight: bold;
  border-radius: 8px;
  margin: 0 10px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  box-shadow: 0 2px 8px rgba(102,126,234,0.07);
}

.shop-now-btn:hover {
  background: #fff;
  color: #764ba2;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  color: #fff;
  font-size: 24px;
  transition: color 0.3s;
  padding: 0 2px;
}

.social-icons a:hover {
  color: #fbbf24;
}

/* Responsive Footer */
@media (max-width: 700px) {
  .footer-content {
    flex-direction: column;
    gap: 12px;
  }
  .footer {
    padding: 18px 10px;
    border-radius: 0;
  }
  .footer-text {
    font-size: 15px;
  }
  .shop-now-btn {
    font-size: 15px;
    padding: 8px 16px;
  }
  .social-icons a {
    font-size: 20px;
  }
}

/* ---------- Shopping Cart Modal ---------- */
.cart-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.cart-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 0;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cart-header {
  background: #111;
  color: #fff;
  padding: 20px;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  margin: 0;
  font-size: 24px;
}

.cart-close {
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.cart-close:hover {
  color: #fbbf24;
}

.cart-items {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 15px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.cart-item-price {
  color: #fbbf24;
  font-weight: bold;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.quantity-btn {
  background: #f0f0f0;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.quantity-btn:hover {
  background: #fbbf24;
}

.remove-btn {
  background: #dc3545;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  transition: 0.3s;
  margin-left: 10px;
}

.remove-btn:hover {
  background: #c82333;
  transform: scale(1.1);
}

.cart-footer {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 0 0 10px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total {
  font-size: 18px;
}

.btn-checkout {
  background: #fbbf24;
  color: #111;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-checkout:hover {
  background: #111;
  color: #fff;
}

.empty-cart {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.empty-cart i {
  font-size: 48px;
  margin-bottom: 15px;
  color: #ddd;
}

/* ---------- Product Category Popup ---------- */
.product-category-popup {
  position: fixed;
  top: 0; left: 0; width: 70vw; height: 50vh;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.product-category-popup .popup-content {
  background: linear-gradient(90deg, #000000 0%, #797070 100%);
  border-radius: 14px;
  padding: 32px 28px 24px 28px;
  min-width: 420px;
  max-width: 500px;
  width: 10vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  animation: fadeScaleIn 0.3s;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.product-category-popup h2 {
  text-align: center;
  margin-bottom: 18px;
  font-size: 22px;
  color: #111;
}

.category-section {
  margin-bottom: 18px;
}

.category-section h3 {
  margin-bottom: 8px;
  color: #764ba2;
  font-size: 18px;
}

.category-section ul {
  list-style: none;
  padding-left: 0;
}

.category-section li {
  margin-bottom: 8px;
}

.category-section a {
  color: #667eea;
  font-size: 16px;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}

.category-section a:hover {
  background: #fbbf24;
  color: #111;
}

.close-popup {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 28px;
  color: #764ba2;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s;
}

.close-popup:hover {
  color: #fbbf24;
}

@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(0.75);}
  to { opacity: 1; transform: scale(1);}
}

/* ---------- Search Bar ---------- */
.search-bar-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 30px 0 10px 0;
}

#homeSearchInput {
  width: 350px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #eee;
  font-size: 16px;
  transition: box-shadow 0.2s;
}

#homeSearchInput:focus {
  box-shadow: 0 2px 8px rgba(102,126,234,0.10);
  outline: none;
}

/* ---------- Global Search Popup ---------- */
.global-search-popup {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
}

.global-search-content {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 24px 28px;
  min-width: 350px;
  max-width: 95vw;
  box-shadow: 0 8px 32px rgba(102,126,234,0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.close-global-search {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 28px;
  color: #764ba2;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s;
}

.close-global-search:hover {
  color: #fbbf24;
}

#globalSearchInput {
  width: 100%;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid #eee;
  font-size: 18px;
  margin-bottom: 10px;
}

#globalSearchResults {
  max-height: 350px;
  overflow-y: auto;
}

.global-search-result-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.global-search-result-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.global-search-result-info h4 {
  margin: 0 0 4px 0;
  font-size: 17px;
  color: #764ba2;
}

.global-search-result-info p {
  margin: 0;
  color: #333;
  font-size: 15px;
}

.global-search-result-info .category {
  font-size: 13px;
  color: #667eea;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .home {
    flex-direction: column;
    text-align: center;
  }

  .home img {
    margin-top: 20px;
  }

  .navbar {
    gap: 15px;
  }
}

@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar {
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .navbar .dropbtn {
    font-size: 14px;
  }

  .footer-text {
    font-size: 14px;
  }

  .social-icons a {
    font-size: 14px;
    padding: 6px 12px;
  }

  .shop-now-btn {
    font-size: 16px;
    padding: 10px 20px;
  }

  .btn-checkout {
    font-size: 16px;
  }

  .cart-total {
    font-size: 16px;
  }

  .cart-item-price {
    font-size: 14px;
  }

}
  .cart-item-name {
    font-size: 14px;
  }

  .cart-item img {
    height: 50px;
    width: 50px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .popup-content {
    width: 95%;
  }

/* Product Category Popup Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  padding: 32px 0 0 0;
  justify-items: center;
}

.category-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f2ff 100%);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(102,126,234,0.10);
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
  position: relative;
  text-align: center;
}

.category-card:hover {
  box-shadow: 0 8px 32px rgba(102,126,234,0.18);
  transform: translateY(-4px) scale(1.04);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.category-icon {
  font-size: 48px;
  color: #764ba2;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.category-card:hover .category-icon {
  color: #fbbf24;
}

.category-card span {
  font-size: 17px;
  font-weight: 500;
  color: #764ba2;
  transition: color 0.3s;
}

.category-card:hover span {
  color: #fff;
}

/* ---------- Product Popup Gradient Background */
.product-popup-gradient {
  background: linear-gradient(120deg, #1565c0 0%, #a259c6 100%);
  box-shadow: 0 8px 32px rgba(102,126,234,0.18);
  border-radius: 24px;
  padding: 38px 48px 38px 48px;
  min-width: 340px;
  max-width: 520px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Center the popup vertically and horizontally */
.product-category-popup {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

/* Popup Title */
.popup-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 32px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* Category Row */
.popup-category-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  width: 100%;
}

/* Category Column */
.popup-category-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Category Headings */
.popup-category-heading {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.popup-category-heading.men {
  color: #ffd600;
}

.popup-category-heading.women {
  color: #ffd600;
}

/* Popup Buttons */
.popup-btn {
  background: #b2f7ef;
  color: #222;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  border-radius: 28px;
  padding: 10px 32px;
  margin-bottom: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(102,126,234,0.10);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  width: 180px;
  text-align: center;
}

.popup-btn:hover {
  background: #ffd600;
  color: #222;
  transform: scale(1.05);
}

/* Close Button */
.close-popup {
  position: absolute;
  top: 18px;
  right: 28px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s;
  z-index: 10;
}

.close-popup:hover {
  color: #ffd600;
}

/* Responsive */
@media (max-width: 700px) {
  .product-popup-gradient {
    padding: 18px 8px 18px 8px;
    min-width: 0;
    max-width: 98vw;
  }
  .popup-category-row {
    flex-direction: column;
    gap: 28px;
    align-items: center;
  }
  .popup-btn {
    width: 120px;
    font-size: 1rem;
    padding: 8px 12px;
  }
  .popup-title {
    font-size: 1.2rem;
    margin-bottom: 18px;
  }
}






/* ---------- Chatbot Widget ---------- */
.chatbot-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 5000;
}

.chatbot-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #fbbf24;
  color: #111;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.chatbot-toggle:hover { transform: scale(1.05); }

.chatbot-window {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 320px;
  max-height: 60vh;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  overflow: hidden;
  display: none;
}

.chatbot-window.open { display: flex; flex-direction: column; }

.chatbot-header {
  background: #111;
  color: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.chatbot-messages {
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chatbot-msg { max-width: 85%; padding: 10px 12px; border-radius: 12px; line-height: 1.4; font-size: 14px; }
.chatbot-msg.bot { background: #f3f4f6; color: #111; border-top-left-radius: 4px; }
.chatbot-msg.user { background: #fbbf24; color: #111; align-self: flex-end; border-top-right-radius: 4px; }

.chatbot-input {
  display: flex;
  padding: 10px;
  gap: 8px;
  border-top: 1px solid #eee;
}

.chatbot-input input {
  flex: 1;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.chatbot-send {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 480px) {
  .chatbot-window { width: 92vw; right: -6px; }
}
