:root {
  --byo-cream-bg: #FCFAF6;
  --byo-forest-green: #0B3B24;
  --byo-gold: #C5A059;
  --byo-dark-charcoal: #1E221E;
  --byo-white-card: #FFFFFF;
  --byo-gray-text: #606C61;
}

.byo-wizard-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--byo-cream-bg);
  padding: 40px 20px 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 4px 30px rgba(11, 59, 36, 0.03);
  color: var(--byo-dark-charcoal);
  box-sizing: border-box;
}

.byo-wizard-container * {
  box-sizing: border-box;
}

/* Wizard Progress Header */
.byo-wizard-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  gap: 15px;
}

.byo-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.byo-nav-item.active {
  opacity: 1;
}

.byo-nav-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--byo-dark-charcoal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.byo-nav-item.active .byo-nav-num {
  background-color: var(--byo-forest-green);
}

.byo-nav-label {
  font-size: 14px;
  font-weight: 500;
}

.byo-nav-line {
  height: 1px;
  width: 50px;
  background-color: #E2DFD8;
}

/* Titles */
.byo-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.byo-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.byo-subtitle {
  font-size: 16px;
  color: var(--byo-gray-text);
}

/* Grid layout for box cards */
.byo-box-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.byo-box-card {
  background-color: var(--byo-white-card);
  border: 1px solid #E2DFD8;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.byo-box-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(11, 59, 36, 0.08);
}

.byo-box-card.selected {
  border-color: var(--byo-forest-green);
  border-width: 2px;
  box-shadow: 0 0 15px rgba(11, 59, 36, 0.12);
}

.byo-box-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 30px;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.5px;
  z-index: 10;
}

.byo-box-img-wrapper {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
}

.byo-box-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.byo-box-card:hover .byo-box-img-wrapper img {
  transform: scale(1.05);
}

.byo-box-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.byo-box-name {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--byo-forest-green);
}

.byo-box-capacity-text {
  font-size: 14px;
  color: var(--byo-gray-text);
  margin: 0;
}

.byo-box-dim {
  font-size: 12px;
  color: #A3AFA5;
}

.byo-selection-indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--byo-forest-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.byo-box-card.selected .byo-selection-indicator {
  opacity: 1;
  transform: scale(1);
}

/* Swatches styling */
.byo-swatch-container {
  margin-top: 50px;
  border-top: 1px solid #E2DFD8;
  padding-top: 40px;
  animation: fadeIn 0.6s ease forwards;
}

.byo-swatch-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
  color: var(--byo-forest-green);
}

.byo-swatches-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.byo-swatch-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  width: 100px;
}

.byo-swatch-img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.byo-swatch-card:hover .byo-swatch-img {
  transform: scale(1.05);
}

.byo-swatch-card.selected .byo-swatch-img {
  border-color: var(--byo-forest-green);
  box-shadow: 0 0 12px rgba(11, 59, 36, 0.2);
}

.byo-swatch-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--byo-dark-charcoal);
}

.byo-action-footer {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.byo-btn {
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 36px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.byo-btn-primary {
  background-color: var(--byo-forest-green);
  color: #fff;
}

.byo-btn-primary:hover:not(:disabled) {
  opacity: 0.95;
  transform: translateY(-2px);
}

.byo-btn:disabled {
  background-color: #E2DFD8;
  color: #909090;
  cursor: not-allowed;
}

/* STEP 2 - FILL THE BOX */
.byo-step2-header {
  text-align: center;
  margin-bottom: 30px;
}

.byo-step2-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #EBF7EE;
  color: #1E6B2C;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.byo-step2-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: var(--byo-forest-green);
}

/* Live Capacity Progress Bar */
.byo-capacity-bar-container {
  background: var(--byo-white-card);
  border: 1px solid #E2DFD8;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.byo-capacity-text-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
}

.byo-capacity-label {
  color: var(--byo-forest-green);
}

.byo-capacity-track {
  height: 10px;
  background-color: #F0EDE8;
  border-radius: 5px;
  overflow: hidden;
}

.byo-capacity-fill {
  height: 100%;
  background-color: var(--byo-forest-green);
  width: 0%;
  border-radius: 5px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.byo-capacity-warning {
  color: #C13333;
  font-size: 12px;
  margin: 8px 0 0 0;
  font-weight: 500;
}

/* Horizontally scrollable chips */
.byo-category-chips-wrapper {
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--byo-cream-bg);
  padding: 10px 0;
  margin-bottom: 30px;
  scrollbar-width: none;
}

.byo-category-chips-wrapper::-webkit-scrollbar {
  display: none;
}

.byo-category-chips {
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.byo-chip-btn {
  background: var(--byo-white-card);
  border: 1px solid #E2DFD8;
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--byo-gray-text);
}

.byo-chip-btn.active {
  background-color: var(--byo-forest-green);
  color: #fff;
  border-color: var(--byo-forest-green);
}

/* Product Grid */
.byo-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.byo-product-card {
  background: var(--byo-white-card);
  border-radius: 16px;
  border: 1px solid #E2DFD8;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.byo-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.04);
}

.byo-product-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.byo-product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.byo-product-card:hover .byo-product-img-box img {
  transform: scale(1.03);
}

.byo-product-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.byo-product-name {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--byo-forest-green);
}

.byo-product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--byo-gold);
  margin-bottom: 8px;
}

.byo-product-desc {
  font-size: 12px;
  color: var(--byo-gray-text);
  line-height: 1.5;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.byo-product-actions {
  margin-top: auto;
}

.byo-btn-add {
  width: 100%;
  background: transparent;
  border: 1px solid var(--byo-forest-green);
  color: var(--byo-forest-green);
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.byo-btn-add:hover {
  background-color: var(--byo-forest-green);
  color: #fff;
}

.byo-qty-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #F4F2EB;
  border-radius: 30px;
  padding: 4px;
}

.byo-qty-btn {
  background: var(--byo-white-card);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.byo-qty-val {
  font-weight: 600;
  font-size: 14px;
}

/* Floating Sticky Summary Bar */
.byo-sticky-summary {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - 40px);
  max-width: 600px;
  background-color: var(--byo-forest-green);
  color: #fff;
  border-radius: 20px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.byo-sticky-summary.visible {
  transform: translateX(-50%) translateY(0);
}

.byo-summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.byo-summary-box-icon {
  font-size: 24px;
}

.byo-summary-info {
  display: flex;
  flex-direction: column;
}

.byo-summary-title {
  font-weight: 600;
  font-size: 14px;
}

.byo-summary-count {
  font-size: 11px;
  opacity: 0.8;
}

.byo-summary-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.byo-summary-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--byo-gold);
}

.byo-btn-summary-toggle {
  background: var(--byo-gold);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
}

/* Bottom Sheet Drawer */
.byo-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
  transition: opacity 0.3s ease;
}

.byo-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.byo-bottom-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--byo-cream-bg);
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  z-index: 2001;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
}

.byo-bottom-drawer.open {
  transform: translateY(0);
}

.byo-drawer-handle {
  width: 40px;
  height: 4px;
  background-color: #E2DFD8;
  border-radius: 2px;
  margin: 12px auto;
}

.byo-drawer-header {
  padding: 0 24px 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E2DFD8;
}

.byo-drawer-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--byo-forest-green);
}

.byo-drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.byo-drawer-content {
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.byo-drawer-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--byo-forest-green);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.byo-drawer-box-summary {
  background-color: var(--byo-white-card);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #E2DFD8;
}

.byo-drawer-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.byo-drawer-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--byo-white-card);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #E2DFD8;
}

.byo-drawer-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.byo-drawer-item-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.byo-drawer-item-details {
  display: flex;
  flex-direction: column;
}

.byo-drawer-item-name {
  font-weight: 600;
  font-size: 14px;
}

.byo-drawer-item-price {
  font-size: 12px;
  color: var(--byo-gold);
  font-weight: 700;
}

.byo-drawer-pricing-summary {
  border-top: 1px dashed #E2DFD8;
  padding-top: 20px;
}

.byo-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
}

.byo-total-row {
  font-size: 18px;
  font-weight: 700;
  color: var(--byo-forest-green);
  border-top: 1px solid #E2DFD8;
  padding-top: 12px;
  margin-top: 12px;
}

.byo-checkout-action-btn {
  width: 100%;
  padding: 16px;
  border-radius: 30px;
  font-size: 16px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 991px) {
  .byo-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .byo-box-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .byo-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .byo-product-info {
    padding: 12px;
  }

  .byo-product-name {
    font-size: 14px;
  }

  .byo-product-price {
    font-size: 13px;
  }
}
