/* Тема OpenCart miganpack_v8: общие блоки живого сайта + совместимость со старыми стилями на страницах,
   содержимое которых пока из темы default (body.mp-legacy-page). */

/* баннер согласия на cookie — как на живом сайте */
.cookies-agreement{display:none;flex-flow:row wrap;justify-content:space-around;align-items:center;position:fixed;left:0;right:0;bottom:0;
  margin:0 auto;padding:10px 16px 13px;z-index:45;background:#eee;font-size:13px;line-height:1.4;color:#000;width:1440px;max-width:100%}
.cookies-agreement .agreement-text{text-align:center}
.cookies-agreement .cookie-agree{border:0;background:#959292;color:#fff;padding:0 21px;height:30px;border-radius:30px;margin-top:6px;cursor:pointer}
.cookies-agreement .cookie-agree:hover{background:#aaa}
@media (max-width:900px){.cookies-agreement{bottom:64px}}

/* ---- старые стили не должны трогать шапку и подвал v8 ---- */
.mp-legacy-page header.site{padding:0;margin:0;width:auto;border-bottom:1px solid var(--line)}
.mp-legacy-page footer.site{margin-top:40px;padding-top:0;border-top:0}
.mp-legacy-page footer.site a:hover{font-size:inherit;padding:0}
.mp-legacy-page footer.site ul{list-style:none}
.mp-legacy-page .topbar a,.mp-legacy-page header.site a,.mp-legacy-page footer.site a{text-decoration:none}
.mp-legacy-page header.site .wrap,.mp-legacy-page footer.site .wrap,.mp-legacy-page .topbar .wrap{box-sizing:border-box}
.mp-legacy-page .modal{overflow:auto}
.mp-legacy-page .modal .box h3{margin-top:0}
.mp-legacy-page .modal label{font-weight:600}
/* зелёная кнопка старого виджета звонка перекрывала бы нижнюю панель v8; звонок заказывается окном v8 */
.mp-v8 #pco_container{display:none!important}
.mp-legacy{display:block;min-height:40vh}

/* посадочная «Коробки Wildberries»: плитка ящика 600×400×400 с кнопкой заказа */
.mp-wb-box .mp-size{font-weight:700;color:var(--navy);margin:8px 0 4px}
.mp-wb-box .mp-wb-order{margin:10px 0 6px;min-width:160px}
.mp-wb-box .productname .mp-name{color:var(--navy);font-weight:600}

/* «Коробки СДЭК»: стандартные размеры XS–XL */
.mp-sdek-box .mp-sdek-pic{display:flex;align-items:center;justify-content:center;background:#f7f3ec;position:relative;padding:10px}
.mp-sdek-box .mp-sdek-pic img{width:100%;height:100%;object-fit:contain;display:block}
.mp-sdek-box .mp-sdek-type{position:absolute;top:8px;left:8px;background:#1ab248;color:#fff;font-weight:800;font-size:15px;padding:3px 10px;border-radius:8px}
.mp-sdek-box .mp-weight{color:var(--mut);font-size:14px;margin:0 0 4px}

/* «Коробки для пиццы»: размеры и фото */
.mp-pizza{display:grid;grid-template-columns:1.1fr 1fr;gap:28px;align-items:start;background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;margin:10px 0 28px}
.mp-pizza h2{margin:0 0 8px;font-size:24px;color:var(--navy)}
.mp-pizza p{margin:0 0 12px}
.mp-pizza-sizes{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:8px}
.mp-pizza-sizes li{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--paper);border-radius:10px;padding:8px 8px 8px 14px}
.mp-pz-size{font-weight:700;font-size:17px;color:var(--navy)}
.mp-pizza-more{font-weight:600}
.mp-pizza-photos{display:grid;grid-template-columns:1.35fr 1fr;gap:12px;align-items:center}
.mp-pizza-photos img{width:100%;height:auto;border-radius:12px;display:block;background:#fff}
@media (max-width:760px){.mp-pizza{grid-template-columns:1fr;padding:16px}}

/* «О компании» (information_id=11): коллажи вместо фото «столбиком» */
body.page_11 .article .text_simple > p:first-child > strong{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0 26px}
body.page_11 .article .text_simple > p:first-child > strong > img{width:100%!important;height:auto!important;aspect-ratio:3/2;object-fit:cover;object-position:50% 30%;border-radius:12px;display:block;box-shadow:0 4px 14px rgba(15,42,74,.12)}
body.page_11 .article .text_simple > p:first-child > strong > img:nth-child(1){grid-column:1 / span 2;grid-row:1 / span 2;height:100%!important;aspect-ratio:auto}
body.page_11 .article .text_simple > p:first-child > strong > img:nth-child(2){grid-column:3;grid-row:1}
body.page_11 .article .text_simple > p:first-child > strong > img:nth-child(3){grid-column:3;grid-row:2}
body.page_11 .gallery.thumbnails{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:0;background:none;box-shadow:none;border:0}
body.page_11 .gallery.thumbnails .gallery_item{display:block;margin:0;padding:0;width:auto;height:auto}
body.page_11 .gallery.thumbnails .gallery_item img{width:100%!important;height:220px;object-fit:cover;border-radius:12px;display:block;transition:transform .25s}
body.page_11 .gallery.thumbnails .gallery_item:first-child{grid-column:span 2;grid-row:span 2}
body.page_11 .gallery.thumbnails .gallery_item:first-child img{height:450px}
body.page_11 .gallery.thumbnails .gallery_item:hover img{transform:scale(1.02)}
@media (max-width:700px){
  body.page_11 .article .text_simple > p:first-child > strong{grid-template-columns:1fr 1fr}
  body.page_11 .article .text_simple > p:first-child > strong > img:nth-child(n){grid-column:auto;grid-row:auto}
  body.page_11 .article .text_simple > p:first-child > strong > img:nth-child(1){grid-column:1 / span 2;height:auto!important;aspect-ratio:3/2}
  body.page_11 .article .text_simple > p:first-child > strong > img:nth-child(6){grid-column:1 / span 2}
  body.page_11 .gallery.thumbnails .gallery_item:last-child:nth-child(even){grid-column:1 / span 2}
  body.page_11 .gallery.thumbnails{grid-template-columns:1fr 1fr}
  body.page_11 .gallery.thumbnails .gallery_item img{height:150px}
  body.page_11 .gallery.thumbnails .gallery_item:first-child img{height:310px}
}
.mp-pizza-sizes{grid-template-columns:1fr 1fr}
@media (max-width:1100px){.mp-pizza-sizes{grid-template-columns:1fr}}
@media (max-width:760px){.mp-pizza-sizes{grid-template-columns:1fr 1fr}.mp-pizza-sizes li{padding:6px 6px 6px 10px}.mp-pz-size{font-size:15px}}
@media (max-width:480px){.mp-pizza-sizes{grid-template-columns:1fr}}
/* размеры пиццы: по возрастанию сверху вниз — сначала левая колонка, потом правая */
@media (min-width:1101px),(min-width:481px) and (max-width:760px){.mp-pizza-sizes{grid-auto-flow:column;grid-template-rows:repeat(9,auto)}}
/* кнопка «В корзину» на плитках каталога */
.product_box .mp-cart-add,.mp-pizza-sizes .mp-cart-add{margin-top:6px}
.product_box .btn+.mp-cart-add{margin-top:8px}
.mp-sizes-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
