/* hungwar - 21.10.2026 - category page v2 */
.hw2-page {
	--hw2-brand: #4CAF50;
	--hw2-brand-dark: #388E3C;
	--hw2-brand-soft: #E8F5E9;
	--hw2-text: #1f2933;
	--hw2-muted: #6b7680;
	--hw2-line: #e3e8ec;
	--hw2-radius: 14px;
	color: var(--hw2-text);
	background: linear-gradient(160deg, #eef7ef 0%, #f4f7fa 45%, #f7f7f7 100%);
	border-radius: var(--hw2-radius);
	padding: 18px 18px 28px;
	margin: 12px 0 24px;
}
.hw2-page [hidden] { display: none !important; }
.hw2-breadcrumb { font-size: 14px; color: var(--hw2-muted); margin-bottom: 16px; }
.hw2-breadcrumb a { color: var(--hw2-text); }

.hw2-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }

.hw2-head { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.hw2-img {
	width: 168px; height: 168px; object-fit: contain; flex: none;
	background: #fff; border-radius: var(--hw2-radius);
	box-shadow: 0 6px 20px rgba(31, 41, 51, .10); padding: 8px;
}
.hw2-title { font-size: 26px; font-weight: 700; margin: 0 0 12px; line-height: 1.25; }
.hw2-region { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hw2-region label { margin: 0; font-weight: 600; color: var(--hw2-muted); }
.hw2-pill {
	appearance: none; -webkit-appearance: none;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231f2933' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
	border: 1px solid var(--hw2-line); border-radius: 999px;
	padding: 9px 40px 9px 16px; font-size: 15px; box-shadow: 0 2px 8px rgba(31, 41, 51, .08); cursor: pointer;
}
.hw2-dd { position: relative; }
.hw2-dd-toggle { min-width: 170px; text-align: left; color: var(--hw2-text); font: inherit; }
.hw2-dd-menu {
	position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; width: 260px;
	background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(31, 41, 51, .18); overflow: hidden;
}
.hw2-dd-filter {
	width: 100%; border: 0; border-bottom: 1px solid var(--hw2-line); padding: 12px 14px 12px 38px; font-size: 15px; outline: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='7' cy='7' r='5.5' stroke='%236b7680' stroke-width='2' fill='none'/%3E%3Cpath d='M11 11l4 4' stroke='%236b7680' stroke-width='2'/%3E%3C/svg%3E") no-repeat 13px center;
}
.hw2-dd-list { list-style: none; margin: 0; padding: 6px 0; max-height: 260px; overflow-y: auto; }
.hw2-dd-list li { padding: 10px 16px; cursor: pointer; }
.hw2-dd-list li:hover { background: #f4f7fa; }
.hw2-dd-list li.is-active { background: var(--hw2-brand-soft); color: var(--hw2-brand-dark); font-weight: 600; }
.hw2-tip {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	background: #37474F; color: #fff; font-size: 13px; border-radius: 10px; padding: 8px 12px;
}
.hw2-tip-hide { background: transparent; color: #fff; border: 1px solid #fff; border-radius: 6px; padding: 3px 8px; font-size: 12px; cursor: pointer; }

.hw2-tab {
	display: inline-block; background: #fff; color: var(--hw2-brand-dark); font-weight: 700;
	padding: 12px 28px; border-radius: var(--hw2-radius) var(--hw2-radius) 0 0;
}
.hw2-panel { background: #fff; border-radius: var(--hw2-radius); padding: 20px 22px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(31, 41, 51, .05); }
.hw2-panel-tabbed { border-top-left-radius: 0; }
.hw2-h2 { font-size: 18px; font-weight: 700; margin: 0 0 14px; }

.hw2-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hw2-card {
	display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
	background: linear-gradient(180deg, var(--hw2-brand-soft) 0%, #fff 70%);
	border: 2px solid var(--hw2-line); border-radius: 12px; padding: 14px; cursor: pointer;
	transition: border-color .15s, box-shadow .15s, transform .15s; font: inherit; color: inherit;
}
.hw2-card:hover:not([disabled]) { border-color: #a5d6a7; }
.hw2-card.is-selected { border-color: var(--hw2-brand); box-shadow: 0 6px 16px rgba(76, 175, 80, .25); transform: translateY(-2px); }
.hw2-card[disabled] { opacity: .5; cursor: not-allowed; }
.hw2-card-title { font-size: 16px; font-weight: 600; }
.hw2-card-price { font-size: 15px; font-weight: 700; color: var(--hw2-brand-dark); }
.hw2-card-sub { font-size: 12px; color: var(--hw2-muted); line-height: 1.3; margin-top: -4px; }
.hw2-card-stock { font-size: 12px; color: #d32f2f; }
.hw2-card-stock:empty { display: none; }
/* categories without options: products as cards */
.hw2-grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hw2-grid-products .hw2-card-title { font-size: 14px; line-height: 1.35; }
.hw2-card-img { width: 100%; height: 110px; object-fit: contain; background: #fff; border-radius: 8px; }
.hw2-note { color: var(--hw2-muted); margin: 0; }
.hw2-desc { overflow-wrap: anywhere; }
.hw2-desc img { max-width: 100%; height: auto; }
.hw2-desc:empty { display: none; }

.hw2-side { position: sticky; top: 80px; }
.hw2-box { background: #fff; border-radius: var(--hw2-radius); padding: 20px; box-shadow: 0 6px 24px rgba(31, 41, 51, .10); }
.hw2-qty {
	display: flex; align-items: center; justify-content: space-between; margin: 0 auto 18px; max-width: 190px;
	border-radius: 999px; padding: 4px; box-shadow: 0 2px 10px rgba(31, 41, 51, .12);
}
.hw2-qty-btn {
	width: 40px; height: 40px; border-radius: 50%; border: 0; font-size: 22px; line-height: 1; cursor: pointer;
	background: var(--hw2-brand); color: #fff;
}
.hw2-qty input { width: 64px; border: 0; text-align: center; font-size: 18px; -moz-appearance: textfield; }
.hw2-qty input::-webkit-outer-spin-button, .hw2-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hw2-total-label { font-weight: 700; }
.hw2-total { font-size: 28px; font-weight: 800; text-align: right; margin: 2px 0 4px; }
.hw2-hint { font-size: 13px; color: var(--hw2-muted); text-align: right; margin-bottom: 8px; }
.hw2-btn {
	display: block; width: 100%; border-radius: 10px; padding: 12px; font-size: 16px; font-weight: 700;
	cursor: pointer; margin-top: 10px; border: 2px solid var(--hw2-brand);
}
.hw2-btn-buy { background: var(--hw2-brand); color: #fff; }
.hw2-btn-buy:hover:not([disabled]) { background: var(--hw2-brand-dark); border-color: var(--hw2-brand-dark); }
.hw2-btn-add { background: #fff; color: var(--hw2-brand-dark); }
.hw2-btn[disabled] { background: #eceff1; border-color: #eceff1; color: #9aa5ad; cursor: not-allowed; }
.hw2-divider { border-top: 2px dashed var(--hw2-line); margin: 18px 0 14px; }
.hw2-info-title { font-weight: 700; margin-bottom: 8px; }
.hw2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hw2-chip { border: 1px solid var(--hw2-line); border-radius: 999px; padding: 4px 10px; font-size: 13px; background: #fff; }

@media (max-width: 991px) {
	/* one column: order box right after the denominations, overview last */
	.hw2-layout { grid-template-columns: 1fr; gap: 0; }
	.hw2-main { display: contents; }
	.hw2-head { order: 1; }
	.hw2-tab { order: 2; justify-self: start; }
	.hw2-panel-tabbed { order: 3; }
	.hw2-side { order: 4; position: static; margin-bottom: 20px; }
	.hw2-panel-overview { order: 5; }
	.hw2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
	.hw2-page { padding: 12px 12px 20px; border-radius: 0; margin: 0 -15px 16px; }
	.hw2-head { flex-direction: column; align-items: flex-start; }
	.hw2-img { width: 120px; height: 120px; }
	.hw2-title { font-size: 22px; }
	.hw2-panel { padding: 16px; }
	.hw2-grid { gap: 10px; }
	.hw2-grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hw2-card { padding: 12px; }
	.hw2-card-img { height: 80px; }
}
