/* Visual language = archive storefront; no stock OpenCart / Bootstrap skin */
@import url("ichiban-storefront.css");

#container {
  position: relative !important;
  min-height: 100vh !important;
  margin-bottom: 0 !important;
  background: #000 !important;
  color: #fff;
}

body {
  background: #000 !important;
  font-family: "Roboto", Arial, sans-serif !important;
  margin: 0;
}

.oc-hide,
#wishlist-total,
#compare-total,
#button-list,
#button-grid,
header.oc-stock-header,
nav#menu.navbar,
.product-thumb,
.breadcrumb {
  display: none !important;
}

/* Checkout form = mockup fields */
.checkout-page .checkout-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.checkout-page .checkout-form label,
.checkout-form-label {
  display: grid;
  gap: 0.35rem;
  color: #fff;
  font-size: 0.92rem;
}

.checkout-page .checkout-form input,
.checkout-page .checkout-form textarea,
.checkout-page .checkout-form select,
.checkout-form-label textarea,
.checkout-method__value {
  width: 100%;
  box-sizing: border-box;
  background: #111 !important;
  border: 1px solid #2a2a2a !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 0.75rem 0.9rem !important;
  font: inherit;
}

.checkout-page .checkout-form input.is-invalid,
.checkout-page .checkout-form textarea.is-invalid,
.checkout-method__value.is-invalid {
  border-color: #f92222 !important;
}

.checkout-method {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid #2a2a2a;
}

.checkout-method h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.checkout-method__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: center;
}

.checkout-confirm {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #2a2a2a;
}

.checkout-confirm__pay {
  margin-top: 1rem;
}

.checkout-cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #2a2a2a;
}

.checkout-confirm .checkout-cart-line {
  grid-template-columns: 1fr auto;
}

.checkout-cart-line img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #111;
}

.checkout-cart-line__name {
  font-weight: 700;
}

.checkout-cart-line__meta {
  color: #bcbcbc;
  font-size: 0.86rem;
}

.checkout-cart-line__price {
  font-weight: 700;
  white-space: nowrap;
}

.check-row {
  display: flex !important;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.55rem 0;
  cursor: pointer;
}

.check-row input {
  width: auto !important;
  margin-top: 0.2rem;
}

.invalid-feedback {
  display: none;
  color: #ff6b6b;
  font-size: 0.82rem;
}

.invalid-feedback.d-block {
  display: block;
}

.d-none {
  display: none !important;
}

/* Alerts without Bootstrap look */
#alert {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 120;
  width: min(360px, calc(100vw - 2rem));
  display: grid;
  gap: 0.5rem;
}

.alert {
  background: #141414;
  border: 1px solid #2a2a2a;
  color: #fff;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.alert-danger {
  border-color: #f92222;
}

.alert-success {
  border-color: #2f9e44;
}

/* OC modal chrome restyled to mockup dark cards */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1055;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.modal.show,
.modal.fade.show,
.ib-oc-modal {
  display: block !important;
}

.modal-dialog {
  position: relative;
  width: min(520px, calc(100% - 2rem));
  margin: 8vh auto;
  z-index: 2;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 4rem);
}

.modal-content {
  position: relative;
  background: #0a0a0a !important;
  color: #fff !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 12px !important;
  padding: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 0.4rem;
  border: 0;
}

.modal-title {
  margin: 0;
  font-size: 1.15rem;
}

.modal-body {
  padding: 0.6rem 1.1rem 1.2rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.72);
}

.btn-close {
  appearance: none;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #1a1a1a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-width='1.6' d='M3 3l10 10M13 3L3 13'/%3E%3C/svg%3E") center/0.9rem no-repeat;
  opacity: 0.85;
  cursor: pointer;
}

/* Keep archive product/address overlays working vs any leftover .modal rules */
.overlay .modal,
.overlay.is-open .modal {
  display: block !important;
  position: relative !important;
  inset: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #0a0a0a;
  z-index: auto;
}

.overlay.is-open .modal--product {
  display: flex !important;
}

.ib-contacts a,
.ib-success-message a {
  color: #f92222;
}

.ib-success-message {
  color: #ddd;
  line-height: 1.55;
}

/* Utility buttons used by OC snippets mapped to mockup */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #f92222 !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  padding: 0.7rem 1.15rem !important;
  font: inherit;
  cursor: pointer;
}

.btn-light,
.btn-secondary,
.btn-outline-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 999px !important;
  color: #fff !important;
  padding: 0.7rem 1.15rem !important;
  font: inherit;
  cursor: pointer;
}
