/* ==================================================
   Steele Industries — Mobile Offcanvas Menu
   Mobile only: 991px and below
   ================================================== */

@media (max-width: 991.98px) {

	/* ----------------------------------------------
	   Main configuration
	   ---------------------------------------------- */

	.steele-mobile-offcanvas {
		--steele-menu-bg: #080b0f;
		--steele-menu-surface: #0e1216;
		--steele-menu-active: #171c21;
		--steele-menu-border: rgba(255, 255, 255, 0.08);
		--steele-menu-text: #f4f6f7;
		--steele-menu-muted: #929ba3;
		--steele-menu-accent: #79d3c7;

		--bs-offcanvas-width: min(88vw, 410px);

		color: var(--steele-menu-text);
		background-color: var(--steele-menu-bg);
		border-left: 1px solid var(--steele-menu-border);
	}

	/* Prevent horizontal overflow inside the drawer */
	.steele-mobile-offcanvas,
	.steele-mobile-offcanvas * {
		box-sizing: border-box;
	}

	/* ----------------------------------------------
	   Mobile menu button
	   ---------------------------------------------- */

	.steele-mobile-menu-toggle {
		display: inline-flex;
		width: 44px;
		height: 44px;
		padding: 0;
		margin-left: auto;
		border: 1px solid rgba(255, 255, 255, 0.15);
		border-radius: 8px;
		background: transparent;
		align-items: center;
		justify-content: center;
	}

	.steele-mobile-menu-toggle:focus {
		box-shadow: 0 0 0 3px rgba(121, 211, 199, 0.2);
	}

	.steele-mobile-menu-toggle .navbar-toggler-icon {
		width: 22px;
		height: 22px;
		filter: brightness(0) invert(1);
	}

	/* ----------------------------------------------
	   Offcanvas header
	   ---------------------------------------------- */

	.steele-mobile-header {
		display: grid;
		min-height: 68px;
		padding: 14px 16px;
		border-bottom: 1px solid var(--steele-menu-border);
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}

	.steele-mobile-title {
		grid-column: 1;
		grid-row: 1;
		color: var(--steele-menu-text);
		font-size: 14px;
		font-weight: 600;
	}

	.steele-mobile-header .btn-close {
		grid-column: 2;
		grid-row: 1;
		margin: 0;
		padding: 10px;
		opacity: 0.75;
	}

	.steele-mobile-header .btn-close:hover,
	.steele-mobile-header .btn-close:focus {
		opacity: 1;
	}

	/*
	 * The menu now uses nested accordions,
	 * so the Back button is no longer needed.
	 */
	.steele-mobile-back {
		display: none !important;
	}

	/* ----------------------------------------------
	   Offcanvas body
	   ---------------------------------------------- */

	.steele-mobile-offcanvas .offcanvas-body {
		padding: 18px 16px 30px;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.steele-mobile-navigation {
		width: 100%;
	}

	/* ----------------------------------------------
	   Reset WordPress menu styles
	   ---------------------------------------------- */

	.steele-mobile-menu,
	.steele-mobile-submenu {
		width: 100%;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.steele-mobile-menu li,
	.steele-mobile-submenu li {
		position: relative;
		list-style: none;
	}

	/* Main menu item spacing */
	.steele-mobile-menu > li {
		margin-bottom: 6px;
	}

	/* Submenu item spacing */
	.steele-mobile-submenu > li {
		margin-bottom: 6px;
	}

	/* ----------------------------------------------
	   Main menu rows
	   ---------------------------------------------- */

	.steele-mobile-menu-control {
		display: grid;
		width: 100%;
		min-height: 52px;
		padding: 10px 12px;
		color: var(--steele-menu-text);
		border: 1px solid var(--steele-menu-border);
		border-radius: 9px;
		background-color: var(--steele-menu-surface);
		grid-template-columns: 32px minmax(0, 1fr) auto;
		align-items: center;
		gap: 10px;
		font-family: inherit;
		font-size: 14px;
		font-weight: 600;
		line-height: 1.35;
		text-align: left;
		text-decoration: none;
		cursor: pointer;
		appearance: none;
		-webkit-appearance: none;
		transition:
			color 180ms ease,
			background-color 180ms ease,
			border-color 180ms ease;
	}

	.steele-mobile-menu-control:hover,
	.steele-mobile-menu-control:focus-visible {
		color: var(--steele-menu-text);
		border-color: rgba(121, 211, 199, 0.35);
		background-color: var(--steele-menu-active);
		text-decoration: none;
		outline: none;
	}

	.steele-mobile-menu-control:focus-visible {
		box-shadow: 0 0 0 3px rgba(121, 211, 199, 0.15);
	}

	.steele-mobile-menu-label {
		display: block;
		min-width: 0;
		overflow-wrap: break-word;
	}

	/* ----------------------------------------------
	   Menu icons
	   ---------------------------------------------- */

	.steele-mobile-icon {
		display: grid;
		width: 30px;
		height: 30px;
		color: var(--steele-menu-accent);
		border: 1px solid rgba(121, 211, 199, 0.2);
		border-radius: 7px;
		background-color: rgba(121, 211, 199, 0.08);
		place-items: center;
		flex-shrink: 0;
	}

	.steele-mobile-icon i {
		font-size: 13px;
	}

	/* ----------------------------------------------
	   Chevron arrows
	   ---------------------------------------------- */

	.steele-mobile-chevron {
		display: grid;
		width: 24px;
		height: 24px;
		color: var(--steele-menu-muted);
		place-items: center;
	}

	.steele-mobile-chevron i {
		font-size: 11px;
		transition: transform 200ms ease;
	}

	/* Shop: right-facing arrow rotates downward */
	.menu-item-depth-0.is-accordion-open >
	.steele-mobile-submenu-toggle
	.steele-mobile-chevron i {
		transform: rotate(90deg);
	}

	/*
	 * Night Vision Devices and other nested parents:
	 * downward arrow rotates upward.
	 */
	.menu-item-depth-1.is-accordion-open >
	.steele-mobile-submenu-toggle
	.steele-mobile-chevron i,
	.menu-item-depth-2.is-accordion-open >
	.steele-mobile-submenu-toggle
	.steele-mobile-chevron i {
		transform: rotate(180deg);
	}

	/* ----------------------------------------------
	   Open accordion item
	   ---------------------------------------------- */

	.is-accordion-open >
	.steele-mobile-submenu-toggle {
		color: var(--steele-menu-text);
		border-color: rgba(121, 211, 199, 0.35);
		background-color: var(--steele-menu-active);
	}

	/* ----------------------------------------------
	   All submenu levels
	   ---------------------------------------------- */

	.steele-mobile-submenu {
		overflow: hidden;
		margin-top: 6px;
		padding-left: 12px;
		transition: max-height 250ms ease;
	}

	.steele-mobile-submenu[hidden] {
		display: none !important;
	}

	/* ----------------------------------------------
	   First submenu level
	   Shop → categories
	   ---------------------------------------------- */

	.steele-mobile-level-1 {
		padding-left: 12px;
	}

	.steele-mobile-level-1 >
	.steele-mobile-menu-item >
	.steele-mobile-menu-control {
		min-height: 50px;
	}

	/* ----------------------------------------------
	   Second and third submenu levels
	   Night Vision Devices → child categories
	   ---------------------------------------------- */

	.steele-mobile-level-2,
	.steele-mobile-level-3 {
		margin-left: 12px;
		padding-left: 10px;
		border-left: 2px solid var(--steele-menu-accent);
	}

	/*
	 * Product/category links inside
	 * Night Vision Devices.
	 */
	.menu-item-depth-2 >
	.steele-mobile-menu-control,
	.menu-item-depth-3 >
	.steele-mobile-menu-control {
		min-height: 42px;
		padding: 9px 10px;
		border-top: 0;
		border-right: 0;
		border-bottom: 1px solid var(--steele-menu-border);
		border-left: 0;
		border-radius: 0;
		background-color: transparent;
		grid-template-columns: minmax(0, 1fr) auto;
		font-size: 13px;
	}

	.menu-item-depth-2 >
	.steele-mobile-menu-control:hover,
	.menu-item-depth-2 >
	.steele-mobile-menu-control:focus-visible,
	.menu-item-depth-3 >
	.steele-mobile-menu-control:hover,
	.menu-item-depth-3 >
	.steele-mobile-menu-control:focus-visible {
		background-color: rgba(255, 255, 255, 0.035);
	}

	/* No icon on the deepest product/category links */
	.menu-item-depth-2 >
	.steele-mobile-menu-control
	.steele-mobile-icon,
	.menu-item-depth-3 >
	.steele-mobile-menu-control
	.steele-mobile-icon {
		display: none;
	}

	/* ----------------------------------------------
	   Dynamically generated:
	   All Night Vision Devices
	   ---------------------------------------------- */

	.steele-mobile-view-all {
		margin-top: 7px;
		margin-bottom: 2px !important;
	}

	.steele-mobile-view-all a {
		display: flex;
		width: 100%;
		min-height: 42px;
		padding: 10px;
		color: var(--steele-menu-accent);
		border-top: 1px solid var(--steele-menu-border);
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		font-size: 13px;
		font-weight: 600;
		line-height: 1.35;
		text-decoration: none;
		transition:
			color 180ms ease,
			background-color 180ms ease;
	}

	.steele-mobile-view-all a:hover,
	.steele-mobile-view-all a:focus-visible {
		color: var(--steele-menu-text);
		background-color: rgba(255, 255, 255, 0.035);
		text-decoration: none;
		outline: none;
	}

	.steele-mobile-view-all i {
		font-size: 11px;
	}

	/* ----------------------------------------------
	   Need a Hand contact card
	   This always remains in the same menu.
	   ---------------------------------------------- */

	.steele-mobile-contact {
		display: block;
		width: 100%;
		margin-top: 18px;
		padding: 17px;
		border: 1px solid var(--steele-menu-border);
		border-radius: 10px;
		background-color: var(--steele-menu-surface);
	}

	.steele-mobile-contact-label {
		display: block;
		margin-bottom: 8px;
		color: var(--steele-menu-accent);
		font-size: 10px;
		font-weight: 700;
		letter-spacing: 1.3px;
	}

	.steele-mobile-contact p {
		margin: 0 0 14px;
		color: var(--steele-menu-muted);
		font-size: 12px;
		line-height: 1.55;
	}

	.steele-mobile-contact-button {
		display: flex;
		width: 100%;
		min-height: 42px;
		margin-bottom: 14px;
		padding: 10px 14px;
		color: #07110f;
		border: 0;
		border-radius: 6px;
		background-color: var(--steele-menu-accent);
		align-items: center;
		justify-content: center;
		gap: 8px;
		font-size: 12px;
		font-weight: 700;
		line-height: 1.35;
		text-align: center;
		text-decoration: none;
		transition:
			background-color 180ms ease,
			transform 180ms ease;
	}

	.steele-mobile-contact-button:hover,
	.steele-mobile-contact-button:focus-visible {
		color: #07110f;
		background-color: #91ddd4;
		text-decoration: none;
		transform: translateY(-1px);
		outline: none;
	}

	.steele-mobile-contact-link {
		display: flex;
		margin-top: 9px;
		color: var(--steele-menu-muted);
		align-items: center;
		gap: 9px;
		font-size: 12px;
		line-height: 1.4;
		text-decoration: none;
		overflow-wrap: anywhere;
	}

	.steele-mobile-contact-link:hover,
	.steele-mobile-contact-link:focus-visible {
		color: var(--steele-menu-text);
		text-decoration: none;
		outline: none;
	}

	.steele-mobile-contact-link i {
		width: 14px;
		color: var(--steele-menu-accent);
		text-align: center;
		flex-shrink: 0;
	}
}

/* ==================================================
   Desktop protection
   ================================================== */

@media (min-width: 992px) {
	.steele-mobile-offcanvas,
	.steele-mobile-menu-toggle {
		display: none !important;
	}
}

/* ==================================================
   Reduced motion accessibility
   ================================================== */

@media (prefers-reduced-motion: reduce) {
	.steele-mobile-menu-control,
	.steele-mobile-chevron i,
	.steele-mobile-submenu,
	.steele-mobile-contact-button {
		transition: none !important;
	}
}