:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --text: #13221b;
  --muted: #5d6b63;
  --brand: #0c7a52;
  --brand-dark: #08573a;
  --accent: #f97316;
  --line: #d5e2d8;
  --radius: 18px;
  --shadow: 0 20px 40px rgba(7, 24, 17, 0.08);
  --primary: #0c7a52;
  --dark: #13221b;
  --gray: #5d6b63;
  --light: #f6faf7;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Sora", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  backdrop-filter: none;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  font-family: "Manrope", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  margin-bottom: 1rem;
}

.brand-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(12, 122, 82, 0.95), rgba(8, 87, 58, 0.95));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 24px rgba(12, 122, 82, 0.18);
  flex: 0 0 auto;
}

.brand-badge-icon svg {
  width: 26px;
  height: 26px;
}

.brand-badge-text {
  line-height: 1.1;
}

.brand-badge-name {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.brand-badge-sub {
  margin-top: 0.18rem;
  font-size: 0.88rem;
  color: var(--muted);
}

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

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links .is-active {
  color: var(--text);
  background: rgba(12, 122, 82, 0.08);
}

.cart-icon-btn {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 0.7rem 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.cart-count {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 4rem 0 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
  margin: 0.4rem 0 1rem;
}

.hero-text p {
  color: var(--muted);
  max-width: 55ch;
}

.kicker {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.hero-card {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(0);
  animation: rise 650ms ease;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 1.5rem 0 3.2rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  gap: 1rem;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
}

.section-head a {
  font-weight: 700;
  color: var(--brand);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(6, 25, 17, 0.04);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px rgba(6, 25, 17, 0.1);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-link {
  display: block;
}

.card-link:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.45);
  outline-offset: 5px;
  border-radius: var(--radius);
}

.card-body {
  padding: 0.9rem;
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
}

.tag {
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-title {
  margin: 0.35rem 0 0.3rem;
  font-size: 1.02rem;
}

.card-desc {
  color: var(--muted);
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.price {
  font-weight: 700;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.86rem;
}

.card-actions {
  display: flex;
  gap: 0.55rem;
  padding: 0 0.9rem 0.95rem;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 0.66rem 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  background: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  filter: brightness(0.95);
}

.full {
  width: 100%;
}

.back-link {
  color: var(--brand);
  font-weight: 700;
}

.product-layout {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.3rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.product-media > img {
  border-radius: 14px;
  width: 100%;
  object-fit: cover;
  min-height: 420px;
}

.thumb-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.65rem;
  overflow-x: auto;
}

.thumb-row img {
  width: 82px;
  height: 82px;
  min-height: auto;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.thumb-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
}

.thumb-btn.is-active img {
  outline: 2px solid rgba(12, 122, 82, 0.55);
  outline-offset: 2px;
}

.product-info h1 {
  margin: 0.35rem 0;
  font-family: "Manrope", sans-serif;
}

.product-info p {
  color: var(--muted);
}

.spec-list {
  margin: 0.85rem 0 1rem;
  padding: 0;
  list-style: none;
  background: rgba(12, 122, 82, 0.05);
  border: 1px solid rgba(12, 122, 82, 0.15);
  border-radius: 12px;
  padding: 1rem;
}

.spec-list li {
  margin-bottom: 0.4rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(12, 122, 82, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spec-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.spec-list li::before {
  content: "✓";
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 20px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.qty-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
}

.qty-pill input {
  width: 65px;
  border: 0;
  background: transparent;
  font-weight: 700;
  color: var(--text);
}

.checkout-layout {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.9rem;
  margin: 0.7rem 0 0.32rem;
}

input,
textarea,
select {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: #fff;
}

select {
  cursor: pointer;
}

textarea {
  min-height: 95px;
  resize: vertical;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.status-msg {
  margin: 0.7rem 0 0;
  font-size: 0.92rem;
  min-height: 1.4em;
}

.status-msg a {
  color: var(--brand-dark);
  text-decoration: underline;
  font-weight: 700;
}

.status-msg a:hover {
  color: var(--brand);
}

.address-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.7);
  margin-top: 0.6rem;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}

.checkout-item span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.checkout-item strong {
  flex: 0 0 auto;
  white-space: nowrap;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}

.form-embed-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.form-embed {
  width: 100%;
  height: 760px;
  border: 0;
  display: block;
}

.form-embed.is-empty {
  height: 240px;
}

.order-actions {
  margin-top: 1rem;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 40;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(390px, 90vw);
  height: 100vh;
  background: #fff;
  border-left: 1px solid var(--line);
  transform: translateX(102%);
  transition: transform 0.26s ease;
  z-index: 45;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-head h3 {
  margin: 0;
}

.cart-drawer-head button {
  background: transparent;
  border: 0;
  font-size: 1.1rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem;
}

.cart-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  margin-bottom: 0.7rem;
}

.cart-item h4 {
  margin: 0;
  font-size: 0.93rem;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.qty-controls button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 25px;
  height: 25px;
  cursor: pointer;
}

.remove-btn {
  border: 0;
  background: transparent;
  color: #b9381f;
  font-weight: 700;
  cursor: pointer;
}

.cart-drawer-foot {
  border-top: 1px solid var(--line);
  padding: 1rem;
  background: #fff;
}

.empty-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.tiny-note {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tiny-note a {
  color: var(--brand-dark);
  text-decoration: underline;
}

.tiny-note a:hover {
  color: var(--brand);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.3rem;
  transform: translateX(-50%) translateY(20px);
  background: #13221b;
  color: #fff;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
  z-index: 55;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer {
  border-top: 1px solid rgba(19, 34, 27, 0.1);
  margin-top: 2.2rem;
}

.footer-row {
  min-height: 70px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .product-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .product-media > img {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

.thank-you-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
}

.success-icon {
  color: var(--brand);
  margin-bottom: 2rem;
}

.success-icon svg {
  width: 80px;
  height: 80px;
  animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.order-details-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
  text-align: left;
}

.order-number-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.order-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  font-family: "Manrope", monospace;
  letter-spacing: 1px;
}

.order-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

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

.info-item label {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.info-item span {
  font-weight: 600;
}

.status-success {
  color: var(--brand);
}

.total-amount {
  color: var(--accent);
  font-size: 1.25rem;
}

.next-steps {
  text-align: left;
  margin: 2rem 0;
}

.next-steps h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.next-steps ul {
  list-style: none;
  padding: 0;
}

.next-steps li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.next-steps li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: bold;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.otp-instruction {
  background: rgba(12, 122, 82, 0.1);
  border-left: 4px solid var(--brand);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
  font-size: 0.95rem;
}

.verify-instruction {
  background: rgba(12, 122, 82, 0.1);
  border-left: 4px solid var(--brand);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
  font-size: 0.95rem;
}

.demo-code {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 122, 82, 0.25);
  background: rgba(12, 122, 82, 0.08);
  color: var(--brand-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
}

.otp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

#otp {
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 0.25rem;
  font-family: "Manrope", monospace;
}

.payment-info {
  background: rgba(12, 122, 82, 0.05);
  border: 1px solid rgba(12, 122, 82, 0.15);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
}

.payment-info p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.payment-info strong {
  color: var(--brand);
}

#paymentMethod {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  color: var(--text);
}

#paymentMethod:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(12, 122, 82, 0.1);
}

@media (max-width: 768px) {
  .thank-you-container {
    padding: 1rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .order-info-grid {
    grid-template-columns: 1fr;
  }
  
  .success-icon svg {
    width: 60px;
    height: 60px;
  }
}

/* Ensure the check icon renders correctly even if the file encoding changes. */
.next-steps li::before {
  content: "\2713";
}

/* Multi-Step Checkout Styles */
.checkout-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.progress-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  margin: 0 0.5rem;
  font-weight: 600;
  color: var(--muted);
  border: 2px solid var(--line);
}

.progress-step:first-child {
  margin-left: 0;
}

.progress-step:last-child {
  margin-right: 0;
}

.progress-step.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.progress-step.completed {
  background: var(--brand-dark);
  color: white;
  border-color: var(--brand-dark);
}

.progress-step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1rem;
  width: 0;
  height: 0;
  border-left: 1rem solid var(--line);
  border-top: 1rem solid transparent;
  border-bottom: 1rem solid transparent;
  transform: translateY(-50%);
  z-index: 1;
}

.progress-step.active::after {
  border-left-color: var(--brand);
}

.progress-step.completed::after {
  border-left-color: var(--brand-dark);
}

.progress-step:last-child::after {
  display: none;
}

/* Form Styles */
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--line);
  border-radius: calc(var(--radius) / 2);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Phone Input Group */
.phone-input-group {
  display: flex;
  gap: 0.5rem;
}

.country-code {
  flex: 0 0 120px;
  padding: 0.75rem 0.5rem;
  border: 2px solid var(--line);
  border-radius: calc(var(--radius) / 2);
  font-size: 0.9rem;
}

/* Card Input Group */
.card-input-group {
  position: relative;
}

.card-icons {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 0.5rem;
}

/* Step 1 Specific Styling */
.step1-panel {
  background: #ffffff;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  max-width: 2000px;
  margin: 0 auto;
  width: 100%;
  color: var(--text);
}

.step1-panel h2 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.step1-panel .card-desc {
  color: var(--muted);
  margin-bottom: 2rem;
}

.step1-panel .form-group label {
  color: var(--text);
  font-weight: 600;
}

.step1-panel input,
.step1-panel select {
  background: #ffffff;
  border: 2px solid var(--line);
  color: var(--text);
}

.step1-panel input::placeholder {
  color: var(--muted);
}

.step1-panel input:focus,
.step1-panel select:focus {
  border-color: var(--brand);
  background: #ffffff;
}

/* Step 3 Specific Styling */
.step3-panel {
  background: #ffffff;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  max-width: 1800px;
  margin: 0 auto;
  width: 100%;
  color: var(--text);
}

.step3-panel h2 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.step3-panel .card-desc {
  color: var(--muted);
  margin-bottom: 2rem;
}

.step3-panel .otp-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--line);
}

.step3-panel .otp-instruction p {
  color: var(--text);
}

.step3-panel .otp-note {
  color: var(--muted);
}

.step3-panel .form-group label {
  color: var(--text);
  font-weight: 600;
}

.step3-panel input {
  background: #ffffff;
  border: 2px solid var(--line);
  color: var(--text);
}

.step3-panel input::placeholder {
  color: var(--muted);
}

.step3-panel input:focus {
  border-color: var(--brand);
  background: #ffffff;
}

.step3-panel .btn-primary {
  background: var(--brand);
  color: #ffffff;
  border: 2px solid var(--brand);
}

.step3-panel .btn-primary:hover {
  background: var(--brand-dark);
  color: #ffffff;
}

/* Panel Styles */
.panel {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--line);
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* Step 1 specific wider form */
.checkout-step1-new .panel {
  max-width: 900px;
}

/* Payment Methods Panel */

.payment-methods-panel h3 {
  margin: 0 0 1.5rem 0;
  color: var(--dark);
  font-size: 1.25rem;
  font-weight: 700;
}

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

.payment-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 2px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.payment-option:hover {
  border-color: var(--primary);
  background: var(--light);
}

.payment-option input[type="radio"] {
  margin-right: 1rem;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.payment-option input[type="radio"]:checked + .payment-option-content {
  color: var(--primary);
}

.payment-option-content {
  display: flex;
  align-items: center;
  flex: 1;
}

.payment-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
}

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

.payment-details strong {
  color: var(--dark);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.payment-details span {
  color: var(--gray);
  font-size: 0.875rem;
}

/* Form Header with Logo */
.form-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.form-title-section {
  flex: 1;
}

.form-logo {
  flex-shrink: 0;
}

.form-brand-logo {
  height: auto;
  width: 100px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-brand-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
}

@media (max-width: 768px) {
  .form-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  
  .form-brand-logo {
    height: 60px;
    width: 60px;
  }
  
  .form-logo {
    order: -1;
  }
}

/* Net Banking Fields */
.netbanking-fields {
  margin-top: 1rem;
}

.netbanking-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--light);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.netbanking-notice .security-icon {
  font-size: 1.25rem;
  color: var(--primary);
}

.netbanking-notice p {
  margin: 0;
  color: var(--gray);
  font-size: 0.875rem;
}

/* Password Input Group */
.password-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-group input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.password-toggle:hover {
  background: var(--light);
}

/* Responsive payment methods */
@media (max-width: 768px) {
  .payment-methods-panel {
    padding: 1.5rem;
  }
  
  .payment-option {
    padding: 0.75rem;
  }
  
  .payment-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
  }
}

/* Checkout Layout with Payment Methods */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: 2rem;
  align-items: start;
}

.checkout-layout > * {
  min-width: 0;
}

.checkout-layout--payment {
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.7fr);
}

.checkout-main-stack {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.payment-methods-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  align-self: start;
}

.checkout-step1-new .checkout-layout,
.checkout-step3-new .checkout-layout {
  grid-template-columns: minmax(0, 1.9fr) minmax(320px, 0.85fr);
}

.checkout-step1-new .step1-panel,
.checkout-step3-new .step3-panel,
.checkout-step1-new .order-summary,
.checkout-step3-new .order-summary {
  max-width: none;
  margin: 0;
}

@media (max-width: 968px) {
  .checkout-layout,
  .checkout-step1-new .checkout-layout,
  .checkout-step3-new .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-layout--payment {
    grid-template-columns: 1fr;
  }
  
  .payment-methods-panel {
    order: -1;
  }
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 26px;
  background: white;
  border-radius: 4px;
  padding: 2px;
  transition: transform 0.2s ease;
}

.card-icon:hover {
  transform: scale(1.1);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-icon.visa { color: #1565C0; }
.card-icon.mastercard { color: #ED0006; }
.card-icon.discover { color: #FF6000; }

/* CVV Input Group */
.cvv-input-group {
  position: relative;
}

.cvv-help {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  color: var(--muted);
  cursor: help;
  font-size: 0.8rem;
}

.cvv-help:hover {
  background: var(--brand);
  color: white;
}

/* OTP Styles */
.otp-container {
  text-align: center;
  padding: 2rem 0;
}

.otp-instruction {
  margin-bottom: 2rem;
}

.otp-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.otp-number {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand);
  margin: 1rem 0;
}

.otp-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
}

.otp-input-group {
  margin-bottom: 2rem;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.otp-input {
  width: 50px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  border: 2px solid var(--line);
  border-radius: calc(var(--radius) / 2);
  transition: border-color 0.2s ease;
}

.otp-input:focus {
  outline: none;
  border-color: var(--brand);
}

.otp-actions {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: calc(var(--radius) / 2);
  font-weight: 500;
}

.form-status.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.form-status.success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* Security Notice */
.security-notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f0fdf4;
  border-radius: calc(var(--radius) / 2);
  margin: 1.5rem 0;
}

.security-icon {
  font-size: 1.5rem;
}

.security-notice p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Order Summary Enhancements */
.order-summary {
  position: sticky;
  top: 2rem;
}

.contact-info,
.payment-info {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.contact-info h4,
.payment-info h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-info p,
.payment-info p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

/* Button States */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-link {
  background: none;
  border: none;
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-link:hover {
  color: var(--brand-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
  .checkout-progress {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .progress-step {
    margin: 0;
  }
  
  .progress-step::after {
    display: none;
  }
  
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .otp-inputs {
    gap: 0.25rem;
  }
  
  .otp-input {
    width: 40px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .otp-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .card-icons {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 24px, 100%);
  }

  .nav-wrap {
    min-height: auto;
    padding: 0.8rem 0;
  }

  .nav-links {
    display: none;
  }

  .cart-icon-btn {
    padding: 0.7rem 0.9rem;
    white-space: nowrap;
  }

  .section {
    padding: 1rem 0 2rem;
  }

  .panel,
  .step1-panel,
  .step3-panel,
  .payment-methods-panel {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .checkout-progress {
    padding: 0;
    margin-bottom: 1.25rem;
  }

  .progress-step {
    font-size: 0.92rem;
    padding: 0.7rem 0.9rem;
  }

  .form-row {
    gap: 0.85rem;
    margin-bottom: 1rem;
  }

  .phone-input-group {
    flex-direction: column;
  }

  .country-code {
    flex: 1 1 auto;
    width: 100%;
  }

  .form-actions .btn,
  .otp-actions .btn {
    width: 100%;
  }

  .otp-container {
    padding: 1rem 0;
  }

  .otp-inputs {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .otp-input {
    width: 44px;
    height: 52px;
  }

  .order-summary {
    position: static;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 16px);
  }

  .panel,
  .step1-panel,
  .step3-panel,
  .payment-methods-panel {
    padding: 1rem;
  }

  .form-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
  }

  .otp-input {
    width: 40px;
    height: 48px;
    font-size: 1.15rem;
  }

  .cart-icon-btn {
    padding: 0.65rem 0.8rem;
    font-size: 0.9rem;
  }

  .checkout-item {
    flex-direction: column;
  }

  .checkout-item strong {
    white-space: normal;
  }
}
