*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; color: #111; background: #fff; font-size: 16px; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Preloader ── */
#page-preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.4s ease;
}
#page-preloader.hidden {
  opacity: 0;
  pointer-events: none;
}
.preloader-logo {
  font-size: 1.5rem;
  font-weight: 800;
  font-style: italic;
  color: #111;
  letter-spacing: -0.5px;
}
.preloader-logo span { color: #111111; }
.preloader-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #f0f0f0;
  border-top-color: #111111;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.preloader-text {
  font-size: 0.78rem;
  color: #888;
  letter-spacing: 0.04em;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Announcement Bar ── */
.announcement-bar {
  background: #111111;
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Header ── */
.site-header {
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-logo {
  font-size: 1.3rem;
  font-weight: 800;
  font-style: italic;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #ff006a 0%, #a855f7 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-logo__icon {
  width: 28px; height: 28px;
  background: #111111;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.site-logo__icon svg { width: 18px; height: 18px; fill: #fff; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.site-nav a {
  font-size: 0.8rem;
  color: #222;
  padding: 6px 10px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 3px;
}
.site-nav a:hover { color: #111111; }
.site-nav a .caret { font-size: 0.55rem; color: #aaa; }
.header-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.header-icons a {
  color: #333;
  display: flex;
  align-items: center;
  position: relative;
}
.header-icons svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute;
  top: -5px; right: -7px;
  background: #111111;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── Page Width ── */
.page-width { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Product Layout ── */
.product-section {
  max-width: 800px;
  margin: 28px auto 48px;
  padding: 0 20px;
}

/* ── Gallery ── */
.product-gallery__main {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #111;
  margin-bottom: 8px;
  position: relative;
}
.product-gallery__main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}
.gallery-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none; cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.gallery-arrow--left { left: 10px; }
.gallery-arrow--right { right: 10px; }
.gallery-arrow:hover { background: #fff; }
.product-gallery__thumbs {
  display: flex;
  gap: 6px;
}
.thumb {
  width: 70px; height: 70px;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: #111;
  transition: border-color 0.15s;
}
.thumb.active { border-color: #111111; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Product Info ── */
.product-breadcrumb {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 6px;
}
.product-title {
  font-size: 1.8rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 10px;
  color: #000000;
}
.product-price {
  font-size: 1rem;
  font-weight: 500;
  color: #111;
  margin-bottom: 5px;
}
.shop-pay-line {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.shop-pay-logo {
  background: #5a31f4;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.shop-pay-line a { color: #5a31f4; text-decoration: underline; }

/* Section heading */
.info-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
  padding-top: 4px;
}
hr.divider { border: none; border-top: 1px solid #eee; margin: 18px 0; }

/* Color Preview */
.color-preview-wrap { margin-bottom: 20px; }
.color-preview-car {
  width: 100%;
  background: #fff;
  margin-bottom: 12px;
}
.car-img-wrap {
  position: relative;
  width: 100%;
  height: 42vw;
  min-height: 220px;
  max-height: 380px;
  overflow: hidden;
}
.car-slot {
  position: absolute;
  inset: 0;
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.car-slot.active {
  opacity: 1;
  pointer-events: auto;
}
.car-body-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  position: relative;
  z-index: 1;
}
.car-color-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  mix-blend-mode: multiply;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center bottom;
  mask-mode: alpha;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center bottom;
  -webkit-mask-mode: alpha;
  pointer-events: none;
}
#slot-car-sedan .car-color-overlay {
  mask-image: url('alwan-images/car-sedan.png');
  -webkit-mask-image: url('alwan-images/car-sedan.png');
}
#slot-car-sport .car-color-overlay {
  mask-image: url('alwan-images/car-sport.png');
  -webkit-mask-image: url('alwan-images/car-sport.png');
}
#slot-car-truck .car-color-overlay {
  mask-image: url('alwan-images/car-truck.png');
  -webkit-mask-image: url('alwan-images/car-truck.png');
}
#slot-car-suv .car-color-overlay {
  mask-image: url('alwan-images/car-suv.png');
  -webkit-mask-image: url('alwan-images/car-suv.png');
}
#slot-car-smallsuv .car-color-overlay {
  mask-image: url('alwan-images/car-smallsuv.png');
  -webkit-mask-image: url('alwan-images/car-smallsuv.png');
}
#slot-car-2door .car-color-overlay {
  mask-image: url('alwan-images/car-2door.png');
  -webkit-mask-image: url('alwan-images/car-2door.png');
}
.color-selects-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
.color-sel-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #444;
  display: block;
  margin-top: 6px;
}
select.color-sel {
  width: 100%;
  border: 1px solid #ccc;
  background: #fff;
  padding: 7px 28px 7px 10px;
  font-size: 0.78rem;
  color: #111;
  border-radius: 3px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 7L0 2h10z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  outline: none;
  cursor: pointer;
}
.color-note {
  font-size: 0.7rem;
  color: #777;
  line-height: 1.5;
}
.color-note a { color: #111111; text-decoration: underline; }

/* ── Custom Color Picker ── */
.cpicker { position: relative; }
.cpicker__btn {
  width: 100%; display: flex; align-items: center; gap: 8px;
  border: 1px solid #ccc; background: #fff; padding: 7px 10px;
  border-radius: 3px; cursor: pointer; font-family: inherit;
  font-size: 0.78rem; color: #111; text-align: left;
}
.cpicker__btn:hover { border-color: #111111; }
.cpicker__dot {
  width: 22px; height: 22px; border-radius: 3px; flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.12); display: inline-block;
}
.cpicker__val { flex: 1; font-family: monospace; font-size: 0.72rem; color: #444; }
.cpicker__arrow { font-size: 0.6rem; color: #999; }
.cpicker__panel {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  background: #fff; border: 1px solid #ddd; border-radius: 5px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.14); z-index: 600;
  max-height: 300px; overflow-y: auto; padding: 12px;
  min-width: 300px;
}
.cpicker__panel.is-open { display: block; }
.cpicker__category { margin-bottom: 10px; }
.cpicker__cat-name {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #999; margin-bottom: 5px;
}
.cpicker__swatches { display: flex; flex-wrap: wrap; gap: 3px; }
.cpicker__swatch {
  width: 20px; height: 20px; border-radius: 3px; cursor: pointer;
  border: 1.5px solid rgba(0,0,0,0.12); transition: transform 0.1s, border-color 0.1s;
  position: relative;
}
.cpicker__swatch:hover { transform: scale(1.3); z-index: 1; border-color: #333; }
.cpicker__swatch.selected { border-color: #111111; transform: scale(1.15); }

/* Form */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 7px;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field select {
  width: 100%;
  border: 1.5px solid #ddd;
  padding: 12px 14px;
  font-size: 0.95rem;
  color: #111;
  background: #fff;
  border-radius: 6px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 7L0 2h10z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-field input:focus,
.form-field select:focus { border-color: #111111; box-shadow: 0 0 0 3px rgba(0,0,0,0.08); }

.car-details-box {
  background: #fafafa;
  border: 1.5px solid #ececec;
  border-radius: 10px;
  padding: 16px 16px 4px;
  margin-top: 12px;
}
.car-details-box .car-details-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.car-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.car-details-grid .detail-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
  display: block;
}
.car-details-grid .detail-field input {
  width: 100%;
  border: 1.5px solid #ddd;
  padding: 10px 11px;
  font-size: 0.88rem;
  color: #111;
  background: #fff;
  border-radius: 6px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
.car-details-grid .detail-field input:focus {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}
.car-details-grid .detail-field input::placeholder { color: #bbb; }
@media (max-width: 500px) {
  .car-details-grid { grid-template-columns: 1fr; }
}

/* Quantity */
.qty-row { margin-bottom: 18px; }
.qty-row > label { font-size: 0.95rem; font-weight: 600; color: #222; display: block; margin-bottom: 8px; }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}
.qty-stepper button {
  width: 36px; height: 36px;
  background: none; border: none;
  font-size: 1rem; cursor: pointer;
  color: #333;
  display: flex; align-items: center; justify-content: center;
}
.qty-stepper button:hover { background: #f5f5f5; }
.qty-stepper input[type="number"] {
  width: 44px; height: 36px;
  text-align: center;
  border: none;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  font-size: 0.85rem;
  -moz-appearance: textfield;
  outline: none;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Custom Select */
.custom-select { position: relative; }
.custom-select__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #111;
  cursor: pointer;
  text-align: left;
}
.custom-select__btn:focus { border-color: #111111; box-shadow: 0 0 0 3px rgba(0,0,0,0.08); outline: none; }
.custom-select__menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  overflow: hidden;
}
.custom-select__menu.open { display: block; }
.custom-select__option {
  padding: 12px 14px;
  font-size: 0.95rem;
  color: #111;
  cursor: pointer;
}
.custom-select__option:hover { background: #f0f0f0; color: #111111; }
.custom-select__option.selected { font-weight: 600; color: #111111; }

/* Add to Cart */
.btn-cart {
  width: 100%;
  background: linear-gradient(135deg, #2a2a2a 0%, #000000 100%);
  color: #fff;
  border: none;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  margin-bottom: 22px;
  font-family: inherit;
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-cart::before { content: ''; font-size: 1.1rem; }
.btn-cart:hover {
  background: linear-gradient(135deg, #444444 0%, #111111 100%);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.btn-cart:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* ── Footer ── */
.site-footer {
  background: #111111;
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 18px 20px;
  font-size: 0.75rem;
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .header-inner { gap: 12px; }
  .product-section {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 16px auto 32px;
    padding: 0 14px;
  }
  .product-gallery__thumbs { gap: 4px; }
  .thumb { width: 56px; height: 56px; }
  .color-preview-car { max-height: 200px; }
  .color-selects-row { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 480px) {
  .car-details-grid { grid-template-columns: 1fr; }
}
