.hamper-strip {
  padding: 28px 0 8px;
}

.hamper-strip-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.hamper-strip-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3474d4;
}

.hamper-strip-title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: #1e293b;
}

.hamper-strip-subtitle {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

.hamper-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hamper-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 63, 143, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hamper-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(52, 116, 212, 0.14);
}

.hamper-collage {
  display: grid;
  gap: 4px;
  padding: 6px;
  background: #e8eef6;
  height: 196px;
  overflow: hidden;
  grid-auto-rows: 1fr;
}

.hamper-collage--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.hamper-collage--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.hamper-collage--3,
.hamper-collage--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.hamper-collage--5,
.hamper-collage--6 { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; }
.hamper-collage--7,
.hamper-collage--8 { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; }

.hamper-collage-cell {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.hamper-collage-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.hamper-collage-more {
  background: #1a3f8f;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 0;
}

.hamper-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.hamper-card-vendor {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.hamper-card-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.hamper-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #475569;
}

.hamper-card-price {
  font-weight: 700;
  color: #3474d4;
}

.hamper-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.hamper-card-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
}

.hamper-card-btn-view {
  background: #fff;
  color: #3474d4 !important;
  border-color: #3474d4;
}

.hamper-card-btn-view:hover {
  background: #3474d4;
  color: #fff !important;
}

.hamper-card-btn-add {
  background: #3474d4;
  color: #fff !important;
  border-color: #3474d4;
}

.hamper-card-btn-add:hover {
  background: #1a3f8f;
}

.hamper-item-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.hamper-item-row img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #f8fafc;
}

.hamper-item-meta {
  flex: 1;
  min-width: 0;
}

.hamper-item-meta strong {
  display: block;
  font-size: 14px;
}

.hamper-item-row.is-out-of-stock {
  opacity: 0.55;
}

.hamper-search-results,
.hamper-selected-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.hamper-search-row,
.hamper-selected-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.hamper-search-row img,
.hamper-selected-row img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}

.hamper-selected-meta {
  flex: 1;
  min-width: 0;
}

.hamper-selected-meta strong,
.hamper-selected-meta span {
  display: block;
}

.hamper-selected-meta span {
  color: #64748b;
  font-size: 12px;
}

.hamper-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin: 0;
}

.hamper-qty input {
  width: 64px;
  padding: 4px 6px;
}

@media (max-width: 991px) {
  .hamper-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .hamper-grid {
    grid-template-columns: 1fr;
  }
  .hamper-strip-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Seller hamper editor */
.hamper-editor {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hamper-editor-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 22px 20px;
  background: linear-gradient(135deg, #f7faff 0%, #fff 58%, #fff8ee 100%);
  border: 1px solid #e5eaf3;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(26, 63, 143, 0.05);
}

.hamper-editor-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3474d4;
}

.hamper-editor-name {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}

.hamper-editor-name:focus {
  outline: none;
}

.hamper-editor-desc {
  width: 100%;
  margin-top: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  resize: none;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.hamper-editor-desc:focus {
  outline: none;
}

.hamper-visibility {
  margin: 0;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.hamper-visibility input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hamper-visibility-ui {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  min-width: 230px;
  cursor: pointer;
}

.hamper-visibility-switch {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  flex-shrink: 0;
  transition: background 0.18s ease;
}

.hamper-visibility-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
  transition: transform 0.18s ease;
}

.hamper-visibility input:checked + .hamper-visibility-ui .hamper-visibility-switch {
  background: #3474d4;
}

.hamper-visibility input:checked + .hamper-visibility-ui .hamper-visibility-switch::after {
  transform: translateX(18px);
}

.hamper-visibility-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hamper-visibility-copy strong {
  font-size: 13px;
  color: #1e293b;
}

.hamper-visibility-copy small {
  color: #64748b;
  font-size: 12px;
}

.hamper-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.hamper-editor-pane {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.hamper-pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
}

.hamper-pane-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.hamper-pane-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
}

.hamper-count-pill {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #3474d4;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.hamper-search-wrap {
  position: relative;
  margin: 0 16px 12px;
}

.hamper-search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.hamper-search-wrap input {
  width: 100%;
  height: 44px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  padding: 0 12px 0 38px;
  background: #f8fafc;
}

.hamper-search-wrap input:focus {
  outline: none;
  border-color: #3474d4;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(52, 116, 212, 0.12);
}

.hamper-catalog-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 16px;
  max-height: 560px;
  overflow: auto;
}

.hamper-catalog-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid #eef2f7;
  background: #fbfcfe;
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.hamper-catalog-card:hover:not(:disabled) {
  border-color: #3474d4;
  background: #f3f8ff;
  transform: translateY(-1px);
}

.hamper-catalog-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
  flex-shrink: 0;
}

.hamper-catalog-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hamper-catalog-copy strong {
  font-size: 13px;
  color: #1e293b;
  line-height: 1.35;
}

.hamper-catalog-copy em {
  font-style: normal;
  font-size: 12px;
  color: #64748b;
}

.hamper-catalog-action {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #3474d4;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.hamper-catalog-card.is-added,
.hamper-catalog-card:disabled {
  cursor: default;
  opacity: 0.72;
}

.hamper-catalog-card.is-added .hamper-catalog-action {
  background: #dbeafe;
  color: #1e40af;
}

.hamper-editor-basket {
  position: sticky;
  top: 88px;
}

.hamper-editor-collage {
  margin: 0 16px 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f7;
  min-height: 140px;
}

.hamper-editor-collage .hamper-collage,
.hamper-manage-card .hamper-collage {
  height: 148px;
}

.hamper-editor-collage-empty {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 13px;
}

.hamper-basket-list {
  padding: 0 16px 12px;
  max-height: 320px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hamper-basket-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  background: #f8fafc;
}

.hamper-basket-row img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
}

.hamper-basket-copy {
  flex: 1;
  min-width: 0;
}

.hamper-basket-copy strong,
.hamper-basket-copy span {
  display: block;
}

.hamper-basket-copy strong {
  font-size: 13px;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hamper-basket-copy span {
  font-size: 12px;
  color: #64748b;
}

.hamper-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.hamper-stepper button,
.hamper-stepper input {
  border: 0;
  background: transparent;
  height: 30px;
  width: 28px;
  text-align: center;
  padding: 0;
}

.hamper-stepper input {
  width: 36px;
  font-size: 13px;
  font-weight: 600;
}

.hamper-stepper input:focus {
  outline: none;
}

.hamper-remove {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 18px;
  line-height: 1;
}

.hamper-empty-basket,
.hamper-empty-catalog {
  padding: 28px 12px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.hamper-empty-basket strong,
.hamper-empty-catalog {
  display: block;
}

.hamper-empty-catalog--error {
  color: #b91c1c;
}

.hamper-editor-footer {
  border-top: 1px solid #eef2f7;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hamper-editor-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.hamper-editor-total span {
  color: #64748b;
  font-size: 13px;
}

.hamper-editor-total strong {
  font-size: 18px;
  color: #1e293b;
}

.hamper-editor-actions {
  display: flex;
  gap: 8px;
}

.hamper-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 0;
}

.hamper-btn-primary {
  background: #3474d4;
  color: #fff;
}

.hamper-btn-ghost {
  background: #f1f5f9;
  color: #334155;
}

.hamper-manage-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.hamper-manage-head h5 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.hamper-manage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hamper-manage-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.hamper-manage-card .hamper-collage {
  height: 100%;
  min-height: 148px;
}

.hamper-manage-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hamper-manage-body h3 {
  margin: 0;
  font-size: 16px;
  color: #1e293b;
}

.hamper-manage-stats {
  display: flex;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
}

.hamper-manage-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

@media (max-width: 1199px) {
  .hamper-editor-grid,
  .hamper-manage-grid,
  .hamper-manage-card {
    grid-template-columns: 1fr;
  }
  .hamper-editor-basket {
    position: static;
  }
}

@media (max-width: 767px) {
  .hamper-editor-hero {
    flex-direction: column;
    padding: 16px;
  }
}
