﻿/* Business Center — page commande */
.page-business-commande {
  --bco: #FF4500;
  --bco-dark: #E03E00;
  --bco-soft: #FFF5F0;
  --bco-bg: #F7F7F7;
  --bco-border: #E8E8E8;
  --bco-text: #1A1A1A;
  --bco-muted: #5F6B64;
}

.bco-page { color: var(--bco-text); background: var(--bco-bg); padding-bottom: 3rem; }

.bco-page .container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.bco-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--bco-border);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 40;
}

.bco-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.bco-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.bco-brand-ico {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: var(--bco);
  color: #fff;
  display: grid;
  place-items: center;
  position: relative;
}

.bco-brand-ico .fa-globe {
  position: absolute;
  font-size: 0.65rem;
  bottom: 6px;
  right: 6px;
}

.bco-brand strong {
  display: block;
  color: var(--bco);
  font-size: 0.95rem;
}

.bco-brand small {
  display: block;
  color: var(--bco-muted);
  font-size: 0.75rem;
}

.bco-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bco-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--bco-muted);
  font-size: 0.9rem;
}

.bco-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bco);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.bco-wrap { padding-top: 1.25rem; }

.bco-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--bco);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.bco-wrap > h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1.5rem;
}

.bco-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: start;
}

.bco-product {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid var(--bco-border);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.bco-product-media {
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--bco-soft), #fff);
  display: grid;
  place-items: center;
  color: var(--bco);
  font-size: 3rem;
}

.bco-product-info h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.bco-origin {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--bco-muted);
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.bco-origin img {
  width: 18px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

.bco-price {
  color: var(--bco);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.bco-specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.bco-specs li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--bco-muted);
}

.bco-specs i { color: var(--bco); margin-top: 0.2rem; }

.bco-block {
  background: #ffffff;
  border: 1px solid var(--bco-border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.bco-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.bco-help, .bco-hint {
  color: var(--bco-muted);
  font-size: 0.85rem;
  margin: 0 0 0.65rem;
}

.bco-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--bco-border);
  border-radius: 10px;
  overflow: hidden;
}

.bco-qty button {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: var(--bco-soft);
  color: var(--bco-dark);
  font-size: 1.2rem;
  cursor: pointer;
}

.bco-qty input {
  width: 3.2rem;
  height: 2.4rem;
  border: 0;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
}

.bco-block textarea {
  width: 100%;
  border: 1px solid var(--bco-border);
  border-radius: 10px;
  padding: 0.75rem;
  resize: vertical;
  font: inherit;
  min-height: 110px;
}

.bco-block textarea:focus,
.bco-field input:focus,
.bco-field select:focus {
  outline: 2px solid rgba(27, 122, 78, 0.25);
  border-color: var(--bco);
}

.bco-counter {
  text-align: right;
  font-size: 0.8rem;
  color: var(--bco-muted);
  margin-top: 0.35rem;
}

.bco-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.bco-photo-add {
  width: 110px;
  height: 110px;
  border: 2px dashed var(--bco-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--bco-muted);
  cursor: pointer;
  text-align: center;
  font-size: 0.75rem;
  background: #fafcfa;
}

.bco-photo-add:hover { border-color: var(--bco); color: var(--bco); }

.bco-photo-thumb {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--bco-border);
}

.bco-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bco-photo-thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
  font-size: 0.7rem;
}

.bco-card {
  background: #ffffff;
  border: 1px solid var(--bco-border);
  border-radius: 14px;
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.bco-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
}

.bco-field { margin-bottom: 0.85rem; }

.bco-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.bco-field label span { color: #c62828; }
.bco-field label em { font-style: normal; color: var(--bco-muted); font-weight: 400; }

.bco-field input,
.bco-field select {
  width: 100%;
  border: 1px solid var(--bco-border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #ffffff;
}

.bco-phone {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--bco-border);
  border-radius: 10px;
  overflow: hidden;
}

.bco-phone-code {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.75rem;
  background: var(--bco-soft);
  color: var(--bco-dark);
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.88rem;
}

.bco-phone-code img {
  width: 18px;
  height: 12px;
  object-fit: cover;
}

.bco-phone input {
  border: 0 !important;
  border-radius: 0 !important;
}

.bco-modes {
  display: grid;
  gap: 0.65rem;
}

.bco-mode {
  text-align: left;
  border: 2px solid var(--bco-border);
  background: #ffffff;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
}

.bco-mode i {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--bco);
  font-size: 1.25rem;
}

.bco-mode strong { font-size: 0.95rem; }
.bco-mode span { color: var(--bco-muted); font-size: 0.82rem; }

.bco-mode.is-active {
  border-color: var(--bco);
  background: var(--bco-soft);
}

.bco-pay-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.bco-pay-opt {
  border: 2px solid var(--bco-border);
  border-radius: 10px;
  padding: 0.7rem 0.45rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  position: relative;
}

.bco-pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bco-pay-opt i { color: var(--bco); font-size: 1.15rem; }
.bco-pay-opt small { color: var(--bco-muted); }
.bco-pay-opt.is-active { border-color: var(--bco); background: var(--bco-soft); }

.bco-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.bco-summary .bco-sum-line,
.bco-sum-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  font-size: 0.92rem;
}

.bco-sum-total {
  border-top: 1px solid var(--bco-border);
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  font-size: 1.05rem;
}

.bco-sum-total strong { color: var(--bco); font-size: 1.15rem; }

.bco-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.bco-btn-outline {
  border: 1.5px solid var(--bco);
  color: var(--bco);
  background: #ffffff;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.bco-btn-solid {
  border: 0;
  background: var(--bco);
  color: #fff;
  border-radius: 10px;
  padding: 0.75rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.bco-btn-solid:hover { background: var(--bco-dark); }

.bco-actions .bco-btn-solid { flex: 1 1 220px; justify-content: center; }

.bco-success {
  background: #ffffff;
  border: 1px solid var(--bco-border);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
}

.bco-success-ico {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--bco-soft);
  color: var(--bco);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.bco-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--bco-border);
  border-radius: 14px;
  color: var(--bco-muted);
  font-size: 0.9rem;
}

.bco-trust i { color: var(--bco); margin-right: 0.35rem; }

@media (max-width: 900px) {
  .bco-layout { grid-template-columns: 1fr; }
  .bco-pay-methods { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .bco-product { grid-template-columns: 1fr; }
  .bco-product-media { max-width: 180px; margin: 0 auto; }
  .bco-form-row { grid-template-columns: 1fr; }
}
