@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --brand-red: #e71920;
  --brand-red-dark: #c91118;
  --brand-red-soft: #fff1f1;
  --ink: #17191f;
  --muted: #687386;
  --border: #e5e8ee;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --green: #16834a;
  --shadow: 0 12px 35px rgba(22, 28, 45, .07);
  --radius-card: 16px;
  --radius-control: 10px;
  --transition-base: .22s ease;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, Arial, sans-serif; font-size: 14px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.container { max-width: 1320px; }
.top-strip { background: #17191f; color: #e6e9ef; font-size: 12px; padding: 7px 0; }
.top-strip .container { min-height: 20px; }
.top-strip i { color: #ff5b61; margin-right: 6px; }
.site-header { position: relative; z-index: 10; background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 28px; }
.store-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 43px; height: 43px; border-radius: 12px; background: var(--brand-red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 7px 16px rgba(231,25,32,.2); }
.store-brand strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: .5px; line-height: 1.1; }
.store-brand small { display: block; font-size: 10px; letter-spacing: 3px; color: var(--muted); font-weight: 700; margin-top: 3px; }
.header-search { height: 46px; flex: 1; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); background: var(--surface-soft); border-radius: 11px; padding: 0 6px 0 14px; min-width: 150px; }
.header-search > i { color: #7c8797; font-size: 17px; }
.header-search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: var(--ink); }
.header-search button { border: 0; color: #fff; background: var(--brand-red); border-radius: 8px; height: 34px; padding: 0 17px; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 17px; }
.header-actions a { display: flex; flex-direction: column; align-items: center; gap: 1px; color: #515a69; font-size: 11px; font-weight: 600; position: relative; white-space: nowrap; transition: color var(--transition-base); }
.header-actions a i { font-size: 21px; }
.header-actions a:hover, .header-actions a.active { color: var(--brand-red); }
.cart-link b { position: absolute; top: -6px; right: 4px; background: var(--brand-red); color: #fff; border-radius: 20px; min-width: 17px; height: 17px; padding: 0 4px; font-size: 10px; display: grid; place-items: center; }
.builder-banner { margin-top: 24px; min-height: 248px; border-radius: 18px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(110deg,#10131b 0%,#1d202a 54%,#2a1117 100%); color: #fff; box-shadow: var(--shadow); }
.banner-copy { position: relative; z-index: 2; padding: 35px 20px 35px 45px; max-width: 58%; }
.eyebrow, .section-kicker { color: var(--brand-red); font-weight: 800; letter-spacing: 1.4px; font-size: 11px; text-transform: uppercase; }
.builder-banner .eyebrow { color: #ff8589; display: inline-flex; align-items: center; gap: 7px; }
.banner-copy h1 { margin: 9px 0 10px; color: #fff; font-size: clamp(30px, 3vw, 44px); line-height: 1.13; font-weight: 800; letter-spacing: -1.4px; }
.banner-copy h1 span { color: #ff454c; }
.banner-copy p { max-width: 490px; color: #c6cad3; margin: 0; font-size: 14px; }
.banner-points { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: #e6e8ed; font-size: 12px; font-weight: 600; }
.banner-points i { color: #ff454c; margin-right: 5px; }
.banner-visual { align-self: stretch; width: 43%; position: relative; overflow: hidden; }
.banner-visual img { width: 100%; height: 100%; min-height: 248px; object-fit: cover; object-position: center; opacity: .83; }
.banner-visual:before { content: ""; position: absolute; z-index: 1; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg,#1d202a,transparent); }
.banner-glow { position: absolute; width: 230px; height: 230px; right: 10%; top: 5%; background: rgba(231,25,32,.18); filter: blur(70px); border-radius: 50%; }
.builder-container { padding-top: 22px; padding-bottom: 70px; }
.breadcrumb-line { display: flex; align-items: center; gap: 10px; color: #8790a0; font-size: 12px; margin: 0 0 25px; }
.breadcrumb-line a { color: #5e6879; }
.breadcrumb-line a:hover { color: var(--brand-red); }
.breadcrumb-line > i { font-size: 10px; }
.breadcrumb-line span { color: var(--ink); font-weight: 700; }
.builder-title-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
.builder-title-row h2 { font-size: 27px; letter-spacing: -.8px; font-weight: 800; margin: 4px 0 5px; }
.builder-title-row p { color: var(--muted); margin: 0; }
.btn-outline-red, .btn-primary-red, .btn-soft { border-radius: 9px; min-height: 42px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 0 16px; font-weight: 700; transition: transform var(--transition-base), background var(--transition-base), border-color var(--transition-base), color var(--transition-base); }
.btn-outline-red { border: 1px solid #f2a5a8; background: #fff; color: var(--brand-red); }
.btn-outline-red:hover { background: var(--brand-red-soft); border-color: var(--brand-red); }
.btn-primary-red { border: 1px solid var(--brand-red); color: #fff; background: var(--brand-red); box-shadow: 0 7px 16px rgba(231,25,32,.15); }
.btn-primary-red:hover { background: var(--brand-red-dark); border-color: var(--brand-red-dark); color: #fff; transform: translateY(-1px); }
.btn-soft { border: 1px solid var(--border); background: #fff; color: #4c5666; }
.btn-soft:hover { background: var(--surface-soft); }
.builder-layout { display: flex; align-items: flex-start; gap: 24px; }
.component-list { flex: 1 1 0; min-width: 0; }
.component-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.component-list-heading h3, .selected-panel h3 { margin: 0; font-size: 17px; font-weight: 800; }
.component-list-heading p { color: var(--muted); margin: 3px 0 0; font-size: 12px; }
.category-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.category-count b { color: var(--brand-red); }
.component-categories { display: flex; flex-direction: column; gap: 9px; }
.component-row { border: 1px solid #e1e4e9; background: #f7f7f8; border-radius: 10px; overflow: hidden; transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base); }
.component-row:hover { border-color: #f2b7ba; background: #fff; }
.component-row.has-selection { border-color: #f1b0b3; background: #fffafa; }
.component-row-head { display: flex; align-items: center; gap: 13px; min-height: 56px; padding: 8px 12px 8px 16px; }
.component-icon { width: 31px; height: 31px; display: grid; place-items: center; color: #4e5867; font-size: 20px; flex-shrink: 0; }
.component-name { flex: 1; min-width: 0; }
.component-name strong { display: block; font-size: 14px; font-weight: 700; }
.component-name small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.component-row-count { border-radius: 20px; padding: 3px 8px; font-size: 11px; color: #697386; background: #eceef2; white-space: nowrap; }
.component-row.has-selection .component-row-count { background: #ffe4e5; color: var(--brand-red-dark); }
.component-add { width: 34px; height: 34px; border: 1px solid #cdd2da; background: #fff; color: #4f5968; border-radius: 8px; display: grid; place-items: center; font-size: 19px; transition: all var(--transition-base); flex-shrink: 0; }
.component-add:hover, .component-row.has-selection .component-add { color: #fff; background: var(--brand-red); border-color: var(--brand-red); }
.compatibility-note { display: flex; gap: 12px; margin-top: 18px; padding: 15px 16px; border: 1px solid #f2d9a4; border-radius: 11px; background: #fffaf0; color: #6d5a31; }
.compatibility-note > i { color: #d79b1d; font-size: 18px; }
.compatibility-note strong { font-size: 12px; }
.compatibility-note p { margin: 3px 0 0; font-size: 12px; line-height: 1.5; }
.selected-panel { flex: 0 0 355px; position: sticky; top: 20px; border: 1px solid var(--border); border-radius: 15px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.selected-panel-top { padding: 20px 20px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.selected-panel-top .section-kicker { font-size: 10px; }
.selected-panel h3 { margin-top: 3px; font-size: 19px; }
.build-count { color: #687386; font-size: 11px; font-weight: 700; background: #f0f2f5; border-radius: 30px; padding: 5px 9px; white-space: nowrap; }
.build-progress { padding: 0 20px 17px; border-bottom: 1px solid #edf0f3; }
.progress-copy { display: flex; justify-content: space-between; gap: 8px; color: #7a8493; font-size: 11px; margin-bottom: 7px; }
.progress-copy strong { color: #4e5867; }
.progress-track { height: 5px; background: #eef0f3; border-radius: 10px; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg,#e71920,#ff777c); border-radius: inherit; transition: width .25s ease; }
.selected-items { max-height: 430px; overflow-y: auto; padding: 12px 16px; }
.empty-build { text-align: center; padding: 24px 12px 28px; color: var(--muted); }
.empty-build-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; margin: 0 auto 12px; background: #fff0f0; color: var(--brand-red); font-size: 27px; }
.empty-build strong { display: block; color: #313845; font-size: 13px; }
.empty-build p { font-size: 12px; margin: 6px 0 0; }
.selected-item { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #eef0f3; }
.selected-item:last-child { border-bottom: 0; }
.selected-item-image { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #eef0f3; border-radius: 8px; display: grid; place-items: center; background: #fafbfc; color: #7b8491; font-size: 21px; overflow: hidden; }
.selected-item-copy { flex: 1; min-width: 0; }
.selected-item-copy strong { display: block; font-size: 11px; line-height: 1.35; font-weight: 700; }
.selected-item-copy small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.selected-item-price { text-align: right; flex-shrink: 0; }
.selected-item-price strong { display: block; color: var(--brand-red); font-size: 12px; }
.remove-selected { border: 0; background: transparent; color: #a0a7b2; padding: 2px; margin-left: 2px; }
.remove-selected:hover { color: var(--brand-red); }
.price-summary { background: #fafbfc; border-top: 1px solid #edf0f3; padding: 16px 20px 18px; }
.summary-line, .summary-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; color: #697386; font-size: 12px; }
.summary-line strong { color: #303744; font-weight: 700; }
.summary-line .free-delivery { color: var(--green); }
.summary-total { border-top: 1px dashed #d9dee6; margin-top: 9px; padding: 14px 0 15px; color: #20242c; font-size: 15px; font-weight: 800; }
.summary-total strong { color: var(--brand-red); font-size: 21px; letter-spacing: -.5px; }
.summary-disclaimer { color: #8b93a0; font-size: 10px; line-height: 1.45; margin: 0 0 14px; }
.summary-tools { display: flex; gap: 6px; margin-top: 10px; }
.summary-tools button { flex: 1; border: 1px solid #e2e5ea; background: #fff; color: #626d7d; border-radius: 7px; min-height: 34px; padding: 4px 5px; font-size: 10px; font-weight: 700; }
.summary-tools button:hover { color: var(--brand-red); border-color: #f0b3b6; background: #fffafa; }
.build-feedback { min-height: 0; margin: 8px 0 0; font-size: 11px; color: var(--green); }
.product-picker-modal { border: 0; border-radius: 16px; overflow: hidden; }
.picker-header { padding: 22px 26px 17px; border-bottom: 1px solid var(--border); }
.picker-header h2 { font-size: 22px; font-weight: 800; margin: 4px 0 4px; }
.picker-header p { color: var(--muted); font-size: 12px; margin: 0; }
.modal-close { width: 37px; height: 37px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: #515b6b; display: grid; place-items: center; }
.modal-close:hover { color: var(--brand-red); border-color: #f2b7ba; }
.picker-toolbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 14px 26px; background: #fafbfc; border-bottom: 1px solid #edf0f3; }
.picker-search { display: flex; align-items: center; gap: 9px; border: 1px solid #dfe3e9; background: #fff; border-radius: 9px; height: 42px; padding: 0 12px; flex: 1; max-width: 480px; color: #8992a0; }
.picker-search input { border: 0; outline: 0; min-width: 0; flex: 1; color: var(--ink); }
.picker-sort { display: flex; align-items: center; gap: 8px; color: #7a8493; font-size: 12px; }
.picker-sort select { height: 40px; border: 1px solid #dfe3e9; border-radius: 9px; background: #fff; padding: 0 10px; color: #303744; }
.picker-selected-strip { padding: 10px 26px; background: #fff6f6; color: #7c3d40; font-size: 12px; }
.picker-selected-strip i { color: var(--brand-red); margin-right: 5px; }
.picker-selected-strip strong { color: var(--brand-red); }
.picker-body { padding: 0 26px; min-height: 230px; }
.product-picker-list { display: flex; flex-direction: column; }
.picker-product { display: flex; align-items: center; gap: 15px; min-height: 91px; border-bottom: 1px solid #edf0f3; padding: 12px 4px; }
.picker-product:last-child { border-bottom: 0; }
.picker-product-check { width: 18px; height: 18px; accent-color: var(--brand-red); flex-shrink: 0; }
.picker-product-image { width: 58px; height: 58px; display: grid; place-items: center; flex-shrink: 0; border-radius: 10px; background: #f6f7f9; color: #7e8795; font-size: 29px; border: 1px solid #eef0f3; }
.picker-product-image img { width: 100%; height: 100%; object-fit: contain; }
.picker-product-info { flex: 1; min-width: 0; }
.picker-product-info strong { display: block; font-size: 13px; font-weight: 700; }
.picker-product-info p { margin: 3px 0 0; color: #7c8695; font-size: 11px; }
.stock-label { color: var(--green); font-size: 11px; font-weight: 700; white-space: nowrap; }
.picker-price { min-width: 100px; text-align: right; }
.picker-price strong { display: block; color: var(--brand-red); font-size: 14px; }
.picker-price del { color: #98a0ad; font-size: 11px; }
.picker-footer { display: flex; justify-content: space-between; gap: 15px; padding: 15px 26px; border-top: 1px solid var(--border); color: #697386; font-size: 12px; }
.picker-footer > div { display: flex; gap: 8px; }
.picker-empty { text-align: center; padding: 45px 15px; color: var(--muted); }
.picker-empty > i { font-size: 26px; display: block; margin-bottom: 8px; }
.picker-empty strong { display: block; color: var(--ink); }
.builder-toast { border: 1px solid #d9e9df; box-shadow: var(--shadow); }
.builder-toast .toast-body { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.builder-toast .toast-body > i { color: var(--green); }
.site-footer { background: #151820; color: #d4d7df; }
.footer-main { display: flex; gap: 50px; padding-top: 48px; padding-bottom: 42px; }
.footer-brand { color: #fff; }
.footer-brand strong { color: #fff; }
.footer-brand small { color: #a4aab6; }
.footer-brand-block { flex: 1.6; max-width: 330px; }
.footer-brand-block > p { color: #aeb4c0; font-size: 12px; margin: 17px 0; }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #383d48; border-radius: 8px; color: #e1e4ea; }
.footer-socials a:hover { color: #fff; background: var(--brand-red); border-color: var(--brand-red); }
.footer-column { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.footer-column h4 { color: #fff; font-size: 13px; font-weight: 800; margin: 2px 0 7px; }
.footer-column > a, .footer-column p { color: #aeb4c0; font-size: 12px; margin: 0; }
.footer-column > a:hover { color: #ff686e; }
.footer-contact p { display: flex; gap: 8px; align-items: center; }
.footer-contact i { color: #ff686e; }
.footer-bottom { border-top: 1px solid #2d313b; padding: 14px 0; color: #9fa6b3; font-size: 11px; }
.footer-bottom i { color: #6ed69b; margin-left: 4px; }
@media (max-width: 1199px) {
  .header-inner { gap: 18px; }
  .header-actions { gap: 12px; }
  .header-search { max-width: 340px; }
  .selected-panel { flex-basis: 325px; }
  .footer-main { gap: 30px; }
}
@media (max-width: 991px) {
  .header-inner { flex-wrap: wrap; padding-top: 13px; padding-bottom: 13px; }
  .header-search { order: 3; flex: 1 1 100%; max-width: none; }
  .header-actions { margin-left: auto; }
  .builder-layout { flex-direction: column; }
  .component-list, .selected-panel { width: 100%; flex: 1 1 auto; }
  .selected-panel { position: static; }
  .selected-items { max-height: 360px; }
  .banner-copy { max-width: 65%; padding-left: 28px; }
  .banner-visual { width: 38%; }
}
@media (max-width: 767px) {
  .top-strip-right { display: none; }
  .header-inner { gap: 13px; }
  .store-brand strong { font-size: 17px; }
  .brand-mark { width: 38px; height: 38px; font-size: 21px; }
  .header-actions { width: 100%; justify-content: space-between; margin: 0; gap: 6px; }
  .header-actions a { font-size: 10px; }
  .header-actions a i { font-size: 19px; }
  .builder-banner { margin-top: 14px; min-height: 0; flex-direction: column; align-items: stretch; }
  .banner-copy { max-width: none; padding: 27px 22px 21px; }
  .banner-copy h1 { font-size: 32px; }
  .banner-points { gap: 8px 14px; margin-top: 16px; }
  .banner-visual { width: 100%; height: 145px; }
  .banner-visual img { min-height: 145px; object-position: center 58%; }
  .banner-visual:before { width: 100%; height: 30%; inset: 0 0 auto; background: linear-gradient(180deg,#1d202a,transparent); }
  .builder-container { padding-top: 17px; padding-bottom: 40px; }
  .breadcrumb-line { margin-bottom: 18px; }
  .builder-title-row { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
  .builder-title-row h2 { font-size: 23px; }
  .builder-title-row .btn-outline-red { min-height: 38px; }
  .component-list-heading { align-items: flex-start; }
  .category-count { padding-top: 3px; font-size: 10px; }
  .component-row-head { gap: 8px; padding-left: 10px; }
  .component-name strong { font-size: 13px; }
  .component-row-count { font-size: 10px; padding: 3px 6px; }
  .component-add { width: 31px; height: 31px; }
  .selected-panel-top { padding: 17px 15px 14px; }
  .build-progress { padding: 0 15px 14px; }
  .selected-items { padding: 10px 14px; }
  .price-summary { padding: 14px 15px 16px; }
  .picker-header { padding: 18px 16px 14px; }
  .picker-header h2 { font-size: 19px; }
  .picker-toolbar { align-items: stretch; flex-direction: column; padding: 12px 16px; }
  .picker-search { max-width: none; }
  .picker-sort { justify-content: space-between; }
  .picker-sort select { flex: 1; }
  .picker-selected-strip { padding: 9px 16px; }
  .picker-body { padding: 0 14px; }
  .picker-product { gap: 8px; min-height: 80px; padding: 10px 0; flex-wrap: wrap; }
  .picker-product-image { width: 45px; height: 45px; font-size: 23px; }
  .picker-product-info { flex-basis: calc(100% - 90px); }
  .picker-product-info strong { font-size: 12px; }
  .picker-product-info p { font-size: 10px; }
  .picker-price { margin-left: 26px; text-align: left; min-width: 0; }
  .picker-price strong { font-size: 12px; }
  .picker-product .stock-label { margin-left: auto; font-size: 10px; }
  .picker-footer { align-items: stretch; flex-direction: column; padding: 13px 16px; }
  .picker-footer > div { width: 100%; }
  .picker-footer > div button { flex: 1; }
  .footer-main { flex-wrap: wrap; gap: 28px 22px; padding-top: 32px; padding-bottom: 28px; }
  .footer-brand-block { flex: 1 1 100%; max-width: none; }
  .footer-column { flex: 1 1 calc(50% - 15px); }
}
@media (max-width: 420px) {
  .header-actions a span { font-size: 9px; }
  .header-actions a i { font-size: 18px; }
  .component-icon { width: 25px; font-size: 18px; }
  .component-row-count { max-width: 58px; overflow: hidden; text-overflow: ellipsis; }
  .component-name small { max-width: 155px; }
  .selected-item-image { width: 38px; height: 38px; }
  .selected-item-copy strong { font-size: 10px; }
  .selected-item-price strong { font-size: 11px; }
  .summary-tools { gap: 4px; }
  .summary-tools button { font-size: 9px; }
  .footer-column { flex-basis: 100%; }
}
@media print {
  .top-strip, .site-header, .builder-banner, .breadcrumb-line, .component-list, .site-footer, .summary-tools, .btn-primary-red, .btn-outline-red { display: none !important; }
  .builder-container { max-width: 100%; padding: 0; }
  .builder-title-row { margin: 0 0 15px; }
  .builder-layout { display: block; }
  .selected-panel { width: 100%; border: 0; box-shadow: none; position: static; }
  .selected-items { max-height: none; overflow: visible; }
  .price-summary { background: #fff; }
}
