/* Style Grid - Bold 8-Product Display */

.style-grid-section {
  padding: 6rem 0 4rem;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.style-grid-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 1;
}

.style-grid-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--forest-green);
  background: var(--light-green);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.style-grid-title {
  font-family: var(--font-main);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--dark-brown);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.style-grid-subtitle {
  font-size: 1.15rem;
  color: var(--dark-brown);
  opacity: 0.7;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Bundle Discount Callout */
.bundle-callout {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.bundle-primary {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest-green);
  margin-bottom: 0.25rem;
}

.bundle-secondary {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0.85;
  margin-top: 0.6rem;
}

.living-gallery-link {
  color: var(--forest-green);
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.living-gallery-link:hover {
  color: #2d5a3d;
}

/* NEW badge for products */
.new-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--forest-green);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Most Popular badge */
.popular-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--light-green);
  color: var(--forest-green);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bundle-callout-icon {
  display: none;
}

.bundle-callout-text strong {
  font-weight: 600;
}

/* Details line - light and simple */
.style-grid-details {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--dark-brown);
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.details-text {
  letter-spacing: 0.01em;
}

.details-toggle {
  background: none;
  border: none;
  color: var(--forest-green);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  transition: opacity 0.2s;
}

.details-toggle:hover {
  opacity: 0.7;
}

/* Grid Trust Labels */
.grid-trust-labels {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding: 1rem 0;
}

.grid-trust-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--dark-brown);
}

.grid-trust-label svg,
.grid-trust-label img {
  flex-shrink: 0;
  color: var(--forest-green);
  width: 28px;
  height: 28px;
}

/* Color the Ohio SVG to match forest-green (#3d5a47) */
.grid-trust-label img[src*="ohio"] {
  filter: brightness(0) saturate(100%) invert(31%) sepia(15%) saturate(749%) hue-rotate(93deg) brightness(96%) contrast(89%);
}

/* Details Sheet */
.details-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.details-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}

.details-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 1rem 1.5rem 2rem;
  max-height: 70vh;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 10000;
}

.details-sheet-overlay.active .details-sheet {
  transform: translateY(0);
}

.details-sheet-handle {
  width: 40px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 0 auto 1rem;
}

.details-sheet-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-brown);
  text-align: center;
  margin: 0 0 1.25rem;
}

.details-sheet-specs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--dark-brown);
}

.spec-icon {
  font-size: 1rem;
}

.details-sheet-included {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.included-label {
  font-size: 0.8rem;
  color: var(--dark-brown);
  opacity: 0.6;
  margin: 0 0 0.5rem;
}

.included-items {
  font-size: 0.9rem;
  color: var(--dark-brown);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.included-note {
  font-size: 0.85rem;
  color: var(--forest-green);
  margin: 0;
  font-weight: 500;
}

/* The Grid */
.style-grid-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* Individual Style Card */
.style-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: #fff;
  border: 2px solid var(--light-green);
  display: flex;
  flex-direction: column;
}

.style-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 20px 40px rgba(44, 74, 60, 0.15),
    0 0 0 2px var(--forest-green);
  border-color: var(--forest-green);
}

/* Frame image placeholder - will be replaced with real images */
.style-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.style-card:hover .style-card-image {
  transform: scale(1.08);
}

/* Frame image area */
.style-card-image-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--light-green) 0%, #f5f3f0 100%);
  overflow: hidden;
}

.style-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.style-card:hover .style-card-image {
  transform: scale(1.05);
}

/* Style Card Content */
.style-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.style-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.style-name {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-brown);
  margin: 0;
  letter-spacing: -0.01em;
}

.style-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.style-subtitle {
  font-size: 0.8rem;
  color: var(--warm-brown);
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.info-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--forest-green);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}

.info-trigger:hover {
  opacity: 0.7;
}

/* Title Row - Name + Price */
.style-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

/* Action Row - Buy Now + Gallery upsell */
.style-action-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.buy-now-btn {
  background: var(--forest-green) !important;
  color: white !important;
  border: none !important;
  padding: 0.6rem 1.25rem !important;
  font-size: 0.9rem !important;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.buy-now-btn:hover {
  background: #1a3a2a !important;
  transform: translateY(-1px);
}

.buy-now-btn.active {
  background: var(--forest-green) !important;
  box-shadow: 0 0 0 3px rgba(44, 74, 60, 0.3);
}

/* Gallery Upsell - inline with Buy Now */
.gallery-upsell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gallery-upsell-text {
  font-size: 0.75rem;
  color: var(--warm-brown);
  opacity: 0.85;
  white-space: nowrap;
}

.gallery-chips {
  display: flex;
  gap: 4px;
}

.gallery-chip {
  width: 32px !important;
  height: 32px !important;
  font-size: 0.85rem !important;
  background: transparent !important;
  border: 2px solid var(--light-green) !important;
  color: var(--forest-green) !important;
}

.gallery-chip:hover {
  background: var(--light-green) !important;
  border-color: var(--forest-green) !important;
}

.gallery-chip.active {
  background: var(--forest-green) !important;
  color: white !important;
  border-color: var(--forest-green) !important;
}

/* Quantity Row */
.style-quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.style-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forest-green);
}

.bundle-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bundle-label {
  font-size: 0.8rem;
  color: var(--warm-brown);
  margin-right: 4px;
  white-space: nowrap;
  font-weight: 500;
  display: none; /* Hidden by default, shown in bundle mode */
}

.bundle-savings-inline {
  font-size: 0.75rem;
  color: var(--forest-green);
  font-weight: 600;
  margin-left: 0.5rem;
  white-space: nowrap;
  background: rgba(76, 114, 91, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.bundle-savings-inline:empty {
  display: none;
}

.bundle-chip {
  min-width: 32px;
  height: 32px;
  padding: 0.4rem 0.6rem;
  border: 2px solid var(--light-green);
  background: transparent;
  color: var(--forest-green);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: 8px;
  transition: all 0.15s ease;
  font-family: var(--font-main);
  white-space: nowrap;
}

.chip-qty {
  font-size: 0.9rem;
  font-weight: 700;
}

.chip-save {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.75;
  color: var(--forest-green);
}

.bundle-chip:hover {
  background: var(--light-green);
  border-color: var(--forest-green);
}

.bundle-chip.active {
  background: var(--forest-green);
  color: white;
  border-color: var(--forest-green);
  animation: chipPulse 0.2s ease;
}

@keyframes chipPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.bundle-chip.active .chip-save {
  color: white;
  opacity: 0.9;
}

/* Bundle Trigger Link */
.bundle-trigger {
  background: none;
  border: none;
  color: var(--forest-green);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.5;
  text-align: left;
}

.bundle-trigger:hover {
  opacity: 0.75;
}

.bundle-trigger:hover .trigger-arrow {
  transform: translateX(3px);
}

.trigger-arrow {
  display: inline;
  transition: transform 0.2s ease;
  font-size: 1em;
  margin-left: 0.25em;
}

.nowrap {
  white-space: nowrap;
}

/* Bundle selector removed - now using Gallery Builder sheet */

/* Keep action row horizontal in bundle mode */
body.bundle-mode-active .style-action-row {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Bundle Mode Banner */
.bundle-mode-banner {
  display: none;
  margin-top: 1.5rem;
  margin-bottom: -0.5rem;
}

/* Bundle mode banner removed - now using Gallery Builder sheet */

.bundle-mode-content {
  background: linear-gradient(135deg, var(--light-green) 0%, #e8f5e9 100%);
  border: 2px solid var(--forest-green);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bundle-mode-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bundle-mode-text {
  font-size: 0.95rem;
  color: var(--dark-brown);
}

.bundle-mode-text strong {
  color: var(--forest-green);
}

.bundle-savings-dynamic {
  font-size: 1rem;
  color: var(--forest-green);
  font-weight: 600;
}

.savings-current {
  color: var(--warm-brown);
  font-weight: 400;
  font-size: 0.9rem;
}

.savings-amount {
  color: var(--forest-green);
  font-weight: 700;
  font-size: 1.1rem;
}

.savings-progress {
  color: var(--dark-brown);
  opacity: 0.7;
}

.bundle-mode-close {
  background: var(--forest-green);
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  white-space: nowrap;
}

.bundle-mode-close:hover {
  background: var(--dark-brown);
}

/* Bundle mode styles removed - now using Gallery Builder sheet */

.bundle-chip.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Legacy quantity stepper (kept for compatibility) */
.quantity-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--light-green);
  border-radius: 10px;
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--forest-green);
  font-size: 1.25rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: rgba(44, 74, 60, 0.15);
}

.qty-btn:active {
  background: rgba(44, 74, 60, 0.25);
}

.qty-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty-value {
  min-width: 32px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-brown);
}

/* Image expand indicator */
.style-card-image-wrapper {
  position: relative;
  cursor: zoom-in;
}

.expand-hint {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.25s ease;
  pointer-events: none;
}

.expand-hint svg {
  width: 18px;
  height: 18px;
  color: var(--forest-green);
}

.style-card-image-wrapper:hover .expand-hint {
  opacity: 1;
  transform: scale(1);
}

/* Floating Summary Bar */
.gallery-summary-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 40px));
  width: calc(100% - 40px);
  max-width: 900px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--light-green);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  z-index: 998; /* Below Crisp (typically 1000) */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

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

/* Coupon - completely hidden from summary bar */
.summary-coupon {
  display: none !important;
}

/* Coupon Sheet Overlay */
.coupon-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.coupon-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Coupon Sheet */
.coupon-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 1.5rem;
  z-index: 1101;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 500px;
  margin: 0 auto;
}

.coupon-sheet-overlay.active .coupon-sheet {
  transform: translateY(0);
}

.coupon-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.coupon-sheet-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-brown);
  margin: 0;
}

.coupon-sheet-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--warm-brown);
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.6;
}

.coupon-sheet-close:hover {
  opacity: 1;
}

.coupon-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.coupon-sheet-body input {
  padding: 0.9rem 1rem;
  border: 2px solid var(--light-green);
  border-radius: 10px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  font-weight: 600;
}

.coupon-sheet-body input:focus {
  outline: none;
  border-color: var(--forest-green);
}

.coupon-sheet-body input.error {
  border-color: #e74c3c;
  animation: shake 0.3s ease;
}

.coupon-sheet-apply {
  padding: 0.9rem 1.5rem;
  background: var(--forest-green);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.coupon-sheet-apply:hover {
  background: var(--dark-brown);
}

.coupon-sheet-hint {
  font-size: 0.85rem;
  text-align: center;
  color: var(--warm-brown);
  margin: 0;
}

.coupon-sheet-hint.success {
  color: var(--forest-green);
}

.coupon-sheet-hint.error {
  color: #e74c3c;
}

.summary-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.summary-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.summary-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-brown);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.summary-count {
  background: var(--forest-green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.summary-items-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.summary-items {
  font-size: 0.9rem;
  color: var(--dark-brown);
  opacity: 0.7;
}

.summary-edit-btn {
  background: transparent;
  border: 1px solid var(--forest-green);
  color: var(--forest-green);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.summary-edit-btn:hover {
  background: var(--forest-green);
  color: white;
}


.summary-note {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--forest-green);
  font-weight: 600;
  background: rgba(76, 114, 91, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}

.summary-pricing {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.summary-prices {
  text-align: right;
}

.summary-original {
  font-size: 0.85rem;
  color: var(--dark-brown);
  opacity: 0.5;
  text-decoration: line-through;
}

.summary-current {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--forest-green);
}

.summary-savings {
  font-size: 0.8rem;
  color: var(--forest-green);
  font-weight: 500;
}

.summary-checkout-btn {
  padding: 1rem 2rem;
  border-radius: 12px;
  border: none;
  background: var(--forest-green);
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.summary-checkout-btn:hover {
  background: #1a3a2a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 74, 60, 0.3);
}

/* Image Lightbox */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  cursor: zoom-out;
}

.image-lightbox.visible {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.image-lightbox.visible .lightbox-image {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
}

/* Bottom helper text */
.style-grid-footer {
  text-align: center;
  margin-top: 2.5rem;
  padding: 0 1rem;
}

.style-grid-helper {
  font-size: 0.95rem;
  color: var(--dark-brown);
  opacity: 0.6;
  margin: 0;
}

.style-grid-helper a {
  color: var(--forest-green);
  text-decoration: none;
  font-weight: 500;
}

.style-grid-helper a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1200px) {
  .style-grid {
    gap: 1rem;
  }
}

@media (max-width: 1024px) {
  .style-grid-section {
    padding: 4rem 0 3rem;
  }
  
  .style-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .style-card-content {
    padding: 1rem;
  }
  
  .style-name {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  .style-grid-section {
    padding: 3rem 0 2rem;
    padding-bottom: 6rem; /* Space for summary bar */
  }
  
  .style-grid-container {
    padding: 0 1rem;
  }
  
  .style-grid {
    grid-template-columns: 1fr; /* Single column on tablet/mobile */
    gap: 0.75rem;
  }
  
  .style-card-content {
    padding: 1rem;
  }
  
  .style-name {
    font-size: 1.1rem;
  }
  
  .style-grid-header {
    margin-bottom: 2rem;
  }
  
  .style-grid-title {
    font-size: 2rem;
  }
  
  .style-grid-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  /* Bundle callout mobile */
  .bundle-callout {
    font-size: 0.9rem;
  }
  
  /* Summary bar mobile */
  .gallery-summary-bar {
    width: calc(100% - 32px);
    bottom: 16px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
  }
  
  .summary-coupon {
    flex-shrink: 0;
  }
  
  .coupon-trigger,
  .coupon-applied {
    justify-content: center;
  }
  
  .summary-bar-content {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .summary-info {
    flex: 1;
    min-width: 120px;
  }
  
  .summary-title {
    font-size: 0.9rem;
  }
  
  .summary-items {
    font-size: 0.75rem;
  }
  
  .summary-edit-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }
  
  .summary-note {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    white-space: normal; /* Allow wrap on mobile */
  }
  
  .summary-current {
    font-size: 1.1rem;
  }
  
  .summary-original {
    font-size: 0.75rem;
  }
  
  .summary-savings {
    font-size: 0.7rem;
  }
  
  .summary-checkout-btn {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }
  
  /* Bundle mode banner mobile */
  .bundle-mode-content {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }
  
  .bundle-mode-icon {
    font-size: 1.25rem;
  }
  
  .bundle-mode-text {
    font-size: 0.85rem;
    min-width: 150px;
  }
  
  .bundle-savings-tiers {
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
  }
  
  .savings-tier {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  .bundle-trigger {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .style-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 0.75rem;
  }
  
  .style-card {
    border-radius: 14px;
  }
  
  .style-card-content {
    padding: 0.75rem;
  }
  
  .style-quantity-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
  
  .bundle-label {
    font-size: 0.85rem;
  }
  
  .bundle-chip {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
  
  .style-name {
    font-size: 1.1rem;
  }
  
  .style-price {
    font-size: 1.15rem;
  }
  
  .style-card-content {
    padding: 1rem;
  }
}

@media (min-width: 481px) and (max-width: 600px) {
  .bundle-label {
    font-size: 0.8rem;
  }
  
  .bundle-chip {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
    gap: 0.75rem;
  }
  
  .style-name {
    font-size: 1rem;
  }
  
  .style-grid-eyebrow {
    font-size: 0.7rem;
    padding: 0.4rem 1rem;
  }
  
  .price-option {
    padding: 0.45rem 0.6rem;
  }
  
  .price-option-label {
    font-size: 0.75rem;
  }
  
  .style-add-btn {
    padding: 0.7rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 10px;
  }
}

/* Selected card state */
.style-card.selected {
  border-color: var(--forest-green);
  box-shadow: 0 0 0 3px rgba(44, 74, 60, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Shake animation for max limit */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ===================================
   Photo Gallery Tiles
   =================================== */

/* Photo Strip - clean 3-image row */
.photo-strip-section {
  padding: 3rem 0;
  background: var(--cream);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.photo-strip-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
}

.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-strip-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .photo-strip {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0 1rem;
  }
  
  .photo-strip-item {
    border-radius: 8px;
  }
}

.photo-tile img,
.photo-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.photo-tile:hover img,
.photo-tile:hover video {
  transform: scale(1.05);
}

/* Hero tile - full width, taller */
.photo-tile-hero {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

/* Square tile - enforces 1:1 aspect ratio */
.photo-tile-square {
  aspect-ratio: 1 / 1;
}

/* Video tile */
.photo-tile-video {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-tile-video .photo-tile-vid {
  transition: transform 0.4s ease;
}

.photo-tile-video .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.photo-tile-video .play-btn svg {
  margin-left: 4px;
}

.photo-tile-video .play-btn:hover {
  background: var(--forest-green);
  transform: translate(-50%, -50%) scale(1.1);
}

.photo-tile-video.playing .play-btn {
  opacity: 0;
  pointer-events: none;
}

/* Lightbox for expanded view */
.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.photo-lightbox.visible {
  opacity: 1;
  visibility: visible;
}

.photo-lightbox img,
.photo-lightbox video {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.photo-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 900px) {
  .photo-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .photo-tile-hero {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 600px) {
  .photo-gallery-section {
    padding: 3rem 0;
  }
  
  .photo-tiles {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .photo-tile {
    border-radius: 12px;
  }
  
  .photo-tile-hero {
    grid-column: span 2;
    aspect-ratio: 4 / 3;
  }
  
  .photo-tile-video .play-btn {
    width: 56px;
    height: 56px;
  }
  
  .photo-tile-video .play-btn svg {
    width: 32px;
    height: 32px;
  }
}

/* ===========================================
   Gallery Builder Sheet
   =========================================== */

.gallery-builder-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gallery-builder-overlay.active {
  opacity: 1;
  visibility: visible;
}

.gallery-builder-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 24px 24px 0 0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
}

/* Center and size better on desktop */
@media (min-width: 769px) {
  .gallery-builder-sheet {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(100%);
    width: 850px;
    max-width: 92vw;
    max-height: 95vh;
    border-radius: 24px 24px 0 0;
  }
  
  .gallery-builder-overlay.active .gallery-builder-sheet {
    transform: translateX(-50%) translateY(0);
  }
  
  .gallery-builder-header {
    padding: 1rem 2rem 0.75rem;
  }
  
  .gallery-builder-header h2 {
    font-size: 1.4rem;
  }
  
  .gallery-builder-subtitle {
    font-size: 0.9rem;
  }
  
  .gallery-slots {
    padding: 0.75rem 2rem;
    gap: 0.75rem;
  }
  
  .gallery-slot {
    width: calc(20% - 0.6rem);
    max-width: 120px;
  }
  
  .savings-progress-bar {
    margin: 0 2rem;
  }
  
  .savings-status {
    padding: 1rem 2rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .frame-catalog {
    padding: 0.5rem 2rem 1rem;
  }
  
  .catalog-label {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
  
  .catalog-scroll {
    gap: 0.6rem;
  }
  
  .catalog-item span {
    font-size: 0.75rem;
    padding: 0.4rem 0.25rem;
  }
  
  .gallery-builder-footer {
    padding: 1rem 2rem;
  }
}

/* Full screen on mobile */
@media (max-width: 600px) {
  .gallery-builder-sheet {
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
}

/* Show sheet when overlay is active - mobile uses simple translateY */
@media (max-width: 768px) {
  .gallery-builder-overlay.active .gallery-builder-sheet {
    transform: translateY(0);
  }
}

/* Scrollable content area */
.gallery-builder-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.gallery-builder-header {
  background: white;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid #eee;
  text-align: center;
  flex-shrink: 0;
}

.gallery-builder-header h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--dark-brown);
  margin: 0 0 0.15rem;
}

.gallery-builder-subtitle {
  font-size: 0.85rem;
  color: var(--warm-brown);
  margin: 0;
}

@media (max-width: 600px) {
  .gallery-builder-header {
    padding: 1rem 1rem 0.5rem;
  }
  
  .gallery-builder-header h2 {
    font-size: 1.15rem;
  }
  
  .gallery-builder-subtitle {
    font-size: 0.75rem;
  }
}

.gallery-builder-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.gallery-builder-close:hover {
  background: #eee;
  color: #333;
}

/* 5 Gallery Slots - Dynamic Growth */
.gallery-slots {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-slot {
  width: calc(50% - 0.25rem);
  max-width: 140px;
  aspect-ratio: 1;
  background: #f5f5f5;
  border: 3px dashed #d0d0d0;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Smaller slots on mobile to fit more */
@media (max-width: 600px) {
  .gallery-slots {
    gap: 0.4rem;
    padding: 0.5rem;
  }
  
  .gallery-slot {
    width: calc(33.333% - 0.3rem);
    max-width: 110px;
    border-width: 2px;
    border-radius: 10px;
  }
}

/* Hide slots beyond current needed */
.gallery-slot.hidden {
  display: none;
}

/* Animate new placeholder slot appearing - slower and delayed */
.gallery-slot.appearing {
  animation: slotAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.25s;
  opacity: 0;
}

@keyframes slotAppear {
  from {
    opacity: 0;
    transform: scale(0.6) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Animate frame filling a slot - quick pop */
.gallery-slot.just-filled .slot-image {
  animation: framePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes framePop {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-slot.filled {
  border: 3px solid var(--forest-green);
  background: white;
}

.slot-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.gallery-slot.filled .slot-empty {
  opacity: 0;
  pointer-events: none;
}

.slot-plus {
  font-size: 2rem;
  font-weight: 300;
  color: #bbb;
  line-height: 1;
}

.slot-label {
  font-size: 0.7rem;
  color: #999;
  margin-top: 0.25rem;
  font-weight: 500;
}

.slot-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-slot.filled .slot-image {
  opacity: 1;
  transform: scale(1);
}

/* Bonus 5th slot */
.gallery-slot.bonus-slot {
  border-color: #d4a574;
  background: linear-gradient(135deg, #fff9f0 0%, #fff 100%);
  overflow: visible;
}

.slot-bonus-badge {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #d4a574 0%, #c4956a 100%);
  color: white;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  z-index: 10;
  white-space: nowrap;
}

.slot-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(0,0,0,0.6);
  color: white;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.gallery-slot.filled:hover .slot-remove,
.gallery-slot.filled .slot-remove:focus {
  opacity: 1;
  transform: scale(1);
}

.slot-remove:hover {
  background: var(--tomato-red);
}

/* Savings Progress Bar */
.savings-progress-bar {
  position: relative;
  height: 6px;
  background: #e8e8e8;
  margin: 0 1rem;
  border-radius: 3px;
  overflow: visible;
}

.savings-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--forest-green) 0%, #5a9a70 100%);
  border-radius: 3px;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.savings-progress-labels {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  padding: 0 5%;
}

.progress-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: #999;
  transition: color 0.2s ease;
}

.progress-label.unlocked {
  color: var(--forest-green);
}

.savings-status {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--warm-brown);
  padding: 1.25rem 1rem 0.5rem;
}

.savings-status.saving {
  color: var(--forest-green);
}

@media (max-width: 600px) {
  .savings-progress-bar {
    height: 5px;
    margin: 0 0.75rem;
  }
  
  .savings-progress-labels {
    top: 8px;
  }
  
  .progress-label {
    font-size: 0.55rem;
  }
  
  .savings-status {
    font-size: 0.75rem;
    padding: 1rem 0.75rem 0.35rem;
  }
}

/* Frame Catalog */
.frame-catalog {
  padding: 0.5rem 1rem 1rem;
  flex: 1;
  min-height: 0;
}

.catalog-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--warm-brown);
  margin: 0 0 0.5rem;
}

.catalog-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  overflow-y: auto;
  max-height: none;
}


@media (max-width: 600px) {
  .frame-catalog {
    padding: 0.35rem 0.75rem 0.75rem;
  }
  
  .catalog-label {
    font-size: 0.65rem;
    margin-bottom: 0.35rem;
  }
  
  .catalog-scroll {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
  }
}

.catalog-item {
  background: white;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  transition: all 0.2s ease;
  position: relative;
}

.catalog-item:hover {
  border-color: var(--forest-green);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.catalog-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.catalog-item span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark-brown);
  padding: 0.35rem 0.25rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 600px) {
  .catalog-item {
    border-radius: 8px;
    border-width: 1.5px;
  }
  
  .catalog-item span {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.3rem 0.15rem;
  }
}

/* Zoom and Add buttons on catalog items */
.catalog-zoom,
.catalog-add {
  position: absolute;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  opacity: 0;
  transform: scale(0.8);
}

.catalog-item:hover .catalog-zoom,
.catalog-item:hover .catalog-add {
  opacity: 1;
  transform: scale(1);
}

.catalog-zoom {
  top: 4px;
  left: 4px;
  background: rgba(255,255,255,0.95);
  color: var(--dark-brown);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.catalog-zoom:hover {
  background: white;
  transform: scale(1.1);
}

.catalog-add {
  top: 4px;
  right: 4px;
  background: var(--forest-green);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.catalog-add.has-count {
  background: var(--warm-brown);
  font-weight: 700;
  font-size: 0.85rem;
}

.catalog-add:hover {
  background: #3d5c48;
  transform: scale(1.1);
}

/* Always show add button on touch devices, hide zoom */
@media (hover: none) {
  .catalog-add {
    opacity: 1;
    transform: scale(1);
  }
  
  .catalog-zoom {
    display: none;
  }
}

@media (max-width: 600px) {
  .catalog-zoom,
  .catalog-add {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
  
  .catalog-add {
    font-size: 0.9rem;
  }
  
  .catalog-zoom {
    display: none;
  }
}

/* Gallery Builder Footer */
.gallery-builder-footer {
  position: sticky;
  bottom: 0;
  background: white;
  border-top: 1px solid #eee;
  padding: 1rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 90px;
}

.footer-original {
  font-size: 0.75rem;
  color: #999;
  text-decoration: line-through;
}

.footer-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest-green);
  line-height: 1.1;
}

.footer-savings {
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  background: var(--forest-green);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.footer-savings:empty {
  display: none;
}

.gallery-builder-checkout {
  flex: 1;
  padding: 1rem;
  background: var(--forest-green);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-builder-checkout:hover:not(:disabled) {
  background: #1a3a2a;
  transform: translateY(-1px);
}

.gallery-builder-checkout:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ===========================================
   Crisp Chat Position - Move above summary bar
   =========================================== */

/* When summary bar is visible, move Crisp up */
body.cart-has-items .crisp-client .cc-1m2mf {
  bottom: 100px !important;
}

@media (max-width: 768px) {
  /* On mobile, always move Crisp up to avoid overlap with summary bar */
  body.cart-has-items .crisp-client .cc-1m2mf,
  body.cart-has-items .crisp-client [data-full-view="true"] {
    bottom: 110px !important;
  }
}

/* ===========================================
   Frame Preview Modal (Zoom)
   =========================================== */

.frame-preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.frame-preview-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.frame-preview-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.frame-preview-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.frame-preview-close:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.frame-preview-image {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.frame-preview-info {
  margin-top: 1.5rem;
}

.frame-preview-name {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.frame-preview-add {
  background: var(--forest-green);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.frame-preview-add:hover {
  background: #3d5c48;
  transform: translateY(-2px);
}


.frame-preview-add {
  background: var(--forest-green);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.frame-preview-add:hover {
  background: #3d5c48;
  transform: translateY(-2px);
}
