/* CatLotBuilder v1.3 - CSS intentionally specific/aggressive for themes that override grids/buttons */
body .catlotbuilder,
#content .catlotbuilder,
#wrapper .catlotbuilder {
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto 110px auto !important;
  padding: 15px !important;
  box-sizing: border-box !important;
  color: #111 !important;
}

body .catlotbuilder * {
  box-sizing: border-box !important;
}

body .catlotbuilder-header {
  text-align: center !important;
  margin: 0 0 22px 0 !important;
  padding: 0 !important;
}
body .catlotbuilder-header h1 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

body .catlotbuilder-offer {
  display: block !important;
  width: 100% !important;
  margin: 0 0 18px 0 !important;
  padding: 12px 16px !important;
  background: #fff !important;
  border: 2px solid #111 !important;
  border-left: 8px solid #e30613 !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}
body .catlotbuilder-offer p { margin: 0 0 4px 0 !important; }
body .catlotbuilder-offer p:last-child { margin-bottom: 0 !important; }

body .catlotbuilder-form {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .catlotbuilder-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  clear: both !important;
  align-items: stretch !important;
}

body .catlotbuilder-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  background: #fff !important;
  border: 2px solid #e30613 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 5px 18px rgba(0,0,0,.07) !important;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease !important;
}
body .catlotbuilder-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.12) !important;
}
body .catlotbuilder-card.is-selected {
  border-color: #000000 !important;
  box-shadow: 0 0 0 4px rgba(227,6,19,.18), 0 10px 24px rgba(0,0,0,.12) !important;
}

body .catlotbuilder-card-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  padding: 18px !important;
  margin: 0 !important;
  background: #f5f5f5 !important;
  text-decoration: none !important;
}
body .catlotbuilder-card-image img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
body .catlotbuilder-noimage {
  display: block !important;
  color: #777 !important;
  font-size: 13px !important;
  text-align: center !important;
}

body .catlotbuilder-card-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 10px 12px 14px 12px !important;
  text-align: center !important;
  background: #fff !important;
}
body .catlotbuilder-card-name {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  width: 100% !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #111 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}
body .catlotbuilder-card-name:hover { text-decoration: none !important; }
body .catlotbuilder-card-price {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #e30613 !important;
  font-size: 17px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

body .catlotbuilder-qty {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 100% !important;
  margin: 2px 0 0 0 !important;
  padding: 0 !important;
}
body .catlotbuilder-qty input[type="number"] {
  display: block !important;
  width: 54px !important;
  min-width: 54px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 4px !important;
  background: #fff !important;
  border: 1px solid #d5d5d5 !important;
  border-radius: 10px !important;
  color: #111 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 36px !important;
  text-align: center !important;
  box-shadow: none !important;
  -moz-appearance: textfield !important;
}
body .catlotbuilder-qty input[type="number"]::-webkit-outer-spin-button,
body .catlotbuilder-qty input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
body .catlotbuilder-minus,
body .catlotbuilder-plus {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #e30613 !important;
  color: #fff !important;
  cursor: pointer !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  box-shadow: none !important;
  text-decoration: none !important;
  appearance: none !important;
}
body .catlotbuilder-minus:hover,
body .catlotbuilder-plus:hover,
body .catlotbuilder-minus:focus,
body .catlotbuilder-plus:focus {
  background: #b8000a !important;
  color: #fff !important;
  outline: none !important;
}

body .catlotbuilder-badge {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 2 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 29px !important;
  height: 29px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  background: #e30613 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 29px !important;
}
body .catlotbuilder-card.is-selected .catlotbuilder-badge { display: flex !important; }

body .catlotbuilder-summary {
  position: sticky !important;
  bottom: 10px !important;
  z-index: 999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 15px !important;
  width: 100% !important;
  margin: 24px 0 0 0 !important;
  padding: 14px 18px !important;
  background: rgba(255,255,255,.98) !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 18px !important;
  box-shadow: 0 -6px 28px rgba(0,0,0,.12) !important;
  backdrop-filter: blur(4px) !important;
}
body .catlotbuilder-summary-main {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
}
body .catlotbuilder-summary-main strong {
  color: #e30613 !important;
  font-size: 18px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
}
body .catlotbuilder-summary-amount {
  color: #e30613 !important;
  font-size: 30px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}
body .catlotbuilder-summary-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: wrap !important;
}
body .catlotbuilder-add,
body .catlotbuilder-cart-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 10px 22px !important;
  border-radius: 999px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
body .catlotbuilder-add {
  background: #e30613 !important;
  border-color: #e30613 !important;
  color: #fff !important;
}
body .catlotbuilder-cart-link {
  background: #f1f1f1 !important;
  border-color: #f1f1f1 !important;
  color: #111 !important;
}


body .catlotbuilder-minimum-notice {
  margin-top: 10px !important;
  padding-top: 8px !important;
  border-top: 1px solid #eeeeee !important;
  color: #111 !important;
}
body .catlotbuilder-minimum-notice strong {
  color: #e30613 !important;
}
body .catlotbuilder-min-status {
  display: block !important;
  margin-top: 4px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}
body .catlotbuilder-min-status.is-missing {
  color: #e30613 !important;
}
body .catlotbuilder-min-status.is-ok {
  color: #111 !important;
}
body .catlotbuilder-add[disabled],
body .catlotbuilder-add[aria-disabled="true"] {
  opacity: .45 !important;
  cursor: not-allowed !important;
  background: #777 !important;
  border-color: #777 !important;
  color: #fff !important;
  pointer-events: none !important;
}
body .catlotbuilder-card-image,
body .catlotbuilder-card-name {
  cursor: default !important;
  pointer-events: none !important;
}
body .catlotbuilder-add:hover:not([disabled]) {
  background: #b8000a !important;
  border-color: #b8000a !important;
}

@media (max-width: 1199px) {
  body .catlotbuilder-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 991px) {
  body .catlotbuilder-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px !important; }
}
@media (max-width: 767px) {
  body .catlotbuilder { padding: 10px !important; margin-bottom: 140px !important; }
  body .catlotbuilder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  body .catlotbuilder-card-image { padding: 12px !important; }
  body .catlotbuilder-card-body { padding: 9px 8px 12px 8px !important; }
  body .catlotbuilder-card-name { font-size: 12px !important; min-height: 33px !important; }
  body .catlotbuilder-card-price { font-size: 16px !important; }
  body .catlotbuilder-summary {
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    width: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 12px !important;
    gap: 10px !important;
  }
  body .catlotbuilder-summary-main { align-items: center !important; text-align: center !important; }
  body .catlotbuilder-summary-actions { justify-content: center !important; }
  body .catlotbuilder-add,
  body .catlotbuilder-cart-link { flex: 1 1 auto !important; min-width: 130px !important; padding-left: 12px !important; padding-right: 12px !important; }
}
@media (max-width: 380px) {
  body .catlotbuilder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 9px !important; }
  body .catlotbuilder-minus,
  body .catlotbuilder-plus { width: 32px !important; min-width: 32px !important; height: 32px !important; }
  body .catlotbuilder-qty input[type="number"] { width: 45px !important; min-width: 45px !important; height: 32px !important; line-height: 32px !important; }
}
