/* ================= NAVBAR ================= */
.navbar {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 30px;
  gap: 100px;
  /* position: relative; */
}
.logo-section img{
  /* position: absolute; */
  align-items: left;
}

/* ================= LOGO SECTION ================= */
.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-section img {
  height: 80px;
  width: auto;

}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #4a1e7c;
  line-height: 1;
}

.brand-tagline {
  font-size: 10px;
  color: #888;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ================= SEARCH BAR ================= */
.search-container {
  flex: 1;
  max-width: 500px;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 11px 45px 11px 18px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 14px;
  transition: all 0.3s;
  outline: none;
}

.search-input:focus {
  border-color: #6b2d8e;
  box-shadow: 0 0 0 3px rgba(107, 45, 142, 0.1);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: #6b2d8e;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

.search-btn:hover {
  background: #4a1e7c;
}

/* ================= NAVIGATION MENU ================= */
.nav-menu {
  display: flex;
  gap: 35px;
  list-style: none;
  align-items: center;
  margin: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-link:hover {
  color: #6b2d8e;
}

.nav-link i {
  font-size: 18px;
}

/* ================= DROPDOWN MENU ================= */
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  margin-top: 10px;
  z-index: 100;
}

.nav-item:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  margin-top: 5px;
}

.dropdown-item {
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  display: block;
  font-size: 14px;
  transition: all 0.2s;
  position: relative;
}

.dropdown-item:hover {
  background: #f5f5f5;
  color: #6b2d8e;
  padding-left: 25px;
}

/* ================= IMAGE HOVER PANEL (VERTICAL) ================= */
.dropdown-item-with-images {
  position: relative;
}

.image-hover-panel {
  position: absolute;
  left: 100%;
  top: 0;
  background: white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 15px;
  width: 420px;
  max-height: 450px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  margin-left: 10px;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
}

.dropdown-item:hover .image-hover-panel {
  opacity: 1;
  visibility: visible;
  margin-left: 5px;
}

/* Image Grid inside panel */
.image-hover-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hover-image-item {
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  padding: 10px;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
}

.hover-image-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(107, 45, 142, 0.15);
  border-color: #6b2d8e;
}

.hover-image-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}

.hover-image-title {
  font-size: 12px;
  color: #333;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 32px;
}

.hover-image-price {
  font-size: 11px;
  color: #6b2d8e;
  font-weight: 600;
}

/* Custom Scrollbar - Thin and Compact */
.image-hover-panel::-webkit-scrollbar {
  width: 5px;
}

.image-hover-panel::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}

.image-hover-panel::-webkit-scrollbar-thumb {
  background: rgba(107, 45, 142, 0.3);
  border-radius: 10px;
  transition: background 0.3s;
}

.image-hover-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 45, 142, 0.6);
}

/* Firefox scrollbar */
.image-hover-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 45, 142, 0.3) transparent;
}

/* Panel Header (optional - can show category title) */
.image-panel-header {
  grid-column: 1 / -1;
  font-size: 14px;
  font-weight: 600;
  color: #4a1e7c;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 8px;
}


/* ================= ACTION ICONS ================= */
/* Action icons area aligned to right */
.action-icons {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: auto; /* Push to right side */
}

/* Individual icon buttons */
.action-icons .icon-btn {
  text-decoration: none;
  color: #333;
  font-size: 20px;
  transition: color 0.3s ease;
}

.action-icons .icon-btn:hover {
  color: #6b2d8e;
}

.icon-btn {
  color: #333;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  position: relative;
}

.icon-btn:hover {
  color: #6b2d8e;
  transform: scale(1.1);
}

.icon-btn.active {
  color: #6b2d8e;
}

/* ================= MOBILE TOGGLE ================= */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  padding: 5px;
}

/* ================= SECONDARY NAVIGATION ================= */
.secondary-nav {
  background: #fafafa;
  border-top: 1px solid #eee;
  padding: 0;
  position: sticky;
}

.secondary-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 45px;
  padding: 12px 30px;
  flex-wrap: wrap;
}

.secondary-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap;
}

.secondary-link:hover {
  color: #6b2d8e;
}

/* ================= CART SECTION STYLES ================= */
.cart-section {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 30px;
}

.cart-container {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.cart-header {
  margin-bottom: 30px;
}

.cart-header h1 {
  color: #4a1e7c;
  font-size: 32px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-header p {
  color: #666;
  font-size: 16px;
}

.cart-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: #fafafa;
  border-radius: 10px;
  transition: box-shadow 0.3s;
}

.cart-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.item-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.item-details h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 5px;
}

.item-description {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.item-price {
  font-size: 16px;
  font-weight: 600;
  color: #4a1e7c;
}

.item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: #6b2d8e;
  color: white;
  border-color: #6b2d8e;
}

.quantity {
  width: 50px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px;
  font-size: 14px;
}

.item-total {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  min-width: 100px;
  text-align: right;
}

.remove-item {
  background: none;
  border: none;
  color: #e74c3c;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s;
  padding: 5px;
}

.remove-item:hover {
  color: #c0392b;
}

.cart-summary {
  background: #fafafa;
  padding: 25px;
  border-radius: 10px;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.cart-summary h2 {
  font-size: 22px;
  color: #333;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 15px;
}

.summary-row.total {
  font-size: 20px;
  font-weight: 700;
  color: #4a1e7c;
  padding-top: 15px;
}

.cart-summary hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 15px 0;
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  background: #6b2d8e;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.checkout-btn:hover {
  background: #4a1e7c;
}

.continue-shopping {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: #6b2d8e;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.continue-shopping:hover {
  color: #4a1e7c;
}

.text-success {
  color: #28a745;
}

/* ================= PROFILE SECTION STYLES ================= */
.profile-section {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 30px;
}

.profile-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}

.profile-sidebar {
  background: #fafafa;
  padding: 30px 0;
}

.profile-header {
  text-align: center;
  padding: 0 20px 25px;
  border-bottom: 1px solid #e0e0e0;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  color: #6b2d8e;
  font-size: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-header h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 5px;
}

.profile-header p {
  font-size: 13px;
  color: #666;
}

.profile-nav {
  padding: 20px 0;
}

.profile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 25px;
  color: #666;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.profile-nav-item:hover {
  background: #f0f0f0;
  color: #6b2d8e;
}

.profile-nav-item.active {
  background: #f0f0f0;
  color: #6b2d8e;
  border-left-color: #6b2d8e;
  font-weight: 600;
}

.profile-nav-item.logout {
  color: #e74c3c;
  margin-top: 20px;
}

.profile-nav-item.logout:hover {
  background: #ffe8e8;
  color: #c0392b;
}

.profile-content {
  padding: 40px;
}

.profile-section-content {
  display: none;
}

.profile-section-content.active {
  display: block;
}

.profile-section-content h2 {
  font-size: 28px;
  color: #4a1e7c;
  margin-bottom: 25px;
}

.profile-form {
  max-width: 800px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: #6b2d8e;
  box-shadow: 0 0 0 3px rgba(107, 45, 142, 0.1);
}

.btn-primary {
  padding: 12px 30px;
  background: #6b2d8e;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #4a1e7c;
}

.btn-outline {
  padding: 8px 20px;
  background: white;
  color: #6b2d8e;
  border: 1px solid #6b2d8e;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: #6b2d8e;
  color: white;
}

.btn-danger {
  padding: 10px 25px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-danger:hover {
  background: #c0392b;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-card {
  padding: 25px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.order-header h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 5px;
}

.order-header p {
  font-size: 13px;
  color: #666;
}

.order-status {
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.order-status.delivered {
  background: #d4edda;
  color: #155724;
}

.order-items {
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
}

.order-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.order-item-details h4 {
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
}

.order-item-details p {
  font-size: 13px;
  color: #666;
  margin-bottom: 3px;
}

.order-price {
  font-weight: 600;
  color: #4a1e7c;
}

.order-actions {
  display: flex;
  gap: 15px;
}

.addresses-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.address-card {
  padding: 25px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.3s;
}

.address-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.address-card.add-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b2d8e;
  border: 2px dashed #6b2d8e;
  background: white;
}

.address-card.add-new:hover {
  background: #f9f5ff;
}

.address-card.add-new i {
  font-size: 40px;
  margin-bottom: 10px;
}

.address-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.address-header h3 {
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.default-badge {
  background: #6b2d8e;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.address-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.address-actions {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 15px;
}

.btn-text {
  background: none;
  border: none;
  color: #6b2d8e;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s;
}

.btn-text:hover {
  color: #4a1e7c;
}

.btn-text.text-danger {
  color: #e74c3c;
}

.btn-text.text-danger:hover {
  color: #c0392b;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.wishlist-item {
  background: #fafafa;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.wishlist-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.wishlist-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.wishlist-details {
  padding: 15px;
}

.wishlist-details h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
}

.wishlist-price {
  font-size: 18px;
  font-weight: 700;
  color: #4a1e7c;
  margin-bottom: 12px;
}

.wishlist-actions {
  display: flex;
  gap: 10px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: #e74c3c;
}

.btn-icon:hover {
  background: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

.settings-section {
  max-width: 600px;
  margin-bottom: 40px;
}

.settings-section h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 15px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ================= RESPONSIVE STYLES ================= */
@media (max-width: 1024px) {
  .navbar-container {
    padding: 12px 20px;
    gap: 20px;
  }

  .secondary-container {
    padding: 12px 20px;
    gap: 30px;
  }

  .cart-content {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

  .profile-container {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    padding: 20px;
  }

  .profile-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .profile-nav-item {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 10px 15px;
  }

  .profile-nav-item.active {
    border-left: none;
    border-bottom-color: #6b2d8e;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .search-container {
    max-width: 100%;
    flex: 1;
  }

  .secondary-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .secondary-container {
    justify-content: flex-start;
    gap: 20px;
  }

  .brand-tagline {
    display: none;
  }

  .logo-section img {
    height: 38px;
  }

  .brand-name {
    font-size: 18px;
  }

  .action-icons {
    gap: 15px;
  }

  .icon-btn {
    font-size: 20px;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 15px;
  }

  .item-image img {
    width: 80px;
    height: 80px;
  }

  .item-quantity,
  .item-total,
  .remove-item {
    grid-column: 2;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .profile-content {
    padding: 25px 20px;
  }
}

@media (max-width: 576px) {
  .navbar-container {
    flex-wrap: wrap;
    padding: 10px 15px;
  }

  .search-container {
    order: 3;
    width: 100%;
    max-width: 100%;
  }

  .action-icons {
    gap: 12px;
  }

  .icon-btn {
    font-size: 18px;
  }

  .cart-section,
  .profile-section {
    padding: 0 15px;
  }

  .cart-container {
    padding: 20px 15px;
  }

  .cart-header h1 {
    font-size: 24px;
  }

  .addresses-list,
  .wishlist-grid {
    grid-template-columns: 1fr;
  }
}

/* Fix dropdown product layout */
.dropdown-menu-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden; /* no horizontal scroll */
  padding: 15px;
  box-sizing: border-box;
  width: 100%;
  max-width: 600px; /* adjust as per your design */
}

/* Each product card */
.dropdown-menu-products .product-card {
  background: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.dropdown-menu-products img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

