body {
  background-color: #ffffff;
  color: #000000;
}
.navbar,
.footer,
.card,
.carousel-item {
  background-color: #ffffff;
}
.navbar,
.navbar-brand,
.footer,
.card,
.carousel-caption h5,
.carousel-caption p {
  color: #000000 !important;
}
/* enhanced carousel captions - modern glass morphism */
.carousel-caption {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 3px solid #000;
  color: #000;
  border-radius: 0;
  padding: 2rem 3rem;
  bottom: 15%;
  left: 10%;
  right: 10%;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: left;
}
.carousel-caption h5 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.carousel-caption p {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.carousel-caption .btn {
  border: 2px solid #000;
  background: transparent;
  color: #000;
  font-weight: 600;
  padding: 0.75rem 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}
.carousel-caption .btn:hover {
  background: #000;
  color: #fff;
}
/* position variations for variety */
.carousel-item:nth-child(2) .carousel-caption {
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  border-bottom: 3px solid #000;
}
.carousel-item:nth-child(3) .carousel-caption {
  text-align: right;
  background: rgba(255, 255, 255, 0.2);
  border-bottom: 3px solid #000;
}
/* ensure carousel images cover area properly */
.carousel-item img {
  object-fit: cover;
  height: 70vh;
  min-height: 400px;
  width: 100%;
}
/* product image placeholders */
.product-img {
  background-color: #f5f5f5;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-img.small {
  height: 200px;
}
/* clickable product cards */
.product-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease;
}
.product-card:hover {
  transform: scale(1.02);
  text-decoration: none;
  color: inherit;
}
.product-card .card {
  cursor: pointer;
}
/* categories with background images and blur overlay */
.category-card {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.category-card:hover {
  transform: scale(1.02);
}
.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0;
  z-index: 1;
}
.category-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #000000;
  padding: 1.5rem;
  width: 100%;
}
.category-content h4 {
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}
.category-content p {
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}
.category-content span {
  font-weight: 500;
  cursor: pointer;
  display: inline-block;
  padding: 0.25rem 0.5rem;
}
/* clickable category cards */
.category-card {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e0e0e0;
  transition: transform 0.2s ease;
}
.category-card:hover {
  transform: scale(1.02);
  text-decoration: none;
  color: inherit;
}
.category-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}
.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 1;
  pointer-events: none; /* so clicks pass through to the link */
}
.category-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #000000;
  width: 100%;
  padding: 1rem;
  pointer-events: none; /* so clicks pass through to the link */
}
.category-content h4 {
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
  margin-bottom: 0.25rem;
}
.category-content p {
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}
.carousel-control-next-icon,
.carousel-control-prev-icon {
  filter: invert(1); /* black arrows on white background */
}
.carousel-indicators [data-bs-target] {
  background-color: #333; /* dark grey dots visible on white */
}
.card {
  border: 1px solid #e0e0e0;
  transition: 0.1s ease;
}
.card:hover {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}
.card-title,
.card-text {
  color: #000;
}
.btn-outline-dark {
  border-color: #000;
  color: #000;
}
.btn-outline-dark:hover {
  background-color: #000;
  color: #fff;
}
.list-inline-item a {
  color: #000;
  text-decoration: none;
}
.list-inline-item a:hover {
  text-decoration: underline;
}
/* search bar subtle border */
.form-control:focus {
  border-color: #000;
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}
.footer hr {
  border-color: #ccc;
}

/* pagination styling - borderless with underline effect */
.pagination {
  gap: 0.5rem;
}
.pagination .page-item {
  margin: 0 0.25rem;
}
.pagination .page-link {
  color: #000;
  border: none;
  background: transparent;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  position: relative;
  box-shadow: none;
}
.pagination .page-link:hover {
  background: transparent;
  color: #000;
}
.pagination .page-link:hover::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background-color: #000;
}
.pagination .active .page-link {
  background: transparent;
  color: #000;
  position: relative;
}
.pagination .active .page-link::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background-color: #000;
}
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.5rem 0.5rem;
}
.pagination .page-link:focus {
  box-shadow: none;
  background: transparent;
}
/* product page styles */
.product-carousel {
  margin-bottom: 2rem;
}
.product-carousel .carousel-item img {
  height: 500px;
  object-fit: cover;
  width: 100%;
}
.product-carousel .carousel-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.product-carousel .carousel-thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid #e0e0e0;
}
.product-carousel .carousel-thumbnails img:hover {
  border-color: #000;
}

.product-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-description {
  margin: 1.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}
.product-description p {
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.product-description ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.product-description li {
  margin-bottom: 0.25rem;
  color: #555;
  position: relative;
  padding-left: 1.25rem;
}
.product-description li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #000;
}

.product-price {
  margin: 1.5rem 0;
}
.current-price {
  font-size: 2rem;
  font-weight: 700;
  margin-right: 1rem;
}
.original-price {
  font-size: 1.25rem;
  color: #999;
  text-decoration: line-through;
}

.stock-note {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 0;
  margin: 1.5rem 0;
  border-left: 4px solid #28a745;
}

.stock-note.out-of-stock {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.option-section {
  margin: 1.5rem 0;
}
.option-label {
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.color-options {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.color-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}
.color-circle:hover {
  transform: scale(1.1);
}
.color-circle.selected {
  border-color: #000;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px #000;
}
.color-white {
  background-color: #fff;
  border: 1px solid #ddd;
}
.color-black {
  background-color: #000;
}
.color-navy {
  background-color: #000080;
}
.color-gray {
  background-color: #808080;
}

.size-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.size-pill {
  padding: 0.5rem 1.25rem;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}
.size-pill:hover {
  border-color: #000;
  background: #f5f5f5;
}
.size-pill.selected {
  border-color: #000;
  background: #000;
  color: #fff;
}

.quantity-select {
  width: 120px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 0;
}

.shipping-info {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
}
.shipping-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.shipping-form .form-label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.shipping-form .form-control,
.shipping-form .form-select {
  border-radius: 0;
  border: 1px solid #ddd;
  padding: 0.75rem;
}
.shipping-form .form-control:focus,
.shipping-form .form-select:focus {
  border-color: #000;
  box-shadow: none;
}
.shipping-type {
  margin: 1rem 0;
}
.shipping-type .form-check {
  margin-bottom: 0.5rem;
}
.shipping-type .form-check-input {
  border-radius: 0;
  border: 1px solid #000;
}
.shipping-type .form-check-input:checked {
  background-color: #000;
  border-color: #000;
}
.price-breakdown {
  background: #f9f9f9;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid #e0e0e0;
}
.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.price-row.total {
  font-weight: 700;
  font-size: 1.2rem;
  border-top: 1px solid #ddd;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}
.confirm-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 1rem;
  width: 100%;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.confirm-btn:hover {
  background: #333;
}
/* connected pill-style quantity selector */
.quantity-pill {
  border: 1px solid #000;
  border-radius: 50px;
  overflow: hidden;
  background: #fff;
}

.quantity-btn {
  width: 60px;
  height: 40px;
  border: none;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  padding: 0;
}

.quantity-btn i {
  font-size: 1.2rem;
  font-weight: bold;
}

.quantity-btn:hover {
  background-color: #000;
  color: #fff;
}

.quantity-input {
  height: 40px;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input:focus {
  outline: none;
  background-color: #fafafa;
}

/* minimal custom additions for shipping form */
.shipping-info h3 {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}
.shipping-info h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #000;
}
.shipping-card {
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid #dee2e6;
}
.shipping-card:hover {
  border-color: #adb5bd;
}
.shipping-card.selected {
  border-color: #000;
  background-color: #f8f9fa;
}
.price-card {
  background-color: #f8f9fa;
}

/* overview page specific styles - using Bootstrap grid only */
.summary-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 1.25rem;
  transition: all 0.2s;
  height: 100%;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.summary-card h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  margin-bottom: 0.75rem;
}

.summary-stats {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.stat-item {
  flex: 1;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: #666;
}

.peak-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.peak-time {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0;
  letter-spacing: 1px;
}

.peak-tip {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f0f0f0;
}

.alert-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 1.25rem;
  transition: all 0.2s;
  height: 100%;
}

.alert-card.hot {
  border-left: 4px solid #ff6b6b;
}

.alert-card.dead {
  border-left: 4px solid #ffa500;
}

.alert-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.alert-title i {
  font-size: 1.2rem;
}

.alert-product {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.alert-detail {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}

.alert-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.risky-customers-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 1.25rem;
}

.risky-customer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.risky-customer-info {
  flex: 1;
}

.risky-customer-phone {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.risky-customer-reason {
  font-size: 0.8rem;
  color: #ff9800;
}

.risky-customer-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.top-customer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.top-customer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-customer-name {
  font-weight: 600;
  font-size: 1rem;
}

.top-customer-badge {
  background: #f0f0f0;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 500;
}

.top-customer-badge.vip {
  background: #ffd700;
  color: #000;
}

.top-customer-badge.returning {
  background: #e8f5e9;
  color: #2e7d32;
}

.top-customer-orders {
  font-size: 0.85rem;
  color: #666;
}

.top-customer-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon-sm {
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  background: #fff;
  transition: all 0.2s;
}

.btn-icon-sm:hover {
  background: #f5f5f5;
  border-color: #000;
}

.btn-whatsapp-sm {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

.btn-whatsapp-sm:hover {
  background: #128c7e;
  border-color: #128c7e;
  color: #fff;
}

.insight-text {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  border-left: 3px solid #000;
}

.issue-card {
  background: #fff3e0;
  border: 1px solid #ffd966;
  border-radius: 16px;
  padding: 1.25rem;
}

.issue-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.issue-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.issue-list li {
  padding: 0.25rem 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.issue-list li i {
  font-size: 0.7rem;
  color: #ff9800;
}

.fix-btn {
  background: #ff9800;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  transition: all 0.2s;
}

.fix-btn:hover {
  background: #f57c00;
  color: #fff;
}

.quick-actions {
  position: sticky;
  bottom: 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
}

.quick-action-btn {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-action-btn:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  color: #fff;
}

@media (max-width: 768px) {
  .risky-customer-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-customer-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-customer-actions {
    align-self: flex-start;
  }

  .quick-actions {
    position: static;
    justify-content: center;
    flex-wrap: wrap;
  }
}
