/* ==========================================================================
   DreamySample26 — Free Sample Picker
   Drawer (compact list) + Cart page (card grid)
   Inherits --dc-* tokens from cart CSS; .section / .section-head already styled.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Drawer — rounded card, matches .dreamycartdrawer26-upsell aesthetic
   -------------------------------------------------------------------------- */

.dreamysample26-drawer {
  border: 1px solid var(--dc-lineSoft, rgba(0, 0, 0, .08));
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .025) 0%, rgba(0, 0, 0, .01) 100%);
  padding: 14px;
  margin: 14px 0 0;
}

.dreamysample26-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dreamysample26-drawer-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #050505;
}

.dreamysample26-drawer-count {
  font-size: 0.68rem;
  color: var(--dc-muted, #6f6f6f);
}

.dreamysample26-drawer-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Each slot: thumbnail | name | action button */
.dreamysample26-slot {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 10px;
}

.dreamysample26-slot-img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--dc-stage, #f4f4f4);
  display: block;
}

/* Selected: thin dark ring on image */
.dreamysample26-slot--selected .dreamysample26-slot-img {
  outline: 1.5px solid #050505;
  outline-offset: 2px;
}

.dreamysample26-slot-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: #050505;
  line-height: 1.3;
}

.dreamysample26-slot--selected .dreamysample26-slot-name {
  font-weight: 600;
}

/* Add button — matches .upsell-atc style */
.dreamysample26-slot-add {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, .12);
  color: #050505;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1;
}

.dreamysample26-slot-add:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, .22);
}

/* Remove button — small subtle ✕ */
.dreamysample26-slot-remove {
  background: transparent;
  border: none;
  color: var(--dc-muted, #6f6f6f);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 6px 8px;
  line-height: 1;
  font-family: inherit;
  border-radius: 50%;
}

.dreamysample26-slot-remove:hover {
  color: #050505;
  background: rgba(0, 0, 0, .05);
}

/* "All set" message in drawer */
.dreamysample26-drawer-all-set {
  font-size: 0.72rem;
  color: var(--dc-muted, #6f6f6f);
  text-align: center;
  padding-top: 8px;
  margin: 0;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Cart page — editorial card grid
   Matches .cs cross-sell card pattern in dreamycarttemplate26.css
   -------------------------------------------------------------------------- */

/* Count badge in section-head */
.dreamysample26-count-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--dc-muted, #6f6f6f);
  white-space: nowrap;
  align-self: flex-start;
  padding-top: 4px;
}

.dreamysample26-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

/* Card */
.dreamysample26-card {
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease;
}

.dreamysample26-card:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, .09);
}

/* Selected card: dark border */
.dreamysample26-card--selected {
  border: 1.5px solid #050505;
  box-shadow: none;
}

/* Portrait image area — editorial feel */
.dreamysample26-card-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}

.dreamysample26-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ✓ checkmark overlay — bottom-right of image on selected cards */
.dreamysample26-card-check {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #050505;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

.dreamysample26-card-body {
  padding: 12px 14px 4px;
  flex: 1;
}

.dreamysample26-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #050505;
  margin: 0 0 3px;
  line-height: 1.25;
}

.dreamysample26-card-cat {
  font-size: 0.7rem;
  color: var(--dc-muted, #6f6f6f);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0;
}

/* Buttons — full-width pill, matches .btn pattern */
.dreamysample26-card-add,
.dreamysample26-card-remove {
  display: block;
  width: calc(100% - 24px);
  margin: 10px 12px 12px;
  height: 40px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-family: inherit;
  text-align: center;
  line-height: 40px;
  padding: 0;
  transition: opacity 0.15s ease;
}

.dreamysample26-card-add {
  background: #050505;
  color: #fff;
}

.dreamysample26-card-add:hover {
  opacity: 0.82;
}

.dreamysample26-card-remove {
  background: #f4f4f5;
  color: #050505;
}

.dreamysample26-card-remove:hover {
  background: #eaeaeb;
}

/* "All samples selected" message — full-width soft banner */
.dreamysample26-all-set {
  grid-column: 1 / -1;
  background: #f4f4f5;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: #050505;
  text-align: center;
  margin: 0;
}

@media (max-width: 639px) {
  .dreamysample26-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Cart item row — sample gift display overrides
   -------------------------------------------------------------------------- */

/* "Free" price label replaces the C$0.00 amount */
.dreamysample26-free-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #050505;
  letter-spacing: 0.02em;
}

/* "Gift" qty pill — replaces the +/− stepper for sample items */
#dreamyheader26-cart .dreamysample26-gift-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .09);
  background: rgba(0, 0, 0, .04);
  font-weight: 600;
  font-size: 0.75rem;
  color: #050505;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
