/*
Theme Name: Prime Trailer Child
Theme URI: https://primetrailerco.com/
Description: Minimal Astra child theme for Prime Trailer Co.
Author: Prime Trailer Co.
Template: astra
Version: 1.0.0
Text Domain: prime-trailer-child
*/

:root {
	--ptc-dark: #1c1f24;
	--ptc-background: #f7f6f3;
	--ptc-surface: #e9e7e2;
	--ptc-accent: #c24a2d;
	--ptc-muted: #6b6870;
	--ptc-border: #e1e2e2;
}

.ptc-product-attribute,
.ptc-product-category {
	display: inline-block;
	font-family: Inter, sans-serif;
	font-size: 10px;
	font-weight: 700;
	line-height: 15px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.ptc-product-attribute--condition {
	padding: 4px 8px;
	color: #fff;
	background: var(--ptc-accent);
}

.ptc-product-category { color: var(--ptc-muted); }

.ptc-trailer-card {
	width: 100%;
	min-width: 0;
}

.ptc-trailer-card > .elementor-element-c100002,
.ptc-trailer-card > .elementor-element-c100002 .elementor-widget-container,
.ptc-trailer-card > .elementor-element-c100002 a {
	display: block;
	width: 100%;
}

.ptc-trailer-card > .elementor-element-c100002 img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.ptc-trailer-card-content { min-width: 0; }
.ptc-product-attribute--condition { white-space: nowrap; width: max-content; }

.ptc-product-specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	border-top: 1px solid var(--ptc-border);
	border-left: 1px solid var(--ptc-border);
}

.ptc-product-specs__item {
	padding: 16px;
	border-right: 1px solid var(--ptc-border);
	border-bottom: 1px solid var(--ptc-border);
}

.ptc-product-specs dt {
	font: 700 10px/15px Inter, sans-serif;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--ptc-muted);
}

.ptc-product-specs dd {
	margin: 4px 0 0;
	font: 700 20px/28px "Barlow Condensed", sans-serif;
	color: var(--ptc-dark);
}

@media (max-width: 767px) {
	.elementor-element-a100002,
	.elementor-element-a100004,
	.elementor-element-a100005 {
		width: 100% !important;
		max-width: 100% !important;
	}

	.elementor-element-a100005 {
		min-height: 64px;
		flex-direction: row !important;
		justify-content: space-between !important;
		padding-inline: 24px !important;
		position: relative;
	}

	.elementor-element-a100006 {
		position: absolute;
		left: 50%;
		width: max-content !important;
		transform: translateX(-50%);
	}
	.elementor-element-a100007 { margin-right: auto; width: auto !important; }
	.elementor-element-a100008 { display: none !important; }

	.elementor-element-d100003,
	.elementor-element-d100005 {
		--width: 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
	}

	.elementor-element-d100004,
	.elementor-element-d100004 .woocommerce-product-gallery {
		width: 100% !important;
		max-width: 100% !important;
		float: none !important;
	}
}

.ptc-category-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.ptc-category-card { position: relative; min-height: 288px; overflow: hidden; color: #fff; }
.ptc-category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(28,31,36,.8)); }
.ptc-category-card img { width: 100%; height: 288px; object-fit: cover; transition: transform .25s ease; }
.ptc-category-card:hover img { transform: scale(1.025); }
.ptc-category-card span { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; font: 700 24px/30px "Barlow Condensed", sans-serif; }

.ptc-inventory-filters { display: flex; flex-direction: column; gap: 20px; }
.ptc-filter-group { display: flex; flex-direction: column; gap: 8px; }
.ptc-filter-group > span, .ptc-filter-price span { font: 700 10px/15px Inter, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #6b6870; }
.ptc-inventory-filters select, .ptc-inventory-filters input { width: 100%; min-height: 42px; border: 1px solid var(--ptc-border); border-radius: 0; background: transparent; padding: 8px 12px; }
.ptc-filter-price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ptc-filter-price label { display: flex; flex-direction: column; gap: 8px; }
.ptc-inventory-filters button { min-height: 44px; border: 0; border-radius: 0; background: var(--ptc-accent); color: #fff; font: 700 11px/16px Inter, sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.ptc-filter-reset { text-align: center; font: 600 11px/16px Inter, sans-serif; letter-spacing: 1px; text-transform: uppercase; }

.woocommerce .woocommerce-ordering, .woocommerce .woocommerce-result-count { margin: 0; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border-radius: 0; border-color: var(--ptc-border); background: transparent; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { border-radius: 0; background: var(--ptc-accent); color: #fff; font-family: Inter, sans-serif; text-transform: uppercase; letter-spacing: 1px; }

body.elementor-page .ast-container,
body.elementor-template-full-width .ast-container { width: 100%; max-width: none !important; padding-inline: 0; }
.site-content .elementor > .e-con-full > .e-con-boxed { width: 100%; max-width: 1280px; margin-inline: auto; }
.e-con.ptc-archive-layout { display: grid; grid-template-columns: 240px minmax(0, 904px); gap: 40px; padding-inline: 0; }
.e-con.ptc-archive-sidebar, .e-con.ptc-archive-grid { width: auto !important; min-width: 0; --padding-left: 0px; --padding-right: 0px; }
.elementor-widget-loop-grid { --grid-column-gap: 20px; }

@media (max-width: 767px) {
	.ptc-category-grid { grid-template-columns: 1fr; }
	.ptc-category-card, .ptc-category-card img { min-height: 240px; height: 240px; }
	.e-con.ptc-archive-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
	.e-con.ptc-archive-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
}
