/* hungwar - 21.10.2026 - new UI: header, homepage, account pages (includes/newui.inc.php) */
.hw3-ui {
	--hw3-brand: #4CAF50;
	--hw3-brand-dark: #388E3C;
	--hw3-brand-deep: #2E7D32;
	--hw3-brand-soft: #E8F5E9;
	--hw3-text: #1f2933;
	--hw3-muted: #6b7680;
	--hw3-line: #e3e8ec;
	--hw3-bg: #f2f5f7;
	--hw3-radius: 14px;
	background: var(--hw3-bg);
	color: var(--hw3-text);
	overflow-x: hidden;
}
.hw3-ui [hidden] { display: none !important; }
.hw3-wrap { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
/* full width band from inside the bootstrap .container */
.hw3-bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* ---------- header ---------- */
.hw3-header {
	position: sticky; top: 0; z-index: 1030;
	background: var(--hw3-brand); color: #fff;
	transition: background .2s, box-shadow .2s, color .2s;
}
.hw3-header.is-scrolled { background: #fff; color: var(--hw3-text); box-shadow: 0 2px 12px rgba(31, 41, 51, .10); }
.hw3-header-row { display: flex; align-items: center; gap: 14px; height: 72px; }
.hw3-logo { font-size: 24px; font-weight: 800; letter-spacing: -.5px; color: inherit !important; text-decoration: none !important; white-space: nowrap; }
.hw3-logo span { font-weight: 500; opacity: .8; }
.hw3-catbtn {
	display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; cursor: pointer;
	background: rgba(255, 255, 255, .16); color: inherit; font: inherit; font-weight: 600; padding: 9px 16px; white-space: nowrap;
}
.hw3-header.is-scrolled .hw3-catbtn { background: transparent; }
.hw3-catbtn[aria-expanded="true"] svg { transform: rotate(180deg); }
.hw3-search { position: relative; flex: 1; min-width: 0; margin: 0; }
.hw3-search input[type="text"] {
	width: 100%; height: 42px; border: 1px solid transparent; border-radius: 999px; outline: none;
	padding: 0 44px 0 46px; font-size: 15px; color: var(--hw3-text); background: #fff;
}
.hw3-header.is-scrolled .hw3-search input[type="text"] { border-color: #cfd8dc; }
.hw3-search input[type="text"]:focus { border-color: var(--hw3-brand-dark); box-shadow: 0 0 0 3px rgba(76, 175, 80, .25); }
.hw3-search-icon { position: absolute; left: 17px; top: 12px; color: var(--hw3-muted); pointer-events: none; }
/* search suggestions (suggestivesearch/suggest_v2.php) */
.hw3-sugg-box {
	position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1040; max-height: 70vh; overflow-y: auto;
	background: #fff; color: var(--hw3-text); border-radius: 14px; box-shadow: 0 14px 36px rgba(31, 41, 51, .22); padding: 8px;
}
.hw3-sugg-box.is-loading { opacity: .7; }
.hw3-sugg-head { padding: 6px 10px 8px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--hw3-muted); }
.hw3-sugg-item {
	display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px;
	color: var(--hw3-text) !important; text-decoration: none !important;
}
.hw3-sugg-item:hover, .hw3-sugg-item.is-active { background: var(--hw3-brand-soft); }
.hw3-sugg-img {
	width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center;
	border-radius: 8px; background: #f2f5f7; overflow: hidden;
}
.hw3-sugg-img img { width: 100%; height: 100%; object-fit: contain; }
.hw3-sugg-name { flex: 1; min-width: 0; font-size: 15px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw3-sugg-name mark { background: none; padding: 0; color: var(--hw3-brand-dark); font-weight: 700; }
.hw3-sugg-go { flex: none; color: #b0bec5; }
.hw3-sugg-item:hover .hw3-sugg-go, .hw3-sugg-item.is-active .hw3-sugg-go { color: var(--hw3-brand-dark); }
.hw3-sugg-none { padding: 14px 10px 8px; color: var(--hw3-muted); }
.hw3-sugg-all {
	display: block; margin-top: 6px; padding: 11px 10px; border-top: 1px solid var(--hw3-line); border-radius: 0 0 10px 10px;
	color: var(--hw3-brand-dark) !important; font-weight: 600; text-decoration: none !important;
}
.hw3-sugg-all:hover, .hw3-sugg-all.is-active { background: #f6f8f9; }
@media (max-width: 575px) {
	.hw3-sugg-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; }
	.hw3-sugg-img { width: 40px; height: 40px; }
}
.hw3-drop { position: relative; }
.hw3-pill {
	display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
	background: rgba(255, 255, 255, .16); color: inherit !important; font: inherit; font-weight: 600; white-space: nowrap; text-decoration: none !important;
}
.hw3-header.is-scrolled .hw3-pill { background: #eef1f3; }
.hw3-pill-light { background: #fff; color: var(--hw3-brand-dark) !important; }
.hw3-pill-solid { background: var(--hw3-brand-deep); color: #fff !important; }
.hw3-header.is-scrolled .hw3-pill-light { background: var(--hw3-brand); color: #fff !important; }
.hw3-header.is-scrolled .hw3-pill-solid { background: var(--hw3-brand-deep); }
.hw3-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; color: inherit !important; }
.hw3-badge {
	position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
	background: #e53935; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.hw3-avatar {
	width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); cursor: pointer;
	background: #1e88e5; color: #fff; font-weight: 700; font-size: 16px;
}
.hw3-menu {
	position: absolute; right: 0; top: calc(100% + 10px); z-index: 1040; width: 240px; max-height: calc(100vh - 100px); overflow-y: auto;
	background: #fff; color: var(--hw3-text); border-radius: 12px; box-shadow: 0 12px 34px rgba(31, 41, 51, .2); padding: 8px;
}
.hw3-menu-account { width: 320px; padding: 12px; }
.hw3-menu-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--hw3-muted); padding: 8px 10px 4px; }
.hw3-menu-item {
	display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 8px;
	color: var(--hw3-text) !important; text-decoration: none !important; font-size: 15px;
}
.hw3-menu-item:hover { background: #f2f5f7; }
.hw3-menu-sep { border-top: 1px solid var(--hw3-line); margin: 8px 0; }
.hw3-logout { color: #e53935 !important; }
.hw3-acc-head { padding: 6px 10px 12px; }
.hw3-acc-name { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.hw3-acc-meta { font-size: 13px; color: var(--hw3-muted); }
.hw3-acc-stat {
	display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; padding: 12px 14px;
	border-radius: 10px; background: #f2f5f7; color: var(--hw3-text) !important; text-decoration: none !important; font-size: 14px;
}
.hw3-acc-stat b { font-size: 15px; }
.hw3-acc-stat:hover { background: var(--hw3-brand-soft); }

/* category panel: the old menu bar laid out as columns */
.hw3-catpanel { background: #fff; color: var(--hw3-text); box-shadow: 0 12px 24px rgba(31, 41, 51, .12); max-height: 70vh; overflow-y: auto; }
.hw3-catpanel br { display: none; }
.hw3-catpanel .navbar { display: block; background: transparent !important; padding: 18px 0 22px; }
.hw3-catpanel .navbar-toggler, .hw3-catpanel .navbar-brand { display: none; }
.hw3-catpanel .navbar-collapse { display: block !important; }
.hw3-catpanel .navbar-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 28px; }
.hw3-catpanel .nav-link { color: var(--hw3-text) !important; font-weight: 700; padding: 4px 0 !important; }
.hw3-catpanel .dropdown-toggle::after { display: none; }
.hw3-catpanel .dropdown-menu {
	display: block; position: static; float: none; min-width: 0; margin: 0; padding: 0;
	border: 0; box-shadow: none; background: transparent;
}
.hw3-catpanel .dropdown-item { padding: 4px 0; color: var(--hw3-muted) !important; white-space: normal; background: transparent !important; }
.hw3-catpanel .dropdown-item:hover { color: var(--hw3-brand-dark) !important; }
.hw3-catpanel .text-white { color: var(--hw3-text) !important; }

/* ---------- homepage ---------- */
.hw3-hero { background: linear-gradient(135deg, #66BB6A 0%, var(--hw3-brand) 45%, var(--hw3-brand-dark) 100%); color: #fff; padding: 34px 0 40px; }
.hw3-hero-text { text-align: center; margin-bottom: 30px; }
.hw3-hero-1, .hw3-hero-2 { font-size: 40px; font-weight: 800; line-height: 1.05; letter-spacing: .5px; text-shadow: 0 3px 0 rgba(0, 0, 0, .12); }
.hw3-hero-2 { font-size: 30px; color: #FFEB3B; }
.hw3-hero-sub { margin: 12px 0 0; font-size: 16px; opacity: .92; }
.hw3-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 18px; }
.hw3-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff !important; text-decoration: none !important; }
.hw3-tile-img {
	display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
	background: #fff; border-radius: 18px; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); transition: transform .15s, box-shadow .15s;
}
.hw3-tile-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.hw3-tile:hover .hw3-tile-img { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, .24); }
.hw3-tile-name { font-size: 13px; font-weight: 600; text-align: center; line-height: 1.3; max-height: 2.6em; overflow: hidden; }
.hw3-trust { background: var(--hw3-brand-deep); color: #fff; }
.hw3-trust .hw3-wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 48px; padding-top: 10px; padding-bottom: 10px; }
.hw3-trust span { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }

.hw3-section { margin: 34px 0; }
.hw3-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hw3-h2 { font-size: 24px; font-weight: 700; margin: 0; }
.hw3-more { color: var(--hw3-brand-dark) !important; font-weight: 600; white-space: nowrap; }
.hw3-clear { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: #e53935; cursor: pointer; font: inherit; }
.hw3-recent-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.hw3-recent-item {
	position: relative; display: flex; align-items: center; gap: 14px; padding-right: 30px; overflow: hidden;
	background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(31, 41, 51, .06); color: var(--hw3-text) !important; text-decoration: none !important;
}
.hw3-recent-item img { width: 96px; height: 64px; object-fit: cover; flex: none; background: #f2f5f7; }
.hw3-recent-item span { font-weight: 600; font-size: 14px; line-height: 1.3; }
.hw3-recent-x {
	position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; border: 0; cursor: pointer;
	background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); font-size: 14px; line-height: 22px; padding: 0; color: var(--hw3-muted);
}
.hw3-promo { margin: 30px 0 0; border-radius: var(--hw3-radius); overflow: hidden; }
.hw3-promo:empty { display: none; }
.hw3-promo br { display: none; }
.hw3-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.hw3-card {
	display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 14px;
	background: #fff; border-radius: var(--hw3-radius); box-shadow: 0 2px 10px rgba(31, 41, 51, .06);
	color: var(--hw3-text) !important; text-decoration: none !important; transition: transform .15s, box-shadow .15s;
}
.hw3-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(31, 41, 51, .12); }
.hw3-card-img { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #f2f5f7; }
.hw3-card-img img { width: 100%; height: 100%; object-fit: cover; }
.hw3-card-name { font-size: 14px; font-weight: 600; line-height: 1.35; height: 2.7em; overflow: hidden; }
.hw3-card-price { font-weight: 700; color: var(--hw3-brand-dark); }
.hw3-card-price del { font-size: 12px; font-weight: 400; color: var(--hw3-muted); }
.hw3-card-price del:empty { display: none; }

/* ---------- account area ---------- */
.hw3-crumbs { background: #e9eef1; border-bottom: 1px solid #dde4e8; font-size: 13px; color: var(--hw3-muted); }
.hw3-crumbs .hw3-wrap { display: flex; align-items: center; gap: 10px; padding-top: 11px; padding-bottom: 11px; }
.hw3-crumbs a { color: var(--hw3-muted) !important; }
.hw3-crumb-sep { opacity: .6; }
.hw3-account { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; align-items: start; margin: 30px 0 40px; }
.hw3-acc-side { background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(31, 41, 51, .07); overflow: hidden; }
.hw3-acc-profile { text-align: center; padding: 26px 16px 20px; border-bottom: 1px solid var(--hw3-line); }
.hw3-acc-avatar {
	width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: var(--hw3-brand-soft); color: var(--hw3-brand-dark); font-size: 30px; font-weight: 700;
}
.hw3-acc-profile-name { display: block; color: var(--hw3-brand-dark) !important; font-weight: 600; margin-bottom: 8px; }
.hw3-acc-profile-meta { font-size: 13px; color: var(--hw3-muted); line-height: 1.6; }
.hw3-acc-nav a {
	display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid #eef1f3;
	color: var(--hw3-text) !important; text-decoration: none !important; font-size: 15px;
}
.hw3-acc-nav a:last-child { border-bottom: 0; }
.hw3-acc-nav a svg { color: var(--hw3-muted); flex: none; }
.hw3-acc-nav a:hover { background: #f6f8f9; }
.hw3-acc-nav a.is-active { color: var(--hw3-brand-dark) !important; font-weight: 600; box-shadow: inset 3px 0 0 var(--hw3-brand); }
.hw3-acc-nav a.is-active svg { color: var(--hw3-brand-dark); }
.hw3-acc-nav a.hw3-logout, .hw3-acc-nav a.hw3-logout svg { color: #e53935 !important; }
.hw3-acc-title {
	margin: 0 0 22px; font-size: 30px; font-weight: 800; text-transform: uppercase; letter-spacing: -.3px; color: #37474F;
	font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif; font-stretch: condensed;
}
.hw3-acc-subtitle { margin: -12px 0 22px; color: var(--hw3-muted); }
.hw3-acc-h2 {
	margin: 34px 0 14px; font-size: 22px; font-weight: 800; text-transform: uppercase; color: #37474F;
	font-family: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif; font-stretch: condensed;
}
.hw3-acc-legacy { background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(31, 41, 51, .07); padding: 22px 24px; overflow-x: auto; }
.hw3-acc-legacy > br:first-child { display: none; }
.hw3-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hw3-stat { background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(31, 41, 51, .07); overflow: hidden; }
.hw3-stat-head { background: #f2f5f7; border-bottom: 1px solid var(--hw3-line); padding: 16px 20px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #546E7A; }
.hw3-stat-body { padding: 26px 20px 28px; text-align: center; }
.hw3-stat-value { font-size: 30px; color: #37474F; margin-bottom: 14px; }
.hw3-stat-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.hw3-btn-pill {
	display: inline-block; min-width: 120px; padding: 7px 22px; border-radius: 999px; border: 2px solid var(--hw3-brand);
	background: var(--hw3-brand); color: #fff !important; text-decoration: none !important; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.hw3-btn-pill:hover { background: var(--hw3-brand-dark); border-color: var(--hw3-brand-dark); }
.hw3-btn-ghost { background: #fff; color: var(--hw3-brand-dark) !important; }
.hw3-btn-ghost:hover { background: var(--hw3-brand-soft); }
.hw3-help {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding: 22px 24px;
	border-radius: 6px; background: linear-gradient(100deg, #f1f8e9 0%, #e8f5e9 55%, #e0f2f1 100%); box-shadow: 0 2px 10px rgba(31, 41, 51, .06);
}
.hw3-help-title { font-size: 20px; font-weight: 800; color: #37474F; margin-bottom: 4px; font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-stretch: condensed; }
.hw3-btn-white {
	flex: none; padding: 9px 18px; border-radius: 999px; background: #fff; color: var(--hw3-text) !important; font-weight: 700;
	text-decoration: none !important; box-shadow: 0 2px 8px rgba(31, 41, 51, .1);
}
.hw3-table-card { background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(31, 41, 51, .07); overflow: hidden; }
.hw3-table { width: 100%; border-collapse: collapse; margin: 0; }
.hw3-table th {
	padding: 18px 18px; font-size: 12px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; color: #546E7A;
	border-bottom: 1px solid var(--hw3-line); text-align: left;
}
.hw3-table td { padding: 16px 18px; border-bottom: 1px solid #eef1f3; font-size: 15px; color: #37474F; }
.hw3-table tbody tr:last-child td { border-bottom: 0; }
.hw3-table tbody tr:hover td { background: #fafbfc; }
.hw3-table a { color: #1e88e5 !important; }
.hw3-right { text-align: right !important; }
.hw3-empty { text-align: center; color: var(--hw3-muted) !important; padding: 34px 18px !important; }
.hw3-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; background: #eceff1; color: #546E7A; }
.hw3-status-3 { background: var(--hw3-brand-soft); color: var(--hw3-brand-deep); }
.hw3-status-2, .hw3-status-1 { background: #FFF8E1; color: #F57F17; }
.hw3-status-6, .hw3-status-7 { background: #FFEBEE; color: #C62828; }
.hw3-table-foot {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
	padding: 16px 18px; background: #f2f5f7; border-top: 1px solid var(--hw3-line); font-size: 14px; color: var(--hw3-muted);
}
.hw3-table-foot-end { justify-content: flex-end; }
.hw3-btn-outline {
	padding: 6px 14px; border-radius: 999px; border: 1px solid #cfd8dc; background: #fff;
	color: var(--hw3-text) !important; text-decoration: none !important; font-size: 14px;
}
.hw3-btn-outline:hover { border-color: var(--hw3-brand); }
.hw3-pager { display: flex; align-items: center; gap: 6px; }
.hw3-pager a {
	min-width: 30px; height: 30px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid #dfe5e8; border-radius: 4px; background: #fff; color: var(--hw3-text) !important; text-decoration: none !important;
}
.hw3-pager a:hover { border-color: var(--hw3-brand); }
.hw3-pager a.is-current { background: #e0e6ea; border-color: #e0e6ea; font-weight: 700; }
.hw3-pager-gap { color: var(--hw3-muted); padding: 0 2px; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
	.hw3-header-row { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
	.hw3-search { order: 10; flex-basis: 100%; }
	.hw3-logo { margin-right: auto; }
	.hw3-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.hw3-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hw3-account { grid-template-columns: 1fr; gap: 22px; }
	.hw3-acc-profile { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; text-align: left; align-items: center; padding: 16px; }
	.hw3-acc-avatar { grid-row: span 3; margin: 0; width: 60px; height: 60px; font-size: 24px; }
	.hw3-acc-profile-name { margin-bottom: 2px; }
	.hw3-acc-nav { display: flex; overflow-x: auto; }
	.hw3-acc-nav a { flex: none; border-bottom: 0; border-right: 1px solid #eef1f3; padding: 12px 16px; white-space: nowrap; }
	.hw3-acc-nav a.is-active { box-shadow: inset 0 -3px 0 var(--hw3-brand); }
}
@media (max-width: 575px) {
	/* two rows: logo, language, cart, account / category, search */
	.hw3-header-row { display: grid; grid-template-columns: auto 1fr repeat(3, auto); column-gap: 8px; }
	.hw3-logo { grid-column: 1 / 3; font-size: 21px; }
	.hw3-catbtn { grid-row: 2; grid-column: 1; height: 42px; padding: 0 12px; }
	.hw3-search { grid-row: 2; grid-column: 2 / -1; }
	.hw3-pill { padding: 0 12px; }
	.hw3-drop .hw3-pill span { display: none; }
	.hw3-hide-sm { display: none !important; }
	.hw3-menu-account { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
	.hw3-hero { padding: 22px 0 26px; }
	.hw3-hero-1 { font-size: 28px; }
	.hw3-hero-2 { font-size: 22px; }
	.hw3-hero-sub { font-size: 14px; }
	.hw3-tiles { gap: 12px; }
	.hw3-tile-name { font-size: 12px; }
	.hw3-trust span { font-size: 14px; }
	.hw3-trust .hw3-wrap { gap: 8px 20px; }
	.hw3-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.hw3-h2 { font-size: 20px; }
	.hw3-stat-grid { grid-template-columns: 1fr; gap: 14px; }
	.hw3-acc-title { font-size: 24px; }
	.hw3-help { flex-direction: column; align-items: flex-start; }
	.hw3-table th, .hw3-table td { padding: 12px 10px; font-size: 13px; }
}

/* ---------- old page content inside the new UI (forms, buttons, notices, checkout, footer) ---------- */
.hw3-ui .btn { border-radius: 999px; font-weight: 600; padding: 9px 22px; border-width: 2px; }
.hw3-ui .btn-primary, .hw3-ui .btn-danger, .hw3-ui .btn-success {
	background: var(--hw3-brand); border-color: var(--hw3-brand); color: #fff !important;
}
.hw3-ui .btn-primary:hover, .hw3-ui .btn-danger:hover, .hw3-ui .btn-success:hover { background: var(--hw3-brand-dark); border-color: var(--hw3-brand-dark); }
.hw3-ui .form-control, .hw3-ui select, .hw3-ui textarea {
	border: 1px solid #cfd8dc; border-radius: 10px; min-height: 42px; padding: 8px 12px; font-size: 15px; background-color: #fff;
}
.hw3-ui .form-control:focus, .hw3-ui select:focus, .hw3-ui textarea:focus { outline: none; border-color: var(--hw3-brand-dark); box-shadow: 0 0 0 3px rgba(76, 175, 80, .2); }
.hw3-ui input[type="checkbox"], .hw3-ui input[type="radio"] { accent-color: var(--hw3-brand); width: 16px; height: 16px; vertical-align: middle; }
.hw3-ui a { color: #1e88e5; }
/* old yellow / blue notice boxes */
.hw3-ui .bg-warning.text-white, .hw3-ui .bg-warning {
	display: block !important; width: auto; max-width: none; margin: 0 0 16px; padding: 14px 18px !important; text-align: left !important;
	background: #FFF8E1 !important; color: #7a5b00 !important; border: 1px solid #FFE082; border-radius: 10px;
}
.hw3-ui .bg-warning h4, .hw3-ui .bg-warning h5 { font-size: 15px; font-weight: 600; margin: 0; line-height: 1.5; }
.hw3-ui .bg-primary.text-white { background: #E3F2FD !important; color: #0d47a1 !important; border-radius: 10px; }
.hw3-ui .text-danger { color: #c62828 !important; }

/* login / register / forgotten password */
.hw3-auth { display: flex; justify-content: center; padding: 34px 0 46px; }
.hw3-auth-card {
	width: 100%; max-width: 520px; background: #fff; border-radius: 16px; box-shadow: 0 6px 28px rgba(31, 41, 51, .10); padding: 30px 32px;
}
.hw3-auth-wide .hw3-auth-card { max-width: 1000px; }
.hw3-auth-card > br:first-child, .hw3-auth-card br[clear] { display: none; }
.hw3-auth-card h5 { font-size: 24px; font-weight: 800; margin: 0 0 8px; }
.hw3-auth-card table, .hw3-auth-card tbody, .hw3-auth-card tr, .hw3-auth-card td { display: block; width: 100% !important; text-align: left !important; }
.hw3-auth-card table { margin: 10px 0 0; }
.hw3-auth-card td { padding: 0 !important; }
.hw3-auth-card td[align="right"], .hw3-auth-card tr > td:first-child:not(:only-child) { font-weight: 600; font-size: 14px; color: #37474F; margin: 12px 0 6px; }
.hw3-auth-card tr:has(input[type="checkbox"]) { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 12px; }
.hw3-auth-card tr:has(input[type="checkbox"]) td { width: auto !important; margin: 0; font-weight: 400; }
.hw3-auth-card .form-control { width: 100% !important; }
/* register: bootstrap label / field columns stacked */
.hw3-auth-card form > .row { margin: 0; }
.hw3-auth-card form > .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; padding: 0; }
.hw3-auth-card form > .row > .col-sm-2 { font-weight: 600; font-size: 14px; color: #37474F; margin: 12px 0 6px; }
.hw3-auth-card form > .row > .col-sm-12 strong { display: block; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--hw3-line); font-size: 15px; }
.hw3-auth-card form > .row:first-child > .col-sm-12 strong { border-top: 0; padding-top: 0; margin-top: 8px; }
.hw3-auth-card .btn { width: 100%; padding: 12px; font-size: 16px; margin-top: 18px; }
.hw3-auth-card a .btn { margin-top: 10px; }
.hw3-auth-card td > a { display: inline-block; margin-top: 12px; }
.hw3-auth-wide .row { row-gap: 26px; }
.hw3-auth-wide .col-sm-4 + .col-sm-4 { border-left: 1px solid var(--hw3-line); }
.hw3-auth-wide .col-sm-4 > p:first-child, .hw3-auth-wide .col-sm-4 > strong:first-child { display: block; font-size: 18px; font-weight: 800; margin-bottom: 8px; }

/* checkout */
.hw3-checkout { margin: 26px 0 40px; }
.hw3-checkout .progress, .hw3-checkout > br, .hw3-checkout .container > br { display: none; }
.hw3-checkout .container { max-width: none; width: auto; padding: 0; }
.hw3-steps { display: flex; list-style: none; margin: 0 0 24px; padding: 0; counter-reset: none; }
.hw3-steps li { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--hw3-muted); font-weight: 600; position: relative; }
.hw3-steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: #d5dde1; margin: 0 12px; }
.hw3-steps li.is-done:not(:last-child)::after { background: var(--hw3-brand); }
.hw3-step-no {
	width: 32px; height: 32px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: #e3e8ec; color: var(--hw3-muted); font-weight: 700;
}
.hw3-steps li.is-done .hw3-step-no { background: var(--hw3-brand-soft); color: var(--hw3-brand-dark); }
.hw3-steps li.is-current { color: var(--hw3-text); }
.hw3-steps li.is-current .hw3-step-no { background: var(--hw3-brand); color: #fff; box-shadow: 0 0 0 4px rgba(76, 175, 80, .2); }
.hw3-checkout form, .hw3-checkout .hw3-auth-card { background: #fff; border-radius: var(--hw3-radius); box-shadow: 0 2px 12px rgba(31, 41, 51, .07); padding: 22px 24px; }
.hw3-checkout .hw3-auth { padding: 0; }
.hw3-checkout .hw3-auth-card form { box-shadow: none; padding: 0; }
.hw3-checkout .table { margin: 0; }
.hw3-checkout .table td, .hw3-checkout .table th { border-top: 1px solid #eef1f3; vertical-align: middle; padding: 14px 10px; }
.hw3-checkout .table tr:first-child td { border-top: 0; color: #546E7A; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.hw3-checkout .table p { margin: 0; }
.hw3-checkout .table img.img-fluid { border-radius: 8px; box-shadow: 0 2px 8px rgba(31, 41, 51, .12); }
.hw3-checkout input[name^="quan["] { width: 54px; height: 38px; border: 1px solid #cfd8dc; border-radius: 8px; }
.hw3-checkout .table + .table { width: auto !important; margin-left: auto; min-width: 320px; }
.hw3-checkout .table + .table td { border-top: 0; padding: 6px 10px; text-transform: none !important; letter-spacing: 0 !important; font-size: 15px !important; color: var(--hw3-text) !important; }
.hw3-checkout .table + .table tr:first-child td { font-size: 18px !important; }
.hw3-checkout form > .row { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--hw3-line); align-items: center; }
.hw3-checkout form[name="cart"] .btn-primary, .hw3-auth-wide .col-sm-4 + .col-sm-4 .btn-primary { background: #fff; color: var(--hw3-brand-dark) !important; }
.hw3-checkout form[name="cart"] .btn-primary:hover, .hw3-auth-wide .col-sm-4 + .col-sm-4 .btn-primary:hover { background: var(--hw3-brand-soft); color: var(--hw3-brand-dark) !important; }
.hw3-checkout .btn-danger { padding: 12px 34px; font-size: 16px; }
/* payment step: groups hidden by gateway.inc.php (cartProgress-ab-none) and empty group titles stay hidden */
.hw3-checkout .cartProgress-ab-none, .hw3-checkout .submenuheader:empty { display: none !important; }
.hw3-checkout form[name="gateway"] center > table { margin: 0 0 6px; min-width: 360px; }
.hw3-checkout form[name="gateway"] center > table td { padding: 5px 8px; }
.hw3-checkout form[name="gateway"] font[color="red"] { color: var(--hw3-text) !important; }
.hw3-checkout form[name="gateway"] font[color="red"] p { font-size: 18px; margin: 14px 0 12px; }
.hw3-checkout .submenuheader {
	display: flex !important; align-items: center; justify-content: space-between; cursor: pointer;
	background: #f2f5f7 !important; color: var(--hw3-text) !important; border: 1px solid var(--hw3-line); border-radius: 12px;
	padding: 14px 18px !important; font-weight: 700; margin: 0 !important; text-decoration: none !important;
}
.hw3-checkout .submenuheader::after { content: "\203A"; font-size: 22px; line-height: 1; color: var(--hw3-muted); transform: rotate(90deg); }
.hw3-checkout .submenuheader:hover { border-color: var(--hw3-brand); }
.hw3-checkout .submenu { padding: 8px 4px 4px; }
.hw3-checkout .submenu > br { display: none; }
.hw3-checkout .hw-checkout-td, .hw3-checkout .hw-checkout-td-2 {
	display: inline-block; vertical-align: top; width: 180px; margin: 8px; padding: 12px; text-align: center;
	border: 2px solid var(--hw3-line); border-radius: 12px; background: #fff; font-size: 13px;
}
.hw3-checkout .hw-checkout-td:has(input:checked), .hw3-checkout .hw-checkout-td-2:has(input:checked) { border-color: var(--hw3-brand); box-shadow: 0 4px 14px rgba(76, 175, 80, .2); }
.hw3-checkout .hw-checkout-td > br, .hw3-checkout .hw-checkout-td-2 > br:first-child { display: none; }
.hw3-checkout .hw-checkout-td img, .hw3-checkout .hw-checkout-td-2 img { max-width: 100%; height: auto; object-fit: contain; }
.hw3-checkout textarea { width: 100%; }

/* account pages with old content */
.hw3-acc-legacy > p:first-child { margin-top: 0; }
.hw3-acc-legacy table:not(.table) td { padding: 6px 8px; vertical-align: middle; }
.hw3-acc-legacy table:not(.table) td[align="right"] { font-weight: 600; color: #37474F; }
.hw3-acc-legacy .table td, .hw3-acc-legacy .table th { border-top: 1px solid #eef1f3; vertical-align: middle; }
.hw3-acc-legacy > strong:first-child, .hw3-acc-legacy > br:first-child + strong { display: block; font-size: 17px; margin-bottom: 12px; }

/* footer */
.hw3-footer { clear: both; margin-top: 40px; background: var(--hw3-brand-deep); color: rgba(255, 255, 255, .88); padding: 26px 0 30px; font-size: 13px; }
.hw3-footer p { margin: 0 0 12px; }
.hw3-footer p:first-child { display: flex; align-items: flex-start; gap: 8px; }
.hw3-footer p:first-child img { width: 20px; height: 20px; border-radius: 50%; background: #fff; flex: none; }
.hw3-footer .bx-wrapper { background: #fff; border-radius: 12px; border: 0; box-shadow: none; margin-bottom: 18px !important; padding: 6px 10px; }
.hw3-footer a { color: #fff !important; font-weight: 600; }
.hw3-footer .text-center { font-size: 14px; line-height: 1.9; }
.hw3-footer small { font-size: 12.5px; opacity: .85; }

@media (max-width: 575px) {
	.hw3-auth { padding: 18px 0 30px; }
	.hw3-auth-card { padding: 22px 18px; border-radius: 12px; }
	.hw3-auth-wide .col-sm-4 + .col-sm-4 { border-left: 0; border-top: 1px solid var(--hw3-line); padding-top: 20px; }
	.hw3-steps .hw3-step-name { display: none; }
	.hw3-steps li.is-current .hw3-step-name { display: inline; }
	.hw3-checkout form { padding: 16px 12px; }
	.hw3-checkout .table + .table { min-width: 0; width: 100% !important; }
	.hw3-checkout .hw-checkout-td, .hw3-checkout .hw-checkout-td-2 { width: calc(50% - 16px); }
	.hw3-checkout form[name="gateway"] center > table { min-width: 0; }
}
.hw3-auth-card form > .row input[type="checkbox"] { margin-left: 8px; }
.hw3-auth-card form > .row > .col-sm-6 { margin-top: 10px; }
.hw3-auth-card form > .row > .col-sm-6 select { margin-left: 8px; min-height: 36px; padding: 4px 8px; }
.hw3-step-name { white-space: nowrap; }
.hw3-acc-legacy select { min-width: 180px; max-width: 100%; }

/* bank transfer / e-wallet page of the gateways (includes/orderForm_v2.inc.php) */
.hw3-pay { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.hw3-pay-title { font-size: 28px; font-weight: 800; margin: 0 0 6px; }
.hw3-pay-sub { color: var(--hw3-muted); margin: 0 0 20px; }
.hw3-pay-card { background: #fff; border-radius: var(--hw3-radius); box-shadow: 0 2px 12px rgba(31, 41, 51, .07); padding: 22px 24px; margin-bottom: 20px; }
.hw3-pay-h2 { font-size: 18px; font-weight: 700; margin: 0 0 14px; }
.hw3-pay-rows { margin: 0; }
.hw3-pay-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #eef1f3; }
.hw3-pay-row dt { font-weight: 400; color: var(--hw3-muted); flex: none; width: 190px; }
.hw3-pay-row dd { margin: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; text-align: right; font-weight: 700; font-size: 16px; }
.hw3-pay-ref { margin-top: 10px; padding: 14px 16px; border: 2px dashed var(--hw3-brand); border-bottom-width: 2px; border-radius: 12px; background: var(--hw3-brand-soft); }
.hw3-pay-ref dt { color: var(--hw3-brand-deep); font-weight: 700; }
.hw3-pay-ref dd { font-size: 22px; color: #c62828; letter-spacing: .5px; }
.hw3-pay-tip { margin: 12px 0 0; font-size: 13px; color: var(--hw3-muted); }
.hw3-copy {
	border: 1px solid #cfd8dc; background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600;
	color: var(--hw3-brand-dark); cursor: pointer; letter-spacing: 0;
}
.hw3-copy:hover { border-color: var(--hw3-brand); }
.hw3-copy.is-copied { background: var(--hw3-brand); border-color: var(--hw3-brand); color: #fff; }
/* the gateway's own instructions: old bootstrap rows and red fonts tidied up */
.hw3-pay-guide-body { overflow-wrap: anywhere; }
.hw3-pay-guide-body .container { padding: 0; max-width: none; width: auto; }
.hw3-pay-guide-body .row { margin: 0; padding: 4px 0; }
.hw3-pay-guide-body .row > [class*="col-"] { padding: 2px 8px 2px 0; }
.hw3-pay-guide-body .row > .col-sm-3, .hw3-pay-guide-body .row > .col-sm-6:first-child { color: var(--hw3-muted); }
.hw3-pay-guide-body font[size="+2"] { font-size: 18px; color: var(--hw3-text) !important; display: block; margin-top: 10px; }
.hw3-pay-guide-body img { max-width: 100%; height: auto; border-radius: 10px; }
.hw3-pay-guide-body p { margin-bottom: 8px; }
.hw3-pay-guide-body h4, .hw3-pay-guide-body h5 { font-size: 16px; margin: 6px 0; }
.hw3-pay-side { position: sticky; top: 90px; }
.hw3-pay-order { font-size: 15px; color: var(--hw3-muted); }
.hw3-pay-order b { color: var(--hw3-text); font-size: 18px; }
.hw3-pay-date { font-size: 13px; color: var(--hw3-muted); margin: 4px 0 14px; }
.hw3-pay-items { list-style: none; margin: 0; padding: 12px 0; border-top: 1px solid #eef1f3; border-bottom: 1px solid #eef1f3; }
.hw3-pay-items li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.hw3-pay-items em { font-style: normal; color: var(--hw3-muted); white-space: nowrap; }
.hw3-pay-items b { white-space: nowrap; }
.hw3-pay-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 16px; font-weight: 700; }
.hw3-pay-total b { font-size: 24px; font-weight: 800; }
.hw3-pay-btn { display: block; text-align: center; padding: 11px 18px; font-size: 14px; margin-top: 10px; }
/* footer without the logo slider script */
.hw3-footer ul#slider-logo-payment:not([style]) {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; list-style: none; margin: 0 0 18px; padding: 12px; background: #fff; border-radius: 12px;
}
.hw3-footer ul#slider-logo-payment:not([style]) img { height: 30px; width: auto; }
@media (max-width: 991px) {
	/* one column: title, transfer details, order summary, then the guide */
	.hw3-pay { grid-template-columns: 1fr; gap: 0; }
	.hw3-pay-main { display: contents; }
	.hw3-pay-title { order: 1; }
	.hw3-pay-sub { order: 2; }
	.hw3-pay-main > .hw3-pay-card:not(.hw3-pay-guide) { order: 3; }
	.hw3-pay-side { position: static; order: 4; }
	.hw3-pay-guide { order: 5; }
}
@media (max-width: 575px) {
	.hw3-pay-title { font-size: 22px; }
	.hw3-pay-card { padding: 16px; }
	.hw3-pay-row { flex-direction: column; align-items: flex-start; gap: 4px; }
	.hw3-pay-row dt { width: auto; }
	.hw3-pay-row dd { justify-content: flex-start; text-align: left; }
}
