.c-header__quote {
  position: relative;
  color: #fff;
  margin-right: 1rem;
  display: none;
  align-items: center;
  transition: opacity 0.3s, transform 0.2s ease;
  text-decoration: none;
}
.c-header__quote:hover {
  color: #fff;
  opacity: 0.75;
  text-decoration: none;
}
.c-header__quote svg {
  display: block;
}
.c-header__quote .quote-count-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #fff;
  color: #309fcc;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.quote-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.quote-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.quote-modal-container {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 540px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s;
}
.is-open .quote-modal-container {
  transform: translateY(0);
}

.quote-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e5e5;
}
.quote-modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.quote-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #595959;
  line-height: 1;
  padding: 0;
}
.quote-modal-close:hover {
  color: #000;
}

.quote-modal-body {
  padding: 2rem;
}

.quote-product-list {
  margin-bottom: 1.5rem;
}

.quote-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #f5f5f5;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.quote-item-info {
  flex: 1;
  min-width: 0;
}
.quote-item-info strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quote-item-info .quote-item-sku {
  font-size: 0.8rem;
  color: #595959;
}

.quote-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.quote-item-quantity .qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.quote-item-quantity .qty-btn:hover {
  border-color: #309fcc;
  color: #309fcc;
}
.quote-item-quantity .qty-input {
  width: 44px;
  text-align: center;
  padding: 0.2rem;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  font-size: 0.875rem;
  -moz-appearance: textfield;
}
.quote-item-quantity .qty-input::-webkit-outer-spin-button, .quote-item-quantity .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quote-item-remove {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #595959;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}
.quote-item-remove:hover {
  color: #dc2626;
}

.quote-empty {
  text-align: center;
  color: #595959;
  padding: 2rem;
  background: #f5f5f5;
  border-radius: 6px;
}

.quote-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.quote-form .form-group {
  margin-bottom: 1rem;
}
.quote-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #fff;
  color: #000;
  height: auto;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: #309fcc;
  box-shadow: 0 0 0 3px rgba(48, 159, 204, 0.1);
}
.quote-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23595959' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.quote-form .quote-submit {
  width: 100%;
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 2rem;
  background: #309fcc;
  color: #fff;
  border: 2px solid #309fcc;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
}
.quote-form .quote-submit:hover {
  background: rgb(38.2857142857, 126.8214285714, 162.7142857143);
  border-color: rgb(38.2857142857, 126.8214285714, 162.7142857143);
}
.quote-form .quote-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.submit-loading {
  display: none;
}

.quote-success {
  display: none;
  text-align: center;
  padding: 2rem 0;
}
.quote-success .success-icon {
  width: 60px;
  height: 60px;
  background: #22c55e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}
.quote-success h4 {
  margin-bottom: 0.5rem;
}
.quote-success p {
  color: #595959;
}

.quote-add-product {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}
.quote-add-product > label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
}
.quote-add-product .product-search-wrapper {
  display: flex;
  gap: 0.5rem;
}
.quote-add-product .product-select {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 2.5rem 0.625rem 0.75rem;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
  background-color: #fff;
  color: #000;
  height: auto;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23595959' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  cursor: pointer;
}
.quote-add-product .product-select:focus {
  outline: none;
  border-color: #309fcc;
  box-shadow: 0 0 0 3px rgba(48, 159, 204, 0.1);
}
.quote-add-product .add-product-btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background: transparent;
  color: #309fcc;
  border: 2px solid #309fcc;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.quote-add-product .add-product-btn:hover {
  background: #309fcc;
  color: #fff;
}

@media (max-width: 480px) {
  .quote-form .form-row {
    grid-template-columns: 1fr;
  }
  .quote-item {
    flex-wrap: wrap;
  }
  .quote-item .quote-item-info {
    width: 100%;
    flex: none;
  }
  .quote-add-product .product-search-wrapper {
    flex-direction: column;
  }
  .quote-add-product .product-search-wrapper .add-product-btn {
    width: 100%;
  }
  .quote-modal-body {
    padding: 1.5rem;
  }
  .quote-modal-header {
    padding: 1.25rem 1.5rem;
  }
}
