/**
 * Wishlist Sidebar Styles
 */

/* Sidebar offcanvas - override .row gutter padding inherited from footer hook */
.wishlist-sidebar {
  width: 420px;
  max-width: 90vw;
  border-left: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  --bs-gutter-x: 0;
}

/* Header - main color background edge-to-edge, white text/icons */
.wishlist-sidebar .offcanvas-header {
  background: var(--b2b-main-color, #b12704) !important;
  border-bottom: none;
  border-radius: 0;
  padding: 1rem 1.25rem;
}

.wishlist-sidebar .offcanvas-header .btn-close {
  filter: invert(1);
}

.wishlist-sidebar .offcanvas-title {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  color: #fff;
}

.wishlist-sidebar .offcanvas-title .material-icons {
  color: #fff;
  font-size: 1.3rem;
}

.wishlist-sidebar .offcanvas-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wishlist-sidebar .offcanvas-footer {
  background: var(--bs-white);
}

/* Footer button - main color */
.wishlist-sidebar__btn-viewall {
  background: var(--b2b-main-color, #b12704);
  color: #fff !important;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  transition: background 0.2s, box-shadow 0.2s;
}

.wishlist-sidebar__btn-viewall:hover {
  background: var(--b2b-main-color-dark, #8e1f03);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  color: #fff !important;
}

/* List selector */
.wishlist-sidebar__list-selector {
  flex-shrink: 0;
  background: var(--bs-gray-100);
}

.wishlist-sidebar__select {
  font-size: 0.875rem;
}

/* Loading state */
.wishlist-sidebar__loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

/* Empty state */
.wishlist-sidebar__empty,
.wishlist-sidebar__login-required {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--bs-gray-600);
}

.wishlist-sidebar__empty-icon {
  font-size: 3rem;
  color: var(--bs-gray-400);
}

/* Products list */
.wishlist-sidebar__products {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.wishlist-sidebar__product {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--bs-gray-200);
  transition: opacity 0.2s;
}

.wishlist-sidebar__product:last-child {
  border-bottom: none;
}

.wishlist-sidebar__product-img {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 0.375rem;
  overflow: hidden;
  background: var(--bs-gray-100);
}

.wishlist-sidebar__product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wishlist-sidebar__product-info {
  flex: 1;
  min-width: 0;
}

.wishlist-sidebar__product-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bs-body-color);
  text-decoration: none;
  line-height: 1.3;
}

.wishlist-sidebar__product-name:hover {
  color: var(--bs-primary);
  text-decoration: underline;
}

/* B2B Price display - net/gross like listing page */
.wishlist-sidebar__product-price {
  margin-top: 0.25rem;
}

.wishlist-sidebar__price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.wishlist-sidebar__price-net {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
}

.wishlist-sidebar__price-gross {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
}

.wishlist-sidebar__price-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Product action buttons */
.wishlist-sidebar__product-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.wishlist-sidebar__qty-input {
  width: 48px;
  height: 30px;
  text-align: center;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.85rem;
  padding: 2px;
  -moz-appearance: textfield;
}
.wishlist-sidebar__qty-input::-webkit-outer-spin-button,
.wishlist-sidebar__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.wishlist-sidebar__qty-input:focus {
  outline: none;
  border-color: var(--b2b-main-color, #a1b71c);
  box-shadow: 0 0 0 2px rgba(161,183,28,0.15);
}

.wishlist-sidebar__btn-cart {
  padding: 0.25rem;
  color: var(--b2b-main-color, #b12704);
  background: none;
  border: none;
  border-radius: 50%;
  line-height: 1;
  transition: color 0.2s, background-color 0.2s;
}

.wishlist-sidebar__btn-cart:hover {
  color: #fff;
  background-color: var(--b2b-main-color, #b12704);
}

.wishlist-sidebar__btn-cart--success {
  color: var(--bs-success) !important;
  background: none !important;
}

.wishlist-sidebar__btn-cart .material-icons {
  font-size: 1.25rem;
}

.wishlist-sidebar__btn-remove {
  padding: 0.25rem;
  color: var(--bs-gray-500);
  background: none;
  border: none;
  border-radius: 50%;
  line-height: 1;
  transition: color 0.2s, background-color 0.2s;
}

.wishlist-sidebar__btn-remove:hover {
  color: var(--bs-danger);
  background-color: var(--bs-gray-100);
}

.wishlist-sidebar__btn-remove .material-icons {
  font-size: 1.25rem;
}
