/* =======================================================
   GLOBAL
======================================================= */

body {
  font-family: sans-serif;
}

.container {
  max-width: 900px !important;
}
.qty-controller button {
  width: 32px;
  height: 32px;
  padding: 0;
  font-weight: 600;
}

/* Tablet */
@media (max-width: 992px) {
  .container {
    max-width: 95% !important;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .container {
    max-width: 100% !important;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* =======================================================
   HEADER
======================================================= */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #f3f5f4;
  z-index: 1050;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar {
  padding: 10px 0;
}

.navbar-custom {
  background: #f3f5f4;
  border-bottom: 1px solid #e5e7eb;
}

.brand-logo {
  font-weight: 600;
  font-size: 20px;
  color: #2d6a4f;
}

.account-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 50px;
  background: #eef7f1;
  color: #1c7c54;
  font-weight: 500;
  cursor: pointer;
  transition: 0.25s;
}

.account-pill:hover {
  background: #1c7c54;
  color: #fff;
}

/* =======================================================
   PROPERTY SECTION
======================================================= */

.property-section {
  background: #e1ede8;
}

.main-content {
  padding-top: 60px;
  padding-bottom: 20px;
}

/* =======================================================
   CATEGORY PILLS
======================================================= */

#categorySliderWrapper {
  position: sticky;
  top: 60px;
  z-index: 1040;
  background: #fff;
}

.category-slider {
  display: flex;
  overflow-x: auto;
  padding: 5px 15px;
}

.category-wrapper {
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-wrapper::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-block;
  padding: 8px 20px;
  margin-right: 10px;
  border-radius: 50px;
  background: #f1f1f1;
  border: none;
  font-size: 0.875rem;
}

.category-pill.active {
  background: #2d6a4f;
  color: #fff;
}

/* =======================================================
   BUNDLES
======================================================= */

.bundle-card {
  background: #f8f9fa;
  border-radius: 16px;
  border: 1px solid #e6e6e6;
  overflow: hidden;
}

.bundle-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.bundle-body {
  padding: 15px;
}

.badge-group {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
}

.price {
  font-weight: 600;
  font-size: 18px;
  color: #198754;
}

.old-price {
  font-size: 14px;
  color: #6c757d;
  text-decoration: line-through;
}

.bundle-thumbs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

/* =======================================================
   PRODUCTS
======================================================= */

.product-row {
  background: #fff;
  border: 1px solid #e6e7eb;
  border-radius: 14px;
  padding: 10px 14px;
  transition: 0.2s;
  margin-bottom: 20px;
}

.product-row:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
}

/* =======================================================
   CART FOOTER
======================================================= */

.cart-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 15px 0;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
  z-index: 1050;
}

body {
  padding-bottom: 120px; /* prevent content hide */
}

/* =======================================================
   CITY DROPDOWN
======================================================= */

.city-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 14px;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
  border: 1px solid #edf1f3;
  padding: 10px 0;
  max-height: 440px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
  display: none;
  z-index: 1055;
}

.city-panel.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.city-panel::-webkit-scrollbar {
  width: 6px;
}

.city-panel::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

.country-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #94a3b8;
  padding: 14px 22px 6px;
  text-transform: uppercase;
}

.city-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.city-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: 0.2s;
}

.city-name {
  font-size: 16px;
  font-weight: 600;
}

.city-sub {
  font-size: 13px;
  color: #64748b;
}

.city-item {
  padding: 14px 22px;
  cursor: pointer;
  border-radius: 14px;
  margin: 4px 10px;
  transition: 0.2s;
}

.city-item:hover {
  background: #f8fafc;
}

.city-item.active {
  background: #e7f5ef;
}

.city-item.active .city-icon {
  background: #2d6a4f;
  color: #fff;
}

/* =======================================================
   AUTH MODAL – PREMIUM COMPACT STYLE
======================================================= */

#authModal .modal-dialog {
  max-width: 420px;
}

#authModal .modal-content {
  border-radius: 28px;
  padding: 10px 5px;
}

/* Tabs */
#authModal .nav-pills .nav-link {
  border-radius: 50px;
  padding: 6px 22px;
  font-weight: 500;
  font-size: 14px;
  background: #2d6a4f;
  color: #fff;
  border: none;
}

#authModal .nav-pills .nav-link:not(.active) {
  opacity: 0.5;
}

#authModal .nav-pills .nav-link.active {
  opacity: 1;
}

/* Labels */
#authModal label {
  font-size: 13px;
  margin-bottom: 6px;
  color: #475569;
}

/* Inputs */
#authModal .form-control {
  height: 40px;
  border-radius: 35px;
  font-size: 13px;
  padding-left: 16px;
  padding-right: 42px;
  border: 1px solid #e2e8f0;
}

#authModal .form-control:focus {
  border-color: #2d6a4f;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.08);
}

/* Spacing tighter */
#authModal .mb-2,
#authModal .mb-3 {
  margin-bottom: 14px !important;
}

/* PERFECT CENTER EYE ICON */

/* ===== STABLE EYE ICON FIX (ERROR PROOF) ===== */

#authModal .position-relative {
  position: relative;
}

#authModal .toggle-password {
  position: absolute;
  right: 30px;
  top: 50px;
  transform: translateY(-50%);
  font-size: 15px;
  color: #94a3b8;
  cursor: pointer;
  z-index: 5;
}

/* Submit button */
#authModal .btn-success {
  height: 42px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
}

#authModal .btn-success:hover {
  background: #245a40;
}

.bundle-img {
  position: relative;
}

.bundle-img {
  position: relative;
}

.badge-group {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

/* POPULAR (orange pill like loveable) */
.badge-popular {
  background: #f59e0b;
  color: #0f0e0e;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 50px;
}

/* SAVE (green pill like loveable) */
.badge-save {
  background: #2d9c5f;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 50px;
}
.price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.final-price {
  font-size: 22px;
  font-weight: 700;
  color: #2d9c5f;
  letter-spacing: -0.3px;
}

.original-price {
  font-size: 15px;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 500;
}
.cart-footer {
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 999;
}

.cart-box {
  width: 900px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-items {
  font-size: 14px;
  color: #666;
}

.cart-subtotal {
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.cart-button {
  background: #1f8b4c;
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.cart-button:hover {
  background: #16713d;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.cart-price {
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 8px;
}
/* =======================================================
   RESPONSIVE FIXES
======================================================= */

@media (max-width: 768px) {
  .bundle-img img {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .product-row {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
  }

  .product-row button {
    width: 28px;
    height: 28px;
  }
  .product-img {
    width: 44px;
    height: 44px;
  }

  .category-pill {
    padding: 6px 14px;
    font-size: 13px;
  }

  .cart-footer .row {
    text-align: center;
  }
}
