/* Section */

.checkout-page {
  background: #fff;
  color: #111;
  overflow: hidden;
}

/* Section */

.checkout-container {
  width: min(1180px, calc(100% - 4rem));
  margin: 0 auto;
}

/* Section */

.checkout-heading {
  background: #292929;
  color: #fff;
  padding: clamp(4.5rem, 7vw, 6rem) 0 2rem;
}

.checkout-product-name {
  margin: 0;
  font-family: "Encode Sans Expanded", var(--font-body), sans-serif;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.checkout-product-type {
  margin: 0.9rem 0 0;
  color: #d51b08;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Section */

.checkout-main {
  position: relative;
  background: #fff;
  min-height: 535px;
  padding: 0 0 4rem;
  overflow: visible;
}

.checkout-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 520px;
  background: #a8a8a8;
  z-index: 0;
}

/* Section */

.checkout-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 2rem;
  align-items: start;
}

/* Section */

.checkout-product {
  min-width: 0;
  background: transparent;
  padding-top: 2.3rem;
  display: flex;
  flex-direction: column;
}

/* Section */

.checkout-product-image {
  width: 100%;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.checkout-product-image img {
  display: block;
  width: 112%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Section */

.checkout-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #090909;
  min-height: 72px;
  margin-top: 8px;
  overflow: hidden;
}

.checkout-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 0.45rem;
  color: #fff;
  font-size: 0.68rem;
  line-height: 1.12;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-transform: uppercase;
}

.feature-icon {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 25px;
  border: 1px solid #c9a227;
  border-radius: 50%;
  color: #c9a227;
}

.feature-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 768px) {
  .checkout-feature {
    justify-content: flex-start;
    padding-inline: 0.75rem;
    text-align: left;
  }

  .checkout-feature > span:last-child {
    min-width: 0;
    flex: 1;
  }
}

/* Section */

.checkout-card {
  position: relative;
  z-index: 2;
  background: #0b0b0b;
  color: #fff;
  border-radius: 10px;
  padding: 1.8rem 1.6rem 1.4rem;
  margin-top: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Section */

.checkout-tabs {
  display: flex;
  gap: 1.6rem;
  border-bottom: 1px solid #292929;
  padding-bottom: 0.9rem;
  flex: 0 0 auto;
}

.checkout-tab {
  border: 0;
  padding: 0;
  background: transparent;
  color: #666;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.checkout-tab.active {
  color: #fff;
  position: relative;
}

.checkout-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.9rem;
  height: 2px;
  background: #d51b08;
}

/* Section */

.checkout-product-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 0.7rem;
  flex: 0 0 auto;
}

.checkout-small-label {
  margin: 0 0 0.35rem;
  color: #777;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.checkout-product-row h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.checkout-price {
  color: #d51b08;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Section */

.checkout-discount {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.45rem;
  padding: 0.42rem 0.75rem;
  background: #2d2400;
  color: #f4d077;
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.035em;
  font-weight: 600;
  border-radius: 4px;
}

.checkout-discount svg {
  display: block;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

/* Section */

.checkout-benefits {
  padding: 0.9rem 0;
  flex: 0 0 auto;
}

.checkout-benefits p {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.48rem 0;
  color: #aaa;
  font-size: 0.8rem;
  line-height: 1.4;
}

.checkout-benefits p > span:last-child {
  flex: 1;
}

.checkout-prebook-description {
  margin: 0.9rem 0 0;
  color: #aaa;
  font-size: 0.8rem;
  line-height: 1.4;
}

.checkout-mode-content {
  min-height: 250px;
}

.checkout-card[data-checkout-state="preorder"] .checkout-mode-content {
  min-height: 205px;
}

.checkout-card[data-checkout-state="preorder"] .checkout-form {
  margin-top: 0.3rem;
  margin-bottom: 0;
}

.benefit-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  color: #c9a227;
}

.benefit-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Section */

.checkout-form {
  margin-top: 0.3rem;
  display: flex;
  flex-direction: column;
}

.form-row {
  display: grid;
  gap: 0.9rem;
}

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

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: #aaa;
  font-size: 0.72rem;
  line-height: 1.2;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

.form-field input {
  height: 42px;
  padding: 0 0.7rem;
}

.form-field textarea {
  min-height: 70px;
  padding: 0.6rem 0.7rem;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #d51b08;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #999;
}

.checkout-pincode {
  width: 50%;
}

/* Section */

.checkout-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  color: #999;
  font-size: 0.75rem;
  line-height: 1.45;
}

.checkout-consent input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: #d51b08;
}

/* Section */

.checkout-submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 4px;
  background: #d51b08;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.checkout-submit:hover {
  background: #bd1807;
}

/* Section */

.checkout-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  text-align: center;
  color: #666;
  font-size: 0.72rem;
}

.checkout-secure-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c9a227;
}

.checkout-secure-icon svg {
  display: block;
}

/* Section */

@media (max-width: 1024px) {
  .checkout-heading {
    padding-top: 5rem;
  }
}

@media (max-width: 900px) {
  .checkout-heading {
    padding-top: 5rem;
  }

  .checkout-container {
    width: min(720px, calc(100% - 2.5rem));
  }

  .checkout-main::before {
    height: 500px;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .checkout-product {
    padding-top: 2rem;
  }

  .checkout-product-image {
    height: 360px;
  }

  .checkout-product-image img {
    width: 100%;
  }

  .checkout-card {
    width: min(480px, 100%);
    margin: 0 auto;
  }

  .checkout-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Section */

@media (max-width: 560px) {
  .checkout-container {
    width: calc(100% - 2rem);
  }

  .checkout-heading {
    padding: 5rem 0 1.5rem;
  }

  .checkout-product-name {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .checkout-product-type {
    font-size: 0.8rem;
  }

  .checkout-main {
    padding-bottom: 3rem;
  }

  .checkout-main::before {
    height: 470px;
  }

  .checkout-product {
    padding-top: 1.5rem;
  }

  .checkout-product-image {
    height: 280px;
  }

  .checkout-product-image img {
    width: 110%;
  }

  .checkout-features {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 5px;
  }

  .checkout-mode-content {
    min-height: 261px;
  }

  .checkout-card[data-checkout-state="preorder"] .checkout-mode-content {
    min-height: 216px;
  }

  .checkout-feature {
    min-height: 56px;
    font-size: 0.65rem;
    justify-content: flex-start;
    padding-inline: 0.75rem;
    text-align: left;
  }

  .checkout-feature > span:last-child {
    min-width: 0;
    flex: 1;
  }

  .checkout-card {
    padding: 1.4rem 1.1rem 1rem;
    margin-top: 0;
  }

  .checkout-product-row {
    gap: 0.7rem;
  }

  .checkout-product-row h2 {
    font-size: 0.95rem;
  }

  .checkout-price {
    font-size: 1.35rem;
  }

  .checkout-pincode {
    width: 100%;
  }

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

  .checkout-benefits p {
    font-size: 0.75rem;
  }
}
