.jr-info-boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.jr-info-boxes a.jr-info-box {
    border-radius: 14px;
    padding: 18px;
    min-height: 125px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid #e5e5e5;
    background: #fff;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: all .25s ease;
}

.jr-info-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    color: inherit;
}

.jr-info-box:hover::before {
    transform: scaleX(1);
}

.jr-info-box__icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 12px rgb(136 136 136 / 30%);
    transition: all 0.3s ease;
}

.jr-info-box:hover .jr-info-box__icon {
    transform: scale(1.08);
}

.jr-info-box h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.25;
    color: #111;
}

.jr-info-box p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

/* ==========================================================================
   Build your own stormtrooper section
   ========================================================================== */
section.jr-info-boxes.jr-info-boxes--build-your-own-stormtrooper a.jr-info-box {
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
}


@media (max-width: 992px) {
    .jr-info-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .jr-info-boxes {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }
}

/**
 * Build Your Own Stormtrooper armour-part directory.
 *
 * Provides a compact image-led category grid based on the original light-site
 * component while adapting the cards to the Jedi-Robe dark sci-fi system.
 *
 * This component deliberately does not use the shared .jr-info-box card class
 * because those cards serve a different informational purpose.
 *
 * @package    Jedi_Theme
 * @subpackage Build_Your_Own
 * @since      1.0.0
 */


/**
 * Build Your Own Stormtrooper armour-part directory.
 *
 * Restores the section divider and presents armour categories as restrained
 * dark sci-fi panels while keeping the original product photography intact.
 *
 * @package    Jedi_Theme
 * @subpackage Build_Your_Own
 * @since      1.0.0
 */


/* ==========================================================================
   Armour-part grid
   ========================================================================== */

body.jr-dark-commerce
	.jr-info-boxes.jr-info-boxes--build-your-own-stormtrooper {
	position: relative;

	display: grid;

	grid-template-columns:
		repeat(4, minmax(0, 1fr));

	gap: 1.25rem;

	width: 100%;

	margin:
		2rem
		0
		3rem;

	padding:
		2rem
		0
		0;

	border: 0;

	background: transparent;
}


/* ==========================================================================
   Section divider
   ========================================================================== */

body.jr-dark-commerce
	.jr-info-boxes--build-your-own-stormtrooper::before {
	position: absolute;

	top: 0;
	left: 0;

	width: 100%;
	height: 1px;

	background:
		linear-gradient(
			90deg,
			var(--jr-green-light) 0,
			rgba(69, 217, 107, 0.45) 7rem,
			rgba(152, 169, 192, 0.18) 14rem,
			rgba(152, 169, 192, 0.12) 100%
		);

	content: "";
}


body.jr-dark-commerce
	.jr-info-boxes--build-your-own-stormtrooper::after {
	display: none;

	content: none;
}


/* ==========================================================================
   Armour-part card
   ========================================================================== */

body.jr-dark-commerce
	.jr-info-boxes--build-your-own-stormtrooper
	.jr-build-part-card {
	position: relative;
	isolation: isolate;
	overflow: hidden;

	display: flex;

	min-width: 0;
	height: 100%;

	flex-direction: column;

	margin: 0;
	padding: 0;

	border: 1px solid rgba(111, 203, 255, 0.2);
	border-radius: 0;

	background:
		rgba(6, 12, 19, 0.72);

	color: var(--jr-text);

	text-decoration: none;

	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.025),
		0 0.8rem 1.6rem rgba(0, 0, 0, 0.14);

	transition:
		border-color 180ms ease,
		background 180ms ease,
		box-shadow 180ms ease,
		transform 180ms ease;
}


/* ==========================================================================
   Sci-fi corner: top left
   ========================================================================== */

body.jr-dark-commerce
	.jr-info-boxes--build-your-own-stormtrooper
	.jr-build-part-card::before {
	position: absolute;
	z-index: 3;

	top: -1px;
	left: -1px;

	width: 2.5rem;
	height: 0.65rem;

	border-top: 1px solid var(--jr-green-light);
	border-left: 1px solid var(--jr-green-light);

	content: "";

	pointer-events: none;
}


/* ==========================================================================
   Sci-fi corner: bottom right
   ========================================================================== */

body.jr-dark-commerce
	.jr-info-boxes--build-your-own-stormtrooper
	.jr-build-part-card::after {
	position: absolute;
	z-index: 3;

	right: -1px;
	bottom: -1px;

	width: 1.4rem;
	height: 0.5rem;

	border-right: 1px solid rgba(111, 203, 255, 0.48);
	border-bottom: 1px solid rgba(111, 203, 255, 0.48);

	content: "";

	pointer-events: none;
}


/* ==========================================================================
   Image stage
   ========================================================================== */

body.jr-dark-commerce
	.jr-info-boxes--build-your-own-stormtrooper
	.jr-info-box__img {
	position: relative;
	overflow: hidden;

	display: flex;

	width: 100%;

	aspect-ratio: 4 / 3;

	align-items: center;
	justify-content: center;

	padding: 1rem;

	border-bottom: 1px solid rgba(152, 169, 192, 0.16);

	background:
		linear-gradient(
			135deg,
			rgba(13, 24, 35, 0.92),
			rgba(3, 8, 13, 0.96)
		);
}


/* ==========================================================================
   Product image
   ========================================================================== */

body.jr-dark-commerce
	.jr-info-boxes--build-your-own-stormtrooper
	.jr-info-box__img
	img {
	display: block;

	width: auto;
	height: auto;

	max-width: 92%;
	max-height: 92%;

	margin: 0;

	object-fit: contain;
	object-position: center;

	border: 1px solid rgba(152, 169, 192, 0.12);

	box-shadow:
		0 0.75rem 1.5rem rgba(0, 0, 0, 0.22);

	transition:
		filter 180ms ease,
		transform 220ms ease;
}


/* ==========================================================================
   Title area
   ========================================================================== */

body.jr-dark-commerce
	.jr-info-boxes--build-your-own-stormtrooper
	.jr-build-part-card
	> span {
	display: flex;

	flex:
		1
		1
		auto;

	align-items: center;
	justify-content: flex-start;

	min-height: 4.25rem;

	padding:
		0.9rem
		1rem;
}


/* ==========================================================================
   Title
   ========================================================================== */

body.jr-dark-commerce
	.jr-info-boxes--build-your-own-stormtrooper
	.jr-build-part-card
	h3 {
	margin: 0;

	color: var(--jr-text);

	font-size: 0.95rem;
	font-weight: 650;
	letter-spacing: -0.01em;
	line-height: 1.4;

	text-align: left;
}


/* ==========================================================================
   Hover
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {

	body.jr-dark-commerce
		.jr-info-boxes--build-your-own-stormtrooper
		.jr-build-part-card:hover {
		border-color: rgba(111, 203, 255, 0.38);

		background:
			rgba(8, 16, 24, 0.82);

		box-shadow:
			0 1rem 2rem rgba(0, 0, 0, 0.2),
			inset 0 1px 0 rgba(255, 255, 255, 0.035);

		transform: translateY(-2px);
	}


	body.jr-dark-commerce
		.jr-info-boxes--build-your-own-stormtrooper
		.jr-build-part-card:hover
		.jr-info-box__img
		img {
		filter: brightness(1.025);

		transform: scale(1.02);
	}
}


/* ==========================================================================
   Focus
   ========================================================================== */

body.jr-dark-commerce
	.jr-info-boxes--build-your-own-stormtrooper
	.jr-build-part-card:focus-visible {
	outline: 2px solid var(--jr-green-light);
	outline-offset: 3px;
}


/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 992px) {

	body.jr-dark-commerce
		.jr-info-boxes.jr-info-boxes--build-your-own-stormtrooper {
		grid-template-columns:
			repeat(3, minmax(0, 1fr));
	}
}


/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 700px) {

	body.jr-dark-commerce
		.jr-info-boxes.jr-info-boxes--build-your-own-stormtrooper {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));

		gap: 0.8rem;

		padding-top: 1.5rem;
	}


	body.jr-dark-commerce
		.jr-info-boxes--build-your-own-stormtrooper
		.jr-info-box__img {
		padding: 0.75rem;
	}


	body.jr-dark-commerce
		.jr-info-boxes--build-your-own-stormtrooper
		.jr-build-part-card
		> span {
		min-height: 3.75rem;

		padding:
			0.7rem
			0.75rem;
	}


	body.jr-dark-commerce
		.jr-info-boxes--build-your-own-stormtrooper
		.jr-build-part-card
		h3 {
		font-size: 0.875rem;
	}
}