/* Site header v2 — header.php, inc/header-v2.php. Loaded after main.css. */

#masthead.dtf-hd, #dtf-mobile-menu {
	--hd-red: #d92b20;
	--hd-red-dark: #b8221a;
	--hd-red-soft: #fdf1f0;
	--hd-ink: #141414;
	--hd-muted: #6b6b6b;
	--hd-line: #ece9e5;
	--hd-soft: #f6f5f3;
	background: #fff !important;
	box-shadow: 0 1px 0 var(--hd-line) !important;
	color: var(--hd-ink);
	padding: 0;
}
#masthead.dtf-hd.dtf-header--scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.07) !important; }
.dtf-hd *, .dtf-hd *::before, .dtf-hd *::after { box-sizing: border-box; }
.dtf-hd svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.dtf-hd a { text-decoration: none; }
.dtf-hd__wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------- top bar */
.dtf-hd__top { background: #141414 !important; color: #fff; font-size: 14px; font-weight: 700; }
.dtf-hd__topin { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; }
.dtf-hd__usps { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; align-items: center; }
.dtf-hd__usps li, .dtf-hd__usps a { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; white-space: nowrap; }
.dtf-hd__usps svg, .dtf-hd__contact svg, .dtf-hd__usp-m svg { color: var(--hd-red); width: 16px; height: 16px; }
.dtf-hd__stars { color: #f5b301; letter-spacing: 1px; font-size: 15px; }
.dtf-hd__usp-m { display: none; margin: 0; align-items: center; justify-content: center; gap: 8px; width: 100%; font-size: 13px; }
.dtf-hd__contact { display: flex; align-items: center; gap: 22px; }
.dtf-hd__contact > a { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; font-weight: 500; white-space: nowrap; }
.dtf-hd__contact > a:hover, .dtf-hd__usps a:hover { color: #ffd6d2 !important; }

/* language switcher, dark */
.dtf-hd__lang .dtf-lang__current { border: 0 !important; color: #fff !important; padding: 6px 4px !important; font-size: 14px; gap: 6px; }
.dtf-hd__lang .dtf-lang__current::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); margin-left: 4px; }
.dtf-hd__lang .dtf-lang__menu { z-index: 1001; }

/* --------------------------------------------------------- main bar */
.dtf-hd__main { position: relative; background: #fff; }
.dtf-hd__row { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.dtf-hd__logo { display: inline-flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.dtf-hd__logo img { height: 50px; width: auto; display: block; }
.dtf-hd__badge { background: var(--hd-red); color: #fff; font-weight: 900; font-size: 13px; letter-spacing: .06em; padding: 4px 9px; border-radius: 6px; line-height: 1.2; }

.dtf-hd__nav { display: flex; align-items: center; gap: 6px; margin-left: 26px; flex: 1; }
.dtf-hd__nav > a, .dtf-hd__ddbtn {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 12px;
	color: var(--hd-ink) !important; font-weight: 700; font-size: 17px; white-space: nowrap; transition: background .15s, color .15s;
}
.dtf-hd__nav > a:hover { background: var(--hd-soft); }
.dtf-hd__ddbtn { background: transparent; }
.dtf-hd__ddbtn svg { width: 16px; height: 16px; transition: transform .2s; }
.dtf-hd__dd:hover .dtf-hd__ddbtn, .is-mega .dtf-hd__ddbtn { background: var(--hd-red-soft); }
.is-mega .dtf-hd__ddbtn svg { transform: rotate(180deg); }

.dtf-hd__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.dtf-hd__pill {
	display: inline-flex; align-items: center; gap: 12px; padding: 9px 16px 9px 10px; border-radius: 14px;
	background: var(--hd-soft); color: var(--hd-ink) !important; transition: background .15s; min-height: 50px;
}
.dtf-hd__pill:hover { background: #efede9; }
.dtf-hd__pillicon { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.dtf-hd__pilltxt { display: flex; flex-direction: column; line-height: 1.15; }
.dtf-hd__pilltxt small { color: var(--hd-muted); font-size: 12.5px; }
.dtf-hd__pilltxt b { font-size: 15px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtf-hd__cartwrap { position: relative; }
.dtf-hd__cart { padding: 9px 16px; gap: 10px; }
.dtf-hd__carticon { position: relative; display: inline-flex; }
.dtf-hd__carticon svg { width: 22px; height: 22px; }
.dtf-hd__count {
	position: absolute; top: -10px; right: -10px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
	background: var(--hd-red); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.dtf-hd__carttotal { font-size: 16px; font-weight: 800; white-space: nowrap; }
.dtf-hd__carttotal * { color: inherit !important; }
.dtf-hd__cta {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; border-radius: 14px;
	background: var(--hd-red); color: #fff !important; font-weight: 800; font-size: 17px; white-space: nowrap;
	box-shadow: 0 8px 20px rgba(217, 43, 32, .28); transition: background .15s, transform .05s;
}
.dtf-hd__cta:hover { background: var(--hd-red-dark); }
.dtf-hd__cta:active { transform: translateY(1px); }
.dtf-hd__cta svg { width: 20px; height: 20px; }

/* "DTF Printing" panel */
.dtf-hd__mega {
	position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--hd-line);
	box-shadow: 0 24px 40px rgba(0,0,0,.10); opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .16s, transform .16s, visibility .16s; z-index: 950;
}
.is-mega .dtf-hd__mega { opacity: 1; visibility: visible; transform: none; }
.dtf-hd__megain { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; padding-top: 26px; padding-bottom: 30px; }
.dtf-hd__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dtf-hd__card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 16px; background: var(--hd-soft); color: var(--hd-ink) !important; transition: background .15s, box-shadow .15s; }
.dtf-hd__card:hover { background: #fff; box-shadow: 0 0 0 2px var(--hd-red) inset; }
.dtf-hd__cardicon { width: 46px; height: 46px; border-radius: 12px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--hd-red); flex: 0 0 auto; border: 1px solid var(--hd-line); }
.dtf-hd__cardicon svg { width: 22px; height: 22px; }
.dtf-hd__card b { display: block; font-size: 17px; margin-bottom: 3px; }
.dtf-hd__card small { display: block; color: var(--hd-muted); font-size: 14.5px; line-height: 1.4; }
.dtf-hd__promo { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 28px; border-radius: 18px; background: #141414; color: #fff !important; }
.dtf-hd__promotag { background: var(--hd-red); color: #fff; font-weight: 900; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.dtf-hd__promo b { font-size: 25px; line-height: 1.15; font-weight: 900; letter-spacing: -0.01em; }
.dtf-hd__promolink { color: #ff6d63; font-weight: 800; }
.dtf-hd__promo:hover .dtf-hd__promolink { text-decoration: underline; }

/* mobile pieces, hidden on desktop */
.dtf-hd__mob { display: none; align-items: center; gap: 6px; margin-left: auto; }
.dtf-hd__iconbtn { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--hd-ink) !important; border-radius: 12px; }
.dtf-hd__iconbtn svg { width: 22px; height: 22px; }
.dtf-hd__iconbtn .dtf-hd__count { top: 2px; right: 0; }
.dtf-hd .dtf-hd__toggle {
	width: 46px; height: 46px; border-radius: 12px; background: var(--hd-soft) !important; border: 0 !important;
	display: inline-flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0 !important; cursor: pointer;
}
.dtf-hd .dtf-hd__toggle span { display: block; width: 20px; height: 2px; background: var(--hd-ink) !important; border-radius: 2px; transition: transform .2s, opacity .2s; margin: 0 !important; }
.dtf-hd .dtf-hd__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.dtf-hd .dtf-hd__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.dtf-hd .dtf-hd__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.dtf-hd__menu { display: none; }

/* Long labels (Greek) must never widen the page: the bars keep the 1320px
   wrap, and the nav links / top-bar items wrap onto a second line instead. */
@media (min-width: 1025px) {
	.dtf-hd__row > *, .dtf-hd__topin > * { min-width: 0; }
	.dtf-hd__nav { flex: 1 1 auto; flex-wrap: wrap; row-gap: 2px; }
	.dtf-hd__nav > a, .dtf-hd__ddbtn { white-space: normal; line-height: 1.2; }
	.dtf-hd__logo, .dtf-hd__actions { flex-shrink: 0; }
	.dtf-hd__usps { flex-wrap: wrap; row-gap: 4px; column-gap: 20px; padding: 6px 0; }
}

/* ---------------------------------------------------------- tablet */
@media (max-width: 1240px) {
	.dtf-hd__nav { margin-left: 8px; gap: 0; }
	.dtf-hd__nav > a, .dtf-hd__ddbtn { padding: 10px 11px; font-size: 16px; }
	.dtf-hd__acct .dtf-hd__pilltxt { display: none; }
	.dtf-hd__acct { padding: 8px; }
	.dtf-hd__contact > a:first-child { display: none; }
}

/* ---------------------------------------------------------- mobile */
@media (max-width: 1024px) {
	.dtf-hd__usps, .dtf-hd__contact { display: none; }
	.dtf-hd__usp-m { display: flex; }
	.dtf-hd__topin { min-height: 36px; }
	.dtf-hd__wrap { padding: 0 16px; }
	.dtf-hd__row { min-height: 68px; gap: 12px; }
	.dtf-hd__logo img { height: 40px; }
	.dtf-hd__nav, .dtf-hd__actions, .dtf-hd__mega { display: none; }
	.dtf-hd__mob { display: flex; }

	.dtf-hd__cta--wide { width: 100%; padding: 16px; margin: 10px 0 14px; }
	.dtf-hd__menubody { background: var(--hd-soft); border-radius: 20px; padding: 18px 16px; }
	.dtf-hd__label { margin: 4px 0 10px; font-size: 12.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--hd-muted); }
	.dtf-hd__label + .dtf-hd__mitem { margin-top: 0; }
	.dtf-hd__mitem { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; background: #fff; color: var(--hd-ink) !important; font-weight: 800; font-size: 17px; margin-bottom: 10px; }
	.dtf-hd__mitem svg { color: var(--hd-red); width: 20px; height: 20px; }
	.dtf-hd__mitem + .dtf-hd__label { margin-top: 18px; }
	.dtf-hd__mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.dtf-hd__mgrid a { padding: 15px; border-radius: 12px; background: #fff; color: var(--hd-ink) !important; font-weight: 700; font-size: 16px; }
	.dtf-hd__mcontact { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e3e0dc; display: flex; flex-direction: column; gap: 18px; }
	.dtf-hd__mcontact > a { display: inline-flex; align-items: center; gap: 12px; color: var(--hd-ink) !important; font-weight: 700; }
	.dtf-hd__mcontact > a svg { color: var(--hd-red); }
	.dtf-hd__mlang { align-self: flex-start; }
	.dtf-hd__mlang .dtf-lang__current { border: 1.5px solid #dcd9d5 !important; border-radius: 12px !important; padding: 12px 16px !important; background: #fff; gap: 8px; font-size: 15px; }
	.dtf-hd__mlang .dtf-lang__menu { top: auto; bottom: 100%; left: 0; right: auto; margin: 0 0 6px; }
}

/* Mobile menu. It is moved to <body> by inc/header-v2.php (a fixed panel inside
   the sticky header is drawn half-way by iOS Safari), sits between the header
   and the bottom of the VISIBLE screen (bottom: 0, not 100vh, which on iPhone
   includes the area under Safari's toolbar), and scrolls on its own. */
#dtf-mobile-menu { box-sizing: border-box; }
#dtf-mobile-menu *, #dtf-mobile-menu *::before, #dtf-mobile-menu *::after { box-sizing: border-box; }
#dtf-mobile-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
#dtf-mobile-menu a { text-decoration: none; }
#dtf-mobile-menu.dtf-hd__menu[hidden] { display: none !important; }
@media (max-width: 1024px) {
	#dtf-mobile-menu.dtf-hd__menu:not([hidden]) {
		display: block; position: fixed; left: 0; right: 0; top: 0; bottom: 0;
		height: auto; max-height: none; margin: 0; gap: 0;
		overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
		background: #fff; z-index: 100002;
		padding: 0 16px calc(48px + env(safe-area-inset-bottom, 0px));
		transform: translateZ(0);
	}
	#dtf-mobile-menu a { padding: 0; font-size: inherit; }
	#dtf-mobile-menu a.dtf-hd__cta { padding: 16px; font-size: 17px; }
	#dtf-mobile-menu a.dtf-hd__mitem { padding: 18px; font-size: 17px; }
	#dtf-mobile-menu .dtf-hd__mgrid a { padding: 15px; font-size: 16px; }
	#dtf-mobile-menu .dtf-hd__mcontact > a { font-size: 16px; }
	#dtf-mobile-menu .dtf-hd__mcontact { gap: 16px; padding-bottom: 8px; }
	#dtf-mobile-menu a:hover { color: var(--hd-ink); }
	#dtf-mobile-menu a.dtf-hd__cta:hover { color: #fff; }
	#dtf-mobile-menu .dtf-hd__mitem svg { width: 20px; height: 20px; }
	html.dtf-hd-menu-open, html.dtf-hd-menu-open body { overflow: hidden; overscroll-behavior: none; }
}
@media (min-width: 1025px) { #dtf-mobile-menu { display: none !important; } }
@media (max-width: 1024px) {
	#dtf-mobile-menu .dtf-hd__mhead {
		position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 6px;
		margin: 0 -16px 4px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: #fff; border-bottom: 1px solid var(--hd-line);
	}
	#dtf-mobile-menu .dtf-hd__mhead .dtf-hd__logo { margin-right: auto; padding: 0; }
	#dtf-mobile-menu .dtf-hd__mhead .dtf-hd__logo img { height: 40px; }
	#dtf-mobile-menu .dtf-hd__iconbtn { padding: 0; }
	#dtf-mobile-menu .dtf-hd__iconbtn svg { width: 22px; height: 22px; }
	#dtf-mobile-menu .dtf-hd__close { width: 46px; height: 46px; border-radius: 12px; border: 0; background: var(--hd-soft); color: var(--hd-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
	#dtf-mobile-menu .dtf-hd__close svg { width: 22px; height: 22px; }
}

/* Account and cart as icon-only buttons: no name, no price, just the person
   (filled when signed in, via WordPress's body.logged-in) and the cart with
   its count. The name stays in the link for screen readers. */
@media (min-width: 1025px) {
	.dtf-hd__acct, .dtf-hd__cart { width: 50px; height: 50px; min-height: 50px; padding: 0; gap: 0; justify-content: center; }
	.dtf-hd__acct .dtf-hd__pillicon { width: auto; height: auto; background: none; }
	.dtf-hd__acct svg, .dtf-hd__carticon svg { width: 23px; height: 23px; }
	.dtf-hd__acct .dtf-hd__pilltxt {
		position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
		clip: rect(0 0 0 0); white-space: nowrap; border: 0;
	}
	.dtf-hd__carttotal { display: none; }
	.dtf-hd__actions { gap: 10px; }
	/* With the pills gone the Greek links fit one row in the 1320px bar. */
	.dtf-hd__row { gap: 20px; }
	.dtf-hd__nav { margin-left: 8px; gap: 2px; }
	.dtf-hd__nav > a, .dtf-hd__ddbtn { padding: 10px 12px; font-size: 16px; }
}
body.logged-in .dtf-hd__acct svg,
body.logged-in .dtf-hd__mob > .dtf-hd__iconbtn:first-child svg,
body.logged-in #dtf-mobile-menu .dtf-hd__logo + .dtf-hd__iconbtn svg { fill: currentColor; }
