* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f3f5f7;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  margin-bottom: 20px;
}

.card {
  background: white;
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 20px;
}

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

input,
select,
button {
  width: 100%;
  padding: 14px;
  font-size: 18px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

button {
  background: #000000;
  color: white;
  font-weight: bold;
  border: none;
}

button:active {
  transform: scale(.98);
}

.product {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px;
  margin-bottom: 10px;

  border: 1px solid #ddd;
  border-radius: 5px;
}

.qtyControls {
  display: flex;
  gap: 8px;
}

.qtyControls button {
  width: 60px;
}

.cartRow {
  display: flex;
  justify-content: space-between;

  margin-bottom: 10px;
}

.totalArea {
  margin-top: 20px;
}

.hidden {
  display: none;
}

.wizard-progress {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.wizard-step {
  flex: 1;
  background: #dce4eb;
  border-radius: 5px;
  padding: 12px;
  text-align: center;
  font-weight: 600;
}

.wizard-step.active {
  background: #000000;
  color: white;
}

.wizard-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.wizard-next {
  margin-top: 20px;
}

#productSearch{

  margin-top:10px;
  margin-bottom:0;

}

#products{

  display:grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(240px,1fr)
    );

  gap:12px;

  width:100%;

}

.product {
  min-height: 80px;
}

.qtyControls button {
  height: 60px;
  width: 60px;
  font-size: 24px;
}

#submitBtn {
  height: 80px;
  font-size: 24px;
}

.dealer-card {
  border: 2px solid #dce4eb;
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 15px;
  cursor: pointer;
  background: white;
}

.dealer-card.selected {
  border: 4px solid #000000;
  background: #dcecff;
}

.dealer-premium {
  display: inline-block;
  background: #ffb000;
  color: black;
  font-size: 12px;
  font-weight: 700;
  border-radius: 5px;
  padding: 4px 8px;
  margin-bottom: 10px;
}

.dealer-company {
  font-size: 22px;
  font-weight: 700;
}

.dealer-address {
  color: #666;
  margin-top: 8px;
}

.dealer-email {
  margin-top: 8px;
  font-size: 14px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 18px;
}

.checkbox-row input {
  width: auto;
}

#signaturePad {
  width: 100%;
  height: 250px;
  background: white;
  border: 2px solid #ddd;
  border-radius: 5px;
  margin-bottom: 15px;
  touch-action: none;
}

#clearSignatureBtn {
  margin-bottom: 20px;
}

.summary-card {
  background: #f8f9fb;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 15px;
}

.summary-title {
  font-weight: bold;
  margin-bottom: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.summary-total {
  font-size: 24px;
  font-weight: bold;
  color: #000000;
}

.products-column {
  min-width: 0;
}

@media (max-width: 1024px) {

  .products-layout {
    grid-template-columns: 1fr;
  }

  .cart-column {
    min-width: auto;
  }

  .sticky-cart {
    position: static;
  }

}

.cartRow {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.cartRow:last-child {
  border-bottom: 0;
}

.signature-error {
  background: #ffe5e5;
  color: #b00020;
  border: 1px solid #ffb3b3;
  border-radius: 5px;
  padding: 12px;
  margin-bottom: 15px;
  font-weight: 600;
}

.logo {
  max-width: 260px;
  margin-bottom: 30px;
}

.header {
  border-bottom: 2px solid #000000;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.product-card{

  background:#fff;

  border:1px solid #d9dfe5;

  border-radius:5px;

  padding:16px;

  margin-bottom:12px;

  display:flex;
  flex-direction:column;

  min-height:190px;

}

.offer-card{

  background:#ffb900;

  border:1px solid #e0a400;

}

.offer-card .product-header{

  font-size:20px;
  font-weight:700;

  line-height:1.2;

  margin-bottom:6px;

}

.offer-card .product-price{
  color:#111;
  font-weight:700;
}

.product-header{
  font-size:22px;
  font-weight:600;
  margin-bottom:8px;
}

.product-sku{

  font-size:13px;

  color:#666;

  margin-bottom:12px;

}

.price-rrp{

  font-size:14px;

  color:#555;

  text-decoration:line-through;

}

.price-offer{

  font-size:28px;

  font-weight:700;

}

.price-normal{

  font-size:28px;

  font-weight:700;

}

.product-price{

  margin-bottom:auto;
}

.product-controls{

  display:flex;

  align-items:center;

  justify-content:center;

  gap:16px;

  margin-top:16px;

}

.qty-btn{

  width:50px;

  height:50px;

  border-radius:5px;

  font-size:24px;

}

.qty-display{

  min-width:40px;

  text-align:center;

  font-size:22px;

  font-weight:700;

}

#categoryButtons{

  display:flex;

  flex-wrap:nowrap;

  gap:12px;

  width:100%;

  overflow-x:auto;
  overflow-y:hidden;

  margin-bottom:20px;

  padding-bottom:8px;

  -webkit-overflow-scrolling:touch;

  scrollbar-width:none;

}

#categoryButtons::-webkit-scrollbar{
  display:none;
}

.category-btn{

  width:auto !important;

  flex:0 0 auto;

  display:flex;
  align-items:center;
  justify-content:center;

  height:54px;

  padding:0 24px;

  border:none;
  border-radius:5px;

  background:#dfe5eb;
  color:#000000;

  font-size:18px;
  font-weight:600;

  cursor:pointer;

}

.category-btn.active{

  background:#000000;
  color:white;
}

#categoryButtons{

  position:sticky;
  top:0;

  z-index:50;

  background:white;

  padding-top:10px;
  padding-bottom:10px;

}

.cart-drawer{

  position:fixed;

  left:0;
  right:0;
  bottom:0;

  background:#fff;

  border-top:1px solid #ddd;

  z-index:9999;

  box-shadow:
    0 -2px 10px rgba(0,0,0,.1);

}

.cart-drawer-header{

  display:flex;

  justify-content:space-between;
  align-items:center;

  padding:18px;

  cursor:pointer;

  font-weight:700;

}

.cart-drawer-content{

  padding:20px;

  max-height:40vh;

  overflow:auto;

}

.cart-drawer-total{

  margin-top:16px;

  font-size:22px;
  font-weight:700;

}

#cartDrawerArrow{

  font-size:20px;

}

.cartRow{

  padding:12px 0;

  border-bottom:1px solid #eee;

}

.cartRowInfo{

  display:flex;

  justify-content:space-between;

  margin-bottom:10px;

}

.cartRowName{

  font-weight:600;

}

.cartRowQty{

  display:flex;

  align-items:center;

  gap:12px;

}

.cartQtyBtn{

  width:40px !important;

  height:40px;

  padding:0;

  border-radius:5px;

}

.products-toolbar{

  position:sticky;

  top:0;

  z-index:100;

  background:white;

  padding-top:10px;
  padding-bottom:10px;

  margin-bottom:15px;

  border-bottom:1px solid #eee;

}