/* sportstore.gr - header: dropdown λογαριασμού + mini-cart + εικονίδια στο κινητό
   (includes/sts_page_top.php, js/gov_header.js). Οι κανόνες έχουν το πρόθεμα .header_middle .ga-hdr
   ώστε να υπερισχύουν των παλιών .user_profile κανόνων του style.css / responsive.css. */

.header_middle .ga-hdr ul li.ga-dd {
	position: relative;
}

/* ---------- panel ---------- */
.header_middle .ga-hdr .ga-dd-panel {
	position: absolute;
	top: calc(100% + 14px);
	right: -14px;
	z-index: 1000;
	width: 270px;
	padding: 8px 0;
	text-align: left;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 14px 34px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .08);
	font-family: 'Fira Sans', sans-serif;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.header_middle .ga-hdr .ga-dd-cart .ga-dd-panel {
	width: 360px;
}
/* γέφυρα ώστε το hover να μη χάνεται στο κενό ανάμεσα στο εικονίδιο και το panel */
.header_middle .ga-hdr .ga-dd-panel:before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: -16px;
	height: 16px;
}
/* βελάκι */
.header_middle .ga-hdr .ga-dd-panel:after {
	content: '';
	position: absolute;
	top: -6px;
	right: 32px;
	width: 12px;
	height: 12px;
	background: #fff;
	transform: rotate(45deg);
	box-shadow: -2px -2px 4px rgba(15, 23, 42, .05);
}
.header_middle .ga-hdr .ga-dd.is-open > .ga-dd-panel {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
@media (hover: hover) and (min-width: 970px) {
	.header_middle .ga-hdr .ga-dd:hover > .ga-dd-panel,
	.header_middle .ga-hdr .ga-dd:focus-within > .ga-dd-panel {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity .18s ease, transform .18s ease, visibility 0s;
	}
}

/* ---------- περιεχόμενο ---------- */
.header_middle .ga-hdr .ga-dd-head {
	padding: 10px 18px 10px;
	font-size: 15px;
	color: #222;
	border-bottom: 1px solid #eef0f4;
	margin-bottom: 6px;
}
.header_middle .ga-hdr .ga-dd-head strong {
	font-weight: 600;
}
.header_middle .ga-hdr .ga-dd-head .ga-mc-count {
	display: inline;
	margin: 0;
	font-size: 13px;
	color: #8a8f99;
	text-align: left;
}
.header_middle .ga-hdr .ga-dd-text {
	margin: 4px 18px 10px;
	font-size: 13px;
	line-height: 1.45;
	color: #666;
}
.header_middle .ga-hdr .ga-dd-panel > a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 18px;
	font-size: 14.5px;
	line-height: 1.3;
	color: #222;
	text-decoration: none;
	transition: background .12s ease, color .12s ease;
}
.header_middle .ga-hdr .ga-dd-panel > a .fa {
	width: 18px;
	text-align: center;
	font-size: 16px;
	color: #0a5a9f;
}
.header_middle .ga-hdr .ga-dd-panel > a:hover,
.header_middle .ga-hdr .ga-dd-panel > a:focus {
	background: #f2f6fb;
	color: #0a5a9f;
	outline: none;
}
.header_middle .ga-hdr .ga-dd-panel > a > span.ga-dd-badge,
header.sticky .header_middle .ga-hdr .ga-dd-panel > a > span.ga-dd-badge {
	display: inline-block;
	margin: 0 0 0 auto;
	min-width: 22px;
	padding: 0 7px;
	font-size: 12px;
	line-height: 20px;
	text-align: center;
	color: #fff;
	background: #0a5a9f;
	border-radius: 10px;
}
.header_middle .ga-hdr .ga-dd-sep {
	height: 1px;
	margin: 6px 0;
	background: #eef0f4;
}
.header_middle .ga-hdr .ga-dd-panel > a.ga-dd-logout,
.header_middle .ga-hdr .ga-dd-panel > a.ga-dd-logout .fa {
	color: #c0392b;
}
.header_middle .ga-hdr .ga-dd-panel > a.ga-dd-logout:hover {
	background: #fdf1f0;
}

/* κουμπιά */
.header_middle .ga-hdr .ga-dd-actions {
	display: flex;
	gap: 8px;
	padding: 8px 18px 10px;
}
.header_middle .ga-hdr .ga-dd-actions a.ga-dd-btn {
	flex: 1 1 0;
	display: block;
	padding: 10px 8px;
	font-size: 14px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: #0a5a9f;
	background: #fff;
	border: 1px solid #0a5a9f;
	border-radius: 6px;
	transition: background .12s ease, color .12s ease;
}
.header_middle .ga-hdr .ga-dd-actions a.ga-dd-btn:hover {
	background: #f2f6fb;
}
.header_middle .ga-hdr .ga-dd-actions a.ga-dd-btn-primary {
	color: #fff;
	background: #0077b3;
	border-color: #0077b3;
}
.header_middle .ga-hdr .ga-dd-actions a.ga-dd-btn-primary:hover {
	background: #0a5a9f;
	border-color: #0a5a9f;
}

/* ---------- mini-cart ---------- */
.header_middle .ga-hdr ul.ga-mc-list {
	display: block;
	float: none;
	max-height: 300px;
	overflow-y: auto;
	margin: 0;
	padding: 0 6px;
	list-style: none;
	text-align: left;
}
.header_middle .ga-hdr ul.ga-mc-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 8px 12px;
	border-radius: 8px;
}
.header_middle .ga-hdr ul.ga-mc-list li:hover {
	background: #f7f9fc;
}
.header_middle .ga-hdr ul.ga-mc-list li a.ga-mc-img {
	flex: 0 0 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	background: #fff;
	border: 1px solid #eef0f4;
	border-radius: 6px;
	overflow: hidden;
}
.header_middle .ga-hdr ul.ga-mc-list li a.ga-mc-img img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	-webkit-filter: none;
	filter: none;
}
.header_middle .ga-hdr .ga-mc-info {
	flex: 1 1 auto;
	min-width: 0;
}
.header_middle .ga-hdr .ga-mc-info a.ga-mc-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13.5px;
	line-height: 1.3;
	color: #222;
	text-decoration: none;
}
.header_middle .ga-hdr .ga-mc-info a.ga-mc-name:hover {
	color: #0a5a9f;
}
.header_middle .ga-hdr .ga-mc-info .ga-mc-meta,
header.sticky .header_middle .ga-hdr .ga-mc-info .ga-mc-meta {
	display: block;
	margin: 3px 0 0;
	font-size: 12.5px;
	color: #8a8f99;
	text-align: left;
}
.header_middle .ga-hdr .ga-mc-price {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 600;
	color: #0a5a9f;
	white-space: nowrap;
}
.header_middle .ga-hdr .ga-mc-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 6px 0 0;
	padding: 12px 18px 4px;
	border-top: 1px solid #eef0f4;
	font-size: 15px;
	color: #222;
}
.header_middle .ga-hdr .ga-mc-total strong {
	font-size: 18px;
	font-weight: 600;
	color: #0a5a9f;
}
.header_middle .ga-hdr .ga-mc-empty {
	padding: 22px 18px;
	text-align: center;
	font-size: 14px;
	color: #8a8f99;
}
.header_middle .ga-hdr .ga-mc-empty .fa {
	display: block;
	margin: 0 0 8px;
	font-size: 30px;
	color: #c9ced8;
}

/* ---------- κινητό / tablet: εικονίδια δίπλα στην αναζήτηση (όχι στο burger) ---------- */
@media only screen and (max-width: 969px) {
	.header_middle .header_mid_in {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		column-gap: 14px;
	}
	.header_middle .header_mid_in > .clear {
		display: none;
	}
	.header_middle .header_mid_in > .logo {
		order: 1;
		float: none;
		flex: 0 0 36%;
		width: auto;
	}
	.header_middle .header_mid_in > .search_box {
		order: 2;
		float: none;
		flex: 1 1 0;
		width: auto;
		min-width: 0;
		margin: 0 !important;
	}
	.header_middle .header_mid_in > .user_profile.ga-hdr {
		order: 3;
		display: block;
		float: none;
		width: auto;
		padding: 0;
	}
	.header_middle .header_mid_in > .menu_icon {
		order: 4;
		float: none;
		padding: 0 !important;
		margin-left: 12px;   /* αέρας από το badge του καλαθιού */
	}
	header.sticky .header_middle .header_mid_in > .menu_icon {
		margin-left: 8px;
	}
	.header_middle .ga-hdr > ul {
		display: flex;
		align-items: center;
		float: none;
		margin: 0;
		padding: 0;
		text-align: left;
	}
	.header_middle .ga-hdr > ul > li {
		display: block;
		padding: 0 0 0 12px;
	}
	.header_middle .ga-hdr > ul > li:first-child {
		padding-left: 0;
	}
	.header_middle .ga-hdr > ul > li > a {
		display: block;
		position: relative;
	}
	.header_middle .ga-hdr > ul > li > a > img {
		display: block;
		width: auto;
		height: 34px;
		max-width: none;
		-webkit-filter: none;
		filter: none;
	}
	.header_middle .ga-hdr > ul > li > a > span {
		display: none;
	}
	.header_middle .ga-hdr > ul > li > a .topcart_count.active {
		top: -6px;
		right: -10px;
	}
	.header_middle .ga-hdr > ul > li.ga-hdr-wallet {
		display: none;
	}
	/* panel σε όλο το πλάτος (το top το ορίζει το js/gov_header.js) */
	.header_middle .ga-hdr .ga-dd-panel,
	.header_middle .ga-hdr .ga-dd-cart .ga-dd-panel {
		position: fixed;
		top: 120px;
		left: 10px;
		right: 10px;
		width: auto;
		max-height: 75vh;
		overflow-y: auto;
	}
	.header_middle .ga-hdr .ga-dd-panel:after,
	.header_middle .ga-hdr .ga-dd-panel:before {
		display: none;
	}
	.header_middle .ga-hdr ul.ga-mc-list {
		max-height: none;
	}
	/* sticky header (μπλε): λευκά εικονίδια */
	header.sticky .header_middle .header_mid_in {
		column-gap: 10px;
	}
	header.sticky .header_middle .container {
		padding-left: 0;
	}
	header.sticky .header_middle .ga-hdr > ul > li {
		padding-left: 10px;
	}
	header.sticky .header_middle .ga-hdr > ul > li:first-child {
		padding-left: 0;
	}
	header.sticky .header_middle .ga-hdr > ul > li > a > img {
		height: 24px;
		-webkit-filter: brightness(0) invert(1);
		filter: brightness(0) invert(1);
	}
	header.sticky .header_middle .header_mid_in > .user_profile.ga-hdr {
		display: block;
	}
}
@media only screen and (max-width: 399px) {
	/* sticky header σε στενές οθόνες: χώρος για τηλέφωνο + εικονίδια σε μία γραμμή */
	header.sticky .header_top_cent ul li.phone img {
		display: none;
	}
}
@media only screen and (max-width: 599px) {
	.header_middle .header_mid_in > .logo {
		flex: 0 0 100%;
	}
	.header_middle .ga-hdr > ul > li > a > img {
		height: 30px;
	}
	.header_middle .header_mid_in {
		column-gap: 12px;
	}
}