body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.hero-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 480px;
}

.hero-banner-img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  display: block;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,13,13,0.75), rgba(13,13,13,0.2) 60%);
  z-index: 1;
}

.hero-overlay-content {
  position: absolute;
  bottom: 40px;
  left: 5%;
  top: auto;
  transform: none;
  z-index: 2;
  max-width: 480px;
}

.hero-overlay-content h1 {
  font-size: 38px;
  margin-bottom: 15px;
}

.hero-overlay-content p {
  font-size: 16px;
  margin-bottom: 20px;
}

.category-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.category-card p {
  font-size: 16px;
  font-weight: 500;
}

.watch-card {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  height: 100%;
}

.watch-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.watch-card-body {
  padding: 12px 15px;
}

.watch-card-body h6 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 6px;
}

.watch-card-body .price {
  color: #f5b800;
  font-weight: 700;
  margin-bottom: 0;
  font-size: 14px;
}

@media (max-width: 768px) {
  .hero-banner {
    min-height: 380px;
  }
  .hero-banner-img {
    height: 380px;
  }
  .hero-overlay-content {
    left: 5%;
    right: 5%;
    max-width: 90%;
  }
  .hero-overlay-content h1 {
    font-size: 26px;
  }
  .hero-offer-card {
    position: static;
    margin: 15px auto 0;
    width: 90%;
  }
  .hero-banner {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-overlay-content h1 {
    font-size: 22px;
  }
  .hero-overlay-content p {
    font-size: 14px;
  }
}

.profile-sidebar {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 20px;
  height: 100%;
}

.sidebar-link {
  display: block;
  color: #ccc;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 14px;
}

.sidebar-link i {
  margin-right: 8px;
}

.sidebar-link:hover {
  background: #2a2a2a;
  color: #fff;
}

.sidebar-link.active {
  background: #f5b800;
  color: #111;
  font-weight: 700;
}

.profile-panel {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 25px;
}


.modal-backdrop-custom {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

.email-modal {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 25px;
  width: 90%;
  max-width: 420px;
  position: relative;
  color: #fff;
}

.btn-close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #000;
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.email-otp-box {
  width: 42px !important;
  height: 46px !important;
  font-size: 18px !important;
}
#changeEmailBtn {
  height: 48px;
  font-size: 15px;
  font-weight: 700;
}

.admin-sidebar {
  background: #1a1a1a;
  width: 220px;
  min-height: 100vh;
  padding: 20px 0;
}

.admin-sidebar .sidebar-link {
  display: block;
  color: #ccc;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 14px;
  margin-bottom: 4px;
}

.admin-sidebar .sidebar-link:hover {
  background: #2a2a2a;
  color: #fff;
}

.admin-sidebar .sidebar-link.active {
  background: #f5b800;
  color: #111;
  font-weight: 700;
  border-radius: 6px;
  margin: 0 10px 4px;
}

.clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
  font-size: 20px;
}

.upload-box {
  border: 2px dashed #555;
  border-radius: 10px;
  padding: 30px;
  background: #1a1a1a;
}

.image-upload-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #000;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}


.image-thumb {
  position: relative;
  width: 70px;
  height: 70px;
}

.image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.image-thumb .remove-thumb {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #dc3545;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}


/* Product modal scrollable */
#productModalBackdrop .email-modal {
  max-height: 90vh;
  overflow-y: auto;
  max-width: 700px;
}

/* Scrollbar styling to match dark theme */
#productModalBackdrop .email-modal::-webkit-scrollbar {
  width: 6px;
}

#productModalBackdrop .email-modal::-webkit-scrollbar-track {
  background: #1a1a1a;
}

#productModalBackdrop .email-modal::-webkit-scrollbar-thumb {
  background: #f5b800;
  border-radius: 3px;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #f5b800;
  color: #111;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Admin Product Image Replace ===== */
.existing-img-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
}

.existing-img-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #444;
  display: block;
}

.existing-img-overlay {
  position: absolute;
  bottom: -6px;
  right: -6px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.replace-img-btn {
  background: #f5b800;
  color: #111;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  margin: 0;
}

.replace-img-btn:hover { background: #e0a800; }

.replaced-badge {
  background: #28a745;
  color: #fff;
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
}

.upload-slot-empty {
  width: 80px;
  height: 80px;
  border: 2px dashed #555;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #888;
  font-size: 20px;
}

.upload-slot-empty:hover {
  border-color: #f5b800;
  color: #f5b800;
}

.upload-slot-filled {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 8px;
  overflow: visible;
}

.upload-slot-filled img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #f5b800;
}

.slot-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #dc3545;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  z-index: 3;
}

.color-img-slot {
  display: inline-block;
}

.color-img-slot-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upload-slot-empty {
  width: 80px;
  height: 80px;
  border: 2px dashed #555;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #888;
  font-size: 22px;
  transition: all 0.2s;
}

.upload-slot-empty:hover {
  border-color: #f5b800;
  color: #f5b800;
}

.upload-slot-filled {
  width: 80px;
  height: 80px;
  position: relative;
}

.upload-slot-filled img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #f5b800;
}

.slot-remove,
.slot-remove-variant {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #dc3545;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  z-index: 3;
}

.admin-detail-card {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 18px;
}

/* Status change buttons */
.status-change-btn {
  border: 1px solid #444;
  color: #ccc;
  background: #2a2a2a;
  transition: all 0.2s;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.status-change-btn:hover:not(:disabled) {
  border-color: #f5b800;
  color: #f5b800;
}

.status-change-btn:hover { border-color: #f5b800; color: #f5b800; }

/* Current status highlighting */
.status-change-btn.active-status[data-status="Pending"] {
  background: rgba(255,193,7,0.2);
  border-color: #ffc107;
  color: #ffc107;
  font-weight: 700;
}
.status-change-btn.active-status[data-status="Processing"] {
  background: rgba(13,110,253,0.2);
  border-color: #6ea8fe;
  color: #6ea8fe;
  font-weight: 700;
}

.status-change-btn.active-status[data-status="Shipped"] {
  background: rgba(13,202,240,0.2);
  border-color: #0dcaf0;
  color: #0dcaf0;
  font-weight: 700;
}

.status-change-btn.active-status[data-status="Out for Delivery"] {
  background: rgba(255,165,0,0.2);
  border-color: #ffa500;
  color: #ffa500;
  font-weight: 700;
}
/* Delivered — clearly green */
.status-change-btn.active-status[data-status="Delivered"] {
  background: #28a745 !important;        /* solid green, not transparent */
  border-color: #28a745 !important;
  color: #fff !important;               /* white text for contrast */
  font-weight: 700;
}

.status-change-btn.active-status[data-status="Cancelled"] {
  background: #dc3545 !important;        /* solid red */
  border-color: #dc3545 !important;
  color: #fff !important;               /* white text */
  font-weight: 700;
}

/* Disabled state */
.status-change-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed ;
}
.status-change-btn[data-status="Cancelled"].active-status { background: #dc3545; border-color: #dc3545; color: #fff; }
.status-change-btn[data-status="Delivered"].active-status { background: #28a745; border-color: #28a745; color: #fff; }

/* Admin order filters */
#statusFilter,
#paymentFilter,
#startDate,
#endDate,
#orderSearch {
  background: #2a2a2a !important;
  border: 1px solid #444 !important;
  color: #fff !important;
  border-radius: 8px;
}

#statusFilter option,
#paymentFilter option {
  background: #2a2a2a;
  color: #fff;
}

#statusFilter:focus,
#paymentFilter:focus,
#startDate:focus,
#endDate:focus,
#orderSearch:focus {
  border-color: #f5b800 !important;
  box-shadow: none !important;
}

/* Date input calendar icon color */
#startDate::-webkit-calendar-picker-indicator,
#endDate::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* Inventory summary cards */
.inventory-card {
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.inventory-card-danger { background: rgba(220,53,69,0.15); border: 1px solid rgba(220,53,69,0.3); }
.inventory-card-warning { background: rgba(255,193,7,0.15); border: 1px solid rgba(255,193,7,0.3); }
.inventory-card-success { background: rgba(25,135,84,0.15); border: 1px solid rgba(25,135,84,0.3); }

.inventory-card-icon { font-size: 32px; }
.inventory-card-danger .inventory-card-icon { color: #ea868f; }
.inventory-card-warning .inventory-card-icon { color: #ffc107; }
.inventory-card-success .inventory-card-icon { color: #75b798; }

.inventory-card-label { color: #888; font-size: 13px; margin-bottom: 2px; }
.inventory-card-value { color: #fff; font-weight: 800; font-size: 28px; margin-bottom: 0; }

/* Stock badge */
.stock-badge-danger { background: rgba(220,53,69,0.2); color: #ea868f; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.stock-badge-warning { background: rgba(255,193,7,0.2); color: #ffc107; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.stock-badge-success { background: rgba(25,135,84,0.2); color: #75b798; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }

/* Stock input */
.stock-update-wrapper { display: flex; gap: 6px; align-items: center; }
.stock-input { background: #2a2a2a; border: 1px solid #444; color: #fff; border-radius: 6px; padding: 5px 10px; width: 80px; text-align: center; }
.stock-input:focus { border-color: #f5b800; outline: none; }
.btn-update-stock { background: #f5b800; color: #111; border: none; border-radius: 6px; padding: 5px 12px; font-weight: 700; font-size: 13px; cursor: pointer; }
.btn-update-stock:hover { background: #e0a800; }

/* Filter buttons */
.stock-filter-btn.active { background: #f5b800; color: #111; border-color: #f5b800; font-weight: 700; }

.wishlist-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}