/* Quick Order Modal + Product card dual actions */
:root {
  --aq-qo-navy: #1b3a2f;
  --aq-qo-gold: #c4a574;
  --aq-qo-line: #e8e2d9;
  --aq-qo-muted: #6b635a;
  --aq-qo-bg: #f7f3ee;
}

/* Product card actions */
.aq-product-actions--dual {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}
.aq-product-actions--dual .aq-buy-form {
  margin: 0;
  display: block;
}
.aq-product-actions--dual .aq-btn-buy,
.aq-product-actions--dual .aq-btn-order {
  width: 100%;
  min-height: 38px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  padding: 8px 6px;
  transition: .2s ease;
}
.aq-product-actions--dual .aq-btn-buy {
  background: var(--aq-qo-navy);
  color: #fff;
}
.aq-product-actions--dual .aq-btn-buy:hover { background: #143028; color: #fff; }
.aq-product-actions--dual .aq-btn-order {
  background: transparent;
  color: var(--aq-qo-navy);
  border: 1.5px solid var(--aq-qo-gold);
  box-shadow: inset 0 0 0 1px rgba(196,165,116,.25);
}
.aq-product-actions--dual .aq-btn-order:hover {
  background: var(--aq-qo-gold);
  color: #1a1a1a;
  border-color: var(--aq-qo-gold);
}

@media (max-width: 380px) {
  .aq-product-actions--dual {
    grid-template-columns: 1fr;
  }
  .aq-product-actions--dual .aq-btn-buy,
  .aq-product-actions--dual .aq-btn-order {
    min-height: 40px;
    font-size: 11px;
    white-space: normal;
    line-height: 1.2;
    padding: 8px 6px;
  }
}

/* Modal shell */
.aq-qo[hidden] { display: none !important; }
.aq-qo {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.aq-qo__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 22, .55);
}
.aq-qo__sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 96vh;
  background: #fff;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -12px 40px rgba(0,0,0,.2);
  animation: aqQoUp .28s ease;
}
@keyframes aqQoUp {
  from { transform: translateY(24px); opacity: .6; }
  to { transform: translateY(0); opacity: 1; }
}
.aq-qo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--aq-qo-line);
  background: #fff;
  flex-shrink: 0;
}
.aq-qo__head h2 {
  margin: 0;
  font-size: 18px;
  color: var(--aq-qo-navy);
  letter-spacing: .03em;
}
.aq-qo__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--aq-qo-bg);
  color: var(--aq-qo-navy);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.aq-qo__body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 110px;
  overscroll-behavior: contain;
}
.aq-qo__loading {
  text-align: center;
  padding: 40px 10px;
  color: var(--aq-qo-muted);
}

.aq-qo-product {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.aq-qo-product img {
  width: 88px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--aq-qo-line);
  background: var(--aq-qo-bg);
}
.aq-qo-product h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--aq-qo-navy);
  line-height: 1.35;
}
.aq-qo-price .now {
  font-size: 18px;
  font-weight: 700;
  color: var(--aq-qo-navy);
}
.aq-qo-price .was {
  margin-left: 8px;
  text-decoration: line-through;
  color: var(--aq-qo-muted);
  font-size: 13px;
}

.aq-qo-section {
  margin: 16px 0;
  padding-top: 12px;
  border-top: 1px solid var(--aq-qo-line);
}
.aq-qo-section h4 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--aq-qo-navy);
}
.aq-qo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.aq-qo-chip {
  min-width: 48px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--aq-qo-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: var(--aq-qo-navy);
}
.aq-qo-chip.is-active {
  border-color: var(--aq-qo-navy);
  background: #eef4f0;
}
.aq-qo-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--aq-qo-line);
  border-radius: 10px;
  overflow: hidden;
}
.aq-qo-qty button {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--aq-qo-bg);
  font-size: 18px;
  cursor: pointer;
}
.aq-qo-qty input {
  width: 56px;
  height: 44px;
  border: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.aq-qo-field { margin-bottom: 12px; }
.aq-qo-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--aq-qo-navy);
}
.aq-qo-field input,
.aq-qo-field textarea,
.aq-qo-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--aq-qo-line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  background: #fff;
}
.aq-qo-field textarea { min-height: 84px; resize: vertical; }

.aq-qo-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--aq-qo-line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  background: #faf8f5;
}
.aq-qo-opt.is-active { border-color: var(--aq-qo-navy); background: #eef4f0; }
.aq-qo-opt input { margin-right: 8px; }

.aq-qo-summary div {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  color: var(--aq-qo-muted);
  font-size: 14px;
}
.aq-qo-summary .grand {
  color: var(--aq-qo-navy);
  font-weight: 700;
  font-size: 17px;
  border-top: 2px solid var(--aq-qo-navy);
  margin-top: 6px;
  padding-top: 10px;
}

.aq-qo__foot {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--aq-qo-line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -6px 20px rgba(0,0,0,.06);
}
.aq-qo__foot .total strong {
  font-size: 18px;
  color: var(--aq-qo-navy);
}
.aq-qo-confirm {
  border: 0;
  background: var(--aq-qo-navy);
  color: #fff;
  border-radius: 12px;
  min-height: 48px;
  padding: 0 18px;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  white-space: nowrap;
}
.aq-qo-confirm[disabled] { opacity: .65; cursor: wait; }
.aq-qo-error {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 14px;
  display: none;
}
.aq-qo-error.is-visible { display: block; }

.aq-qo-success {
  text-align: center;
  padding: 18px 8px 24px;
}
.aq-qo-success .check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--aq-qo-navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 10px;
}
.aq-qo-success h3 { color: var(--aq-qo-navy); margin: 0 0 8px; }
.aq-qo-success .meta {
  text-align: left;
  margin: 16px 0;
  border: 1px solid var(--aq-qo-line);
  border-radius: 12px;
  padding: 12px;
}
.aq-qo-success .meta div { margin-bottom: 8px; }
.aq-qo-success .actions {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.aq-qo-success .actions a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 14px; border-radius: 10px;
  text-decoration: none; font-weight: 600;
  background: var(--aq-qo-navy); color: #fff;
}
.aq-qo-success .actions a.ghost {
  background: #fff; color: var(--aq-qo-navy); border: 1px solid var(--aq-qo-navy);
}

body.aq-qo-open {
  overflow: hidden !important;
  touch-action: none;
}

/* PDP Order Now button beside Buy Now */
.aq-pdp-actions .aq-btn-order {
  background: transparent;
  color: var(--aq-qo-navy);
  border: 1.5px solid var(--aq-qo-gold);
  border-radius: 12px;
  min-height: 48px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
}
.aq-pdp-actions .aq-btn-order:hover {
  background: var(--aq-qo-gold);
  color: #1a1a1a;
}

@media (min-width: 768px) {
  .aq-qo {
    align-items: center;
    padding: 24px;
  }
  .aq-qo__sheet {
    border-radius: 16px;
    max-height: 90vh;
  }
  .aq-qo__body { padding-bottom: 100px; }
}
