/* Quote cart + mini-cart (Woo-style, ends in Request a Quote) */

button.header__cart-btn,
.header__cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: 50%;
  background: transparent;
  color: #111111;
  cursor: pointer;
  padding: 0;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

button.header__cart-btn:hover,
.header__cart-btn:hover {
  border-color: var(--color-accent, #ffd74d);
  color: #111111;
  background: rgba(255, 215, 77, 0.15);
}

.header__cart-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
  overflow: visible;
  color: inherit;
}

.header__cart-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header__cart-icon circle {
  fill: currentColor;
  stroke: none;
}

.header__cart-count {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  z-index: 1;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--color-accent, #ffd74d);
  color: #111;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.header--scrolled button.header__cart-btn,
.header--scrolled .header__cart-btn,
.header--menu-open button.header__cart-btn,
.header--menu-open .header__cart-btn {
  border-color: rgba(255, 255, 255, 0.65);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.header--scrolled button.header__cart-btn:hover,
.header--scrolled .header__cart-btn:hover,
.header--menu-open button.header__cart-btn:hover,
.header--menu-open .header__cart-btn:hover {
  border-color: var(--color-accent, #ffd74d);
  color: var(--color-accent, #ffd74d);
  background: rgba(255, 215, 77, 0.12);
}

.header--scrolled .header__cart-count,
.header--menu-open .header__cart-count {
  box-shadow: 0 0 0 2px #111;
}

body[data-page="home"] .header:not(.header--scrolled):not(.header--menu-open) button.header__cart-btn,
body[data-page="home"] .header:not(.header--scrolled):not(.header--menu-open) .header__cart-btn {
  border-color: rgba(255, 255, 255, 0.65);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

body[data-page="home"] .header:not(.header--scrolled):not(.header--menu-open) button.header__cart-btn:hover,
body[data-page="home"] .header:not(.header--scrolled):not(.header--menu-open) .header__cart-btn:hover {
  border-color: var(--color-accent, #ffd74d);
  color: var(--color-accent, #ffd74d);
  background: rgba(255, 215, 77, 0.12);
}

body[data-page="home"] .header:not(.header--scrolled):not(.header--menu-open) .header__cart-count {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.quote-mini-cart[hidden] {
  display: none !important;
}

.quote-mini-cart {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.quote-mini-cart__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.quote-mini-cart__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(24rem, 100%);
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.12);
}

.quote-mini-cart__header,
.quote-mini-cart__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--color-border, #e5e5e5);
}

.quote-mini-cart__footer {
  flex-direction: column;
  border-bottom: 0;
  border-top: 1px solid var(--color-border, #e5e5e5);
}

.quote-mini-cart__title {
  margin: 0;
  font-size: 1.05rem;
}

.quote-mini-cart__close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.quote-mini-cart__body {
  flex: 1;
  overflow: auto;
  padding: 1rem;
}

.quote-cart__lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.875rem;
}

.quote-cart__line {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.quote-cart__thumb {
  display: block;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border, #e5e5e5);
  background: #f7f7f7;
}

.quote-cart__thumb img {
  display: block;
  width: 100%;
  height: 4.5rem;
  object-fit: cover;
}

.quote-cart__name {
  display: block;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

.quote-cart__meta,
.quote-cart__qty-label,
.quote-cart__empty {
  margin: 0.25rem 0 0;
  color: var(--color-text-muted, #666);
  font-size: 0.85rem;
}

.quote-cart__qty-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.quote-cart__qty {
  width: 4.5rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: 0.4rem;
  font: inherit;
}

.quote-cart__remove {
  border: 1px solid #f3c1c1;
  background: #fff;
  color: #b42318;
  border-radius: 0.4rem;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
}

.quote-cart__remove--link {
  border: none;
  background: transparent;
  padding: 0;
  text-decoration: underline;
}

.add-to-quote {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
}

.add-to-quote--box {
  justify-content: center;
}

.add-to-quote__qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: 0.55rem;
  overflow: hidden;
  background: #fff;
  height: 2.75rem;
}

.add-to-quote__qty-btn {
  width: 2.4rem;
  border: 0;
  background: #f5f5f5;
  color: #111;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.add-to-quote__qty-btn:hover {
  background: #ececec;
}

.add-to-quote__qty-input {
  width: 3.25rem;
  border: 0;
  border-left: 1px solid var(--color-border, #e5e5e5);
  border-right: 1px solid var(--color-border, #e5e5e5);
  text-align: center;
  font: inherit;
  font-weight: 700;
  color: #111;
  background: #fff;
  -moz-appearance: textfield;
  appearance: textfield;
}

.add-to-quote__qty-input::-webkit-outer-spin-button,
.add-to-quote__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.add-to-quote--primary .btn {
  min-height: 2.75rem;
}

.quote-cart-page {
  padding: calc(var(--header-h, 72px) + 2rem) 0 4rem;
}

.quote-cart-page__header {
  margin-bottom: 1.75rem;
}

.quote-cart-page__title {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.quote-cart-page__lead {
  margin: 0;
  color: var(--color-text-muted, #666);
}

.quote-cart-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
  gap: 1.5rem;
  align-items: start;
}

.quote-cart-page__card {
  padding: 1.25rem;
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: 0.875rem;
  background: #fff;
}

.quote-cart-page__card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.quote-cart-page__note {
  color: var(--color-text-muted, #666);
  font-size: 0.9rem;
}

.quote-cart-page__card .btn {
  margin-top: 0.65rem;
}

.quote-cart-page__card .btn.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.quote-form__cart-note {
  margin: 0 0 1rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.5rem;
  background: #f7f7f7;
  font-size: 0.9rem;
}

.quote-form__section {
  margin: 0 0 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border, #e6e6e6);
}

.quote-form__section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.quote-form__section-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text, #111);
}

.quote-form__section-lead {
  margin: -0.35rem 0 0.85rem;
  color: var(--color-text-muted, #666);
  font-size: 0.88rem;
  line-height: 1.5;
}

.quote-form__submit-note {
  margin: 0.85rem 0 0;
  color: var(--color-text-muted, #666);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.5;
}

.quote-checkout-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.65rem;
  background: var(--color-bg-muted, #f6f6f6);
  border: 1px solid var(--color-border, #e6e6e6);
}

.quote-checkout-note p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-muted, #555);
}

/* ——— WooCommerce-style Checkout ——— */
.quote-page--checkout {
  background: #fff;
  padding-bottom: 4rem;
}

.quote-page--checkout .quote-page__header--woo {
  text-align: left;
  max-width: 1120px;
  margin: 0 auto 1.75rem;
}

.quote-page--checkout .quote-page__title {
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0.35rem 0 0;
  letter-spacing: -0.02em;
  text-align: left;
}

.woo-checkout-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: #777;
}

.woo-checkout-breadcrumb a {
  color: #111;
  text-decoration: none;
  font-weight: 600;
}

.woo-checkout-breadcrumb a:hover {
  text-decoration: underline;
}

.woo-checkout-breadcrumb .is-current {
  color: #111;
  font-weight: 700;
}

.quote-page--checkout .quote-page__grid,
.quote-page--checkout .quote-page__grid--checkout {
  max-width: 1120px;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.quote-page--checkout .quote-page__card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.quote-form--checkout {
  padding: 0;
}

.checkout-form-head {
  margin: 0 0 1rem;
  padding: 0 0 0.65rem;
  border-bottom: 2px solid #111;
}

.checkout-form-head--compact {
  margin-bottom: 1rem;
}

.checkout-form-head__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
}

.quote-form__row {
  display: grid;
  gap: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}

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

.quote-form__row .form-group {
  margin-bottom: 0;
}

.quote-form__optional {
  font-weight: 500;
  color: #888;
  font-size: 0.85em;
}

.quote-form--checkout .form-group {
  margin-bottom: 0.85rem;
}

.quote-form--checkout .form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
}

.quote-form--checkout .form-group label .required {
  color: #b32d2e;
  text-decoration: none;
  margin-left: 0.15rem;
}

.quote-form--checkout .form-group input,
.quote-form--checkout .form-group select,
.quote-form--checkout .form-group textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  background: #fff;
  font: inherit;
  color: #111;
}

.quote-form--checkout .form-group input:focus,
.quote-form--checkout .form-group select:focus,
.quote-form--checkout .form-group textarea:focus {
  border-color: #111;
  outline: none;
  box-shadow: 0 0 0 1px #111;
}

.quote-form__more {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e5e5e5;
  border-radius: 3px;
  background: #fafafa;
}

.quote-form__more > summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
  list-style: none;
}

.quote-form__more > summary::-webkit-details-marker {
  display: none;
}

.quote-form__more[open] > summary {
  margin-bottom: 0.75rem;
}

.woo-place-order {
  margin-top: 0.5rem !important;
  min-height: 3rem;
  border-radius: 3px !important;
  font-size: 1rem;
  font-weight: 700;
}

.quote-form--checkout .quote-form__submit-note {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: #666;
  text-align: left;
}

.woo-order-review {
  background: #f7f7f7 !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 3px !important;
  padding: 1.25rem 1.15rem !important;
  position: sticky;
  top: calc(var(--header-h) + var(--admin-bar-h) + 1rem);
}

.woo-order-review__title {
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #111;
  font-size: 1.15rem;
  font-weight: 700;
}

.woo-order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.woo-order-table th,
.woo-order-table td {
  padding: 0.75rem 0.35rem;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
  text-align: left;
}

.woo-order-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
  font-weight: 700;
}

.woo-order-table__qty {
  text-align: right !important;
  width: 3.5rem;
  white-space: nowrap;
}

.woo-order-table__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.woo-order-table__thumb {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border: 1px solid #e5e5e5;
  background: #fff;
  display: block;
  overflow: hidden;
}

.woo-order-table__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.woo-order-table__name {
  color: #111;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}

.woo-order-table__name:hover {
  text-decoration: underline;
}

.woo-order-table__meta {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: #777;
}

.woo-order-table tfoot th,
.woo-order-table tfoot td {
  border-bottom: 0;
  padding-top: 0.85rem;
  font-size: 0.92rem;
}

.woo-order-table__total th,
.woo-order-table__total td {
  font-size: 1rem;
  font-weight: 700;
  padding-top: 0.95rem;
  border-top: 2px solid #111;
}

.woo-order-review__edit {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
}

.woo-order-review__edit a {
  color: #111;
  font-weight: 600;
  text-decoration: underline;
}

.woo-order-review__note {
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #666;
}

@media (max-width: 640px) {
  .quote-form__row--2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .quote-page--checkout .quote-page__grid,
  .quote-page--checkout .quote-page__grid--checkout {
    grid-template-columns: 1fr;
    max-width: 40rem;
  }

  .woo-order-review {
    position: static;
  }

  .quote-page--checkout .quote-page__header--woo {
    text-align: left;
  }
}

.quote-card__items {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  color: var(--color-text-muted, #666);
  font-size: 0.9rem;
}

.quote-cart-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 1300;
  transform: translateX(-50%) translateY(1rem);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.875rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.quote-cart-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.quote-mini-cart-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .quote-cart-page__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .add-to-quote {
    flex-direction: column;
    align-items: stretch;
  }

  .add-to-quote .btn {
    width: 100%;
  }
}
