/* Bootstrap theme here - css vars and component class overrides */

.min-vh-75 {
  min-height: 75vh;
}

.product-card {
  transition: box-shadow 0.2s ease-in-out;
}

.product-card.shadow-hover:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.text-purple {
  color: #6f42c1 !important;
}

.bg-purple {
  background-color: #6f42c1 !important;
}

/* Keep active tab style on hover */
.nav-pills .nav-link.active:hover {
  background-color: var(--bs-primary);
  color: white;
}

/* Popover styling */
.popover {
  max-width: 300px;
}

.hover-text-primary:hover {
  color: var(--bs-primary) !important;
  transition: color 0.3s ease;
}

footer a:hover i {
  color: var(--bs-primary) !important;
  transition: color 0.3s ease;
}

.guest-alert-container .alert-warning {
  background-color: #fff3cd;
  border-color: #ffeeba;
  color: #856404;
}

.guest-alert-container .btn-close {
  filter: invert(1) grayscale(100%) brightness(50%);
}

/* PRODUCTS PAGE CSS */
.list-group-item {
  border: none;
  padding: 0.75rem 1rem;
  margin-bottom: 0.25rem;
  border-radius: 0.375rem;
}

.list-group-item:hover {
  background-color: #f8f9fa;
}

.list-group-item.active {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.list-group-item.active .badge {
  background-color: white !important;
  color: #0d6efd !important;
}

/* Dark breadcrumb styling */
.bg-dark .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.3);
}

.bg-dark .breadcrumb-item a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* END PRODUCTS PAGE CSS */

/* Cart Modal Styles */
.modal-dialog.modal-cart {
  max-width: 450px;
}

.modal-body.cart-modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

/* Size selector styles */
.size-selector-modal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.size-card-modal {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px;
  background: #f8f9fa;
  transition: all 0.2s;
}

.size-card-modal.has-quantity {
  border-color: #2563eb;
  background: #eff6ff;
}

.size-card-modal:hover {
  border-color: #d1d5db;
}

.size-name-modal {
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #374151;
}

.size-qty-controls-modal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

/* Coupon discount visibility */
.coupon-discount-hidden {
  display: none !important;
}

.coupon-discount-visible {
  display: flex !important;
}

/* Quantity controls */
.qty-btn-modal {
  width: 24px;
  height: 24px;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
  color: #374151;
  user-select: none;
}

.qty-btn-modal:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.qty-btn-modal:active {
  background: #e5e7eb;
}

.qty-btn-modal.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.qty-input-modal {
  width: 40px;
  height: 24px;
  text-align: center;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  padding: 0 2px;
  font-size: 12px;
  font-weight: 500;
  background: #fff;
}

.qty-input-modal:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

/* Center dropdown menu links on mobile */
@media (max-width: 991.98px) {
  .navbar-nav .dropdown-menu {
    text-align: center;
    border: none;
    background-color: transparent;
    position: static !important;
    transform: none !important;
    margin-top: 0;
    padding: 0.5rem 0;
  }

  .navbar-nav .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }

  .navbar-nav .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
}