/* HARD — сторінка товару, стиль A (Oswald + Onest, чорний і червоний, квадратні кнопки).
   Джерело: clients/hardbrand.com.ua/site/wp/mu-plugins/hb-product-page/product-page.css */

/* Ціна до і після */
.single-product .entry-summary > .price { font: 600 30px/1.1 Oswald, sans-serif; color: var(--hb-black, #111); }
.single-product .entry-summary > .price del { color: #999; font-weight: 500; font-size: 20px; opacity: 1; margin-right: 10px; }
.single-product .entry-summary > .price ins { color: var(--hb-price, #c32929); text-decoration: none; } /* --hb-price: з 09.10 червоний лишився лише в цінах */

/* Колір серії */
.hb-series { margin: 0 0 22px; }
.hb-series__label { font: 500 13px Oswald, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #666; margin-bottom: 10px; }
.hb-series__label b { color: var(--hb-black, #111); font-weight: 500; }
.hb-series__list { display: flex; flex-wrap: wrap; gap: 12px; }
.hb-series__item { display: block; padding: 3px; border: 1px solid transparent; border-radius: 50%; line-height: 0; text-decoration: none; }
.hb-series__item:hover { border-color: #999; }
.hb-series__item.is-active { border-color: var(--hb-black, #111); }
.hb-series__dot { display: block; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.hb-series__item.is-out .hb-series__dot { opacity: .35; }
.hb-series__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Кнопка таблиці розмірів */
.hb-size-link { margin: 14px 0 22px; }
.hb-size-open { background: none; border: 0; padding: 0 0 2px; cursor: pointer; font: 500 13px Oswald, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--hb-black, #111); border-bottom: 2px solid var(--hb-red, #c32929); }
.hb-size-open:hover { color: var(--hb-red, #c32929); }

/* Вікно */
.hb-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.hb-modal[hidden] { display: none; }
.hb-modal__box { position: relative; background: #fff; width: 100%; max-width: 760px; max-height: 90vh; display: flex; flex-direction: column; padding: 28px 28px 24px; }
.hb-modal__box h2 { font: 500 26px/1.1 Oswald, sans-serif; letter-spacing: .04em; text-transform: uppercase; margin: 0 40px 18px 0; }
.hb-modal__close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: 0; background: none; font-size: 30px; line-height: 1; color: #777; cursor: pointer; }
.hb-modal__close:hover { color: var(--hb-black, #111); }
.hb-modal__scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.hb-modal__scroll img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.hb-modal__tabs { display: flex; gap: 0; margin-bottom: 16px; }
.hb-modal__tabs button { flex: 0 0 auto; padding: 10px 20px; border: 1px solid var(--hb-black, #111); background: #fff; color: var(--hb-black, #111); cursor: pointer; font: 500 13px Oswald, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.hb-modal__tabs button + button { border-left: 0; }
.hb-modal__tabs button.is-active { background: var(--hb-black, #111); color: #fff; }

.hb-note { border-left: 3px solid var(--hb-black, #111); background: #f4f4f4; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; line-height: 1.45; }
.hb-note b { display: block; font: 500 13px Oswald, sans-serif; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.hb-note--warn { border-left-color: var(--hb-red, #c32929); }

.hb-size-table { overflow-x: auto; }
.hb-size-table table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.hb-size-table th { background: var(--hb-black, #111); color: #fff; font: 500 12px Oswald, sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 10px 8px; text-align: center; border: 1px solid var(--hb-black, #111); }
.hb-size-table td { padding: 9px 8px; text-align: center; border: 1px solid #ddd; white-space: nowrap; }
.hb-size-table tbody tr:nth-child(even) td { background: #f7f7f7; }
.hb-size-table td:first-child { font-weight: 600; text-transform: uppercase; }
.hb-size-how { border-top: 1px solid #ddd; margin-top: 22px; padding-top: 18px; }
.hb-size-how h3 { font: 500 16px Oswald, sans-serif; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 14px; text-align: center; }

/* Блок доставки */
.hb-delivery { margin: 22px 0 0; padding: 16px 18px; border: 1px solid #ddd; border-left: 3px solid var(--hb-black, #111); font-size: 14px; line-height: 1.5; }
.hb-delivery.is-sale { border-left-color: var(--hb-red, #c32929); }
.hb-delivery__title { font: 500 14px Oswald, sans-serif; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.hb-delivery p { margin: 0 0 6px; }
.hb-delivery p:last-child { margin-bottom: 0; }
.hb-delivery a { color: var(--hb-black, #111); text-decoration: underline; }
/* Оплата частинами monobank (з 21.10) — такий самий блок над умовами доставки. */
.hb-parts { margin: 22px 0 0; padding: 14px 18px; border: 1px solid #ddd; border-left: 3px solid var(--hb-black, #111); font-size: 14px; line-height: 1.5; }
.hb-parts + .hb-delivery { margin-top: 12px; }
.hb-parts__title { font: 500 14px Oswald, sans-serif; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.hb-parts p { margin: 0; }

/* Правки клієнта 08.10: менший відступ під шапкою; артикул і категорія під ціною */
.single-product .site-main > [data-vertical-spacing*="top"] { padding-top: 22px; }
.single-product .entry-summary .product_meta { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 2px 0 0; padding: 0; border: 0; font-size: 13px; color: #777; }
.single-product .entry-summary .product_meta > span { display: inline; margin: 0; }
.single-product .entry-summary .product_meta a { color: var(--hb-black, #111); }

@media (max-width: 600px) {
	.hb-modal { padding: 0; align-items: flex-end; }
	.hb-modal__box { max-height: 92vh; padding: 22px 16px 18px; }
	.hb-modal__box h2 { font-size: 22px; }
	.hb-size-table table { font-size: 13px; }
	.hb-size-table th, .hb-size-table td { padding: 8px 6px; }
	.single-product .entry-summary > .price { font-size: 26px; }
}

/* Хлібні крихти на телефоні (замір PageSpeed 21.10: зсув макета 0,199). Поки шрифт Onest не прийшов, назва товару
   вміщалась у перший рядок крихт, а з ним — переносилась на другий, і вся картка товару з'їжджала на 23 px.
   Назва товару на телефоні й так стоїть окремим рядком — ставимо її туди одразу, з будь-яким шрифтом. */
@media (max-width: 689px) {
	.single-product .ct-breadcrumbs .last-item { display: block; }
}
