/*
Theme Name: Storefront Auto Parts
Theme URI: https://example.com/storefront-auto-parts
Description: Storefront child theme for an automotive eCommerce homepage with customizable visuals and contact details.
Author: Ivancoding
Template: storefront
Version: 1.0.1
Text Domain: storefront-auto-parts
*/

:root {
	--auto-primary: #ef3900;
	--auto-primary-strong: #b52a00;
	--auto-primary-soft: #fff0e8;
	--auto-ink: #1a1f25;
	--auto-muted: #61717f;
	--auto-border: #e9eef2;
	--auto-surface: #ffffff;
	--auto-dark: #25272c;
	--auto-dark-strong: #1d1f24;
	--auto-radius: 18px;
	--auto-shadow: 0 18px 45px rgba(19, 31, 42, 0.12);
}

body,
button,
input,
textarea,
select {
	font-family: "Manrope", "Segoe UI", sans-serif;
}

body {
	background: #f4f5f8;
	color: var(--auto-ink);
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.site-title a,
.main-navigation a {
	font-family: "Rajdhani", "Segoe UI", sans-serif;
}

a {
	color: var(--auto-primary);
}

a:hover {
	color: var(--auto-primary-strong);
}

.button,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.wp-element-button,
.added_to_cart {
	background-color: var(--auto-primary);
	border-color: var(--auto-primary);
	border-radius: 999px;
	color: #fff;
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.wp-element-button:hover,
.added_to_cart:hover {
	background-color: var(--auto-primary-strong);
	border-color: var(--auto-primary-strong);
	color: #fff;
}

.site-header {
	background: var(--auto-dark);
	border-top: 3px solid var(--auto-primary);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: #fff;
}

.site-header .site-title a,
.site-header .site-description,
.site-header .main-navigation ul li a,
.site-header .secondary-navigation a,
.site-header .menu-toggle,
.site-header .site-search .widget_product_search form::before,
.site-header .site-header-cart .cart-contents {
	color: #fff;
}

.site-header .main-navigation ul.menu > li > a {
	font-weight: 700;
	letter-spacing: 0.02em;
}

.site-header .main-navigation ul.menu > li > a:hover,
.site-header .main-navigation ul.menu > li.current-menu-item > a {
	color: #ffd5c5;
}

.site-header .site-search input[type="search"] {
	background: #111317;
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #fff;
}

.site-header .site-search input[type="search"]::placeholder {
	color: rgba(255, 255, 255, 0.62);
}

.site-header-cart .widget_shopping_cart,
.main-navigation ul li ul.sub-menu,
.main-navigation ul li ul.children {
	background: #191b20;
}

.site-header-cart .widget_shopping_cart a,
.main-navigation ul li ul.sub-menu a,
.main-navigation ul li ul.children a {
	color: #fff;
}

.storefront-auto-front-page .site-header {
	background: rgba(29, 31, 36, 0.92);
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 30;
}

.woocommerce-Price-amount,
.star-rating span::before,
.product_meta a,
.entry-content a:not(.button):not(.wp-element-button) {
	color: var(--auto-primary);
}

.onsale {
	background-color: var(--auto-primary) !important;
	border-color: var(--auto-primary) !important;
	color: #fff !important;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
	color: var(--auto-primary) !important;
}

.storefront-auto-front-page #primary {
	float: none;
	margin-right: 0;
	width: 100%;
}

.storefront-auto-front-page .site-main {
	margin-bottom: 0;
}

.auto-home {
	color: var(--auto-ink);
}

.auto-home__full-bleed {
	left: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	position: relative;
	right: 50%;
	width: 100vw;
}

.auto-section {
	padding: 88px 0;
}

.auto-section__header {
	margin-bottom: 34px;
	max-width: 680px;
}

.auto-section__eyebrow {
	color: var(--auto-primary);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.14em;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.auto-section__title {
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.08;
	margin: 0 0 10px;
}

.auto-section__lead {
	color: var(--auto-muted);
	font-size: 1rem;
	line-height: 1.7;
	margin: 0;
}

.auto-hero {
	background: linear-gradient(135deg, #2a2c31, #222428);
	color: #fff;
	isolation: isolate;
	min-height: 720px;
	overflow: hidden;
	padding: 145px 0 86px;
	position: relative;
}

.auto-hero__bg {
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: right bottom;
	inset: 0;
	opacity: 0.16;
	position: absolute;
	z-index: -2;
}

.auto-hero__layer {
	background: linear-gradient(90deg, rgba(27, 29, 33, 0.95) 0%, rgba(27, 29, 33, 0.75) 55%, rgba(27, 29, 33, 0.45) 100%);
	inset: 0;
	position: absolute;
	z-index: -1;
}

.auto-hero__inner {
	align-items: end;
	display: grid;
	gap: 42px;
	grid-template-columns: 1fr 1fr;
	min-height: 520px;
}

.auto-hero__left {
	padding-bottom: 36px;
}

.auto-hero__title-box {
	background: var(--auto-primary);
	max-width: 700px;
	padding: 30px 34px 26px;
	position: relative;
	width: max-content;
}

.auto-hero__title-box::before {
	background: var(--auto-primary);
	bottom: -45px;
	clip-path: polygon(0 0, 100% 0, 32% 100%, 0 100%);
	content: "";
	height: 46px;
	left: 0;
	position: absolute;
	width: 120px;
}

.auto-hero__title-box::after {
	background: var(--auto-primary);
	bottom: -33px;
	content: "";
	height: 33px;
	position: absolute;
	right: 12%;
	width: 62%;
}

.auto-hero h1 {
	color: #fff;
	font-size: clamp(2.2rem, 4.4vw, 4.1rem);
	line-height: 1.03;
	margin: 0;
	text-transform: capitalize;
}

.auto-hero p {
	color: rgba(255, 255, 255, 0.83);
	font-size: 1rem;
	line-height: 1.8;
	margin: 62px 0 20px;
	max-width: 560px;
}

.auto-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.auto-btn {
	border: 1px solid transparent;
	border-radius: 999px;
	display: inline-block;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 12px 24px;
	text-decoration: none;
	transition: 0.25s ease;
}

.auto-btn--primary {
	background: var(--auto-primary);
	color: #fff;
}

.auto-btn--primary:hover {
	background: var(--auto-primary-strong);
	color: #fff;
}

.auto-btn--ghost {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
}

.auto-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.auto-hero__media {
	align-self: end;
	justify-self: end;
	max-width: 660px;
	width: 100%;
}

.auto-hero__media img {
	filter: drop-shadow(0 26px 54px rgba(0, 0, 0, 0.36));
	display: block;
	height: auto;
	width: 100%;
}

.auto-hero__dots {
	bottom: 30px;
	display: flex;
	gap: 12px;
	justify-content: center;
	left: 0;
	position: absolute;
	right: 0;
	z-index: 2;
}

.auto-hero__dots span {
	background: rgba(255, 255, 255, 0.85);
	display: block;
	height: 10px;
	transform: rotate(45deg);
	width: 10px;
}

.auto-hero__dots span.is-active {
	background: var(--auto-primary);
}

.auto-category-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auto-category-card {
	background: var(--auto-surface);
	border: 1px solid var(--auto-border);
	border-radius: var(--auto-radius);
	box-shadow: var(--auto-shadow);
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

.auto-category-card__media img {
	display: block;
	height: 220px;
	object-fit: cover;
	width: 100%;
}

.auto-category-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
}

.auto-category-card h3 {
	font-size: 1.6rem;
	line-height: 1;
	margin: 0 0 8px;
}

.auto-category-card p {
	color: var(--auto-muted);
	flex: 1;
	line-height: 1.7;
	margin: 0 0 16px;
}

.auto-link {
	color: var(--auto-primary);
	font-weight: 700;
	text-decoration: none;
}

.auto-link:hover {
	color: var(--auto-primary-strong);
}

.auto-products {
	background: linear-gradient(180deg, #fffdf9, #fff4eb);
}

.auto-product-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.auto-product-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 16px 38px rgba(18, 23, 29, 0.09);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.auto-product-card__image img {
	aspect-ratio: 1/1;
	display: block;
	object-fit: cover;
	width: 100%;
}

.auto-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 18px;
}

.auto-product-card h3 {
	font-size: 1.45rem;
	line-height: 1.05;
	margin: 0;
}

.auto-product-card h3 a {
	color: var(--auto-ink);
	text-decoration: none;
}

.auto-product-card h3 a:hover {
	color: var(--auto-primary);
}

.auto-product-card__price {
	color: var(--auto-primary);
	font-weight: 800;
}

.auto-product-card__desc {
	color: var(--auto-muted);
	font-size: 0.95rem;
	line-height: 1.7;
	margin: 0;
}

.auto-about__wrap {
	align-items: center;
	display: grid;
	gap: 34px;
	grid-template-columns: 1fr 1fr;
}

.auto-about__image img {
	border-radius: var(--auto-radius);
	box-shadow: var(--auto-shadow);
	display: block;
	width: 100%;
}

.auto-about ul {
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
}

.auto-about li {
	background: var(--auto-primary-soft);
	border-left: 4px solid var(--auto-primary);
	border-radius: 8px;
	font-weight: 600;
	padding: 12px 14px;
}

.auto-cta {
	background: linear-gradient(132deg, rgba(16, 24, 31, 0.94), rgba(143, 52, 0, 0.93));
	color: #fff;
	padding: 64px 0;
	position: relative;
}

.auto-cta::before {
	background-image: var(--cta-image);
	background-position: center;
	background-size: cover;
	content: "";
	inset: 0;
	opacity: 0.18;
	position: absolute;
}

.auto-cta .col-full {
	position: relative;
}

.auto-cta__content {
	max-width: 720px;
}

.auto-cta h2 {
	color: #fff;
	font-size: clamp(2rem, 3vw, 3rem);
	line-height: 0.98;
	margin: 0 0 12px;
}

.auto-cta p {
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.7;
	margin: 0 0 18px;
}

.site-footer {
	background: transparent;
	padding: 0 !important;
}

.site-footer .col-full {
	margin: 0;
	max-width: none;
	padding: 0;
	width: 100%;
}

.auto-footer-wrap {
	background: linear-gradient(145deg, #11161c, #23150d);
	border: none;
	border-radius: 0;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
	color: #f7f8f9;
	margin-top: 0;
	padding: 46px clamp(18px, 5vw, 64px) 24px;
	position: relative;
	overflow: hidden;
	width: 100%;
}

.auto-footer-wrap::before {
	background: radial-gradient(circle at 16% 10%, rgba(188, 75, 0, 0.32), transparent 48%);
	content: "";
	inset: 0;
	position: absolute;
	pointer-events: none;
}

.auto-footer-wrap > * {
	position: relative;
}

.auto-footer-grid {
	display: grid;
	gap: 18px 28px;
	grid-template-columns: 1.1fr 1fr 1fr;
}

.auto-footer-wrap h3,
.auto-footer-wrap h4 {
	color: #fff;
	margin-bottom: 10px;
}

.auto-footer-wrap p,
.auto-footer-wrap a,
.auto-footer-wrap li {
	color: rgba(255, 255, 255, 0.88);
}

.auto-footer-wrap a {
	color: var(--auto-primary);
	font-weight: 700;
}

.auto-footer-wrap a:hover {
	color: #ffb28c;
}

.auto-footer-nav a {
	color: #fff !important;
}

.auto-footer-nav a:hover {
	color: #ffd2bc !important;
}

.auto-footer-wrap ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.auto-footer-wrap li {
	margin-bottom: 7px;
}

.auto-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.auto-footer__social-link {
	align-items: center;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(239, 57, 0, 0.45);
	border-radius: 50%;
	color: var(--auto-primary) !important;
	display: inline-flex;
	height: 40px;
	justify-content: center;
	padding: 0;
	text-decoration: none !important;
	transition: all 0.25s ease;
	width: 40px;
}

.auto-footer__social-link svg {
	fill: currentColor;
	height: 18px;
	width: 18px;
}

.auto-footer__social-link:hover {
	background: var(--auto-primary);
	border-color: var(--auto-primary);
	color: #fff !important;
}

.auto-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 0.9rem;
	margin-top: 16px;
	padding-top: 12px;
}

.auto-contact-page {
	padding: 64px 0 90px;
}

.auto-contact-shell {
	padding-top: 16px;
}

.auto-contact-panel {
	background: linear-gradient(120deg, #171412 0%, #2a160d 46%, #532103 100%) !important;
	border: 1px solid rgba(255, 139, 75, 0.28) !important;
	border-radius: 16px;
	box-shadow: 0 26px 52px rgba(0, 0, 0, 0.36);
	display: grid;
	grid-template-columns: 1fr 0.95fr;
	overflow: hidden;
}

.auto-contact-panel__left {
	background: linear-gradient(165deg, rgba(38, 24, 16, 0.82), rgba(72, 30, 8, 0.74)) !important;
	padding: 28px 26px 26px;
}

.auto-contact-panel__right {
	border-left: 1px solid rgba(255, 170, 125, 0.26) !important;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 28px 28px;
}

.auto-contact-panel__eyebrow {
	color: #ffb58c;
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 6px;
}

.auto-contact-panel__left h1 {
	color: #fff;
	font-size: clamp(1.55rem, 2.4vw, 2.3rem);
	line-height: 1.15;
	margin: 0 0 14px;
}

.auto-contact-panel__right h2 {
	color: #ffd9c4;
	font-size: clamp(1.35rem, 2vw, 1.9rem);
	margin: 0 0 16px;
}

.auto-contact-info-list {
	display: grid;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.auto-contact-info-list li {
	align-items: center;
	color: #ffd7bf;
	display: flex;
	gap: 12px;
	line-height: 1.5;
}

.auto-contact-info-list__icon {
	align-items: center;
	background: rgba(255, 153, 96, 0.22);
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.67rem;
	font-weight: 700;
	height: 28px;
	justify-content: center;
	min-width: 42px;
	padding: 0 7px;
}

.auto-contact-info-list a,
.auto-contact-info-list span {
	color: #ffe7d9;
	font-weight: 600;
	text-decoration: none;
}

.auto-contact-social {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.auto-contact-social a {
	align-items: center;
	background: rgba(255, 150, 84, 0.22);
	border-radius: 50%;
	color: #ffbe96;
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 800;
	height: 30px;
	justify-content: center;
	text-decoration: none;
	transition: all 0.25s ease;
	width: 30px;
}

.auto-contact-social a:hover {
	background: var(--auto-primary);
	color: #fff;
}

.auto-contact-form {
	display: grid;
	gap: 10px;
}

.auto-contact-field {
	display: grid;
	gap: 4px;
}

.auto-contact-field label {
	color: #ffc5a3;
	font-size: 0.73rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.auto-contact-field input,
.auto-contact-field textarea {
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 188, 148, 0.24);
	border-radius: 6px;
	color: #fff;
	padding: 10px 12px;
	width: 100%;
}

.auto-contact-field input:focus,
.auto-contact-field textarea:focus {
	border-color: #ffa163;
	box-shadow: 0 0 0 3px rgba(255, 161, 99, 0.22);
	outline: none;
}

.auto-contact-field input::placeholder,
.auto-contact-field textarea::placeholder {
	color: rgba(255, 218, 196, 0.66);
}

.auto-contact-field textarea {
	min-height: 92px;
	resize: vertical;
}

.auto-contact-submit {
	background: linear-gradient(90deg, #ef3900, #ff7a2f);
	border: none;
	border-radius: 999px;
	color: #fff;
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin-top: 8px;
	padding: 10px 22px;
}

.auto-contact-submit:hover {
	filter: brightness(0.95);
}

.auto-contact-alert {
	border-radius: 10px;
	font-size: 0.94rem;
	margin-bottom: 14px;
	padding: 10px 12px;
}

.auto-contact-alert--success {
	background: #eafcf2;
	border: 1px solid #7bd7a2;
	color: #15613a;
}

.auto-contact-alert--error {
	background: #ffefef;
	border: 1px solid #f1a3a3;
	color: #8a2424;
}

.auto-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.auto-reveal[data-reveal-delay="1"] {
	transition-delay: 0.08s;
}

.auto-reveal[data-reveal-delay="2"] {
	transition-delay: 0.16s;
}

.auto-reveal[data-reveal-delay="3"] {
	transition-delay: 0.24s;
}

.auto-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 1024px) {
	.auto-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.auto-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.auto-footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 900px) {
	.auto-hero__inner,
	.auto-about__wrap {
		grid-template-columns: 1fr;
	}

	.auto-hero {
		min-height: 640px;
		padding: 132px 0 78px;
	}

	.auto-hero__media {
		display: none;
	}

	.auto-hero__left {
		padding-bottom: 26px;
	}

	.auto-hero p {
		margin-top: 54px;
	}

	.auto-hero__dots {
		bottom: 22px;
	}

	.auto-section {
		padding: 70px 0;
	}
}

@media (max-width: 860px) {
	.auto-contact-panel {
		grid-template-columns: 1fr;
	}

	.auto-contact-panel__right {
		border-left: none;
		border-top: 1px solid rgba(255, 255, 255, 0.42);
	}

	.site-header .site-branding,
	.site-header .main-navigation,
	.site-header .site-search,
	.site-header .site-header-cart {
		float: none;
		text-align: center;
		width: 100%;
	}
}

@media (max-width: 680px) {
	.auto-category-grid,
	.auto-product-grid,
	.auto-footer-grid {
		grid-template-columns: 1fr;
	}

	.auto-section {
		padding: 58px 0;
	}

	.auto-hero {
		min-height: 560px;
		padding: 112px 0 74px;
	}

	.auto-hero__title-box {
		padding: 22px 22px 19px;
		width: 100%;
	}

	.auto-hero__title-box::before {
		bottom: -33px;
		height: 34px;
		width: 88px;
	}

	.auto-hero__title-box::after {
		bottom: -23px;
		height: 23px;
	}

	.auto-hero h1 {
		font-size: clamp(1.8rem, 8vw, 2.55rem);
	}

	.auto-hero p {
		font-size: 0.94rem;
		line-height: 1.7;
		margin-top: 44px;
	}

	.auto-hero__buttons .auto-btn {
		text-align: center;
		width: 100%;
	}

	.auto-footer-wrap {
		padding: 28px 18px 18px;
	}

	.auto-contact-page {
		padding: 40px 0 64px;
	}

	.auto-contact-panel__left,
	.auto-contact-panel__right {
		padding: 18px 14px;
	}
}
