*,
*::before,
*::after {
  box-sizing: border-box;
}

body.v2-body {
  margin: 0;
  font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f8fb;
  color: #333;
  padding-bottom: 80px;
}

.v2-slider {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .v2-slider .carousel-indicators.hidden-sm-down {
    display: none;
  }
}

@media (max-width: 767px) {
  .v2-slider .carousel-control-prev.hidden-sm-down,
  .v2-slider .carousel-control-next.hidden-sm-down {
    display: none;
  }
}

.v2-app {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px 24px;
}

.v2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.v2-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.v2-header__brand h1 {
  margin: 0;
  font-size: 1.4rem;
  color: #009ee2;
}

.v2-header__brand p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

.v2-header__logo {
  width: 40px;
  height: 40px;
}

.v2-header__link {
  font-size: 0.85rem;
  color: #009ee2;
  text-decoration: none;
}

.v2-header__link:hover {
  text-decoration: underline;
}

.v2-stepper {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.v2-stepper::-webkit-scrollbar {
  display: none;
}

.v2-stepper__item {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  border: 2px solid #ddd;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.v2-stepper__item:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.v2-stepper__item.is-active {
  border-color: #009ee2;
  background: rgba(0, 158, 226, 0.08);
}

.v2-stepper__item.is-done {
  border-color: #0081c2;
}

.v2-stepper__item.is-done .v2-stepper__num {
  background: #0081c2;
  color: #fff;
}

.v2-stepper__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #b2b2b2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.v2-stepper__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.v2-stepper__label small {
  display: block;
  font-weight: 400;
  color: #888;
}

.v2-layout {
  display: grid;
  gap: 20px;
}

@media (min-width: 1024px) {
  .v2-layout {
    grid-template-columns: 1fr 380px;
    align-items: start;
  }
}

.v2-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.v2-step {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.v2-step__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.v2-step__header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.v2-step__badge {
  background: #009ee2;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.v2-step__grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .v2-step__grid--2 {
    grid-template-columns: 1fr auto 1fr;
  }
}

@media (min-width: 768px) {
  .v2-step__grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.v2-step__divider {
  display: none;
}

@media (min-width: 768px) {
  .v2-step__divider {
    display: block;
    width: 1px;
    background: #ddd;
  }
}

.v2-help {
  margin-bottom: 16px;
}

.v2-help__summary {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #555;
}

.v2-help__toggle {
  background: none;
  border: none;
  color: #009ee2;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
}

.v2-help__detail {
  margin-top: 8px;
  padding: 12px;
  background: #f0f7fc;
  border-radius: 8px;
  font-size: 0.85rem;
}

.v2-help__detail ul {
  margin: 0;
  padding-left: 18px;
}

.v2-help__detail p {
  margin: 0;
}

.v2-cat-group__title {
  color: #009ee2;
  font-size: 0.85rem;
  margin: 0 0 8px;
  letter-spacing: 0.5px;
}

.v2-cat-group__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.v2-cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  min-height: 90px;
  padding: 12px 8px;
  border: 2px solid #ddd;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.v2-cat-btn:hover:not(:disabled) {
  border-color: #009ee2;
  background: rgba(0, 158, 226, 0.05);
}

.v2-cat-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.v2-cat-btn.is-selected {
  background: #0081c2;
  border-color: #0081c2;
  color: #fff;
}

.v2-cat-btn.is-selected .v2-cat-btn__label {
  color: #fff;
}

.v2-cat-btn__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 6px;
}

.v2-cat-btn__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #444;
  text-align: center;
}

@media (max-width: 480px) {
  .v2-cat-btn {
    min-width: calc(50% - 10px);
    flex: 1 1 calc(50% - 10px);
  }
}

.v2-summary {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 20px;
  position: sticky;
  top: 16px;
}

.v2-summary__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f5;
}

.v2-summary__header h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #222;
}

.v2-summary__count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #009ee2;
  background: rgba(0, 158, 226, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
}

.v2-summary__empty {
  text-align: center;
  padding: 32px 16px;
  background: #f8fbfd;
  border-radius: 10px;
  border: 1px dashed #d0e8f5;
  margin-bottom: 16px;
}

.v2-summary__empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.6;
}

.v2-summary__empty p {
  margin: 0;
  color: #888;
  font-size: 0.875rem;
  line-height: 1.5;
}

.v2-summary__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 2px;
}

.v2-summary__list::-webkit-scrollbar {
  width: 4px;
}

.v2-summary__list::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

.v2-summary__cta {
  display: none;
}

@media (min-width: 1024px) {
  .v2-summary__cta {
    display: block;
    margin-top: 16px;
  }
}

.v2-summary__clear {
  display: none;
  margin-top: 10px;
}

@media (min-width: 1024px) {
  .v2-summary__clear {
    display: inline-flex;
  }
}

.v2-summary__saved-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #256;
  background: #eef9f0;
  border: 1px solid #c8e6cc;
  border-radius: 8px;
}

.v2-summary__persist-hint {
  display: none;
  margin: 12px 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #999;
  text-align: center;
}

@media (min-width: 1024px) {
  .v2-summary__persist-hint {
    display: block;
  }
}

.v2-slot {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 36px 12px 12px;
  border-radius: 10px;
  border: 1px solid #e8eef3;
  background: #fafcfd;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.v2-slot.is-filled {
  background: #fff;
}

.v2-slot.is-filled:hover {
  border-color: rgba(0, 158, 226, 0.35);
  box-shadow: 0 2px 12px rgba(0, 158, 226, 0.08);
}

.v2-slot__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: #f5f5f5;
  color: #999;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  padding: 0;
  z-index: 2;
}

.v2-slot__remove:hover {
  background: #fee;
  color: #e74c3c;
  transform: scale(1.05);
}

.v2-slot__remove:active {
  transform: scale(0.95);
}

.v2-slot__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 6px;
  border: 1px solid #eef2f5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.v2-slot__thumb:hover {
  border-color: #009ee2;
}

.v2-slot__thumb img {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.v2-slot__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.v2-slot__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #009ee2;
  background: rgba(0, 158, 226, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 2px;
}

.v2-slot__title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v2-slot__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 8px;
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: #777;
}

.v2-slot__meta dt {
  margin: 0;
  font-weight: 600;
  color: #999;
}

.v2-slot__meta dd {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-slot__price {
  margin: 6px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #009ee2;
}

.v2-totals {
  border-top: 2px dotted #009ee2;
  padding-top: 12px;
}

.v2-totals__row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.9rem;
}

.v2-totals__row--total {
  font-size: 1.1rem;
  font-weight: 700;
  color: #009ee2;
  border-top: 1px solid #eee;
  padding-top: 8px;
  margin-top: 4px;
}

.v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  text-decoration: none;
}

.v2-btn--primary {
  background: #009ee2;
  color: #fff;
}

.v2-btn--primary:hover {
  background: #0081c2;
}

.v2-btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.v2-btn--ghost {
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
}

.v2-btn--ghost:hover {
  background: #f5f5f5;
}

.v2-btn--danger {
  background: transparent;
  color: #c0392b;
  border: 1px solid #f0c4c0;
}

.v2-btn--danger:hover {
  background: #fdf3f2;
  border-color: #e8a8a3;
}

.v2-btn--block {
  width: 100%;
}

.v2-sticky-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 12px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
  .v2-sticky-bar {
    display: none;
  }
}

.v2-sticky-bar__total small {
  display: block;
  font-size: 0.7rem;
  color: #888;
}

.v2-sticky-bar__total strong {
  font-size: 1.2rem;
  color: #009ee2;
}

.v2-sticky-bar .v2-btn {
  flex-shrink: 0;
  padding: 12px 20px;
}

.v2-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.v2-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.v2-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.v2-modal__dialog--sm {
  max-width: 400px;
}

.v2-modal__dialog--lg {
  max-width: 800px;
}

.v2-modal__dialog--pdf {
  max-width: 900px;
}

.v2-modal__dialog--image {
  max-width: 90vw;
  background: transparent;
  box-shadow: none;
}

.v2-modal__dialog--image img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
}

.v2-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.v2-modal__header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.v2-modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 4px 8px;
}

.v2-modal__body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.v2-modal__body--pdf {
  padding: 0;
}

.v2-modal__body--pdf iframe {
  width: 100%;
  height: min(80vh, 600px);
  border: none;
}

.v2-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid #eee;
  justify-content: flex-end;
}

.v2-modal__disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
  padding: 14px 20px;
  border-top: 1px solid #d6ebf9;
  background: linear-gradient(180deg, #f4faff 0%, #eef7fd 100%);
  border-radius: 0 0 12px 12px;
}

.v2-modal__disclaimer-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 158, 226, 0.12);
  color: #009ee2;
}

.v2-modal__disclaimer-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #445;
}

.v2-modal__disclaimer-text strong {
  color: #234;
  font-weight: 700;
}

@media (max-width: 576px) {
  .v2-modal__disclaimer-text {
    font-size: 0.78rem;
  }
}

.v2-modal__search {
  margin-bottom: 16px;
}

.v2-modal__search input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.v2-modal__search input:focus {
  outline: none;
  border-color: #009ee2;
  box-shadow: 0 0 0 3px rgba(0, 158, 226, 0.15);
}

.v2-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 576px) {
  .v2-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .v2-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.v2-product-card {
  position: relative;
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.2s;
}

.v2-product-card:hover {
  border-color: #009ee2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.v2-product-card img {
  width: 100%;
  height: 160px;
  -o-object-fit: contain;
     object-fit: contain;
  margin-bottom: 8px;
}

.v2-product-card__price {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #009ee2;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.v2-product-card__code {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #009ee2;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.v2-product-card__line {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.v2-product-card__name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  line-height: 1.35;
}

.v2-form__row {
  display: grid;
  gap: 12px;
}

@media (min-width: 576px) {
  .v2-form__row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.v2-form__row {
  margin-bottom: 12px;
}

.v2-form__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.v2-form__field label {
  font-size: 0.85rem;
  font-weight: 600;
}

.v2-form__field input,
.v2-form__field select,
.v2-form__field textarea {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.v2-form__field input:focus,
.v2-form__field select:focus,
.v2-form__field textarea:focus {
  outline: none;
  border-color: #009ee2;
  box-shadow: 0 0 0 3px rgba(0, 158, 226, 0.15);
}

.v2-form__field input.is-invalid,
.v2-form__field select.is-invalid,
.v2-form__field textarea.is-invalid {
  border-color: #e74c3c;
}

.v2-form__error {
  color: #e74c3c;
  font-size: 0.8rem;
}

.v2-form__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

@media (max-width: 576px) {
  .v2-form__footer .v2-btn {
    flex: 1 1 100%;
  }
}

.v2-proforma-summary {
  background: #f0f7fc;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.v2-proforma-summary h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.v2-proforma-summary ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.v2-proforma-summary ul li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.85rem;
}

.v2-proforma-summary__total {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  font-weight: 700;
  color: #009ee2;
}

.v2-loading {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.v2-loading img {
  width: 80px;
}

.v2-loading span {
  color: #fff;
  font-weight: 600;
}

.v2-alert {
  padding: 24px;
  text-align: center;
}

.v2-alert p {
  margin: 0 0 16px;
}

.v2-alert--success p {
  color: #27ae60;
}

.v2-alert--error p {
  color: #e74c3c;
}

.v2-alert--info p {
  color: #333;
}

.v2-empty {
  text-align: center;
  padding: 24px;
}

.v2-empty img {
  max-width: 200px;
  margin-bottom: 12px;
}

.v2-empty p {
  color: #888;
}

.v2-footer {
  text-align: center;
  padding: 24px 0;
  font-size: 0.8rem;
  color: #888;
}

