/**
 * TMY Inventory Widget — base styles.
 * Fully standalone: works whether the widget is dropped directly on a
 * page/template, or embedded via the Main widget's "Current Inventory
 * Widget" mode (same markup, same classes).
 */

.tmy-inventory-section {
	--tmy-blue: #002586;
	--tmy-blue-light: rgba(0, 37, 134, 0.07);
	--tmy-blue-border: rgba(0, 37, 134, 0.13);
	--tmy-text-muted: #3a5478;

	font-family: 'Inter', system-ui, sans-serif;
	margin-bottom: 2.5rem;
}

.tmy-inventory-section * {
	box-sizing: border-box;
}

.tmy-inventory-section h2,
.tmy-inventory-section h3 {
	font-family: 'Bebas Neue', cursive, sans-serif;
	letter-spacing: 0.02em;
	margin: 0;
}

.tmy-section-label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--tmy-blue);
	margin-bottom: 0.6rem;
}

.tmy-section-heading {
	font-size: 2.8rem;
	color: var(--tmy-blue);
	margin-bottom: 1rem;
	line-height: 1.05;
}

.tmy-section-heading-line {
	display: block;
	width: 52px;
	height: 4px;
	background: var(--tmy-blue);
	border-radius: 4px;
	margin-bottom: 1.5rem;
}

.tmy-inventory-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.tmy-inventory-card {
	background: #fff;
	border: 1px solid var(--tmy-blue-border);
	border-radius: 28px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.tmy-inventory-card:hover {
	border-color: var(--tmy-blue);
	transform: translateY(-6px);
	box-shadow: 0 20px 36px -12px rgba(0, 37, 134, 0.18);
}

.tmy-inventory-card-image {
	width: 100%;
	aspect-ratio: 4 / 3;
	background: var(--tmy-blue-light);
	overflow: hidden;
	position: relative;
}

.tmy-inventory-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tmy-inventory-status {
	position: absolute;
	top: 0.9rem;
	left: 0.9rem;
	background: var(--tmy-blue);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 0.3rem 0.75rem;
	border-radius: 30px;
}

.tmy-inventory-card-body {
	padding: 1.6rem;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	flex: 1;
}

.tmy-inventory-card-body h3 {
	font-size: 1.5rem;
	color: var(--tmy-blue);
	line-height: 1.1;
}

.tmy-inventory-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.tmy-badge-spec {
	display: inline-block;
	background: var(--tmy-blue-light);
	color: var(--tmy-blue);
	font-size: 0.7rem;
	font-weight: 600;
	padding: 0.25rem 0.7rem;
	border-radius: 30px;
	letter-spacing: 0.3px;
	width: fit-content;
}

.tmy-inv-desc {
	font-size: 0.88rem;
	color: var(--tmy-text-muted);
	line-height: 1.6;
	flex: 1;
	margin: 0;
}

.tmy-inventory-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 0.6rem;
	border-top: 1px solid var(--tmy-blue-border);
	margin-top: 0.3rem;
}

.tmy-inventory-price {
	font-family: 'Bebas Neue', cursive;
	font-size: 1.4rem;
	color: var(--tmy-blue);
	letter-spacing: 0.02em;
}

.tmy-inventory-link {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--tmy-blue);
}

/* ── FEATURES SECTION ── */
.tmy-features-section {
	margin-bottom: 2.5rem;
}

.tmy-features-header {
	background: var(--tmy-blue);
	border-radius: 32px 32px 0 0;
	padding: 2.5rem 3rem;
}

.tmy-features-header h2 {
	font-size: 2.8rem;
	color: #fff;
	line-height: 1.05;
	margin-bottom: 0.6rem;
}

.tmy-features-header p {
	font-size: 0.98rem;
	color: rgba(255, 255, 255, 0.7);
	max-width: 560px;
	line-height: 1.65;
}

.tmy-features-cards {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	border: 1px solid var(--tmy-blue-border);
	border-top: none;
	border-radius: 0 0 32px 32px;
	overflow: hidden;
}

.tmy-feat-card {
	padding: 1.8rem 1.5rem;
	border-right: 1px solid var(--tmy-blue-border);
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	transition: background 0.25s ease;
	background: #fff;
}

.tmy-feat-card:last-child {
	border-right: none;
}

.tmy-feat-card:hover {
	background: var(--tmy-bg-soft);
}

.tmy-feat-icon {
	font-size: 2rem;
	line-height: 1;
}

.tmy-feat-num {
	font-family: 'Bebas Neue', cursive;
	font-size: 2.2rem;
	color: var(--tmy-blue-border);
	line-height: 1;
	letter-spacing: 0.02em;
}

.tmy-feat-card h4 {
	font-size: 1.2rem;
	color: var(--tmy-blue);
	line-height: 1.15;
	letter-spacing: 0.01em;
}

.tmy-feat-divider {
	width: 32px;
	height: 3px;
	background: var(--tmy-blue);
	border-radius: 4px;
	opacity: 0.4;
}

.tmy-feat-card p {
	font-size: 0.85rem;
	color: var(--tmy-text-muted);
	line-height: 1.6;
	flex: 1;
}

@media (max-width: 1024px) {
	.tmy-inventory-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tmy-features-cards {
		grid-template-columns: repeat(3, 1fr);
	}

	.tmy-feat-card:nth-child(3) {
		border-right: none;
	}

	.tmy-feat-card:nth-child(4) {
		border-top: 1px solid var(--tmy-blue-border);
	}

	.tmy-feat-card:nth-child(5) {
		border-top: 1px solid var(--tmy-blue-border);
		border-right: none;
	}
}

@media (max-width: 768px) {
	.tmy-inventory-grid {
		grid-template-columns: 1fr;
	}

	.tmy-section-heading {
		font-size: 2.2rem;
	}

	.tmy-features-cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.tmy-feat-card:nth-child(odd) {
		border-right: 1px solid var(--tmy-blue-border);
	}

	.tmy-feat-card:nth-child(even) {
		border-right: none;
	}

	.tmy-feat-card:nth-child(n+3) {
		border-top: 1px solid var(--tmy-blue-border);
	}

	.tmy-features-header {
		padding: 2rem 1.8rem;
		border-radius: 24px 24px 0 0;
	}

	.tmy-features-header h2 {
		font-size: 2.2rem;
	}
}

@media (max-width: 480px) {
	.tmy-features-cards {
		grid-template-columns: 1fr;
	}

	.tmy-feat-card {
		border-right: none !important;
		border-top: 1px solid var(--tmy-blue-border);
	}

	.tmy-feat-card:first-child {
		border-top: none;
	}
}
