/**
 * YensBaby Header & Footer Styling — Phase 10.27 Refinement
 */

/* Top Promotional Strip */
.yens-top-strip {
  background: linear-gradient(90deg, #4AAFE8 0%, #A8DFFF 100%);
  color: #0F172A;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0;
  text-align: center;
  position: relative;
  z-index: 100;
}

.yens-top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.yens-top-strip-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
}

.yens-top-strip-link {
  color: #0F172A;
  text-decoration: underline;
  margin-left: 0.5rem;
  font-weight: 800;
}

/* Main Header */
.yens-header {
  background-color: #FFFFFF;
  border-bottom: 1.5px solid #CFEAF8;
  position: sticky;
  top: 0;
  z-index: 990;
  transition: box-shadow 0.25s ease;
}

.yens-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(74, 175, 232, 0.12);
}

.yens-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  width: 100%;
}

/* Header Brand / Logo */
.yens-header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.yens-header-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.yens-header-logo:hover img {
  transform: scale(1.02);
}

/* Search Bar Component */
.yens-header-search {
  flex: 1 1 auto;
  max-width: 520px;
  min-width: 0;
  position: relative;
}

.yens-search-form {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.yens-search-input {
  width: 100%;
  padding: 0.65rem 2.75rem 0.65rem 1.1rem;
  font-size: 0.9rem;
  border-radius: 9999px;
  border: 1.5px solid #CFEAF8;
  background-color: #F7FBFF;
  color: #0F172A;
  transition: all 0.25s ease;
}

.yens-search-input:focus {
  background-color: #ffffff;
  border-color: #4AAFE8;
  box-shadow: 0 0 0 3.5px rgba(74, 175, 232, 0.18);
  outline: none;
}

.yens-search-btn {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background-color: #4AAFE8;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.yens-search-btn:hover {
  background-color: #38A3E0;
}

/* Header Actions / Utility */
.yens-header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}

.yens-action-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #0F172A;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 12px;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer !important;
  background: none;
  border: none;
  position: relative;
  z-index: 20;
  pointer-events: auto !important;
  user-select: none;
}

.yens-action-item * {
  pointer-events: none;
}

.yens-action-item:hover {
  background-color: #EAF7FF;
  color: #4AAFE8;
}

.yens-action-icon {
  font-size: 1.2rem;
  position: relative;
}

.yens-badge-counter {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: #4AAFE8;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* Category Navigation Bar */
.yens-navbar {
  background-color: #FFFFFF;
  border-top: 1px solid #CFEAF8;
  width: 100%;
}

.yens-nav-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.yens-nav-list::-webkit-scrollbar {
  display: none;
}

.yens-nav-item {
  position: relative;
  flex-shrink: 0;
}

.yens-nav-link {
  display: inline-block;
  padding: 0.75rem 0.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0F172A;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.yens-nav-link:hover, .yens-nav-link.is-active {
  color: #4AAFE8;
  border-bottom-color: #4AAFE8;
}

.yens-nav-link.yens-highlight {
  color: #D63031;
}

.yens-nav-link.yens-highlight:hover {
  color: #E17055;
  border-bottom-color: #D63031;
}

/* ==========================================================================
 * FOOTER COMPONENT — LIGHT BLUE & WHITE REDESIGN
 * ========================================================================== */
.yens-footer {
  background-color: #EAF7FF;
  color: #334155;
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  margin-top: 4rem;
  font-size: 0.9rem;
  border-top: 1.5px solid #CFEAF8;
}

.yens-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.yens-footer-brand-logo {
  display: inline-block;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(74, 175, 232, 0.12);
  border: 1px solid #CFEAF8;
  transition: transform 0.2s ease;
}

.yens-footer-brand-logo:hover {
  transform: scale(1.02);
}

.yens-footer-brand-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.yens-footer-brand p {
  color: #334155;
  margin-top: 1rem;
  margin-bottom: 1.2rem;
  max-width: 320px;
  line-height: 1.5;
}

.yens-footer-heading {
  color: #0F172A;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.yens-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
}

.yens-footer-links a {
  color: #334155;
  text-decoration: none;
  transition: color 0.2s ease;
}

.yens-footer-links a:hover {
  color: #4AAFE8;
}

.yens-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  color: #334155;
  font-size: 0.88rem;
}

.yens-footer-contact-item i {
  color: #4AAFE8;
  font-size: 1.1rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.yens-footer-contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 2px;
}

.yens-footer-wa-link {
  color: #4AAFE8;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.yens-footer-wa-link:hover {
  color: #38A3E0;
  text-decoration: underline;
}

/* Footer Bottom Copyright Bar — Horizontally Centered */
.yens-footer-bottom {
  border-top: 1px solid #CFEAF8;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 500;
}

.yens-copyright-text {
  width: 100%;
  text-align: center !important;
  margin: 0 auto;
}

.yens-payment-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.yens-pay-badge {
  background: #ffffff;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0F172A;
  border: 1px solid #CFEAF8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Floating Customer Service Chat Button */
.yens-floating-cs-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #4AAFE8;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(74, 175, 232, 0.45);
  z-index: 9999;
  text-decoration: none !important;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.yens-floating-cs-btn:hover {
  background-color: #38A3E0;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(74, 175, 232, 0.6);
  color: #ffffff !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
  .yens-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .yens-header-main {
    flex-wrap: wrap;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

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

  .yens-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .yens-footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .yens-floating-cs-btn {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
  }
}
