:root {
  --checkout-bg: #f5f5f5;
  --checkout-white: #ffffff;
  --checkout-accent: #1773b0; /* Shopify-like blue */
  --checkout-text: #333333;
  --checkout-text-light: #737373;
  --checkout-border: #e1e1e1;
  --checkout-success: #428445;
  --checkout-error: #ff5d5d;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--checkout-text);
  line-height: 1.5;
  background-color: var(--checkout-white);
}

.checkout-container {
  display: flex;
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
}

/* Main Content Area */
.main-content {
  flex: 1;
  padding: 40px 60px 40px 20px;
  border-right: 1px solid var(--checkout-border);
}

.checkout-logo {
  margin-bottom: 30px;
}

.checkout-logo img {
  max-height: 45px;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 35px;
  color: var(--checkout-text-light);
}

.breadcrumb-item.active {
  color: var(--checkout-text);
  font-weight: 600;
}

.breadcrumb-item:not(:last-child):after {
  content: '>';
  margin-left: 8px;
}

/* Form Styles */
.section-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 15px;
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-row .form-group {
  flex: 1;
}

.input-field {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--checkout-border);
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.input-field:focus {
  outline: none;
  border-color: var(--checkout-accent);
  box-shadow: 0 0 0 1px var(--checkout-accent);
}

label {
  display: block;
  font-size: 12px;
  color: var(--checkout-text-light);
  margin-bottom: 5px;
}

/* Sidebar Order Summary */
.order-summary {
  width: 420px;
  background-color: var(--checkout-bg);
  padding: 40px 20px 40px 40px;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.product-image {
  width: 64px;
  height: 64px;
  background: var(--checkout-white);
  border: 1px solid var(--checkout-border);
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  max-width: 90%;
  max-height: 90%;
}

.product-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--checkout-text-light);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-info {
  flex: 1;
}

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

.product-price {
  font-size: 14px;
  font-weight: 500;
}

/* Calculations */
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--checkout-text-light);
}

.summary-row.total {
  border-top: 1px solid var(--checkout-border);
  padding-top: 20px;
  margin-top: 20px;
  color: var(--checkout-text);
  font-size: 18px;
  font-weight: 600;
}

.total-currency {
  font-size: 12px;
  color: var(--checkout-text-light);
  margin-right: 5px;
}

/* Shipping Methods & Trust */
.method-box {
  border: 1px solid var(--checkout-border);
  border-radius: 5px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  cursor: pointer;
}

.method-box.selected {
  border-color: var(--checkout-accent);
  background-color: #f0f7ff;
}

/* Payment Icons */
.payment-icons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.payment-icon {
  height: 24px;
  opacity: 0.8;
}

/* Buttons */
.btn-primary {
  background-color: var(--checkout-accent);
  color: white;
  border: none;
  padding: 20px 30px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
}

.btn-primary:hover {
  filter: brightness(0.9);
}

.back-to-cart {
  color: var(--checkout-accent);
  text-decoration: none;
  font-size: 14px;
  display: block;
  text-align: center;
  margin-top: 15px;
}

/* Multi-step Navigation */
.checkout-step {
  display: none;
}

.checkout-step.active {
  display: block;
}

/* Responsive */
@media (max-width: 1000px) {
  .checkout-container {
    flex-direction: column-reverse;
  }
  .order-summary {
    width: 100%;
    padding: 20px;
  }
  .main-content {
    padding: 20px;
    border-right: none;
  }
}
