/* SHARED COMPONENTS: hero, dropdowns, whatsapp, etc. */

.hero-section {
  width: 100%;
  height: 75vh;
  overflow: hidden;
  margin-bottom: 2rem;
  background: var(--bg);
}

.hero-background {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-section .overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 1;
}

.hero-section .content-wrapper {
  position: relative;
  z-index: 2;
}

.wishlist-btn {
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.color-swatch.active {
  border: 3px solid var(--surface-contrast) !important;              /* was #000 */
  box-shadow: 0 0 0 2px var(--surface-strong),
              0 0 6px 2px rgba(0, 0, 0, 0.3);
}

.z-1050 { z-index: 1050; }

select.form-select:focus {
  box-shadow: none;
  border-color: var(--border-strong); /* was #ced4da */
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp-bg);
  color: var(--whatsapp-fg);
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: var(--whatsapp-fg);
}

/* Parent/child dropdown locking */
.dropdown-item-wrapper { position: relative; }

.dropdown-item-wrapper .child-dropdown-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  width: 800px;
  max-width: 90vw;
  z-index: 1050;
  background: var(--dropdown-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.dropdown-item-wrapper:hover .child-dropdown-menu {
  display: block;
}

.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu {
  margin-top: 0;
  background: var(--dropdown-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

@media (min-width: 992px) {
  .category-parent-wrapper:hover > .child-dropdown-menu {
    display: block !important;
  }
  .child-dropdown-menu a:hover {
    background: var(--dropdown-hover); /* was #f8f9fa */
  }
}

/* Submenu */
.dropdown:hover .submenu { display: block; }

.submenu {
  display: none;
  background: var(--dropdown-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dropdown-item {
  padding: 8px 16px;
  color: var(--muted-strong); /* was #333 */
}
.dropdown-item:hover {
  background: var(--dropdown-hover); /* was #f8f9fa */
}

/* “No products” state */
.no-products {
  color: var(--no-products-text);     /* was #777 */
  padding: 10px;
  text-align: center;
  background: var(--no-products-bg);  /* was #f1f1f1 */
}

/* Share */
.bi-share-fill:hover {
  color: var(--brand);
  transform: scale(1.1);
}
.share-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50% !important;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 8px var(--share-shadow);
  padding: 0 !important;
}
.share-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px var(--share-shadow);
}
.share-icon i {
  font-size: 1.5rem; line-height: 1;
}

/* Modals / inputs */
.modal-content {
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text);
}
.input-group input {
  border-radius: 8px 0 0 8px;
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border);
}
.input-group .btn {
  border-radius: 0 8px 8px 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
}

/* Mobile dropdown assist */
@media (max-width: 991px) {
  .category-parent-wrapper > a:focus + .child-dropdown-menu,
  .category-parent-wrapper:hover > .child-dropdown-menu {
    display: block !important;
  }
}
