/* =========================================================
   VYEDI CHECKOUT
   COMPLETE STYLESHEET
   ========================================================= */

/* =========================================================
   VARIABLES
   ========================================================= */

:root {
  --primary: #9b4d20;
  --primary-dark: #743514;

  --gold: #c89532;
  --gold-light: #ead39b;

  --dark: #2b211b;
  --text: #51443b;
  --muted: #81736a;

  --cream: #fffaf2;
  --white: #fdfcf8;

  --border: #eadfd3;
  --soft: #f8f1e8;

  --success: #3f7a4d;
  --danger: #b42318;

  --shadow: 0 15px 40px rgba(70, 45, 25, 0.08);

  --shadow-small: 0 8px 25px rgba(70, 45, 25, 0.06);

  --container: 1200px;
}

/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: var(--cream);

  color: var(--text);

  font-family: "Inter", Arial, sans-serif;

  font-size: 15px;

  line-height: 1.6;
}

img {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;

  text-decoration: none;
}

[hidden] {
  display: none !important;
}

/* =========================================================
   CONTAINER
   ========================================================= */

.container {
  width: min(calc(100% - 40px), var(--container));

  margin-inline: auto;
}

/* =========================================================
   TOP BAR
   ========================================================= */

.top-bar {
  background: var(--dark);

  color: var(--white);
}

.top-bar .container {
  min-height: 38px;

  display: flex;

  align-items: center;

  justify-content: center;
}

.top-bar p {
  margin: 0;

  font-size: 11px;

  font-weight: 600;

  letter-spacing: 0.5px;
}

.top-bar p span {
  margin: 0 7px;

  color: var(--gold);
}

/* =========================================================
   HEADER
   ========================================================= */

.checkout-header {
  position: relative;

  z-index: 10;

  background: var(--white);

  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 88px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;
}

.checkout-logo {
  display: inline-flex;

  align-items: center;
}

.checkout-logo img {
  width: auto;

  height: 85px;

  display: block;

  object-fit: contain;
}

.checkout-header-right {
  display: flex;

  align-items: center;

  gap: 25px;
}

.back-cart-link {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  color: var(--primary);

  font-size: 13px;

  font-weight: 700;

  transition: color 0.2s ease;
}

.back-cart-link span {
  font-size: 18px;
}

.back-cart-link:hover {
  color: var(--primary-dark);
}

.secure-checkout {
  display: flex;

  align-items: center;

  gap: 8px;

  padding-left: 24px;

  border-left: 1px solid var(--border);

  color: var(--muted);

  font-size: 12px;

  font-weight: 600;
}

.secure-icon {
  font-size: 14px;
}

/* =========================================================
   CHECKOUT HEADING
   ========================================================= */

.checkout-heading {
  padding: 55px 0 35px;

  text-align: center;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(200, 149, 50, 0.08),
      transparent 55%
    ),
    var(--cream);
}

.checkout-eyebrow {
  display: block;

  margin-bottom: 8px;

  color: var(--gold);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 2px;
}

.checkout-heading h1 {
  margin: 0;

  color: var(--dark);

  font-family: "Playfair Display", Georgia, serif;

  font-size: clamp(38px, 5vw, 58px);

  font-weight: 600;

  line-height: 1.1;
}

.checkout-heading p {
  max-width: 600px;

  margin: 14px auto 0;

  color: var(--muted);

  font-size: 14px;
}

/* =========================================================
   STEPS
   ========================================================= */

.checkout-steps-section {
  padding: 0 0 45px;
}

.checkout-steps {
  max-width: 650px;

  margin: auto;

  display: flex;

  align-items: center;

  justify-content: center;
}

.checkout-step {
  display: flex;

  align-items: center;

  gap: 9px;

  white-space: nowrap;

  color: #a69b93;

  font-size: 12px;

  font-weight: 700;
}

.step-number {
  width: 34px;

  height: 34px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid var(--border);

  border-radius: 50%;

  background: var(--white);

  color: var(--muted);

  font-size: 12px;
}

.checkout-step.active {
  color: var(--primary);
}

.checkout-step.active .step-number {
  border-color: var(--primary);

  background: var(--primary);

  color: var(--white);
}

.step-line {
  flex: 1;

  max-width: 100px;

  height: 1px;

  margin: 0 15px;

  background: var(--border);
}

/* =========================================================
   CHECKOUT MAIN
   ========================================================= */

.checkout-main {
  padding-bottom: 80px;
}

.checkout-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    390px;

  align-items: start;

  gap: 35px;
}

.checkout-left {
  min-width: 0;
}

/* =========================================================
   ACCOUNT CARD
   ========================================================= */

.checkout-account-card {
  margin-bottom: 25px;

  padding: 27px;

  border: 1px solid var(--border);

  border-radius: 18px;

  background: var(--white);

  box-shadow: var(--shadow-small);
}

.account-card-header {
  display: flex;

  align-items: flex-start;

  gap: 17px;
}

.account-icon {
  width: 52px;

  height: 52px;

  flex: 0 0 52px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 14px;

  background: var(--soft);

  color: var(--primary);

  font-size: 25px;
}

.account-card-content {
  min-width: 0;
}

.account-card-header h2 {
  margin: 0;

  color: var(--dark);

  font-family: "Playfair Display", Georgia, serif;

  font-size: 23px;

  line-height: 1.25;
}

.account-card-header p {
  max-width: 620px;

  margin: 7px 0 0;

  color: var(--muted);

  font-size: 13px;
}

.account-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 22px;
}

.account-primary-button,
.account-secondary-button,
.guest-checkout-button,
.account-logout-button {
  min-height: 44px;

  padding: 10px 19px;

  border-radius: 9px;

  font-size: 13px;

  font-weight: 700;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.account-primary-button {
  border: 1px solid var(--primary);

  background: var(--primary);

  color: var(--white);
}

.account-primary-button:hover {
  background: var(--primary-dark);

  border-color: var(--primary-dark);

  transform: translateY(-1px);
}

.account-secondary-button {
  border: 1px solid var(--border);

  background: var(--soft);

  color: var(--primary);
}

.account-secondary-button:hover {
  border-color: var(--primary);

  background: #f4e8da;
}

.guest-checkout-button {
  border: 1px solid var(--border);

  background: var(--white);

  color: var(--muted);
}

.guest-checkout-button:hover {
  border-color: var(--primary);

  color: var(--primary);
}

/* =========================================================
   LOGGED ACCOUNT
   ========================================================= */

.logged-account-header {
  display: flex;

  align-items: flex-start;

  gap: 16px;
}

.account-success-icon {
  width: 50px;

  height: 50px;

  flex: 0 0 50px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: rgba(63, 122, 77, 0.12);

  color: var(--success);

  font-size: 21px;

  font-weight: 800;
}

.logged-account-header h2 {
  margin: 0;

  color: var(--dark);

  font-family: "Playfair Display", Georgia, serif;

  font-size: 23px;
}

.logged-account-header p {
  margin: 5px 0 0;

  color: var(--muted);

  font-size: 13px;
}

.logged-account-actions {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  margin-top: 20px;

  padding-top: 17px;

  border-top: 1px solid var(--border);
}

.account-saved-text {
  color: var(--success);

  font-size: 12px;

  font-weight: 700;
}

.account-logout-button {
  min-height: 38px;

  padding: 7px 15px;

  border: 1px solid var(--border);

  background: var(--white);

  color: var(--primary);
}

.account-logout-button:hover {
  border-color: var(--primary);

  background: var(--soft);
}

/* =========================================================
   LOGIN / REGISTER PANEL
   ========================================================= */

.account-panel {
  margin-bottom: 25px;

  padding: 28px;

  border: 1px solid var(--border);

  border-radius: 18px;

  background: var(--white);

  box-shadow: var(--shadow-small);
}

.account-panel-header {
  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 23px;
}

.account-panel-header h2 {
  margin: 0;

  color: var(--dark);

  font-family: "Playfair Display", Georgia, serif;

  font-size: 25px;

  line-height: 1.25;
}

.account-close-button {
  width: 36px;

  height: 36px;

  flex: 0 0 36px;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 0;

  border: 1px solid var(--border);

  border-radius: 50%;

  background: var(--white);

  color: var(--muted);

  font-size: 23px;

  line-height: 1;
}

.account-close-button:hover {
  border-color: var(--primary);

  color: var(--primary);
}

/* =========================================================
   ACCOUNT FORM
   ========================================================= */

.account-form-group {
  margin-bottom: 16px;
}

.account-form-group label {
  display: block;

  margin-bottom: 7px;

  color: var(--dark);

  font-size: 12px;

  font-weight: 800;
}

.account-form-group input {
  width: 100%;

  height: 48px;

  padding: 0 14px;

  border: 1px solid var(--border);

  border-radius: 9px;

  outline: none;

  background: var(--white);

  color: var(--dark);

  font-size: 13px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.account-form-group input::placeholder {
  color: #aaa09a;
}

.account-form-group input:focus {
  border-color: var(--primary);

  box-shadow: 0 0 0 3px rgba(155, 77, 32, 0.08);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 70px;
}

.password-toggle {
  position: absolute;

  top: 50%;

  right: 10px;

  transform: translateY(-50%);

  border: 0;

  background: transparent;

  color: var(--primary);

  font-size: 11px;

  font-weight: 800;
}

.account-field-error {
  display: block;

  min-height: 16px;

  margin-top: 4px;

  color: var(--danger);

  font-size: 11px;
}

.account-message {
  min-height: 20px;

  margin: 3px 0 13px;

  font-size: 12px;

  font-weight: 700;
}

.account-message.success {
  color: var(--success);
}

.account-message.error {
  color: var(--danger);
}

.account-submit-button {
  width: 100%;

  height: 49px;

  border: 0;

  border-radius: 9px;

  background: var(--primary);

  color: var(--white);

  font-size: 13px;

  font-weight: 800;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.account-submit-button:hover {
  background: var(--primary-dark);

  transform: translateY(-1px);
}

.account-panel-footer {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 5px;

  margin-top: 19px;

  color: var(--muted);

  font-size: 12px;
}

.account-panel-footer button {
  padding: 0;

  border: 0;

  background: transparent;

  color: var(--primary);

  font-size: 12px;

  font-weight: 800;
}

/* =========================================================
   FORM HEADING
   ========================================================= */

.form-heading {
  margin: 10px 0 25px;
}

.form-heading > span {
  display: block;

  margin-bottom: 7px;

  color: var(--gold);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 2px;
}

.form-heading h1 {
  margin: 0;

  color: var(--dark);

  font-family: "Playfair Display", Georgia, serif;

  font-size: 30px;

  line-height: 1.2;
}

.form-heading p {
  margin: 8px 0 0;

  color: var(--muted);

  font-size: 13px;
}

/* =========================================================
   FORM CARD
   ========================================================= */

.form-card {
  margin-bottom: 20px;

  padding: 26px;

  border: 1px solid var(--border);

  border-radius: 16px;

  background: var(--white);

  box-shadow: var(--shadow-small);
}

.form-card > h2 {
  margin: 0 0 20px;

  color: var(--dark);

  font-family: "Playfair Display", Georgia, serif;

  font-size: 21px;
}

.form-card > h2 small {
  margin-left: 7px;

  color: var(--muted);

  font-family: "Inter", Arial, sans-serif;

  font-size: 10px;

  font-weight: 600;
}

/* =========================================================
   FORM GRID
   ========================================================= */

.form-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 18px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;

  margin-bottom: 7px;

  color: var(--dark);

  font-size: 12px;

  font-weight: 800;
}

.form-group label span {
  color: var(--primary);
}

.form-group input,
.form-group textarea {
  width: 100%;

  border: 1px solid var(--border);

  border-radius: 9px;

  outline: none;

  background: var(--white);

  color: var(--dark);

  font-family: "Inter", Arial, sans-serif;

  font-size: 13px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input {
  height: 49px;

  padding: 0 14px;
}

.form-group textarea {
  min-height: 100px;

  padding: 12px 14px;

  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa09a;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);

  box-shadow: 0 0 0 3px rgba(155, 77, 32, 0.08);
}

.field-error {
  display: block;

  min-height: 16px;

  margin-top: 4px;

  color: var(--danger);

  font-size: 11px;
}

.input-error {
  border-color: var(--danger) !important;

  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.06) !important;
}

/* =========================================================
   PAYMENT
   ========================================================= */

.payment-options {
  display: grid;

  gap: 11px;
}

.payment-option {
  position: relative;

  display: flex;

  align-items: center;

  gap: 12px;

  min-height: 72px;

  padding: 14px 16px;

  border: 1px solid var(--border);

  border-radius: 11px;

  background: var(--white);

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.payment-option:hover {
  border-color: var(--gold);

  background: #fffdf9;
}

.payment-option input {
  position: absolute;

  width: 1px;

  height: 1px;

  opacity: 0;

  pointer-events: none;
}

.payment-option:has(input:checked) {
  border-color: var(--primary);

  background: #fffaf5;

  box-shadow: 0 0 0 1px rgba(155, 77, 32, 0.08);
}

.payment-radio {
  width: 19px;

  height: 19px;

  flex: 0 0 19px;

  border: 2px solid #cfc4ba;

  border-radius: 50%;

  position: relative;
}

.payment-option input:checked ~ .payment-radio {
  border-color: var(--primary);
}

.payment-option input:checked ~ .payment-radio::after {
  content: "";

  position: absolute;

  inset: 4px;

  border-radius: 50%;

  background: var(--primary);
}

.payment-icon {
  width: 35px;

  height: 35px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 9px;

  background: var(--soft);

  font-size: 17px;
}

.payment-info {
  display: flex;

  flex-direction: column;

  gap: 2px;
}

.payment-info strong {
  color: var(--dark);

  font-size: 13px;
}

.payment-info small {
  color: var(--muted);

  font-size: 11px;
}

.payment-note {
  margin-top: 15px;

  padding: 11px 13px;

  border-radius: 8px;

  background: var(--soft);

  color: var(--muted);

  font-size: 11px;
}

/* =========================================================
   SUMMARY
   ========================================================= */

.checkout-right {
  position: sticky;

  top: 20px;
}

.summary-card {
  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: 18px;

  background: var(--white);

  box-shadow: var(--shadow);
}

.summary-header {
  padding: 25px 25px 18px;
}

.summary-header h2 {
  margin: 0;

  color: var(--dark);

  font-family: "Playfair Display", Georgia, serif;

  font-size: 25px;
}

/* =========================================================
   CHECKOUT ITEMS
   ========================================================= */

.checkout-items {
  padding: 0 25px;
}

.checkout-item {
  display: grid;

  grid-template-columns:
    62px
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 12px;

  padding: 12px 0;
}

.checkout-item-image {
  position: relative;

  width: 62px;

  height: 62px;

  overflow: visible;

  border-radius: 10px;

  background: var(--soft);
}

.checkout-item-image img {
  width: 100%;

  height: 100%;

  display: block;

  object-fit: cover;

  border-radius: 10px;
}

.checkout-item-placeholder {
  width: 100%;

  height: 100%;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 10px;

  background: var(--soft);

  color: var(--primary);

  font-family: "Playfair Display", Georgia, serif;

  font-size: 21px;

  font-weight: 700;
}

.checkout-item-quantity {
  position: absolute;

  top: -7px;

  right: -7px;

  min-width: 21px;

  height: 21px;

  padding: 0 5px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 2px solid var(--white);

  border-radius: 50%;

  background: var(--primary);

  color: var(--white);

  font-size: 9px;

  font-weight: 800;
}

.checkout-item-info {
  min-width: 0;

  display: flex;

  flex-direction: column;

  gap: 3px;
}

.checkout-item-info strong {
  overflow: hidden;

  color: var(--dark);

  font-size: 12px;

  font-weight: 700;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.checkout-item-info span {
  color: var(--muted);

  font-size: 10px;
}

.checkout-item-total {
  color: var(--dark);

  font-size: 12px;

  white-space: nowrap;
}

.checkout-no-items {
  padding: 20px 0;

  text-align: center;

  color: var(--muted);

  font-size: 13px;
}

/* =========================================================
   SUMMARY DIVIDER
   ========================================================= */

.summary-divider {
  height: 1px;

  margin: 10px 25px 18px;

  background: var(--border);
}

/* =========================================================
   SUMMARY ROWS
   ========================================================= */

.summary-row {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 15px;

  padding: 5px 25px;

  color: var(--muted);

  font-size: 12px;
}

.summary-row strong {
  color: var(--dark);

  font-size: 13px;
}

.free-shipping-message {
  margin: 12px 25px;

  padding: 9px 11px;

  border-radius: 7px;

  background: var(--soft);

  color: var(--primary);

  font-size: 10px;

  font-weight: 700;

  text-align: center;
}

.summary-total {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 15px;

  margin: 15px 25px 20px;

  padding-top: 17px;

  border-top: 1px solid var(--border);
}

.summary-total span {
  color: var(--dark);

  font-size: 15px;

  font-weight: 800;
}

.summary-total strong {
  color: var(--primary);

  font-size: 23px;
}

/* =========================================================
   PLACE ORDER
   ========================================================= */

.desktop-place-order {
  padding: 0 25px;
}

.place-order-button {
  width: 100%;

  min-height: 52px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 12px;

  border: 0;

  border-radius: 10px;

  background: var(--primary);

  color: var(--white);

  font-size: 13px;

  font-weight: 800;

  box-shadow: 0 8px 20px rgba(155, 77, 32, 0.16);

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.place-order-button:hover {
  background: var(--primary-dark);

  transform: translateY(-1px);

  box-shadow: 0 11px 25px rgba(155, 77, 32, 0.22);
}

.place-order-button span:last-child {
  font-size: 17px;
}

/* =========================================================
   TRUST
   ========================================================= */

.checkout-trust {
  margin-top: 22px;

  padding: 20px 25px;

  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;

  align-items: center;

  gap: 9px;

  margin-bottom: 10px;

  color: var(--muted);

  font-size: 10px;

  font-weight: 600;
}

.trust-item:last-child {
  margin-bottom: 0;
}

.trust-item span:first-child {
  width: 24px;

  height: 24px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 6px;

  background: var(--soft);

  font-size: 11px;
}

/* =========================================================
   MOBILE ORDER BUTTON
   ========================================================= */

.mobile-order-button {
  display: none;

  margin-top: 20px;
}

/* =========================================================
   EMPTY CART
   ========================================================= */

.checkout-empty {
  padding: 20px 0 90px;
}

.empty-checkout-card {
  max-width: 600px;

  margin: auto;

  padding: 55px 35px;

  border: 1px solid var(--border);

  border-radius: 20px;

  background: var(--white);

  text-align: center;

  box-shadow: var(--shadow);
}

.empty-checkout-icon {
  width: 70px;

  height: 70px;

  margin: 0 auto 20px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: var(--soft);

  font-size: 30px;
}

.empty-checkout-card h2 {
  margin: 0;

  color: var(--dark);

  font-family: "Playfair Display", Georgia, serif;

  font-size: 30px;
}

.empty-checkout-card p {
  max-width: 430px;

  margin: 10px auto 25px;

  color: var(--muted);

  font-size: 13px;
}

/* =========================================================
   SHOPPING BUTTON
   ========================================================= */

.continue-shopping-button {
  min-height: 46px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 12px;

  padding: 11px 20px;

  border-radius: 9px;

  background: var(--primary);

  color: var(--white);

  font-size: 12px;

  font-weight: 800;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.continue-shopping-button:hover {
  background: var(--primary-dark);

  transform: translateY(-1px);
}

/* =========================================================
   ORDER SUCCESS
   ========================================================= */

.order-success {
  padding: 30px 0 90px;
}

.success-card {
  max-width: 680px;

  margin: auto;

  padding: 60px 35px;

  border: 1px solid var(--border);

  border-radius: 20px;

  background: var(--white);

  text-align: center;

  box-shadow: var(--shadow);
}

.success-icon {
  width: 76px;

  height: 76px;

  margin: 0 auto 20px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: rgba(63, 122, 77, 0.12);

  color: var(--success);

  font-size: 35px;

  font-weight: 800;
}

.success-card h2 {
  margin: 0;

  color: var(--dark);

  font-family: "Playfair Display", Georgia, serif;

  font-size: 34px;
}

.success-card > p {
  margin: 10px 0 0;

  color: var(--muted);

  font-size: 14px;
}

.success-order-number {
  margin: 28px auto 18px;

  padding: 17px 25px;

  border: 1px dashed var(--gold);

  border-radius: 11px;

  background: var(--soft);
}

.success-order-number span {
  display: block;

  margin-bottom: 5px;

  color: var(--muted);

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 1px;

  text-transform: uppercase;
}

.success-order-number strong {
  color: var(--primary);

  font-size: 19px;

  letter-spacing: 1px;
}

.success-message {
  max-width: 470px;

  margin: auto !important;
}

.success-actions {
  display: flex;

  align-items: center;

  justify-content: center;

  flex-wrap: wrap;

  gap: 15px;

  margin-top: 28px;
}

.success-home-link {
  color: var(--primary);

  font-size: 12px;

  font-weight: 800;
}

.success-home-link:hover {
  text-decoration: underline;
}

/* =========================================================
   FOOTER
   ========================================================= */

.checkout-footer {
  border-top: 1px solid var(--border);

  background: var(--dark);

  color: var(--white);
}

.checkout-footer-main {
  display: grid;

  grid-template-columns:
    1.4fr
    1fr
    1fr;

  gap: 50px;

  padding: 50px 0;
}

.footer-logo {
  display: inline-flex;
}

.footer-logo img {
  width: auto;

  height: 48px;

  display: block;

  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 300px;

  margin: 15px 0 0;

  color: #c5bbb3;

  font-size: 12px;

  line-height: 1.7;
}

.footer-links {
  display: flex;

  flex-direction: column;

  gap: 9px;
}

.footer-links a,
.footer-support a {
  color: #c5bbb3;

  font-size: 12px;

  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-support a:hover {
  color: var(--gold-light);
}

.footer-support {
  display: flex;

  flex-direction: column;

  gap: 9px;
}

.footer-support strong {
  color: var(--white);

  font-size: 13px;
}

.checkout-footer-bottom {
  min-height: 65px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-footer-bottom p {
  margin: 0;

  color: #a99f98;

  font-size: 10px;
}

.checkout-footer-bottom > div {
  display: flex;

  gap: 20px;
}

.checkout-footer-bottom a {
  color: #a99f98;

  font-size: 10px;
}

.checkout-footer-bottom a:hover {
  color: var(--gold-light);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {
  .checkout-layout {
    grid-template-columns:
      minmax(0, 1fr)
      330px;

    gap: 22px;
  }

  .checkout-footer-main {
    gap: 30px;
  }
}

/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 800px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-right {
    position: static;

    order: -1;
  }

  .summary-card {
    margin-bottom: 25px;
  }

  .checkout-footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .top-bar .container {
    min-height: 34px;
  }

  .top-bar p {
    font-size: 9px;

    text-align: center;
  }

  .top-bar p span {
    margin: 0 3px;
  }

  .header-inner {
    min-height: 72px;
  }

  .checkout-logo img {
    height: 46px;
  }

  .checkout-header-right {
    gap: 10px;
  }

  .secure-checkout {
    display: none;
  }

  .back-cart-link {
    font-size: 11px;
  }

  .checkout-heading {
    padding: 40px 0 28px;
  }

  .checkout-heading h1 {
    font-size: 39px;
  }

  .checkout-heading p {
    font-size: 12px;
  }

  .checkout-steps-section {
    padding-bottom: 30px;
  }

  .checkout-steps {
    width: 100%;
  }

  .checkout-step {
    gap: 5px;

    font-size: 9px;
  }

  .step-number {
    width: 28px;

    height: 28px;

    font-size: 10px;
  }

  .step-line {
    margin: 0 7px;
  }

  .checkout-main {
    padding-bottom: 50px;
  }

  .checkout-account-card,
  .account-panel,
  .form-card {
    padding: 19px;

    border-radius: 14px;
  }

  .account-card-header {
    gap: 12px;
  }

  .account-icon {
    width: 42px;

    height: 42px;

    flex-basis: 42px;

    font-size: 20px;
  }

  .account-card-header h2 {
    font-size: 19px;
  }

  .account-card-header p {
    font-size: 11px;
  }

  .account-actions {
    display: grid;

    grid-template-columns: 1fr;
  }

  .account-primary-button,
  .account-secondary-button,
  .guest-checkout-button {
    width: 100%;
  }

  .logged-account-header {
    gap: 11px;
  }

  .account-success-icon {
    width: 42px;

    height: 42px;

    flex-basis: 42px;
  }

  .logged-account-header h2 {
    font-size: 19px;
  }

  .logged-account-actions {
    align-items: stretch;

    flex-direction: column;
  }

  .account-logout-button {
    width: 100%;
  }

  .account-panel-header h2 {
    font-size: 21px;
  }

  .account-panel-footer {
    flex-direction: column;
  }

  .form-heading {
    margin-top: 0;
  }

  .form-heading h1 {
    font-size: 25px;
  }

  .form-heading p {
    font-size: 11px;
  }

  .form-grid {
    grid-template-columns: 1fr;

    gap: 13px;
  }

  .form-group.full {
    grid-column: auto;
  }

  .form-card > h2 {
    font-size: 19px;
  }

  .payment-option {
    padding: 12px;
  }

  .payment-info strong {
    font-size: 12px;
  }

  .payment-info small {
    font-size: 10px;
  }

  .checkout-item {
    grid-template-columns:
      55px
      minmax(0, 1fr)
      auto;
  }

  .checkout-item-image {
    width: 55px;

    height: 55px;
  }

  .checkout-items {
    padding: 0 19px;
  }

  .summary-header {
    padding: 20px 19px 15px;
  }

  .summary-header h2 {
    font-size: 22px;
  }

  .summary-divider {
    margin-left: 19px;

    margin-right: 19px;
  }

  .summary-row {
    padding-left: 19px;

    padding-right: 19px;
  }

  .free-shipping-message {
    margin-left: 19px;

    margin-right: 19px;
  }

  .summary-total {
    margin-left: 19px;

    margin-right: 19px;
  }

  .desktop-place-order {
    display: none;
  }

  .checkout-trust {
    padding-left: 19px;

    padding-right: 19px;
  }

  .mobile-order-button {
    display: block;
  }

  .mobile-order-button .place-order-button {
    min-height: 54px;
  }

  .empty-checkout-card {
    padding: 40px 20px;
  }

  .empty-checkout-card h2 {
    font-size: 25px;
  }

  .success-card {
    padding: 45px 20px;
  }

  .success-card h2 {
    font-size: 27px;
  }

  .success-actions {
    flex-direction: column;
  }

  .success-actions .continue-shopping-button {
    width: 100%;
  }

  .checkout-footer-main {
    grid-template-columns: 1fr;

    gap: 30px;

    padding: 38px 0;
  }

  .footer-brand {
    grid-column: auto;
  }

  .checkout-footer-bottom {
    align-items: flex-start;

    flex-direction: column;

    padding: 18px 0;
  }

  .checkout-footer-bottom > div {
    flex-wrap: wrap;

    gap: 12px;
  }
}

/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {
  .checkout-heading h1 {
    font-size: 34px;
  }

  .step-text {
    display: none;
  }

  .checkout-step {
    justify-content: center;
  }

  .step-line {
    max-width: 60px;
  }

  .account-card-header h2,
  .logged-account-header h2 {
    font-size: 17px;
  }

  .checkout-item-total {
    font-size: 11px;
  }
}

/* =========================================================
   COUPON CODE
========================================================= */

.coupon-section {
  margin: 20px 0;
  padding: 16px;
  background: #fffaf2;
  border: 1px solid #eadfd3;
  border-radius: 12px;
}

.coupon-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.coupon-title span {
  font-size: 14px;
  font-weight: 700;
  color: #2b211b;
}

.coupon-title small {
  font-size: 11px;
  color: #81736a;
}

.coupon-row {
  display: flex;
  width: 100%;
  gap: 8px;
}

.coupon-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #eadfd3;
  border-radius: 8px;
  background: #ffffff;
  color: #2b211b;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.coupon-input::placeholder {
  color: #a89b91;
}

.coupon-input:focus {
  border-color: #9b4d20;
  box-shadow: 0 0 0 3px rgba(155, 77, 32, 0.08);
}

.coupon-apply-button {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #9b4d20;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.coupon-apply-button:hover {
  background: #743514;
}

.coupon-apply-button:active {
  transform: translateY(1px);
}

.coupon-message {
  min-height: 18px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.coupon-message.success {
  color: #3f7a4d;
}

.coupon-message.error {
  color: #a33a2b;
}

.coupon-discount-row {
  color: #3f7a4d;
}

.coupon-discount-row strong {
  color: #3f7a4d;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {
  .coupon-section {
    margin: 16px 0;
    padding: 14px;
    border-radius: 10px;
  }

  .coupon-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 10px;
  }

  .coupon-title span {
    font-size: 13px;
  }

  .coupon-title small {
    font-size: 11px;
  }

  .coupon-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
  }

  .coupon-input {
    width: 100%;
    height: 42px;
    font-size: 13px;
  }

  .coupon-apply-button {
    height: 42px;
    padding: 0 16px;
    font-size: 12px;
  }

  .coupon-message {
    font-size: 11px;
    margin-top: 7px;
  }
}
