/* ========================================
   Angosa Page-Specific Styles
   Consolidated from inline styles
   ======================================== */

/* ========================================
   PRODUCT BUILDER / DEMO PAGE
   Two-column layout with live preview
   ======================================== */
.shipping-warning {
  margin-top:20px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background-color: #fffbeb;
  border: 1px solid #fef08a;
  border-radius: 8px;
  color: #92400e;
  font-size: 14px;
}
.shipping-warning a {
  color: #92400e;
  text-decoration: underline;
}
.builder-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding: var(--space-6) 0;
}

@media (min-width: 1024px) {
  .builder-container {
    grid-template-columns: 400px 1fr;
    gap: var(--space-8);
  }
}

/* Controls Panel */
.builder-controls {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-200);
  height: fit-content;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.builder-controls h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-gray-200);
}

.control-group {
  margin-bottom: var(--space-6);
}

.control-group:last-child {
  margin-bottom: 0;
}

.control-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-gray-700);
  margin-bottom: var(--space-2);
}

/* Color Picker */
.color-picker-group {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.color-option {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  border: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition-all);
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.active {
  border-color: var(--color-gray-900);
  box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-gray-900);
}

/* Image Upload Area */
.image-upload-area {
  border: 2px dashed var(--color-gray-300);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-all);
  background-color: var(--color-gray-50);
}

.image-upload-area:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-50);
}

.image-upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
  color: var(--color-gray-400);
}

.image-upload-text {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}

.image-upload-hint {
  font-size: var(--text-xs);
  color: var(--color-gray-400);
  margin-top: var(--space-1);
}

/* Preview Panel */
.builder-preview {
  background-color: var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-label {
  text-align: center;
  color: var(--color-gray-500);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* Legacy preview styles removed — now in pages/product-preview.css (pv-* classes) */

/* ========================================
   ORDER CONFIRMATION PAGE
   Success/error states
   ======================================== */

.confirmation-container {
  max-width: 600px;
  margin: var(--space-12) auto;
  padding: 0 var(--space-4);
}

.confirmation-card {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
  text-align: center;
}

@media (min-width: 640px) {
  .confirmation-card {
    padding: var(--space-10);
  }
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.confirmation-icon-success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.confirmation-icon-error {
  background-color: var(--color-error-bg);
  color: var(--color-error);
}

.confirmation-icon-pending {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
}

.confirmation-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.confirmation-message {
  color: var(--color-gray-600);
  margin-bottom: var(--space-6);
}

/* Order Summary */
.order-summary {
  background-color: var(--color-gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  text-align: left;
}

.order-summary-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-gray-500);
  margin-bottom: var(--space-4);
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
}

.order-summary-row:not(:last-child) {
  border-bottom: 1px solid var(--color-gray-200);
}

.order-summary-label {
  color: var(--color-gray-600);
}

.order-summary-value {
  font-weight: var(--font-medium);
  color: var(--color-gray-900);
}

.order-summary-total {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 2px solid var(--color-gray-300);
}

/* ========================================
   PRODUCT PAGE (Public)
   Single product view
   ======================================== */

.product-page {
  padding: var(--space-8) 0;
}

.product-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .product-page-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.product-gallery {
  position: relative;
}

.product-main-image {
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--color-gray-100);
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbnails {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-2);
}

.product-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-all);
  flex-shrink: 0;
}

.product-thumbnail:hover {
  border-color: var(--color-gray-300);
}

.product-thumbnail.active {
  border-color: var(--color-primary);
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-details {
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-2);
}

.product-page-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.product-page-price {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.product-page-description {
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.product-options {
  margin-bottom: var(--space-6);
}

.product-option-label {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-gray-700);
  margin-bottom: var(--space-3);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.product-tag {
  padding: var(--space-1) var(--space-3);
  background-color: var(--color-gray-100);
  color: var(--color-gray-700);
  font-size: var(--text-xs);
  border-radius: var(--radius-full);
}

/* ========================================
   PROFILE PAGE
   User profile and settings
   ======================================== */

.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-gray-200);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background-color: var(--color-gray-200);
}

.profile-info h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-1);
}

.profile-info p {
  color: var(--color-gray-600);
  margin: 0;
}

.profile-section {
  margin-bottom: var(--space-8);
}

.profile-section-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-gray-200);
}

/* ========================================
   CHECKOUT PAGE
   Express checkout flow
   ======================================== */

.checkout-container {
  margin: var(--space-8) auto;
  padding: 0 var(--space-4);
}

.checkout-card {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.checkout-header {
  padding: var(--space-5);
  background-color: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
}

.checkout-product {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.checkout-product-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background-color: var(--color-gray-200);
}

.checkout-product-info h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.checkout-product-price {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-primary);
}

.checkout-body {
  padding: var(--space-6);
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  margin-bottom: var(--space-6);
  border-top: 2px solid var(--color-gray-200);
  border-bottom: 2px solid var(--color-gray-200);
}

.checkout-total-label {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

.checkout-total-amount {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-primary);
}

/* Express Checkout Element container */
#express-checkout-element {
  min-height: 50px;
}

.checkout-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}

.checkout-divider::before,
.checkout-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--color-gray-200);
}

/* ========================================
   STEPS / PROCESS INDICATOR
   Multi-step forms
   ======================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.step-item {
  text-align: center;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-3);
  background-color: var(--color-gray-200);
  color: var(--color-gray-600);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
  transition: var(--transition-all);
}

.step-item.active .step-number,
.step-item.completed .step-number {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.step-item.completed .step-number::after {
  content: '✓';
}

.step-label {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  font-weight: var(--font-medium);
}

.step-item.active .step-label {
  color: var(--color-gray-900);
}

/* Connector line between steps */
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(50% + 25px);
  width: calc(100% - 50px);
  height: 2px;
  background-color: var(--color-gray-200);
}

.step-item.completed:not(:last-child)::after {
  background-color: var(--color-primary);
}

/* ========================================
   STATUS BADGES
   Product/order status indicators
   ======================================== */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: currentColor;
}

.status-active {
  background-color: var(--color-success-bg);
  color: var(--color-success-dark);
}

.status-draft {
  background-color: var(--color-gray-100);
  color: var(--color-gray-600);
}

.status-inactive {
  background-color: var(--color-warning-bg);
  color: var(--color-warning-dark);
}

.status-pending {
  background-color: var(--color-info-bg);
  color: var(--color-info-dark);
}

.status-completed {
  background-color: var(--color-success-bg);
  color: var(--color-success-dark);
}

.status-cancelled {
  background-color: var(--color-error-bg);
  color: var(--color-error-dark);
}

/* ========================================
   SELLER INFO SECTION
   Product page seller details
   ======================================== */

.seller-section {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-gray-200);
}

.seller-section h3 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-3);
}

.seller-info {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.seller-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--color-gray-200);
  flex-shrink: 0;
  overflow: hidden;
}

.seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-bio {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
  margin: 0;
  flex: 1;
}

/* ========================================
   MISC PAGE UTILITIES
   ======================================== */

/* Page loading overlay */
.page-loading {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
}

/* Empty product list */
.products-empty {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}

.products-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-4);
  color: var(--color-gray-300);
}

.products-empty-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.products-empty-text {
  color: var(--color-gray-500);
  margin-bottom: var(--space-6);
}

/* Action bar (sticky bottom) */
.action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-gray-200);
  padding: var(--space-4);
  display: flex;
  gap: var(--space-3);
  z-index: var(--z-sticky);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .action-bar {
    position: static;
    border-top: none;
    box-shadow: none;
    padding: 0;
    margin-top: var(--space-6);
  }
}

/* Quick actions menu */
.quick-actions {
  display: flex;
  gap: var(--space-2);
}

.quick-action-btn {
  padding: var(--space-2);
  border-radius: var(--radius-lg);
  color: var(--color-gray-500);
  transition: var(--transition-all);
}

.quick-action-btn:hover {
  background-color: var(--color-gray-100);
  color: var(--color-gray-900);
}

/* Info tooltip */
.info-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background-color: var(--color-gray-200);
  color: var(--color-gray-600);
  font-size: 12px;
  cursor: help;
  margin-left: var(--space-1);
}

/* Reset button for builder */
.reset-button {
  width: 100%;
  margin-top: var(--space-4);
  background-color: var(--color-gray-100);
  color: var(--color-gray-700);
  border: none;
  transition: var(--transition-all);
}

.reset-button:hover {
  background-color: var(--color-gray-200);
}

/* ========================================
   PRODUCT PAGE (PUBLIC) - STRIPE CHECKOUT STYLE
   Two-column layout like Stripe's checkout
   ======================================== */

/* Page Background */
body.checkout-page {
  background-color: #f6f9fc;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Two-column checkout container */
.checkout-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 768px) {
  .checkout-container {
    flex-direction: row;
  }
}

/* ========================================
   LEFT COLUMN - Order Summary
   ======================================== */
.checkout-summary {
  background: linear-gradient(to bottom, #1a1f36, #0a2540);
  color: #fff;
  padding: 24px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .checkout-summary {
    width: 45%;
    max-width: 480px;
    min-height: 100vh;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
  }
}

@media (min-width: 1024px) {
  .checkout-summary {
    padding: 48px 64px;
  }
}

/* Store Header */
.checkout-header {
  margin-bottom: 32px;
}

.checkout-header .store-logo {
  height: 28px;
  max-width: 140px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.checkout-header .store-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

/* Product Summary Card */
.product-summary-card {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-image-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.1);
}

.product-summary-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-summary-info {
  flex: 1;
  min-width: 0;
}

.product-summary-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.product-summary-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product Options Section */
.product-options-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-options-section .product-variants {
  margin-bottom: 16px;
}

.product-options-section .product-variants:last-child {
  margin-bottom: 0;
}

.product-options-section label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-options-section .color-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-options-section .color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.15s ease;
}

.product-options-section .color-swatch:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.product-options-section .color-swatch.selected {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.product-options-section .size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-options-section .size-option {
  min-width: 40px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.15s ease;
}

.product-options-section .size-option:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.05);
}

.product-options-section .size-option.selected {
  border-color: #fff;
  background-color: #fff;
  color: #0a2540;
  font-weight: 600;
}

/* Order Total Section */
.order-total-section {
  margin-bottom: 24px;
}

.quantity-row,
.subtotal-row,
.shipping-row,
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.quantity-label,
.subtotal-label,
.shipping-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 2px;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.15s ease;
  border-radius: 4px;
}

.quantity-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.quantity-value {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  min-width: 32px;
  text-align: center;
}

.subtotal-value {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.shipping-value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.shipping-value.free {
  color: #4ade80;
  font-weight: 500;
}

.total-row {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.total-label {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.total-value {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.tax-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 8px 0 0 0;
  text-align: right;
}

/* Notes Section */
.notes-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notes-section .notes-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.15s ease;
  width: 100%;
  text-align: left;
}

.notes-section .notes-toggle:hover {
  color: #fff;
}

.notes-section .notes-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
}

.notes-section .notes-input {
  width: 100%;
  min-height: 80px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: all 0.15s ease;
}

.notes-section .notes-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.1);
}

.notes-section .notes-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Seller Section */
.checkout-summary .seller-section {
  margin-top: auto;
  padding: 16px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-left: 0;
  margin-right: 0;
}

.seller-header {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.checkout-summary .seller-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.checkout-summary .seller-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.checkout-summary .seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.seller-details {
  flex: 1;
  min-width: 0;
}

.checkout-summary .seller-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.checkout-summary .seller-bio {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin: 4px 0 0 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================
   RIGHT COLUMN - Payment
   ======================================== */
.checkout-payment {
  flex: 1;
  background-color: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .checkout-payment {
    padding: 48px 40px;
    justify-content: center;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .checkout-payment {
    padding: 48px 64px;
  }
}

.payment-card {
  width: 100%;
  max-width: 400px;
}

.payment-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 24px 0;
  letter-spacing: -0.01em;
}

/* Checkout Section */
#checkout-section {
  padding: 0;
  background: transparent;
  border: none;
}

#express-checkout-element {
  min-height: 48px;
  margin-bottom: 20px;
}

.checkout-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: #6b7280;
  font-size: 14px;
}

.loading-spinner,
.button-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.button-spinner {
  width: 16px;
  height: 16px;
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Divider */
.divider-text {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: #6b7280;
  font-size: 13px;
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #e5e7eb;
}

/* Card Form */
.card-form {
  margin-bottom: 16px;
}

.card-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

#card-element {
  padding: 14px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #fff;
  transition: all 0.15s ease;
}

#card-element:focus-within {
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

#card-errors {
  color: #dc2626;
  font-size: 13px;
  margin-top: 8px;
  min-height: 20px;
}

/* Pay Button */
.pay-button {
  width: 100%;
  height: 48px;
  padding: 0 24px;
  background-color: #0570de;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pay-button:hover:not(:disabled) {
  background-color: #0452a8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 112, 222, 0.25);
}

.pay-button:active:not(:disabled) {
  transform: translateY(0);
}

.pay-button:disabled {
  background-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pay-button-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

#payment-message {
  padding: 12px 16px;
  margin-top: 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

#payment-message.error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

#payment-message.success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.stripe-unavailable {
  text-align: center;
  padding: 24px;
  background-color: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 8px;
  color: #854d0e;
  font-size: 14px;
}

/* Security Footer */
.security-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}

.security-badge svg {
  color: #16a34a;
}

.powered-by {
  font-size: 12px;
  color: #9ca3af;
}

.powered-by strong {
  color: #6b7280;
  font-weight: 600;
}

/* ========================================
   MOBILE CHECKOUT FOOTER
   ======================================== */
.mobile-checkout-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background-color: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  z-index: var(--z-dropdown, 100);
  transition: transform 0.3s ease;
}

.mobile-checkout-footer.hidden {
  transform: translateY(100%);
}

@media (min-width: 768px) {
  .mobile-checkout-footer {
    display: none;
  }
}

.mobile-footer-price {
  display: flex;
  flex-direction: column;
}

.mobile-price-label {
  font-size: 12px;
  color: #6b7280;
}

.mobile-price-value {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

.mobile-checkout-btn {
  padding: 12px 32px;
  background-color: #0570de;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mobile-checkout-btn:hover {
  background-color: #0452a8;
}

/* Safe area for mobile */
@supports (padding: env(safe-area-inset-bottom)) {
  .mobile-checkout-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .checkout-payment {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

/* ========================================
   LEGACY STYLES (for builder preview)
   ======================================== */
.store-logo {
  height: 32px;
  max-width: 120px;
  object-fit: contain;
}

.product-main-image {
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* ========================================
   PROFILE PAGE - AVATAR STYLES
   ======================================== */

.profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

.avatar-preview {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin-bottom: var(--space-4);
  border: 3px solid var(--color-gray-300);
}

.avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  background-color: var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--color-gray-500);
  margin-bottom: var(--space-4);
}

/* ========================================
   ORDER CONFIRMATION STYLES
   ======================================== */

.confirmation-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.confirmation-header h1 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-2xl);
}

.confirmation-header p {
  color: var(--color-gray-600);
  margin: 0;
}

.status-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  font-size: 40px;
}

.status-icon.success {
  background-color: var(--color-success-bg);
  color: var(--color-success-dark);
}

.status-icon.processing {
  background-color: var(--color-warning-bg);
  color: var(--color-warning-dark);
}

.status-icon.failed {
  background-color: var(--color-error-bg);
  color: var(--color-error-dark);
}

.order-details {
  border-top: 1px solid var(--color-gray-200);
  padding-top: var(--space-6);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-gray-100);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--color-gray-600);
}

.detail-value {
  font-weight: var(--font-semibold);
}

.total-row {
  font-size: var(--text-lg);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 2px solid var(--color-gray-200);
}

.error-container {
  text-align: center;
  padding: var(--space-16) var(--space-5);
}

.error-container h1 {
  color: var(--color-error-dark);
}

.btn-container {
  margin-top: var(--space-8);
  text-align: center;
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.order-notes {
  margin-top: var(--space-4);
  padding: var(--space-3);
  background-color: var(--color-gray-50);
  border-radius: var(--radius-lg);
  font-style: italic;
  color: var(--color-gray-600);
}



/* Product Variants - Legacy styles (kept for builder compatibility) */
.builder-preview .product-variants {
  margin: var(--space-4) 0;
}

.builder-preview .product-variants label {
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
  display: block;
  font-size: var(--text-sm);
}

.builder-preview .color-swatches {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.builder-preview .color-swatch {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-all);
}

.builder-preview .color-swatch:hover {
  border-color: var(--color-gray-500);
}

.builder-preview .color-swatch.selected {
  border-color: var(--color-gray-900);
  box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-gray-900);
}

.builder-preview .size-options {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.builder-preview .size-option {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  background-color: var(--color-white);
  font-size: var(--text-sm);
  transition: var(--transition-all);
}

.builder-preview .size-option:hover {
  border-color: var(--color-gray-500);
}

.builder-preview .size-option.selected {
  border-color: var(--color-gray-900);
  background-color: var(--color-gray-50);
  font-weight: var(--font-semibold);
}
