/* deals ТЗ-3 28.08 — кошик/чекаут/вітрина: група набору (золота рамка), бейджі «Знижка тижня», повідомлення, «Повернути набір».
   Окремий файл (custom.min.css ≠ custom.css — не регенеруємо). Скоуп .dcg-* / .mcpc-deal-badge / .cov-prod-deal / .pc-disc--deal / .pi-deal-badge. */
.dcg { border: 1.5px solid #C9A24B; border-radius: 14px; padding: 12px 12px 10px; margin: 4px 0; background: #FFFDF8; }
.dcg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.dcg-badge { font-family: 'MazzardM Bold', system-ui, sans-serif; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; background: #17160F; color: #C9A24B; padding: 4px 8px; border-radius: 5px; white-space: nowrap; }
.dcg-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 17px; line-height: 1.15; color: #16150F; }
.dcg-until { margin-left: auto; font-size: 11px; color: #E24B4A; font-family: 'MazzardM Bold', system-ui, sans-serif; white-space: nowrap; }
.dcg-lines { display: grid; gap: 6px; }
.dcg-lines .mcpc { border: 0; }
/* усередині набору кількість міняється у набору цілком — лічильник рядка ховаємо, видалення лишається (розпад = відкрито) */
.dcg .mcpc.is-in-group .mcpc-counter { visibility: hidden; height: 0; overflow: hidden; margin: 0; padding: 0; }
.dcg .mcpc.is-in-group .mcpc-disc-badge { display: none !important; }
.dcg-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px dashed #E5D9B8; margin-top: 8px; padding-top: 10px; }
.dcg-sum { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.dcg-sum-label { color: #6E6A5C; }
.dcg-sum-old { color: #a09c92; text-decoration: line-through; font-size: 13px; }
.dcg-sum-new { font-family: 'MazzardM Bold', system-ui, sans-serif; font-size: 20px; color: #E24B4A; }
.dcg-sum-save { color: #3AA757; font-family: 'MazzardM Bold', system-ui, sans-serif; font-size: 12px; }
.dcg-qty { display: flex; align-items: center; gap: 10px; }
.dcg-qty-label { font-size: 12px; color: #6E6A5C; }
.dcg-cnt { display: inline-flex; align-items: center; border: 1px solid #E5E1D6; border-radius: 8px; overflow: hidden; }
.dcg-cnt .cnt-btn { width: 40px; height: 36px; display: flex; align-items: center; justify-content: center; background: #fff; border: 0; cursor: pointer; color: #16150F; }
.dcg-cnt .cnt-btn svg { width: 14px; height: 14px; }
.dcg-cnt .cnt-input { width: 40px; text-align: center; font-family: 'MazzardM Bold', system-ui, sans-serif; font-size: 15px; background: #fff; color: #16150F; -moz-appearance: textfield; }
.dcg-cnt .cnt-input::-webkit-outer-spin-button, .dcg-cnt .cnt-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dcg.is-busy { opacity: .6; pointer-events: none; }
/* чекаут */
.dcg--order { padding: 10px 12px; }
.dcg--order .dcg-title { font-size: 15px; }
.dcg-foot--order { font-size: 13px; }
.dcg-foot--order s { color: #a09c92; margin-right: 6px; }
.dcg-foot--order b { color: #E24B4A; font-family: 'MazzardM Bold', system-ui, sans-serif; }
.cov-prod-deal, .mcpc-deal-badge { display: inline-block; font-family: 'MazzardM Bold', system-ui, sans-serif; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; background: #17160F; color: #C9A24B; padding: 3px 7px; border-radius: 5px; white-space: nowrap; margin-top: 4px; }
.mcpc-deal-badge { margin: 0 0 0 4px; vertical-align: middle; }
.cov-deal-row { color: #9A7A2E; }
/* повідомлення й «Повернути набір» */
.dcg-notice { border: 1px solid #E24B4A; background: #fdeceb; color: #b23533; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 4px 0 8px; }
.dcg-notice.oos { border-color: #E24B4A; }
.dcg-restore { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1.5px dashed #C9A24B; background: #FCF8EE; border-radius: 12px; padding: 10px 12px; margin: 4px 0 8px; }
.dcg-restore-txt { font-size: 13px; color: #16150F; line-height: 1.35; }
.dcg-restore-txt small { display: block; color: #77746a; font-size: 11.5px; margin-top: 2px; }
.dcg-restore-btn { background: #17160F; color: #fff; border: 0; border-radius: 9px; padding: 10px 14px; font-family: 'MazzardM Bold', system-ui, sans-serif; font-size: 13px; cursor: pointer; white-space: nowrap; }
.dcg-restore-btn:hover { background: #000; }
/* ── вітрина, hotfix 28.08 ──
   п.3 .pcard: компактний «−50%» у слоті бейджа НА ФОТО (лівий верхній кут .pc-thumb-wrap), не інлайн із ціною; захист від переповнення */
.pcard .pc-deal-chip { position: absolute; top: 8px; left: 8px; z-index: 2; max-width: calc(100% - 16px); font-family: 'MazzardM Bold', system-ui, sans-serif; font-size: 11px; line-height: 1; letter-spacing: .02em; background: #17160F; color: #C9A24B; padding: 5px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; }
.pcard .pc-old, .pcard .pc-buy, .pcard .pc-price-col { min-width: 0; }
.pcard .pc-old s { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* п.4 сторінка товару, ЛИШЕ товар зі знижкою тижня: бейдж окремим рядком, 382 (герой) + 765 (довідка) в одному рядку, «Заощаджуйте» штатним рядком */
.pi-deal-badge { display: inline-block; font-family: 'MazzardM Bold', system-ui, sans-serif; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: #17160F; color: #C9A24B; padding: 4px 8px; border-radius: 5px; white-space: nowrap; }
.page-product .pi-pricebox-deal { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 0; }
.page-product .pi-pricebox-deal .pi-deal-badge { order: -1; width: 100%; flex: none; align-self: flex-start; margin: 0 0 8px; width: auto; }
.page-product .pi-pricebox-deal .pi-deal-badge + * { }
.page-product .pi-pricebox-deal .pi-price { order: 1; }
.page-product .pi-pricebox-deal .pi-oldprice { order: 2; font-size: 15px !important; color: #A09C92 !important; text-decoration: line-through; }
.page-product .pi-pricebox-deal .pi-economy { order: 3; width: 100%; margin-top: 4px; }
.page-product .pi-pricebox-deal .pi-stock { order: 4; width: 100%; margin-top: 6px; }
.page-product .pi-pricebox-deal::before { content: ''; order: 0; width: 100%; height: 0; }   /* перенос після бейджа: бейдж на власному рядку */
/* моб (.pi-mbuy) для дила: у верхньому рядку лише бейдж; стара ціна — поруч із новою по базовій лінії; червона плашка «−N грн» схована */
.page-product .pi-mbuy-pricecol.is-deal .pi-mbuy-topline .pi-mbuy-old, .page-product .pi-mbuy-pricecol.is-deal .pi-mbuy-topline .pi-mbuy-cloud { display: none !important; }
.page-product .pi-mbuy-pricecol.is-deal .pi-mbuy-topline { margin-bottom: 8px; min-height: 0; }
.page-product .pi-mbuy-pricecol.is-deal .pi-mbuy-topline .pi-deal-badge { margin: 0; }
.page-product .pi-mbuy-pricecol.is-deal .pi-mbuy-now { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 0; }
.page-product .pi-mbuy-pricecol.is-deal .pi-deal-old { font-family: 'MazzardM Regular', system-ui, sans-serif; font-size: 15px; font-weight: 400; color: #A09C92; text-decoration: line-through; line-height: 1; }
.page-product .pi-mbuy-pricecol.is-deal .pi-deal-econ { font-size: 11px; color: #6E6A5C; margin-top: 4px; }
@media (max-width: 960px) {
  .dcg { padding: 10px 8px 8px; }
  .dcg-foot { gap: 8px; }
  .dcg-sum-new { font-size: 18px; }
}
