/* ============================================
   checkout.css
   Extracted from checkout.html
   Paste into Flatsome > Theme Options > Custom CSS
   (or into the per-page Custom CSS panel)
   ============================================ */

/* ========== SHARED ========== */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-font-smoothing: antialiased; }
  body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fcfaf4; color: #1a1a1a; line-height: 1.5;
  }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

  /* Minimal checkout header — no full nav, just logo + secure badge */
  .checkout-header {
    background: #fcfaf4;
    border-bottom: 3px solid #1a1a1a;
    padding: 16px 32px;
  }
  .checkout-header-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }
  .logo {
    display: inline-flex; align-items: center;
    background: #1f5d3f; color: #fcfaf4;
    padding: 8px 22px;
    clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
    line-height: 1;
  }
  .logo-stack {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; line-height: 1;
  }
  .logo-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.18em; opacity: 0.85; margin: 1px 0; }
  .logo-name { font-size: 19px; font-weight: 900; font-style: italic; letter-spacing: -0.01em; margin: 1px 0; }

  /* Steps indicator at top */
  .steps {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700;
    color: #6b6b6b;
    flex-wrap: wrap;
  }
  .steps a:hover { color: #ff6b35; }
  .steps .current { color: #1a1a1a; }
  .steps iconify-icon { font-size: 10px; color: #d0c8b8; }

  /* Secure badge */
  .secure-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700;
    color: #1f5d3f;
  }
  .secure-badge iconify-icon { font-size: 18px; }

  /* ========== LAYOUT ========== */
  .checkout-layout {
    max-width: 1200px; margin: 0 auto;
    padding: 32px 32px 64px;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 48px;
    align-items: start;
  }

  /* Left column = form */
  .checkout-form {
    display: flex; flex-direction: column; gap: 20px;
  }

  /* Section card */
  .form-section {
    background: #fff;
    border: 3px solid #1a1a1a;
    border-radius: 24px;
    padding: 28px;
  }
  .form-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .form-section-title {
    display: flex; align-items: center; gap: 12px;
  }
  .step-number {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #1a1a1a; color: #ff6b35;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 900;
    flex-shrink: 0;
  }
  .step-number.done { background: #1f5d3f; color: #fff; }
  .form-section h2 {
    font-size: 22px; font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .form-section-edit {
    font-size: 13px; font-weight: 700;
    color: #6b6b6b;
    text-decoration: underline;
  }
  .form-section-edit:hover { color: #ff6b35; }

  /* Form fields */
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }
  .form-row.single { grid-template-columns: 1fr; }
  .form-row.three { grid-template-columns: 2fr 1fr 1fr; }
  .field {
    display: flex; flex-direction: column;
    position: relative;
  }
  .field label {
    font-size: 12px; font-weight: 700;
    margin-bottom: 6px;
    color: #1a1a1a;
    letter-spacing: 0.02em;
  }
  .field input,
  .field select {
    height: 50px;
    padding: 0 18px;
    background: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%231a1a1a' d='M8 12L2 6h12z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
  }
  .field input::placeholder { color: #b0b0b0; }
  .field input:focus,
  .field select:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
  }
  .field-helper {
    font-size: 12px;
    color: #6b6b6b;
    margin-top: 6px;
  }
  /* Optional checkbox row */
  .check-row {
    display: flex; align-items: center; gap: 10px;
    margin-top: 14px;
    font-size: 13px;
    cursor: pointer;
  }
  .check-row input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: #ff6b35;
    cursor: pointer;
  }
  .check-row label {
    cursor: pointer;
    color: #444;
    font-weight: 500;
  }

  /* Address verification */
  .addr-verify {
    display: flex; align-items: center; gap: 12px;
    margin: 4px 0 14px;
    flex-wrap: wrap;
  }
  .addr-verify-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    background: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 980px;
    font-size: 13px; font-weight: 700;
    color: #1a1a1a;
    transition: background 0.2s, color 0.2s;
  }
  .addr-verify-btn:hover { background: #ff6b35; }
  .addr-verify-btn iconify-icon { font-size: 16px; }
  .addr-verify-helper {
    font-size: 12px;
    color: #6b6b6b;
    font-weight: 500;
    line-height: 1.4;
  }
  .addr-verify-result {
    margin: 0 0 16px;
    padding: 18px 20px;
    background: rgba(31, 93, 63, 0.06);
    border: 2px solid rgba(31, 93, 63, 0.3);
    border-radius: 14px;
  }
  .addr-verify-result-head {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #1f5d3f;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
  }
  .addr-verify-result-head iconify-icon { font-size: 18px; }
  .addr-verify-result p {
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 14px;
    line-height: 1.5;
  }
  .addr-verify-result p strong { font-weight: 800; }
  .addr-verify-actions {
    display: flex; gap: 8px;
    flex-wrap: wrap;
  }
  .addr-verify-action {
    padding: 9px 16px;
    background: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    transition: background 0.2s, color 0.2s;
  }
  .addr-verify-action:hover { background: #1a1a1a; color: #ff6b35; }
  .addr-verify-action.primary {
    background: #1a1a1a; color: #ff6b35;
  }
  .addr-verify-action.primary:hover { background: #ff6b35; color: #1a1a1a; }
  .addr-verify-result.applied {
    background: rgba(31, 93, 63, 0.12);
    border-color: #1f5d3f;
  }
  .addr-verify-result.applied .addr-verify-actions { display: none; }

  /* Free shipping tracker in checkout */
  .ship-tracker {
    background: #1a1a1a;
    color: #fcfaf4;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    transition: background 0.3s;
  }
  .ship-tracker.qualified {
    background: linear-gradient(135deg, #1f5d3f 0%, #2a7a52 100%);
  }
  .ship-tracker-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 12px;
  }
  .ship-tracker-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #ff6b35;
    color: #1a1a1a;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }
  .ship-tracker.qualified .ship-tracker-icon {
    background: #fcfaf4;
    color: #1f5d3f;
  }
  .ship-tracker-msg {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    flex-wrap: wrap;
  }
  .ship-tracker-amount {
    font-size: 28px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.03em;
    color: #ff6b35;
    line-height: 1;
  }
  .ship-tracker-label { color: #fcfaf4; }
  .ship-tracker-msg strong {
    color: #ff6b35;
    font-weight: 900;
  }
  .ship-tracker.qualified .ship-tracker-amount { color: #fcfaf4; }
  .ship-tracker.qualified .ship-tracker-msg strong { color: #fcfaf4; }
  .ship-tracker-bar {
    height: 10px;
    background: rgba(255, 248, 240, 0.15);
    border-radius: 5px;
    overflow: hidden;
  }
  .ship-tracker-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35 0%, #ffd56b 100%);
    border-radius: 5px;
    transition: width 0.4s ease;
  }
  .ship-tracker.qualified .ship-tracker-fill {
    background: #fcfaf4;
    width: 100% !important;
  }
  .ship-tracker-amounts {
    display: flex; justify-content: space-between;
    margin-top: 6px;
    font-size: 11px;
    color: rgba(255, 248, 240, 0.65);
    font-weight: 600;
  }

  /* Shipping options */
  .ship-option {
    display: flex; align-items: center; gap: 14px;
    padding: 18px;
    background: #fff;
    border: 2px solid #e0d8c8;
    border-radius: 14px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: border-color 0.2s, background 0.2s;
  }
  .ship-option:hover { border-color: #1a1a1a; }
  .ship-option.selected {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.04);
  }
  .ship-option-radio {
    width: 22px; height: 22px;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
  }
  .ship-option.selected .ship-option-radio::after {
    content: "";
    position: absolute;
    inset: 4px;
    background: #ff6b35;
    border-radius: 50%;
  }
  .ship-option-info { flex: 1; }
  .ship-option-name {
    font-size: 15px; font-weight: 800;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
  }
  .ship-option-meta {
    font-size: 13px;
    color: #6b6b6b;
  }
  .ship-option-price {
    font-size: 15px; font-weight: 900;
    letter-spacing: -0.01em;
  }
  .ship-option-price.free { color: #1f5d3f; }

  /* Payment options */
  .payment-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }
  .pay-tab {
    padding: 14px 8px;
    background: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 12px;
    font-size: 13px; font-weight: 700;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
  }
  .pay-tab:hover {
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 #1a1a1a;
  }
  .pay-tab.active {
    background: #1a1a1a; color: #ff6b35;
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 #ff6b35;
  }
  .pay-tab iconify-icon { font-size: 24px; }
  .pay-method-detail {
    padding: 18px;
    background: rgba(31, 93, 63, 0.05);
    border: 1px dashed #1f5d3f;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
  }
  .pay-method-detail strong { color: #1f5d3f; }
  .pay-method-detail p { margin-bottom: 0; }
  .pay-method-detail p + p { margin-top: 8px; }

  /* Discount/save banner above payment method — high-margin upsell, made visually weightier */
  .pay-method-banner {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1f1f 100%);
    color: #fcfaf4;
    border-radius: 16px;
    border: 2px solid #ff6b35;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
  }
  .pay-method-banner iconify-icon {
    color: #1a1a1a;
    background: #ff6b35;
    border-radius: 50%;
    padding: 6px;
    font-size: 28px;
    flex-shrink: 0;
  }
  .pay-method-banner strong {
    color: #ff6b35;
    font-weight: 900;
    font-size: 20px;
    font-style: italic;
    letter-spacing: -0.01em;
  }
  @media (max-width: 480px) {
    .pay-method-banner { padding: 14px 16px; font-size: 14px; gap: 10px; }
    .pay-method-banner iconify-icon { font-size: 22px; padding: 5px; }
    .pay-method-banner strong { font-size: 17px; }
  }

  /* Method instructions title + steps */
  .pay-method-title {
    font-size: 14px;
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 18px 0 12px;
    display: flex; align-items: center; gap: 8px;
  }
  .pay-method-title::before {
    content: "";
    width: 16px; height: 3px;
    background: #ff6b35;
    border-radius: 2px;
  }
  .pay-method-steps {
    margin: 0 0 8px 22px;
    padding: 0;
    list-style: decimal;
  }
  .pay-method-steps li {
    padding: 6px 0 6px 6px;
    font-size: 14px;
    line-height: 1.55;
    color: #2a2a2a;
  }
  .pay-method-steps li strong { font-weight: 800; }
  .pay-method-steps li code {
    background: rgba(255, 107, 53, 0.12);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 700;
  }

  /* Warning callouts */
  .pay-method-warning {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 14px 18px;
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid #ff6b35;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  .pay-method-warning iconify-icon {
    color: #ff6b35;
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .pay-method-warning.subtle {
    background: rgba(201, 56, 56, 0.06);
    border-color: rgba(201, 56, 56, 0.3);
    color: #1a1a1a;
    margin-top: 14px;
    margin-bottom: 0;
    font-size: 13px;
  }
  .pay-method-warning.subtle iconify-icon { color: #c93838; }
  .pay-method-warning strong { font-weight: 800; }

  /* Place order button */
  .place-order-row {
    margin-top: 8px;
  }
  .place-order {
    width: 100%;
    padding: 20px;
    background: #1a1a1a;
    color: #ff6b35;
    border-radius: 16px;
    font-size: 18px; font-weight: 900;
    letter-spacing: 0.02em;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    box-shadow: 6px 6px 0 #ff6b35;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .place-order:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 #ff6b35;
  }
  .place-order-fine {
    margin-top: 14px;
    font-size: 12px;
    color: #6b6b6b;
    text-align: center;
    line-height: 1.5;
  }
  .place-order-fine a { color: #ff6b35; font-weight: 700; text-decoration: underline; }

  /* ========== ORDER SUMMARY (right column) ========== */
  .order-summary {
    position: sticky; top: 24px;
    background: #fff;
    border: 3px solid #1a1a1a;
    border-radius: 24px;
    padding: 24px;
  }
  .summary-toggle {
    display: none;
    width: 100%;
    padding: 14px 18px;
    background: #1a1a1a; color: #ff6b35;
    border-radius: 14px;
    font-size: 14px; font-weight: 800;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0;
  }
  .summary-toggle.shown { display: flex; }
  .summary-toggle iconify-icon { font-size: 18px; }
  .summary-h {
    font-size: 18px; font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 2px dashed #e0d8c8;
    display: flex; align-items: center; justify-content: space-between;
  }
  .summary-h .edit-link {
    font-size: 12px; font-weight: 700;
    color: #6b6b6b;
    text-decoration: underline;
  }
  .summary-h .edit-link:hover { color: #ff6b35; }

  /* Compact line items */
  .summary-lines { margin-bottom: 16px; }
  .summary-line {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    padding: 10px 0;
    align-items: center;
  }
  .summary-line + .summary-line { border-top: 1px dashed #f0e8d8; }
  .sl-img {
    width: 56px; height: 56px;
    border-radius: 10px;
    border: 2px solid #1a1a1a;
    background-size: cover; background-position: center;
    position: relative;
  }
  .sl-qty {
    position: absolute;
    top: -6px; right: -6px;
    background: #1a1a1a; color: #ff6b35;
    width: 20px; height: 20px;
    border-radius: 50%;
    font-size: 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
  }
  .sl-info { min-width: 0; }
  .sl-name {
    font-size: 14px; font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 2px;
  }
  .sl-meta {
    font-size: 11px;
    color: #6b6b6b;
    line-height: 1.3;
  }
  .sl-price {
    font-size: 14px; font-weight: 800;
    text-align: right;
  }

  /* Discount input */
  .discount-row {
    display: flex; gap: 8px;
    padding: 14px 0;
    border-top: 2px dashed #e0d8c8;
    border-bottom: 2px dashed #e0d8c8;
  }
  .discount-row input {
    flex: 1;
    height: 42px;
    padding: 0 14px;
    background: #fff;
    border: 2px solid #1a1a1a;
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    outline: none;
  }
  .discount-row input::placeholder { color: #b0b0b0; letter-spacing: 0; text-transform: none; font-weight: 500; }
  .discount-row input:focus { border-color: #ff6b35; }
  .discount-row button {
    padding: 0 18px;
    background: #1a1a1a; color: #ff6b35;
    border-radius: 10px;
    font-size: 12px; font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .discount-row button:hover { background: #ff6b35; color: #1a1a1a; }

  /* Totals */
  .totals { padding: 14px 0; }
  .total-row {
    display: flex; justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
  }
  .total-row.shipping.free { color: #1f5d3f; font-weight: 700; }
  .grand-total {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid #1a1a1a;
  }
  .grand-total .label {
    font-size: 14px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.05em;
  }
  .grand-total .val {
    font-size: 28px; font-weight: 900;
    letter-spacing: -0.03em;
  }

  /* Trust micro-row */
  .summary-trust {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px dashed #e0d8c8;
    text-align: center;
    font-size: 11px;
    color: #6b6b6b;
    line-height: 1.6;
  }
  .summary-trust div { display: inline-flex; align-items: center; gap: 4px; margin: 2px 8px; }
  .summary-trust iconify-icon { color: #1f5d3f; font-size: 14px; }

  /* Responsive */
  
  @media (max-width: 820px) { .nav-links { display: none; } }
@media (max-width: 1024px) {
    .checkout-layout {
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
      padding: 24px 22px 60px;
    }
    .checkout-layout > * { min-width: 0; }
    .order-summary {
      position: static;
      margin-bottom: 20px;
      order: -1;
    }
    .summary-toggle { display: flex; }
    .summary-content {
      display: none;
      padding-top: 16px;
    }
    .summary-content.open { display: block; }
    .payment-tabs { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 640px) {
    .checkout-header-inner { flex-direction: column; gap: 12px; }
    .form-row { grid-template-columns: 1fr; }
    .form-row.three { grid-template-columns: 1fr 1fr; }
    .form-section { padding: 22px; }
    .payment-tabs { grid-template-columns: 1fr 1fr; gap: 8px; }
    .pay-tab { font-size: 12px; padding: 12px 4px; }
    .pay-method-steps { margin-left: 18px; }
    .pay-method-steps li { font-size: 13px; }
  }

  /* =========== MOBILE TAP TARGETS (Apple/Google min 44x44) =========== */
  @media (max-width: 768px) {
    button:not(.hamburger-line):not(.mbb-qty button),
    .btn-primary, .btn-secondary,
    .quick-add, .bundle-cta, .vault-cta,
    .apply-submit, .add-btn,
    .nav-icons a, .md-foot-btn,
    .help-cta-btn {
      min-height: 44px;
    }
    /* Larger touch target on small icons */
    .nav-icons iconify-icon { padding: 8px; }
    /* Avoid iOS zoom on form-field focus by ensuring 16px font-size */
    input, select, textarea { font-size: 16px !important; }
  }

  
  /* === Responsive nav — keep horizontal links visible at half-screen widths === */
  /* Universal: prevent nav items from wrapping or shrinking weirdly */
  .nav-links a {
    font-size: 14px; font-weight: 700;
    color: #1a1a1a;
    padding: 6px 10px;
    border-radius: 980px;
    transition: background 0.2s;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 4px;
    min-width: 100px;
    text-align: center;
    box-sizing: border-box;
  }
  /* Narrower laptops: drop min-width so 6 items fit comfortably with sidebar icons */
  @media (max-width: 1200px) {
    .nav-links { gap: 8px; }
    .nav-links a { min-width: 0; padding: 6px 10px; }
  }
  .logo, .nav-icons { flex-shrink: 0; }
  .nav-links { flex-wrap: nowrap; min-width: 0; }

  /* Tier 1: medium screens (981-1200px) — slight compression */
  @media (max-width: 1200px) {
    .nav-links { gap: 16px; }
    .nav-links a { padding: 6px 11px; font-size: 13.5px; }
    .nav-inner { padding: 14px 24px; }
    .logo-name { font-size: 18px; }
    .nav-icons { gap: 12px; }
    .cart-btn { padding: 9px 14px; font-size: 13px; }
  }

  /* Tier 2: narrow desktops & half-screens (821-980px) — aggressive compression */
  @media (max-width: 980px) {
    .nav-inner { padding: 12px 18px; gap: 8px; }
    .nav-links { gap: 4px; }
    .nav-links a { padding: 5px 8px; font-size: 12.5px; }
    .nav-trigger .nav-caret { font-size: 10px; margin-left: 2px; }
    .logo { padding: 6px 14px; }
    .logo-name { font-size: 16px; }
    .logo-tag { font-size: 7.5px; letter-spacing: 0.14em; }
    .nav-icons { gap: 6px; }
    /* Cart button: icon + count only (hide "Bag" label) */
    .cart-btn { padding: 8px 12px; font-size: 0; gap: 6px; }
    .cart-btn iconify-icon { font-size: 18px; }
    .cart-count { font-size: 11px; min-width: 18px; height: 18px; padding: 0 4px; }
    /* Hide the search icon — rarely used, makes room */
    .nav-icons > iconify-icon:first-child { display: none; }
    /* Dropdown: align to right edge so it doesn't overflow on narrow screens */
    .nav-item.has-dropdown:last-of-type .nav-dropdown,
    .nav-item.has-dropdown:nth-last-of-type(2) .nav-dropdown {
      left: auto; right: 0; transform: translateY(-10px);
    }
    .nav-item.has-dropdown:last-of-type:hover .nav-dropdown,
    .nav-item.has-dropdown:nth-last-of-type(2):hover .nav-dropdown {
      transform: translateY(0);
    }
    .nav-item.has-dropdown:last-of-type .nav-dropdown::after,
    .nav-item.has-dropdown:nth-last-of-type(2) .nav-dropdown::after {
      left: auto; right: 26px; transform: rotate(45deg);
    }
  }

/* ============== SHOP DROPDOWN: 3-COLUMN MEGA-MENU (Category + Feel + More) ============== */
.nav-dropdown.nav-dropdown-mega {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
  min-width: 480px;
  padding: 18px;
  align-items: start;
  /* Override base .nav-dropdown centering — anchor to left of trigger so wide panel stays on-screen */
  left: 0;
  transform: translateX(0) translateY(-10px);
}
.nav-item.has-dropdown:hover .nav-dropdown.nav-dropdown-mega,
.nav-item.has-dropdown:focus-within .nav-dropdown.nav-dropdown-mega {
  transform: translateX(0) translateY(0);
}
.nav-dropdown.nav-dropdown-mega::after {
  /* Arrow tip aligned with Shop trigger center instead of dropdown center */
  left: 32px;
  transform: rotate(45deg);
}
.nav-dropdown.nav-dropdown-mega .dd-col {
  display: flex;
  flex-direction: column;
}
.nav-dropdown.nav-dropdown-mega .dd-col-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #6b6b6b;
  padding: 0 12px 8px;
  text-transform: uppercase;
  border-bottom: 1px dashed #d8d2c4;
  margin-bottom: 6px;
}
.nav-dropdown.nav-dropdown-mega .dd-item { padding: 8px 12px; }
.nav-dropdown.nav-dropdown-mega .dd-item .dd-title { font-size: 13px; }
.nav-dropdown.nav-dropdown-mega .dd-item .dd-sub { font-size: 11px; }

  /* ====================================================================
     Accessibility: respect prefers-reduced-motion (WCAG 2.3.3)
     ==================================================================== */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
    .promo-track {
      animation: none !important;
      transform: translateX(0) !important;
    }
    .reveal {
      opacity: 1 !important;
      transform: none !important;
    }
  }

  /* ====================================================================
     iPhone SE / older Android (320-380px) — narrowest-width polish
     ==================================================================== */
  @media (max-width: 380px) {
    .checkout-layout { padding: 18px 14px 48px; }
    .form-section { padding: 18px; }
    .form-row.three { grid-template-columns: 1fr 1fr; gap: 8px; }
    .payment-tabs { grid-template-columns: 1fr; gap: 6px; }
    .pay-tab { font-size: 13px; padding: 11px 8px; }
    .pay-method-steps { margin-left: 14px; }
    .pay-method-steps li { font-size: 12px; }
    .checkout-header-inner { padding: 10px 14px; }
  }


  /* === Logo image override (replaces .logo-stack text mark) === */
  .logo {
    background: transparent !important;
    padding: 0 !important;
    clip-path: none !important;
    color: inherit !important;
    transition: transform 0.2s;
  }
  .logo:hover { background: transparent !important; transform: translateY(-1px); }
  .logo-img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 200px;
  }
  /* Footer logo: invert to light variant on dark background */
  .footer-brand .logo-img {
    filter: brightness(0) invert(1);
    opacity: 0.95;
  }
  @media (max-width: 768px) {
    .logo-img { height: 44px; max-width: 170px; }
  }
  @media (max-width: 480px) {
    .logo-img { height: 38px; max-width: 140px; }
  }


  /* ====================================================================
     MOBILE E-COMMERCE NORMALIZATION (standard phone patterns)
     ==================================================================== */

  /* ≤640px (phone) — 2-col product grids, tighter cards, compact hero */
  @media (max-width: 640px) {
    /* Product grids — 2 columns (standard e-comm on phone, NOT single col) */
    .products-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 10px !important;
    }
    /* Product cards — compact, tighter */
    .product-card {
      border-radius: 14px !important;
      border-width: 2px !important;
    }
    .product-image {
      height: 130px !important;
    }
    .product-body {
      padding: 10px !important;
    }
    .product-category {
      font-size: 10px !important;
      margin-bottom: 2px !important;
    }
    .product-name {
      font-size: 13px !important;
      margin-bottom: 2px !important;
      line-height: 1.15 !important;
    }
    .product-meta {
      font-size: 10px !important;
      margin-bottom: 4px !important;
    }
    .product-meta > span {
      font-size: 10px !important;
    }
    .product-rating {
      font-size: 10px !important;
    }
    .product-price {
      font-size: 14px !important;
    }
    .quick-add,
    .related-card-add {
      font-size: 11px !important;
      padding: 5px 8px !important;
    }
    .product-footer {
      gap: 4px !important;
    }
    .product-badge {
      font-size: 9px !important;
      padding: 3px 7px !important;
      top: 6px !important;
      left: 6px !important;
    }
    .product-fav {
      top: 6px !important;
      right: 6px !important;
    }
    /* Section padding — tighter */
    section {
      padding: 32px 14px !important;
    }
    /* Page-hero — tighter */
    .page-hero,
    .contact-hero,
    .about-hero,
    .bundles-hero,
    .faq-hero,
    .reviews-hero,
    .rewards-hero,
    .category-hero,
    .post-hero,
    .blog-hero {
      padding: 28px 16px 16px !important;
    }
    /* Headlines slightly tighter on mobile but readable */
    .page-hero h1,
    .contact-hero h1,
    .about-hero h1,
    .bundles-hero h1,
    .faq-hero h1,
    .reviews-hero h1,
    .rewards-hero h1,
    .category-hero h1,
    .post-hero h1,
    .blog-hero h1 {
      font-size: clamp(28px, 9vw, 42px) !important;
    }
    /* Buttons — bigger tap targets, full-ish width */
    .btn-primary,
    .btn-secondary,
    .vault-cta,
    .hero-cta-primary,
    .welcome-cta {
      padding: 12px 18px !important;
      font-size: 14px !important;
    }
    /* Container padding */
    .container {
      padding-left: 14px !important;
      padding-right: 14px !important;
    }
  }

  /* ≤480px (small phone) — even tighter */
  @media (max-width: 480px) {
    .product-image { height: 110px !important; }
    .product-name { font-size: 12px !important; }
    .product-price { font-size: 13px !important; }
    section { padding: 28px 12px !important; }
  }

  /* ≤380px (iPhone SE) — minimum sane */
  @media (max-width: 380px) {
    .products-grid {
      gap: 8px !important;
    }
    .product-image { height: 95px !important; }
    .product-body { padding: 8px !important; }
    .product-name { font-size: 11px !important; }
    .product-price { font-size: 12px !important; }
  }


  /* Checkout-specific mobile layout */
  @media (max-width: 768px) {
    .checkout-layout {
      grid-template-columns: 1fr !important;
      gap: 16px !important;
      padding: 18px 12px !important;
    }
    .order-summary {
      position: static !important;
      order: -1 !important;
      margin-bottom: 12px !important;
    }
    .form-section { padding: 16px !important; }
    .form-row { grid-template-columns: 1fr !important; }
    .form-row.three { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
    .payment-tabs {
      grid-template-columns: 1fr 1fr !important;
      gap: 8px !important;
    }
    .pay-tab {
      padding: 10px 6px !important;
      font-size: 12px !important;
    }
    .checkout-header-inner {
      flex-direction: column !important;
      gap: 8px !important;
      padding: 10px 14px !important;
    }
  }

/* ==========================================================================
   Shopify-style mobile normalization (appended for site-wide consistency)
   - 2-col product grids on phone (not 1-col)
   - 44px+ tap targets
   - Horizontal-scroll rails for related products / category chips / trust badges
   - Single-col forms on small screens
   - No emoji-only headings; readable type at small sizes
   ========================================================================== */
@media (max-width: 768px) {
  .products-grid,
  .product-grid,
  .related-grid,
  .related-products,
  .you-may-also-like { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .collections-grid,
  .categories-grid,
  .feel-grid,
  .effects-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .bundle-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 36px !important; }
  /* Horizontal scroll rails — trust badges, category chips, related products on PDP */
  .badge-rail,
  .chip-rail,
  .pill-rail,
  .filter-chips,
  .trust-marquee,
  .category-chips {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 10px !important;
    padding: 4px 22px 8px !important;
    margin: 0 -22px !important;
    scroll-snap-type: x mandatory !important;
  }
  .badge-rail::-webkit-scrollbar,
  .chip-rail::-webkit-scrollbar,
  .pill-rail::-webkit-scrollbar,
  .filter-chips::-webkit-scrollbar,
  .trust-marquee::-webkit-scrollbar,
  .category-chips::-webkit-scrollbar { display: none !important; }
}
@media (max-width: 640px) {
  section { padding: 40px 22px !important; }
  .nav-inner { padding: 14px 20px !important; }
  /* Tap targets — Shopify minimum is 44px */
  .btn-primary,
  .btn-secondary,
  .btn,
  button[type="submit"],
  .add-to-cart,
  .cta { min-height: 44px !important; padding: 12px 18px !important; }
  /* Product cards on phone — Shopify style */
  .product-card { border-radius: 14px !important; border-width: 2px !important; }
  .product-image,
  .product-thumb { height: 130px !important; }
  .product-body { padding: 10px !important; }
  .product-name,
  .product-title { font-size: 13px !important; line-height: 1.3 !important; }
  .product-price { font-size: 14px !important; }
  /* Single-col forms on phone */
  .form-grid,
  .form-row,
  .checkout-grid,
  .cart-grid,
  .account-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  /* Headings — keep readable on phone */
  h1, .h1 { font-size: clamp(28px, 8vw, 40px) !important; line-height: 1.05 !important; }
  h2, .h2 { font-size: clamp(22px, 6.5vw, 32px) !important; line-height: 1.1 !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  /* Hero CTAs stack full-width on phone */
  .hero-ctas,
  .cta-group { flex-direction: column !important; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary,
  .cta-group .btn { width: 100% !important; justify-content: center !important; }
}

/* ====================================================================
   PROMO BAR — ONE horizontal line on every viewport (no marquee, no wrap)
   Overrides the old auto-scroll animation. Long copy on desktop, short on phone.
   ==================================================================== */
.promo-bar {
  padding: 10px 12px !important;
  overflow: hidden !important;
}
.promo-track {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 24px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  width: auto !important;
  max-width: 1400px;
  margin: 0 auto !important;
  animation: none !important;
}
.promo-track > span,
.promo-track > a { flex-shrink: 0 !important; }
.promo-track .short { display: none; }
.promo-track .long { display: inline; }
@media (max-width: 820px) {
  .promo-bar { padding: 8px 10px !important; font-size: 11px !important; }
  .promo-track { gap: 14px !important; }
  .promo-track .promo-highlight { padding: 2px 8px !important; font-size: 11px !important; }
  .promo-track .short { display: inline; }
  .promo-track .long { display: none; }
}
@media (max-width: 480px) {
  .promo-bar { padding: 7px 6px !important; font-size: 10px !important; }
  /* Tightened: gap 10→7 + highlight pad 7→5 to fit all 3 items in 390px viewport */
  .promo-track { gap: 7px !important; overflow: hidden !important; max-width: 100% !important; }
  .promo-track .promo-highlight { padding: 2px 6px !important; font-size: 10px !important; }
  .promo-track iconify-icon { font-size: 11px !important; }
}
@media (max-width: 380px) {
  .promo-bar { padding: 6px 6px !important; font-size: 9px !important; }
  .promo-track { gap: 7px !important; }
  .promo-track .promo-highlight { padding: 2px 6px !important; font-size: 9px !important; }
}

/* MOBILE-OVERFLOW-GUARD */
@media (max-width: 820px) {
  html, body { overflow-x: hidden !important; }
}

/* ============================================================
   V3 — SUBSTITUTION PREFERENCE (checkout step 4)
   Customer chooses upfront what to do if anything goes OOS
   between cart and pack. Three radio cards: substitute / credit / hold.
   Visual pattern mirrors .ship-option above.
   ============================================================ */
.sub-pref-intro {
  font-size: 14px;
  line-height: 1.55;
  color: #4a4a4a;
  margin: 0 0 16px;
  max-width: 560px;
}
.sub-pref-intro strong {
  color: #1a1a1a;
  font-weight: 800;
}

.sub-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 10px;
}
.sub-option:hover {
  background: #fff8ef;
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 #1a1a1a;
}
.sub-option:focus-visible {
  outline: 3px solid #ff6b35;
  outline-offset: 2px;
}
.sub-option.selected {
  background: #1f5d3f;
  color: #fcfaf4;
  border-color: #1a1a1a;
  box-shadow: 4px 4px 0 #1a1a1a;
}
.sub-option-radio {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  background: #fcfaf4;
  flex-shrink: 0;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.sub-option.selected .sub-option-radio {
  border-color: #ff6b35;
  background: #fcfaf4;
}
.sub-option.selected .sub-option-radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #ff6b35;
}
.sub-option-info { flex: 1; min-width: 0; }
.sub-option-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: inherit;
  margin-bottom: 4px;
}
.sub-option-meta {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(74, 74, 74, 0.95);
}
.sub-option.selected .sub-option-meta {
  color: rgba(252, 250, 244, 0.82);
}
.sub-option-tag {
  background: #ff6b35;
  color: #1a1a1a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid #1a1a1a;
  flex-shrink: 0;
  white-space: nowrap;
  transform: rotate(2deg);
}
.sub-option.selected .sub-option-tag {
  background: #ff6b35;
  color: #1a1a1a;
}

.sub-pref-foot {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff8ef;
  border: 1px dashed #1a1a1a;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #4a4a4a;
}
.sub-pref-foot iconify-icon {
  color: #1f5d3f;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 640px) {
  .sub-option { padding: 14px 14px; gap: 12px; }
  .sub-option-name { font-size: 14px; }
  .sub-option-meta { font-size: 12px; }
  .sub-option-tag { font-size: 9px; padding: 3px 8px; }
}
