/* ================= HEADER ================= */
header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

/* Top bar details */
.top-bar {
  background: linear-gradient(90deg, #fff5f8 0%, #ffffff 50%, #fff5f8 100%);
  border-bottom: 1px solid rgba(235, 8, 109, 0.12);
  font-size: 0.83rem;
  padding: 7px 0;
  color: var(--text-dark);
  max-height: 40px;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    padding 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    margin 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.top-delivery {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-dark);
  font-weight: 500;
}

.top-delivery-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #eb086d, #ff4b93);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(235, 8, 109, 0.22);
  text-transform: uppercase;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-links {
  display: flex;
  gap: 20px;
}

.top-bar-links a:hover {
  color: var(--text-dark);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lang-selector {
  position: relative;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  font-weight: 500;
  color: var(--text-dark);
}

/* Main header */
.main-header {
  padding: 20px 0;
  transition: padding 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-header .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  transition: gap 0.3s ease;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  font-family: var(--font-primary);
  max-width: 170px;
  opacity: 1;
  transition: max-width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    margin-right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    visibility 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  white-space: nowrap;
}

.logo span {
  color: var(--primary-color);
}

.logo-img {
  height: 1.1em;
  width: auto;
  margin-right: 0.25em;
  object-fit: contain;
  vertical-align: middle;
}

/* Search bar with category dropdown */
.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 650px;
  margin-left: max(0px, calc(50% - 325px));
  margin-right: max(0px, calc(50% - 325px));
  z-index: 1001;
  transition: max-width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    margin-left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    margin-right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header-search {
  display: flex;
  background-color: var(--bg-color);
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  overflow: hidden;
  height: 46px;
  width: 100%;
}

.search-select {
  border: none;
  background: transparent;
  padding: 0 15px;
  color: var(--text-color);
  font-size: 0.85rem;
  font-weight: 500;
  border-right: 1px solid var(--border-color);
  border-radius: 0;
  cursor: pointer;
}

.search-mobile-menu-btn {
  display: none;
}

.search-input {
  border: none;
  background: transparent;
  flex: 1;
  padding: 0 20px;
  color: var(--text-dark);
}

.search-btn {
  background-color: var(--primary-color);
  border: none;
  color: var(--bg-white);
  padding: 0 25px;
  font-weight: 700;
  border-radius: 0;
  transition: var(--transition);
}

.search-btn:hover {
  background-color: var(--primary-hover);
}

/* Action icons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.action-btn {
  position: relative;
  font-size: 1.5rem;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.action-btn:hover {
  color: var(--primary-hover);
}

.action-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  font-size: 0.7rem;
  font-weight: 700;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-account-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.user-account-menu i {
  font-size: 1.4rem;
}

.account-info {
  font-size: 0.8rem;
  line-height: 1.2;
}

.account-info span {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
}

/* Navigation Menu */
.nav-bar {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
  color: var(--text-dark);
  height: 50px;
  transition: height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-bar .container {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 290px;
}

/* Vertical Category Sidebar Dropdown */
.category-dropdown {
  position: absolute;
  left: 20px;
  top: 0;
  width: 270px;
  height: 50px;
  transition: top 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 105;
}

.category-toggle {
  background-color: var(--primary-color);
  color: var(--bg-white);
  font-weight: 700;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-family: var(--font-primary);
  border: none;
  border-radius: 0;
  font-size: 0.95rem;
}

.category-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-top: none;
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 99;
}

.category-menu.active {
  display: block;
}

.category-menu li {
  border-bottom: 1px solid var(--bg-color);
}

.category-menu li a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
}

.category-menu li a:hover {
  background-color: var(--bg-color);
  color: var(--primary-hover);
  padding-left: 25px;
}

/* Main Navbar Navigation */
.nav-menu {
  display: flex;
  gap: 30px;
  margin-left: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 1;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    visibility 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-menu a {
  color: var(--text-color);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}


/* ================= PRODUCT CARDS ================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 15px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
  transform: translateY(-4px);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.product-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  color: var(--text-light);
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.8);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.product-wishlist-btn:hover,
.product-wishlist-btn.active {
  color: var(--danger-color);
  background-color: var(--bg-white);
  border-color: var(--danger-color);
}

.product-image-container {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 15px;
  position: relative;
  background: linear-gradient(90deg, var(--bg-color) 25%, var(--border-color) 50%, var(--bg-color) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--border-radius);
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.product-image-container img {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.4s ease;
  opacity: 0;
}

.product-image-container img.loaded {
  opacity: 1;
}

.product-card:hover .product-image-container img {
  transform: scale(1.08);
}

.product-category-tag {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 5px;
  text-transform: uppercase;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--text-dark);
}

.product-title:hover {
  color: var(--primary-hover);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--rating-color);
  margin-bottom: 10px;
}

.product-rating-count {
  color: var(--text-light);
  font-size: 0.75rem;
}

.product-price-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  display: flex;
  flex-direction: column;
}

.price-current {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.price-original {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--text-light);
}

.add-to-cart-btn {
  background-color: var(--primary-color);
  border: none;
  color: var(--bg-white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.add-to-cart-btn:hover {
  background-color: var(--secondary-color);
  color: var(--bg-white);
}


/* ================= SIDE CART DRAWER ================= */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  z-index: 10000001;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.active {
  right: 0;
}

.cart-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 10000000;
  display: none;
}

.cart-drawer-backdrop.active {
  display: block;
}

.cart-drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-close {
  font-size: 1.5rem;
  color: var(--text-dark);
  background: none;
  border: none;
  cursor: pointer;
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-drawer-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--bg-color);
  padding-bottom: 15px;
  position: relative;
}

.cart-drawer-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.cart-drawer-item-details {
  flex: 1;
  padding-right: 28px;
}

.cart-drawer-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
  line-height: 1.35;
}

.cart-drawer-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.cart-drawer-item-qty {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 5px;
}

/* ================= CUSTOM CONFIRMATION POPUP MODAL ================= */
.confirm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200000000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.confirm-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.confirm-modal-card {
  position: relative;
  z-index: 200000001 !important;
  background: #ffffff;
  border-radius: 24px;
  padding: 35px 30px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(235, 8, 109, 0.22);
  transform: scale(0.88) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(235, 8, 109, 0.15);
}

.confirm-modal-backdrop.active .confirm-modal-card {
  transform: scale(1) translateY(0);
}

.confirm-modal-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fff5f8;
  border: 2px solid rgba(235, 8, 109, 0.2);
  color: var(--primary-color);
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 8px 20px rgba(235, 8, 109, 0.15);
}

.confirm-modal-card h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-family: var(--font-primary);
}

.confirm-modal-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 28px;
}

.confirm-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-confirm-cancel {
  flex: 1;
  height: 46px;
  border-radius: 12px;
  background: #f1f5f9;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-confirm-cancel:hover {
  background: #e2e8f0;
}

.btn-confirm-delete {
  flex: 1.2;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eb086d, #ff4b93);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(235, 8, 109, 0.3);
  transition: all 0.25s ease;
}

.btn-confirm-delete:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(235, 8, 109, 0.4);
}

/* Coupon Button & Modal Chips */
.coupon-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff5f8;
  color: var(--primary-color);
  border: 1px solid rgba(235, 8, 109, 0.25);
  border-radius: 50%;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(235, 8, 109, 0.1);
}

.coupon-trigger-btn:hover {
  background: linear-gradient(135deg, #eb086d, #ff4b93);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(235, 8, 109, 0.35);
  transform: scale(1.08) rotate(-8deg);
}

.sample-coupon-chip:hover {
  border-color: var(--primary-color) !important;
  box-shadow: 0 4px 12px rgba(235, 8, 109, 0.12);
  transform: translateY(-1px);
}

.cart-drawer-item-remove {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cart-drawer-item-remove:hover {
  color: var(--danger-color);
  transform: scale(1.15);
}

.cart-drawer-footer {
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-color);
  background-color: #f8f9fa;
}

.cart-drawer-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.cart-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* ================= FOOTER ================= */
footer {
  background-color: #f8f9fa;
  color: var(--text-color);
  font-size: 0.85rem;
  padding-top: 60px;
  border-top: 4px solid var(--primary-color);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.footer-logo span {
  color: var(--primary-color);
}

.footer-info-text {
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--text-color);
}

.footer-social-links {
  display: flex;
  gap: 12px;
  margin: 15px 0 20px;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer-social-links a:hover {
  transform: translateY(-3px);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.footer-social-links a.facebook:hover {
  background-color: #1877f2;
  border-color: #1877f2;
}

.footer-social-links a.youtube:hover {
  background-color: #ff0000;
  border-color: #ff0000;
}

.footer-social-links a.linkedin:hover {
  background-color: #0a66c2;
  border-color: #0a66c2;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-contact-icon {
  background-color: var(--primary-color);
  color: var(--bg-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.footer-contact-info span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-light);
}

.footer-contact-info a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.footer-links-title {
  color: var(--text-dark);
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list li a {
  color: var(--text-color);
}

.footer-links-list li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-newsletter p {
  margin-bottom: 15px;
}

.newsletter-form {
  display: flex;
  height: 40px;
}

.newsletter-input {
  flex: 1;
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
  padding: 0 15px;
  color: var(--text-dark);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.newsletter-btn {
  background-color: var(--primary-color);
  color: var(--bg-white);
  border: none;
  padding: 0 15px;
  font-weight: 700;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.newsletter-btn:hover {
  background-color: var(--primary-hover);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 25px 0;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-methods {
  display: flex;
  gap: 10px;
  font-size: 1.8rem;
  color: var(--text-dark);
}

.payment-methods span {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.payment-methods span.bkash {
  background-color: #d12053;
  color: #fff;
  border-color: #d12053;
}

.payment-methods span.nagad {
  background-color: #f7941d;
  color: #fff;
  border-color: #f7941d;
}

.payment-methods span.cod {
  background-color: #555;
  color: #fff;
  border-color: #555;
}

.payment-logo {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  min-width: 50px;
  text-align: center;
  line-height: 1;
  margin-right: 5px;
}

.payment-logo.bkash {
  background-color: #d12053;
}

.payment-logo.nagad {
  background-color: #f7941d;
}

.payment-logo.cod {
  background-color: #555;
}

.payment-logo-img {
  height: 22px;
  width: auto;
  max-width: 65px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.payment-logo-cod {
  background-color: #555;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 8px;
  line-height: 1;
}

/* ================= SCROLLED COMPACT HEADER ================= */
header.scrolled {
  box-shadow: var(--shadow-md);
}

header.scrolled .top-bar {
  max-height: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0;
  border: none;
}

header.scrolled .main-header {
  padding: 10px 0;
}

header.scrolled .main-header .container {
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

header.scrolled .logo {
  max-width: 0;
  opacity: 0;
  margin-right: 0 !important;
  visibility: hidden;
}

header.scrolled .search-wrapper {
  margin-left: 290px;
  margin-right: 0;
  max-width: calc(100% - 290px);
}

header.scrolled .nav-bar {
  height: 0;
  background-color: transparent;
  border: none;
  box-shadow: none;
}

header.scrolled .nav-menu {
  opacity: 0;
  visibility: hidden;
}

header.scrolled .category-dropdown {
  top: -56px;
  /* slides up into main-header area */
  height: 46px;
}

header.scrolled .category-toggle {
  height: 46px;
  border-radius: var(--border-radius);
}

header.scrolled .header-search {
  max-width: 100%;
  height: 46px;
  margin: 0;
}

/* ================= LIVE SEARCH SUGGESTIONS ================= */
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  z-index: 1050;
  max-height: min(400px, 60vh);
  overflow-y: auto;
  padding: 6px 0;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.search-suggestions::-webkit-scrollbar {
  width: 5px;
}

.search-suggestions::-webkit-scrollbar-track {
  background: transparent;
}

.search-suggestions::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f2f5;
  transition: background-color 0.2s ease, border-left-color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  border-left: 3px solid transparent;
}

.suggestion-item:hover,
.suggestion-item.active {
  background-color: var(--bg-color);
  border-left-color: var(--primary-color);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: #fff;
  flex-shrink: 0;
}

.suggestion-info {
  flex: 1;
  min-width: 0; /* Ensures child elements can truncate properly without breaking flexbox container */
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.suggestion-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.suggestion-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  width: 100%;
  min-width: 0;
}

.suggestion-category {
  color: var(--text-light);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
  font-size: 0.72rem;
}

.suggestion-price {
  color: var(--danger-color);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  font-size: 0.8rem;
}

.suggestion-footer {
  padding: 11px 16px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary-color);
  border-top: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.suggestion-footer:hover,
.suggestion-footer:active {
  color: var(--primary-color);
  background-color: var(--bg-color);
}

.suggestion-empty {
  padding: 22px 16px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Sibling spacer to prevent layout shift and scroll oscillation on scroll sticky transition */
main {
  transition: margin-top 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

header.scrolled+main {
  margin-top: 90px;
}

/* Custom Confirmation Modal */
.custom-confirm-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200000000 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
}

.custom-confirm-modal-backdrop.active {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 1;
  visibility: visible;
}

.custom-confirm-modal-box {
  background-color: var(--bg-white);
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  z-index: 200000001 !important;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.custom-confirm-modal-backdrop.active .custom-confirm-modal-box {
  transform: scale(1);
}

.modal-confirm-icon {
  width: 60px;
  height: 60px;
  background-color: #ffebee;
  color: var(--danger-color);
  font-size: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.custom-confirm-modal-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-family: var(--font-primary);
}

.custom-confirm-modal-box p {
  color: var(--text-color);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.modal-confirm-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.modal-btn {
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-secondary);
}

.modal-btn-cancel {
  background-color: var(--bg-color);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.modal-btn-cancel:hover {
  background-color: var(--border-color);
}

.modal-btn-confirm {
  background-color: var(--danger-color);
  color: #fff;
}

.modal-btn-confirm:hover {
  background-color: #d32f2f;
}

/* Custom Alert Modal Extensions */
.modal-confirm-icon.success {
  background-color: #e8f5e9;
  color: var(--accent-color);
}

.modal-confirm-icon.error {
  background-color: #ffebee;
  color: var(--danger-color);
}

.modal-confirm-icon.info {
  background-color: #e3f2fd;
  color: #2196f3;
}

.custom-alert-box-animate {
  animation: alertBounceIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes alertBounceIn {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ================= RESPONSIVE DESIGN ================= */

/* Tablets & Small Desktops */
@media (max-width: 1024px) {
  .main-header .container {
    gap: 15px;
  }

  .logo {
    font-size: 1.6rem;
  }

  .search-wrapper {
    max-width: 450px;
  }

  .header-actions {
    gap: 15px;
  }

  /* Make navbar navigation horizontal scrollable on tablet/mobile */
  .nav-bar {
    height: auto;
    background-color: transparent;
    border: none;
    box-shadow: none;
  }

  .nav-bar .container {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .category-dropdown {
    position: relative;
    left: 0;
    width: 100%;
    height: 46px;
    margin: 5px 0;
  }

  .category-toggle {
    border-radius: var(--border-radius);
    height: 46px;
    font-size: 0.9rem;
  }

  .nav-menu {
    display: flex !important;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    margin-left: 0;
    padding: 8px 0;
    gap: 20px;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--border-color);
  }

  .nav-menu li {
    flex: 0 0 auto;
  }

  .nav-menu a {
    color: var(--text-color);
    font-size: 0.85rem;
  }

  /* Scrolled states tablet overrides */
  header.scrolled .search-wrapper {
    margin-left: 290px !important;
    max-width: calc(100% - 290px) !important;
  }

  /* Footer layout */
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {

  /* Hide top bar details */
  .top-bar {
    display: none;
  }

  /* Grid restructure for mobile header */
  .main-header .container {
    grid-template-columns: 1fr auto;
    gap: 15px;
    padding: 0 15px;
  }

  .logo {
    grid-row: 1;
    grid-column: 1;
    font-size: 1.5rem;
    max-width: 170px !important;
  }

  .header-actions {
    grid-row: 1;
    grid-column: 2;
    gap: 15px;
    justify-content: end;
  }

  .user-account-menu {
    display: none !important;
  }

  .search-wrapper {
    grid-row: 2;
    grid-column: 1 / span 2;
    width: 100%;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
  }

  .header-search {
    flex: 1;
  }

  .search-select {
    display: none !important;
  }

  .search-mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--primary-color) !important;
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
  }

  .search-mobile-menu-btn:active {
    background-color: rgba(235, 8, 109, 0.1);
  }

  .search-input {
    padding: 0 15px;
    font-size: 0.85rem;
  }

  .search-btn {
    padding: 0 15px;
    font-size: 0.85rem;
  }

  .nav-bar .container {
    padding: 0 15px;
  }

  /* Mobile scrolled header overrides */
  header.scrolled .logo {
    max-width: 170px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  header.scrolled .search-wrapper {
    margin-left: 0 !important;
    max-width: 100% !important;
  }

  header.scrolled .nav-bar {
    display: none !important;
  }

  /* Footer mobile */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Mobile Search Suggestions Overrides */
  .search-suggestions {
    top: calc(100% + 5px);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    max-height: min(350px, 58vh);
  }

  .suggestion-item {
    padding: 10px 14px;
    gap: 10px;
  }

  .suggestion-img {
    width: 40px;
    height: 40px;
  }

  .suggestion-title {
    font-size: 0.82rem;
  }

  .suggestion-category {
    font-size: 0.7rem;
  }

  .suggestion-price {
    font-size: 0.78rem;
  }

  .suggestion-footer {
    padding: 10px 14px;
    font-size: 0.78rem;
  }
}

/* Product grid mobile 2 columns */
@media (max-width: 576px) {
  /* Extra Small Mobile Live Search Overrides */
  .search-suggestions {
    border-radius: 8px;
    max-height: min(320px, 52vh);
  }

  .suggestion-item {
    padding: 9px 12px;
    gap: 9px;
  }

  .suggestion-img {
    width: 36px;
    height: 36px;
    border-radius: 5px;
  }

  .suggestion-title {
    font-size: 0.8rem;
  }

  .suggestion-category {
    font-size: 0.68rem;
  }

  .suggestion-price {
    font-size: 0.75rem;
  }

  .suggestion-footer {
    padding: 9px 12px;
    font-size: 0.75rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    padding: 10px;
  }

  .product-title {
    font-size: 0.85rem;
  }

  .product-price {
    font-size: 0.95rem;
  }
}

/* ================= FLOATING CUSTOMER CARE WIDGET ================= */
.care-widget-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

/* Main Toggle Button */
.care-toggle-btn {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff4b93 100%);
  color: #ffffff;
  border-radius: 50%;
  border: none;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(235, 8, 109, 0.45);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10000;
  position: relative;
  pointer-events: auto !important;
  outline: none;
}

.care-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(235, 8, 109, 0.6);
}

.care-toggle-btn::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  opacity: 0.8;
  z-index: -1;
  animation: carePulse 2s infinite;
  box-sizing: border-box;
}

@keyframes carePulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Sub-buttons Menu */
.care-sub-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(15px) scale(0.85);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.care-widget-container.active .care-sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto !important;
  transform: translateY(0) scale(1);
}

/* Sub-buttons styling */
.care-sub-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  text-decoration: none;
  pointer-events: auto;
}

.care-sub-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Specific button colors */
.care-sub-btn.whatsapp {
  background-color: #25d366;
}

.care-sub-btn.messenger {
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
}

.care-sub-btn.phone {
  background-color: #007bff;
}

.care-sub-btn.email {
  background-color: #e4405f;
}

/* Tooltips */
.care-tooltip {
  position: absolute;
  right: 48px;
  background-color: var(--secondary-color);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateX(10px);
  pointer-events: none;
}

.care-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -4px;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background-color: var(--secondary-color);
}

.care-sub-btn:hover .care-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .care-widget-container {
    bottom: 75px;
    right: 15px;
    gap: 10px;
  }

  .care-toggle-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .care-sub-btn {
    width: 29px;
    height: 29px;
    font-size: 13px;
  }

  .care-tooltip {
    display: none;
  }
}

/* ================= PRODUCT CAROUSEL SLIDER ================= */
.carousel-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.carousel-track {
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
}

.carousel-track::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari/Opera */
}

.product-grid-carousel {
  display: flex;
  gap: 20px;
  padding: 5px 5px 15px;
  /* padding for card hover shadows */
}

.product-grid-carousel .product-card {
  flex: 0 0 calc((100% - 80px) / 5);
  /* 5 items visible */
  min-width: 220px;
}

@media (max-width: 1024px) {
  .product-grid-carousel .product-card {
    flex: 0 0 calc((100% - 60px) / 4);
  }
}

@media (max-width: 768px) {
  .product-grid-carousel .product-card {
    flex: 0 0 calc((100% - 20px) / 2);
    min-width: 0;
  }
}

/* Nav arrows */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: var(--transition);
  color: var(--text-dark);
}

.carousel-nav-btn:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
  border-color: var(--primary-color);
}

.carousel-nav-btn.prev {
  left: -20px;
}

.carousel-nav-btn.next {
  right: -20px;
}

.carousel-nav-btn.disabled {
  opacity: 0;
  pointer-events: none;
}

/* ================= MOBILE BOTTOM NAVIGATION ================= */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  header.scrolled+main {
    margin-top: 46px;
  }

  header.scrolled .main-header {
    padding: 20px 0 !important;
  }

  header.scrolled .main-header .container {
    grid-template-columns: 1fr auto !important;
    gap: 15px !important;
  }

  body {
    padding-bottom: 60px !important;
  }

  .category-toggle .fa-bars {
    display: none !important;
  }

  .category-toggle {
    justify-content: center;
    gap: 8px;
  }

  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    gap: 4px;
    padding: 2px 0;
  }

  .mobile-nav-item i {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
  }

  .mobile-nav-item:hover,
  .mobile-nav-item:active,
  .mobile-nav-item.active {
    color: var(--primary-color);
  }

  .mobile-nav-item:active i {
    transform: scale(0.9);
  }
}

/* ================= MOBILE LEFT SLIDE-IN DRAWERS ================= */
.category-drawer-backdrop,
.main-nav-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  /* under drawer, above other page content */
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.category-drawer-backdrop.active,
.main-nav-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.category-drawer,
.main-nav-drawer {
  position: fixed;
  top: 0;
  left: -280px;
  /* hidden off-screen left */
  width: 280px;
  height: 100%;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.category-drawer.active,
.main-nav-drawer.active {
  left: 0;
  /* slide in! */
}

.category-drawer-header,
.main-nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.category-drawer-header h3,
.main-nav-drawer-header h3 {
  font-size: 1.1rem;
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--text-dark);
}

.category-drawer-close,
.main-nav-drawer-close {
  font-size: 1.8rem;
  color: var(--text-dark);
  border: none;
  background: none;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
  transition: var(--transition);
}

.category-drawer-close:hover,
.main-nav-drawer-close:hover {
  color: var(--primary-color);
}

.category-drawer-menu,
.main-nav-drawer-menu {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.category-drawer-menu li,
.main-nav-drawer-menu li {
  border-bottom: 1px solid var(--bg-color);
}

.category-drawer-menu li a,
.main-nav-drawer-menu li a {
  display: block;
  padding: 15px 20px;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.category-drawer-menu li a:hover,
.main-nav-drawer-menu li a:hover {
  background-color: var(--bg-color);
  color: var(--primary-color);
  padding-left: 25px;
}

.main-nav-drawer-menu li a.active {
  color: var(--primary-color);
  background-color: rgba(235, 8, 109, 0.05);
  border-left: 3px solid var(--primary-color);
  padding-left: 17px;
}

/* ================= NOBONI FEMININE AUTH MODAL POPUP ================= */
.noboni-auth-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 15px;
}

.noboni-auth-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.noboni-auth-modal-card {
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(235, 8, 109, 0.22), 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(235, 8, 109, 0.2);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.noboni-auth-modal-backdrop.active .noboni-auth-modal-card {
  transform: scale(1) translateY(0);
}

/* Header Banner */
.noboni-auth-header {
  background: linear-gradient(135deg, #eb086d 0%, #ff4b93 100%);
  padding: 25px 20px 20px 20px;
  text-align: center;
  color: #ffffff;
  position: relative;
  border-top-left-radius: 19px;
  border-top-right-radius: 19px;
  overflow: hidden;
}

.noboni-auth-header::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.noboni-auth-header::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 5;
}

.auth-modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

.auth-badge-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  margin: 0 auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

.auth-modal-logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.noboni-auth-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  font-family: var(--font-primary);
  letter-spacing: 0.3px;
}

.noboni-auth-header p {
  font-size: 0.85rem;
  opacity: 0.92;
  margin: 0;
}

/* Tabs */
.auth-modal-tabs {
  display: flex;
  background: rgba(235, 8, 109, 0.06);
  border-radius: 12px;
  margin: 18px 25px 0 25px;
  padding: 4px;
  border: 1px solid rgba(235, 8, 109, 0.12);
}

.auth-modal-tab-btn {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-primary);
}

.auth-modal-tab-btn.active {
  background: #ffffff;
  color: var(--primary-color);
  box-shadow: 0 3px 12px rgba(235, 8, 109, 0.18);
  font-weight: 700;
}

/* Body & Forms */
.auth-modal-body {
  padding: 22px 25px 25px 25px;
}

.auth-modal-error-banner {
  background-color: #ffeef0;
  color: var(--danger-color);
  border: 1px solid rgba(234, 30, 52, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: modalErrorShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.auth-modal-error-banner i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

@keyframes modalErrorShake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.auth-input-group {
  position: relative;
  margin-bottom: 16px;
}

.auth-input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.auth-input-wrapper {
  position: relative;
}

.auth-input-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  pointer-events: none;
}

.auth-input-wrapper .form-control {
  padding-left: 40px !important;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 0.92rem;
  height: 44px;
  transition: all 0.2s ease;
}

.auth-input-wrapper .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(235, 8, 109, 0.12);
}

.auth-input-wrapper .form-control:focus + i,
.auth-input-wrapper:focus-within i {
  color: var(--primary-color);
}

.auth-vendor-box {
  background: #fff5f9;
  border: 1px dashed var(--primary-color);
  border-radius: 12px;
  padding: 15px;
  margin: 12px 0 16px 0;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-submit-btn {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eb086d 0%, #ce075f 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(235, 8, 109, 0.28);
  transition: all 0.25s ease;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(235, 8, 109, 0.38);
  background: linear-gradient(135deg, #ce075f 0%, #b00550 100%);
}

.auth-switch-prompt {
  margin-top: 18px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-light);
}

.auth-switch-prompt a {
  color: var(--primary-color);
  font-weight: 700;
  cursor: pointer;
}

.auth-switch-prompt a:hover {
  text-decoration: underline;
}

/* ================= CUSTOM IN-SITE CONFIRMATION & ALERT MODALS ================= */
.custom-confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200000000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-confirm-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.custom-confirm-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.custom-confirm-card {
  position: relative;
  z-index: 200000001 !important;
  background: #ffffff;
  width: 90%;
  max-width: 420px;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(229, 231, 235, 0.8);
  text-align: center;
  transform: scale(0.92) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-confirm-modal.active .custom-confirm-card {
  transform: scale(1) translateY(0);
}

.custom-confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 18px auto;
}

.custom-confirm-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.3;
}

.custom-confirm-message {
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 24px;
  word-break: break-word;
}

.custom-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.custom-confirm-btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  outline: none;
}

.btn-confirm-cancel {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

.btn-confirm-cancel:hover {
  background: #e5e7eb;
  color: #1f2937;
}

.btn-confirm-danger {
  background: linear-gradient(135deg, #eb086d, #d80763);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(235, 8, 109, 0.3);
}

.btn-confirm-danger:hover {
  background: linear-gradient(135deg, #ff1a7d, #eb086d);
  box-shadow: 0 6px 16px rgba(235, 8, 109, 0.4);
}

.btn-confirm-warning {
  background: #f59e0b;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-confirm-warning:hover {
  background: #d97706;
}

.btn-confirm-primary {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-confirm-primary:hover {
  background: #1d4ed8;
}

.btn-confirm-success {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-confirm-success:hover {
  background: #059669;
}