/**
 * Dynamic Header Widget - Styles
 * Version: 1.4.2
 */

/* ══════════════════════════════════════════════════════════════
   VARIABLES
══════════════════════════════════════════════════════════════ */
:root {
	--dhw-scrollbar-width: 0px;
}

/* ══════════════════════════════════════════════════════════════
   BODY LOCK (when sidebar is open)
══════════════════════════════════════════════════════════════ */
body.dhw-sidebar-open {
	overflow: hidden;
	padding-right: var(--dhw-scrollbar-width);
}

/* ══════════════════════════════════════════════════════════════
   OVERLAY
══════════════════════════════════════════════════════════════ */
.dhw-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	background-color: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: none; /* no transition until JS ready — prevents FOUC */
}
/* Enable transition only after JS has initialised */
.dhw-js-ready .dhw-overlay {
	transition: opacity var(--dhw-anim, 300ms) ease,
	            visibility var(--dhw-anim, 300ms) ease;
}
.dhw-overlay.dhw-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR PANEL
══════════════════════════════════════════════════════════════ */
.dhw-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 320px;
	max-width: 90vw;
	z-index: 2147483001;
	background: #fff;
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	visibility: hidden;
	transition: none; /* no transition until JS ready — prevents FOUC */
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}
/* Enable transition only after JS has initialised */
.dhw-js-ready .dhw-sidebar {
	transition: transform var(--dhw-anim, 300ms) ease,
	            visibility var(--dhw-anim, 300ms) ease;
}
.dhw-sidebar.dhw-open {
	transform: translateX(0);
	visibility: visible;
}

/* Close button */
.dhw-sidebar-close {
	position: fixed;
	top: 14px;
	right: 14px;
	z-index: 2147483010;
	background: rgba(255, 255, 255, 0.92);
	border: none;
	padding: 0;
	cursor: pointer;
	line-height: 0;
	color: #000;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

#dhwSidebar.dhw-open .dhw-sidebar-close {
	opacity: 1;
	pointer-events: auto;
}

.dhw-sidebar-close:hover { background: rgba(245, 245, 245, 0.98); }
.dhw-sidebar-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Scrollable content area */
.dhw-sidebar-content {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}
/* Remove default Elementor padding inside sidebar */
.dhw-sidebar-content .elementor-section,
.dhw-sidebar-content .e-con {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* ── Sticky header inside sidebar ───────────────────────────── */
/* Apply class "dhw-sticky-header" via Elementor > Advanced > CSS Classes */
.dhw-sidebar-content .dhw-sticky-header,
.dhw-sidebar-content .elementor-section.dhw-sticky-header,
.dhw-sidebar-content .e-con.dhw-sticky-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: inherit;
}

/* ══════════════════════════════════════════════════════════════
   HEADER WIDGET (hamburger / back button bar)
══════════════════════════════════════════════════════════════ */
.dhw-header-widget {
	display: flex;
	align-items: center;
}

/* Hamburger */
.dhw-hamburger {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
}
.dhw-hamburger span {
	display: block;
	width: 24px;
	height: 2px;
	background-color: #000;
	border-radius: 2px;
	transition: background-color 0.2s ease;
}

/* Back header row */
.dhw-back-header {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Back button */
.dhw-back-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: #000;
	line-height: 0;
}
.dhw-back-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }

/* Custom SVG icon (uploaded via Elementor media library) */
.dhw-back-btn .dhw-svg-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}
.dhw-back-btn .dhw-svg-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}
.dhw-back-btn i { display: inline-flex; align-items: center; line-height: 1; }
.dhw-back-btn .e-font-icon-svg {
	display: inline-flex;
	width: 20px;
	height: 20px;
}
.dhw-back-btn .e-font-icon-svg svg { display: block; width: 100%; height: 100%; }

/* Header text (category name / page title / custom text) */
.dhw-header-text {
	font-size: 16px;
	font-weight: 600;
	color: #000;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════════════════════
   ACCOUNT BUTTON WIDGET
══════════════════════════════════════════════════════════════ */
.dhw-account-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 10px 18px;
	border: 1.5px solid #111;
	border-radius: 6px;
	background: transparent;
	color: #111;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	box-sizing: border-box;
	transition: background-color 0.2s ease, color 0.2s ease;
	cursor: pointer;
}
.dhw-account-btn:hover {
	background-color: #f5f5f5;
	text-decoration: none;
}
.dhw-account-btn svg { flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   CATEGORY GRID WIDGET
══════════════════════════════════════════════════════════════ */
.dhw-category-grid {
	display: grid;
	gap: 8px;
	padding: 8px 0;
	width: 100%;
}
.dhw-category-grid.dhw-cols-2 { grid-template-columns: repeat(2, 1fr); }
.dhw-category-grid.dhw-cols-3 { grid-template-columns: repeat(3, 1fr); }

.dhw-cat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}
.dhw-cat-card:hover { text-decoration: none; }

.dhw-cat-card-img {
	width: 100%;
	aspect-ratio: 1 / 1.2;
	overflow: hidden;
	border-radius: 8px;
	background: #f3f3f3;
}
.dhw-cat-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}
.dhw-cat-card:hover .dhw-cat-card-img img { transform: scale(1.04); }

.dhw-cat-card-title {
	font-size: 11px;
	font-weight: 500;
	color: #222;
	text-align: center;
	line-height: 1.3;
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════════════════════
   FEATURED SLIDER WIDGET
══════════════════════════════════════════════════════════════ */
.dhw-featured-slider {
	width: 100%;
	overflow: hidden;
	padding: 4px 0 8px;
}

.dhw-fs-track {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 4px 16px 4px;
	box-sizing: border-box;
}
.dhw-fs-track::-webkit-scrollbar { display: none; }

.dhw-fs-card {
	flex-shrink: 0;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	text-decoration: none;
}
.dhw-fs-card:hover { text-decoration: none; }

.dhw-fs-card-img-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1.2;
	background: #f3f3f3;
	overflow: hidden;
	border-radius: 8px;
}
.dhw-fs-card-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}
.dhw-fs-card:hover .dhw-fs-card-img-wrap img { transform: scale(1.04); }

.dhw-fs-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #fff;
	color: #111;
	font-size: 10.2px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 3px;
	z-index: 1;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.dhw-fs-card-title {
	font-size: 12px;
	font-weight: 600;
	color: #111;
	line-height: 1.3;
	padding: 0 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
}

/* Dots */
.dhw-fs-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	padding: 8px 0 2px;
}
.dhw-fs-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ccc;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
	flex-shrink: 0;
}
.dhw-fs-dot.active {
	background: #111;
	transform: scale(1.25);
}

/* ══════════════════════════════════════════════════════════════
   NAV TABS WIDGET  (v1.2.0)
══════════════════════════════════════════════════════════════ */

/* Wrapper */
.dhw-nav-tabs {
	width: 100%;
}

/* ── Tab button bar ──────────────────────────────────────────── */
.dhw-nt-tablist {
	display: flex;
	border-bottom: 1px solid #e5e5e5;
	background: #fff;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.dhw-nt-tablist::-webkit-scrollbar { display: none; }

.dhw-nt-tab-btn {
	flex-shrink: 0;
	flex: 1;
	background: none;
	border: none;
	padding: 10px 12px;
	font-size: 13px;
	font-weight: 600;
	color: #888;
	cursor: pointer;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	position: relative;
	transition: color 0.2s ease;
	white-space: nowrap;
	line-height: 1;
}

/* Active underline indicator */
.dhw-nt-tab-btn::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 2px;
	background-color: transparent;
	transition: background-color 0.2s ease;
}
.dhw-nt-tab-btn.dhw-nt-active {
	color: #111;
}
.dhw-nt-tab-btn.dhw-nt-active::after {
	background-color: #111;
}

.dhw-nt-tab-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
	border-radius: 2px;
}

/* ── Tab panels ──────────────────────────────────────────────── */
.dhw-nt-panel {
	display: none;
	padding: 12px 0 0;
}
.dhw-nt-panel.dhw-nt-panel-active {
	display: block;
}

/* ── Editor empty notes ──────────────────────────────────────── */
.dhw-nt-empty-note {
	padding: 10px 16px;
	margin: 8px 16px;
	background: #fff8e1;
	border-left: 3px solid #ffc107;
	color: #555;
	font-size: 12px;
	line-height: 1.5;
	border-radius: 0 4px 4px 0;
}

/* ── Spacing between slider and grid inside panel ────────────── */
.dhw-nt-slider {
	margin-bottom: 12px;
}

/* Souled Store-style mobile drawer */
body.dhw-sidebar-open .dhw-mobile-bottom-nav,
body.dhw-sidebar-open .mobile-bottom-navigation,
body.dhw-sidebar-open .mobile-bottom-nav,
body.dhw-sidebar-open .bottom-mobile-nav,
body.dhw-sidebar-open .bottom-nav,
body.dhw-sidebar-open .bottom-navigation,
body.dhw-sidebar-open .sticky-bottom-nav,
body.dhw-sidebar-open .elementor-sticky--active.elementor-location-footer {
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
}

@media (max-width: 767px) {
	#dhwSidebar {
		width: calc(100vw - 70px) !important;
		max-width: calc(100vw - 70px);
	}
}

.dhw-souled-menu {
	width: 100%;
	background: #fff;
	color: #161616;
	font-family: inherit;
}

.dhw-souled-menu .dhw-nt-tablist {
	position: sticky;
	top: 0;
	z-index: 12;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	min-height: 0;
	border-bottom: 1px solid #e9eeee;
	box-shadow: 0 8px 16px rgba(21, 36, 36, 0.08);
}

.dhw-souled-menu .dhw-nt-tab-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.1;
	text-transform: uppercase;
}

.dhw-souled-menu .dhw-nt-tab-btn::after {
	left: 0;
	right: 0;
	height: 3px;
}

.dhw-souled-menu .dhw-nt-panel {
	padding: 0;
}

.dhw-menu-panel-body {
	padding: 24px 22px 36px;
}

.dhw-menu-section {
	margin: 0 0 26px;
}

.dhw-menu-section-featured {
	margin-bottom: 28px;
}

.dhw-menu-heading {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0;
}

.dhw-menu-rail {
	padding: 0;
	overflow: hidden;
}

.dhw-menu-rail .dhw-menu-rail-track {
	gap: var(--dhw-rail-gap, 20px);
	padding: 0 0 4px;
	scroll-padding-left: 0;
}

.dhw-menu-tile {
	align-items: stretch;
	gap: 0;
	flex: 0 0 var(--dhw-rail-tile-width, calc((100% - 20px) / 2));
	width: var(--dhw-rail-tile-width, calc((100% - 20px) / 2));
	min-width: 0;
	max-width: none;
	border-radius: 8px;
	background: #f6f6f6;
	overflow: hidden;
	text-align: center;
}

.dhw-menu-tile-img {
	width: 100%;
	max-width: 78.65px;
	align-self: center;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f2f2f2;
	border-radius: 8px 8px 0 0;
}

.dhw-menu-tile-img img,
.dhw-menu-grid-img img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.dhw-menu-tile-title {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 3px 5px 5px;
	color: #191919;
	font-size: 10.2px;
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dhw-souled-menu .dhw-fs-dots {
	gap: 12px;
	padding: 16px 0 0;
}

.dhw-souled-menu .dhw-fs-dot {
	width: 7px;
	height: 7px;
	background: #e0e0e0;
	cursor: default;
}

.dhw-souled-menu .dhw-fs-dot.active {
	background: #060606;
	transform: none;
}

.dhw-menu-accordion {
	margin: 0 -22px;
	padding: 0 22px 24px;
	border-top: 1px solid #eef1f1;
	border-bottom: 1px solid #eef1f1;
}

.dhw-menu-accordion + .dhw-menu-accordion {
	margin-top: 0;
	border-top: 0;
}

.dhw-menu-accordion-toggle,
.dhw-menu-subtoggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: transparent;
	border: 0;
	color: #161616;
	cursor: pointer;
	text-align: left;
}

.dhw-menu-accordion-toggle {
	padding: 22px 0 14px;
}

.dhw-menu-subtoggle {
	padding: 0 0 18px;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
}

.dhw-menu-accordion-title {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.1;
}

.dhw-menu-chevron {
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	transition: transform 0.2s ease;
}

.dhw-menu-accordion:not(.dhw-menu-accordion-open) > .dhw-menu-accordion-toggle .dhw-menu-chevron,
.dhw-menu-subtoggle[aria-expanded="false"] .dhw-menu-chevron {
	transform: rotate(180deg);
}

.dhw-menu-accordion:not(.dhw-menu-accordion-open) > .dhw-menu-accordion-panel,
.dhw-menu-subtoggle[aria-expanded="false"] + .dhw-menu-subpanel {
	display: none;
}

.dhw-menu-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px 30px;
	padding: 0;
}

.dhw-menu-grid-card {
	gap: 9px;
	min-width: 0;
}

.dhw-menu-grid-img {
	width: 100%;
	aspect-ratio: 1 / 1.28;
	overflow: hidden;
	border-radius: 8px;
	background: #f4f4f4;
}

.dhw-menu-grid-title {
	width: 100%;
	color: #2a2a2a;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
	overflow-wrap: anywhere;
}

@media (max-width: 390px) {
	.dhw-menu-panel-body {
		padding-left: 18px;
		padding-right: 18px;
	}

	.dhw-menu-grid {
		gap: 20px 24px;
	}

	.dhw-menu-grid-title {
		font-size: 15px;
	}
}
