/* ══════════════════════════════════════════════════════════════════
   MAXLI BY LAXMI — CUSTOM ₹999 COMBO STUDIO (/combo-builder)
   Executive Architectural Theme · Sharp Studio Geometry · Zero Clutter
   ══════════════════════════════════════════════════════════════════ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ═══ 1. CLEAN STUDIO HEADER + PACK SWITCHER ═══ */
.cb-hero {
  background: #f6f3ec;
  border-bottom: 1px solid #e5dfd2;
  padding: 20px 24px;
}

.cb-hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 28px;
  align-items: center;
}

.cb-hero-title {
  font-family: var(--heading);
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 5px;
}

.cb-hero-sub {
  font-size: 0.86rem;
  line-height: 1.45;
  color: #57534e;
  margin: 0;
}

.cb-hero-copy,
.cb-pack-selector-col,
.cb-catalog-col,
.cb-box-sidebar,
.cb-filters-bar {
  min-width: 0;
  max-width: 100%;
}

/* Pack Format Selector Column */
.cb-size-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cb-size-card {
  text-align: left;
  background: #ffffff;
  border: 1.5px solid #dfd9cb;
  border-radius: 4px;
  padding: 11px 13px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.cb-size-card:hover {
  border-color: #8a8376;
}

.cb-size-card.is-selected {
  border-color: #111111;
  box-shadow: 0 0 0 1px #111111, 0 6px 16px rgba(17, 17, 17, 0.06);
}

.cb-size-media {
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  overflow: hidden;
  background: #121215;
  border: 1px solid #e5dfd2;
}

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

.cb-size-body {
  min-width: 0;
}

.cb-size-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.cb-size-radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #c7c0b2;
  background: #ffffff;
  position: relative;
  flex-shrink: 0;
}

.cb-size-card.is-selected .cb-size-radio-dot {
  background: #111111;
  border-color: #111111;
}

.cb-size-card.is-selected .cb-size-radio-dot::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 2px;
  width: 4px;
  height: 7.5px;
  border: solid #ffffff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

.cb-size-name {
  font-family: var(--heading);
  font-size: 0.94rem;
  font-weight: 800;
  color: #111111;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cb-size-formula {
  font-size: 0.76rem;
  font-weight: 600;
  color: #57534e;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cb-size-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cb-size-price {
  font-family: var(--heading);
  font-size: 0.96rem;
  font-weight: 800;
  color: #111111;
}

.cb-size-mrp {
  font-size: 0.74rem;
  color: #9ca3af;
  text-decoration: line-through;
}

/* ═══ 2. MAIN 2-COLUMN STUDIO WORKSPACE ═══ */
.cb-main {
  padding: 28px 24px 72px;
  background: #ffffff;
}

.cb-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.cb-edit-banner {
  background: #fdf8eb;
  border: 1px solid #e5cf8e;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.cb-edit-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
  color: #4b5563;
}

.cb-edit-banner-text strong {
  color: #111111;
}

.cb-edit-cancel-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: #111111;
  text-decoration: underline;
}

.cb-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 365px;
  gap: 30px;
  align-items: start;
}

/* ── LEFT COLUMN: FRAGRANCE CATALOG ── */
.cb-catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cb-catalog-step {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-gold-dark);
  margin-bottom: 3px;
}

.cb-step-title {
  font-family: var(--heading);
  font-size: 1.28rem;
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.015em;
}

.cb-count-muted {
  font-size: 0.84rem;
  font-weight: 500;
  color: #6b7280;
  margin-left: 4px;
}

.cb-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  width: 245px;
  padding: 0 11px;
  background: #faf9f6;
  border: 1px solid #dcd6c8;
  border-radius: 3px;
  color: #6b7280;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.cb-search-wrap:focus-within {
  background: #ffffff;
  border-color: #111111;
  color: #111111;
}

.cb-search-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 0.82rem;
  color: #111111;
}

/* Filter Toolbar */
.cb-filters-bar {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ece7dc;
}

.cb-filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.cb-filter-chips::-webkit-scrollbar {
  display: none;
}

.cb-chip {
  height: 33px;
  padding: 0 13px;
  border-radius: 3px;
  background: #ffffff;
  border: 1px solid #dfd9cb;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.cb-chip:hover {
  border-color: #111111;
  color: #111111;
}

.cb-chip.active {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.cb-chip-divider {
  width: 1px;
  height: 18px;
  background: #dcd6c8;
  margin: 0 4px;
  flex-shrink: 0;
}

/* Limit Reached Notice */
.cb-limit-banner {
  background: #111111;
  border: 1px solid #27272a;
  color: #f4f4f5;
  border-radius: 3px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.cb-limit-banner svg {
  color: #f0d078;
  flex-shrink: 0;
}

/* 3-Column Studio Perfume Grid */
.cb-perfume-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cb-perfume-card {
  background: #ffffff;
  border: 1px solid #e5e0d4;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cb-perfume-card:hover:not(.is-unavailable) {
  border-color: #8f887a;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
  transform: translateY(-1px);
}

.cb-perfume-card.is-selected {
  border-color: #111111;
  box-shadow: 0 0 0 1px #111111, 0 8px 20px rgba(17, 17, 17, 0.08);
}

.cb-perfume-card.is-unavailable {
  opacity: 0.52;
  cursor: not-allowed;
}

.cb-perfume-card.is-pack-locked:not(.is-selected) {
  opacity: 0.68;
}

.cb-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f8f6f1;
  border-bottom: 1px solid #efeae0;
  overflow: hidden;
}

.cb-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.cb-perfume-card:hover:not(.is-unavailable) .cb-card-img {
  transform: scale(1.03);
}

.cb-card-cat-pill {
  position: absolute;
  top: 9px;
  left: 9px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e2dcd0;
  color: #1f2937;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
}

.cb-card-size-pill {
  position: absolute;
  top: 9px;
  right: 9px;
  background: rgba(17, 17, 17, 0.86);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 2px;
}

.cb-card-slot-badge {
  position: absolute;
  bottom: 9px;
  left: 9px;
  background: #0c0c0e;
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: #f0d078;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 2px;
}

.cb-card-body {
  padding: 12px 13px 13px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cb-card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  margin-bottom: 4px;
}

.cb-card-rating {
  font-weight: 700;
  color: #9a6e08;
}

.cb-card-view-link {
  color: #6b7280;
  font-weight: 600;
  font-size: 0.7rem;
}

.cb-card-view-link:hover {
  color: #111111;
  text-decoration: underline;
}

.cb-card-title {
  font-family: var(--heading);
  font-size: 0.94rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.25;
  margin-bottom: 3px;
}

.cb-card-notes {
  font-size: 0.75rem;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 11px;
}

.cb-card-select-btn {
  margin-top: auto;
  width: 100%;
  height: 36px;
  border-radius: 3px;
  background: #faf9f6;
  border: 1px solid #cfc8b8;
  color: #111111;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.cb-perfume-card:hover:not(.is-unavailable):not(.is-pack-locked) .cb-card-select-btn {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.cb-perfume-card.is-selected .cb-card-select-btn {
  background: #0c0c0e;
  border-color: #0c0c0e;
  color: #f0d078;
}

.cb-card-select-btn:disabled {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

.cb-empty-filter {
  text-align: center;
  padding: 40px 20px;
  background: #faf8f4;
  border: 1px solid #e5e0d4;
  border-radius: 4px;
}

.cb-empty-filter p {
  font-size: 0.88rem;
  color: #4b5563;
}

.cb-reset-filter-btn {
  margin-top: 12px;
  height: 36px;
  padding: 0 18px;
  border-radius: 3px;
  background: #111111;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ═══ 3. RIGHT COLUMN: STICKY LIVE GIFT BOX TRAY ═══ */
.cb-box-sidebar {
  position: sticky;
  top: 90px;
}

.cb-box-tray {
  background: #ffffff;
  border: 1px solid #dcd6c8;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

/* Obsidian Top Header inside Box Tray */
.cb-tray-head {
  background: #0c0c0e;
  color: #ffffff;
  padding: 16px 18px 14px;
  border-bottom: 1px solid #27272a;
}

.cb-tray-head-top {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}

.cb-tray-box-img {
  width: 56px;
  height: 56px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: #18181b;
  flex-shrink: 0;
}

.cb-tray-title-col {
  min-width: 0;
  flex: 1;
}

.cb-summary-kicker {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #f0d078;
  margin-bottom: 2px;
}

.cb-summary-heading {
  font-family: var(--heading);
  font-size: 1.06rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 4px;
}

.cb-tray-price-line {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cb-tray-price-line strong {
  font-family: var(--heading);
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
}

.cb-tray-price-line del {
  font-size: 0.76rem;
  color: #71717a;
}

.cb-tray-save-chip {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.42);
  color: #f0d078;
}

.cb-tray-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
  color: #a1a1aa;
  margin-bottom: 6px;
}

#cbSummaryCountBadge {
  color: #f4f4f5;
  font-weight: 700;
}

.cb-tray-progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  overflow: hidden;
}

.cb-tray-progress-fill {
  height: 100%;
  background: #d4af37;
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Utility Bar inside Tray */
.cb-tray-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #faf8f4;
  border-bottom: 1px solid #ece7dc;
}

.cb-util-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: 3px;
  border: 1px solid #dbd4c6;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.73rem;
  font-weight: 700;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cb-util-btn:hover {
  border-color: #111111;
  background: #f9fafb;
}

.cb-clear-btn {
  flex: 0 0 auto;
  color: #b91c1c;
  border-color: #fecaca;
}

.cb-clear-btn:hover {
  border-color: #b91c1c;
  background: #fef2f2;
}

/* Live Slot Rows */
.cb-summary-slots-list {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cb-summary-slot-row {
  background: #ffffff;
  border: 1px solid #e5e0d4;
  border-radius: 3px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cb-summary-slot-row.is-empty {
  background: #faf9f6;
  border-style: dashed;
  border-color: #d6d0c2;
  color: #6b7280;
  font-size: 0.78rem;
  padding: 10px 11px;
}

.cb-empty-slot-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 2px;
  background: #efeae0;
  color: #4b5563;
  font-size: 0.68rem;
  font-weight: 800;
  margin-right: 8px;
  flex-shrink: 0;
}

.cb-empty-slot-left {
  display: flex;
  align-items: center;
}

.cb-summary-slot-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cb-summary-slot-left img {
  width: 38px;
  height: 38px;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid #e5e0d4;
  flex-shrink: 0;
}

.cb-summary-slot-left strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cb-summary-slot-left small {
  display: block;
  font-size: 0.7rem;
  color: #6b7280;
}

.cb-summary-remove-btn {
  width: 26px;
  height: 26px;
  border-radius: 2px;
  color: #6b7280;
  font-size: 0.76rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cb-summary-remove-btn:hover {
  background: #fef2f2;
  color: #b91c1c;
}

/* Gift Presentation Panel inside Tray */
.cb-gift-box-panel {
  padding: 12px 16px;
  background: #faf8f4;
  border-top: 1px solid #ece7dc;
  border-bottom: 1px solid #ece7dc;
}

.cb-gift-toggle-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.cb-gift-toggle-label input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #111111;
  flex-shrink: 0;
}

.cb-gift-toggle-label strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #111111;
  line-height: 1.25;
}

.cb-gift-toggle-label small {
  font-size: 0.72rem;
  color: var(--brand-gold-dark);
  font-weight: 600;
}

.cb-gift-msg-wrap {
  margin-top: 10px;
}

.cb-gift-msg-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.73rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.cb-gift-msg-label em {
  font-style: normal;
  color: #6b7280;
  font-weight: 500;
}

.cb-char-count {
  color: #9ca3af;
}

.cb-gift-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #dbd4c6;
  border-radius: 3px;
  background: #ffffff;
  color: #111111;
  font-size: 0.78rem;
  resize: vertical;
}

.cb-gift-textarea:focus {
  outline: none;
  border-color: #111111;
}

/* Primary & Express CTAs */
.cb-tray-cta-stack {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cb-summary-submit-btn {
  width: 100%;
  height: 44px;
  border-radius: 3px;
  background: #111111;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.18s ease;
}

.cb-summary-submit-btn:hover:not(:disabled) {
  background: #27272a;
}

.cb-summary-submit-btn:disabled {
  background: #e5e7eb;
  color: #6b7280;
  cursor: not-allowed;
}

.cb-summary-buynow-btn {
  width: 100%;
  height: 38px;
  border-radius: 3px;
  background: #fdf8eb;
  border: 1px solid #d4af37;
  color: #111111;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease;
}

.cb-summary-buynow-btn:hover {
  background: #f8edd0;
}

/* ═══ 4. MOBILE / TABLET STICKY SLOT BAR (HIDDEN ON DESKTOP > 1024px) ═══ */
.cb-sticky-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  background: #ffffff;
  border-top: 1px solid #d4cec0;
  box-shadow: 0 -6px 20px rgba(12, 12, 14, 0.1);
  padding: 10px 18px;
}

.cb-sticky-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cb-sticky-left {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.cb-slot-circles {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cb-slot-circle {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 3px;
  border: 1px dashed #c7c0b2;
  background: #faf8f4;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cb-slot-circle.is-filled {
  border: 1.5px solid #111111;
  background: #ffffff;
}

.cb-slot-circle.is-filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cb-slot-circle-x {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 14, 0.7);
  color: #ffffff;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cb-slot-circle.is-filled:hover .cb-slot-circle-x {
  opacity: 1;
}

.cb-sticky-status {
  display: flex;
  flex-direction: column;
}

.cb-sticky-count {
  font-size: 0.84rem;
  font-weight: 800;
  color: #111111;
}

.cb-sticky-sub {
  font-size: 0.72rem;
  color: #6b7280;
}

.cb-sticky-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cb-sticky-price-col {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.cb-sticky-price-lbl {
  font-size: 0.65rem;
  color: #6b7280;
}

.cb-sticky-price-val {
  font-family: var(--heading);
  font-size: 1.08rem;
  font-weight: 800;
  color: #111111;
}

.cb-sticky-cta {
  height: 40px;
  padding: 0 18px;
  border-radius: 3px;
  background: #111111;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cb-sticky-cta:disabled {
  background: #e5e7eb;
  color: #6b7280;
  cursor: not-allowed;
}

/* ═══ 5. DOWNSIZE MODAL & TOAST ═══ */
.cb-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(12, 12, 14, 0.68);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cb-modal-backdrop.is-open {
  display: flex;
}

.cb-modal-dialog {
  width: min(450px, 94vw);
  background: #ffffff;
  border: 1px solid #d6d0c4;
  border-radius: 4px;
  padding: 22px;
  box-shadow: 0 24px 48px rgba(12, 12, 14, 0.25);
}

.cb-modal-title {
  font-family: var(--heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 6px;
}

.cb-modal-desc {
  font-size: 0.85rem;
  color: #4b5563;
  margin-bottom: 14px;
}

.cb-downsize-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.cb-downsize-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #e5e0d4;
  border-radius: 3px;
  cursor: pointer;
}

.cb-downsize-item.is-checked {
  border-color: #111111;
  background: #faf8f4;
}

.cb-downsize-item input {
  accent-color: #111111;
}

.cb-downsize-item img {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  object-fit: cover;
}

.cb-downsize-item span {
  font-size: 0.86rem;
  font-weight: 700;
  color: #111111;
}

.cb-downsize-hint {
  font-size: 0.76rem;
  color: #6b7280;
  margin-bottom: 16px;
}

.cb-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.cb-modal-btn-secondary {
  height: 38px;
  padding: 0 14px;
  border: 1px solid #cfc8b8;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #111111;
}

.cb-modal-btn-primary {
  height: 38px;
  padding: 0 16px;
  border-radius: 3px;
  background: #111111;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

.cb-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #0c0c0e;
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(12, 12, 14, 0.25);
  opacity: 0;
  pointer-events: none;
  z-index: 1500;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cb-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══ 6. RESPONSIVE BREAKPOINTS ═══ */
@media (max-width: 1120px) {
  .cb-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 1024px) {
  .cb-main {
    padding-bottom: 40px;
  }
  .site-footer {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .cb-workspace-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .cb-box-sidebar {
    position: static;
  }
  .cb-sticky-bar {
    display: block;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .cb-sticky-left {
    min-width: 0;
    flex: 1;
  }
  .cb-toast {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 28px);
    text-align: center;
  }
}

@media (max-width: 768px) {
  .cb-hero {
    padding: 16px;
  }
  .cb-hero-inner {
    gap: 14px;
  }
  .cb-hero-title {
    font-size: 1.4rem;
    margin-bottom: 3px;
  }
  .cb-hero-sub {
    font-size: 0.8rem;
  }
  .cb-main {
    padding: 18px 16px 32px;
  }
  .cb-size-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .cb-perfume-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .cb-search-wrap {
    width: 100%;
    height: 40px;
  }
  .cb-search-input,
  .cb-gift-textarea {
    font-size: 16px;
  }
  .cb-catalog-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .cb-hero {
    padding: 14px;
  }
  .cb-main {
    padding: 16px 14px 28px;
  }
  .cb-size-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .cb-size-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 11px 12px;
  }
  .cb-size-media {
    display: none;
  }
  .cb-size-name {
    font-size: 0.9rem;
  }
  .cb-size-formula {
    font-size: 0.74rem;
    margin-bottom: 6px;
  }
  .cb-size-price {
    font-size: 0.95rem;
  }
  .cb-size-mrp {
    font-size: 0.72rem;
  }
  .cb-step-title {
    font-size: 1.14rem;
  }
  .cb-perfume-grid {
    gap: 10px;
  }
  .cb-card-cat-pill,
  .cb-card-size-pill {
    top: 7px;
    font-size: 0.55rem;
    padding: 2px 5px;
  }
  .cb-card-cat-pill {
    left: 7px;
  }
  .cb-card-size-pill {
    right: 7px;
  }
  .cb-card-slot-badge {
    bottom: 7px;
    left: 7px;
    font-size: 0.56rem;
    padding: 2px 6px;
  }
  .cb-card-body {
    padding: 10px;
  }
  .cb-card-title {
    font-size: 0.85rem;
  }
  .cb-card-notes {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }
  .cb-card-select-btn {
    height: 36px;
    font-size: 0.72rem;
  }
  .cb-sticky-bar {
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
  }
  .cb-sticky-inner {
    gap: 8px;
  }
  .cb-sticky-left {
    gap: 8px;
  }
  .cb-sticky-price-col,
  .cb-sticky-sub {
    display: none;
  }
  .cb-slot-circles {
    gap: 4px;
  }
  .cb-slot-circle {
    width: 30px;
    height: 30px;
    font-size: 0.66rem;
  }
  .cb-sticky-count {
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cb-sticky-cta {
    height: 38px;
    padding: 0 12px;
    font-size: 0.71rem;
  }
}

@media (max-width: 355px) {
  .cb-size-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cb-sticky-status {
    display: none;
  }
}
