* {
    box-sizing: border-box;
}

/* Stage 6.1.1 compact text catalog */
.catalog-alphabet { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.catalog-alphabet button { min-width: 44px; min-height: 44px; border: 1px solid #dbe4ee; border-radius: 9px; background: #fff; }
.catalog-alphabet button[aria-current="true"] { border-color: #ff6b00; color: #b54708; background: #fff5eb; }
.catalog-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.catalog-kicker, .catalog-breadcrumbs { color: #667085; font-size: 14px; }
.catalog-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 16px; margin-top: 20px; }
.catalog-category-card { display: flex; min-width: 0; height: 100%; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid #dbe4ee; border-radius: 14px; background: #fff; }
.catalog-category-card .secondary-button { min-height: 44px; margin-top: auto; }
.catalog-category-card:not(.catalog-home-category-card) h3 { display: -webkit-box; min-height: 2.5em; margin: 0; overflow: hidden; line-height: 1.25; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.catalog-category-card:not(.catalog-home-category-card) .catalog-category-subcategories { display: -webkit-box; max-width: 100%; margin: 0; overflow: hidden; line-height: 1.45; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.catalog-category-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; color: #1662a8; background: #eef6ff; font-size: 25px; }
.catalog-count { color: #1662a8; }
.catalog-page-heading { grid-column: 1 / -1; padding: 18px 20px; border: 1px solid #e4e7ec; border-radius: 14px; background: #fff; }
.catalog-page-heading h1 { margin: 5px 0; font-size: clamp(26px, 3vw, 34px); }
.catalog-page-description { max-width: 760px; margin: 0; color: #667085; line-height: 1.45; }
.catalog-back { min-height: 38px; padding: 0; border: 0; color: #475467; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.catalog-back:hover { color: #b54708; }
.catalog-section-chips { display: flex; gap: 7px; margin-top: 14px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: thin; }
.catalog-section-chip, .catalog-filter-chip { flex: 0 0 auto; min-height: 34px; padding: 7px 11px; border: 1px solid #e4e7ec; border-radius: 999px; color: #475467; background: #f9fafb; font: inherit; font-size: 13px; }
.catalog-section-chip { cursor: pointer; }
.catalog-section-chip:hover, .catalog-section-chip[aria-current="true"] { border-color: #ff9a52; color: #b54708; background: #fff5eb; }
.catalog-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px 14px; margin-top: 14px; }
.catalog-filters summary { width: fit-content; min-height: 40px; padding: 9px 12px; border: 1px solid #d0d5dd; border-radius: 9px; color: #344054; background: #fff; font-weight: 750; cursor: pointer; }
.catalog-filters form { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.catalog-filters label { display: inline-flex; min-height: 42px; align-items: center; padding: 8px 10px; border: 1px solid #d0d5dd; border-radius: 9px; }
.catalog-filters input:not([type="checkbox"]), .catalog-filters select, .catalog-toolbar > select, #products > input[type="search"] { min-height: 42px; padding: 8px 11px; border: 1px solid #cbd5e1; border-radius: 9px; background: #fff; }
.catalog-toolbar > select { min-width: 190px; }
.catalog-applied-filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.catalog-filter-chip { min-height: 30px; padding: 5px 10px; border-color: #ffd7b8; color: #8a3d0a; background: #fff8f2; }
.catalog-filter-reset { min-height: 32px; padding: 5px 8px; border: 0; color: #b54708; background: transparent; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.catalog-product-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 190px; min-height: 118px; align-items: center; gap: 24px; padding: 15px 18px; border: 1px solid #e1e5ea; border-radius: 12px; background: #fff; box-shadow: 0 2px 9px rgba(16, 24, 40, .035); }
.catalog-product-card:hover { border-color: #ffc08f; box-shadow: 0 5px 16px rgba(16, 24, 40, .06); }
.catalog-product-content { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 6px; }
.catalog-product-topline { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 7px 11px; }
.catalog-product-brand { color: #475467; font-size: 12px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.catalog-product-article { color: #101828; font-size: 14px; font-weight: 800; overflow-wrap: normal; word-break: normal; }
.catalog-copy-article { min-height: 30px; padding: 4px 7px; border: 0; border-radius: 7px; color: #667085; background: transparent; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.catalog-copy-article:hover { color: #b54708; background: #fff5eb; }
.catalog-product-name { display: -webkit-box; max-width: 100%; margin: 0; overflow: hidden; color: #101828; font-size: 18px; line-height: 1.28; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.catalog-product-metadata { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; color: #667085; font-size: 13px; }
.catalog-variant-count::after { content: "·"; margin-left: 12px; color: #98a2b3; }
.catalog-availability { color: #18794e; font-weight: 750; }
.catalog-availability[data-status="out_of_stock"] { color: #667085; }
.catalog-product-actions { display: flex; min-width: 0; flex-direction: column; align-items: stretch; gap: 10px; }
.catalog-product-price { color: #101828; font-size: 21px; line-height: 1.15; text-align: right; white-space: nowrap; }
.catalog-open-product { min-height: 44px; padding: 10px 14px; border: 1px solid #ff6b00; border-radius: 9px; color: #fff; background: #ff6b00; font: inherit; font-weight: 800; cursor: pointer; }
.catalog-open-product:hover { border-color: #e85f00; background: #e85f00; }
.catalog-copy-article:focus-visible, .catalog-open-product:focus-visible, .catalog-section-chip:focus-visible, .catalog-filter-reset:focus-visible, .catalog-back:focus-visible, .catalog-filters summary:focus-visible, .catalog-toolbar select:focus-visible { outline: 3px solid rgba(255, 107, 0, .3); outline-offset: 2px; }
.catalog-product-skeleton { pointer-events: none; }
.catalog-product-skeleton:hover { border-color: #e1e5ea; box-shadow: 0 2px 9px rgba(16, 24, 40, .035); }
.catalog-skeleton-line { display: block; height: 12px; border-radius: 999px; }
.catalog-skeleton-line.is-title { height: 23px; }
.catalog-skeleton-price { width: 96px; height: 24px; align-self: flex-end; border-radius: 8px; }
.catalog-skeleton-button { width: 100%; height: 44px; border-radius: 9px; }
.catalog-pagination { grid-column: 1 / -1; display: flex; justify-content: center; gap: 10px; }
.catalog-brand-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.catalog-brands-title { grid-column: 1 / -1; }
.catalog-brand-card { min-height: 44px; padding: 12px; border: 1px solid #dbe4ee; border-radius: 10px; background: #fff; text-align: left; overflow-wrap: anywhere; }
.catalog-unavailable, .catalog-empty { grid-column: 1 / -1; padding: 24px; border-radius: 14px; background: #fff7e6; }
@media (max-width: 760px) {
    .catalog-category-grid, .catalog-brand-grid { grid-template-columns: 1fr; }
    .catalog-category-card:not(.catalog-home-category-card) { width: 100%; height: auto; }
    .catalog-category-card:not(.catalog-home-category-card) h3 { min-height: 0; }
    .catalog-category-card:not(.catalog-home-category-card) .secondary-button { width: 100%; }
    .catalog-section-heading { align-items: stretch; flex-direction: column; }
    .catalog-page-heading { padding: 15px; }
    .catalog-toolbar { grid-template-columns: 1fr; }
    .catalog-toolbar > select { width: 100%; min-width: 0; }
    .catalog-filters form > * { width: 100%; }
    .catalog-product-card { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 13px; padding: 14px; }
    .catalog-product-topline { justify-content: flex-start; }
    .catalog-product-name { font-size: 17px; -webkit-line-clamp: 3; }
    .catalog-product-actions { gap: 9px; }
    .catalog-product-price { text-align: left; }
    .catalog-open-product { width: 100%; }
    .catalog-skeleton-price { align-self: flex-start; }
}

/* Stage 5.9 professional product card */
.product-main-purchase { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; margin: 18px 0; padding: 18px; border: 1px solid #ffd7b8; border-radius: 16px; background: #fff8f2; }
.product-main-price { color: #101828; font-size: clamp(28px, 3vw, 38px); line-height: 1; }
.product-main-availability { color: #18794e; font-size: 13px; font-weight: 800; }
.product-main-purchase .product-detail-cart-button { grid-column: 2; grid-row: 1 / 3; min-height: 48px; }
.product-copy-article, .product-open-standalone, .product-description-toggle, .product-copy-all-oem { width: fit-content; min-height: 40px; margin-top: 9px; padding: 8px 13px; border: 1px solid #d0d5dd; border-radius: 9px; color: #344054; background: #fff; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.product-copy-article:hover, .product-open-standalone:hover, .product-description-toggle:hover, .product-copy-all-oem:hover { border-color: #ff6b00; color: #b54708; }
.product-variant-row { grid-template-columns: 22px minmax(110px, 1fr) auto auto; cursor: pointer; }
.product-variant-row input[type="radio"] { width: 18px; height: 18px; accent-color: #ff6b00; }
.product-variant-row.is-selected { border-color: #ff9a52; background: #fff8f2; box-shadow: 0 0 0 2px rgba(255,107,0,.08); }
.product-variant-row.is-primary::before { content: attr(data-badge); }
.product-detail-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.product-detail-description.is-collapsed { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.product-reference-chip { min-height: 38px; border: 1px solid #e5e7eb; font: inherit; cursor: pointer; overflow-wrap: anywhere; }
.product-analogs { display: grid; gap: 10px; }
.product-analog-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px; border: 1px solid #e5e7eb; border-radius: 12px; }
.product-analog-card p { margin: 0; color: #667085; overflow-wrap: anywhere; }
.product-analog-card > div { display: flex; gap: 8px; grid-column: 2; grid-row: 1 / 3; }
.product-detail-thumbnail:focus-visible, .product-copy-article:focus-visible, .product-open-standalone:focus-visible, .product-description-toggle:focus-visible, .product-reference-chip:focus-visible, .product-variant-row:focus-within { outline: 3px solid rgba(255,107,0,.28); outline-offset: 3px; }
.product-detail-gallery { touch-action: pan-x; overscroll-behavior-inline: contain; }

@media (max-width: 600px) {
    .product-main-purchase { grid-template-columns: 1fr; padding: 15px; }
    .product-main-purchase .product-detail-cart-button { grid-column: 1; grid-row: auto; width: 100%; min-height: 48px; }
    .product-variant-row { grid-template-columns: 20px minmax(0, 1fr) auto; }
    .product-variant-price { grid-column: 2; }
    .product-variant-cart-button { grid-column: 3; grid-row: 1 / 3; min-height: 44px; }
    .product-detail-media { min-height: 220px; max-height: 340px; }
    .product-detail-gallery { max-width: 100%; overflow-x: auto; }
    .product-reference-chips { max-width: 100%; }
    .product-reference-chip { max-width: 100%; }
    .product-analog-card { grid-template-columns: 1fr; }
    .product-analog-card > div { grid-column: 1; grid-row: auto; flex-wrap: wrap; }
}

/* Stage 5.8: professional cart and checkout */
.cart-modal { width: min(1080px, calc(100vw - 32px)); max-height: min(880px, calc(100dvh - 32px)); overflow: auto; }
.cart-items { display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-width: 0; }
.cart-item-visual { width: 76px; height: 76px; object-fit: contain; border-radius: 14px; background: #f7f8fa; }
.cart-item-details, .cart-item-name, .cart-item-brand, .cart-item-article { min-width: 0; overflow-wrap: anywhere; }
.cart-item-availability { width: fit-content; margin-top: 8px; padding: 5px 9px; border-radius: 999px; color: #18794e; background: #eaf8f0; font-size: 12px; font-weight: 750; }
.cart-item-availability.is-unavailable { color: #b42318; background: #fef3f2; }
.cart-item.is-loading { opacity: .62; pointer-events: none; }
.cart-summary { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -12px 28px rgba(16,24,40,.08); }
.cart-state .registration-submit { width: auto; margin-top: 18px; }
.checkout-modal { width: min(900px, calc(100vw - 32px)); max-height: min(900px, calc(100dvh - 32px)); overflow: auto; overscroll-behavior: contain; }
.checkout-composition, .checkout-review { margin-top: 22px; padding: 18px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fafafa; }
.checkout-composition-item, #checkoutReviewContent > div, .checkout-composition-total { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid #e8eaee; }
.checkout-composition-item span, #checkoutReviewContent span { min-width: 0; overflow-wrap: anywhere; color: #667085; }
.checkout-composition-item strong, #checkoutReviewContent strong { text-align: right; overflow-wrap: anywhere; }
.checkout-composition-total { border: 0; padding-bottom: 0; font-size: 20px; }
.checkout-review-actions, .order-success-modal .secondary-button { display: flex; gap: 10px; margin-top: 18px; }
.secondary-button { min-height: 46px; padding: 11px 18px; border: 1px solid #d0d5dd; border-radius: 10px; color: #344054; background: #fff; font-weight: 750; cursor: pointer; }
#orderSuccessSummary { font-weight: 750; overflow-wrap: anywhere; }

@media (max-width: 600px) {
    .cart-modal, .checkout-modal { width: 100vw; max-width: none; max-height: 100dvh; min-height: 100dvh; margin: 0; border-radius: 0; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
    .cart-item { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; }
    .cart-item-visual { width: 58px; height: 58px; }
    .cart-item-controls { grid-column: 1 / -1; width: 100%; justify-content: space-between; }
    .cart-quantity button { width: 44px; height: 44px; }
    .cart-summary { position: static; }
    .checkout-composition-item, #checkoutReviewContent > div { align-items: flex-start; flex-direction: column; gap: 4px; }
    .checkout-composition-item strong, #checkoutReviewContent strong { text-align: left; }
    .checkout-review-actions { flex-direction: column-reverse; }
    .checkout-review-actions > * { width: 100%; }
}

/* Stage 5.8.1 pickup warehouse information */
.pickup-point-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    margin: 16px 0 22px;
    padding: 18px;
    border: 1px solid #d8e2ec;
    border-radius: 16px;
    color: #344054;
    background: #f7fafc;
}
.pickup-point-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
    color: #b54708;
    background: #ffead5;
    font-size: 25px;
    font-weight: 800;
}
.pickup-point-card h4 { margin: 1px 0 8px; color: #1d2939; font-size: 17px; }
.pickup-point-card address { margin: 0 0 10px; color: #101828; font-size: 16px; font-style: normal; font-weight: 800; overflow-wrap: anywhere; }
.pickup-point-card p { margin: 0 0 10px; line-height: 1.55; overflow-wrap: anywhere; }
.pickup-point-card .pickup-point-notice { margin: 12px 0 0; padding: 11px 12px; border-radius: 10px; color: #7a4b13; background: #fff4e5; font-size: 13px; }
.pickup-point-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pickup-map-link,
.pickup-copy-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 10px 14px; border: 1px solid #ff6b00; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.pickup-map-link { color: #fff; background: #ff6b00; }
.pickup-copy-button { color: #b54708; background: #fff; }
.pickup-map-link:hover { background: #e85f00; }
.pickup-copy-button:hover { background: #fff5eb; }
.pickup-map-link:focus-visible,
.pickup-copy-button:focus-visible { outline: 3px solid rgba(255, 107, 0, .3); outline-offset: 3px; }
.clipboard-fallback { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }
.checkout-review-pickup { grid-column: 1 / -1; border-bottom: 1px solid #d8e2ec !important; }
#orderSuccessPickupPoint { text-align: left; }
@media (max-width: 430px) {
    .pickup-point-card { grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 14px; }
    .pickup-point-icon { width: 38px; height: 38px; font-size: 21px; }
    .pickup-point-card address { font-size: 15px; }
    .pickup-point-actions { flex-direction: column; }
    .pickup-map-link, .pickup-copy-button { width: 100%; }
}

/* ==================================================================
   STAGE 5.5 — PRODUCT EXPERIENCE
   ================================================================== */

.product-detail-card {
    grid-column: 1 / -1;
    overflow: hidden;
    border: 1px solid #e5e9f0;
    border-radius: 28px;
    background: #ffffff;
    box-shadow:
        0 24px 70px rgba(23, 33, 48, 0.09),
        0 2px 8px rgba(23, 33, 48, 0.04);
}

.product-detail-summary {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
    min-height: 510px;
}

.product-detail-media {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 54px 46px 38px;
    background:
        radial-gradient(circle at 24% 18%, rgba(255, 107, 0, 0.12), transparent 35%),
        linear-gradient(145deg, #f7f9fc 0%, #edf1f6 100%);
}

.product-detail-media::after {
    content: "";
    position: absolute;
    inset: 28px;
    border: 1px solid rgba(145, 158, 171, 0.18);
    border-radius: 24px;
    pointer-events: none;
}

.product-detail-photo-label {
    position: absolute;
    z-index: 2;
    top: 26px;
    left: 28px;
    padding: 8px 12px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 999px;
    color: #667085;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 6px 18px rgba(23, 33, 48, 0.06);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    backdrop-filter: blur(8px);
}

.product-detail-image {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    height: 330px;
    object-fit: contain;
    filter: drop-shadow(0 22px 24px rgba(29, 41, 57, 0.13));
}

.product-detail-media.is-placeholder .product-detail-image {
    width: min(76%, 330px);
    opacity: 0.9;
    filter: drop-shadow(0 18px 20px rgba(29, 41, 57, 0.1));
}

.product-detail-gallery {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 24px;
}

.product-detail-thumbnail {
    width: 66px;
    height: 66px;
    overflow: hidden;
    padding: 5px;
    border: 1px solid #dfe4ea;
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
}

.product-detail-thumbnail.is-active {
    border-color: #ff6b00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

.product-detail-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: 58px clamp(38px, 5vw, 72px);
}

.product-detail-brand {
    margin-bottom: 14px;
    color: #ff6b00;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-detail-title {
    max-width: 720px;
    margin: 0 0 16px;
    color: #17212f;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.product-detail-article {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin-bottom: 22px;
    padding: 8px 13px;
    border: 1px solid #e2e7ed;
    border-radius: 10px;
    color: #475467;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.025em;
}

.product-availability {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
}

.product-availability::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px currentColor;
    opacity: 0.82;
}

.product-availability-in_stock {
    color: #087443;
    background: #eaf8f1;
}

.product-availability-low_stock {
    color: #a15c00;
    background: #fff4df;
}

.product-availability-on_order {
    color: #3159a5;
    background: #edf3ff;
}

.product-availability-out_of_stock {
    color: #9b2c2c;
    background: #fff0f0;
}

.product-detail-purchase {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr);
    gap: 18px 24px;
    width: 100%;
    padding-top: 26px;
    border-top: 1px solid #edf0f4;
}

.product-detail-price-block,
.product-detail-delivery {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.product-detail-price-block > span,
.product-detail-delivery > span {
    color: #7a8494;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-detail-price {
    color: #17212f;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 950;
    letter-spacing: -0.03em;
}

.product-detail-delivery strong {
    color: #344054;
    font-size: 18px;
    line-height: 1.35;
}

.product-detail-cart-button {
    grid-column: 1 / -1;
    min-height: 58px;
    margin-top: 4px;
    border: 0;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff7a1a 0%, #f05b00 100%);
    box-shadow: 0 14px 28px rgba(240, 91, 0, 0.24);
    font: inherit;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.product-detail-cart-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(240, 91, 0, 0.3);
}

.product-detail-cart-button:disabled {
    color: #7a8494;
    background: #e6e9ee;
    box-shadow: none;
    cursor: not-allowed;
}

.product-detail-information {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 28px;
    border-top: 1px solid #edf0f4;
    background: #f8fafc;
}

.product-detail-section,
.product-detail-references {
    min-width: 0;
    padding: 26px;
    border: 1px solid #e7ebf0;
    border-radius: 20px;
    background: #ffffff;
}

.product-detail-section h3,
.product-reference-block h3 {
    margin: 0 0 16px;
    color: #1d2939;
    font-size: 18px;
    font-weight: 900;
}

.product-detail-description,
.product-reference-empty {
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.65;
}

.product-specifications {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(140px, 1.2fr);
    gap: 0;
    margin: 0;
}

.product-specifications dt,
.product-specifications dd {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f4;
    font-size: 14px;
    line-height: 1.4;
}

.product-specifications dt {
    color: #7a8494;
}

.product-specifications dd {
    color: #27364a;
    font-weight: 800;
    text-align: right;
    overflow-wrap: anywhere;
}

.product-detail-references {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.product-reference-block + .product-reference-block {
    padding-left: 24px;
    border-left: 1px solid #edf0f4;
}

.product-reference-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-reference-chip {
    padding: 8px 11px;
    border-radius: 9px;
    color: #344054;
    background: #f1f4f7;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .product-detail-summary {
        grid-template-columns: 1fr;
    }

    .product-detail-media {
        min-height: 410px;
        padding: 48px 36px 30px;
    }

    .product-detail-image {
        height: 280px;
    }

    .product-detail-content {
        padding: 42px 36px;
    }
}

@media (max-width: 680px) {
    .product-detail-card {
        border-radius: 20px;
    }

    .product-detail-media {
        min-height: 330px;
        padding: 48px 24px 24px;
    }

    .product-detail-media::after {
        inset: 16px;
        border-radius: 17px;
    }

    .product-detail-photo-label {
        top: 18px;
        left: 20px;
    }

    .product-detail-image {
        height: 230px;
    }

    .product-detail-content {
        padding: 34px 24px;
    }

    .product-detail-title {
        font-size: clamp(29px, 9vw, 40px);
    }

    .product-detail-purchase,
    .product-detail-information,
    .product-detail-references {
        grid-template-columns: 1fr;
    }

    .product-detail-information {
        gap: 14px;
        padding: 14px;
    }

    .product-detail-section,
    .product-detail-references {
        padding: 21px;
        border-radius: 16px;
    }

    .product-reference-block + .product-reference-block {
        padding-top: 20px;
        padding-left: 0;
        border-top: 1px solid #edf0f4;
        border-left: 0;
    }
}

@media (max-width: 420px) {
    .product-detail-media {
        min-height: 290px;
    }

    .product-detail-image {
        height: 190px;
    }

    .product-detail-content {
        padding: 30px 19px;
    }

    .product-specifications {
        grid-template-columns: 1fr;
    }

    .product-specifications dt {
        padding-bottom: 3px;
        border-bottom: 0;
    }

    .product-specifications dd {
        padding-top: 3px;
        text-align: left;
    }
}

:root {
    --dark: #111827;
    --dark-soft: #1f2937;
    --accent: #ff6b00;
    --accent-hover: #e95f00;
    --background: #f3f4f6;
    --white: #ffffff;
    --text: #18212f;
    --muted: #6b7280;
    --border: #e5e7eb;
    --success: #18864b;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.header {
    background: var(--dark);
    color: var(--white);
    border-bottom: 3px solid var(--accent);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: baseline;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo-main {
    font-size: 30px;
}

.logo-number {
    margin-left: 4px;
    color: var(--accent);
    font-size: 30px;
}

.header-text {
    color: #d1d5db;
    font-size: 14px;
}

main {
    flex: 1;
}

.hero {
    padding: 42px 0 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 107, 0, 0.16), transparent 35%),
        linear-gradient(135deg, #111827, #1f2937);
}

.hero-card {
    max-width: 820px;
    padding: 42px;
    color: var(--white);
}

.hero-label {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 107, 0, 0.65);
    border-radius: 999px;
    color: #ffb47d;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.02;
    letter-spacing: -2px;
}

.hero-description {
    max-width: 650px;
    margin: 20px 0 28px;
    color: #d1d5db;
    font-size: 17px;
    line-height: 1.55;
}

.search-box {
    display: flex;
    max-width: 760px;
    padding: 6px;
    border-radius: 14px;
    background: var(--white);
}

.search-box input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 15px 16px;
    color: var(--text);
    background: transparent;
    font-size: 18px;
}

.search-box button,
.request-button {
    border: 0;
    border-radius: 10px;
    padding: 0 28px;
    color: var(--white);
    background: var(--accent);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.search-box button:hover,
.request-button:hover {
    background: var(--accent-hover);
}

.examples {
    margin-top: 15px;
    color: #9ca3af;
    font-size: 13px;
}

.example {
    margin-left: 8px;
    border: 0;
    color: #ffb47d;
    background: transparent;
    cursor: pointer;
    text-decoration: underline;
}

.results-section {
    padding: 34px 0 56px;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.result-header h2 {
    margin: 0;
}

.result-header span {
    color: var(--muted);
}

.products {
    display: grid;
    gap: 14px;
}

.product {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 0.8fr 0.8fr auto;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 6px 22px rgba(17, 24, 39, 0.05);
}

.product-brand {
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.product-article {
    margin-top: 5px;
    font-size: 18px;
    font-weight: 800;
}

.product-name {
    line-height: 1.4;
}

.product-label {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
}

.product-stock {
    color: var(--success);
    font-weight: 800;
}

.product-price {
    font-size: 21px;
    font-weight: 900;
    white-space: nowrap;
}

.product-button {
    border: 1px solid var(--accent);
    border-radius: 9px;
    padding: 11px 18px;
    color: var(--accent);
    background: var(--white);
    font-weight: 800;
    cursor: pointer;
}

.welcome-block,
.empty-result {
    padding: 54px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: var(--white);
    text-align: center;
}

.welcome-block h2,
.empty-result h2 {
    margin: 12px 0 8px;
}

.welcome-block p,
.empty-result p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.5;
}

.welcome-icon,
.empty-icon {
    font-size: 40px;
}

.request-button {
    margin-top: 20px;
    padding: 13px 22px;
}

.footer {
    padding: 20px 0;
    color: #9ca3af;
    background: var(--dark);
    font-size: 13px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.hidden {
    display: none !important;
}

@media (max-width: 820px) {
    .header-text {
        display: none;
    }

    .hero-card {
        padding: 26px 0;
    }

    .search-box {
        flex-direction: column;
        background: transparent;
    }

    .search-box input {
        border-radius: 10px;
        background: var(--white);
    }

    .search-box button {
        margin-top: 8px;
        padding: 15px;
    }

    .examples {
        line-height: 2;
    }

    .product {
        grid-template-columns: 1fr 1fr;
    }

    .product-name {
        grid-column: 1 / -1;
    }

    .product-button {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 20px, 1120px);
    }

    .hero {
        padding-top: 20px;
    }

    h1 {
        letter-spacing: -1px;
    }

    .product {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px;
    }

    .product-name {
        grid-column: auto;
    }

    .footer-inner {
        flex-direction: column;
        gap: 6px;
    }
}


/* Stage 7.5A — customer order archive */
.orders-modal-header {
    margin-bottom: 0;
}

.orders-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.orders-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.orders-tabs button {
    min-height: 38px;
    margin: 0;
    border: 0;
    border-radius: 9px;
    padding: 8px 13px;
    color: rgba(255, 255, 255, 0.65);
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.orders-tabs button[aria-selected="true"] {
    color: #fff;
    background: rgba(255, 107, 0, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 132, 52, 0.28);
}

.orders-tabs span {
    display: inline-grid;
    min-width: 20px;
    min-height: 20px;
    place-items: center;
    margin-left: 4px;
    border-radius: 999px;
    padding: 0 5px;
    color: inherit;
    background: rgba(255, 255, 255, 0.1);
    font-size: 11px;
}

.parton-orders-list-column .order-card,
.orders-modal .order-card {
    overflow: visible !important;
}

.parton-orders-list-column .order-card::after {
    display: none !important;
}

.order-card-open {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 0;
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.order-card:has(.order-card-actions) .order-card-top {
    padding-right: 42px;
}

.order-card-actions {
    position: absolute;
    top: 12px;
    right: 11px;
    z-index: 5;
}

.order-card-menu-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0 0 7px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(13, 21, 32, 0.78);
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.order-card-menu-button:hover,
.order-card-menu-button[aria-expanded="true"] {
    border-color: rgba(255, 126, 40, 0.7);
    color: #fff;
    background: #2b211c;
}

.order-card-menu-button:focus-visible,
.order-card-menu button:focus-visible,
.order-archive-hint button:focus-visible,
.orders-tabs button:focus-visible,
.order-archive-toast button:focus-visible {
    outline: 3px solid #ff9a4f;
    outline-offset: 2px;
}

.order-card-menu {
    position: absolute;
    top: 44px;
    right: 0;
    width: max-content;
    min-width: 184px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 11px;
    padding: 5px;
    background: #1a2432;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
}

.order-card-menu button {
    width: 100%;
    min-height: 38px;
    margin: 0;
    border: 0;
    border-radius: 8px;
    padding: 9px 11px;
    color: #fff;
    background: transparent;
    text-align: left;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.order-card-menu button:hover {
    background: rgba(255, 107, 0, 0.16);
}

.order-card-menu button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.order-archive-hint {
    position: absolute;
    top: 46px;
    right: 0;
    width: min(310px, calc(100vw - 48px));
    border: 1px solid rgba(255, 159, 87, 0.5);
    border-radius: 14px;
    padding: 15px;
    color: #fff;
    background: #253143;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
    text-align: left;
}

.order-archive-hint::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 14px;
    width: 11px;
    height: 11px;
    border-left: 1px solid rgba(255, 159, 87, 0.5);
    border-top: 1px solid rgba(255, 159, 87, 0.5);
    background: #253143;
    transform: rotate(45deg);
}

.order-archive-hint strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.order-archive-hint p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.5;
}

.order-archive-hint button {
    min-height: 36px;
    margin: 0;
    border: 0;
    border-radius: 9px;
    padding: 8px 13px;
    color: #fff;
    background: #ff6b00;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.order-archive-toast {
    position: fixed;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 1200;
    max-width: calc(100vw - 32px);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 13px;
    padding: 12px 14px 12px 16px;
    color: #fff;
    background: #1b2634;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
    transform: translateX(-50%);
    font-size: 14px;
}

.order-archive-toast button {
    min-height: 38px;
    margin: 0;
    border: 0;
    border-radius: 9px;
    padding: 8px 12px;
    color: #ff9b51;
    background: rgba(255, 107, 0, 0.14);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

@media (max-width: 520px) {
    .orders-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .orders-tabs,
    .orders-toolbar .verification-button {
        width: 100%;
    }

    .orders-tabs button {
        flex: 1 1 50%;
    }

    .order-archive-hint {
        position: fixed;
        top: max(96px, env(safe-area-inset-top));
        right: 16px;
        left: 16px;
        width: auto;
        max-width: 358px;
        margin: 0 auto;
    }

    .order-archive-hint::before {
        display: none;
    }

    .order-archive-toast {
        width: calc(100vw - 28px);
        justify-content: space-between;
        gap: 10px;
        font-size: 13px;
    }
}

/* Final interaction polish */
.modal-close:focus-visible,
.catalog-empty-state button:focus-visible,
.catalog-brand-card:focus-visible,
.catalog-alphabet button:focus-visible {
    outline: 3px solid rgba(255, 107, 0, .3);
    outline-offset: 3px;
}

button:disabled,
select:disabled,
input:disabled {
    cursor: not-allowed;
}

/* Состояние настоящего поиска через API */
.search-box input:disabled {
    opacity: 0.85;
}

.search-box button:disabled {
    cursor: wait;
    opacity: 0.75;
}

.product-label + div + .product-label {
    margin-top: 8px;
}


/* ==================================================================
   ЭТАП 3.3A — ШАПКА МАГАЗИНА И МОДАЛЬНОЕ ОКНО АККАУНТА
   ================================================================== */

body.modal-open {
    overflow: hidden;
}

.logo {
    color: var(--white);
    text-decoration: none;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.navigation-link {
    border: 0;
    border-radius: 9px;
    padding: 10px 12px;
    color: #d1d5db;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.navigation-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-button,
.account-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    padding: 9px 13px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.cart-button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.account-button {
    border: 1px solid var(--accent);
    color: var(--white);
    background: var(--accent);
}

.cart-button:hover,
.account-button:hover {
    transform: translateY(-1px);
}

.cart-button:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
}

.account-button:hover {
    background: var(--accent-hover);
}

.cart-icon,
.account-icon {
    font-size: 16px;
}

.cart-count {
    min-width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 6px;
    color: var(--dark);
    background: var(--white);
    font-size: 12px;
    font-weight: 900;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(9, 14, 25, 0.76);
    backdrop-filter: blur(7px);
    overflow-y: auto;
}

.account-modal {
    position: relative;
    width: min(100%, 560px);
    margin: auto;
    padding: 34px;
    border: 1px solid rgba(255, 107, 0, 0.22);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    animation: account-modal-in 0.2s ease-out;
}

@keyframes account-modal-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 17px;
    right: 17px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: var(--muted);
    background: #f3f4f6;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--dark);
    background: #e5e7eb;
}

.modal-logo {
    display: flex;
    align-items: baseline;
    margin-bottom: 22px;
    font-weight: 900;
    letter-spacing: -1px;
}

.modal-logo .logo-main,
.modal-logo .logo-number {
    font-size: 25px;
}

.modal-heading {
    margin-bottom: 25px;
}

.modal-heading h2 {
    margin: 10px 0 8px;
    font-size: 30px;
    letter-spacing: -0.7px;
}

.modal-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.modal-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--accent-hover);
    background: rgba(255, 107, 0, 0.1);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.registration-form {
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field > span {
    color: var(--dark-soft);
    font-size: 13px;
    font-weight: 800;
}

.form-field input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d7dce3;
    border-radius: 11px;
    outline: none;
    padding: 12px 14px;
    color: var(--text);
    background: var(--white);
    font: inherit;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.11);
}

.form-field input::placeholder {
    color: #9ca3af;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 94px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    border: 0;
    border-radius: 8px;
    padding: 7px 9px;
    color: var(--accent-hover);
    background: rgba(255, 107, 0, 0.08);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transform: translateY(-50%);
}

.registration-submit {
    min-height: 51px;
    border: 0;
    border-radius: 11px;
    color: var(--white);
    background: var(--accent);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.registration-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.form-legal {
    margin: -4px 0 0;
    color: #8a929f;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.form-message {
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 13px;
    line-height: 1.4;
}

.form-message.error {
    color: #a61b1b;
    background: #feecec;
}

.form-message.success {
    color: #116b3b;
    background: #e9f8ef;
}

.login-offer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

.login-offer button {
    border: 0;
    padding: 3px;
    color: var(--accent-hover);
    background: transparent;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 1040px) {
    .main-navigation {
        display: none;
    }
}

@media (max-width: 720px) {
    .header-inner {
        min-height: 64px;
        gap: 10px;
    }

    .logo-main,
    .logo-number {
        font-size: 25px;
    }

    .cart-text {
        display: none;
    }

    .account-button span:last-child {
        display: none;
    }

    .cart-button,
    .account-button {
        min-width: 43px;
        padding: 8px 10px;
    }

    .cart-button {
        gap: 5px;
    }
}

@media (max-width: 520px) {
    .modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .account-modal {
        width: 100%;
        max-height: 94vh;
        overflow-y: auto;
        margin: 0;
        padding: 28px 20px 24px;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 22px 22px 0 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-heading h2 {
        font-size: 26px;
    }
}


/* ==================================================================
   ЭТАП 3.3B — СОСТОЯНИЕ ОТПРАВКИ ФОРМЫ
   ================================================================== */

.registration-submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.form-field input:disabled,
.password-toggle:disabled {
    cursor: wait;
    opacity: 0.75;
}

.form-message {
    overflow-wrap: anywhere;
}


/* ==================================================================
   ЭТАП 3.4 — СЕССИИ, ВХОД И УВЕДОМЛЕНИЯ
   ================================================================== */

.site-toast {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 2000;
    max-width: min(420px, calc(100% - 32px));
    padding: 15px 18px;
    border-radius: 12px;
    color: #116b3b;
    background: #e9f8ef;
    box-shadow: 0 14px 40px rgba(17, 24, 39, 0.2);
    font-size: 14px;
    font-weight: 800;
    animation: account-modal-in 0.2s ease-out;
}

.site-toast.error {
    color: #a61b1b;
    background: #feecec;
}

#profileView {
    padding: 8px 0;
}

@media (max-width: 520px) {
    .site-toast {
        top: 74px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}


/* ==================================================================
   ЭТАП 3.5 — ПОДТВЕРЖДЕНИЕ EMAIL
   ================================================================== */

.verification-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 16px;
    background: #f8fafc;
}

.verification-status {
    margin-bottom: 5px;
    font-weight: 900;
}

.verification-status.pending {
    color: #b45309;
}

.verification-status.verified {
    color: var(--success);
}

.verification-description {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.verification-button {
    flex: 0 0 auto;
    border: 1px solid var(--accent);
    border-radius: 9px;
    padding: 10px 13px;
    color: var(--accent-hover);
    background: var(--white);
    font-weight: 800;
    cursor: pointer;
}

.verification-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.verification-link-box {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 107, 0, 0.25);
    border-radius: 12px;
    padding: 14px;
    background: rgba(255, 107, 0, 0.06);
    font-size: 12px;
}

.verification-link-box a {
    overflow-wrap: anywhere;
    color: var(--accent-hover);
    font-weight: 700;
}

.verification-link-box small {
    color: var(--muted);
    line-height: 1.4;
}

@media (max-width: 520px) {
    .verification-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .verification-button {
        width: 100%;
    }
}


/* ==================================================================
   ЭТАП 4.1 — КОРЗИНА
   ================================================================== */

.cart-modal {
    position: relative;
    width: min(100%, 820px);
    max-height: min(88vh, 850px);
    overflow-y: auto;
    margin: auto;
    border-radius: 22px;
    padding: 30px;
    background: var(--white);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.cart-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.cart-modal-header h2 {
    margin: 8px 0 0;
    font-size: 30px;
}

.cart-state {
    padding: 44px 20px;
    color: var(--muted);
    text-align: center;
}

.cart-state h3 {
    margin: 12px 0 7px;
    color: var(--text);
    font-size: 22px;
}

.cart-state p {
    margin: 0;
}

.cart-items {
    display: grid;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 17px;
    background: #fafbfc;
}

.cart-item-details {
    min-width: 0;
}

.cart-item-brand {
    color: var(--accent-hover);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.cart-item-article {
    margin-top: 3px;
    font-size: 16px;
    font-weight: 900;
}

.cart-item-name {
    margin-top: 8px;
    color: var(--text);
    line-height: 1.4;
}

.cart-item-delivery {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.cart-item-controls {
    min-width: 180px;
    display: grid;
    align-content: center;
    justify-items: end;
    gap: 10px;
}

.cart-quantity {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--white);
}

.cart-quantity button {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}

.cart-quantity button:hover:not(:disabled) {
    background: #f1f3f5;
}

.cart-quantity button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.cart-quantity span {
    min-width: 38px;
    text-align: center;
    font-weight: 900;
}

.cart-item-price {
    display: grid;
    justify-items: end;
    gap: 3px;
}

.cart-item-price span {
    color: var(--muted);
    font-size: 12px;
}

.cart-item-price strong {
    font-size: 18px;
}

.cart-delete-button {
    border: 0;
    padding: 3px;
    color: #b42318;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.cart-summary {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.cart-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.cart-total-row {
    font-size: 22px;
}

.cart-summary small {
    color: var(--muted);
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 700px) {
    .cart-modal {
        width: 100%;
        max-height: 94vh;
        margin: 0;
        border-radius: 22px 22px 0 0;
        padding: 24px 18px;
    }

    #cartModal {
        align-items: flex-end;
        padding: 0;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cart-item-controls {
        min-width: 0;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        justify-items: start;
    }

    .cart-item-price {
        justify-items: start;
    }
}


/* ==================================================================
   ЭТАП 4.2B — ОФОРМЛЕНИЕ И МОИ ЗАКАЗЫ
   ================================================================== */

.checkout-modal,
.order-details-modal {
    position: relative;
    width: min(100%, 760px);
    max-height: min(92vh, 920px);
    overflow-y: auto;
    margin: auto;
    border-radius: 22px;
    padding: 32px;
    background: var(--white);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.checkout-form {
    display: grid;
    gap: 18px;
}

.checkout-form h3 {
    margin: 6px 0 -4px;
    font-size: 17px;
}

.checkout-form textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text);
    background: var(--white);
    font: inherit;
}

.checkout-options {
    display: grid;
    gap: 10px;
}

.checkout-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    background: #fafbfc;
    cursor: pointer;
}

.checkout-option:has(input:checked) {
    border-color: var(--accent);
    background: rgba(255, 107, 0, 0.06);
}

.checkout-option input {
    margin-top: 3px;
}

.checkout-option span {
    display: grid;
    gap: 3px;
}

.checkout-option small,
.checkout-note {
    color: var(--muted);
    line-height: 1.4;
}

.checkout-delivery-fields {
    display: grid;
    gap: 14px;
}

.order-success-modal {
    width: min(100%, 480px);
    margin: auto;
    border-radius: 22px;
    padding: 42px 32px;
    background: var(--white);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.order-success-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    color: #116b3b;
    background: #e9f8ef;
    font-size: 42px;
    font-weight: 900;
}

.order-success-modal h2 {
    margin: 0 0 12px;
}

.order-success-number {
    display: block;
    margin: 12px 0 18px;
    color: var(--accent-hover);
    font-size: 28px;
}

.profile-orders-section {
    margin: 20px 0;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.profile-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.profile-section-heading h3 {
    margin: 0 0 5px;
}

.profile-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.orders-state {
    padding: 18px;
    color: var(--muted);
    text-align: center;
}

.orders-list {
    display: grid;
    gap: 9px;
}

.order-card {
    width: 100%;
    display: grid;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    color: var(--text);
    background: #fafbfc;
    text-align: left;
    cursor: pointer;
}

.order-card:hover {
    border-color: var(--accent);
}

.order-card-top,
.order-card-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.order-card-number {
    font-size: 16px;
}

.order-card-details {
    color: var(--muted);
    font-size: 12px;
}

.order-card-details strong {
    color: var(--text);
    font-size: 15px;
}

.order-status {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 6px 10px;
    color: #8a4b08;
    background: #fff4d8;
    font-size: 12px;
    font-weight: 900;
}

.order-status-confirmed {
    color: #174ea6;
    background: #e8f0fe;
}

.order-status-preparing {
    color: #9a3412;
    background: #ffedd5;
}

.order-status-in_transit {
    color: #6b21a8;
    background: #f3e8ff;
}

.order-status-ready_for_pickup,
.order-status-completed {
    color: #116b3b;
    background: #e9f8ef;
}

.order-status-clarification_required {
    color: #92400e;
    background: #fef3c7;
}

.order-status-cancelled {
    color: #a61b1b;
    background: #feecec;
}

.order-details-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.order-details-heading h2 {
    margin: 0;
}

.order-details-heading p {
    margin: 0;
    color: var(--muted);
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.order-info-grid > div {
    display: grid;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
}

.order-info-grid span {
    color: var(--muted);
    font-size: 12px;
}

.order-items-list {
    display: grid;
    gap: 10px;
}

.order-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    background: #fafbfc;
}

.order-item p {
    margin: 5px 0;
}

.order-item small {
    color: var(--muted);
}

.order-item-price {
    display: grid;
    align-content: center;
    justify-items: end;
    gap: 5px;
}

.order-item-price span {
    color: var(--muted);
    font-size: 12px;
}

.order-details-total {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 18px 0 24px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
    font-size: 20px;
}

.order-comment {
    margin-bottom: 24px;
    border-radius: 12px;
    padding: 14px;
    background: #f8fafc;
}

.order-comment p {
    margin: 7px 0 0;
}

.order-history {
    display: grid;
    gap: 0;
}

.order-history-item {
    position: relative;
    display: grid;
    gap: 4px;
    margin-left: 8px;
    border-left: 2px solid var(--border);
    padding: 0 0 22px 22px;
}

.order-history-dot {
    position: absolute;
    top: 3px;
    left: -7px;
    width: 12px;
    height: 12px;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--accent);
}

.order-history-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.4;
}

.order-history-item small {
    color: var(--muted);
}

@media (max-width: 650px) {
    .checkout-modal,
    .order-details-modal {
        width: 100%;
        max-height: 94vh;
        margin: 0;
        border-radius: 22px 22px 0 0;
        padding: 25px 18px;
    }

    #checkoutModal,
    #orderDetailsModal {
        align-items: flex-end;
        padding: 0;
    }

    .order-info-grid {
        grid-template-columns: 1fr;
    }

    .order-item {
        grid-template-columns: 1fr;
    }

    .order-item-price {
        justify-items: start;
    }

    .profile-section-heading {
        flex-direction: column;
    }

    .order-card-top,
    .order-card-details {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ==================================================================
   STAGE 5.6 — CUSTOMER EXPERIENCE
   ================================================================== */

@keyframes customer-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes customer-spin {
    to { transform: rotate(360deg); }
}

@keyframes customer-product-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.992);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes customer-toast-in {
    from {
        opacity: 0;
        transform: translate3d(18px, -8px, 0) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.product-skeleton {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(380px, 1.1fr);
    min-height: 500px;
    overflow: hidden;
    border: 1px solid #e7ebf0;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(23, 33, 48, 0.07);
}

.skeleton-shimmer {
    background:
        linear-gradient(
            105deg,
            #edf1f5 20%,
            #f8fafc 38%,
            #edf1f5 56%
        );
    background-size: 220% 100%;
    animation: customer-shimmer 1.35s linear infinite;
}

.product-skeleton-media {
    min-height: 500px;
}

.product-skeleton-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 17px;
    padding: 56px clamp(36px, 5vw, 70px);
}

.product-skeleton-line {
    display: block;
    height: 18px;
    border-radius: 999px;
}

.product-skeleton-line.is-title {
    height: 54px;
    border-radius: 16px;
}

.product-loading-indicator {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    color: #475467;
    font-size: 14px;
}

.product-loading-spinner,
.button-spinner {
    display: inline-block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 0, 0.18);
    border-top-color: #ff6b00;
    border-radius: 50%;
    animation: customer-spin 0.75s linear infinite;
}

.search-box button.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.search-box button .button-spinner {
    width: 17px;
    height: 17px;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
}

.product-detail-card {
    animation: customer-product-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.empty-result {
    position: relative;
    overflow: hidden;
    max-width: 720px;
    margin: 18px auto 0;
    padding: 52px 34px;
    border: 1px solid #e6eaf0;
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 107, 0, 0.1), transparent 42%),
        #ffffff;
    box-shadow: 0 22px 60px rgba(23, 33, 48, 0.08);
    text-align: center;
}

.empty-result .empty-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin: 0 auto 20px;
    border: 1px solid rgba(255, 107, 0, 0.16);
    border-radius: 24px;
    background: #fff6ef;
    font-size: 34px;
    transform: rotate(-3deg);
}

.empty-result h2 {
    margin-bottom: 10px;
    color: #1d2939;
    font-size: clamp(24px, 4vw, 32px);
    letter-spacing: -0.025em;
}

.empty-result p {
    max-width: 500px;
    margin: 0 auto 24px;
    color: #667085;
    line-height: 1.6;
}

.empty-result .request-button {
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background: #27364a;
    box-shadow: 0 10px 22px rgba(39, 54, 74, 0.16);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.empty-result .request-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(39, 54, 74, 0.22);
}

.site-toast {
    top: 92px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 12px;
    width: min(430px, calc(100% - 32px));
    max-width: none;
    padding: 15px;
    border: 1px solid #dce4df;
    border-left: 4px solid #159455;
    border-radius: 17px;
    color: #27364a;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 55px rgba(17, 24, 39, 0.2);
    font-size: 14px;
    font-weight: 400;
    backdrop-filter: blur(14px);
    animation: customer-toast-in 220ms ease-out both;
}

.site-toast.error {
    border-color: #f2d7d7;
    border-left-color: #d64545;
    color: #27364a;
    background: rgba(255, 255, 255, 0.97);
}

.site-toast.info {
    border-color: #d8e2f3;
    border-left-color: #4976c6;
}

.site-toast.is-leaving {
    opacity: 0;
    transform: translateX(16px) scale(0.97);
    transition: opacity 180ms ease, transform 180ms ease;
}

.site-toast-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #ffffff;
    background: #159455;
    font-size: 20px;
    font-weight: 950;
}

.site-toast.error .site-toast-icon {
    background: #d64545;
}

.site-toast.info .site-toast-icon {
    background: #4976c6;
}

.site-toast-content {
    min-width: 0;
}

.site-toast-content strong {
    display: block;
    margin-bottom: 3px;
    color: #1d2939;
    font-size: 14px;
    font-weight: 900;
}

.site-toast-content p {
    margin: 0;
    color: #667085;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.site-toast-close {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: #7a8494;
    background: transparent;
    font: inherit;
    font-size: 21px;
    cursor: pointer;
}

.site-toast-close:hover {
    color: #27364a;
    background: #f1f4f7;
}

.customer-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(13, 20, 31, 0.58);
    opacity: 0;
    backdrop-filter: blur(8px);
    transition: opacity 160ms ease;
}

.customer-dialog-backdrop.is-visible {
    opacity: 1;
}

.customer-dialog-backdrop.is-closing {
    opacity: 0;
}

.customer-dialog {
    width: min(100%, 500px);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 30px 90px rgba(9, 15, 25, 0.32);
    transform: translateY(14px) scale(0.97);
    transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.customer-dialog-backdrop.is-visible .customer-dialog {
    transform: translateY(0) scale(1);
}

.customer-dialog-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 16px;
    color: #a73333;
    background: #fff0f0;
    font-size: 25px;
    font-weight: 900;
}

.customer-dialog h2 {
    margin: 0 0 9px;
    color: #1d2939;
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.customer-dialog > p {
    margin: 0 0 20px;
    color: #667085;
    line-height: 1.55;
}

.customer-dialog-textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
    padding: 14px 15px;
    border: 1px solid #d8dee7;
    border-radius: 13px;
    color: #27364a;
    background: #fbfcfd;
    font: inherit;
    line-height: 1.5;
    outline: none;
}

.customer-dialog-textarea:focus {
    border-color: #ff7a1a;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.12);
}

.customer-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
}

.customer-dialog-actions button {
    min-height: 48px;
    border-radius: 12px;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.customer-dialog-secondary {
    border: 1px solid #d8dee7;
    color: #344054;
    background: #ffffff;
}

.customer-dialog-danger {
    border: 1px solid #c83d3d;
    color: #ffffff;
    background: #c83d3d;
    box-shadow: 0 10px 20px rgba(200, 61, 61, 0.18);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 104px;
}

.password-toggle {
    right: 7px;
    min-width: 86px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 9px;
    color: #475467;
    background: #f1f4f7;
    font-size: 12px;
    font-weight: 850;
    transition: color 150ms ease, background 150ms ease;
}

.password-toggle:hover {
    color: #d95300;
    background: #fff1e7;
}

.password-toggle[aria-pressed="true"] {
    color: #ffffff;
    background: #344054;
}

@media (max-width: 760px) {
    .product-skeleton {
        grid-template-columns: 1fr;
        min-height: 620px;
        border-radius: 20px;
    }

    .product-skeleton-media {
        min-height: 300px;
    }

    .product-skeleton-content {
        padding: 34px 24px;
    }

    .product-skeleton-line.is-title {
        height: 42px;
    }

    .result-header {
        align-items: flex-start;
        gap: 6px;
    }

    .result-header span {
        line-height: 1.45;
    }
}

@media (max-width: 520px) {
    .site-toast {
        top: auto;
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        grid-template-columns: 36px minmax(0, 1fr) 28px;
        padding: 13px;
        border-radius: 15px;
    }

    .site-toast-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .empty-result {
        padding: 38px 20px;
        border-radius: 20px;
    }

    .empty-result .empty-icon {
        width: 66px;
        height: 66px;
        border-radius: 20px;
        font-size: 29px;
    }

    .customer-dialog {
        padding: 23px 19px;
        border-radius: 20px;
    }

    .customer-dialog-actions {
        grid-template-columns: 1fr;
    }

    .customer-dialog-secondary {
        order: 2;
    }

    .password-field input {
        padding-right: 94px;
    }

    .password-toggle {
        min-width: 78px;
        padding: 0 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-shimmer,
    .product-loading-spinner,
    .button-spinner,
    .product-detail-card,
    .site-toast {
        animation: none !important;
    }

    .customer-dialog-backdrop,
    .customer-dialog,
    .site-toast.is-leaving {
        transition: none !important;
    }
}

/* ==================================================================
   STAGE 5.6.1 — COMPACT SEARCH GROUPS AND OFFER VARIANTS
   ================================================================== */

.products {
    gap: 20px;
}

.product-offer-group {
    border-radius: 21px;
    box-shadow:
        0 16px 44px rgba(23, 33, 48, 0.075),
        0 2px 7px rgba(23, 33, 48, 0.035);
}

.product-offer-group .product-detail-summary {
    grid-template-columns: minmax(190px, 0.58fr) minmax(420px, 1.42fr);
    min-height: 0;
}

.product-offer-group .product-detail-media {
    min-height: 300px;
    padding: 42px 24px 24px;
}

.product-offer-group .product-detail-media::after {
    inset: 18px;
    border-radius: 18px;
}

.product-offer-group .product-detail-photo-label {
    top: 17px;
    left: 18px;
    padding: 6px 9px;
    font-size: 10px;
}

.product-offer-group .product-detail-image {
    width: min(84%, 245px);
    height: 205px;
}

.product-offer-group
.product-detail-media.is-placeholder
.product-detail-image {
    width: min(72%, 210px);
}

.product-offer-group .product-detail-gallery {
    margin-top: 13px;
}

.product-offer-group .product-detail-thumbnail {
    width: 52px;
    height: 52px;
    border-radius: 11px;
}

.product-offer-group .product-detail-content {
    justify-content: flex-start;
    padding: 28px clamp(26px, 4vw, 46px) 26px;
}

.product-offer-group .product-detail-brand {
    margin-bottom: 7px;
    font-size: 12px;
}

.product-offer-group .product-detail-title {
    max-width: 860px;
    margin-bottom: 10px;
    font-size: clamp(24px, 2.7vw, 34px);
    line-height: 1.14;
    letter-spacing: -0.025em;
}

.product-offer-group .product-detail-article {
    min-height: 30px;
    margin-bottom: 16px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.product-variants {
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid #edf0f4;
}

.product-variants-title {
    margin: 0 0 10px;
    color: #667085;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.product-variant-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(105px, 1fr) minmax(100px, auto) 104px;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    margin-top: 7px;
    padding: 7px 8px 7px 13px;
    border: 1px solid #e7ebf0;
    border-radius: 12px;
    background: #ffffff;
}

.product-variant-row.is-primary {
    margin-top: 13px;
    border-color: rgba(255, 107, 0, 0.28);
    background: #fffaf6;
    box-shadow: 0 7px 18px rgba(255, 107, 0, 0.07);
}

.product-variant-row.is-primary::before {
    content: "Лучший вариант";
    position: absolute;
    top: -9px;
    left: 10px;
    padding: 2px 7px;
    border-radius: 999px;
    color: #a94b00;
    background: #ffe7d3;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.product-variant-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.product-variant-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8a94a3;
}

.product-variant-status-in_stock::before {
    background: #159455;
    box-shadow: 0 0 0 3px rgba(21, 148, 85, 0.12);
}

.product-variant-status-low_stock::before {
    background: #e29324;
    box-shadow: 0 0 0 3px rgba(226, 147, 36, 0.12);
}

.product-variant-status-on_order::before {
    background: #4976c6;
    box-shadow: 0 0 0 3px rgba(73, 118, 198, 0.12);
}

.product-variant-status-out_of_stock::before {
    background: #cf4b4b;
    box-shadow: 0 0 0 3px rgba(207, 75, 75, 0.11);
}

.product-variant-status-unknown::before {
    background: #7a8494;
    box-shadow: 0 0 0 3px rgba(122, 132, 148, 0.12);
}

.product-variant-price {
    color: #17212f;
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.02em;
    text-align: right;
    white-space: nowrap;
}

.product-variant-cart-button {
    min-height: 36px;
    padding: 0 13px;
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff7a1a, #ef5b00);
    box-shadow: 0 7px 16px rgba(239, 91, 0, 0.18);
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.product-variant-cart-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(239, 91, 0, 0.24);
}

.product-variant-cart-button:disabled {
    color: #7a8494;
    background: #e5e8ed;
    box-shadow: none;
    cursor: not-allowed;
}

.product-variants-more {
    width: 100%;
    margin-top: 8px;
    padding: 9px 12px;
    border: 1px dashed #cfd6df;
    border-radius: 10px;
    color: #475467;
    background: #f8fafc;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.product-variants-more:hover {
    border-color: #ff9a52;
    color: #c65300;
    background: #fff8f2;
}

.product-offer-group .product-detail-information {
    gap: 14px;
    padding: 16px;
}

.product-offer-group .product-detail-section,
.product-offer-group .product-detail-references {
    padding: 20px;
    border-radius: 15px;
}

@media (max-width: 820px) {
    .product-offer-group .product-detail-summary {
        grid-template-columns: minmax(150px, 0.48fr) minmax(360px, 1.52fr);
    }

    .product-offer-group .product-detail-media {
        min-height: 270px;
        padding: 40px 16px 20px;
    }

    .product-offer-group .product-detail-image {
        height: 175px;
    }

    .product-offer-group .product-detail-content {
        padding: 24px 22px 22px;
    }
}

@media (max-width: 620px) {
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        min-width: 0;
        margin-bottom: 16px;
        padding: 0 2px;
    }

    .result-header h2 {
        max-width: 100%;
        margin: 0;
        font-size: 21px;
        line-height: 1.22;
        letter-spacing: -0.018em;
    }

    .result-header span {
        display: block;
        max-width: 100%;
        color: #667085;
        font-size: 13px;
        line-height: 1.42;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .products {
        gap: 14px;
    }

    .product-offer-group {
        border-radius: 17px;
    }

    .product-offer-group .product-detail-summary {
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .product-offer-group .product-detail-media {
        min-height: 230px;
        padding: 38px 10px 18px;
    }

    .product-offer-group .product-detail-media::after {
        inset: 10px;
        border-radius: 13px;
    }

    .product-offer-group .product-detail-photo-label {
        top: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .product-offer-group .product-detail-image,
    .product-offer-group
    .product-detail-media.is-placeholder
    .product-detail-image {
        width: 92px;
        height: 145px;
    }

    .product-offer-group .product-detail-content {
        padding: 20px 14px 18px;
    }

    .product-offer-group .product-detail-title {
        font-size: clamp(19px, 5.7vw, 25px);
    }

    .product-variant-row {
        grid-template-columns: minmax(90px, 1fr) auto;
        gap: 7px 10px;
        padding: 10px;
    }

    .product-variant-status {
        font-size: 12px;
    }

    .product-variant-price {
        font-size: 18px;
    }

    .product-variant-cart-button {
        grid-column: 1 / -1;
        min-height: 38px;
    }
}

/* Stage 6.0 — modern homepage, final cascade. */
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10000; padding: 11px 15px; border-radius: 9px; color: #fff; background: #17212f; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.header { position: sticky; top: 0; z-index: 30; background: #101927; }
.header-inner { min-height: 66px; padding-top: 6px; padding-bottom: 6px; }
.main-navigation { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.main-navigation .navigation-link { min-height: 42px; padding: 9px 12px; border: 0; border-radius: 9px; color: #d2d8e1; background: transparent; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.main-navigation .navigation-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.hero { padding: 38px 0 32px; background: radial-gradient(circle at 88% 15%, rgba(255,107,0,.15), transparent 31%), #111b2a; }
.hero-card { max-width: 900px; padding: 18px 0 8px; }
.hero h1 { max-width: 850px; font-size: clamp(36px, 5.2vw, 52px); line-height: 1.04; }
.hero-description { margin: 17px 0 22px; font-size: 17px; }
.search-box { max-width: 800px; box-shadow: 0 14px 34px rgba(0,0,0,.2); }
.search-box button { min-height: 52px; }
.search-hint { margin: 11px 4px 0; color: #aeb7c5; font-size: 13px; line-height: 1.45; }
.results-section { padding: 28px 0 52px; }
.home-sections { display: grid; gap: 22px; }
.home-section { min-width: 0; padding: 26px; border: 1px solid #e4e8ee; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(22,34,52,.045); }
.home-section > h2 { margin: 0 0 17px; color: #17212f; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; }
.home-action-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 1fr; gap: 14px; }
.home-action-card { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 3px 13px; min-width: 0; min-height: 96px; padding: 18px; border: 1px solid #e4e8ee; border-radius: 14px; color: #17212f; background: #fafbfc; text-align: left; cursor: pointer; }
.home-action-card > span { grid-row: 1 / 3; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: #ca5500; background: #fff0e4; font-size: 24px; }
.home-action-card strong { align-self: end; font-size: 17px; }
.home-action-card small { color: #667085; font-size: 13px; line-height: 1.45; }
.home-action-card:hover { border-color: #ffaf75; background: #fffaf6; }
.benefits-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.benefits-grid article { min-width: 0; padding: 17px; border-radius: 13px; background: #f7f8fa; }
.benefits-grid article > span { color: #d95b00; font-size: 22px; font-weight: 900; }
.benefits-grid h3 { margin: 9px 0 6px; font-size: 15px; line-height: 1.25; }
.benefits-grid p { margin: 0; color: #667085; font-size: 13px; line-height: 1.5; }
.order-steps ol { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.order-steps li { display: flex; gap: 11px; min-width: 0; padding: 15px; border-top: 3px solid #ff8a33; border-radius: 10px; background: #f8f9fb; }
.order-steps li > span { flex: 0 0 29px; display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; color: #fff; background: #ef6500; font-weight: 900; }
.order-steps h3 { margin: 3px 0 5px; font-size: 15px; }
.order-steps p { margin: 0; color: #667085; font-size: 13px; line-height: 1.45; }
.home-pickup { scroll-margin-top: 86px; background: #fffaf6; border-color: #ffd8bc; }
.home-pickup-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; }
.home-pickup-heading > span { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 13px; color: #c65300; background: #ffe7d4; font-size: 25px; }
.home-pickup-heading p { margin: 0 0 3px; color: #b44c00; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.home-pickup-heading h2 { margin: 0; font-size: clamp(21px,2.3vw,27px); }
.home-pickup-loading { margin: 0; color: #667085; }
.home-pickup .pickup-point-card { box-shadow: none; }
.footer { padding: 32px 0; }
.footer-inner { display: grid; grid-template-columns: 1.3fr .8fr 1fr; align-items: start; gap: 32px; }
.footer-brand strong { color: #fff; font-size: 21px; }
.footer p { margin: 7px 0 14px; line-height: 1.5; }
.footer nav { display: grid; gap: 4px; }
.footer button { width: fit-content; padding: 5px 0; border: 0; color: #c5ccd6; background: transparent; font: inherit; cursor: pointer; }
.footer button:hover, .footer a:hover { color: #fff; }
.footer-pickup { display: grid; gap: 8px; }
.footer-pickup strong { color: #fff; }
.footer-pickup address { color: #c5ccd6; font-style: normal; line-height: 1.5; overflow-wrap: anywhere; }
.footer-pickup a { color: #ff9a52; }
.home-action-card:focus-visible, .main-navigation button:focus-visible, .footer button:focus-visible, .footer a:focus-visible { outline: 3px solid rgba(255,125,32,.45); outline-offset: 3px; }
@media (max-width: 900px) {
    .main-navigation { display: none; }
    .benefits-grid, .order-steps ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
    .header-inner { min-height: 60px; gap: 8px; }
    .header-actions { gap: 6px; }
    .header-actions > button { min-width: 44px; min-height: 44px; padding: 8px; }
    #myOrdersButton { display: none; }
    .hero { padding: 24px 0 22px; }
    .hero-card { padding: 4px 0; }
    .hero h1 { font-size: clamp(32px,10vw,42px); letter-spacing: -1.1px; }
    .hero-description { margin: 14px 0 18px; font-size: 15px; }
    .search-box { padding: 0; box-shadow: none; }
    .search-box input { min-height: 52px; padding: 13px 14px; }
    .search-box button { width: 100%; min-height: 48px; }
    .results-section { padding: 18px 0 34px; }
    .home-sections { gap: 14px; }
    .home-section { padding: 19px 15px; border-radius: 15px; }
    .home-action-grid, .benefits-grid, .order-steps ol, .footer-inner { grid-template-columns: 1fr; }
    .home-action-card { min-height: 92px; }
    .order-steps li { padding: 13px; }
    .home-pickup .pickup-point-actions { grid-template-columns: 1fr; }
    .home-pickup .pickup-map-link, .home-pickup .pickup-copy-button { width: 100%; min-height: 46px; }
    .footer-brand { grid-column: auto; }
    .footer { padding-bottom: max(30px,env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Stage 6.1.2 — compact homepage catalog only. */
.catalog-home { padding: 18px 20px; box-shadow: 0 5px 18px rgba(22,34,52,.035); }
.catalog-home-heading h2 { margin: 0; color: #17212f; font-size: clamp(22px,2.4vw,28px); letter-spacing: -.02em; }
.catalog-home-heading p { margin: 4px 0 0; color: #667085; font-size: 14px; line-height: 1.4; }
.catalog-home .catalog-category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.catalog-home-category-card { height: 210px; gap: 6px; padding: 13px 14px; border-radius: 12px; box-shadow: none; }
.catalog-home-category-card .catalog-category-icon { width: 34px; height: 34px; border-radius: 9px; font-size: 20px; }
.catalog-home-category-card h3 { display: -webkit-box; min-height: 38px; margin: 1px 0 0; overflow: hidden; color: #17212f; font-size: 16px; line-height: 1.2; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.catalog-home-category-card .catalog-count { font-size: 13px; line-height: 1.25; }
.catalog-home-category-card .catalog-category-subcategories { display: -webkit-box; min-height: 34px; margin: 0; overflow: hidden; color: #667085; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.catalog-home-category-card .secondary-button { width: 100%; min-height: 44px; padding: 9px 12px; border-color: #ff9a52; color: #a84400; }
.catalog-home-search { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; padding: 13px 14px; border: 1px solid #e4e7ec; border-radius: 12px; background: #f8fafc; }
.catalog-home-search > div { min-width: 0; }
.catalog-home-search h3 { margin: 0 0 3px; color: #17212f; font-size: 16px; }
.catalog-home-search p { margin: 0; color: #344054; font-size: 14px; font-weight: 750; line-height: 1.35; }
.catalog-home-search small { display: block; margin-top: 3px; color: #667085; font-size: 12px; line-height: 1.35; }
.catalog-home-search button { flex: 0 0 auto; min-width: 168px; min-height: 44px; padding: 10px 14px; border: 1px solid #ff6b00; border-radius: 9px; color: #fff; background: #ff6b00; font: inherit; font-weight: 800; cursor: pointer; }
.catalog-home-search button:hover { border-color: #e85f00; background: #e85f00; }
.catalog-home-search button:focus-visible { outline: 3px solid rgba(255,107,0,.3); outline-offset: 3px; }
@media (max-width: 620px) {
    .catalog-home { padding: 16px 14px; }
    .catalog-home .catalog-category-grid { grid-template-columns: minmax(0,1fr); gap: 9px; margin-top: 12px; }
    .catalog-home-category-card { width: 100%; height: auto; min-height: 194px; }
    .catalog-home-search { align-items: stretch; flex-direction: column; gap: 11px; padding: 13px; }
    .catalog-home-search button { width: 100%; min-width: 0; }
}

/* Stage 8.2A — homepage entry into the vehicle catalog. */
.vehicle-catalog-home {
    padding: 22px;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16,24,40,.055);
}
.vehicle-catalog-home-makes {
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 10px;
    margin-top: 18px;
}
.vehicle-catalog-home-make {
    display: flex;
    min-width: 0;
    min-height: 102px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    padding: 12px 8px;
    border: 1px solid #e4e7ec;
    border-radius: 13px;
    color: #17212f;
    background: #fff;
    text-align: center;
    text-decoration: none;
    transition: border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.vehicle-catalog-home-make:hover {
    border-color: #ffad73;
    box-shadow: 0 6px 16px rgba(16,24,40,.07);
    transform: translateY(-1px);
}
.vehicle-catalog-home-make:focus-visible,
.vehicle-catalog-home-actions a:focus-visible {
    outline: 3px solid rgba(255,107,0,.3);
    outline-offset: 3px;
}
.vehicle-catalog-home-make img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}
.vehicle-catalog-home-make strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vehicle-catalog-home-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eef1f4;
}
.vehicle-catalog-home-scale {
    margin: 0;
    color: #667085;
    font-size: 14px;
    font-weight: 700;
}
.vehicle-catalog-home-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vehicle-catalog-home-actions a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
}
.vehicle-catalog-home-primary {
    border: 1px solid #ff6b00;
    color: #fff;
    background: #ff6b00;
}
.vehicle-catalog-home-primary:hover { border-color: #e85f00; background: #e85f00; }
.vehicle-catalog-home-secondary {
    border: 1px solid #ff9a52;
    color: #a84400;
    background: #fff8f2;
}
.vehicle-catalog-home-secondary:hover { border-color: #ff7f27; background: #fff1e6; }
@media (max-width: 900px) {
    .vehicle-catalog-home-makes { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 560px) {
    .vehicle-catalog-home { padding: 16px 14px; }
    .vehicle-catalog-home-makes { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
    .vehicle-catalog-home-make { min-height: 96px; gap: 7px; padding: 10px 5px; }
    .vehicle-catalog-home-make img { width: 46px; height: 46px; }
    .vehicle-catalog-home-make strong { font-size: 12px; }
    .vehicle-catalog-home-footer { align-items: stretch; flex-direction: column; gap: 12px; }
    .vehicle-catalog-home-actions { display: grid; grid-template-columns: 1fr; }
    .vehicle-catalog-home-actions a { width: 100%; }
}

/* Stage 5.9 final cascade */
.product-main-purchase { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; margin: 18px 0; padding: 18px; border: 1px solid #ffd7b8; border-radius: 16px; background: #fff8f2; }
.product-main-price { color: #101828; font-size: clamp(28px, 3vw, 38px); line-height: 1; }
.product-main-availability { color: #18794e; font-size: 13px; font-weight: 800; }
.product-main-purchase .product-detail-cart-button { grid-column: 2; grid-row: 1 / 3; min-height: 48px; }
.product-copy-article, .product-open-standalone, .product-description-toggle, .product-copy-all-oem { width: fit-content; min-height: 40px; margin-top: 9px; padding: 8px 13px; border: 1px solid #d0d5dd; border-radius: 9px; color: #344054; background: #fff; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.product-variant-row { grid-template-columns: 22px minmax(110px, 1fr) auto auto; cursor: pointer; }
.product-variant-row input[type="radio"] { width: 18px; height: 18px; accent-color: #ff6b00; }
.product-variant-row.is-selected { border-color: #ff9a52; background: #fff8f2; box-shadow: 0 0 0 2px rgba(255,107,0,.08); }
.product-detail-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.product-detail-description.is-collapsed { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.product-reference-chip { min-height: 38px; border: 1px solid #e5e7eb; font: inherit; cursor: pointer; overflow-wrap: anywhere; }
.product-detail-thumbnail:focus-visible, .product-copy-article:focus-visible, .product-open-standalone:focus-visible, .product-description-toggle:focus-visible, .product-reference-chip:focus-visible, .product-variant-row:focus-within { outline: 3px solid rgba(255,107,0,.28); outline-offset: 3px; }
@media (max-width: 600px) {
    .product-main-purchase { grid-template-columns: 1fr; padding: 15px; }
    .product-main-purchase .product-detail-cart-button { grid-column: 1; grid-row: auto; width: 100%; min-height: 48px; }
    .product-variant-row { grid-template-columns: 20px minmax(0, 1fr) auto; }
    .product-variant-price { grid-column: 2; }
    .product-variant-cart-button { grid-column: 3; grid-row: 1 / 3; min-height: 44px; }
    .product-offer-group .product-detail-media { min-height: 220px; max-height: 340px; }
    .product-detail-gallery { max-width: 100%; overflow-x: auto; touch-action: pan-x; }
    .product-reference-chip { max-width: 100%; }
}

/* Stage 5.8 final cascade overrides */
.cart-modal { width: min(1080px, calc(100vw - 32px)); max-height: min(880px, calc(100dvh - 32px)); overflow: auto; }
.cart-item { grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-width: 0; }
.cart-item-visual { width: 76px; height: 76px; object-fit: contain; border-radius: 14px; background: #f7f8fa; }
.cart-item-details, .cart-item-name, .cart-item-brand, .cart-item-article { min-width: 0; overflow-wrap: anywhere; }
.cart-summary { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -12px 28px rgba(16,24,40,.08); }
.checkout-modal { width: min(900px, calc(100vw - 32px)); max-height: min(900px, calc(100dvh - 32px)); overflow: auto; overscroll-behavior: contain; }
@media (max-width: 600px) {
    .cart-modal, .checkout-modal { width: 100vw; max-width: none; max-height: 100dvh; min-height: 100dvh; margin: 0; border-radius: 0; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
    .cart-item { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; }
    .cart-item-visual { width: 58px; height: 58px; }
    .cart-item-controls { grid-column: 1 / -1; width: 100%; justify-content: space-between; }
    .cart-summary { position: static; }
}

/* Stage 5.7.3 verified email checkout gate */
.checkout-verification-gate { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; margin-top: 8px; padding: 22px; border: 1px solid #f1d6bd; border-radius: 16px; background: #fff8f1; }
.checkout-verification-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; color: #b65700; background: #ffe7d2; font-size: 22px; }
.checkout-verification-copy h3 { margin: 1px 0 7px; color: #242b35; font-size: 19px; }
.checkout-verification-copy p { margin: 0 0 8px; color: #667085; font-size: 13px; line-height: 1.5; }
.checkout-verification-copy strong { display: block; margin-bottom: 16px; color: #344054; overflow-wrap: anywhere; }
.checkout-verification-copy .verification-button { width: auto; }
.checkout-verification-cooldown { margin-top: 10px !important; color: #9d4b0f !important; }
.email-delivery-hint-slot { margin-top: 11px; }
.email-delivery-hint { display: flex; align-items: flex-start; gap: 8px; color: #667085; font-size: 12px; line-height: 1.5; }
.email-delivery-hint-icon { flex: 0 0 auto; color: #7a8290; font-size: 14px; line-height: 1.4; }
.email-delivery-hint p { margin: 0 !important; color: inherit !important; font: inherit; }
.email-delivery-hint strong { display: inline; margin: 0; color: #475467; font-weight: 750; }

@media (max-width: 430px) {
    .checkout-verification-gate { grid-template-columns: 1fr; padding: 18px; }
    .checkout-verification-copy .verification-button { width: 100%; }
}

/* Stage 5.7.2 redesigned account center */
.account-center-open .account-modal {
    width: min(1040px, calc(100vw - 40px));
    max-height: min(820px, calc(100dvh - 40px));
    padding: 0;
    border: 1px solid #e8eaee;
    border-radius: 24px;
    overflow: hidden;
}

.account-center-open .modal-logo { display: none; }
.account-center-open .modal-close { z-index: 5; top: 18px; right: 18px; }
.account-center { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 650px; max-height: min(820px, calc(100dvh - 40px)); }
.account-sidebar { display: flex; flex-direction: column; min-width: 0; padding: 32px 22px 22px; background: #f7f8fa; border-right: 1px solid #e8eaee; }
.account-identity { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 0 6px 28px; }
.account-avatar { display: grid; flex: 0 0 52px; height: 52px; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #ff7a1a, #e85e00); font-size: 17px; font-weight: 850; }
.account-identity-copy { min-width: 0; }
.account-identity h2 { margin: 0 0 4px; color: #1c2430; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.account-identity p { margin: 0 0 6px; color: #667085; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.account-status, .field-status { display: inline-flex; align-items: center; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.account-status.verified, .field-status.verified { color: #177245; }
.account-status.pending, .field-status.pending { color: #b65700; }
.account-nav { display: grid; gap: 7px; }
.account-nav-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; width: 100%; padding: 13px; border: 1px solid transparent; border-radius: 13px; color: #344054; background: transparent; text-align: left; cursor: pointer; }
.account-nav-item:hover { background: #fff; }
.account-nav-item.is-active { color: #9d4300; border-color: #ffd9bd; background: #fff4eb; box-shadow: 0 2px 8px rgba(98, 47, 11, .05); }
.account-nav-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: rgba(255,255,255,.75); font-size: 14px; }
.account-nav-item strong, .account-nav-item small { display: block; }
.account-nav-item strong { margin-bottom: 3px; font-size: 14px; }
.account-nav-item small { color: #7a8290; font-size: 11px; line-height: 1.35; }
.account-logout-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: auto; padding: 12px 14px; border: 1px solid #f0d5d5; border-radius: 12px; color: #b42318; background: #fff; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.account-content { min-width: 0; overflow-y: auto; overscroll-behavior: contain; }
.account-panel { padding: 46px 48px 40px; }
.account-panel-heading { margin: 0 0 30px; padding-right: 40px; }
.account-panel-heading h2 { margin: 0 0 7px; color: #1c2430; font-size: 27px; letter-spacing: -.45px; }
.account-panel-heading p, .account-card-heading p { margin: 0; color: #667085; font-size: 14px; line-height: 1.5; }
.account-form { display: grid; gap: 21px; }
.account-form .form-row { gap: 18px; }
.account-form .form-field { gap: 8px; }
.account-form .form-field > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #344054; font-size: 13px; font-weight: 750; }
.account-form .form-field small { color: #7a8290; font-size: 12px; font-weight: 500; }
.account-form input, .account-readonly-value { min-width: 0; min-height: 46px; border: 1px solid #d9dde5; border-radius: 11px; background: #fff; }
.account-readonly-value { display: flex; align-items: center; padding: 0 14px; color: #667085; background: #f7f8fa; overflow-wrap: anywhere; }
.account-info-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid #dce8df; border-radius: 13px; background: #f3faf5; }
.account-info-card strong { color: #177245; font-size: 13px; }
.account-info-card p { margin: 4px 0 0; color: #607067; font-size: 12px; line-height: 1.45; }
.account-info-card:has(.pending) { border-color: #f2dfca; background: #fff8f1; }
.verification-button { flex: 0 0 auto; }
.account-date-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 16px; border-radius: 12px; color: #667085; background: #f7f8fa; font-size: 13px; }
.account-date-card strong { color: #344054; }
.account-save-area { display: grid; justify-items: start; gap: 10px; padding-top: 4px; }
.account-save-area .registration-submit { width: auto; min-width: 210px; }
.account-save-area p { margin: 0; color: #7a8290; font-size: 11px; line-height: 1.45; }
.registration-submit:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
.account-security-card { margin-bottom: 20px; padding: 22px; border: 1px solid #e3e6eb; border-radius: 16px; background: #fff; }
form.account-security-card { gap: 17px; }
.account-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.account-card-heading h3 { margin: 0 0 5px; color: #1c2430; font-size: 17px; }
.account-primary-compact { justify-self: start; padding: 12px 18px; border: 0; border-radius: 11px; color: #fff; background: #ed6808; font: inherit; font-weight: 750; cursor: pointer; }
.session-active-status { flex: 0 0 auto; color: #177245; font-size: 12px; font-weight: 750; }
.session-current { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 18px 0; padding: 14px 16px; border-radius: 12px; background: #f7f8fa; }
.session-current strong, .session-current span { display: block; }
.session-current strong { margin-bottom: 4px; color: #344054; font-size: 13px; }
.session-current span { color: #7a8290; font-size: 12px; }
.account-danger-button { padding: 11px 15px; border: 1px solid #efc5c2; border-radius: 10px; color: #b42318; background: #fff; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }

@media (max-width: 760px) {
    .modal-backdrop { align-items: flex-start; padding: 10px; }
    .account-center-open .account-modal { width: 100%; max-height: calc(100dvh - 20px); border-radius: 18px; overflow-y: auto; }
    .account-center { display: block; min-height: 0; max-height: none; }
    .account-sidebar { padding: 22px 18px 14px; border-right: 0; border-bottom: 1px solid #e8eaee; }
    .account-identity { padding-right: 44px; padding-bottom: 17px; }
    .account-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .account-nav-item { grid-template-columns: 1fr; gap: 5px; min-height: 75px; padding: 11px; }
    .account-nav-icon { display: none; }
    .account-logout-button { margin-top: 14px; }
    .account-content { overflow: visible; }
    .account-panel { padding: 26px 18px 28px; }
    .account-panel-heading { margin-bottom: 23px; padding-right: 0; }
    .account-panel-heading h2 { font-size: 23px; }
    .account-form .form-row { grid-template-columns: 1fr; gap: 18px; }
    .account-info-card { align-items: flex-start; flex-direction: column; }
    .verification-button { width: 100%; }
    .account-save-area { justify-items: stretch; }
    .account-save-area .registration-submit { width: 100%; min-width: 0; }
    .account-security-card { padding: 17px; }
    .account-card-heading { flex-direction: column; }
    #profileView { max-height: none; overflow: visible; padding-right: 0; }
}

@media (max-width: 390px) {
    .account-sidebar { padding-left: 14px; padding-right: 14px; }
    .account-panel { padding-left: 14px; padding-right: 14px; }
    .account-nav-item strong { font-size: 13px; }
    .account-nav-item small { font-size: 10px; }
}

@media (max-width: 430px) {
    .product-offer-group .product-detail-summary {
        grid-template-columns: 1fr;
    }

    .product-offer-group .product-detail-media {
        min-height: 165px;
        padding: 35px 16px 12px;
    }

    .product-offer-group .product-detail-image,
    .product-offer-group
    .product-detail-media.is-placeholder
    .product-detail-image {
        width: 125px;
        height: 115px;
    }

    .product-offer-group .product-detail-content {
        padding: 18px 15px;
    }
}


/* ==================================================================
   ЭТАП 4.2C — ОТДЕЛЬНОЕ ОКНО ЗАКАЗОВ И ОТМЕНА
   ================================================================== */

.orders-modal {
    position: relative;
    width: min(100%, 760px);
    max-height: min(90vh, 880px);
    overflow-y: auto;
    margin: auto;
    border-radius: 22px;
    padding: 30px;
    background: var(--white);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.orders-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.orders-modal-header h2 {
    margin: 8px 0 5px;
    font-size: 30px;
}

.orders-modal-header p {
    margin: 0;
    color: var(--muted);
}

.orders-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.order-cancel-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 4px 0 24px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 14px;
    background: #fff7f7;
}

.order-cancel-section p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.order-cancel-button {
    flex: 0 0 auto;
    border: 1px solid #dc2626;
    border-radius: 9px;
    padding: 10px 14px;
    color: #b91c1c;
    background: var(--white);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.order-cancel-button:hover:not(:disabled) {
    color: var(--white);
    background: #dc2626;
}

.order-cancel-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

@media (max-width: 650px) {
    .orders-modal {
        width: 100%;
        max-height: 94vh;
        margin: 0;
        border-radius: 22px 22px 0 0;
        padding: 24px 18px;
    }

    #ordersModal {
        align-items: flex-end;
        padding: 0;
    }

    .orders-modal-header,
    .order-cancel-section {
        align-items: stretch;
        flex-direction: column;
    }

    .order-cancel-button {
        width: 100%;
    }
}


/* ==================================================================
   ЭТАП 4.3.1 — SAFE ORDERS REDESIGN
   Только визуальные изменения. JavaScript и HTML не затрагиваются.
   ================================================================== */

/* ------------------------------------------------------------------
   КНОПКА «МОИ ЗАКАЗЫ» В ШАПКЕ
   ------------------------------------------------------------------ */

#myOrdersButton {
    position: relative;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.085),
            rgba(255, 255, 255, 0.025)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 7px 20px rgba(0, 0, 0, 0.16);

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

#myOrdersButton::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;

    width: 3px;

    background: #ff6b00;
}

#myOrdersButton .account-icon {
    display: inline-grid;
    place-items: center;

    width: 25px;
    height: 25px;

    border-radius: 7px;

    color: #ff8a32;
    background: rgba(255, 107, 0, 0.14);
}

#myOrdersButton:hover {
    border-color: rgba(255, 107, 0, 0.9);

    background:
        linear-gradient(
            180deg,
            rgba(255, 107, 0, 0.17),
            rgba(255, 107, 0, 0.065)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 9px 25px rgba(0, 0, 0, 0.2);

    transform: translateY(-1px);
}

#myOrdersButton:active {
    transform: translateY(0);
}


/* ------------------------------------------------------------------
   ФОН ОКНА «МОИ ЗАКАЗЫ»
   ------------------------------------------------------------------ */

#ordersModal {
    padding: 24px;

    background: rgba(3, 10, 22, 0.82);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.orders-modal {
    width: min(94vw, 900px);
    max-height: min(90vh, 880px);

    overflow-y: auto;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 22px;

    padding: 28px;

    color: #ffffff;

    background:
        radial-gradient(
            circle at top left,
            rgba(255, 107, 0, 0.09),
            transparent 34%
        ),
        linear-gradient(
            155deg,
            #132137 0%,
            #0c1728 58%,
            #091321 100%
        );

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.5);
}

.orders-modal-header {
    margin-bottom: 8px;
}

.orders-modal-header .modal-badge {
    color: #ff963f;
    background: rgba(255, 107, 0, 0.13);
}

.orders-modal-header h2 {
    color: #ffffff;
    letter-spacing: -0.02em;
}

.orders-modal-header p {
    max-width: 560px;

    color: rgba(255, 255, 255, 0.62);

    line-height: 1.5;
}

.orders-modal .modal-close {
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.045);
}

.orders-modal .modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}


/* ------------------------------------------------------------------
   КНОПКА ОБНОВЛЕНИЯ
   ------------------------------------------------------------------ */

.orders-modal .verification-button,
.orders-toolbar .verification-button {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;

    color: rgba(255, 255, 255, 0.9);

    background: rgba(255, 255, 255, 0.055);

    box-shadow: none;

    transition:
        border-color 0.18s ease,
        color 0.18s ease,
        background 0.18s ease;
}

.orders-modal .verification-button:hover,
.orders-toolbar .verification-button:hover {
    border-color: #ff6b00;

    color: #ffffff;

    background: rgba(255, 107, 0, 0.13);
}


/* ------------------------------------------------------------------
   СОСТОЯНИЯ ЗАГРУЗКИ И ПУСТОГО СПИСКА
   ------------------------------------------------------------------ */

.orders-modal .orders-state {
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 14px;

    padding: 35px 20px;

    color: rgba(255, 255, 255, 0.62);

    background: rgba(255, 255, 255, 0.025);
}

.orders-modal .orders-state h3 {
    color: #ffffff;
}

.orders-modal .orders-state p {
    color: rgba(255, 255, 255, 0.58);
}


/* ------------------------------------------------------------------
   КАРТОЧКИ ЗАКАЗОВ
   ------------------------------------------------------------------ */

.orders-modal .orders-list {
    gap: 11px;
}

.orders-modal .order-card {
    position: relative;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;

    padding: 17px 18px;

    color: #ffffff;

    background:
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.025)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.orders-modal .order-card::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;

    width: 3px;

    opacity: 0;

    background: #ff6b00;

    transition: opacity 0.18s ease;
}

.orders-modal .order-card:hover {
    border-color: rgba(255, 107, 0, 0.78);

    background:
        linear-gradient(
            120deg,
            rgba(255, 107, 0, 0.12),
            rgba(255, 255, 255, 0.035)
        );

    box-shadow:
        0 10px 27px rgba(0, 0, 0, 0.18);

    transform: translateY(-2px);
}

.orders-modal .order-card:hover::before {
    opacity: 1;
}

.orders-modal .order-card-number {
    color: #ffffff;

    font-size: 17px;
    font-weight: 900;

    letter-spacing: 0.01em;
}

.orders-modal .order-card-details {
    color: rgba(255, 255, 255, 0.58);
}

.orders-modal .order-card-details strong {
    color: #ffffff;
}

.orders-modal .order-card-top {
    align-items: flex-start;
}


/* ------------------------------------------------------------------
   БЕЙДЖИ СТАТУСОВ В СПИСКЕ
   ------------------------------------------------------------------ */

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    width: fit-content;

    border: 1px solid transparent;
    border-radius: 999px;

    padding: 6px 10px;

    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.order-status::before {
    content: "";

    width: 7px;
    height: 7px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: currentColor;
}


/* Заказ создан */

.order-status-received {
    border-color: rgba(70, 158, 255, 0.25);

    color: #72b5ff;

    background: rgba(47, 135, 230, 0.13);
}


/* Подтверждён */

.order-status-confirmed {
    border-color: rgba(73, 203, 130, 0.25);

    color: #69d89a;

    background: rgba(38, 169, 96, 0.13);
}


/* Готовится */

.order-status-preparing {
    border-color: rgba(192, 122, 255, 0.27);

    color: #c28aff;

    background: rgba(136, 67, 207, 0.15);
}


/* В пути */

.order-status-in_transit {
    border-color: rgba(174, 128, 255, 0.27);

    color: #bc96ff;

    background: rgba(118, 74, 203, 0.15);
}


/* Готов к получению */

.order-status-ready_for_pickup {
    border-color: rgba(82, 212, 144, 0.26);

    color: #72dfa6;

    background: rgba(38, 169, 96, 0.14);
}


/* Получен / завершён */

.order-status-completed {
    border-color: rgba(82, 212, 144, 0.26);

    color: #72dfa6;

    background: rgba(38, 169, 96, 0.14);
}


/* Требуется уточнение */

.order-status-clarification_required {
    border-color: rgba(255, 184, 70, 0.28);

    color: #ffbf58;

    background: rgba(216, 130, 18, 0.15);
}


/* Отменён */

.order-status-cancelled {
    border-color: rgba(186, 197, 214, 0.2);

    color: #b7c0cf;

    background: rgba(145, 156, 174, 0.13);
}


/* ------------------------------------------------------------------
   СВЕТЛАЯ КАРТОЧКА КОНКРЕТНОГО ЗАКАЗА
   ------------------------------------------------------------------ */

#orderDetailsModal {
    padding: 24px;

    background: rgba(3, 10, 22, 0.82);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.order-details-modal {
    width: min(94vw, 940px);
    max-height: min(91vh, 900px);

    overflow-y: auto;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;

    padding: 32px;

    color: #172236;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f6f8fb 100%
        );

    box-shadow:
        0 32px 95px rgba(0, 0, 0, 0.5);
}

.order-details-modal .modal-close {
    border: 1px solid #e2e7ef;

    color: #59677a;

    background: #f6f8fb;
}

.order-details-modal .modal-close:hover {
    color: #172236;
    background: #e9edf3;
}


/* Шапка заказа */

.order-details-modal .order-details-heading {
    display: grid;
    gap: 11px;

    margin-bottom: 22px;

    border: 1px solid #e0e6ee;
    border-radius: 16px;

    padding: 20px;

    background: #ffffff;

    box-shadow:
        0 8px 25px rgba(28, 45, 73, 0.055);
}

.order-details-modal .order-details-heading h2 {
    color: #152136;

    font-size: 27px;
    letter-spacing: -0.02em;
}

.order-details-modal .order-details-heading p {
    color: #6e7a8c;

    line-height: 1.5;
}


/* Информация о заказе */

.order-details-modal .order-info-grid {
    gap: 11px;
}

.order-details-modal .order-info-grid > div {
    border: 1px solid #e1e6ee;
    border-radius: 12px;

    padding: 13px 14px;

    background: #ffffff;
}

.order-details-modal .order-info-grid span {
    color: #8b95a4;
}

.order-details-modal .order-info-grid strong {
    color: #344257;
}


/* Товары */

.order-details-modal .order-items-list {
    gap: 9px;
}

.order-details-modal .order-item {
    border: 1px solid #e1e6ee;
    border-radius: 13px;

    padding: 15px;

    background: #ffffff;

    box-shadow:
        0 5px 16px rgba(28, 45, 73, 0.035);
}

.order-details-modal .order-item p {
    color: #536074;
}

.order-details-modal .order-item small {
    color: #8994a4;
}

.order-details-modal .order-item-price strong {
    color: #172236;
}


/* Итог */

.order-details-modal .order-details-total {
    border-top-color: #dfe5ed;

    color: #59677a;
}

.order-details-modal .order-details-total strong {
    color: #152136;

    font-size: 22px;
}


/* Комментарий */

.order-details-modal .order-comment {
    border: 1px solid #e1e6ee;

    color: #354258;

    background: #ffffff;
}


/* История */

.order-details-modal .order-history-item {
    border-left-color: #d9e0ea;
}

.order-details-modal .order-history-dot {
    border-color: #ffffff;

    background: #2f87e6;

    box-shadow: 0 0 0 2px #2f87e6;
}

.order-details-modal .order-history-item strong {
    color: #285c94;
}

.order-details-modal .order-history-item p {
    color: #707c8e;
}

.order-details-modal .order-history-item small {
    color: #939dac;
}


/* Отмена */

.order-details-modal .order-cancel-section {
    border: 1px solid #f0cccc;
    border-radius: 13px;

    background: #fff8f8;
}

.order-details-modal .order-cancel-section p {
    color: #7c6a6a;
}

.order-details-modal .order-cancel-button {
    border-color: #db3838;

    color: #c62c2c;

    background: #ffffff;
}

.order-details-modal .order-cancel-button:hover:not(:disabled) {
    color: #ffffff;
    background: #d93636;
}


/* ------------------------------------------------------------------
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ------------------------------------------------------------------ */

@media (max-width: 700px) {
    #ordersModal,
    #orderDetailsModal {
        align-items: flex-end;

        padding: 0;
    }

    .orders-modal,
    .order-details-modal {
        width: 100%;
        max-height: 95vh;

        margin: 0;

        border-radius: 22px 22px 0 0;

        padding: 23px 17px;
    }

    .orders-modal-header {
        align-items: flex-start;
    }

    .orders-modal .order-card {
        gap: 10px;
    }

    .order-details-modal .order-info-grid {
        grid-template-columns: 1fr;
    }
}



/* ==================================================================
   ЭТАП 4.3.2 — PARTON52 UNIFIED HEADER
   Только CSS. HTML и JavaScript не изменяются.
   ================================================================== */

/* Общая шапка */

.site-header {
    position: relative;
    z-index: 50;

    min-height: 76px;

    border-bottom: 0;

    background:
        radial-gradient(
            circle at 18% -80%,
            rgba(255, 107, 0, 0.09),
            transparent 38%
        ),
        linear-gradient(
            105deg,
            #091321 0%,
            #101b2d 52%,
            #091321 100%
        );

    box-shadow:
        0 9px 30px rgba(1, 7, 17, 0.26),
        inset 0 -1px 0 rgba(255, 255, 255, 0.025);
}

.site-header::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            #ff6b00 0%,
            #ff8a24 48%,
            #ff6b00 100%
        );

    box-shadow:
        0 0 13px rgba(255, 107, 0, 0.42);
}


/* Контейнер шапки */

.header-inner {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 34px;

    padding-top: 10px;
    padding-bottom: 10px;
}


/* ------------------------------------------------------------------
   ЛОГОТИП
   ------------------------------------------------------------------ */

.logo,
.site-logo,
.brand,
.header-logo {
    position: relative;

    display: inline-flex;
    align-items: center;

    flex: 0 0 auto;

    color: #ffffff;

    text-decoration: none;

    font-family:
        "Arial Black",
        "Segoe UI Black",
        "Trebuchet MS",
        sans-serif;

    font-size: clamp(25px, 2.1vw, 34px);
    font-weight: 900;
    font-style: italic;

    line-height: 1;
    letter-spacing: -1.5px;

    transform: skewX(-7deg);

    text-shadow:
        0 2px 0 rgba(255, 255, 255, 0.08),
        0 7px 19px rgba(0, 0, 0, 0.34);

    transition:
        transform 0.18s ease,
        filter 0.18s ease;
}

.logo:hover,
.site-logo:hover,
.brand:hover,
.header-logo:hover {
    transform:
        skewX(-7deg)
        translateY(-1px);

    filter: brightness(1.08);
}


/* Подчёркивание фирменного знака */

.logo::after,
.site-logo::after,
.brand::after,
.header-logo::after {
    content: "";

    position: absolute;

    right: 2px;
    bottom: -7px;
    left: 3px;

    height: 3px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 107, 0, 0),
            #ff6b00 18%,
            #ff923f 82%,
            rgba(255, 107, 0, 0)
        );

    box-shadow:
        0 0 9px rgba(255, 107, 0, 0.44);
}


/* Если 52 уже находится в отдельном span */

.logo span:last-child,
.site-logo span:last-child,
.brand span:last-child,
.header-logo span:last-child,
.logo-accent {
    color: #ff6b00;

    text-shadow:
        0 0 14px rgba(255, 107, 0, 0.32);
}


/* ------------------------------------------------------------------
   НАВИГАЦИЯ
   ------------------------------------------------------------------ */

.main-nav,
.header-nav {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-left: auto;
}

.main-nav button,
.header-nav button,
.main-nav a,
.header-nav a {
    position: relative;

    border: 0;
    border-radius: 9px;

    padding: 11px 14px;

    color: rgba(255, 255, 255, 0.79);

    background: transparent;

    font: inherit;
    font-size: 13px;
    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    transition:
        color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.main-nav button::after,
.header-nav button::after,
.main-nav a::after,
.header-nav a::after {
    content: "";

    position: absolute;

    right: 14px;
    bottom: 5px;
    left: 14px;

    height: 2px;

    border-radius: 999px;

    background: #ff6b00;

    opacity: 0;

    transform: scaleX(0.3);

    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.main-nav button:hover,
.header-nav button:hover,
.main-nav a:hover,
.header-nav a:hover {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.045);

    transform: translateY(-1px);
}

.main-nav button:hover::after,
.header-nav button:hover::after,
.main-nav a:hover::after,
.header-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}


/* ------------------------------------------------------------------
   ПРАВАЯ ГРУППА ДЕЙСТВИЙ
   ------------------------------------------------------------------ */

.header-actions {
    display: flex;
    align-items: center;

    gap: 11px;

    flex: 0 0 auto;
}

.header-actions > button {
    min-height: 43px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    border-radius: 11px;

    padding: 9px 15px;

    font-size: 13px;
    font-weight: 900;

    white-space: nowrap;

    transition:
        border-color 0.18s ease,
        color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}


/* Мои заказы */

#myOrdersButton {
    border: 1px solid rgba(255, 107, 0, 0.76);

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            rgba(255, 107, 0, 0.11),
            rgba(255, 255, 255, 0.035)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 0 0 1px rgba(255, 107, 0, 0.04),
        0 7px 21px rgba(0, 0, 0, 0.19);
}

#myOrdersButton::before {
    width: 3px;

    background:
        linear-gradient(
            180deg,
            #ff973e,
            #ff5d00
        );
}

#myOrdersButton .account-icon {
    width: 25px;
    height: 25px;

    display: inline-grid;
    place-items: center;

    border-radius: 7px;

    color: #ff8528;

    background: rgba(255, 107, 0, 0.13);

    box-shadow:
        inset 0 0 0 1px rgba(255, 107, 0, 0.12);
}

#myOrdersButton:hover {
    border-color: #ff7a18;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            rgba(255, 107, 0, 0.22),
            rgba(255, 107, 0, 0.075)
        );

    box-shadow:
        0 0 21px rgba(255, 107, 0, 0.17),
        0 9px 25px rgba(0, 0, 0, 0.22);

    transform: translateY(-2px);
}


/* Корзина */

#cartButton {
    border: 1px solid rgba(255, 255, 255, 0.17);

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 7px 20px rgba(0, 0, 0, 0.16);
}

#cartButton:hover {
    border-color: rgba(255, 107, 0, 0.66);

    background:
        linear-gradient(
            180deg,
            rgba(255, 107, 0, 0.13),
            rgba(255, 107, 0, 0.045)
        );

    transform: translateY(-2px);
}


/* Счётчик корзины */

#cartCount {
    min-width: 24px;
    height: 24px;

    display: inline-grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;

    padding: 0 6px;

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            #556174,
            #303a49
        );

    font-size: 11px;
    font-weight: 900;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}


/* Профиль / вход */

#accountButton {
    min-width: 128px;

    border: 1px solid #ff7a17;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #ff7410 0%,
            #ff5d00 100%
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 8px 24px rgba(255, 92, 0, 0.22);

    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.16);
}

#accountButton:hover {
    border-color: #ff994d;

    background:
        linear-gradient(
            135deg,
            #ff862d 0%,
            #ff6507 100%
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 10px 29px rgba(255, 92, 0, 0.3);

    transform: translateY(-2px);
}


/* Иконки в кнопках */

.header-actions .account-icon,
.header-actions .cart-icon {
    flex: 0 0 auto;

    font-size: 15px;
}


/* Разделитель перед профилем */

#accountButton {
    position: relative;

    margin-left: 13px;
}

#accountButton::before {
    content: "";

    position: absolute;

    top: 7px;
    bottom: 7px;
    left: -13px;

    width: 1px;

    background: rgba(255, 255, 255, 0.12);
}


/* ------------------------------------------------------------------
   АДАПТАЦИЯ
   ------------------------------------------------------------------ */

@media (max-width: 1000px) {
    .header-inner {
        gap: 18px;
    }

    .main-nav,
    .header-nav {
        gap: 4px;
    }

    .main-nav button,
    .header-nav button,
    .main-nav a,
    .header-nav a {
        padding-right: 9px;
        padding-left: 9px;
    }

    .header-actions {
        gap: 7px;
    }

    .header-actions > button {
        padding-right: 11px;
        padding-left: 11px;
    }
}

@media (max-width: 780px) {
    .site-header {
        min-height: auto;
    }

    .header-inner {
        min-height: auto;

        flex-wrap: wrap;

        gap: 13px;

        padding-top: 13px;
        padding-bottom: 15px;
    }

    .logo,
    .site-logo,
    .brand,
    .header-logo {
        font-size: 26px;
    }

    .main-nav,
    .header-nav {
        order: 3;

        width: 100%;

        justify-content: center;

        border-top: 1px solid rgba(255, 255, 255, 0.07);

        padding-top: 8px;
    }

    .header-actions {
        margin-left: auto;
    }

    #myOrdersButton span:last-child,
    #cartButton span:not(#cartCount) {
        display: none;
    }

    #myOrdersButton,
    #cartButton {
        min-width: 44px;

        padding-right: 9px;
        padding-left: 9px;
    }

    #accountButton {
        min-width: auto;
        margin-left: 4px;
    }

    #accountButton::before {
        display: none;
    }
}

@media (max-width: 520px) {
    .header-inner {
        gap: 9px;
    }

    .header-actions {
        gap: 5px;
    }

    #accountButton {
        max-width: 132px;

        overflow: hidden;

        text-overflow: ellipsis;
    }

    .main-nav,
    .header-nav {
        justify-content: space-between;
    }

    .main-nav button,
    .header-nav button,
    .main-nav a,
    .header-nav a {
        flex: 1;

        text-align: center;
    }
}



/* ==================================================================
   ЭТАП 4.3.3 — EXACT APPROVED HEADER
   Шапка по утверждённому эскизу.
   ================================================================== */

/* --------------------------------------------------------------
   ОБЩАЯ ПАНЕЛЬ
   -------------------------------------------------------------- */

.site-header {
    position: relative;
    z-index: 100;

    width: 100%;
    min-height: 116px;

    border: 0;

    background:
        radial-gradient(
            circle at 8% -80%,
            rgba(35, 69, 112, 0.28),
            transparent 42%
        ),
        linear-gradient(
            110deg,
            #07111f 0%,
            #0e1a2b 46%,
            #07111d 100%
        );

    box-shadow:
        0 13px 35px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.site-header::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            #ff6100,
            #ff8b25 48%,
            #ff6100
        );

    box-shadow:
        0 0 12px rgba(255, 102, 0, 0.55);
}


/* --------------------------------------------------------------
   ВНУТРЕННИЙ КОНТЕЙНЕР
   -------------------------------------------------------------- */

.header-inner {
    width: min(100% - 70px, 1420px);
    min-height: 116px;

    display: grid;
    grid-template-columns:
        minmax(285px, 1fr)
        auto
        auto;

    align-items: center;

    column-gap: 52px;

    margin: 0 auto;
    padding: 0;
}


/* --------------------------------------------------------------
   ЛОГОТИП ПАРТОН52
   -------------------------------------------------------------- */

.logo,
.site-logo,
.brand,
.header-logo {
    position: relative;

    width: fit-content;

    display: inline-flex;
    align-items: center;

    margin: 0;

    color: #f7f8fb;

    font-family:
        "Arial Black",
        "Arial Narrow",
        "Trebuchet MS",
        sans-serif;

    font-size: clamp(34px, 2.45vw, 47px);
    font-weight: 900;
    font-style: italic;

    line-height: 0.92;
    letter-spacing: -3px;

    text-decoration: none;
    text-transform: uppercase;

    transform: skewX(-12deg);

    text-shadow:
        1px 1px 0 rgba(255, 255, 255, 0.12),
        0 5px 16px rgba(0, 0, 0, 0.42);

    transition:
        transform 0.18s ease,
        filter 0.18s ease;
}

.logo:hover,
.site-logo:hover,
.brand:hover,
.header-logo:hover {
    filter: brightness(1.1);

    transform:
        skewX(-12deg)
        translateY(-1px);
}


/* Металлический оттенок текста */

.logo,
.site-logo,
.brand,
.header-logo {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #ffffff 34%,
            #d3d9e1 62%,
            #ffffff 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}


/* Оранжевая часть 52 */

.logo span:last-child,
.site-logo span:last-child,
.brand span:last-child,
.header-logo span:last-child,
.logo-accent {
    color: #ff6500;

    background:
        linear-gradient(
            180deg,
            #ff8b23 0%,
            #ff5b00 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    text-shadow:
        none;
}


/* Подчёркивание под логотипом */

.logo::after,
.site-logo::after,
.brand::after,
.header-logo::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: -13px;
    left: 3px;

    height: 3px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 100, 0, 0),
            #ff6100 12%,
            #ff8d29 82%,
            rgba(255, 100, 0, 0)
        );

    box-shadow:
        0 0 9px rgba(255, 103, 0, 0.4);
}


/* --------------------------------------------------------------
   ЦЕНТРАЛЬНАЯ НАВИГАЦИЯ
   -------------------------------------------------------------- */

.main-nav,
.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 30px;

    margin: 0;
}

.main-nav button,
.header-nav button,
.main-nav a,
.header-nav a {
    position: relative;

    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 9px;

    padding: 10px 8px;

    color: rgba(255, 255, 255, 0.82);
    background: transparent;

    font: inherit;
    font-size: 15px;
    font-weight: 750;

    line-height: 1;
    white-space: nowrap;

    text-decoration: none;
    cursor: pointer;

    transition:
        color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.main-nav button::after,
.header-nav button::after,
.main-nav a::after,
.header-nav a::after {
    content: "";

    position: absolute;

    right: 8px;
    bottom: 3px;
    left: 8px;

    height: 2px;

    border-radius: 999px;

    opacity: 0;

    background: #ff6b00;

    transform: scaleX(0.35);

    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.main-nav button:hover,
.header-nav button:hover,
.main-nav a:hover,
.header-nav a:hover {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.035);

    transform: translateY(-1px);
}

.main-nav button:hover::after,
.header-nav button:hover::after,
.main-nav a:hover::after,
.header-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}


/* --------------------------------------------------------------
   КНОПКИ СПРАВА
   -------------------------------------------------------------- */

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 18px;

    margin: 0;
}

.header-actions > button {
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    border-radius: 12px;

    padding: 11px 20px;

    font-size: 15px;
    font-weight: 900;

    line-height: 1;
    white-space: nowrap;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}


/* --------------------------------------------------------------
   МОИ ЗАКАЗЫ
   -------------------------------------------------------------- */

#myOrdersButton {
    min-width: 190px;

    border: 1px solid rgba(255, 112, 14, 0.92);

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            rgba(255, 102, 0, 0.105),
            rgba(255, 255, 255, 0.035)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.075),
        0 0 18px rgba(255, 99, 0, 0.14),
        0 9px 24px rgba(0, 0, 0, 0.22);
}

#myOrdersButton::before {
    width: 3px;

    background:
        linear-gradient(
            180deg,
            #ff963d,
            #ff5c00
        );
}

#myOrdersButton .account-icon {
    width: 30px;
    height: 30px;

    display: inline-grid;
    place-items: center;

    border-radius: 8px;

    color: #ff720c;

    background: rgba(255, 105, 0, 0.12);

    box-shadow:
        inset 0 0 0 1px rgba(255, 113, 15, 0.12);

    font-size: 18px;
}

#myOrdersButton:hover {
    border-color: #ff8730;

    background:
        linear-gradient(
            135deg,
            rgba(255, 105, 0, 0.22),
            rgba(255, 105, 0, 0.075)
        );

    box-shadow:
        0 0 25px rgba(255, 105, 0, 0.22),
        0 12px 29px rgba(0, 0, 0, 0.25);

    transform: translateY(-2px);
}


/* --------------------------------------------------------------
   КОРЗИНА
   -------------------------------------------------------------- */

#cartButton {
    min-width: 175px;

    border: 1px solid rgba(255, 255, 255, 0.17);

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.02)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 9px 23px rgba(0, 0, 0, 0.2);
}

#cartButton:hover {
    border-color: rgba(255, 112, 14, 0.7);

    background:
        linear-gradient(
            180deg,
            rgba(255, 107, 0, 0.13),
            rgba(255, 107, 0, 0.04)
        );

    transform: translateY(-2px);
}

#cartCount {
    min-width: 28px;
    height: 28px;

    display: inline-grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;

    padding: 0 7px;

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            #596476,
            #303947
        );

    font-size: 12px;
    font-weight: 900;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.13);
}


/* --------------------------------------------------------------
   ПРОФИЛЬ
   -------------------------------------------------------------- */

#accountButton {
    position: relative;

    min-width: 195px;

    margin-left: 10px;

    border: 1px solid #ff7b19;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #ff7916 0%,
            #ff5d00 100%
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.19),
        0 10px 27px rgba(255, 92, 0, 0.25);

    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.19);
}

#accountButton::before {
    content: "";

    position: absolute;

    top: 4px;
    bottom: 4px;
    left: -20px;

    width: 1px;

    background: rgba(255, 255, 255, 0.14);
}

#accountButton:hover {
    border-color: #ff9b54;

    background:
        linear-gradient(
            135deg,
            #ff892f 0%,
            #ff6508 100%
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.21),
        0 12px 31px rgba(255, 92, 0, 0.31);

    transform: translateY(-2px);
}


/* --------------------------------------------------------------
   ИКОНКИ
   -------------------------------------------------------------- */

.header-actions .account-icon,
.header-actions .cart-icon {
    flex: 0 0 auto;

    font-size: 18px;
}


/* --------------------------------------------------------------
   СРЕДНИЕ ЭКРАНЫ
   -------------------------------------------------------------- */

@media (max-width: 1250px) {
    .header-inner {
        width: min(100% - 40px, 1180px);

        grid-template-columns:
            minmax(220px, 1fr)
            auto
            auto;

        column-gap: 25px;
    }

    .logo,
    .site-logo,
    .brand,
    .header-logo {
        font-size: 34px;
    }

    .main-nav,
    .header-nav {
        gap: 14px;
    }

    .header-actions {
        gap: 9px;
    }

    .header-actions > button {
        min-height: 48px;

        padding-right: 14px;
        padding-left: 14px;

        font-size: 13px;
    }

    #myOrdersButton {
        min-width: 155px;
    }

    #cartButton {
        min-width: 135px;
    }

    #accountButton {
        min-width: 150px;
    }
}


/* --------------------------------------------------------------
   ПЛАНШЕТ И МОБИЛЬНАЯ ВЕРСИЯ
   -------------------------------------------------------------- */

@media (max-width: 900px) {
    .site-header {
        min-height: auto;
    }

    .header-inner {
        width: min(100% - 28px, 850px);
        min-height: auto;

        display: flex;
        flex-wrap: wrap;

        gap: 14px;

        padding: 16px 0 18px;
    }

    .logo,
    .site-logo,
    .brand,
    .header-logo {
        font-size: 31px;
    }

    .header-actions {
        margin-left: auto;
    }

    .main-nav,
    .header-nav {
        order: 3;

        width: 100%;

        justify-content: center;

        border-top: 1px solid rgba(255, 255, 255, 0.075);

        padding-top: 9px;
    }

    .header-actions > button {
        min-width: 48px;

        padding-right: 11px;
        padding-left: 11px;
    }

    #myOrdersButton span:last-child,
    #cartButton span:not(#cartCount) {
        display: none;
    }

    #myOrdersButton,
    #cartButton {
        min-width: 50px;
    }

    #accountButton {
        min-width: auto;
        margin-left: 2px;
    }

    #accountButton::before {
        display: none;
    }
}


@media (max-width: 560px) {
    .header-inner {
        width: min(100% - 20px, 520px);

        gap: 9px;
    }

    .logo,
    .site-logo,
    .brand,
    .header-logo {
        font-size: 26px;
        letter-spacing: -2px;
    }

    .header-actions {
        gap: 5px;
    }

    .header-actions > button {
        min-height: 44px;

        border-radius: 9px;

        padding: 8px 9px;
    }

    #accountButton {
        max-width: 125px;

        overflow: hidden;

        text-overflow: ellipsis;
    }

    .main-nav,
    .header-nav {
        justify-content: space-around;

        gap: 4px;
    }

    .main-nav button,
    .header-nav button,
    .main-nav a,
    .header-nav a {
        flex: 1;

        padding-right: 7px;
        padding-left: 7px;

        font-size: 12px;
        text-align: center;
    }
}



/* ==================================================================
   PARTON52 FINAL HEADER ALIGNMENT
   Финальная коррекция пропорций и выравнивания.
   ================================================================== */

.site-header {
    min-height: 88px !important;
}

.site-header::after {
    height: 2px !important;

    box-shadow:
        0 0 8px rgba(255, 107, 0, 0.34) !important;
}

.header-inner {
    width: min(calc(100% - 64px), 1540px) !important;
    min-height: 88px !important;

    display: grid !important;
    grid-template-columns:
        minmax(300px, 1fr)
        auto
        auto !important;

    align-items: center !important;

    column-gap: 46px !important;

    margin: 0 auto !important;
    padding: 0 !important;
}


/* ================================================================
   ЛОГОТИП
   ================================================================ */

.logo,
.site-logo,
.brand,
.header-logo {
    justify-self: start !important;

    margin: 0 !important;

    font-size: clamp(38px, 2.65vw, 52px) !important;
    line-height: 1 !important;
    letter-spacing: -3px !important;

    transform: skewX(-11deg) !important;
}

.logo:hover,
.site-logo:hover,
.brand:hover,
.header-logo:hover {
    transform:
        skewX(-11deg)
        translateY(-1px) !important;
}

.logo::after,
.site-logo::after,
.brand::after,
.header-logo::after {
    right: 1px !important;
    bottom: -10px !important;
    left: 2px !important;

    height: 2px !important;

    opacity: 0.85;
}


/* ================================================================
   ЦЕНТРАЛЬНАЯ НАВИГАЦИЯ
   ================================================================ */

.main-nav,
.header-nav {
    justify-self: center !important;

    gap: 26px !important;

    margin: 0 !important;
}

.main-nav button,
.header-nav button,
.main-nav a,
.header-nav a {
    min-height: 42px !important;

    padding: 9px 8px !important;

    font-size: 14px !important;
}


/* ================================================================
   ПРАВЫЕ КНОПКИ
   ================================================================ */

.header-actions {
    justify-self: end !important;

    gap: 12px !important;

    margin: 0 !important;
}

.header-actions > button {
    min-height: 48px !important;

    border-radius: 10px !important;

    padding: 9px 16px !important;

    font-size: 14px !important;
}


/* ================================================================
   МОИ ЗАКАЗЫ — БЕЗ ЯРКОГО ОРАНЖЕВОГО ОБОДА
   ================================================================ */

#myOrdersButton {
    min-width: 158px !important;

    border:
        1px solid
        rgba(255, 255, 255, 0.15) !important;

    color: #ffffff !important;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.025)
        ) !important;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 7px 18px rgba(0, 0, 0, 0.17) !important;

    transform: none !important;
}

#myOrdersButton::before {
    display: none !important;
}

#myOrdersButton .account-icon {
    width: 26px !important;
    height: 26px !important;

    border-radius: 7px !important;

    color: #ff8125 !important;
    background: rgba(255, 107, 0, 0.11) !important;

    font-size: 15px !important;
}

#myOrdersButton:hover {
    border-color:
        rgba(255, 107, 0, 0.55) !important;

    background:
        linear-gradient(
            180deg,
            rgba(255, 107, 0, 0.11),
            rgba(255, 255, 255, 0.03)
        ) !important;

    box-shadow:
        0 0 14px rgba(255, 107, 0, 0.08),
        0 8px 20px rgba(0, 0, 0, 0.19) !important;

    transform: translateY(-1px) !important;
}


/* ================================================================
   КОРЗИНА
   ================================================================ */

#cartButton {
    min-width: 150px !important;

    border:
        1px solid
        rgba(255, 255, 255, 0.15) !important;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0.025)
        ) !important;
}

#cartButton:hover {
    border-color:
        rgba(255, 107, 0, 0.48) !important;

    transform: translateY(-1px) !important;
}

#cartCount {
    min-width: 25px !important;
    height: 25px !important;

    font-size: 11px !important;
}


/* ================================================================
   ПРОФИЛЬ
   ================================================================ */

#accountButton {
    min-width: 162px !important;
    min-height: 48px !important;

    margin-left: 8px !important;

    border-color: #ff7d1d !important;

    border-radius: 10px !important;

    padding-right: 17px !important;
    padding-left: 17px !important;
}

#accountButton::before {
    top: 6px !important;
    bottom: 6px !important;
    left: -11px !important;
}


/* ================================================================
   ЭКРАНЫ ДО 1300 PX
   ================================================================ */

@media (max-width: 1300px) {
    .header-inner {
        width: min(calc(100% - 40px), 1240px) !important;

        grid-template-columns:
            minmax(230px, 1fr)
            auto
            auto !important;

        column-gap: 22px !important;
    }

    .logo,
    .site-logo,
    .brand,
    .header-logo {
        font-size: 35px !important;
    }

    .main-nav,
    .header-nav {
        gap: 12px !important;
    }

    .header-actions {
        gap: 8px !important;
    }

    .header-actions > button {
        padding-right: 12px !important;
        padding-left: 12px !important;

        font-size: 13px !important;
    }

    #myOrdersButton {
        min-width: 142px !important;
    }

    #cartButton {
        min-width: 126px !important;
    }

    #accountButton {
        min-width: 140px !important;
    }
}


/* ================================================================
   ПЛАНШЕТЫ И ТЕЛЕФОНЫ
   ================================================================ */

@media (max-width: 900px) {
    .site-header {
        min-height: auto !important;
    }

    .header-inner {
        width: min(calc(100% - 28px), 860px) !important;
        min-height: auto !important;

        display: flex !important;
        flex-wrap: wrap !important;

        gap: 12px !important;

        padding: 14px 0 16px !important;
    }

    .logo,
    .site-logo,
    .brand,
    .header-logo {
        font-size: 30px !important;
    }

    .header-actions {
        margin-left: auto !important;
    }

    .main-nav,
    .header-nav {
        order: 3 !important;

        width: 100% !important;

        justify-content: center !important;

        border-top:
            1px solid
            rgba(255, 255, 255, 0.07) !important;

        padding-top: 8px !important;
    }

    #myOrdersButton,
    #cartButton {
        min-width: 47px !important;
    }

    #myOrdersButton span:last-child,
    #cartButton span:not(#cartCount) {
        display: none !important;
    }

    #accountButton {
        min-width: auto !important;
        margin-left: 2px !important;
    }

    #accountButton::before {
        display: none !important;
    }
}



/* ==================================================================
   PARTON52 LOGO CLIPPING FIX
   Исправление обрезания наклонного логотипа.
   ================================================================== */

.logo,
.site-logo,
.brand,
.header-logo {
    overflow: visible !important;

    box-sizing: content-box !important;

    min-width: max-content !important;

    padding:
        8px
        14px
        10px
        10px !important;

    margin:
        -8px
        -14px
        -10px
        -10px !important;

    line-height: 1.18 !important;
    letter-spacing: -2px !important;

    transform-origin: center left !important;

    white-space: nowrap !important;

    clip-path: none !important;
    -webkit-clip-path: none !important;
}

.logo span,
.site-logo span,
.brand span,
.header-logo span {
    display: inline-block !important;

    overflow: visible !important;

    padding-top: 2px !important;
    padding-bottom: 2px !important;

    line-height: 1.08 !important;

    white-space: nowrap !important;
}

.logo span:last-child,
.site-logo span:last-child,
.brand span:last-child,
.header-logo span:last-child,
.logo-accent {
    margin-left: 3px !important;

    padding-right: 3px !important;
}

.logo::after,
.site-logo::after,
.brand::after,
.header-logo::after {
    right: 10px !important;
    bottom: 1px !important;
    left: 10px !important;
}



/* ==================================================================
   PARTON52 LOGO ARTIFACT AND MODAL CLOSE FIX
   ================================================================== */


/* ------------------------------------------------------------------
   1. УБИРАЕМ БЕЛЫЙ АРТЕФАКТ СПРАВА ОТ ЛОГОТИПА
   ------------------------------------------------------------------ */

.logo,
.site-logo,
.brand,
.header-logo {
    overflow: visible !important;

    color: #f5f7fa !important;

    background: none !important;

    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;

    -webkit-text-fill-color: currentColor !important;

    filter: none !important;

    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12),
        0 3px 0 rgba(121, 132, 148, 0.22),
        0 7px 16px rgba(0, 0, 0, 0.42) !important;
}

.logo span,
.site-logo span,
.brand span,
.header-logo span {
    background: none !important;

    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;

    -webkit-text-fill-color: currentColor !important;

    filter: none !important;
}

.logo span:last-child,
.site-logo span:last-child,
.brand span:last-child,
.header-logo span:last-child,
.logo-accent {
    color: #ff6500 !important;

    background: none !important;

    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;

    -webkit-text-fill-color: #ff6500 !important;

    text-shadow:
        0 1px 0 rgba(255, 178, 112, 0.2),
        0 5px 13px rgba(255, 101, 0, 0.24) !important;
}

.logo::before,
.site-logo::before,
.brand::before,
.header-logo::before {
    display: none !important;
}


/* ------------------------------------------------------------------
   2. НОРМАЛЬНО РАЗМЕЩАЕМ КРЕСТИК В КАРТОЧКЕ ЗАКАЗА
   ------------------------------------------------------------------ */

.order-details-modal {
    position: relative !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    padding:
        36px
        52px
        32px
        32px !important;

    scrollbar-gutter: stable !important;
}

.order-details-modal > .modal-close,
#closeOrderDetailsModal {
    position: sticky !important;

    top: 0 !important;
    right: 0 !important;

    z-index: 20 !important;

    float: right !important;

    width: 42px !important;
    height: 42px !important;

    margin:
        -18px
        -35px
        8px
        16px !important;

    display: inline-grid !important;
    place-items: center !important;

    border:
        1px solid
        #dce3ec !important;

    border-radius: 50% !important;

    color: #647287 !important;

    background: #f7f9fc !important;

    box-shadow:
        0 5px 16px rgba(22, 37, 59, 0.1) !important;

    font-size: 25px !important;
    line-height: 1 !important;

    cursor: pointer !important;
}

.order-details-modal > .modal-close:hover,
#closeOrderDetailsModal:hover {
    color: #172236 !important;

    border-color: #c8d1dd !important;

    background: #edf1f6 !important;
}


/* Полоса прокрутки не должна заходить под кнопку */

.order-details-modal::-webkit-scrollbar {
    width: 10px;
}

.order-details-modal::-webkit-scrollbar-track {
    border-radius: 999px;

    background: #edf1f6;
}

.order-details-modal::-webkit-scrollbar-thumb {
    border: 2px solid #edf1f6;
    border-radius: 999px;

    background: #9da8b7;
}

.order-details-modal::-webkit-scrollbar-thumb:hover {
    background: #7f8b9c;
}


/* ------------------------------------------------------------------
   МОБИЛЬНАЯ ВЕРСИЯ
   ------------------------------------------------------------------ */

@media (max-width: 700px) {
    .order-details-modal {
        padding:
            28px
            20px
            24px !important;
    }

    .order-details-modal > .modal-close,
    #closeOrderDetailsModal {
        position: sticky !important;

        margin:
            -14px
            -5px
            8px
            12px !important;
    }
}



/* ==================================================================
   PARTON52 ORDER DETAILS STYLE PATCH
   ================================================================== */


/* ------------------------------------------------------------------
   ОБЩАЯ КАРТОЧКА ЗАКАЗА
   ------------------------------------------------------------------ */

.order-details-modal {
    width: min(95vw, 1080px) !important;

    color: #172236 !important;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f4f7fb 100%
        ) !important;
}

.order-details-heading {
    display: grid !important;

    gap: 14px !important;

    margin-bottom: 18px !important;

    border: 1px solid #dfe5ed !important;
    border-radius: 17px !important;

    padding: 21px !important;

    background: #ffffff !important;

    box-shadow:
        0 10px 28px rgba(25, 42, 68, 0.055) !important;
}

.order-details-heading h2 {
    margin: 0 !important;

    color: #142033 !important;

    font-size: clamp(25px, 3vw, 34px) !important;
    letter-spacing: -0.03em !important;
}

.order-details-heading p {
    margin: 0 !important;

    color: #738094 !important;

    line-height: 1.5 !important;
}


/* ------------------------------------------------------------------
   ШКАЛА ДВИЖЕНИЯ ЗАКАЗА
   ------------------------------------------------------------------ */

.parton-order-progress {
    position: relative;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(95px, 1fr));

    gap: 0;

    margin-top: 9px;

    padding:
        12px
        0
        3px;
}

.parton-order-progress::before {
    content: "";

    position: absolute;

    top: 21px;
    right: 9%;
    left: 9%;

    height: 3px;

    border-radius: 999px;

    background: #d9e0e9;
}

.parton-order-progress-step {
    position: relative;
    z-index: 1;

    display: grid;
    justify-items: center;

    gap: 11px;

    color: #909aaa;

    text-align: center;
}

.parton-order-progress-point {
    width: 18px;
    height: 18px;

    border: 4px solid #ffffff;
    border-radius: 50%;

    background: #cfd6df;

    box-shadow:
        0 0 0 2px #cfd6df;
}

.parton-order-progress-step strong {
    max-width: 115px;

    font-size: 11px;
    line-height: 1.25;
}

.parton-order-progress-step.is-complete {
    color: #28629e;
}

.parton-order-progress-step.is-complete
.parton-order-progress-point {
    background: #3286dd;

    box-shadow:
        0 0 0 2px #3286dd;
}

.parton-order-progress-step.is-current
.parton-order-progress-point {
    box-shadow:
        0 0 0 2px #3286dd,
        0 0 0 7px rgba(50, 134, 221, 0.14);
}

.parton-order-progress.is-cancelled::before {
    background: #e0e4ea;
}

.parton-order-progress.is-cancelled
.parton-order-progress-point {
    background: #c6cdd6;

    box-shadow:
        0 0 0 2px #c6cdd6;
}


/* ------------------------------------------------------------------
   БЛОКИ ВНУТРИ КАРТОЧКИ
   ------------------------------------------------------------------ */

.order-info-grid > div,
.order-item,
.order-comment,
.order-cancel-section {
    border-color: #dfe5ed !important;

    background: #ffffff !important;

    box-shadow:
        0 6px 18px rgba(25, 42, 68, 0.035) !important;
}

.order-info-grid > div {
    border-radius: 12px !important;

    padding: 14px !important;
}

.order-info-grid span {
    color: #8a95a5 !important;
}

.order-info-grid strong {
    color: #364459 !important;
}

.order-item {
    border-radius: 13px !important;

    padding: 16px !important;
}

.order-item p {
    color: #526074 !important;
}

.order-item small {
    color: #8a95a5 !important;
}

.order-item-price strong {
    color: #142033 !important;
}

.order-details-total {
    border-top-color: #dce3eb !important;

    color: #5b687a !important;
}

.order-details-total strong {
    color: #142033 !important;

    font-size: 22px !important;
}


/* ------------------------------------------------------------------
   ИСТОРИЯ СТАТУСОВ
   ------------------------------------------------------------------ */

.order-history-item {
    border-left-color: #d8e0e9 !important;
}

.order-history-dot {
    border-color: #ffffff !important;

    background: #3286dd !important;

    box-shadow:
        0 0 0 2px #3286dd !important;
}

.order-history-item strong {
    color: #285d95 !important;
}

.order-history-item p {
    color: #6e7a8c !important;
}

.order-history-item small {
    color: #929cab !important;
}


/* ------------------------------------------------------------------
   ОТМЕНА ЗАКАЗА
   ------------------------------------------------------------------ */

.order-cancel-section {
    border-color: #efcccc !important;

    border-radius: 13px !important;

    background: #fffafa !important;
}

.order-cancel-section p {
    color: #826f6f !important;
}

.order-cancel-button {
    border-color: #d93b3b !important;

    color: #c72e2e !important;

    background: #ffffff !important;
}

.order-cancel-button:hover:not(:disabled) {
    color: #ffffff !important;

    background: #d93636 !important;
}


/* ------------------------------------------------------------------
   МОБИЛЬНАЯ ВЕРСИЯ
   ------------------------------------------------------------------ */

@media (max-width: 700px) {
    .parton-order-progress {
        overflow-x: auto;

        grid-template-columns:
            repeat(5, minmax(96px, 1fr));

        padding-bottom: 12px;
    }

    .order-details-heading {
        padding: 17px !important;
    }
}



/* ==================================================================
   PARTON52 ORDERS WORKSPACE STYLE PATCH
   Финальный дизайн: список слева, карточка заказа справа.
   ================================================================== */


/* ------------------------------------------------------------------
   ОБЩЕЕ БОЛЬШОЕ ОКНО
   ------------------------------------------------------------------ */

#ordersModal {
    padding: 22px !important;

    background: rgba(3, 10, 22, 0.84) !important;

    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.orders-modal.parton-orders-workspace {
    width: min(96vw, 1480px) !important;
    height: min(91vh, 900px) !important;
    max-height: none !important;

    display: grid !important;
    grid-template-columns:
        minmax(330px, 410px)
        minmax(0, 1fr) !important;

    overflow: hidden !important;

    margin: auto !important;
    padding: 0 !important;

    border:
        1px solid
        rgba(255, 255, 255, 0.12) !important;

    border-radius: 23px !important;

    color: #ffffff !important;

    background: #0c1728 !important;

    box-shadow:
        0 34px 100px rgba(0, 0, 0, 0.52) !important;
}


/* ------------------------------------------------------------------
   ЛЕВАЯ КОЛОНКА СО СПИСКОМ ЗАКАЗОВ
   ------------------------------------------------------------------ */

.parton-orders-list-column {
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border-right:
        1px solid
        rgba(255, 255, 255, 0.09);

    padding: 27px 22px;

    color: #ffffff;

    background:
        radial-gradient(
            circle at top left,
            rgba(255, 107, 0, 0.09),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #111e32 0%,
            #0b1627 58%,
            #08111e 100%
        );
}


/* Шапка левой колонки */

.parton-orders-list-column
.orders-modal-header {
    flex: 0 0 auto;

    margin-bottom: 10px !important;
}

.parton-orders-list-column
.orders-modal-header h2 {
    margin:
        8px
        0
        6px !important;

    color: #ffffff !important;

    font-size: 29px !important;
    letter-spacing: -0.025em !important;
}

.parton-orders-list-column
.orders-modal-header p {
    max-width: 300px;

    margin: 0 !important;

    color:
        rgba(255, 255, 255, 0.62) !important;

    font-size: 13px !important;
    line-height: 1.5 !important;
}

.parton-orders-list-column
.modal-badge {
    color: #ff963f !important;

    background:
        rgba(255, 107, 0, 0.13) !important;
}

.parton-orders-list-column
.modal-close {
    color:
        rgba(255, 255, 255, 0.74) !important;

    background:
        rgba(255, 255, 255, 0.045) !important;
}

.parton-orders-list-column
.modal-close:hover {
    color: #ffffff !important;

    background:
        rgba(255, 255, 255, 0.1) !important;
}


/* Панель обновления */

.parton-orders-list-column
.orders-toolbar {
    flex: 0 0 auto;

    margin:
        8px
        0
        15px !important;
}

.parton-orders-list-column
.verification-button {
    border:
        1px solid
        rgba(255, 255, 255, 0.14) !important;

    color:
        rgba(255, 255, 255, 0.88) !important;

    background:
        rgba(255, 255, 255, 0.05) !important;
}

.parton-orders-list-column
.verification-button:hover {
    border-color:
        rgba(255, 107, 0, 0.7) !important;

    color: #ffffff !important;

    background:
        rgba(255, 107, 0, 0.11) !important;
}


/* Список с отдельной прокруткой */

.parton-orders-list-column
.orders-list {
    min-height: 0;

    display: grid;
    align-content: start;

    gap: 10px !important;

    overflow-y: auto;

    padding:
        2px
        6px
        12px
        1px;

    scrollbar-gutter: stable;
}

.parton-orders-list-column
.orders-list::-webkit-scrollbar {
    width: 8px;
}

.parton-orders-list-column
.orders-list::-webkit-scrollbar-track {
    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.04);
}

.parton-orders-list-column
.orders-list::-webkit-scrollbar-thumb {
    border:
        2px solid
        transparent;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.2);

    background-clip: padding-box;
}

.parton-orders-list-column
.orders-list::-webkit-scrollbar-thumb:hover {
    background:
        rgba(255, 107, 0, 0.48);

    background-clip: padding-box;
}


/* Пустой список */

.parton-orders-list-column
.orders-state {
    color:
        rgba(255, 255, 255, 0.62) !important;

    background:
        rgba(255, 255, 255, 0.025) !important;

    border-color:
        rgba(255, 255, 255, 0.13) !important;
}

.parton-orders-list-column
.orders-state h3 {
    color: #ffffff !important;
}

.parton-orders-list-column
.orders-state p {
    color:
        rgba(255, 255, 255, 0.58) !important;
}


/* ------------------------------------------------------------------
   КАРТОЧКИ ЗАКАЗОВ СЛЕВА
   ------------------------------------------------------------------ */

.parton-orders-list-column
.order-card {
    position: relative;

    width: 100% !important;

    display: grid !important;
    gap: 10px !important;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.1) !important;

    border-radius: 14px !important;

    padding:
        16px
        16px
        15px !important;

    color: #ffffff !important;

    background:
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.025)
        ) !important;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.025) !important;

    text-align: left !important;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease !important;
}

.parton-orders-list-column
.order-card::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 3px;

    opacity: 0;

    background:
        linear-gradient(
            180deg,
            #ff953c,
            #ff5d00
        );

    transition:
        opacity 0.18s ease;
}

.parton-orders-list-column
.order-card:hover {
    border-color:
        rgba(255, 107, 0, 0.55) !important;

    background:
        linear-gradient(
            120deg,
            rgba(255, 107, 0, 0.1),
            rgba(255, 255, 255, 0.035)
        ) !important;

    transform: translateY(-1px) !important;
}

.parton-orders-list-column
.order-card.is-active {
    border-color:
        rgba(255, 107, 0, 0.74) !important;

    background:
        linear-gradient(
            120deg,
            rgba(255, 107, 0, 0.16),
            rgba(255, 255, 255, 0.045)
        ) !important;

    box-shadow:
        0 10px 27px
        rgba(0, 0, 0, 0.18) !important;
}

.parton-orders-list-column
.order-card.is-active::before {
    opacity: 1;
}

.parton-orders-list-column
.order-card-number {
    color: #ffffff !important;

    font-size: 16px !important;
}

.parton-orders-list-column
.order-card-details {
    color:
        rgba(255, 255, 255, 0.58) !important;
}

.parton-orders-list-column
.order-card-details strong {
    color: #ffffff !important;
}


/* Статусы внутри тёмной колонки */

.parton-orders-list-column
.order-status-received {
    color: #79baff !important;

    background:
        rgba(47, 135, 230, 0.15) !important;
}

.parton-orders-list-column
.order-status-confirmed,
.parton-orders-list-column
.order-status-ready_for_pickup,
.parton-orders-list-column
.order-status-completed {
    color: #73dfa7 !important;

    background:
        rgba(38, 169, 96, 0.15) !important;
}

.parton-orders-list-column
.order-status-preparing,
.parton-orders-list-column
.order-status-in_transit {
    color: #c293ff !important;

    background:
        rgba(118, 74, 203, 0.16) !important;
}

.parton-orders-list-column
.order-status-clarification_required {
    color: #ffc15d !important;

    background:
        rgba(216, 130, 18, 0.16) !important;
}

.parton-orders-list-column
.order-status-cancelled {
    color: #bdc5d1 !important;

    background:
        rgba(145, 156, 174, 0.14) !important;
}


/* ------------------------------------------------------------------
   ПРАВАЯ СВЕТЛАЯ КОЛОНКА
   ------------------------------------------------------------------ */

.parton-order-details-column {
    min-width: 0;
    min-height: 0;

    position: relative;

    overflow: hidden;

    color: #172236;

    background:
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #eef2f7 100%
        );
}


/* Заглушка */

.parton-order-details-placeholder {
    min-height: 100%;

    display: grid;
    place-content: center;
    justify-items: center;

    padding: 40px;

    color: #7a8799;

    text-align: center;
}

.parton-order-placeholder-icon {
    width: 78px;
    height: 78px;

    display: grid;
    place-items: center;

    margin-bottom: 17px;

    border:
        1px solid
        #dfe5ed;

    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 12px 35px
        rgba(25, 42, 68, 0.07);

    font-size: 39px;
}

.parton-order-details-placeholder h3 {
    margin:
        0
        0
        8px;

    color: #172236;

    font-size: 25px;
    letter-spacing: -0.02em;
}

.parton-order-details-placeholder p {
    max-width: 390px;

    margin: 0;

    color: #7c8899;

    line-height: 1.55;
}


/* Карточка заказа с отдельной прокруткой */

.parton-embedded-order-details {
    height: 100%;

    overflow-y: auto;
    overflow-x: hidden;

    padding:
        28px
        34px
        36px;

    scrollbar-gutter: stable;
}

.parton-embedded-order-details::-webkit-scrollbar {
    width: 10px;
}

.parton-embedded-order-details::-webkit-scrollbar-track {
    background: #edf1f6;
}

.parton-embedded-order-details::-webkit-scrollbar-thumb {
    border:
        2px solid
        #edf1f6;

    border-radius: 999px;

    background: #a0aab8;
}

.parton-embedded-order-details::-webkit-scrollbar-thumb:hover {
    background: #7e8998;
}


/* Убираем стили отдельного старого модального окна
   внутри встроенной карточки */

.parton-embedded-order-details
.order-details-heading {
    margin-top: 0 !important;
}

.parton-embedded-order-details
.order-details-total {
    margin-bottom: 0 !important;
}


/* ------------------------------------------------------------------
   ПЛАНШЕТ
   ------------------------------------------------------------------ */

@media (max-width: 1050px) {
    .orders-modal.parton-orders-workspace {
        grid-template-columns:
            minmax(290px, 350px)
            minmax(0, 1fr) !important;
    }

    .parton-orders-list-column {
        padding:
            23px
            18px;
    }

    .parton-embedded-order-details {
        padding:
            24px
            23px
            30px;
    }
}


/* ------------------------------------------------------------------
   МОБИЛЬНАЯ ВЕРСИЯ
   ------------------------------------------------------------------ */

@media (max-width: 780px) {
    #ordersModal {
        align-items: flex-end !important;

        padding: 0 !important;
    }

    .orders-modal.parton-orders-workspace {
        width: 100% !important;
        height: 95vh !important;

        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows:
            minmax(260px, 42%)
            minmax(0, 1fr) !important;

        border-radius:
            22px
            22px
            0
            0 !important;
    }

    .parton-orders-list-column {
        border-right: 0;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.1);

        padding:
            20px
            16px;
    }

    .parton-orders-list-column
    .orders-list {
        grid-auto-flow: column;
        grid-auto-columns: minmax(240px, 82%);

        overflow-x: auto;
        overflow-y: hidden;

        padding-bottom: 8px;
    }

    .parton-orders-list-column
    .order-card {
        align-content: start;
    }

    .parton-order-details-column {
        min-height: 0;
    }

    .parton-embedded-order-details {
        padding:
            18px
            16px
            28px;
    }

    .parton-order-details-placeholder {
        padding: 24px;
    }
}


/* ------------------------------------------------------------------
   МАЛЕНЬКИЕ ТЕЛЕФОНЫ
   ------------------------------------------------------------------ */

@media (max-width: 520px) {
    .orders-modal.parton-orders-workspace {
        grid-template-rows:
            minmax(245px, 44%)
            minmax(0, 1fr) !important;
    }

    .parton-orders-list-column
    .orders-modal-header h2 {
        font-size: 25px !important;
    }

    .parton-orders-list-column
    .orders-modal-header p {
        font-size: 12px !important;
    }

    .parton-orders-list-column
    .orders-list {
        grid-auto-columns: minmax(225px, 88%);
    }

    .parton-order-placeholder-icon {
        width: 66px;
        height: 66px;

        font-size: 33px;
    }

    .parton-order-details-placeholder h3 {
        font-size: 22px;
    }
}



/* ==================================================================
   PARTON52 ORDERS POLISH 4A
   Полировка правой карточки заказа.
   ================================================================== */


/* Больше воздуха в правой части */

.parton-embedded-order-details {
    padding:
        30px
        36px
        46px !important;
}


/* Шапка заказа */

.parton-embedded-order-details
.order-details-heading {
    position: relative;

    overflow: hidden;

    gap: 16px !important;

    border-color: #dbe3ed !important;
    border-radius: 19px !important;

    padding:
        24px
        25px !important;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(49, 134, 221, 0.09),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f8fafc
        ) !important;

    box-shadow:
        0 12px 34px
        rgba(23, 42, 70, 0.065) !important;
}

.parton-embedded-order-details
.order-details-heading::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 4px;

    background:
        linear-gradient(
            180deg,
            #ff9438,
            #ff5d00
        );
}

.parton-embedded-order-details
.order-details-heading h2 {
    color: #111d30 !important;

    font-size:
        clamp(28px, 3vw, 38px) !important;

    letter-spacing: -0.045em !important;
}

.parton-embedded-order-details
.order-details-heading > p {
    max-width: 620px;

    color: #68768a !important;

    font-size: 13px !important;
}


/* Бейдж текущего статуса */

.parton-embedded-order-details
.order-status {
    border: 1px solid
        rgba(49, 134, 221, 0.18);

    padding:
        7px
        12px;

    font-size: 11px;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.7);
}


/* Шкала статусов */

.parton-order-progress {
    margin-top: 13px !important;

    border-top:
        1px solid
        #e7ebf1;

    padding-top: 22px !important;
}

.parton-order-progress::before {
    top: 31px !important;

    height: 4px !important;

    background:
        linear-gradient(
            90deg,
            #dce3eb,
            #cfd8e3
        ) !important;
}

.parton-order-progress-point {
    width: 20px !important;
    height: 20px !important;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.parton-order-progress-step.is-current
.parton-order-progress-point {
    transform: scale(1.08);

    box-shadow:
        0 0 0 2px #3286dd,
        0 0 0 8px rgba(50, 134, 221, 0.14),
        0 5px 13px rgba(50, 134, 221, 0.22)
        !important;
}

.parton-order-progress-step strong {
    color: inherit;

    font-size: 11px !important;
    font-weight: 850;

    line-height: 1.3 !important;
}


/* Основные белые блоки */

.parton-embedded-order-details
.order-info-grid,
.parton-embedded-order-details
.order-items-list,
.parton-embedded-order-details
.order-history {
    gap: 11px !important;
}

.parton-embedded-order-details
.order-info-grid > div,
.parton-embedded-order-details
.order-item,
.parton-embedded-order-details
.order-comment {
    border-color: #dfe5ed !important;
    border-radius: 14px !important;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fbfcfe
        ) !important;

    box-shadow:
        0 7px 21px
        rgba(25, 42, 68, 0.04) !important;
}


/* Информация о заказе */

.parton-embedded-order-details
.order-info-grid > div {
    position: relative;

    padding:
        15px
        16px !important;
}

.parton-embedded-order-details
.order-info-grid span {
    color: #8a95a5 !important;

    font-size: 11px !important;
}

.parton-embedded-order-details
.order-info-grid strong {
    color: #304057 !important;

    font-size: 13px !important;
}


/* Товары */

.parton-embedded-order-details
.order-item {
    position: relative;

    padding:
        17px
        18px !important;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.parton-embedded-order-details
.order-item:hover {
    border-color:
        rgba(255, 107, 0, 0.32) !important;

    box-shadow:
        0 11px 27px
        rgba(25, 42, 68, 0.07) !important;

    transform: translateY(-1px);
}

.parton-embedded-order-details
.order-item strong {
    color: #17243a !important;
}

.parton-embedded-order-details
.order-item p {
    margin:
        6px
        0 !important;

    color: #526176 !important;

    line-height: 1.45 !important;
}

.parton-embedded-order-details
.order-item small {
    color: #8b96a6 !important;
}

.parton-embedded-order-details
.order-item-price strong {
    color: #111d30 !important;

    font-size: 16px !important;
}


/* Итог */

.parton-embedded-order-details
.order-details-total {
    align-items: center;

    margin-top: 13px !important;

    border:
        1px solid
        #dce4ed !important;

    border-radius: 14px;

    padding:
        17px
        19px !important;

    color: #68758a !important;

    background:
        linear-gradient(
            135deg,
            #f9fbfd,
            #ffffff
        );

    box-shadow:
        0 8px 22px
        rgba(25, 42, 68, 0.045);
}

.parton-embedded-order-details
.order-details-total strong {
    color: #101c2e !important;

    font-size: 24px !important;
    letter-spacing: -0.025em;
}


/* История статусов */

.parton-embedded-order-details
.order-history {
    border:
        1px solid
        #dfe5ed;

    border-radius: 15px;

    padding:
        20px
        18px
        4px;

    background: #ffffff;

    box-shadow:
        0 8px 22px
        rgba(25, 42, 68, 0.04);
}

.parton-embedded-order-details
.order-history-item {
    padding-bottom: 27px !important;
}

.parton-embedded-order-details
.order-history-dot {
    width: 13px !important;
    height: 13px !important;

    box-shadow:
        0 0 0 2px #3286dd,
        0 4px 10px rgba(50, 134, 221, 0.18)
        !important;
}

.parton-embedded-order-details
.order-history-item strong {
    color: #245b94 !important;

    font-size: 13px !important;
}

.parton-embedded-order-details
.order-history-item p {
    color: #68768a !important;

    line-height: 1.5 !important;
}


/* Отмена заказа */

.parton-embedded-order-details
.order-cancel-section {
    border-radius: 14px !important;

    padding:
        16px !important;

    background:
        linear-gradient(
            145deg,
            #fffafa,
            #fff5f5
        ) !important;
}

.parton-embedded-order-details
.order-cancel-button {
    border-radius: 10px !important;

    padding:
        12px
        16px !important;
}


/* Мобильная версия */

@media (max-width: 700px) {
    .parton-embedded-order-details {
        padding:
            18px
            15px
            30px !important;
    }

    .parton-embedded-order-details
    .order-details-heading {
        padding:
            19px
            17px !important;
    }

    .parton-order-progress {
        padding-top: 20px !important;
    }

    .parton-order-progress::before {
        top: 29px !important;
    }
}



/* ==================================================================
   PARTON52 ORDERS POLISH 4B
   Полировка карточек заказов в левой колонке.
   ================================================================== */

.parton-orders-list-column .order-card {
    position: relative;

    min-height: 128px;

    display: grid !important;
    grid-template-columns:
        minmax(0, 1fr)
        auto !important;

    align-items: start !important;
    gap: 10px 14px !important;

    padding:
        17px
        42px
        17px
        18px !important;

    border:
        1px solid
        rgba(255, 255, 255, 0.1) !important;

    border-radius: 15px !important;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(255, 255, 255, 0.045),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.02)
        ) !important;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.035),
        0 7px 20px
        rgba(0, 0, 0, 0.12) !important;
}


/* Стрелка справа */

.parton-orders-list-column .order-card::after {
    content: "›";

    position: absolute;

    top: 50%;
    right: 15px;

    color:
        rgba(255, 255, 255, 0.42);

    font-size: 28px;
    font-weight: 300;
    line-height: 1;

    transform:
        translateY(-50%);

    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.parton-orders-list-column
.order-card:hover::after,
.parton-orders-list-column
.order-card.is-active::after {
    color: #ff8830;

    transform:
        translateY(-50%)
        translateX(2px);
}


/* Верхняя строка */

.parton-orders-list-column
.order-card-top {
    grid-column: 1 / -1;

    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;

    gap: 12px !important;
}


/* Номер заказа */

.parton-orders-list-column
.order-card-number {
    color: #ffffff !important;

    font-size: 17px !important;
    font-weight: 900 !important;

    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
}


/* Статус */

.parton-orders-list-column
.order-card .order-status {
    flex: 0 0 auto;

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    padding:
        6px
        10px !important;

    font-size: 10px !important;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.055);
}


/* Информация: дата, товары, сумма */

.parton-orders-list-column
.order-card-details {
    grid-column: 1 / -1;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap;

    gap: 8px 12px !important;

    margin-top: 2px !important;

    color:
        rgba(255, 255, 255, 0.55) !important;

    font-size: 12px !important;
    line-height: 1.4 !important;
}

.parton-orders-list-column
.order-card-details strong {
    color: #ffffff !important;

    font-size: 15px !important;
    font-weight: 900 !important;
}


/* Дополнительная тонкая линия */

.parton-orders-list-column
.order-card-details::before {
    content: "";

    width: 100%;
    height: 1px;

    margin-bottom: 2px;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.09),
            rgba(255, 255, 255, 0)
        );
}


/* Наведение */

.parton-orders-list-column
.order-card:hover {
    border-color:
        rgba(255, 107, 0, 0.42) !important;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(255, 107, 0, 0.09),
            transparent 48%
        ),
        linear-gradient(
            135deg,
            rgba(255, 107, 0, 0.09),
            rgba(255, 255, 255, 0.025)
        ) !important;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.04),
        0 10px 25px
        rgba(0, 0, 0, 0.18) !important;
}


/* Активный заказ */

.parton-orders-list-column
.order-card.is-active {
    border-color:
        rgba(255, 107, 0, 0.68) !important;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(255, 107, 0, 0.13),
            transparent 50%
        ),
        linear-gradient(
            135deg,
            rgba(255, 107, 0, 0.14),
            rgba(255, 255, 255, 0.035)
        ) !important;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.055),
        0 11px 28px
        rgba(0, 0, 0, 0.2),
        0 0 0 1px
        rgba(255, 107, 0, 0.06) !important;
}

.parton-orders-list-column
.order-card.is-active::before {
    width: 4px !important;

    opacity: 1 !important;
}


/* На маленьких экранах */

@media (max-width: 780px) {
    .parton-orders-list-column .order-card {
        min-height: 120px;

        padding:
            15px
            38px
            15px
            16px !important;
    }

    .parton-orders-list-column
    .order-card-number {
        font-size: 16px !important;
    }

    .parton-orders-list-column
    .order-card-details {
        font-size: 11px !important;
    }
}



/* ==================================================================
   PARTON52 ORDER FRIENDLY PROGRESS STYLE
   ================================================================== */

.parton-order-friendly-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 17px;

    margin: 0 0 18px;

    border: 1px solid #dce4ed;
    border-radius: 17px;

    padding: 18px 20px;

    color: #172236;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(49, 134, 221, 0.09),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f7f9fc
        );

    box-shadow:
        0 10px 28px rgba(25, 42, 68, 0.055);
}


/* Иконка */

.parton-order-friendly-icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(49, 134, 221, 0.16);
    border-radius: 16px;

    color: #245d98;

    background:
        linear-gradient(
            145deg,
            #edf6ff,
            #dfeeff
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 7px 18px rgba(49, 134, 221, 0.1);

    font-size: 25px;
    font-weight: 900;
}


/* Основной текст */

.parton-order-friendly-content {
    min-width: 0;

    display: grid;
    gap: 13px;
}

.parton-order-friendly-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.parton-order-friendly-heading strong {
    display: block;

    margin-bottom: 5px;

    color: #172236;

    font-size: 16px;
    font-weight: 900;

    line-height: 1.25;
}

.parton-order-friendly-heading p {
    margin: 0;

    color: #6c798c;

    font-size: 12px;
    line-height: 1.5;
}

.parton-order-friendly-percent {
    flex: 0 0 auto;

    min-width: 48px;

    border: 1px solid #dce4ed;
    border-radius: 999px;

    padding: 7px 10px;

    color: #285f99;

    background: #ffffff;

    font-size: 12px;
    font-weight: 900;
    text-align: center;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}


/* Полоса прогресса */

.parton-order-friendly-progress {
    width: 100%;
    height: 8px;

    overflow: hidden;

    border-radius: 999px;

    background: #e1e7ee;

    box-shadow:
        inset 0 1px 3px rgba(21, 36, 58, 0.08);
}

.parton-order-friendly-progress span {
    display: block;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #2479cf,
            #49a1f1
        );

    box-shadow:
        0 0 12px rgba(49, 134, 221, 0.3);

    transition: width 0.35s ease;
}


/* Требуется уточнение */

.parton-order-friendly-panel[
    data-status="clarification_required"
] {
    border-color: #efd69f;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(242, 160, 29, 0.12),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #fffdf8,
            #fff8e9
        );
}

.parton-order-friendly-panel[
    data-status="clarification_required"
]
.parton-order-friendly-icon {
    border-color: rgba(242, 160, 29, 0.22);

    color: #9a5b00;

    background:
        linear-gradient(
            145deg,
            #fff5d9,
            #ffe8b4
        );
}

.parton-order-friendly-panel[
    data-status="clarification_required"
]
.parton-order-friendly-percent {
    color: #9a5b00;
}

.parton-order-friendly-panel[
    data-status="clarification_required"
]
.parton-order-friendly-progress span {
    background:
        linear-gradient(
            90deg,
            #e29316,
            #f3b84f
        );
}


/* Готовится */

.parton-order-friendly-panel[
    data-status="preparing"
]
.parton-order-friendly-icon {
    border-color: rgba(132, 77, 201, 0.2);

    color: #7242aa;

    background:
        linear-gradient(
            145deg,
            #f4ecff,
            #e8dbfa
        );
}

.parton-order-friendly-panel[
    data-status="preparing"
]
.parton-order-friendly-progress span {
    background:
        linear-gradient(
            90deg,
            #7548af,
            #a271dc
        );
}


/* В пути */

.parton-order-friendly-panel[
    data-status="in_transit"
]
.parton-order-friendly-icon {
    border-color: rgba(105, 78, 190, 0.2);

    color: #6748ad;

    background:
        linear-gradient(
            145deg,
            #f0ebff,
            #e2d8fb
        );
}

.parton-order-friendly-panel[
    data-status="in_transit"
]
.parton-order-friendly-progress span {
    background:
        linear-gradient(
            90deg,
            #6748ad,
            #9a7ae1
        );
}


/* Готов к получению и завершён */

.parton-order-friendly-panel[
    data-status="ready_for_pickup"
],
.parton-order-friendly-panel[
    data-status="completed"
] {
    border-color: #cfe8da;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(47, 166, 97, 0.1),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f1faf5
        );
}

.parton-order-friendly-panel[
    data-status="ready_for_pickup"
]
.parton-order-friendly-icon,
.parton-order-friendly-panel[
    data-status="completed"
]
.parton-order-friendly-icon {
    border-color: rgba(47, 166, 97, 0.2);

    color: #247a49;

    background:
        linear-gradient(
            145deg,
            #eaf8f0,
            #d8f0e3
        );
}

.parton-order-friendly-panel[
    data-status="ready_for_pickup"
]
.parton-order-friendly-percent,
.parton-order-friendly-panel[
    data-status="completed"
]
.parton-order-friendly-percent {
    color: #247a49;
}

.parton-order-friendly-panel[
    data-status="ready_for_pickup"
]
.parton-order-friendly-progress span,
.parton-order-friendly-panel[
    data-status="completed"
]
.parton-order-friendly-progress span {
    background:
        linear-gradient(
            90deg,
            #25834f,
            #50bd7a
        );
}


/* Отменён */

.parton-order-friendly-panel[
    data-status="cancelled"
] {
    border-color: #dde2e9;

    background:
        linear-gradient(
            145deg,
            #f7f8fa,
            #eef1f4
        );
}

.parton-order-friendly-panel[
    data-status="cancelled"
]
.parton-order-friendly-icon {
    border-color: #d8dde5;

    color: #697485;

    background:
        linear-gradient(
            145deg,
            #f1f3f6,
            #e3e7ec
        );
}

.parton-order-friendly-panel[
    data-status="cancelled"
]
.parton-order-friendly-percent {
    color: #697485;
}

.parton-order-friendly-panel[
    data-status="cancelled"
]
.parton-order-friendly-progress span {
    background: #a9b1bd;
}


/* Мобильная версия */

@media (max-width: 650px) {
    .parton-order-friendly-panel {
        grid-template-columns: 1fr;

        gap: 13px;

        padding: 16px;
    }

    .parton-order-friendly-icon {
        width: 47px;
        height: 47px;

        border-radius: 14px;

        font-size: 22px;
    }

    .parton-order-friendly-heading {
        gap: 10px;
    }

    .parton-order-friendly-heading strong {
        font-size: 15px;
    }
}



/* ==================================================================
   PARTON52 ORDER PREMIUM HEADER 4D
   Финальная полировка верхней части открытого заказа.
   ================================================================== */


/* Единый верхний блок заказа */

.parton-embedded-order-details .order-details-heading {
    position: relative;

    display: grid !important;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    align-items: start;
    gap: 14px 22px !important;

    overflow: hidden;

    margin-bottom: 14px !important;

    border:
        1px solid
        #d9e2ed !important;
    border-radius:
        20px !important;

    padding:
        25px
        26px
        23px
        29px !important;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(255, 112, 18, 0.10),
            transparent 33%
        ),
        radial-gradient(
            circle at 0 100%,
            rgba(49, 134, 221, 0.08),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f8fafc 100%
        ) !important;

    box-shadow:
        0 16px 42px
        rgba(23, 42, 70, 0.075) !important;
}


/* Фирменная цветная линия слева */

.parton-embedded-order-details
.order-details-heading::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 5px;

    background:
        linear-gradient(
            180deg,
            #ff9b43,
            #ff6500
        );
}


/* Небольшая декоративная подсветка */

.parton-embedded-order-details
.order-details-heading::after {
    content: "📦";

    position: absolute;

    right: 20px;
    bottom: -22px;

    color:
        rgba(32, 65, 104, 0.035);

    font-size: 95px;
    line-height: 1;

    pointer-events: none;
}


/* Номер заказа */

.parton-embedded-order-details
.order-details-heading h2 {
    position: relative;
    z-index: 1;

    grid-column: 1;

    margin: 0 !important;

    color:
        #101d31 !important;

    font-size:
        clamp(
            29px,
            3.1vw,
            40px
        ) !important;

    font-weight:
        950 !important;

    line-height:
        1.08 !important;

    letter-spacing:
        -0.045em !important;
}


/* Подпись или дата под номером */

.parton-embedded-order-details
.order-details-heading > p {
    position: relative;
    z-index: 1;

    grid-column: 1;

    max-width: 640px;

    margin:
        -3px
        0
        0 !important;

    color:
        #718095 !important;

    font-size:
        13px !important;

    line-height:
        1.5 !important;
}


/* Статус справа */

.parton-embedded-order-details
.order-details-heading > .order-status {
    position: relative;
    z-index: 2;

    grid-column: 2;
    grid-row: 1 / span 2;

    align-self: start;
    justify-self: end;

    min-width: 120px;

    border:
        1px solid
        rgba(48, 128, 208, 0.18) !important;

    border-radius:
        999px !important;

    padding:
        9px
        14px !important;

    font-size:
        11px !important;
    font-weight:
        900 !important;

    text-align:
        center;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.8),
        0 7px 18px
        rgba(26, 57, 91, 0.07);
}


/* Блок краткой информации сразу под заголовком */

.parton-embedded-order-details
.order-info-grid {
    display: grid !important;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        ) !important;

    gap:
        11px !important;

    margin:
        0
        0
        17px !important;
}


/* Каждая краткая характеристика */

.parton-embedded-order-details
.order-info-grid > div {
    position: relative;

    min-height: 82px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    overflow: hidden;

    border:
        1px solid
        #dce4ed !important;

    border-radius:
        15px !important;

    padding:
        15px
        16px !important;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f9fbfd
        ) !important;

    box-shadow:
        0 8px 22px
        rgba(23, 42, 70, 0.045) !important;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


/* Лёгкое оживление карточек */

.parton-embedded-order-details
.order-info-grid > div:hover {
    border-color:
        rgba(255, 107, 0, 0.28) !important;

    transform:
        translateY(-1px);

    box-shadow:
        0 12px 28px
        rgba(23, 42, 70, 0.07) !important;
}


/* Маленькая оранжевая точка */

.parton-embedded-order-details
.order-info-grid > div::before {
    content: "";

    position: absolute;

    top: 14px;
    right: 14px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        #ff7418;

    box-shadow:
        0 0 0 4px
        rgba(255, 116, 24, 0.09);
}


/* Название параметра */

.parton-embedded-order-details
.order-info-grid span {
    display: block;

    margin-bottom:
        7px !important;

    color:
        #8a96a7 !important;

    font-size:
        10px !important;
    font-weight:
        800 !important;

    line-height:
        1.25 !important;

    letter-spacing:
        0.055em !important;

    text-transform:
        uppercase;
}


/* Значение параметра */

.parton-embedded-order-details
.order-info-grid strong {
    display: block;

    overflow-wrap:
        anywhere;

    color:
        #23344c !important;

    font-size:
        14px !important;
    font-weight:
        900 !important;

    line-height:
        1.35 !important;

    letter-spacing:
        -0.012em;
}


/* Сумма заказа выглядит заметнее */

.parton-embedded-order-details
.order-details-total {
    position: relative;

    overflow: hidden;

    border:
        1px solid
        #d8e2ec !important;

    border-radius:
        16px !important;

    padding:
        18px
        20px !important;

    background:
        radial-gradient(
            circle at 100% 50%,
            rgba(255, 112, 18, 0.08),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #f8fafc,
            #ffffff
        ) !important;

    box-shadow:
        0 10px 26px
        rgba(23, 42, 70, 0.055) !important;
}

.parton-embedded-order-details
.order-details-total strong {
    color:
        #101d31 !important;

    font-size:
        25px !important;
    font-weight:
        950 !important;

    letter-spacing:
        -0.035em !important;
}


/* Плавное появление открытого заказа */

@keyframes partonOrderHeaderAppear {
    from {
        opacity: 0;

        transform:
            translateY(8px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

.parton-embedded-order-details
.order-details-heading,
.parton-embedded-order-details
.order-info-grid,
.parton-order-friendly-panel {
    animation:
        partonOrderHeaderAppear
        0.24s
        ease-out
        both;
}

.parton-embedded-order-details
.order-info-grid {
    animation-delay:
        0.035s;
}

.parton-order-friendly-panel {
    animation-delay:
        0.07s;
}


/* Планшеты */

@media (max-width: 1050px) {
    .parton-embedded-order-details
    .order-info-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            ) !important;
    }
}


/* Телефоны */

@media (max-width: 650px) {
    .parton-embedded-order-details
    .order-details-heading {
        grid-template-columns:
            1fr;

        gap:
            10px !important;

        padding:
            21px
            18px
            19px
            22px !important;
    }

    .parton-embedded-order-details
    .order-details-heading h2,
    .parton-embedded-order-details
    .order-details-heading > p,
    .parton-embedded-order-details
    .order-details-heading > .order-status {
        grid-column:
            1;
        grid-row:
            auto;
    }

    .parton-embedded-order-details
    .order-details-heading > .order-status {
        justify-self:
            start;

        min-width:
            0;

        margin-top:
            4px;
    }

    .parton-embedded-order-details
    .order-details-heading::after {
        right:
            7px;

        font-size:
            72px;
    }

    .parton-embedded-order-details
    .order-info-grid {
        grid-template-columns:
            1fr !important;
    }

    .parton-embedded-order-details
    .order-info-grid > div {
        min-height:
            72px;
    }
}


/* Учитываем пользователей без анимаций */

@media (prefers-reduced-motion: reduce) {
    .parton-embedded-order-details
    .order-details-heading,
    .parton-embedded-order-details
    .order-info-grid,
    .parton-order-friendly-panel {
        animation:
            none !important;
    }

    .parton-embedded-order-details
    .order-info-grid > div {
        transition:
            none !important;
    }
}



/* ==================================================================
   PARTON52 ORDER PRODUCT CARDS 4E
   Премиальное оформление состава заказа.
   ================================================================== */


/* Заголовок раздела */

.parton-embedded-order-details
.order-items-list {
    display: grid;

    gap: 12px;

    margin-top: 12px;
}


/* Основная карточка товара */

.parton-embedded-order-details
.order-item {
    position: relative;

    display: grid !important;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    align-items: center;

    gap: 18px 28px !important;

    overflow: hidden;

    min-height: 112px;

    border:
        1px solid
        #dce4ed !important;

    border-radius:
        18px !important;

    padding:
        20px
        22px
        20px
        78px !important;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(255, 115, 24, 0.07),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f8fafc
        ) !important;

    box-shadow:
        0 10px 28px
        rgba(23, 42, 70, 0.055) !important;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


/* Иконка товара слева */

.parton-embedded-order-details
.order-item::before {
    content: "📦";

    position: absolute;

    top: 50%;
    left: 19px;

    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(255, 111, 16, 0.17);

    border-radius:
        13px;

    background:
        linear-gradient(
            145deg,
            #fff4e9,
            #ffe5cf
        );

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.85),
        0 7px 17px
        rgba(255, 111, 16, 0.09);

    font-size: 20px;

    transform:
        translateY(-50%);
}


/* Фирменная полоска */

.parton-embedded-order-details
.order-item::after {
    content: "";

    position: absolute;

    top: 15px;
    bottom: 15px;
    left: 0;

    width: 4px;

    border-radius:
        0 999px 999px 0;

    background:
        linear-gradient(
            180deg,
            #ff9b43,
            #ff6908
        );

    opacity: 0.9;
}


/* Hover */

.parton-embedded-order-details
.order-item:hover {
    border-color:
        rgba(255, 111, 16, 0.30) !important;

    transform:
        translateY(-2px);

    box-shadow:
        0 15px 36px
        rgba(23, 42, 70, 0.085) !important;
}


/* Левая часть с описанием */

.parton-embedded-order-details
.order-item > div:first-child {
    min-width: 0;

    display: grid;

    gap: 6px;
}


/* Бренд и артикул */

.parton-embedded-order-details
.order-item > div:first-child > strong {
    display: block;

    overflow-wrap: anywhere;

    color:
        #16243a !important;

    font-size:
        15px !important;
    font-weight:
        900 !important;

    line-height:
        1.35 !important;

    letter-spacing:
        -0.014em;
}


/* Название товара */

.parton-embedded-order-details
.order-item p {
    margin:
        0 !important;

    color:
        #44536a !important;

    font-size:
        14px !important;
    font-weight:
        650;

    line-height:
        1.45 !important;
}


/* Срок получения */

.parton-embedded-order-details
.order-item small {
    display: inline-flex;

    width: fit-content;

    margin-top: 2px;

    border:
        1px solid
        #dce5ef;

    border-radius:
        999px;

    padding:
        5px 9px;

    color:
        #69788d !important;

    background:
        #f7f9fc;

    font-size:
        10px !important;
    font-weight:
        800 !important;

    line-height:
        1.2 !important;

    letter-spacing:
        0.02em;
}


/* Правая часть с ценой */

.parton-embedded-order-details
.order-item-price {
    min-width: 142px;

    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;

    gap: 7px !important;

    border-left:
        1px solid
        #e1e7ee;

    padding-left:
        22px;

    text-align: right;
}


/* Цена за штуку × количество */

.parton-embedded-order-details
.order-item-price span {
    color:
        #7b889a !important;

    font-size:
        11px !important;
    font-weight:
        750 !important;

    line-height:
        1.3 !important;
}


/* Итог по позиции */

.parton-embedded-order-details
.order-item-price strong {
    color:
        #111f34 !important;

    font-size:
        21px !important;
    font-weight:
        950 !important;

    line-height:
        1.1 !important;

    letter-spacing:
        -0.035em !important;
}


/* Анимация появления товаров */

@keyframes partonOrderItemAppear {
    from {
        opacity: 0;

        transform:
            translateY(7px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

.parton-embedded-order-details
.order-item {
    animation:
        partonOrderItemAppear
        0.23s
        ease-out
        both;
}

.parton-embedded-order-details
.order-item:nth-child(2) {
    animation-delay: 0.035s;
}

.parton-embedded-order-details
.order-item:nth-child(3) {
    animation-delay: 0.07s;
}

.parton-embedded-order-details
.order-item:nth-child(4) {
    animation-delay: 0.105s;
}

.parton-embedded-order-details
.order-item:nth-child(n + 5) {
    animation-delay: 0.14s;
}


/* Планшеты */

@media (max-width: 850px) {
    .parton-embedded-order-details
    .order-item {
        grid-template-columns:
            1fr;

        gap:
            16px !important;
    }

    .parton-embedded-order-details
    .order-item-price {
        min-width:
            0;

        flex-direction:
            row;
        align-items:
            center;
        justify-content:
            space-between;

        border-top:
            1px solid
            #e1e7ee;

        border-left:
            0;

        padding-top:
            14px;
        padding-left:
            0;

        text-align:
            left;
    }
}


/* Телефоны */

@media (max-width: 650px) {
    .parton-embedded-order-details
    .order-item {
        min-height:
            0;

        padding:
            18px
            16px
            17px
            62px !important;
    }

    .parton-embedded-order-details
    .order-item::before {
        left:
            13px;

        width:
            38px;
        height:
            38px;

        border-radius:
            11px;

        font-size:
            18px;
    }

    .parton-embedded-order-details
    .order-item-price {
        grid-column:
            1 / -1;

        margin-left:
            -46px;
    }

    .parton-embedded-order-details
    .order-item-price strong {
        font-size:
            19px !important;
    }
}


/* Без анимаций */

@media (prefers-reduced-motion: reduce) {
    .parton-embedded-order-details
    .order-item {
        animation:
            none !important;

        transition:
            none !important;
    }
}



/* ==================================================================
   PARTON52 ORDERS FINAL POLISH 4F
   Финальная полировка карточки заказа.
   ================================================================== */


/* Общий вертикальный ритм */

.parton-embedded-order-details > h3 {
    position: relative;

    margin:
        28px
        0
        13px !important;

    padding-left:
        15px;

    color:
        #15243a !important;

    font-size:
        17px !important;
    font-weight:
        950 !important;

    line-height:
        1.25 !important;

    letter-spacing:
        -0.025em;
}

.parton-embedded-order-details > h3::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 0;

    width: 5px;
    height: 20px;

    border-radius:
        999px;

    background:
        linear-gradient(
            180deg,
            #ff9c45,
            #ff6807
        );

    transform:
        translateY(-50%);
}


/* Итог заказа */

.parton-embedded-order-details
.order-details-total {
    display: flex !important;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top:
        14px !important;

    border:
        1px solid
        #d6e0ea !important;

    border-radius:
        18px !important;

    padding:
        21px
        23px !important;

    background:
        radial-gradient(
            circle at 100% 50%,
            rgba(255, 112, 18, 0.12),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f7f9fc
        ) !important;

    box-shadow:
        0 13px 31px
        rgba(23, 42, 70, 0.065) !important;
}

.parton-embedded-order-details
.order-details-total span {
    color:
        #728095 !important;

    font-size:
        12px !important;
    font-weight:
        800 !important;

    line-height:
        1.4;
}

.parton-embedded-order-details
.order-details-total strong {
    color:
        #111f34 !important;

    font-size:
        clamp(
            24px,
            3vw,
            31px
        ) !important;

    font-weight:
        950 !important;

    line-height:
        1 !important;

    letter-spacing:
        -0.045em !important;
}


/* История заказа — вертикальный timeline */

.parton-embedded-order-details
.order-history {
    position: relative;

    display: grid;

    gap: 0;

    overflow: hidden;

    border:
        1px solid
        #dce4ed;

    border-radius:
        18px;

    padding:
        7px
        20px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8fafc
        );

    box-shadow:
        0 10px 28px
        rgba(23, 42, 70, 0.05);
}

.parton-embedded-order-details
.order-history::before {
    content: "";

    position: absolute;

    top: 31px;
    bottom: 31px;
    left: 31px;

    width: 2px;

    border-radius:
        999px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 111, 16, 0.75),
            rgba(49, 134, 221, 0.18)
        );
}

.parton-embedded-order-details
.order-history-item {
    position: relative;

    display: grid !important;
    grid-template-columns:
        28px
        minmax(0, 1fr)
        auto;

    gap:
        4px
        14px !important;

    min-height:
        80px;

    border: 0 !important;
    border-bottom:
        1px solid
        #e5eaf0 !important;

    border-radius:
        0 !important;

    padding:
        18px
        0 !important;

    background:
        transparent !important;

    box-shadow:
        none !important;
}

.parton-embedded-order-details
.order-history-item:last-child {
    border-bottom:
        0 !important;
}

.parton-embedded-order-details
.order-history-dot {
    position: relative;
    z-index: 2;

    grid-column:
        1;
    grid-row:
        1 / span 3;

    align-self:
        start;
    justify-self:
        center;

    width:
        13px !important;
    height:
        13px !important;

    margin-top:
        3px;

    border:
        3px solid
        #ffffff;

    border-radius:
        50%;

    background:
        #ff7214 !important;

    box-shadow:
        0 0 0 4px
        rgba(255, 114, 20, 0.13),
        0 4px 11px
        rgba(255, 106, 5, 0.22);
}

.parton-embedded-order-details
.order-history-item strong {
    grid-column:
        2;

    color:
        #1b2b42 !important;

    font-size:
        14px !important;
    font-weight:
        900 !important;

    line-height:
        1.35 !important;
}

.parton-embedded-order-details
.order-history-item p {
    grid-column:
        2;

    margin:
        0 !important;

    color:
        #66758a !important;

    font-size:
        12px !important;

    line-height:
        1.5 !important;
}

.parton-embedded-order-details
.order-history-item small {
    grid-column:
        3;
    grid-row:
        1;

    align-self:
        start;

    color:
        #8c97a8 !important;

    font-size:
        10px !important;
    font-weight:
        750 !important;

    line-height:
        1.35 !important;

    white-space:
        nowrap;
}


/* Комментарий клиента */

.parton-embedded-order-details
.order-comment {
    position: relative;

    overflow: hidden;

    margin-top:
        20px;

    border:
        1px solid
        #d8e3ee !important;

    border-radius:
        17px !important;

    padding:
        18px
        20px
        18px
        62px !important;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(49, 134, 221, 0.08),
            transparent 39%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f6f9fc
        ) !important;

    box-shadow:
        0 9px 24px
        rgba(23, 42, 70, 0.05) !important;
}

.parton-embedded-order-details
.order-comment::before {
    content: "💬";

    position: absolute;

    top: 17px;
    left: 17px;

    width:
        32px;
    height:
        32px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(49, 134, 221, 0.16);

    border-radius:
        10px;

    background:
        #edf6ff;

    font-size:
        15px;
}

.parton-embedded-order-details
.order-comment strong {
    display: block;

    margin-bottom:
        7px;

    color:
        #1c2c43 !important;

    font-size:
        13px !important;
    font-weight:
        900 !important;
}

.parton-embedded-order-details
.order-comment p {
    margin:
        0 !important;

    color:
        #627187 !important;

    font-size:
        12px !important;

    line-height:
        1.55 !important;
}


/* Блок отмены заказа */

.parton-embedded-order-details
.order-cancel-section {
    display: flex !important;
    align-items: center;
    justify-content: space-between;

    gap:
        18px;

    margin-top:
        20px;

    border:
        1px solid
        #efd9d7 !important;

    border-radius:
        17px !important;

    padding:
        17px
        18px !important;

    background:
        linear-gradient(
            145deg,
            #fffafa,
            #fff4f3
        ) !important;

    box-shadow:
        0 8px 22px
        rgba(116, 36, 29, 0.04) !important;
}

.parton-embedded-order-details
.order-cancel-section p {
    margin:
        0 !important;

    color:
        #866965 !important;

    font-size:
        11px !important;

    line-height:
        1.5 !important;
}

.parton-embedded-order-details
.order-cancel-button {
    flex:
        0 0 auto;

    border:
        1px solid
        #e5aaa5 !important;

    border-radius:
        11px !important;

    padding:
        10px
        15px !important;

    color:
        #a83c34 !important;

    background:
        #ffffff !important;

    font-size:
        11px !important;
    font-weight:
        900 !important;

    cursor:
        pointer;

    box-shadow:
        0 5px 14px
        rgba(122, 40, 33, 0.06);

    transition:
        background 0.16s ease,
        color 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease;
}

.parton-embedded-order-details
.order-cancel-button:hover {
    border-color:
        #cb655c !important;

    color:
        #ffffff !important;

    background:
        #c84d43 !important;

    transform:
        translateY(-1px);
}

.parton-embedded-order-details
.order-cancel-button:disabled {
    opacity:
        0.55;

    cursor:
        wait;

    transform:
        none;
}


/* Плавное появление финальных секций */

@keyframes partonOrderSectionAppear {
    from {
        opacity: 0;

        transform:
            translateY(6px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

.parton-embedded-order-details
.order-details-total,
.parton-embedded-order-details
.order-comment,
.parton-embedded-order-details
.order-cancel-section,
.parton-embedded-order-details
.order-history {
    animation:
        partonOrderSectionAppear
        0.24s
        ease-out
        both;
}

.parton-embedded-order-details
.order-details-total {
    animation-delay:
        0.05s;
}

.parton-embedded-order-details
.order-comment,
.parton-embedded-order-details
.order-cancel-section {
    animation-delay:
        0.09s;
}

.parton-embedded-order-details
.order-history {
    animation-delay:
        0.13s;
}


/* Телефоны */

@media (max-width: 650px) {
    .parton-embedded-order-details
    .order-details-total {
        align-items:
            flex-end;

        padding:
            18px !important;
    }

    .parton-embedded-order-details
    .order-details-total strong {
        font-size:
            23px !important;
    }

    .parton-embedded-order-details
    .order-history {
        padding:
            5px
            14px;
    }

    .parton-embedded-order-details
    .order-history::before {
        left:
            25px;
    }

    .parton-embedded-order-details
    .order-history-item {
        grid-template-columns:
            22px
            minmax(0, 1fr);

        gap:
            5px
            11px !important;
    }

    .parton-embedded-order-details
    .order-history-item small {
        grid-column:
            2;
        grid-row:
            auto;

        white-space:
            normal;
    }

    .parton-embedded-order-details
    .order-comment {
        padding:
            17px
            16px
            17px
            56px !important;
    }

    .parton-embedded-order-details
    .order-comment::before {
        top:
            15px;
        left:
            14px;
    }

    .parton-embedded-order-details
    .order-cancel-section {
        align-items:
            stretch;
        flex-direction:
            column;
    }

    .parton-embedded-order-details
    .order-cancel-button {
        width:
            100%;
    }
}


/* Пользователи без анимаций */

@media (prefers-reduced-motion: reduce) {
    .parton-embedded-order-details
    .order-details-total,
    .parton-embedded-order-details
    .order-comment,
    .parton-embedded-order-details
    .order-cancel-section,
    .parton-embedded-order-details
    .order-history {
        animation:
            none !important;
    }

    .parton-embedded-order-details
    .order-cancel-button {
        transition:
            none !important;
    }
}



/* ==================================================================
   PARTON52 PRODUCT PLACEHOLDER STYLES 5A
   Локальные категорийные изображения товаров.
   ================================================================== */

.parton-embedded-order-details
.order-item {
    grid-template-columns:
        68px
        minmax(0, 1fr)
        auto !important;

    padding-left:
        20px !important;
}


/* Убираем прежнюю emoji-коробку */

.parton-embedded-order-details
.order-item::before {
    display:
        none !important;
}


/* Новая локальная картинка */

.parton-embedded-order-details
.order-item-placeholder {
    grid-column:
        1;

    align-self:
        center;
    justify-self:
        center;

    width:
        62px;
    height:
        62px;

    display:
        block;

    border:
        1px solid
        rgba(169, 183, 200, 0.36);

    border-radius:
        17px;

    background:
        #f8fafc;

    object-fit:
        contain;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.9),
        0 8px 20px
        rgba(25, 46, 75, 0.07);
}


/* Описание */

.parton-embedded-order-details
.order-item > div:first-of-type {
    grid-column:
        2;
}


/* Цена */

.parton-embedded-order-details
.order-item-price {
    grid-column:
        3;
}


/* Планшеты */

@media (max-width: 850px) {
    .parton-embedded-order-details
    .order-item {
        grid-template-columns:
            62px
            minmax(0, 1fr) !important;
    }

    .parton-embedded-order-details
    .order-item > div:first-of-type {
        grid-column:
            2;
    }

    .parton-embedded-order-details
    .order-item-price {
        grid-column:
            1 / -1;

        margin-left:
            0;
    }
}


/* Телефоны */

@media (max-width: 650px) {
    .parton-embedded-order-details
    .order-item {
        grid-template-columns:
            52px
            minmax(0, 1fr) !important;

        padding:
            16px !important;
    }

    .parton-embedded-order-details
    .order-item-placeholder {
        width:
            48px;
        height:
            48px;

        border-radius:
            14px;
    }

    .parton-embedded-order-details
    .order-item-price {
        margin-left:
            0 !important;
    }
}

/* Stage 5.7 account and recovery */
.account-link-button,
.account-secondary-button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #b84d00;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    padding: 11px;
}

.account-secondary-button {
    margin-top: 8px;
    color: #667085;
}

.profile-readonly-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #eceff3;
    font-size: 14px;
}

.profile-readonly-row span { color: #667085; }
.profile-readonly-row strong { text-align: right; overflow-wrap: anywhere; }

#profileView,
#forgotPasswordView,
#resetPasswordView {
    max-height: min(76vh, 720px);
    overflow-y: auto;
    padding-right: 3px;
}

@media (max-width: 620px) {
    .account-modal { padding: 24px 18px; max-height: calc(100dvh - 24px); }
    .profile-readonly-row { align-items: flex-start; flex-direction: column; gap: 3px; }
    .profile-readonly-row strong { text-align: left; }
#profileView, #forgotPasswordView, #resetPasswordView { max-height: calc(100dvh - 80px); }
}

/* Stage 5.9.1 — compact professional result cards (final cascade). */
@media (min-width: 621px) {
    .products { gap: 14px; }
    .product-offer-group .product-detail-summary { grid-template-columns: minmax(180px, .52fr) minmax(390px, 1.48fr); }
    .product-offer-group .product-detail-media { min-height: 222px; padding: 34px 18px 16px; }
    .product-offer-group .product-detail-media::after { inset: 13px; }
    .product-offer-group .product-detail-image { width: min(78%, 205px); height: 158px; }
    .product-offer-group .product-detail-media.is-placeholder .product-detail-image { width: min(65%, 170px); }
    .product-offer-group .product-detail-content { padding: 19px clamp(20px, 3vw, 34px) 18px; }
    .product-offer-group .product-detail-brand { margin-bottom: 4px; }
    .product-offer-group .product-detail-title { margin-bottom: 6px; font-size: clamp(21px, 2.25vw, 29px); }
    .product-offer-group .product-detail-article { margin-bottom: 9px; }
    .product-main-purchase { margin: 9px 0; padding: 11px 13px; border-radius: 12px; }
    .product-main-price { font-size: clamp(25px, 2.5vw, 32px); }
    .product-main-purchase .product-detail-cart-button { min-height: 44px; }
    .product-variants { padding-top: 10px; }
    .product-variants-title { margin-bottom: 6px; }
    .product-variant-row { min-height: 44px; margin-top: 5px; padding: 5px 7px 5px 11px; }
}
@media (max-width: 620px) {
    .product-offer-group .product-detail-media { min-height: 190px; }
    .product-offer-group .product-detail-image,
    .product-offer-group .product-detail-media.is-placeholder .product-detail-image { height: 120px; }
    .product-offer-group .product-detail-content { padding: 16px 12px; }
    .product-main-purchase { margin: 10px 0; }
    .product-variant-cart-button, .product-main-purchase .product-detail-cart-button { min-height: 44px; }
}

/* Stage 6.1.4 — verified route and mobile catalog layout overrides. */
:root { --site-header-offset: 94px; }
html { scroll-padding-top: var(--site-header-offset); }
body[data-route="catalog"] .hero,
body[data-route="category"] .hero,
body[data-route="brand"] .hero { display: none; }
body[data-route="vin-request"] .hero,
body[data-route="vin-requests"] .hero { display: none; }

/* Stage 6.2 — manual VIN requests */
.vin-route { max-width: 980px; margin: 0 auto; padding: 16px 0 56px; color: #18212f; }
.vin-route-heading, .vin-list-heading { margin-bottom: 24px; }
.vin-route-heading h1, .vin-list-heading h1 { margin: 4px 0 10px; font-size: clamp(28px,4vw,42px); line-height: 1.12; }
.vin-route-subtitle { max-width: 760px; margin: 0 0 20px; color: #667085; font-size: 17px; line-height: 1.55; }
.vin-eyebrow { margin: 0; color: #c65300; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.vin-expectation { padding: 20px 22px; border: 1px solid #ffd3b3; border-radius: 16px; background: #fff8f2; }
.vin-expectation strong { font-size: 18px; }
.vin-expectation p { margin: 7px 0; line-height: 1.55; }
.vin-expectation small { color: #667085; }
.vin-form { display: grid; gap: 18px; min-width: 0; padding: 28px; border: 1px solid #e4e7ec; border-radius: 20px; background: #fff; box-shadow: 0 12px 36px rgba(16,24,40,.06); }
.vin-form .form-field { display: grid; min-width: 0; gap: 7px; }
.vin-form label, .vin-contact-method legend { color: #344054; font-size: 14px; font-weight: 750; line-height: 1.35; }
.vin-form input[type="text"], .vin-form input[type="tel"], .vin-form input[type="email"], .vin-form textarea { width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid #cfd4dc; border-radius: 11px; font: inherit; line-height: 1.4; background: #fff; }
.vin-form input[type="text"], .vin-form input[type="tel"], .vin-form input[type="email"] { height: 50px; }
.vin-form input[readonly] { color: #667085; background: #f7f8fa; }
.vin-form textarea { resize: vertical; }
.vin-form small, .vin-files p { margin: 0; color: #667085; font-size: 13px; line-height: 1.45; }
.vin-contact-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 16px; min-width: 0; }
.vin-contact-grid > *, .vin-contact-field { min-width: 0; }
.vin-contact-field { grid-template-rows: auto 50px minmax(38px,auto); align-content: start; }
.vin-field-feedback { display: grid; align-content: start; gap: 2px; min-width: 0; min-height: 38px; }
.vin-field-feedback small, .vin-field-feedback .field-error { overflow-wrap: anywhere; }
.vin-contact-method { min-width: 0; margin: 0; padding: 0; border: 0; }
.vin-contact-method legend { margin: 0 0 6px; padding: 0; }
.vin-contact-options { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.vin-contact-method label { display: inline-flex; min-width: 0; min-height: 44px; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid #d8dee7; border-radius: 11px; background: #f9fafb; font-weight: 600; cursor: pointer; }
.vin-contact-method input { flex: 0 0 19px; width: 19px; height: 19px; margin: 0; accent-color: #ee6500; }
.vin-contact-method input:focus-visible { outline: 3px solid rgba(238,101,0,.28); outline-offset: 3px; }
.vin-files { min-width: 0; padding: 16px; border: 1px solid #d8dee7; border-radius: 14px; background: #f9fafb; }
.vin-file-picker { position: relative; display: flex; min-width: 0; align-items: center; gap: 12px; padding: 10px; border: 1px dashed #aeb6c2; border-radius: 11px; background: #fff; }
.vin-file-picker input[type="file"] { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.vin-file-picker-button { display: inline-flex; min-height: 40px; flex: 0 0 auto; align-items: center; padding: 9px 14px; border-radius: 9px; color: #9f4300 !important; background: #ffead8; font-weight: 800 !important; cursor: pointer; }
.vin-file-picker > span { min-width: 0; overflow-wrap: anywhere; color: #667085; }
.vin-file-picker:focus-within { outline: 3px solid rgba(238,101,0,.28); outline-offset: 2px; }
.vin-files ul { display: grid; min-width: 0; gap: 5px; margin: 0; padding-left: 20px; }
.vin-files li, .vin-detail li { overflow-wrap: anywhere; }
.field-error { min-height: 1em; color: #b42318; font-size: 13px; }
.vin-form [aria-invalid="true"] { border-color: #d92d20 !important; box-shadow: 0 0 0 3px rgba(217,45,32,.12); }
.vin-consent { margin: 0; color: #667085; font-size: 13px; }
.vin-submit, .vin-list-heading > button, .vin-auth-gate button, .vin-success button { min-height: 48px; padding: 12px 20px; border: 0; border-radius: 11px; background: #ec6500; color: #fff; font-weight: 800; cursor: pointer; }
.vin-submit { display: inline-flex; width: 100%; min-width: 0; height: 50px; align-items: center; justify-content: center; text-align: center; }
.vin-submit:disabled { opacity: .65; cursor: wait; }
.vin-verification-hint { padding: 12px 14px; border-radius: 10px; color: #704d00; background: #fff6d8; }
.vin-auth-gate, .vin-list-state, .vin-success { padding: 32px; border: 1px solid #e4e7ec; border-radius: 18px; background: #fff; text-align: center; }
.vin-auth-gate div, .vin-success div { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.vin-success > span { display: grid; width: 60px; height: 60px; margin: 0 auto 16px; place-items: center; border-radius: 50%; color: #fff; background: #16865a; font-size: 32px; font-weight: 900; }
.vin-success small { display: block; color: #667085; }
.vin-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.vin-request-list { display: grid; gap: 14px; }
.vin-request-card { display: grid; gap: 10px; padding: 20px; border: 1px solid #e4e7ec; border-radius: 15px; background: #fff; }
.vin-request-card > div { display: flex; justify-content: space-between; gap: 12px; }
.vin-request-card p { margin: 0; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vin-request-card small { color: #667085; overflow-wrap: anywhere; }
.vin-request-card button { justify-self: start; }
.vin-status { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 999px; color: #344054; background: #eef1f5; font-size: 12px; font-weight: 800; }
.vin-status-new { color: #175cd3; background: #eff8ff; }.vin-status-in_review { color: #854a0e; background: #fffaeb; }.vin-status-need_info { color: #b42318; background: #fef3f2; }.vin-status-proposal_ready { color: #067647; background: #ecfdf3; }.vin-status-closed,.vin-status-cancelled { color: #475467; background: #f2f4f7; }
.vin-pager { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.vin-pager button { min-width: 40px; min-height: 40px; border: 1px solid #d0d5dd; border-radius: 9px; background: #fff; }.vin-pager button.is-current { color: #fff; border-color: #ec6500; background: #ec6500; }
.vin-detail { display: grid; gap: 22px; padding: 24px; border: 1px solid #e4e7ec; border-radius: 18px; background: #fff; }
.vin-detail header { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }.vin-detail header h2 { flex: 1; margin: 0; }
.vin-detail-data { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid #e4e7ec; border-radius: 12px; background: #e4e7ec; }
.vin-detail-data > div { display: grid; gap: 5px; padding: 13px; background: #fff; }.vin-detail-data span { color: #667085; font-size: 12px; }.vin-detail-data strong { overflow-wrap: anywhere; }
.vin-history { display: grid; gap: 10px; }.vin-history > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 13px; border-left: 3px solid #ec6500; background: #f9fafb; }.vin-history p { grid-column: 1/-1; margin: 0; }.vin-history span { color: #667085; font-size: 12px; }
.vin-cancel-button { justify-self: start; padding: 11px 15px; border: 1px solid #d92d20; border-radius: 9px; color: #b42318; background: #fff; font-weight: 750; }

@media (max-width: 1024px) {
    .vin-contact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (min-width: 901px) and (max-width: 1100px) {
    body[data-route="vin-request"] .header-inner,
    body[data-route="vin-requests"] .header-inner { grid-template-columns: minmax(220px,1fr) auto !important; row-gap: 8px !important; }
    body[data-route="vin-request"] .main-navigation,
    body[data-route="vin-requests"] .main-navigation { grid-row: 2; grid-column: 1 / -1; justify-self: center; }
    body[data-route="vin-request"] .header-actions,
    body[data-route="vin-requests"] .header-actions { min-width: 0; grid-row: 1; grid-column: 2; }
}

@media (max-width: 760px) {
    .vin-route { padding: 4px 0 calc(36px + env(safe-area-inset-bottom)); }
    .vin-form { padding: 18px; border-radius: 15px; }
    .vin-contact-grid, .vin-detail-data { grid-template-columns: minmax(0,1fr); }
    #vinRequestForm input, #vinRequestForm textarea, .vin-file-picker { font-size: 16px; }
    .vin-file-picker { align-items: stretch; flex-direction: column; gap: 8px; }
    .vin-file-picker-button { justify-content: center; }
    .vin-submit { width: 100%; }
    .vin-list-heading { align-items: stretch; flex-direction: column; }
    .vin-list-heading > button { width: 100%; }
    .vin-request-card > div { align-items: flex-start; flex-direction: column; }
    .vin-detail { padding: 16px; }
    .vin-history > div { grid-template-columns: 1fr; }.vin-history p { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .vin-route *, .vin-success * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.result-header { scroll-margin-top: var(--site-header-offset); }
#products { min-width: 0; grid-template-columns: minmax(0,1fr); }
body[data-route="catalog"] #products > .catalog-category-grid { min-width: 0; grid-auto-rows: 1fr; align-items: stretch; }
body[data-route="catalog"] #products > .catalog-category-grid > .catalog-category-card { height: 100%; min-height: 0; align-self: stretch; }
.catalog-page-heading,
.catalog-toolbar,
.catalog-filters,
.catalog-filters form,
.catalog-product-card,
.catalog-product-content,
.catalog-product-topline,
.catalog-product-actions,
.catalog-pagination { min-width: 0; max-width: 100%; }
.catalog-section-chips { width: 100%; max-width: 100%; min-width: 0; overscroll-behavior-inline: contain; touch-action: pan-x; }
.catalog-product-name { max-width: 100%; overflow-wrap: anywhere; }
.catalog-product-topline > * { max-width: 100%; }

@media (max-width: 760px) {
    :root { --site-header-offset: calc(64px + env(safe-area-inset-top)); }
    input, select, textarea { font-size: 16px; }
    .header { padding-top: env(safe-area-inset-top); }
    .header-inner { width: calc(100% - 20px) !important; min-height: 60px !important; flex-wrap: nowrap !important; gap: 6px !important; padding: 6px 0 !important; }
    .logo { min-width: 0; flex: 0 1 auto; }
    .logo-main, .logo-number { font-size: 24px; }
    .header-actions { min-width: 0; flex: 0 0 auto; gap: 4px !important; }
    .header-actions > button { min-width: 44px !important; min-height: 44px !important; padding: 6px !important; }
    #cartButton { min-width: 52px !important; }
    .cart-count { min-width: 18px; height: 18px; padding: 0 5px !important; }
    body[data-route="catalog"] #products > .catalog-category-grid { grid-auto-rows: auto; }
    body[data-route="catalog"] #products > .catalog-category-grid > .catalog-category-card { height: auto; }
    .catalog-page-heading { width: 100%; overflow: hidden; }
    .catalog-section-chips { margin-inline: 0; padding-inline-end: 18px; }
    .catalog-toolbar { width: 100%; }
    .catalog-filters, .catalog-filters form, .catalog-filters form > *, .catalog-toolbar > select { width: 100%; }
    .catalog-product-card { width: 100%; overflow: visible; }
    .catalog-product-topline { width: 100%; }
    .catalog-product-name { width: 100%; word-break: break-word; }
    .catalog-open-product { max-width: 100%; white-space: normal; }
    .catalog-pagination { width: 100%; flex-wrap: wrap; }
}

/* Final cascade: approved PartON52 mark in site and modal headers. */
.logo,
.modal-logo { display:inline-flex;align-items:center;gap:9px;min-width:0!important;width:auto;max-width:none;margin:0!important;padding:0!important;text-decoration:none;transform:none!important; }
.logo::before,
.logo::after,
.modal-logo::before,
.modal-logo::after { content:none!important;display:none!important; }
.logo .brand-word,
.modal-logo .brand-word { transform:none; }
.brand-mark { display:block;width:42px;height:42px;flex:0 0 42px;border-radius:9px;object-fit:contain; }
.brand-word { color:#fff;font-size:26px;font-weight:850;line-height:1;letter-spacing:-.65px;white-space:nowrap; }
.modal-logo .brand-word { color:var(--dark);font-size:24px; }
@media (max-width:760px) {
    .logo { gap:6px;max-width:132px;min-width:0!important; }
    .logo .brand-mark { width:36px;height:36px;flex-basis:36px;border-radius:8px; }
    .logo .brand-word { font-size:20px;letter-spacing:-.45px; }
}
@media (max-width:374px) {
    .logo { max-width:40px; }
    .logo .brand-word { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0); }
}

/* Manual polish: centered VIN quick-action card */
@media (min-width: 621px) {
    #homeVinAction {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc((100% - 14px) / 2);
    }
}

@media (max-width: 620px) {
    #homeVinAction {
        grid-column: auto;
        justify-self: stretch;
        width: 100%;
    }
}

/* Manual polish: premium PartON52 footer */
.footer {
    padding: 38px 0 20px;
    color: #c5ccd6;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 107, 0, 0.08), transparent 32%),
        #111827;
    font-size: 13px;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(170px, .7fr) minmax(240px, 1fr);
    align-items: start;
    gap: 34px;
}

.footer-brand {
    min-width: 0;
}

.footer-brand-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.footer-brand-heading img {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 13px;
}

.footer-brand-heading div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.footer-brand strong {
    color: #fff;
    font-size: 22px;
    line-height: 1.1;
}

.footer-brand-heading span {
    color: #ff9a52;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.footer-brand p {
    max-width: 360px;
    margin: 15px 0 0;
    color: #aeb7c5;
    font-size: 14px;
    line-height: 1.55;
}

.footer-navigation {
    display: grid;
    align-content: start;
    gap: 2px;
}

.footer-navigation > strong,
.footer-pickup > strong {
    margin-bottom: 8px;
    color: #fff;
    font-size: 14px;
}

.footer button {
    width: fit-content;
    min-height: 32px;
    padding: 5px 0;
    border: 0;
    color: #c5ccd6;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: color .18s ease, transform .18s ease;
}

.footer button:hover {
    color: #fff;
    transform: translateX(2px);
}

.footer-pickup {
    display: grid;
    align-content: start;
    gap: 9px;
    min-width: 0;
}

.footer-pickup-address {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    gap: 7px;
}

.footer-pickup-address > span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 7px;
    color: #ff9a52;
    background: rgba(255, 107, 0, .12);
    font-size: 15px;
}

.footer-pickup address {
    min-width: 0;
    color: #c5ccd6;
    font-style: normal;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.footer-pickup a {
    width: fit-content;
    color: #ff9a52;
    font-weight: 750;
    text-underline-offset: 3px;
}

.footer-pickup a:hover {
    color: #ffb37d;
}

.footer-bottom {
    grid-column: 1 / -1;
    margin-top: 2px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #8f99a8;
    text-align: center;
}

.footer-bottom small {
    font-size: 12px;
}

.footer button:focus-visible,
.footer a:focus-visible {
    outline: 3px solid rgba(255, 125, 32, .45);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .footer {
        padding: 30px 0 max(24px, env(safe-area-inset-bottom));
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .footer-brand,
    .footer-bottom {
        grid-column: auto;
    }

    .footer-brand p {
        max-width: none;
    }

    .footer-navigation {
        grid-template-columns: 1fr 1fr;
        column-gap: 18px;
    }

    .footer-navigation > strong {
        grid-column: 1 / -1;
    }

    .footer button {
        min-height: 40px;
    }

    .footer-bottom {
        margin-top: 0;
        text-align: left;
    }
}

/* Manual polish: scroll-to-top button */
.scroll-to-top {
    position: fixed;
    z-index: 900;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 14px;
    color: #fff;
    background: #ef6500;
    box-shadow:
        0 10px 26px rgba(17, 24, 39, .22),
        0 4px 12px rgba(239, 101, 0, .24);
    font: inherit;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.94);
    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease,
        background-color .18s ease,
        box-shadow .18s ease;
}

.scroll-to-top[hidden] {
    display: grid;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top > span {
    display: block;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-1px);
}

.scroll-to-top:hover {
    background: #ff7414;
    box-shadow:
        0 13px 30px rgba(17, 24, 39, .25),
        0 5px 15px rgba(239, 101, 0, .3);
    transform: translateY(-2px) scale(1.03);
}

.scroll-to-top:active {
    transform: translateY(0) scale(.96);
}

.scroll-to-top:focus-visible {
    outline: 3px solid rgba(255, 125, 32, .42);
    outline-offset: 4px;
}

@media (max-width: 620px) {
    .scroll-to-top {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-to-top {
        transition:
            opacity .01ms linear,
            visibility .01ms linear;
    }

    .scroll-to-top:hover,
    .scroll-to-top:active {
        transform: none;
    }
}

/* Manual polish: global page progress */
.page-progress {
    position: fixed;
    z-index: 3000;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .16s ease,
        visibility .16s ease;
}

.page-progress > span {
    display: block;
    width: var(--page-progress-width, 0%);
    height: 100%;
    border-radius: 0 999px 999px 0;
    background:
        linear-gradient(
            90deg,
            #ef6500,
            #ff8a33 70%,
            #ffc090
        );
    box-shadow:
        0 0 8px rgba(255, 107, 0, .72),
        0 0 18px rgba(255, 107, 0, .34);
    transition: width .18s ease-out;
}

.page-progress.is-visible {
    opacity: 1;
    visibility: visible;
}

.page-progress.is-finishing > span {
    transition: width .12s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .page-progress,
    .page-progress > span {
        transition-duration: .01ms !important;
    }
}

/* Manual polish: VIN empty state */
.vin-empty-state {
    display: grid;
    justify-items: center;
    max-width: 620px;
    margin: 24px auto 0;
    padding: 38px 28px;
    border: 1px solid #e4e8ee;
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255, 107, 0, .09),
            transparent 44%
        ),
        #fff;
    box-shadow: 0 16px 42px rgba(22, 34, 52, .06);
    text-align: center;
}

.vin-empty-state.hidden {
    display: none;
}

.vin-empty-icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin-bottom: 17px;
    place-items: center;
    border-radius: 19px;
    background: #fff0e4;
    font-size: 31px;
    box-shadow: inset 0 0 0 1px rgba(255, 107, 0, .12);
}

.vin-empty-state h2 {
    margin: 0;
    color: #17212f;
    font-size: clamp(21px, 2.5vw, 27px);
    line-height: 1.2;
}

.vin-empty-state p {
    max-width: 440px;
    margin: 11px 0 21px;
    color: #667085;
    font-size: 14px;
    line-height: 1.55;
}

#vinEmptyCreateButton {
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid #ef6500;
    border-radius: 11px;
    color: #fff;
    background: #ef6500;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(239, 101, 0, .18);
    transition:
        background-color .18s ease,
        border-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

#vinEmptyCreateButton:hover {
    border-color: #ff7414;
    background: #ff7414;
    box-shadow: 0 10px 24px rgba(239, 101, 0, .24);
    transform: translateY(-1px);
}

#vinEmptyCreateButton:active {
    transform: translateY(0) scale(.98);
}

#vinEmptyCreateButton:focus-visible {
    outline: 3px solid rgba(255, 107, 0, .3);
    outline-offset: 3px;
}

@media (max-width: 620px) {
    .vin-empty-state {
        margin-top: 16px;
        padding: 30px 18px;
        border-radius: 16px;
    }

    #vinEmptyCreateButton {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #vinEmptyCreateButton {
        transition: none;
    }

    #vinEmptyCreateButton:hover,
    #vinEmptyCreateButton:active {
        transform: none;
    }
}

/* Manual polish: orders empty action */
.orders-empty-state .registration-submit {
    width: fit-content;
    min-width: 180px;
    margin-top: 18px;
}

@media (max-width: 620px) {
    .orders-empty-state .registration-submit {
        width: 100%;
        min-width: 0;
    }
}

/* Manual polish: compact cart totals */
.cart-summary > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    width: min(100%, 720px);
    margin-inline: auto;
    padding-inline: 14px;
}

.cart-summary > div > span {
    min-width: 0;
    color: var(--text);
    overflow-wrap: anywhere;
}

.cart-summary > div > strong {
    min-width: 90px;
    color: var(--text);
    text-align: right;
    white-space: nowrap;
}

.cart-summary .cart-total-row {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 22px;
    font-weight: 800;
}

@media (max-width: 620px) {
    .cart-summary > div {
        width: 100%;
        gap: 12px;
        padding-inline: 4px;
    }

    .cart-summary > div > strong {
        min-width: 72px;
    }

    .cart-summary .cart-total-row {
        font-size: 20px;
    }
}



/* Manual polish: cart summary card */

.cart-summary {
    margin-top: 22px;
}

.cart-summary > div:not(:last-child):not(.cart-total-row) {
    padding-bottom: 8px;
}

.cart-summary > div:not(:last-child) {
    border-bottom: 1px solid #eceff3;
}

.cart-summary > div:last-of-type {
    border-bottom: 0;
}

.cart-summary {
    padding: 18px;
    border: 1px solid #eceff3;
    border-radius: 14px;
    background: #fafafa;
}

.cart-summary .registration-submit {
    margin-top: 18px;
}

.cart-summary small {
    margin-top: 8px;
}

/* Manual polish: compact cards without product photos */

/*
 * Карточка без фотографии не резервирует пустую левую колонку.
 */
.product-offer-group
.product-detail-summary.product-detail-summary-no-image {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
}

/*
 * Компактные внутренние отступы только для карточек без фото.
 * Карточки с настоящими фотографиями сохраняют прежнюю структуру.
 */
.product-offer-group
.product-detail-summary-no-image
.product-detail-content {
    width: 100%;
    padding: 22px clamp(22px, 3.2vw, 38px) 20px;
}

/*
 * Немного уплотняем верхнюю часть карточки.
 */
.product-offer-group
.product-detail-summary-no-image
.product-detail-brand {
    margin-bottom: 5px;
}

.product-offer-group
.product-detail-summary-no-image
.product-detail-title {
    max-width: none;
    margin-bottom: 8px;
    font-size: clamp(22px, 2.5vw, 31px);
    line-height: 1.12;
}

.product-offer-group
.product-detail-summary-no-image
.product-detail-article {
    margin-bottom: 10px;
}

.product-offer-group
.product-detail-summary-no-image
.product-copy-article {
    margin-top: 5px;
}

.product-offer-group
.product-detail-summary-no-image
.product-main-purchase {
    width: min(100%, 520px);
    margin: 12px 0 10px;
    padding: 13px;
    border-radius: 13px;
}

.product-offer-group
.product-detail-summary-no-image
.product-main-price {
    font-size: clamp(26px, 2.7vw, 34px);
}

.product-offer-group
.product-detail-summary-no-image
.product-variants {
    padding-top: 11px;
}

.product-offer-group
.product-detail-summary-no-image
.product-open-standalone {
    margin-top: 9px;
}

@media (max-width: 620px) {
    .product-offer-group
    .product-detail-summary-no-image
    .product-detail-content {
        padding: 17px 14px 16px;
    }

    .product-offer-group
    .product-detail-summary-no-image
    .product-main-purchase {
        width: 100%;
    }
}

/* Manual polish: final compact product card */

/*
 * Верхняя строка карточки без настоящей фотографии:
 * маленькая типовая SVG-иконка, информация и покупка.
 */
.product-offer-group
.product-detail-summary-no-image
.product-detail-content {
    padding: 17px 22px 15px;
}

.product-compact-header {
    display: grid;
    grid-template-columns:
        56px
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.product-compact-type-icon {
    width: 52px !important;
    height: 52px !important;
    padding: 5px;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    background: #fff8f2;
    object-fit: contain;
    filter: none !important;
}

.product-compact-identity {
    display: grid;
    align-content: center;
    min-width: 0;
}

.product-compact-identity .product-detail-brand {
    margin: 0 0 3px;
    font-size: 11px;
    line-height: 1.2;
}

.product-compact-identity .product-detail-title {
    max-width: none;
    margin: 0;
    font-size: clamp(20px, 2.2vw, 27px);
    line-height: 1.1;
    letter-spacing: -0.022em;
}

.product-compact-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 10px;
    margin-top: 7px;
}

.product-compact-meta .product-detail-article {
    min-height: 29px;
    margin: 0;
    padding: 5px 9px;
    font-size: 11px;
}

.product-compact-meta .product-copy-article {
    min-height: 31px;
    margin: 0;
    padding: 5px 10px;
    font-size: 11px;
}

/*
 * В компактном режиме блок покупки больше не является
 * отдельной большой карточкой.
 */
.product-offer-group
.product-detail-summary-no-image
.product-main-purchase {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: end;
    gap: 2px 14px;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.product-offer-group
.product-detail-summary-no-image
.product-main-price {
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(25px, 2.5vw, 32px);
    line-height: 1;
    white-space: nowrap;
}

.product-offer-group
.product-detail-summary-no-image
.product-main-availability {
    grid-column: 1;
    grid-row: 2;
    font-size: 12px;
    white-space: nowrap;
}

.product-offer-group
.product-detail-summary-no-image
.product-main-purchase
.product-detail-cart-button {
    grid-column: 2;
    grid-row: 1 / 3;
    min-height: 42px;
    padding-inline: 16px;
    white-space: nowrap;
}

/*
 * Варианты покупки поднимаем ближе к верхней строке.
 */
.product-offer-group
.product-detail-summary-no-image
.product-variants {
    margin-top: 13px;
    padding-top: 11px;
}

.product-offer-group
.product-detail-summary-no-image
.product-variants-title {
    margin-bottom: 7px;
}

.product-offer-group
.product-detail-summary-no-image
.product-variant-row {
    min-height: 44px;
    margin-top: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.product-offer-group
.product-detail-summary-no-image
.product-variant-row.is-primary {
    margin-top: 11px;
}

.product-offer-group
.product-detail-summary-no-image
.product-open-standalone {
    min-height: 35px;
    margin-top: 8px;
    padding: 6px 11px;
    font-size: 11px;
}

/*
 * Планшеты: верх остаётся горизонтальным,
 * но элементы становятся немного компактнее.
 */
@media (max-width: 820px) {
    .product-compact-header {
        grid-template-columns:
            48px
            minmax(0, 1fr)
            auto;
        gap: 11px;
    }

    .product-compact-type-icon {
        width: 46px !important;
        height: 46px !important;
    }

    .product-offer-group
    .product-detail-summary-no-image
    .product-main-purchase
    .product-detail-cart-button {
        padding-inline: 12px;
        font-size: 12px;
    }
}

/*
 * Телефон: название занимает верх,
 * покупка переносится отдельной компактной строкой.
 */
@media (max-width: 620px) {
    .product-offer-group
    .product-detail-summary-no-image
    .product-detail-content {
        padding: 14px 12px 13px;
    }

    .product-compact-header {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 10px;
    }

    .product-compact-type-icon {
        width: 42px !important;
        height: 42px !important;
        padding: 4px;
        border-radius: 10px;
    }

    .product-compact-identity .product-detail-title {
        font-size: clamp(18px, 5.2vw, 23px);
    }

    .product-compact-meta {
        gap: 6px;
        margin-top: 6px;
    }

    .product-offer-group
    .product-detail-summary-no-image
    .product-main-purchase {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns:
            auto
            minmax(0, 1fr)
            auto;
        gap: 9px;
        width: 100%;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #edf0f4;
    }

    .product-offer-group
    .product-detail-summary-no-image
    .product-main-price {
        grid-column: 1;
        grid-row: 1;
        font-size: 24px;
    }

    .product-offer-group
    .product-detail-summary-no-image
    .product-main-availability {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    .product-offer-group
    .product-detail-summary-no-image
    .product-main-purchase
    .product-detail-cart-button {
        grid-column: 3;
        grid-row: 1;
        min-height: 40px;
        padding-inline: 11px;
    }

    .product-offer-group
    .product-detail-summary-no-image
    .product-variant-row {
        min-height: 42px;
    }
}

@media (max-width: 430px) {
    .product-compact-header {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .product-compact-type-icon {
        width: 38px !important;
        height: 38px !important;
    }

    .product-offer-group
    .product-detail-summary-no-image
    .product-main-purchase {
        grid-template-columns: auto 1fr;
    }

    .product-offer-group
    .product-detail-summary-no-image
    .product-main-purchase
    .product-detail-cart-button {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }
}



/* PARTON52 PLACEHOLDER PACK V1 */

.product-detail-media-placeholder {
    position: relative;
}

.product-detail-media-placeholder
.product-detail-image {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.product-placeholder-notice {
    max-width: 370px;
    margin: 10px auto 0;
    color: var(--muted, #687386);
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.product-placeholder-wrapper {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    flex: 0 0 auto;
}

.product-placeholder-wrapper
.order-item-placeholder {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.product-placeholder-label {
    display: block;
    margin-top: 3px;
    color: var(--muted, #687386);
    font-size: 9px;
    line-height: 1.15;
    text-align: center;
}

.product-compact-type-icon {
    width: 96px;
    min-width: 96px;
}

.product-compact-type-icon
.order-item-placeholder {
    width: 88px;
    height: 88px;
}

.cart-item-visual {
    width: 78px;
    min-width: 78px;
}

.cart-item-visual
.order-item-placeholder {
    width: 70px;
    height: 70px;
}

.product-placeholder-empty {
    display: none !important;
}

@media (max-width: 640px) {
    .product-detail-media-placeholder
    .product-detail-image {
        max-height: 320px;
    }

    .product-placeholder-notice {
        max-width: 300px;
        font-size: 11px;
    }

    .product-compact-type-icon {
        width: 76px;
        min-width: 76px;
    }

    .product-compact-type-icon
    .order-item-placeholder {
        width: 68px;
        height: 68px;
    }
}


/* PARTON52 PLACEHOLDER CARD LAYOUT FIX V1 */

/*
 * В поисковой карточке показываем только одно типовое изображение.
 * Оно компактное и не увеличивает высоту карточки.
 */
.product-offer-group
.product-detail-media-placeholder {
    box-sizing: border-box;
    width: 230px;
    min-width: 230px;
    padding: 16px 18px;
    align-self: stretch;
    justify-content: flex-start;
}

/*
 * Сам объект не должен занимать весь квадрат 1024×1024.
 */
.product-offer-group
.product-detail-media-placeholder
.product-detail-image {
    display: block;
    width: 150px;
    height: 150px;
    max-width: 150px;
    max-height: 150px;
    margin: 28px auto 0;
    object-fit: contain;
    object-position: center;
}

/*
 * Бейдж остаётся — он честно сообщает,
 * что изображение не является фотографией артикула.
 */
.product-offer-group
.product-detail-media-placeholder
.product-detail-photo-label {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    max-width: calc(100% - 28px);
    white-space: nowrap;
}

/*
 * В поисковой выдаче длинное объяснение не показываем.
 * Бейджа «Типовое изображение» достаточно.
 */
.product-offer-group
.product-detail-media-placeholder
.product-placeholder-notice {
    display: none;
}

/*
 * Когда слева уже есть крупная заглушка,
 * старая маленькая иконка возле названия не нужна.
 */
.product-offer-group
.product-detail-summary:not(.product-detail-summary-no-image)
.product-compact-type-icon {
    display: none !important;
}

/*
 * Нормальная высота и выравнивание карточки.
 */
.product-offer-group
.product-detail-summary {
    min-height: 270px;
}

.product-offer-group
.product-detail-summary
.product-detail-content {
    min-width: 0;
}

/*
 * Планшет.
 */
@media (max-width: 900px) {
    .product-offer-group
    .product-detail-media-placeholder {
        width: 190px;
        min-width: 190px;
        padding-inline: 12px;
    }

    .product-offer-group
    .product-detail-media-placeholder
    .product-detail-image {
        width: 125px;
        height: 125px;
        max-width: 125px;
        max-height: 125px;
    }
}

/*
 * Телефон: изображение остаётся сверху,
 * но не превращается в огромный блок.
 */
@media (max-width: 640px) {
    .product-offer-group
    .product-detail-media-placeholder {
        width: 100%;
        min-width: 0;
        min-height: 175px;
        padding: 14px;
    }

    .product-offer-group
    .product-detail-media-placeholder
    .product-detail-image {
        width: 120px;
        height: 120px;
        max-width: 120px;
        max-height: 120px;
        margin-top: 25px;
    }

    .product-offer-group
    .product-detail-summary {
        min-height: 0;
    }
}


/* PARTON52 FINAL COMPACT PLACEHOLDER CARDS V1 */

/*
 * Итоговая компактная карточка поиска
 * для фирменных типовых изображений.
 */
@media (min-width: 641px) {
    .product-offer-group
    .product-detail-summary:has(
        .product-detail-media-placeholder
    ) {
        display: grid;
        grid-template-columns:
            220px
            minmax(0, 1fr);
        align-items: stretch;
        min-height: 0 !important;
    }

    /*
     * Левая колонка компактная.
     * Она больше не определяет огромную высоту карточки.
     */
    .product-offer-group
    .product-detail-media-placeholder {
        box-sizing: border-box;
        width: 220px !important;
        min-width: 220px !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 14px 18px 16px !important;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    /*
     * Размер самой детали — ровно как
     * в утверждённом макете.
     */
    .product-offer-group
    .product-detail-media-placeholder
    .product-detail-image {
        display: block;
        width: 170px !important;
        height: 170px !important;
        max-width: 170px !important;
        max-height: 170px !important;
        margin: 42px auto 0 !important;
        object-fit: contain;
        object-position: center;
    }

    .product-offer-group
    .product-detail-media-placeholder
    .product-detail-photo-label {
        position: absolute;
        top: 14px;
        left: 14px;
        z-index: 2;
        max-width: calc(100% - 28px);
        white-space: nowrap;
    }

    /*
     * В поисковой выдаче длинное предупреждение
     * не показываем — остаётся только честный бейдж.
     */
    .product-offer-group
    .product-detail-media-placeholder
    .product-placeholder-notice {
        display: none !important;
    }

    /*
     * Правая часть карточки.
     */
    .product-offer-group
    .product-detail-summary:has(
        .product-detail-media-placeholder
    )
    .product-detail-content {
        min-width: 0;
        padding: 16px 20px 14px !important;
    }

    /*
     * Верх карточки:
     * товар слева, цена и корзина справа.
     */
    .product-placeholder-header {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            auto;
        align-items: start;
        gap: 18px;
        padding-bottom: 12px;
        border-bottom: 1px solid #edf0f4;
    }

    .product-placeholder-identity {
        min-width: 0;
    }

    .product-placeholder-identity
    .product-detail-brand {
        margin: 0 0 3px;
    }

    .product-placeholder-identity
    .product-detail-title {
        margin: 0;
        font-size: clamp(21px, 2vw, 28px);
        line-height: 1.08;
    }

    .product-placeholder-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-top: 8px;
    }

    .product-placeholder-meta
    .product-detail-article,
    .product-placeholder-meta
    .product-copy-article {
        margin: 0 !important;
    }

    /*
     * Цена и кнопка занимают только нужную ширину.
     */
    .product-placeholder-header
    .product-main-purchase {
        display: grid;
        grid-template-columns:
            auto
            auto;
        grid-template-rows:
            auto
            auto;
        column-gap: 12px;
        row-gap: 1px;
        width: auto !important;
        min-width: 245px;
        margin: 0 !important;
        padding: 8px 10px !important;
        align-self: start;
    }

    .product-placeholder-header
    .product-main-price {
        grid-column: 1;
        grid-row: 1;
        font-size: 26px;
        line-height: 1;
    }

    .product-placeholder-header
    .product-main-availability {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
    }

    .product-placeholder-header
    .product-detail-cart-button {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: center;
        white-space: nowrap;
    }

    /*
     * Варианты покупки компактные.
     */
    .product-offer-group
    .product-detail-summary:has(
        .product-detail-media-placeholder
    )
    .product-variants {
        margin-top: 10px !important;
    }

    .product-offer-group
    .product-detail-summary:has(
        .product-detail-media-placeholder
    )
    .product-variants-title {
        margin: 0 0 7px !important;
        font-size: 12px;
        line-height: 1.2;
    }

    .product-offer-group
    .product-detail-summary:has(
        .product-detail-media-placeholder
    )
    .product-variant-row {
        min-height: 42px !important;
        margin-top: 6px !important;
        padding: 5px 8px !important;
        border-radius: 11px;
    }

    /*
     * В компактной выдаче бейдж «Лучший вариант»
     * полностью скрываем — именно он давал наложение.
     */
    .product-offer-group
    .product-detail-summary:has(
        .product-detail-media-placeholder
    )
    .product-variant-row.is-primary::before,
    .product-offer-group
    .product-detail-summary:has(
        .product-detail-media-placeholder
    )
    .product-variant-row.is-primary::after {
        display: none !important;
        content: none !important;
    }

    .product-offer-group
    .product-detail-summary:has(
        .product-detail-media-placeholder
    )
    .product-open-standalone {
        margin-top: 9px !important;
    }
}


/*
 * Планшет.
 */
@media (min-width: 641px) and (max-width: 900px) {
    .product-offer-group
    .product-detail-summary:has(
        .product-detail-media-placeholder
    ) {
        grid-template-columns:
            180px
            minmax(0, 1fr);
    }

    .product-offer-group
    .product-detail-media-placeholder {
        width: 180px !important;
        min-width: 180px !important;
    }

    .product-placeholder-header {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-placeholder-header
    .product-main-purchase {
        min-width: 0;
        justify-self: start;
    }
}


/*
 * Телефон.
 */
@media (max-width: 640px) {
    .product-offer-group
    .product-detail-summary:has(
        .product-detail-media-placeholder
    ) {
        display: block;
        min-height: 0 !important;
    }

    .product-offer-group
    .product-detail-media-placeholder {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 155px !important;
        height: 155px !important;
        padding: 12px !important;
    }

    .product-offer-group
    .product-detail-media-placeholder
    .product-detail-image {
        width: 105px !important;
        height: 105px !important;
        max-width: 105px !important;
        max-height: 105px !important;
        margin: 28px auto 0 !important;
    }

    .product-placeholder-header {
        display: block;
        padding-bottom: 10px;
        border-bottom: 1px solid #edf0f4;
    }

    .product-placeholder-header
    .product-main-purchase {
        width: 100% !important;
        min-width: 0;
        margin-top: 10px !important;
    }

    .product-offer-group
    .product-detail-summary:has(
        .product-detail-media-placeholder
    )
    .product-detail-content {
        padding: 14px 12px !important;
    }

    .product-offer-group
    .product-detail-summary:has(
        .product-detail-media-placeholder
    )
    .product-variant-row.is-primary::before,
    .product-offer-group
    .product-detail-summary:has(
        .product-detail-media-placeholder
    )
    .product-variant-row.is-primary::after {
        display: none !important;
        content: none !important;
    }
}


/* PARTON52 TITLE AND PLACEHOLDER CACHE FIX V2 */

/*
 * Верхняя часть карточки всегда использует всю доступную ширину.
 */
.product-placeholder-header {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns:
        minmax(0, 1fr)
        max-content !important;
    align-items: start !important;
    gap: 18px !important;
}

.product-placeholder-identity {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

/*
 * Название переносится только целыми словами.
 * По отдельным буквам и слогам его больше не ломаем.
 */
.product-placeholder-identity
.product-detail-title {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;

    line-height: 1.12 !important;
}

/*
 * Блок цены не имеет права забирать место у названия.
 */
.product-placeholder-header
.product-main-purchase {
    width: max-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: end !important;
}

/*
 * На средних экранах цена и корзина переходят
 * отдельной строкой под названием.
 */
@media (max-width: 1280px) {
    .product-placeholder-header {
        grid-template-columns:
            minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    .product-placeholder-header
    .product-main-purchase {
        justify-self: start !important;
        margin-top: 2px !important;
    }
}

/*
 * Дополнительная страховка:
 * заголовок никогда не превращается в колонку из букв,
 * даже если название очень длинное.
 */
.product-detail-title {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
}

/*
 * Не допускаем чрезмерно узкую правую часть карточки.
 */
.product-offer-group
.product-detail-content {
    width: 100% !important;
    min-width: 0 !important;
}


/* PARTON52 TYPOGRAPHY V2 */

/* бренд */
.product-brand,
.product-brand-name,
.product-card-brand{
    font-size:12px !important;
    letter-spacing:.08em !important;
}

/* название */
.product-detail-title,
.product-title,
.product-card-title{
    font-size:42px !important;
    line-height:1.08 !important;
    font-weight:700 !important;
    margin-bottom:10px !important;
}

/* планшеты */
@media (max-width:1280px){

.product-detail-title,
.product-title,
.product-card-title{
    font-size:36px !important;
    line-height:1.10 !important;
}

}

/* телефон */
@media (max-width:768px){

.product-detail-title,
.product-title,
.product-card-title{
    font-size:30px !important;
    line-height:1.12 !important;
}

}


/* PARTON52 TYPOGRAPHY SIZE FIX V3 */

/*
 * Исправляем только заголовки карточек,
 * в которых используется типовое изображение.
 * Остальные страницы и карточки не затрагиваем.
 */
.product-offer-group
.product-placeholder-identity
.product-detail-title {
    font-size: 24px !important;
    line-height: 1.16 !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
}

/* Бренд над названием */
.product-offer-group
.product-placeholder-identity
.product-detail-brand {
    font-size: 11px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 4px !important;
}

@media (max-width: 1280px) {
    .product-offer-group
    .product-placeholder-identity
    .product-detail-title {
        font-size: 22px !important;
        line-height: 1.18 !important;
    }
}

@media (max-width: 640px) {
    .product-offer-group
    .product-placeholder-identity
    .product-detail-title {
        font-size: 20px !important;
        line-height: 1.2 !important;
    }
}

/* ==========================================================
   PARTON52 PRODUCT TITLE TUNING V1
   ========================================================== */

.product-title,
.product-name,
.result-card h2,
.result-card .title,
.product-card-title {
    font-size: clamp(24px, 2vw, 36px) !important;
    line-height: 1.12 !important;
    font-weight: 700 !important;

    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;

    max-width: 100%;
}

@media (max-width:1200px){

.product-title,
.product-name,
.result-card h2,
.result-card .title,
.product-card-title{

    font-size: clamp(22px,1.8vw,30px) !important;
    line-height:1.12 !important;

}

}


/* ==========================================================
   PARTON52 PRODUCT TITLE FINAL SIZE FIX
   ========================================================== */

.product-offer-group .product-detail-title,
.product-detail-title,
.product-title,
.product-card-title {
    font-size: clamp(14px, 1.15vw, 22px) !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;

    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: auto !important;

    max-width: 100% !important;
}


/* ==========================================================
   PARTON52 NO-IMAGE TITLE WIDTH FIX V1
   ========================================================== */

/*
 * Карточки без фотографии:
 * название занимает всю свободную ширину,
 * цена и кнопка — только необходимое место справа.
 */
.product-offer-group
.product-detail-summary-no-image
.product-compact-header {
    display: grid !important;
    grid-template-columns:
        minmax(0, 1fr)
        max-content !important;
    align-items: start !important;
    column-gap: 28px !important;
    row-gap: 12px !important;

    width: 100% !important;
    min-width: 0 !important;
}

/*
 * Левая область с брендом, названием и артикулом.
 */
.product-offer-group
.product-detail-summary-no-image
.product-compact-identity {
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

/*
 * Название больше не превращается
 * в узкую вертикальную колонку.
 */
.product-offer-group
.product-detail-summary-no-image
.product-compact-identity
.product-detail-title {
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 720px !important;

    margin: 3px 0 8px !important;

    font-size: clamp(16px, 1.35vw, 21px) !important;
    line-height: 1.22 !important;
    font-weight: 700 !important;

    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
}

/*
 * Цена и кнопка не должны сжимать название.
 */
.product-offer-group
.product-detail-summary-no-image
.product-main-purchase {
    width: max-content !important;
    min-width: 0 !important;
    max-width: 100% !important;

    justify-self: end !important;
    align-self: center !important;

    margin: 0 !important;
}

/*
 * На средних экранах блок покупки переносится
 * под название, чтобы текст всегда оставался широким.
 */
@media (max-width: 1100px) {
    .product-offer-group
    .product-detail-summary-no-image
    .product-compact-header {
        grid-template-columns:
            minmax(0, 1fr) !important;
    }

    .product-offer-group
    .product-detail-summary-no-image
    .product-main-purchase {
        justify-self: start !important;
        margin-top: 4px !important;
    }

    .product-offer-group
    .product-detail-summary-no-image
    .product-compact-identity
    .product-detail-title {
        max-width: 100% !important;
    }
}

/*
 * Телефон.
 */
@media (max-width: 640px) {
    .product-offer-group
    .product-detail-summary-no-image
    .product-compact-identity
    .product-detail-title {
        font-size: 17px !important;
        line-height: 1.24 !important;
    }
}



/* PARTON52 PLACEHOLDER PACK V2.1 IMAGE BORDER FIX START */

/*
 * Убираем рамку, обводку, фон и тень непосредственно
 * у десяти изображений Placeholder Pack v2.1.
 *
 * Внешняя карточка товара и её оформление не затрагиваются.
 */

.product-detail-image[src*="/cv-joint-inner.webp"],
.product-detail-image[src*="/drive-shaft.webp"],
.product-detail-image[src*="/strut-mount.webp"],
.product-detail-image[src*="/strut-bearing.webp"],
.product-detail-image[src*="/brake-caliper.webp"],
.product-detail-image[src*="/master-cylinder.webp"],
.product-detail-image[src*="/wheel-cylinder.webp"],
.product-detail-image[src*="/steering-rack.webp"],
.product-detail-image[src*="/power-steering-pump.webp"],
.product-detail-image[src*="/cv-boot.webp"] {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/*
 * На случай, если обводка сделана через псевдоэлемент
 * контейнера изображения.
 */

.product-detail-media-placeholder:has(
    .product-detail-image[src*="/cv-joint-inner.webp"]
)::before,
.product-detail-media-placeholder:has(
    .product-detail-image[src*="/drive-shaft.webp"]
)::before,
.product-detail-media-placeholder:has(
    .product-detail-image[src*="/strut-mount.webp"]
)::before,
.product-detail-media-placeholder:has(
    .product-detail-image[src*="/strut-bearing.webp"]
)::before,
.product-detail-media-placeholder:has(
    .product-detail-image[src*="/brake-caliper.webp"]
)::before,
.product-detail-media-placeholder:has(
    .product-detail-image[src*="/master-cylinder.webp"]
)::before,
.product-detail-media-placeholder:has(
    .product-detail-image[src*="/wheel-cylinder.webp"]
)::before,
.product-detail-media-placeholder:has(
    .product-detail-image[src*="/steering-rack.webp"]
)::before,
.product-detail-media-placeholder:has(
    .product-detail-image[src*="/power-steering-pump.webp"]
)::before,
.product-detail-media-placeholder:has(
    .product-detail-image[src*="/cv-boot.webp"]
)::before,
.product-detail-media-placeholder:has(
    .product-detail-image[src*="/cv-joint-inner.webp"]
)::after,
.product-detail-media-placeholder:has(
    .product-detail-image[src*="/drive-shaft.webp"]
)::after,
.product-detail-media-placeholder:has(
    .product-detail-image[src*="/strut-mount.webp"]
)::after,
.product-detail-media-placeholder:has(
    .product-detail-image[src*="/strut-bearing.webp"]
)::after,
.product-detail-media-placeholder:has(
    .product-detail-image[src*="/brake-caliper.webp"]
)::after,
.product-detail-media-placeholder:has(
    .product-detail-image[src*="/master-cylinder.webp"]
)::after,
.product-detail-media-placeholder:has(
    .product-detail-image[src*="/wheel-cylinder.webp"]
)::after,
.product-detail-media-placeholder:has(
    .product-detail-image[src*="/steering-rack.webp"]
)::after,
.product-detail-media-placeholder:has(
    .product-detail-image[src*="/power-steering-pump.webp"]
)::after,
.product-detail-media-placeholder:has(
    .product-detail-image[src*="/cv-boot.webp"]
)::after {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* PARTON52 PLACEHOLDER PACK V2.1 IMAGE BORDER FIX END */

/* PARTON52 V2.1 SEARCH IMAGE FRAME FIX START */

/*
 * Убираем белую рамку, фон, внутренний отступ и тень
 * непосредственно у десяти изображений Placeholder Pack v2.1.
 */

img[src*="/cv-joint-inner.webp"],
img[src*="/drive-shaft.webp"],
img[src*="/strut-mount.webp"],
img[src*="/strut-bearing.webp"],
img[src*="/brake-caliper.webp"],
img[src*="/master-cylinder.webp"],
img[src*="/wheel-cylinder.webp"],
img[src*="/steering-rack.webp"],
img[src*="/power-steering-pump.webp"],
img[src*="/cv-boot.webp"] {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    object-fit: contain !important;
}

/*
 * Убираем дополнительную рамку с возможных контейнеров
 * изображения в поиске и в карточке товара.
 */

.product-card-image-wrap:has(img[src*="/cv-joint-inner.webp"]),
.product-image-wrap:has(img[src*="/cv-joint-inner.webp"]),
.product-card-media:has(img[src*="/cv-joint-inner.webp"]),
.product-detail-media-placeholder:has(img[src*="/cv-joint-inner.webp"]),
.product-card-image-wrap:has(img[src*="/drive-shaft.webp"]),
.product-image-wrap:has(img[src*="/drive-shaft.webp"]),
.product-card-media:has(img[src*="/drive-shaft.webp"]),
.product-detail-media-placeholder:has(img[src*="/drive-shaft.webp"]),
.product-card-image-wrap:has(img[src*="/strut-mount.webp"]),
.product-image-wrap:has(img[src*="/strut-mount.webp"]),
.product-card-media:has(img[src*="/strut-mount.webp"]),
.product-detail-media-placeholder:has(img[src*="/strut-mount.webp"]),
.product-card-image-wrap:has(img[src*="/strut-bearing.webp"]),
.product-image-wrap:has(img[src*="/strut-bearing.webp"]),
.product-card-media:has(img[src*="/strut-bearing.webp"]),
.product-detail-media-placeholder:has(img[src*="/strut-bearing.webp"]),
.product-card-image-wrap:has(img[src*="/brake-caliper.webp"]),
.product-image-wrap:has(img[src*="/brake-caliper.webp"]),
.product-card-media:has(img[src*="/brake-caliper.webp"]),
.product-detail-media-placeholder:has(img[src*="/brake-caliper.webp"]),
.product-card-image-wrap:has(img[src*="/master-cylinder.webp"]),
.product-image-wrap:has(img[src*="/master-cylinder.webp"]),
.product-card-media:has(img[src*="/master-cylinder.webp"]),
.product-detail-media-placeholder:has(img[src*="/master-cylinder.webp"]),
.product-card-image-wrap:has(img[src*="/wheel-cylinder.webp"]),
.product-image-wrap:has(img[src*="/wheel-cylinder.webp"]),
.product-card-media:has(img[src*="/wheel-cylinder.webp"]),
.product-detail-media-placeholder:has(img[src*="/wheel-cylinder.webp"]),
.product-card-image-wrap:has(img[src*="/steering-rack.webp"]),
.product-image-wrap:has(img[src*="/steering-rack.webp"]),
.product-card-media:has(img[src*="/steering-rack.webp"]),
.product-detail-media-placeholder:has(img[src*="/steering-rack.webp"]),
.product-card-image-wrap:has(img[src*="/power-steering-pump.webp"]),
.product-image-wrap:has(img[src*="/power-steering-pump.webp"]),
.product-card-media:has(img[src*="/power-steering-pump.webp"]),
.product-detail-media-placeholder:has(img[src*="/power-steering-pump.webp"]),
.product-card-image-wrap:has(img[src*="/cv-boot.webp"]),
.product-image-wrap:has(img[src*="/cv-boot.webp"]),
.product-card-media:has(img[src*="/cv-boot.webp"]),
.product-detail-media-placeholder:has(img[src*="/cv-boot.webp"]) {
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/*
 * Отключаем рамку, если она создана псевдоэлементом.
 */

.product-card-image-wrap:has(img[src*="/cv-joint-inner.webp"]),
.product-image-wrap:has(img[src*="/cv-joint-inner.webp"]),
.product-card-media:has(img[src*="/cv-joint-inner.webp"]),
.product-detail-media-placeholder:has(img[src*="/cv-joint-inner.webp"]),
.product-card-image-wrap:has(img[src*="/drive-shaft.webp"]),
.product-image-wrap:has(img[src*="/drive-shaft.webp"]),
.product-card-media:has(img[src*="/drive-shaft.webp"]),
.product-detail-media-placeholder:has(img[src*="/drive-shaft.webp"]),
.product-card-image-wrap:has(img[src*="/strut-mount.webp"]),
.product-image-wrap:has(img[src*="/strut-mount.webp"]),
.product-card-media:has(img[src*="/strut-mount.webp"]),
.product-detail-media-placeholder:has(img[src*="/strut-mount.webp"]),
.product-card-image-wrap:has(img[src*="/strut-bearing.webp"]),
.product-image-wrap:has(img[src*="/strut-bearing.webp"]),
.product-card-media:has(img[src*="/strut-bearing.webp"]),
.product-detail-media-placeholder:has(img[src*="/strut-bearing.webp"]),
.product-card-image-wrap:has(img[src*="/brake-caliper.webp"]),
.product-image-wrap:has(img[src*="/brake-caliper.webp"]),
.product-card-media:has(img[src*="/brake-caliper.webp"]),
.product-detail-media-placeholder:has(img[src*="/brake-caliper.webp"]),
.product-card-image-wrap:has(img[src*="/master-cylinder.webp"]),
.product-image-wrap:has(img[src*="/master-cylinder.webp"]),
.product-card-media:has(img[src*="/master-cylinder.webp"]),
.product-detail-media-placeholder:has(img[src*="/master-cylinder.webp"]),
.product-card-image-wrap:has(img[src*="/wheel-cylinder.webp"]),
.product-image-wrap:has(img[src*="/wheel-cylinder.webp"]),
.product-card-media:has(img[src*="/wheel-cylinder.webp"]),
.product-detail-media-placeholder:has(img[src*="/wheel-cylinder.webp"]),
.product-card-image-wrap:has(img[src*="/steering-rack.webp"]),
.product-image-wrap:has(img[src*="/steering-rack.webp"]),
.product-card-media:has(img[src*="/steering-rack.webp"]),
.product-detail-media-placeholder:has(img[src*="/steering-rack.webp"]),
.product-card-image-wrap:has(img[src*="/power-steering-pump.webp"]),
.product-image-wrap:has(img[src*="/power-steering-pump.webp"]),
.product-card-media:has(img[src*="/power-steering-pump.webp"]),
.product-detail-media-placeholder:has(img[src*="/power-steering-pump.webp"]),
.product-card-image-wrap:has(img[src*="/cv-boot.webp"]),
.product-image-wrap:has(img[src*="/cv-boot.webp"]),
.product-card-media:has(img[src*="/cv-boot.webp"]),
.product-detail-media-placeholder:has(img[src*="/cv-boot.webp"])::before,
.product-card-image-wrap:has(img[src*="/cv-joint-inner.webp"]),
.product-image-wrap:has(img[src*="/cv-joint-inner.webp"]),
.product-card-media:has(img[src*="/cv-joint-inner.webp"]),
.product-detail-media-placeholder:has(img[src*="/cv-joint-inner.webp"]),
.product-card-image-wrap:has(img[src*="/drive-shaft.webp"]),
.product-image-wrap:has(img[src*="/drive-shaft.webp"]),
.product-card-media:has(img[src*="/drive-shaft.webp"]),
.product-detail-media-placeholder:has(img[src*="/drive-shaft.webp"]),
.product-card-image-wrap:has(img[src*="/strut-mount.webp"]),
.product-image-wrap:has(img[src*="/strut-mount.webp"]),
.product-card-media:has(img[src*="/strut-mount.webp"]),
.product-detail-media-placeholder:has(img[src*="/strut-mount.webp"]),
.product-card-image-wrap:has(img[src*="/strut-bearing.webp"]),
.product-image-wrap:has(img[src*="/strut-bearing.webp"]),
.product-card-media:has(img[src*="/strut-bearing.webp"]),
.product-detail-media-placeholder:has(img[src*="/strut-bearing.webp"]),
.product-card-image-wrap:has(img[src*="/brake-caliper.webp"]),
.product-image-wrap:has(img[src*="/brake-caliper.webp"]),
.product-card-media:has(img[src*="/brake-caliper.webp"]),
.product-detail-media-placeholder:has(img[src*="/brake-caliper.webp"]),
.product-card-image-wrap:has(img[src*="/master-cylinder.webp"]),
.product-image-wrap:has(img[src*="/master-cylinder.webp"]),
.product-card-media:has(img[src*="/master-cylinder.webp"]),
.product-detail-media-placeholder:has(img[src*="/master-cylinder.webp"]),
.product-card-image-wrap:has(img[src*="/wheel-cylinder.webp"]),
.product-image-wrap:has(img[src*="/wheel-cylinder.webp"]),
.product-card-media:has(img[src*="/wheel-cylinder.webp"]),
.product-detail-media-placeholder:has(img[src*="/wheel-cylinder.webp"]),
.product-card-image-wrap:has(img[src*="/steering-rack.webp"]),
.product-image-wrap:has(img[src*="/steering-rack.webp"]),
.product-card-media:has(img[src*="/steering-rack.webp"]),
.product-detail-media-placeholder:has(img[src*="/steering-rack.webp"]),
.product-card-image-wrap:has(img[src*="/power-steering-pump.webp"]),
.product-image-wrap:has(img[src*="/power-steering-pump.webp"]),
.product-card-media:has(img[src*="/power-steering-pump.webp"]),
.product-detail-media-placeholder:has(img[src*="/power-steering-pump.webp"]),
.product-card-image-wrap:has(img[src*="/cv-boot.webp"]),
.product-image-wrap:has(img[src*="/cv-boot.webp"]),
.product-card-media:has(img[src*="/cv-boot.webp"]),
.product-detail-media-placeholder:has(img[src*="/cv-boot.webp"])::after {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* PARTON52 V2.1 SEARCH IMAGE FRAME FIX END */

/* Checkout UX v2 */
.checkout-delivery-fields,
.checkout-transport-fields,
.checkout-payment-summary {
    transition: opacity 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.checkout-transport-fields {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #f8fafc;
}

.checkout-transport-fields h4 {
    margin: 0 0 13px;
    color: #242b35;
    font-size: 16px;
}

.checkout-form .form-field select {
    width: 100%;
    min-height: 48px;
    padding: 11px 38px 11px 14px;
    border: 1px solid #d7dce3;
    border-radius: 11px;
    color: var(--text);
    background-color: #fff;
    font: inherit;
}

.checkout-transport-note {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-left: 3px solid #ff6b00;
    border-radius: 0 9px 9px 0;
    color: #475467;
    background: #fff7ed;
    font-size: 13px;
    line-height: 1.5;
}

.checkout-payment-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid #b7dfc7;
    border-radius: 13px;
    background: #f1fbf5;
}

.checkout-payment-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #067647;
    background: #d1fadf;
    font-weight: 900;
}

.checkout-payment-summary strong,
.checkout-payment-summary small {
    display: block;
}

.checkout-payment-summary strong {
    color: #173b28;
}

.checkout-payment-summary small {
    margin-top: 3px;
    color: #476555;
    line-height: 1.4;
}

.checkout-form.was-validated input:invalid,
.checkout-form.was-validated select:invalid {
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, .1);
}

.checkout-form input:focus-visible,
.checkout-form select:focus-visible,
.checkout-form textarea:focus-visible,
.checkout-option:focus-within {
    outline: 3px solid rgba(255, 107, 0, .25);
    outline-offset: 2px;
}

.checkout-option,
.checkout-payment-summary,
.checkout-form button {
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.checkout-form button:disabled {
    cursor: not-allowed;
    opacity: .58;
}

@media (max-width: 600px) {
    .checkout-transport-fields,
    .checkout-payment-summary {
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .checkout-delivery-fields,
    .checkout-transport-fields,
    .checkout-payment-summary,
    .checkout-option,
    .checkout-form button {
        transition: none;
    }
}

/* Branded system error pages */
.system-error-page {
    display: grid;
    min-height: 100dvh;
    grid-template-rows: auto 1fr auto;
    margin: 0;
    color: #17212f;
    background: #f5f7fa;
}

.system-error-header {
    padding: 18px clamp(20px, 5vw, 72px);
    border-bottom: 1px solid #e4e7ec;
    background: #fff;
}

.system-error-header a {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #17212f;
    font-size: 20px;
    font-weight: 900;
    text-decoration: none;
}

.system-error-header img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.system-error-main {
    display: grid;
    place-items: center;
    padding: 36px 20px;
}

.system-error-card {
    width: min(620px, 100%);
    padding: clamp(28px, 6vw, 52px);
    border: 1px solid #e4e7ec;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(23, 33, 47, .09);
    text-align: center;
}

.system-error-icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    place-items: center;
    border: 1px solid #ffd3b5;
    border-radius: 18px;
    color: #b54708;
    background: #fff4e8;
    font-size: 30px;
    font-weight: 900;
}

.system-error-code {
    margin: 0 0 8px;
    color: #b54708;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.system-error-card h1 {
    margin: 0;
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.12;
}

.system-error-description {
    max-width: 500px;
    margin: 14px auto 0;
    color: #667085;
    line-height: 1.55;
}

.system-error-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}

.system-error-actions a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.system-error-primary {
    border: 1px solid #ed6500;
    color: #fff;
    background: #ed6500;
}

.system-error-primary:hover {
    border-color: #d95d00;
    background: #d95d00;
}

.system-error-secondary {
    border: 1px solid #d0d5dd;
    color: #344054;
    background: #fff;
}

.system-error-secondary:hover {
    border-color: #98a2b3;
    background: #f8fafc;
}

.system-error-actions a:focus-visible,
.system-error-header a:focus-visible {
    outline: 3px solid rgba(255, 107, 0, .3);
    outline-offset: 3px;
}

.system-error-footer {
    padding: 18px 20px;
    color: #7a8290;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 520px) {
    .system-error-header {
        padding: 14px 18px;
    }

    .system-error-main {
        align-items: start;
        padding: 24px 14px;
    }

    .system-error-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .system-error-actions {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .system-error-actions a {
        transition: none;
    }
}

/* Catalog empty states */
.catalog-empty-state {
    display: grid;
    width: min(680px, 100%);
    justify-items: center;
    margin: 18px auto 4px;
    padding: 30px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    color: #344054;
    background: #fff;
    text-align: center;
}

.catalog-empty-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid #ffd3b5;
    border-radius: 15px;
    color: #b54708;
    background: #fff4e8;
    font-size: 27px;
    line-height: 1;
}

.catalog-empty-state h2 {
    margin: 14px 0 7px;
    color: #17212f;
    font-size: clamp(20px, 3vw, 24px);
}

.catalog-empty-state p {
    max-width: 500px;
    margin: 0;
    color: #667085;
    line-height: 1.5;
}

.catalog-empty-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.catalog-empty-actions button {
    width: auto;
    min-height: 44px;
    margin: 0;
}

.catalog-brand-empty {
    grid-column: 1 / -1;
}

.catalog-brand-empty > button {
    margin-top: 18px;
}

@media (max-width: 520px) {
    .catalog-empty-state {
        padding: 24px 16px;
    }

    .catalog-empty-actions {
        width: 100%;
        flex-direction: column;
    }

    .catalog-empty-actions button,
    .catalog-brand-empty > button {
        width: 100%;
    }
}

/* Stage 7.5A final cascade overrides for the legacy orders polish layers. */
.parton-orders-list-column .orders-modal-header h2 {
    margin-top: 0 !important;
}

.parton-orders-list-column .orders-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

@media (max-width: 520px) {
    .parton-orders-list-column .orders-toolbar {
        align-items: stretch !important;
        flex-direction: column !important;
    }
}

/* Stage 8.3E: stable cart item placement with or without a visual. */
.cart-items {
    container-type: inline-size;
}

.cart-item {
    grid-template-columns: 78px minmax(0, 1fr) max-content;
    grid-template-areas: "visual details controls";
}

.cart-item > .cart-item-visual {
    grid-area: visual;
}

.cart-item > .cart-item-details {
    grid-area: details;
    width: 100%;
    min-width: 0;
    max-width: none;
}

.cart-item > .cart-item-controls {
    grid-area: controls;
    min-width: 180px;
    max-width: 100%;
}

.cart-item:has(> .product-placeholder-empty) {
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas: "details controls";
}

.cart-item-name {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

.cart-item-brand {
    word-break: normal;
    overflow-wrap: normal;
}

.cart-item-article {
    word-break: normal;
    overflow-wrap: anywhere;
}

.cart-item-availability {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    line-height: 1.2;
}

@container (max-width: 640px) {
    .cart-item,
    .cart-item:has(> .product-placeholder-empty) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "details"
            "controls";
        align-items: stretch;
        gap: 14px;
    }

    .cart-item > .cart-item-visual {
        display: none;
    }

    .cart-item > .cart-item-controls {
        width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "price quantity"
            "delete delete";
        align-items: center;
        justify-items: start;
        gap: 9px 12px;
    }

    .cart-item-controls > .cart-item-price {
        grid-area: price;
        justify-items: start;
    }

    .cart-item-controls > .cart-quantity {
        grid-area: quantity;
        justify-self: end;
    }

    .cart-item-controls > .cart-delete-button {
        grid-area: delete;
        justify-self: end;
    }
}

/* The error shell uses the approved dark lockup on its light surface. */
.system-error-header a{min-height:32px}
.system-error-header a img{
    display:block;
    width:214px;
    height:32px;
    max-width:min(214px,calc(100vw - 40px));
    object-fit:contain;
    object-position:left center;
}
