.app-bottom-nav { display: none; }
#catalog-search { scroll-margin-top: 84px; }
.detail-photo { position: relative; display: block; }
.detail-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.vehicle-filters { margin-top: -15px; }
.filter-label { color: #aebbad; font-size: 11px; font-weight: 700; }
.product-main { display: block; color: inherit; }
.product-picker { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; border-top: 1px solid #354138; }
.product-select { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; cursor: pointer; }
.product-select input { width: 16px; height: 16px; accent-color: #d9f15c; }
.product-quantity { display: inline-flex; align-items: center; gap: 7px; color: #b8c5b8; font-size: 10px; }
.product-quantity input, .product-detail-add input, .cart-quantity input { width: 66px; padding: 8px; border: 1px solid #415147; border-radius: 3px; background: #101713; color: #f3f1e8; text-align: center; font: inherit; }
.cart-action-bar { display: flex; align-items: center; gap: 18px; margin: 26px 0 0; color: #aebbad; font-size: 11px; }
.cart-action-bar .button { margin-left: auto; }
.cart-action-bar>a, .order-links a { color: #d9f15c; font-weight: 700; }
.product-detail-add { display: flex; align-items: end; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.product-detail-add label { display: grid; gap: 7px; color: #aebbad; font-size: 11px; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .85fr); align-items: start; gap: 18px; }
.order-submit .button { width: 100%; margin-top: 18px; }
.order-submit>p { color: #cbd5c6; }
.cart-list, .proposal-list { border-top: 1px solid #39463d; }
.cart-line { display: grid; grid-template-columns: 82px minmax(0,1fr) auto; align-items: center; gap: 15px; padding: 16px 0; border-bottom: 1px solid #39463d; }
.cart-line img { width: 82px; height: 78px; object-fit: contain; background: #26302a; border-radius: 3px; }
.cart-line-main { display: grid; gap: 5px; min-width: 0; }
.cart-line-main strong { font-size: 13px; }
.cart-line-main small, .proposal-line small { display: block; color: #8e9c90; font-size: 10px; }
.cart-line-main span { color: #d9f15c; font-size: 11px; }
.cart-line-main em { color: #ffc4a9; font-size: 10px; }
.cart-quantity { display: grid; gap: 6px; color: #aebbad; font-size: 10px; }
.order-links { margin-top: 28px; font-size: 12px; }
.proposal-line { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid #39463d; font-size: 12px; }
.proposal-line>span:last-child { color: #d9f15c; }
.proposal-link { grid-template-columns: 1fr auto auto auto; color: inherit; }
.order-status-form { display: flex; align-items: end; gap: 12px; margin-top: 25px; }
.order-status-form label { display: grid; gap: 6px; color: #aebbad; font-size: 11px; }
.order-status-form select { padding: 9px; background: #101713; border: 1px solid #415147; color: #f3f1e8; }
.muted { color: #aebbad; font-size: 13px; font-weight: 400; }
.vehicle-type-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.vehicle-type-field legend { color: #cad6c7; font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.vehicle-type-options { display: flex; flex-wrap: wrap; gap: 9px 14px; }
.vehicle-type-options label { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; cursor: pointer; }
.vehicle-type-options input { width: 16px; height: 16px; accent-color: #d9f15c; }
.detail-thumbs { flex-wrap: wrap; }
.detail-thumb { display: block; padding: 3px; border: 1px solid #465747; border-radius: 4px; background: #18211b; cursor: pointer; }
.detail-thumb[aria-pressed="true"], .detail-thumb:hover { border-color: #d9f15c; }
.detail-thumb img { display: block; width: 74px; height: 74px; object-fit: contain; border: 0; }
.add-photos-form { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; padding: 18px; margin: 18px 0; border: 1px solid #405044; border-radius: 5px; }
.add-photos-form .field { flex: 1 1 260px; }
.gallery-list { gap: 14px; }
.gallery-item { width: 158px; }
.gallery-item img { width: 158px; height: 130px; object-fit: contain; background: #26302a; }
.gallery-caption { display: block; margin: 7px 0; color: #cbd5c6; font-size: 11px; font-weight: 700; }
.gallery-actions { display: grid; gap: 5px; }
.gallery-actions button { width: 100%; margin: 0; }
@media (max-width: 700px) {
  html { scroll-padding-top: 72px; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .header { position: sticky; top: 0; z-index: 60; background: rgba(18,23,22,.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .header-inner { min-height: 60px; display: flex; }
  .header .nav { display: none; }
  .wordmark { font-size: 19px; }
  .app-bottom-nav {
    position: fixed; z-index: 100; left: 0; right: 0; bottom: 0;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    min-height: calc(66px + env(safe-area-inset-bottom, 0px));
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #455344; background: rgba(22,31,25,.96);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -10px 35px rgba(0,0,0,.28);
  }
  .app-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 54px; border-radius: 10px; color: #aebbad; font-size: 10px; font-weight: 650; line-height: 1.15; text-align: center; }
  .app-bottom-nav a.active { background: rgba(217,241,92,.11); color: #d9f15c; }
  .app-bottom-nav a:focus-visible { outline: 2px solid #d9f15c; outline-offset: -2px; }
  .app-bottom-nav svg { flex: 0 0 auto; }
  .hero { padding-top: 28px; padding-bottom: 32px; }
  .hero-content { padding-bottom: 26px; }
  .hero h1 { margin: 20px 0 18px; font-size: clamp(43px, 10.8vw, 64px); line-height: 1.01; }
  .hero-content>p { font-size: 14px; line-height: 1.65; }
  .hero-actions { gap: 12px; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 290px; }
  .section { padding-block: 52px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-card { min-height: 176px; padding: 15px; }
  .category-card .cat-symbol { font-size: 58px; }
  .category-card h3 { font-size: 18px; }
  .category-card p { font-size: 10px; }
  .page { padding-top: 30px; }
  .page-title { font-size: clamp(36px, 9vw, 52px); }
  .panel { padding: 18px; }
  .catalog-toolbar { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-bottom: 20px; }
  .catalog-toolbar::-webkit-scrollbar, .admin-tabs::-webkit-scrollbar { display: none; }
  .catalog-toolbar form { flex: 0 0 100%; min-width: 0; }
  .catalog-filters, .vehicle-filters { flex-wrap: wrap; overflow: visible; }
  .vehicle-filters { margin-top: -8px; }
  .search-input { min-width: 0; }
  .filter-chip { flex: 0 0 auto; white-space: nowrap; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-photo { aspect-ratio: 1; }
  .product-card-body { padding: 11px; }
  .detail-photo { aspect-ratio: 4 / 5; }
  .product-card h2 { font-size: 12px; min-height: 48px; }
  .product-meta { font-size: 8px; letter-spacing: .6px; }
  .product-picker { padding: 9px; }
  .cart-action-bar { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); z-index: 30; flex-wrap: wrap; gap: 9px; padding: 10px; margin-inline: -10px; background: rgba(22,31,25,.97); border: 1px solid #455344; border-radius: 5px; }
  .cart-action-bar .button { width: 100%; margin: 0; order: 3; text-align: center; }
  .order-layout { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 60px minmax(0,1fr) 56px; gap: 9px; }
  .cart-line img { width: 60px; height: 60px; }
  .cart-quantity input { width: 56px; }
  .proposal-line, .proposal-link { grid-template-columns: 1fr auto; gap: 8px; }
  .product-code { margin-bottom: 8px; }
  .admin-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .table-scroll { border-radius: 5px; }
  .footer-inner { padding-bottom: 25px; }
}
@media (max-width: 370px) {
  .hero h1 { font-size: 40px; }
  .category-card { min-height: 160px; }
  .category-card h3 { font-size: 16px; }
  .app-bottom-nav a { font-size: 9px; }
}

.remove-cart-item { border: 0; background: none; color: #ffb8a9; padding: 3px 0; width: fit-content; font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; }
.remove-cart-item:hover { color: #fff; }
.editor-panel { margin-top: 18px; }
.order-edit-line { border-top: 1px solid #39463d; padding: 20px 0; }
.order-edit-line>form:last-child { margin-top: 10px; }
.order-line-form>small { display: block; color: #aebbad; margin-bottom: 10px; }
.order-line-form>.small-button { margin-top: 14px; }
.order-add-form { display: grid; grid-template-columns: minmax(0,1fr) 150px 100px auto; gap: 12px; align-items: end; }
.order-add-form button { margin-bottom: 0; }
.publish-order-form { margin-top: 30px; padding-top: 22px; border-top: 1px solid #39463d; }
@media(max-width:700px) { .order-add-form { grid-template-columns: 1fr 100px; } .order-add-form button { grid-column: 1/-1; } }
.product-color { display: grid; gap: 4px; color: #b8c5b8; font-size: 10px; min-width: 95px; }
.product-color select, .product-detail-add select { min-width: 100px; padding: 8px; border: 1px solid #415147; border-radius: 3px; background: #101713; color: #f3f1e8; font: inherit; }
.product-detail-add select { min-height: 38px; }
.product-picker:has(.product-color) { flex-wrap: wrap; }
.product-picker:has(.product-color) .product-color { flex: 1 1 100%; order: 3; }
.cart-line-main .cart-color, .proposal-line .line-color { color: #d9f15c; font-size: 11px; font-weight: 700; }

.product-b2c-price { display: block; margin-top: 4px; color: #aab7aa; font-size: 10px; }
.detail-price-label { display: block; margin-bottom: 6px; color: #aab7aa; font-size: 11px; font-weight: 700; }
.detail-b2c-price { display: block; margin-top: 8px; color: #aab7aa; font-size: 12px; font-weight: 500; }
