/**
 * Rotania Modern v2 - Core Stylesheet
 *
 * Modern responsive styles for B2B commercial audio manufacturer.
 * Driven by theme.json v3 CSS custom properties.
 *
 * @package rotania-v2
 */

/* ─── Top Bar ─────────────────────────────────────────────── */
.top-bar {
	background-color: #0f172a;
	color: #94a3b8;
	font-size: 0.8125rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}
.top-bar__contact {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}
.top-bar__item {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	color: #cbd5e1;
	text-decoration: none;
	transition: color 0.2s ease;
}
.top-bar__item:hover {
	color: #ffffff;
}
.top-bar__item svg {
	width: 14px;
	height: 14px;
	opacity: 0.8;
}
.top-bar__badge {
	background-color: rgba(238, 29, 35, 0.15);
	color: #f87171;
	padding: 0.125rem 0.5rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
}

/* ─── Header & Navigation ─────────────────────────────────── */
.site-header {
	background-color: #ffffff;
	border-bottom: 1px solid #e5e7eb;
	position: sticky;
	top: 0;
	z-index: 1000;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 0.875rem;
	padding-bottom: 0.875rem;
}
.site-branding a {
	text-decoration: none;
	font-family: var(--wp--preset--font-family--outfit, 'Outfit', sans-serif);
	font-size: 1.625rem;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.02em;
	display: inline-flex;
	align-items: center;
}
.site-branding .brand-accent {
	color: var(--wp--preset--color--accent-primary, #ee1d23);
}

.main-navigation ul {
	list-style: none;
	display: flex;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	align-items: center;
}
.main-navigation a {
	color: #334155;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9375rem;
	transition: color 0.2s ease;
	position: relative;
	padding: 0.25rem 0;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: var(--wp--preset--color--accent-primary, #ee1d23);
}
.main-navigation a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--wp--preset--color--accent-primary, #ee1d23);
	transition: width 0.2s ease;
}
.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
	width: 100%;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
	display: none;
	background: none;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 0.5rem;
	cursor: pointer;
	color: #334155;
}
.mobile-nav-toggle svg {
	width: 22px;
	height: 22px;
	display: block;
}

/* ─── Buttons & Badges ───────────────────────────────────── */
.button-primary {
	background-color: var(--wp--preset--color--accent-primary, #ee1d23);
	color: #ffffff !important;
	border: none;
	padding: 0.625rem 1.25rem;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.2s ease;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.button-primary:hover {
	background-color: #c91419;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 4px 6px -1px rgba(238, 29, 35, 0.2);
}

.button-outline {
	background-color: transparent;
	color: #334155 !important;
	border: 1px solid #cbd5e1;
	padding: 0.625rem 1.25rem;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.2s ease;
	cursor: pointer;
}
.button-outline:hover {
	background-color: #f8fafc;
	border-color: #94a3b8;
	color: #0f172a !important;
	transform: translateY(-1px);
}

.button-whatsapp {
	background-color: #25d366;
	color: #ffffff !important;
	border: none;
	padding: 0.625rem 1.25rem;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.2s ease;
}
.button-whatsapp:hover {
	background-color: #1eb954;
	transform: translateY(-1px);
	box-shadow: 0 4px 6px -1px rgba(37, 211, 102, 0.3);
}

/* ─── B2B Product Cards ──────────────────────────────────── */
.rotania-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.75rem;
	margin-top: 2rem;
	margin-bottom: 2rem;
}

.b2b-product-card {
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: all 0.25s ease;
	position: relative;
}
.b2b-product-card:hover {
	transform: translateY(-4px);
	border-color: #cbd5e1;
	box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08), 0 4px 8px -4px rgba(0, 0, 0, 0.04);
}

.b2b-product-card__thumb {
	position: relative;
	background-color: #f8fafc;
	padding: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4/3;
	overflow: hidden;
	border-bottom: 1px solid #f1f5f9;
}
.b2b-product-card__thumb img {
	max-height: 100%;
	width: auto;
	object-fit: contain;
	transition: transform 0.3s ease;
}
.b2b-product-card:hover .b2b-product-card__thumb img {
	transform: scale(1.05);
}

.b2b-product-card__body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.b2b-product-card__category {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--accent-primary, #ee1d23);
	margin-bottom: 0.375rem;
}

.b2b-product-card__title {
	font-family: var(--wp--preset--font-family--outfit, 'Outfit', sans-serif);
	font-size: 1.125rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 0.5rem 0;
	line-height: 1.35;
}
.b2b-product-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}
.b2b-product-card__title a:hover {
	color: var(--wp--preset--color--accent-primary, #ee1d23);
}

.b2b-product-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}
.spec-badge {
	background-color: #f1f5f9;
	color: #475569;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	border: 1px solid #e2e8f0;
}

.b2b-product-card__actions {
	display: flex;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.75rem;
	border-top: 1px solid #f1f5f9;
}
.b2b-product-card__actions .button-primary,
.b2b-product-card__actions .button-outline {
	flex: 1;
	justify-content: center;
	font-size: 0.8125rem;
	padding: 0.5rem 0.75rem;
}

/* ─── Technical Specifications Table ─────────────────────── */
.technical-specs-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
	font-size: 0.9375rem;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
}
.technical-specs-table th {
	background-color: #0f172a;
	color: #ffffff;
	text-align: left;
	padding: 0.75rem 1rem;
	font-weight: 600;
	font-size: 0.875rem;
	letter-spacing: 0.025em;
}
.technical-specs-table td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #f1f5f9;
	color: #334155;
}
.technical-specs-table tr:nth-child(even) td {
	background-color: #f8fafc;
}
.technical-specs-table td.spec-name {
	font-weight: 600;
	color: #0f172a;
	width: 35%;
	border-right: 1px solid #e2e8f0;
}

/* ─── Single Product B2B Showcase ────────────────────────── */
.b2b-single-product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	margin-top: 2rem;
	margin-bottom: 4rem;
}
.b2b-single-product__gallery {
	position: sticky;
	top: 100px;
}
.b2b-single-product__main-img {
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 2rem;
	text-align: center;
}
.b2b-single-product__main-img img {
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

.b2b-single-product__details h1 {
	font-size: 2.25rem;
	margin-top: 0;
	margin-bottom: 0.5rem;
}
.b2b-single-product__sku {
	font-size: 0.875rem;
	color: #64748b;
	margin-bottom: 1.5rem;
}
.b2b-single-product__cta-box {
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 1.5rem;
	margin-top: 2rem;
	margin-bottom: 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

/* ─── Responsive Media Queries ───────────────────────────── */
@media (max-width: 991px) {
	.main-navigation {
		display: none;
	}
	.mobile-nav-toggle {
		display: block;
	}
	.b2b-single-product {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

@media (max-width: 640px) {
	.top-bar__contact {
		gap: 0.75rem;
	}
	.rotania-product-grid {
		grid-template-columns: 1fr;
	}
}
