/*
Theme Name: Emircan Teknik
Description: Emircan Teknik Hırdavat için kurumsal site ve WooCommerce ürün kataloğu.
Author: Emircan Teknik Hırdavat
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: emircan-teknik
*/

:root {
	--paper: #f6f4ef;
	--white: #fff;
	--ink: #201f1d;
	--coal: #171716;
	--coal-light: #242423;
	--red: #e30a17;
	--red-dark: #ab0812;
	--rose: #ff5963;
	--muted: #615e57;
	--line: #ddd9d0;
	--line-dark: #3e3c39;
	--container: 1260px;
	--gutter: clamp(20px, 4.6vw, 74px);
	--font: "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h2 { font-size: clamp(30px, 4.35vw, 61px); letter-spacing: -.047em; }
h3 { font-size: 22px; letter-spacing: -.026em; }
:focus-visible { outline: 3px solid #d82f51; outline-offset: 4px; }
#main-content:focus { outline: none; }

.container { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: clamp(52px, 7vw, 98px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-block-end: clamp(22px, 3vw, 38px); }
.section-heading .text-link { flex: 0 0 auto; }
.section-kicker { display: flex; align-items: center; gap: 12px; margin-block-end: 13px; color: var(--red); font-size: .73rem; font-weight: 800; letter-spacing: .14em; line-height: 1.35; }
.section-kicker::before { width: 29px; height: 2px; flex: 0 0 auto; background: currentColor; content: ""; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus {
	z-index: 10;
	top: 10px;
	left: 10px;
	width: auto;
	height: auto;
	padding: .7rem 1rem;
	clip-path: none;
	background: var(--white);
	color: var(--ink);
}

.emr-button, .product-add {
	display: inline-flex;
	min-height: 50px;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 10px 17px;
	border: 1px solid transparent;
	background: var(--red);
	color: var(--white);
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
	text-decoration: none;
	transition: background-color .16s, color .16s, border-color .16s;
}
.emr-button:hover { background: var(--red-dark); }
.emr-button span, .product-add span { flex: 0 0 auto; font-size: 1.1em; }
.button-outline { border-color: #b8b6b2; background: transparent; }
.button-outline:hover { border-color: var(--white); background: var(--white); color: var(--ink); }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { background: var(--coal); color: var(--white); }
.button-row { display: flex; flex-wrap: wrap; gap: 11px; }
.text-link { display: inline-flex; min-height: 30px; align-items: center; gap: 8px; color: var(--red-dark); font-size: .95rem; font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link span { flex: 0 0 auto; }

/* Header and navigation */
.site-header, .site-footer { background: var(--coal); color: var(--white); }
.contact-strip { background: #232322; border-bottom: 1px solid var(--line-dark); }
.strip-inner { display: flex; min-height: 37px; align-items: center; justify-content: space-between; gap: 14px; }
.strip-inner a { color: #ddd9d4; font-size: .77rem; font-weight: 600; text-decoration: none; }
.strip-inner a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.strip-location, .strip-links { display: flex; align-items: center; gap: 9px; }
.strip-links { gap: 17px; }
.strip-links a + a { padding-inline-start: 17px; border-inline-start: 1px solid #64615b; }
.location-mark { width: 8px; height: 8px; background: var(--rose); transform: rotate(45deg); }
.header-inner { display: flex; min-height: 83px; align-items: center; justify-content: space-between; gap: clamp(14px, 2vw, 35px); }
.site-brand { flex: 0 0 auto; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; color: var(--white); text-decoration: none; }
.wordmark strong, .wordmark small { display: block; line-height: 1; }
.wordmark strong { font-size: 1.62rem; font-weight: 900; letter-spacing: -.055em; }
.wordmark small { margin-top: 5px; color: #d5d0c9; font-size: .54rem; font-weight: 750; letter-spacing: .16em; }
.wordmark-symbol {
	position: relative;
	width: 29px;
	height: 29px;
	flex: 0 0 auto;
	overflow: hidden;
	background: var(--red);
}
.wordmark-symbol::before, .wordmark-symbol::after { position: absolute; background: var(--white); content: ""; transform: skew(-23deg); }
.wordmark-symbol::before { top: 7px; left: 14px; width: 6px; height: 15px; }
.wordmark-symbol::after { top: 13px; left: 8px; width: 5px; height: 9px; }
.custom-logo-link { display: block; }
.custom-logo { width: auto; max-width: min(220px, 35vw); max-height: 58px; object-fit: contain; }
.site-menu { display: flex; align-items: center; gap: clamp(12px, 2.25vw, 32px); padding: 0; margin: 0; list-style: none; }
.site-menu a { position: relative; display: block; padding: 12px 0; color: #e4e0d9; font-size: .93rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.site-menu a:hover, .site-menu a[aria-current], .site-menu .current-menu-item > a, .site-menu .current-menu-parent > a { color: var(--white); }
.site-navigation .site-menu a:hover::after,
.site-navigation .site-menu a[aria-current]::after,
.site-navigation .site-menu .current-menu-item > a::after,
.site-navigation .site-menu .current-menu-parent > a::after {
	position: absolute;
	right: 0;
	bottom: 4px;
	left: 0;
	height: 2px;
	background: var(--rose);
	content: "";
}
.quote-link {
	display: inline-flex;
	min-height: 43px;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 6px 10px;
	border: 1px solid #65615d;
	color: var(--white);
	font-size: .86rem;
	font-weight: 750;
	text-decoration: none;
	white-space: nowrap;
}
.quote-link:hover, .quote-link[aria-current] { border-color: var(--rose); }
.quote-badge { display: grid; min-width: 23px; min-height: 23px; place-items: center; padding-inline: 4px; background: var(--red); color: var(--white); font-size: .75rem; line-height: 1; }
.quote-icon { position: relative; width: 13px; height: 15px; border: 1.5px solid currentColor; }
.quote-icon::before { position: absolute; top: 4px; right: 2px; left: 2px; height: 1px; background: currentColor; box-shadow: 0 3px currentColor; content: ""; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid #65615d; background: transparent; color: var(--white); }
.menu-icon { position: relative; display: block; width: 18px; height: 2px; background: currentColor; }
.menu-icon::before, .menu-icon::after { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; content: ""; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-open .menu-icon { background: transparent; }
.menu-open .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-icon::after { top: 0; transform: rotate(-45deg); }

/* Home */
.hero {
	position: relative;
	display: grid;
	min-height: clamp(540px, 48vw, 710px);
	align-items: center;
	isolation: isolate;
	overflow: hidden;
	background: var(--coal);
	color: var(--white);
}
.hero::before, .hero::after { position: absolute; z-index: -1; content: ""; }
.hero::before {
	inset: 0;
	background-image:
		linear-gradient(90deg, #171716 0%, #171716f5 19%, #171716c9 42%, #17171646 68%, #1717161a 100%),
		var(--hero-image, linear-gradient(128deg, #2c2c2a 30%, #554941 78%, #302c2a 78%, #312826 100%));
	background-position: center, center 54%;
	background-size: cover;
}
.hero::after {
	right: -49px;
	bottom: 0;
	width: clamp(145px, 27vw, 380px);
	height: 13px;
	background: var(--red);
	transform: skew(-35deg);
}
.hero-inner { padding-block: clamp(60px, 7vw, 105px); }
.hero-content { max-width: 760px; }
.hero .section-kicker, .workflow .section-kicker { color: var(--rose); }
.hero h1 { max-width: 13ch; font-size: clamp(47px, 6.35vw, 94px); font-weight: 850; letter-spacing: -.06em; line-height: .99; overflow-wrap: anywhere; }
.hero-description { max-width: 490px; margin-block: 25px 30px; color: #ede9e2; font-size: clamp(1rem, 1.5vw, 1.2rem); }

.catalog-categories { background: #ebe8e1; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.category-card { display: grid; grid-template-columns: minmax(98px, 36%) minmax(0, 1fr); min-height: 122px; align-items: stretch; border: 1px solid var(--line); background: var(--white); text-decoration: none; }
.category-card:hover { border-color: var(--red); }
.category-image { display: grid; min-height: 106px; place-items: center; overflow: hidden; background: var(--white); }
.category-image img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; padding: 8px; }
.category-name { display: flex; min-height: 100%; align-items: center; justify-content: space-between; gap: 7px; padding: 14px; border-inline-start: 1px solid var(--line); background: #f9f8f5; font-size: clamp(.9rem, 1.4vw, 1.15rem); font-weight: 750; line-height: 1.22; overflow-wrap: anywhere; }
.category-name span { flex: 0 0 auto; color: var(--red-dark); }
.emr-image-placeholder { display: grid; width: 100%; height: 100%; min-height: 80px; place-items: center; background: repeating-linear-gradient(135deg, #f3f1ec 0 19px, #eae7df 19px 20px); color: #7a756b; }
.emr-image-placeholder > span { position: relative; width: 40px; height: 34px; border: 2px solid currentColor; transform: skew(-14deg); }
.emr-image-placeholder > span::after { position: absolute; top: -2px; bottom: -2px; left: 12px; width: 2px; background: currentColor; content: ""; }

.company-overview { background: var(--white); }
.company-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 7vw, 105px); }
.company-intro p:not(.section-kicker) { max-width: 53ch; margin-top: 17px; color: var(--muted); }
.company-intro .text-link { margin-top: 14px; }
.company-range { align-self: center; border-top: 1px solid var(--line); }
.company-range > div { position: relative; padding: 13px 0 13px 22px; border-bottom: 1px solid var(--line); }
.company-range > div::before { position: absolute; top: 19px; left: 1px; width: 8px; height: 8px; background: var(--red); content: ""; transform: skew(-18deg); }
.company-range h3 { font-size: 20px; }
.company-range p { margin-top: 5px; color: var(--muted); }

.workflow { position: relative; overflow: hidden; background: var(--coal); color: var(--white); }
.workflow::after { position: absolute; right: -84px; bottom: -134px; width: 260px; height: 260px; border: 19px solid #33302e; content: ""; transform: rotate(-17deg) skew(-22deg); pointer-events: none; }
.workflow-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: start; gap: clamp(42px, 7vw, 118px); }
.workflow-intro p:not(.section-kicker), .workflow-items p { margin-top: 15px; color: #ddd7cf; }
.workflow-intro .text-link { margin-top: 20px; color: #ff8093; }
.workflow-items { display: grid; gap: 0; border-top: 1px solid #545049; }
.workflow-items > div { padding: 19px 0 19px 21px; border-bottom: 1px solid #545049; border-left: 2px solid var(--red); }
.workflow-items h3 { font-size: clamp(20px, 2.5vw, 30px); }
.workflow-items p { margin-top: 7px; }
.catalog-selection { background: var(--paper); }
.home-brands { border-top: 1px solid var(--line); background: #ebe8e1; }
.brand-strip, .brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.brand-strip a, .brand-card { display: grid; min-height: 85px; align-items: center; padding: 18px; border: 1px solid var(--line); background: var(--white); font-size: clamp(.93rem, 1.6vw, 1.25rem); font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; text-decoration: none; }
.brand-strip a:hover, .brand-card:hover { border-color: var(--red); color: var(--red-dark); }
.brand-card { min-height: 126px; align-content: space-between; gap: 16px; }
.brand-card > span { display: flex; justify-content: space-between; gap: 10px; color: var(--red-dark); font-size: .85rem; font-weight: 650; }

/* Interior pages and catalog */
.page-heading { position: relative; isolation: isolate; overflow: hidden; border-bottom: 4px solid var(--red); background: var(--coal-light); color: var(--white); }
.page-heading::before { position: absolute; z-index: -1; top: -145px; right: -30px; width: min(40vw, 480px); height: 430px; border: 1px solid #494440; background: repeating-linear-gradient(155deg, transparent 0 37px, #494440 37px 38px); content: ""; opacity: .58; transform: skew(-23deg); }
.page-heading-inner { padding-block: 22px clamp(37px, 6vw, 74px); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; color: #d4cfc7; font-size: .82rem; }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs [aria-current] { overflow-wrap: anywhere; }
.page-heading h1 { max-width: 22ch; margin-top: clamp(22px, 3vw, 40px); font-size: clamp(37px, 5.7vw, 77px); letter-spacing: -.055em; overflow-wrap: anywhere; }
.page-heading p { max-width: 660px; margin-top: 12px; color: #e2ddd7; }
.entry-content { font-size: 1.05rem; }
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2 { font-size: clamp(27px, 3.5vw, 45px); }
.entry-content h3 { margin-top: 1.6rem; }
.entry-content a:not(.emr-button) { color: var(--red-dark); text-underline-offset: 3px; }
.entry-content article + article { margin-top: 35px; }
.entry-intro { max-width: 760px; margin-bottom: 24px; }
.about-grid, .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: clamp(22px, 5vw, 70px); }
.about-grid { align-items: center; }
.about-visual { display: grid; min-height: clamp(235px, 31vw, 390px); align-content: end; padding: clamp(25px, 4vw, 52px); border-bottom: 5px solid var(--red); background: repeating-linear-gradient(124deg, #272523 0 55px, #302c29 55px 56px); color: var(--white); }
.about-visual .section-kicker { color: var(--rose); }
.about-visual h2 { max-width: 10ch; }
.about-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: clamp(25px, 4.2vw, 54px); }
.about-topics > div { padding: clamp(18px, 2.5vw, 30px); border: 1px solid var(--line); border-top: 3px solid var(--red); background: var(--white); }
.about-topics p { margin-top: 10px; color: var(--muted); }
.about-topics .text-link { margin-top: 7px; }
.contact-grid { gap: clamp(13px, 2.7vw, 36px); }
.contact-card { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 17px; padding: clamp(23px, 3.5vw, 47px); border: 1px solid var(--line); background: var(--white); overflow-wrap: anywhere; }
.contact-card h2 { font-size: clamp(26px, 3.1vw, 39px); }
.contact-card address { max-width: 32ch; font-size: 1.12rem; }
.contact-address { border-top: 4px solid var(--red); }
.contact-phone { color: var(--ink); font-size: clamp(19px, 2.8vw, 33px); font-weight: 750; text-decoration: none; }
.contact-phone:hover { text-decoration: underline; }

.catalog-section, .product-detail-section { padding-top: clamp(30px, 4vw, 56px); }
.catalog-filter {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) auto;
	align-items: end;
	gap: 14px;
	padding: clamp(15px, 2.5vw, 27px);
	border: 1px solid var(--line);
	border-top: 3px solid var(--red);
	background: var(--white);
}
.filter-field, .detail-quantity { display: grid; min-width: 0; gap: 6px; }
.filter-field label, .detail-quantity label { font-size: .88rem; font-weight: 700; }
.filter-field input, .filter-field select, .detail-quantity input {
	width: 100%;
	min-width: 0;
	min-height: 50px;
	padding: 9px 10px;
	border: 1px solid #b6afa2;
	border-radius: 0;
	background: #fbfaf8;
	color: var(--ink);
	font-size: 1rem;
}
.catalog-results-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-block: 28px 17px; }
.catalog-results-header h2 { font-size: 21px; }
.empty-state { padding: clamp(25px, 5vw, 52px); border: 1px solid var(--line); background: var(--white); }
.empty-state > * + * { margin-top: .7rem; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(11px, 1.5vw, 20px); }
.product-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); background: var(--white); }
.product-image { display: grid; min-width: 0; aspect-ratio: 1.25; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.product-image img { width: 100%; height: 100%; padding: 10px; object-fit: contain; transition: transform .2s; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: clamp(12px, 1.7vw, 21px); }
.product-brand { color: var(--red-dark); font-size: .72rem; font-weight: 800; letter-spacing: .035em; overflow-wrap: anywhere; }
.product-body h3 { font-size: clamp(15px, 1.45vw, 20px); line-height: 1.32; overflow-wrap: anywhere; }
.product-body h3 a { text-decoration: none; }
.product-body h3 a:hover { color: var(--red-dark); text-decoration: underline; text-underline-offset: 3px; }
.product-code { color: var(--muted); font-size: .77rem; overflow-wrap: anywhere; }
.product-code b { font-weight: 750; }
.product-add { min-height: 42px; margin-top: auto; padding: 7px 9px; border-color: #cfc9bd; background: #faf9f6; color: var(--ink); font-size: .8rem; }
.product-add:hover { border-color: var(--red); color: var(--red-dark); }
.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: inline-grid; min-width: 42px; min-height: 42px; place-items: center; padding: 6px 9px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: .88rem; font-weight: 750; text-decoration: none; }
.pagination a:hover { border-color: var(--red); }
.pagination .current { border-color: var(--red); background: var(--red); color: var(--white); }
.pagination .dots { border-color: transparent; background: transparent; }

.product-detail-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 57px); }
.detail-image { display: grid; aspect-ratio: 1.15; place-items: center; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.detail-image img { width: 100%; height: 100%; padding: clamp(12px, 3vw, 40px); object-fit: contain; }
.detail-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.detail-gallery a { display: grid; width: 66px; height: 66px; place-items: center; border: 1px solid var(--line); background: var(--white); }
.detail-gallery img { width: 100%; height: 100%; object-fit: contain; }
.detail-info { min-width: 0; }
.detail-info h2 { margin-bottom: 17px; font-size: clamp(27px, 4vw, 50px); }
.detail-specs { padding: 0; margin: 0 0 22px; border-top: 1px solid var(--line); }
.detail-specs > div { display: grid; grid-template-columns: minmax(85px, .6fr) minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.detail-specs dt { color: var(--muted); font-size: .9rem; }
.detail-specs dd { display: flex; flex-wrap: wrap; gap: 5px 10px; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.detail-specs a { color: var(--red-dark); text-underline-offset: 3px; }
.detail-quote { display: flex; flex-wrap: wrap; align-items: end; gap: 11px; margin-bottom: 10px; }
.detail-quantity { width: 86px; }
.detail-description { margin-top: clamp(26px, 5vw, 62px); padding: clamp(22px, 4vw, 45px); border: 1px solid var(--line); border-left: 4px solid var(--red); background: var(--white); }
.detail-description > :last-child { margin-bottom: 0; }
.detail-description h2 { margin-bottom: .6em; }
.quote-page { min-height: 300px; }
.quote-page input, .quote-page textarea { max-width: 100%; }
.quote-page .emr-quote { --emr-quote-accent: var(--red); --emr-quote-ink: var(--ink); --emr-quote-line: var(--line); padding: clamp(15px, 4vw, 38px); border: 1px solid var(--line); border-top: 3px solid var(--red); background: var(--white); }

/* Contact and footer */
.contact-callout { position: relative; isolation: isolate; overflow: hidden; background: var(--red-dark); color: var(--white); }
.contact-callout::after { position: absolute; z-index: -1; right: 0; bottom: 0; width: 21%; height: 100%; background: repeating-linear-gradient(128deg, transparent 0 22px, #ffffff24 22px 23px); content: ""; }
.callout-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding-block: clamp(38px, 5.5vw, 77px); }
.callout-inner h2 { max-width: 19ch; font-size: clamp(29px, 4.4vw, 62px); }
.callout-inner p:not(.section-kicker) { max-width: 540px; margin-top: 12px; color: #ffebee; }
.callout-actions { display: grid; justify-items: start; gap: 8px; }
.callout-actions > a:not(.emr-button) { color: var(--white); font-weight: 700; text-underline-offset: 3px; }
.contact-callout :focus-visible { outline-color: var(--white); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .8fr) minmax(0, 1fr); gap: clamp(25px, 5vw, 70px); padding-block: clamp(42px, 6vw, 65px); }
.footer-grid p { max-width: 280px; margin-top: 16px; color: #cfc8be; }
.footer-grid h2 { margin-bottom: 12px; font-size: 1.12rem; letter-spacing: -.015em; }
.footer-grid .site-menu { flex-wrap: wrap; gap: 5px 16px; align-items: flex-start; }
.footer-grid .site-menu a { padding-block: 2px; font-size: .88rem; }
.footer-grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-contact address { max-width: 37ch; }
.footer-contact a { display: block; width: fit-content; margin-bottom: 6px; color: #ddd8d0; font-size: .9rem; overflow-wrap: anywhere; text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding-block: 15px; border-top: 1px solid var(--line-dark); color: #d6d0c8; font-size: .81rem; }
.footer-bottom a { text-underline-offset: 3px; }

@media (max-width: 980px) {
	.category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.catalog-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.filter-search { grid-column: 1 / -1; }
}

@media (max-width: 850px) {
	.header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; min-height: 70px; gap: 8px; padding-block: 10px; }
	.site-navigation { grid-column: 1 / -1; grid-row: 2; }
	.menu-ready:not(.menu-open) .site-navigation { display: none; }
	.menu-ready .menu-toggle { display: inline-flex; grid-column: 3; grid-row: 1; }
	.quote-link { grid-column: 2; grid-row: 1; }
	.site-navigation .site-menu { flex-wrap: wrap; gap: 0 20px; padding-block: 6px; border-top: 1px solid var(--line-dark); }
	.site-navigation .site-menu a { padding-block: 9px; }
	.hero::before { background-image: linear-gradient(90deg, #171716f5, #171716aa 62%, #1717162b), var(--hero-image, linear-gradient(130deg, #252422, #4c3f38)); background-position: center, 63% center; }
	.footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
	.strip-inner { min-height: 34px; gap: 8px; }
	.strip-inner a { font-size: .68rem; }
	.strip-links { gap: 8px; }
	.strip-links a + a { padding-inline-start: 8px; }
	.location-mark { display: none; }
	.wordmark { gap: 7px; }
	.wordmark strong { font-size: 1.33rem; }
	.wordmark small { font-size: .45rem; }
	.wordmark-symbol { width: 27px; height: 27px; }
	.quote-link { gap: 6px; padding-inline: 7px; font-size: .73rem; }
	.quote-icon { display: none; }
	.site-navigation .site-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-navigation .site-menu a { padding-block: 10px; }
	.site-navigation .site-menu a::after { right: auto !important; width: 30px; }
	.hero { min-height: 500px; }
	.hero::before { background-image: linear-gradient(90deg, #171716f5, #171716af 75%, #17171684), var(--hero-image, linear-gradient(130deg, #252422, #4c3f38)); background-position: center, 61% center; }
	.hero h1 { font-size: clamp(42px, 10.4vw, 64px); }
	.hero-description { margin-block: 20px 24px; }
	.button-row .emr-button, .emr-button { min-height: 47px; padding-inline: 11px; font-size: .91rem; }
	.section-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
	.category-grid { grid-template-columns: minmax(0, 1fr); gap: 7px; }
	.category-card { min-height: 93px; grid-template-columns: 93px minmax(0, 1fr); }
	.category-image { min-height: 93px; }
	.company-grid, .workflow-grid, .about-grid, .about-topics, .contact-grid, .product-detail-grid, .callout-inner, .footer-grid { grid-template-columns: minmax(0, 1fr); }
	.brand-strip, .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.brand-strip a, .brand-card { padding: 12px; }
	.catalog-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.catalog-filter .emr-button { grid-column: 1 / -1; }
	.filter-field input, .filter-field select, .detail-quantity input { min-height: 47px; }
	.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.product-body { padding: 10px; }
	.product-code { font-size: .72rem; }
	.product-add { min-height: 44px; gap: 4px; padding-inline: 6px; }
	.callout-inner { gap: 19px; }
}

@media (max-width: 350px) {
	.strip-location { display: none; }
	.strip-inner { justify-content: end; }
	.quote-link-label { max-width: 42px; line-height: 1.12; white-space: normal; }
	.catalog-filter { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}

/* Catalog, brand images and quick product view. */
.site-footer { padding-bottom: 60px; }
.catalog-layout { display: grid; grid-template-columns: minmax(190px, 220px) minmax(0, 1fr); gap: clamp(18px, 2.5vw, 36px); align-items: start; }
.catalog-sidebar .catalog-filter { grid-template-columns: minmax(0, 1fr); gap: 13px; padding: 16px; }
.catalog-filter-toggle { display: none; }
.catalog-results { min-width: 0; }
.catalog-results-header { margin-top: 0; }
.catalog-product-grid { grid-template-columns: repeat(var(--catalog-columns, 5), minmax(0, 1fr)); }
.brand-logo { display: grid; min-height: 80px; place-items: center; padding: 8px; }
.brand-logo img { width: 100%; height: 75px; object-fit: contain; }
.whatsapp-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 9; display: inline-flex; gap: 9px; align-items: center; min-height: 48px; padding: 9px 16px; border-radius: 30px; background: #126b42; color: #fff; font-size: .9rem; font-weight: 750; text-decoration: none; box-shadow: 0 4px 14px #15141035; }
.whatsapp-action { background: #126b42; margin-top: 12px; }
.whatsapp-float:hover, .whatsapp-action:hover { background: #0a5231; }
.emr-product-popup { width: min(900px, calc(100% - 36px)); max-height: min(88vh, 900px); max-height: min(88dvh, 900px); padding: 0; border: 0; border-top: 4px solid var(--red); background: var(--paper); color: var(--ink); overscroll-behavior: contain; }
.emr-product-popup::backdrop { background: #171716b5; }
body:has(.emr-product-popup[open]) { overflow: hidden; }
.popup-header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 15px; align-items: start; padding: 16px clamp(16px, 3vw, 27px); border-bottom: 1px solid var(--line); background: var(--white); }
.popup-header h2 { padding-top: 6px; font-size: clamp(20px, 3vw, 34px); overflow-wrap: anywhere; }
.popup-close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 25px; }
.popup-content, .popup-share { padding: clamp(16px, 3vw, 27px); }
.popup-content .detail-info h2 { font-size: clamp(21px, 2.4vw, 30px); }
.popup-content .detail-description { margin-top: 24px; padding: 19px; }
.popup-content .detail-description h2 { font-size: 23px; }
.product-image, .detail-image, .category-image { grid-template-rows: minmax(0, 1fr); }
.product-image img, .detail-image img, .category-image img { min-width: 0; min-height: 0; }
.popup-content .detail-image img { padding: 14px; }
.popup-content > .product-detail-section { padding: 0; }
.popup-content > .product-detail-section > .container { width: 100%; }
.popup-share { padding-top: 0; }
.popup-share button { padding: 6px 0; border: 0; background: transparent; }
.popup-share input { display: block; max-width: 100%; width: 400px; margin-top: 8px; padding: 8px; }
.popup-share p { font-size: .88rem; }
@media (max-width: 1060px) and (min-width: 761px) {
	.catalog-product-grid { grid-template-columns: repeat(var(--catalog-tablet-columns, 3), minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.catalog-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.catalog-filter-toggle { display: inline-flex; margin-bottom: 8px; }
	.catalog-sidebar:has(.catalog-filter-toggle[aria-expanded="false"]) .catalog-filter { display: none; }
	.catalog-sidebar .catalog-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.catalog-sidebar .catalog-filter .emr-button { grid-column: 1 / -1; }
	.emr-product-popup { width: calc(100% - 20px); max-height: 92dvh; }
	.popup-content .product-detail-grid { grid-template-columns: minmax(0, 1fr); }
	.popup-content .detail-image { max-height: 320px; }
}
