/* Product page «Информация о товаре / Доставка и оплата / О бренде» (partials/product/info.htm): hairline accordions */

.lpi {
    --ink: #111;
    --muted: #6f6f6f;
    --line: #e9e6e1;
    --gold: #b08d57;
    width: 100%;
    max-width: 860px;
    margin-top: 40px;
    font-family: 'CenturyGothic', Arial, Helvetica, sans-serif;
    color: var(--ink);
    border-top: 1px solid var(--ink);
}
.lpi * { font-size: inherit; }  /* the theme sets «* { font-size: 20px }» */
.lpi .info_block { margin: 0; background: none; border: 0; border-bottom: 1px solid var(--line); }

/* the block heads: uppercase, a thin «+» turning into «×» */
.lpi .info_block > .head {
    position: relative; display: flex; align-items: center; justify-content: space-between; padding: 20px 4px;
    font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
    cursor: pointer; user-select: none; border: 0;
    /* a <button> since 2026-12-01: drop the browser's button look */
    width: 100%; margin: 0; background: none; border-radius: 0; font-family: inherit; font-weight: normal; line-height: inherit; text-align: left;
}
.lpi .info_block > .head:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lpi .info_block > .head span { display: none; }
.lpi .info_block > .head::after {
    content: ''; width: 14px; height: 14px; flex: none;
    background: linear-gradient(currentColor, currentColor) center / 14px 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 14px no-repeat;
    transition: transform .25s ease;
}
.lpi .open_info > .head::after { transform: rotate(45deg); }
.lpi .info_block > .head:hover { color: var(--gold); }

/* the block bodies */
.lpi .info_block > .body { margin: 0; padding: 0 4px 22px; }
.lpi .info_block > .body li { list-style: none; padding: 0; color: var(--ink); }
.lpi .info_block > .body li .head,
.lpi .info_block > .body li .body { padding: 0; font-size: 14px; line-height: 1.55; font-weight: normal; cursor: default; }

/* «Информация о товаре»: label / values rows, the label in the left column, the values flow as text on the right */
.lpi .info_about > .body li { display: block; position: relative; min-height: 2.6em; padding: 9px 0 9px 38%; border-bottom: 1px dotted var(--line); }
.lpi .info_about > .body li:last-child { border-bottom: 0; }
.lpi .info_about > .body li .head { position: absolute; left: 0; top: 9px; width: 36%; padding-right: 12px; color: var(--muted); }
.lpi .info_block > .body li .property_block { display: inline; margin: 0; padding: 0; border: 0; background: none; font-size: 14px; line-height: 1.55; color: var(--ink); }
/* several values of a property: the comma goes after a value, so a wrapped line never starts with it */
.lpi .property_block:not(:last-of-type)::after { content: ', '; }

/* «Доставка и оплата», «О бренде»: small uppercase subheads */
.lpi .info_delivery > .body li, .lpi .info_brend > .body li { padding: 8px 0; }
.lpi .info_delivery > .body li .head, .lpi .info_brend > .body li .head {
    margin-bottom: 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}

@media (max-width: 767px) {
    .lpi { margin-top: 28px; }
    /* phones: the label above its values (a two-line label would run into the next row in the left column) */
    .lpi .info_about > .body li { min-height: 0; padding: 9px 0; }
    .lpi .info_about > .body li .head { position: static; display: block; width: auto; padding: 0; margin-bottom: 2px; font-size: 12px; }
}

/* Tablets 768–879px (2026-12-01): the size block under the photo was 367px, so with the 360px quantity + «Добавить в
   корзину» row (desktop.css) it no longer fitted and the button dropped under the photo, away from the price. It is
   now as wide as the photo (350px) and the row stays on the right, under the price. */
@media (min-width: 768px) and (max-width: 879px) {
    #mall-add-to-cart .mall-product__variant-properties { width: 350px !important; }
}

/* The product on a white card (2026-12-02: the site's background is grey #f9f9f9, the photos are shot on white).
   A layer behind the form (#mall-add-to-cart: the title, the photos, the price, «В корзину», the accordions), a little
   wider than it, so the form's own fixed-width layout stays as it is. Its top skips the form's padding under the header */
#mall-add-to-cart { position: relative; z-index: 0; margin-bottom: 64px; }   /* room for the card under the form (its bottom: -28px) */
#mall-add-to-cart::before {
    content: ''; position: absolute; z-index: -1; top: 76px; right: -40px; bottom: -28px; left: -40px;
    border: 1px solid #e9e6e1; border-radius: 12px; background: #fff; pointer-events: none;
}
@media (min-width: 768px) and (max-width: 1023px) {
    #mall-add-to-cart::before { right: 8px; left: 8px; }   /* the form is as wide as the screen here */
    #mall-add-to-cart .lfpt, #mall-add-to-cart .product_informations { padding-left: 24px; padding-right: 24px; }   /* off the card's edge */
}
@media (max-width: 767px) {
    #mall-add-to-cart { margin-bottom: 40px; }
    #mall-add-to-cart::before { top: 14px; right: 8px; bottom: -16px; left: 8px; }
}

/* The brand logo has its width and height now (no jump while it loads, 2026-12-02): its size stays the theme's height, the width follows */
@media (min-width: 768px) { .price_block img { width: auto; } }   /* phones size it by its width (style_main.css): */
@media (max-width: 767px) { .price_block img { height: auto; } }   /* there the height follows */
