:root {
  --background: #000000;
  --foreground: #ffffff;
  --card: #000000;
  --card-foreground: #ffffff;
  --border: #333333;
  --input: #111111;
  --ring: #666666;
  --muted: #111111;
  --muted-foreground: #999999;
  --accent: #ffffff;
  --accent-foreground: #000000;
  --primary: #ffffff;
  --primary-foreground: #000000;
  
  --radius: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --container-max: 1200px;
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--text-base);
  line-height: 1.4;
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }
}

@media (max-width: 767px) {
  body {
    padding: 1rem;
  }
}
.checkout {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 100vh;
}

@media (min-width: 768px) {
  .checkout {
    max-width: 600px;
    min-height: auto;
    padding: 3rem;
    gap: 2rem;
    border-radius: var(--radius-sm);
  }
}

@media (min-width: 1024px) {
  .checkout {
    max-width: 800px;
    padding: 4rem;
  }
}

.title {
  font-size: var(--text-xl);
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .title {
    font-size: var(--text-3xl);
  }
}
.product {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--muted);
  border: 2px solid var(--border);
  border-radius: 0;
}

@media (min-width: 768px) {
  .product {
    padding: 1.5rem;
    gap: 1.5rem;
  }
}

.product__img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 0;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .product__img {
    width: 80px;
    height: 80px;
  }
}

.product__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.product__sku {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.product__price {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--foreground);
  margin: 0;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-methods h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .payment-methods h3 {
    font-size: var(--text-lg);
  }
}

.pm {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.1s ease;
  background: transparent;
}

@media (min-width: 768px) {
  .pm {
    padding: 1rem;
  }
}

.pm:hover {
  border-color: var(--ring);
  background: var(--input);
}

.pm:has(input:checked) {
  border-color: var(--accent);
  background: var(--input);
}

.pm input {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--muted-foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
  position: relative;
}

.pm input:checked {
  border-color: var(--accent);
}

.pm input:checked::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.pm label {
  font-size: var(--text-sm);
  font-weight: 400;
  cursor: pointer;
}

.phone-wrapper {
  margin-top: 0.5rem;
  transition: all 0.3s var(--ease);
  opacity: 1;
  visibility: visible;
}

.phone-wrapper[hidden] {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
}

.phone-wrapper input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0;
  background: var(--input);
  color: var(--foreground);
  font-size: var(--text-sm);
  letter-spacing: 0;
  transition: all 0.1s ease;
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) {
  .phone-wrapper input {
    padding: 1rem;
  }
}

.phone-wrapper input:focus {
  border-color: var(--ring);
  background: var(--background);
}

.phone-wrapper input::placeholder {
  color: var(--muted-foreground);
}

.btn-primary {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-foreground);
  background: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.1s ease;
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) {
  .btn-primary {
    font-size: var(--text-base);
    padding: 1.25rem 2rem;
  }
}

.btn-primary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Merchant Header */
.merchant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.merchant-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-placeholder {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-foreground);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
}

.merchant-info {
  display: flex;
  flex-direction: column;
}

.merchant-name {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.merchant-subtitle {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.2;
}

.order-number {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.order-label {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.order-id {
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

/* Section Titles */
.section-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Enhanced Product Summary */
.product-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  padding: 1rem;
  background: var(--muted);
  border: 2px solid var(--border);
  border-radius: 0;
  align-items: start;
}

.product__name {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.product__description {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.product__quantity {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.product__pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.product__price {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

/* Order Summary */
.order-summary {
  background: var(--input);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: var(--text-sm);
}

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

.summary-row.total {
  font-weight: 700;
  font-size: var(--text-base);
  border-top: 2px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.free-shipping {
  color: #22c55e;
  font-weight: 600;
}

/* Shipping Info */
.shipping-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shipping-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.shipping-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.shipping-icon {
  font-size: var(--text-lg);
  line-height: 1;
  flex-shrink: 0;
}

.shipping-address,
.shipping-date {
  font-size: var(--text-sm);
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.shipping-district,
.shipping-time {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.2;
}

/* Enhanced Button */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-icon {
  font-size: var(--text-sm);
}

/* Security Section */
.security-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.security-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

.badge-icon {
  font-size: var(--text-sm);
  color: #22c55e;
}

.payment-methods-logos {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.methods-title {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.logos {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.payment-logo {
  font-size: var(--text-xl);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.payment-logo:hover {
  opacity: 1;
}

.payment-logo.yape {
  color: #722f87;
}

.checkout-footer {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-text {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  margin: 0.25rem 0;
  line-height: 1.4;
}

.footer-text a {
  color: var(--foreground);
  text-decoration: underline;
}

.footer-text a:hover {
  color: var(--accent);
}

@media (max-width: 767px) {
  .merchant-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .order-number {
    align-items: flex-start;
    text-align: left;
  }
  
  .product {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  
  .product__pricing {
    grid-column: 1 / -1;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
  }
  
  .security-badges {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .shipping-details {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .shipping-item {
    flex: 1;
  }
}
