/* =========================================================
   GRAND BAR: продажа штуками и упаковками
   ========================================================= */
.gb-pk {
	width: 100%;
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #1d1d1b;
	text-align: center;
}

/* переключатель Упаковка / Поштучно */
.gb-pk-switch {
	display: flex;
	gap: 2px;
	margin: 0 auto 8px;
	padding: 3px;
	max-width: 260px;
	border-radius: 999px;
	background: #f3f4f6;
}

.gb-pk-switch button {
	flex: 1 1 50%;
	min-width: 0;
	height: 28px;
	padding: 0 6px;
	border: none;
	border-radius: 999px;
	background: transparent;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.gb-pk-switch button.is-active {
	background: #fff;
	color: #1d1d1b;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

.gb-pk-switch button.is-active[data-mode="pack"] {
	background: #F9A91D;
	color: #1d1d1b;
}

.gb-pk-switch button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* цена */
.gb-pk-price {
	display: flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	line-height: 1.2;
}

.gb-pk-price b {
	font-size: 19px;
	font-weight: 800;
}

.gb-pk-price span {
	font-size: 12px;
	color: #6b7280;
}

.gb-pk-sub {
	margin-top: 2px;
	font-size: 12px;
	color: #8a5a00;
	font-weight: 600;
}

.gb-pk-note {
	margin: 6px auto 0;
	padding: 5px 10px;
	max-width: 260px;
	border-radius: 10px;
	background: #fff8ea;
	font-size: 11px;
	line-height: 1.35;
	color: #8a5a00;
}

/* счётчик */
.gb-pk-qtybox {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: 100%;
}

.gb-pk-qty {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px;
	border: 1px solid #eceef1;
	border-radius: 999px;
	background: #fff;
}

.gb-pk-qty button {
	width: 30px;
	height: 30px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #fff4dc;
	color: #8a5a00;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s;
}

.gb-pk-qty button:hover:not(:disabled) {
	background: #F9A91D;
	color: #1d1d1b;
}

.gb-pk-qty button:disabled {
	opacity: 0.4;
	cursor: default;
}

.gb-pk-qty [data-el="val"] {
	min-width: 56px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.gb-pk-total {
	font-size: 12px;
	color: #6b7280;
}

/* стандартный счётчик Битрикса остаётся в разметке (его читает «В корзину»), но скрыт */
.gb-pk-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* карточка товара — крупнее */
.gb-pk--detail {
	text-align: left;
}

.gb-pk--detail .gb-pk-switch {
	margin: 0 0 12px;
	max-width: 320px;
}

.gb-pk--detail .gb-pk-switch button {
	height: 34px;
	font-size: 13px;
}

.gb-pk--detail .gb-pk-price {
	justify-content: flex-start;
}

.gb-pk--detail .gb-pk-price b {
	font-size: 30px;
}

.gb-pk--detail .gb-pk-price span {
	font-size: 14px;
}

.gb-pk--detail .gb-pk-sub {
	font-size: 13px;
}

.gb-pk--detail .gb-pk-note {
	margin-left: 0;
	max-width: 320px;
	font-size: 12px;
}

.gb-pk-qtybox--detail {
	align-items: flex-start;
}

.gb-pk-qtybox--detail .gb-pk-qty button {
	width: 38px;
	height: 38px;
	font-size: 20px;
}

.gb-pk-qtybox--detail [data-el="val"] {
	min-width: 70px;
	font-size: 16px;
}

.gb-pk-qtybox--detail .gb-pk-total {
	font-size: 13px;
}

/* страница корзины */
.gb-pk-cart {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gb-pk-cart-info {
	font-size: 12px;
	font-weight: 600;
	color: #8a5a00;
	white-space: nowrap;
}

.gb-pk-cart-btns {
	display: inline-flex;
	gap: 4px;
}

.gb-pk-cart-btns button {
	height: 24px;
	padding: 0 9px;
	border: 1px solid #f3d9a4;
	border-radius: 999px;
	background: #fff8ea;
	color: #8a5a00;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}

.gb-pk-cart-btns button:hover:not(:disabled) {
	background: #F9A91D;
	border-color: #F9A91D;
	color: #1d1d1b;
}

.gb-pk-cart-btns button:disabled {
	opacity: 0.4;
	cursor: default;
}