/* =========================================================
   PRODUCTS MEGA DROPDOWN (desktop header)
   ---------------------------------------------------------
   Shared by index.html, about-us.html and contact.html so the
   header "Products" dropdown looks identical on every page.

   The mobile version of this dropdown lives in
   assets/css/mobile-menu-shared.css (.pmega-mobile-grid).
   ========================================================= */

.has-products-menu { position: relative; }

.products-mega-drop {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(-6px);
	width: 400px;
	background: #fff;
	border-top: 3px solid #F56421;
	border-bottom: 3px solid #F56421;
	padding: 16px 14px 14px;
	box-shadow: 0px 4px 16px rgba(0,0,0,0.15);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
	z-index: 99999;
}

.has-products-menu:hover .products-mega-drop,
.has-products-menu:focus-within .products-mega-drop {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

/* Header label */
.pmega-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #aaa;
	margin-bottom: 10px;
	padding: 0 2px;
}

/* Grid: 1 column, wraps automatically */
.pmega-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

/* Each product card */
.pmega-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 11px;
	border-radius: 6px;
	background: #f9f9f9;
	border: 1px solid #eee;
	text-decoration: none !important;
	transition: background 0.18s, border-color 0.18s;
}
.pmega-card:hover {
	background: #fff4ec;
	border-color: #F56421;
}

/* Logo box — colour set per-product via inline style */
.pmega-logo {
	width: 36px; height: 36px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 900;
	color: #000;
	flex-shrink: 0;
}

.pmega-info { flex: 1; min-width: 0; }
.pmega-name {
	font-size: 13px;
	font-weight: 700;
	color: #232323;
	margin: 0 0 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.pmega-desc {
	font-size: 11px;
	color: #888;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Know Your Labels logo box */
.pmega-logo-kyl {
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.pmega-logo-kyl img {
	width: 95%;
	height: 95%;
	object-fit: contain;
	display: block;
}

/* Footer */
.pmega-footer {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #eee;
	font-size: 11px;
	color: #bbb;
	text-align: center;
}

/* Chevron rotates on hover */
.has-products-menu > a .bi-chevron-down {
	transition: transform 0.2s ease;
	display: inline-block;
}
.has-products-menu:hover > a .bi-chevron-down {
	transform: rotate(180deg);
}

/* =========================================================
   SERVICES MEGA DROPDOWN
   ---------------------------------------------------------
   Reuses the .products-mega-drop / .pmega-* building blocks
   above, widened to a 2-column grid to fit six services.
   ========================================================= */

.services-mega-drop {
	width: 460px;
}

.services-mega-grid {
	grid-template-columns: 1fr 1fr;
}

.services-mega-grid .pmega-card {
	align-items: flex-start;
}
