/*
Theme Name: Leather Link Studio
Description: Custom theme for Leather Link Studio, built on Forcefield Stratum.
Author: Forcefield Web Development
Author URI: https://forcefieldnc.com
Version: 1.0.0
Requires PHP: 7.4
Text Domain: leatherlinkstudio
*/

@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(fonts/open-sans-normal.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 300 800; font-display: swap; src: url(fonts/open-sans-italic.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(fonts/playfair-display-normal.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap; src: url(fonts/playfair-display-italic.woff2) format('woff2'); }

*, *::before, *::after {
	box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote, form, fieldset, legend {
	margin: 0;
	padding: 0;
}

fieldset {
	border: 0;
}

ul, ol {
	list-style: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

body {
	background: #fff;
	color: #666;
	font: 14px/1.7 'Open Sans', Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	color: #333;
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	line-height: 1.2;
}

a {
	color: inherit;
	text-decoration: none;
}

img,
video {
	max-width: 100%;
	height: auto;
}

iframe,
embed {
	max-width: 100%;
}

button, input, select, textarea {
	font: inherit;
}

strong, b {
	font-weight: 700;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* WooCommerce's flexslider builds the gallery thumbnail strip with unsized <img>
   tags, so each thumb starts at zero height and the product summary below jumps
   as they load (CLS 0.39 on mobile). Thumbs are square 100x100 crops. */
.woocommerce-product-gallery .flex-control-thumbs li img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
}


:root {
	--ff-stone: #716f63;
	--ff-cream: #f0efe3;
	--ff-sand: #d6d2c6;
	--ff-ink: #3b3530;
	--ff-maroon: #851e26;
	--ff-utility-height: 42px;
	--ff-masthead-height: 80px;
	--ff-masthead-scrolled: 54px;
}

html {
	scroll-padding-top: calc(var(--ff-utility-height) + var(--ff-masthead-scrolled) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

.ff-header,
.ff-header *,
.ff-drawer,
.ff-drawer *,
.ff-footer,
.ff-footer * {
	box-sizing: border-box;
}

.ff-header ul,
.ff-drawer ul,
.ff-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ff-icon {
	display: block;
	flex: none;
}

/* Holds the full header height while the fixed header shrinks, so the page never moves. */
body {
	padding-top: calc(var(--ff-utility-height) + var(--ff-masthead-height));
}

.ff-skip-link {
	position: fixed;
	top: -100px;
	left: 10px;
	z-index: 100001;
	padding: 12px 20px;
	background: #fff;
	color: var(--ff-ink);
	font-weight: 600;
}

.ff-skip-link:focus {
	top: 10px;
}


.ff-header {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0);
	right: 0;
	left: 0;
	z-index: 1000;
	box-shadow: 0 0 7px rgba(0, 0, 0, .1);
	font-family: 'Open Sans', Arial, sans-serif;
}

.ff-utility {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	height: var(--ff-utility-height);
	padding: 0 30px;
	background: var(--ff-stone);
	color: var(--ff-cream);
	font-size: 15px;
	font-weight: 600;
}

.ff-utility__group,
.ff-utility__nav {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ff-utility a {
	color: var(--ff-cream);
}

.ff-utility .ff-pill a {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 14px;
	border: 1px solid rgba(240, 239, 227, .4);
	border-radius: 999px;
	background: rgba(0, 0, 0, .18);
	font-size: 13px;
	line-height: 1;
	letter-spacing: .02em;
	transition: background-color .15s, border-color .15s, color .15s;
}

.ff-utility .ff-pill a:hover,
.ff-utility .ff-pill a:focus-visible {
	border-color: var(--ff-cream);
	background: var(--ff-cream);
	color: var(--ff-stone);
}

.ff-utility .ff-pill a[href*="/sale"] {
	border-color: var(--ff-maroon);
	background: var(--ff-maroon);
	color: #fff;
}

.ff-utility .ff-pill a[href*="/sale"]:hover,
.ff-utility .ff-pill a[href*="/sale"]:focus-visible {
	border-color: #6a171e;
	background: #6a171e;
	color: #fff;
}

.ff-utility a:focus-visible {
	outline: 2px solid var(--ff-cream);
	outline-offset: 2px;
}

.ff-social {
	display: block;
	transition: opacity .15s;
}

.ff-social:hover,
.ff-social:focus-visible {
	opacity: .7;
}

.ff-cart {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ff-masthead {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: var(--ff-masthead-height);
	padding: 0 30px;
	background: var(--ff-cream);
}

.ff-logo {
	display: block;
}

.ff-logo img {
	display: block;
	width: auto;
	height: 48px;
}

/* Links fill the bar so the dropdown stays attached as the header shrinks. */
.ff-nav,
.ff-nav > ul,
.ff-nav__list > li {
	height: 100%;
}

.ff-nav__list {
	display: flex;
	gap: 28px;
}

.ff-nav__list > li {
	position: relative;
}

.ff-nav__list > li > a,
.ff-nav__toggle {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ff-stone);
	font: 700 12px/1.4 'Open Sans', Arial, sans-serif;
	text-transform: uppercase;
	cursor: pointer;
	transition: color .15s;
}

.ff-nav__toggle::after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 0 2px 7px;
	border: solid currentColor;
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}

.ff-nav__list > li > a:hover,
.ff-nav__list > li > a:focus-visible,
.ff-nav__list > li:hover > .ff-nav__toggle,
.ff-nav__list > li:focus-within > .ff-nav__toggle,
.ff-nav__list > .current-menu-item > a {
	color: var(--ff-maroon);
}

.ff-nav .sub-menu {
	position: absolute;
	top: 100%;
	right: 0;
	width: 260px;
	padding: 8px 0;
	border-top: 3px solid var(--ff-maroon);
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
	opacity: 0;
	visibility: hidden;
	transition: opacity .15s, visibility .15s;
}

.ff-nav li:hover > .sub-menu,
.ff-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
}

.ff-nav .sub-menu li + li {
	border-top: 1px solid #efece3;
}

.ff-nav .sub-menu a {
	display: block;
	padding: 11px 24px;
	color: var(--ff-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	transition: background-color .15s, color .15s;
}

.ff-nav .sub-menu a:hover,
.ff-nav .sub-menu a:focus-visible {
	background: #f7f5ee;
	color: var(--ff-maroon);
}

.ff-menu-button {
	display: none;
	padding: 8px;
	border: 0;
	background: none;
	color: var(--ff-stone);
	cursor: pointer;
}

.ff-drawer {
	inset: 0 0 0 auto;
	width: min(320px, 85vw);
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 56px 24px 24px;
	border: 0;
	background: var(--ff-cream);
	font-family: 'Open Sans', Arial, sans-serif;
	overflow-y: auto;
}

.ff-drawer::backdrop {
	background: rgba(0, 0, 0, .5);
}

.ff-drawer__close {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 8px;
	border: 0;
	background: none;
	color: var(--ff-stone);
	cursor: pointer;
}

.ff-drawer__label,
.ff-drawer__nav > li > a {
	display: block;
	padding: 12px 0;
	color: var(--ff-ink);
	font-size: 16px;
	font-weight: 700;
}

.ff-drawer .sub-menu a {
	display: block;
	padding: 11px 0 11px 14px;
	color: var(--ff-ink);
	font-size: 15px;
	font-weight: 600;
}


/* The old footer put cream text on a pale tint, about 1.7:1 contrast. Same palette, darker ground. */
.ff-footer {
	background: var(--ff-stone);
	color: var(--ff-cream);
	font: 14px/1.7 'Open Sans', Arial, sans-serif;
}

.ff-footer__main {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	width: 80%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 36px 0;
}

.ff-footer a {
	color: var(--ff-cream);
}

.ff-footer a:hover,
.ff-footer a:focus-visible {
	text-decoration: underline;
}

.ff-footer__logo {
	display: block;
	width: 168px;
	height: auto;
	margin-bottom: 18px;
}

.ff-footer__accept {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.ff-footer__heading {
	margin: 0 0 8px;
	padding: 0;
	color: var(--ff-cream);
	font: 700 18px/1.5 'Playfair Display', Georgia, serif;
	text-transform: uppercase;
}

.ff-footer__contact {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 2px 0;
}

.ff-footer__social {
	display: flex;
	gap: 18px;
	margin-top: 12px;
}

.ff-footer__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 12px max(10%, calc((100% - 1080px) / 2));
	background: var(--ff-sand);
	color: var(--ff-ink);
}

.ff-footer__bar p {
	margin: 0;
	padding: 0;
}

.ff-footer__bar a {
	color: var(--ff-ink);
	font-weight: 700;
}

.ff-footer__address {
	font-size: 11px;
	font-style: normal;
	letter-spacing: .02em;
	opacity: .8;
}


/* Browsers without scroll-driven animations keep the full-height header. */
@supports (animation-timeline: scroll()) {
	.ff-masthead,
	.ff-logo img {
		animation-timing-function: linear;
		animation-fill-mode: both;
		animation-timeline: scroll(root);
		animation-range: 0 120px;
	}

	.ff-masthead {
		animation-name: ff-masthead-shrink;
	}

	.ff-logo img {
		animation-name: ff-logo-shrink;
	}
}

@keyframes ff-masthead-shrink {
	to {
		height: var(--ff-masthead-scrolled);
	}
}

@keyframes ff-logo-shrink {
	to {
		height: 32px;
	}
}


@media (max-width: 768px) {
	html {
		scroll-padding-top: 0;
	}

	body {
		padding-top: 0;
	}

	.ff-header {
		position: static;
	}

	.ff-utility,
	.ff-masthead {
		padding-inline: 16px;
	}

	.ff-utility {
		flex-wrap: wrap;
		justify-content: center;
		height: auto;
		min-height: var(--ff-utility-height);
		padding-block: 6px;
		font-size: 14px;
	}

	.ff-masthead {
		height: 66px;
	}

	.ff-masthead,
	.ff-logo img {
		animation: none;
	}

	.ff-logo img {
		height: 40px;
	}

	.ff-nav {
		display: none;
	}

	.ff-menu-button {
		display: block;
	}

	.ff-footer__main {
		grid-template-columns: 1fr 1fr;
		width: auto;
		padding: 32px 16px;
	}

	.ff-footer__brand {
		grid-column: 1 / -1;
	}

	.ff-footer__bar {
		padding-inline: 16px;
	}
}

@media (max-width: 480px) {
	.ff-footer__main {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.ff-footer__bar {
		flex-direction: column;
		gap: 4px;
	}
}


.ff-archive {
	width: calc(100% - 60px);
	max-width: 1300px;
	min-height: 60vh;
	margin: 0 auto;
	padding: 28px 0 64px;
}

.woocommerce-breadcrumb {
	color: var(--ff-stone);
	font-size: 14px;
}

.woocommerce-breadcrumb a:hover,
.woocommerce-breadcrumb a:focus-visible {
	color: var(--ff-maroon);
}

.ff-archive__header {
	max-width: 760px;
	margin-bottom: 32px;
}

.ff-archive__title {
	margin: 12px 0 0;
	color: var(--ff-ink);
	font: 700 40px/1.15 'Playfair Display', Georgia, serif;
}

.ff-archive__intro {
	margin-top: 14px;
	font-size: 16px;
}

.ff-archive .ff-archive__intro p {
	margin: 0;
	font-weight: 400;
}

.woocommerce-pagination {
	margin-top: 44px;
}

.woocommerce-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-pagination a.page-numbers,
.woocommerce-pagination span.page-numbers {
	display: block;
	min-width: 40px;
	padding: 8px 12px;
	border: 1px solid var(--ff-sand);
	color: var(--ff-ink);
	font-weight: 600;
	text-align: center;
}

.woocommerce-pagination span.current,
.woocommerce-pagination a.page-numbers:hover,
.woocommerce-pagination a.page-numbers:focus-visible {
	border-color: var(--ff-maroon);
	background: var(--ff-maroon);
	color: #fff;
}


.ff-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ff-tile {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid #e8e4d8;
	border-radius: 12px;
	background: #fff;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}

.ff-tile:hover,
.ff-tile:focus-visible {
	border-color: var(--ff-sand);
	box-shadow: 0 14px 34px rgba(59, 53, 48, .13);
	transform: translateY(-3px);
}

.ff-tile__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f7f5ee;
}

.ff-tile__sale {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--ff-maroon);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

.ff-tile__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s;
}

.ff-tile:hover img,
.ff-tile:focus-visible img {
	transform: scale(1.04);
}

.ff-tile__body {
	display: flex;
	flex: 1;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
}

.ff-tile__name {
	margin: 0;
	color: var(--ff-ink);
	font: 700 19px/1.25 'Playfair Display', Georgia, serif;
}

.ff-tile__count {
	margin: 4px 0 0;
	color: var(--ff-stone);
	font-size: 13px;
}

.ff-tile__price {
	margin: 6px 0 0;
	color: var(--ff-maroon);
	font-size: 15px;
	font-weight: 600;
}

.ff-tile__price del {
	margin-right: 6px;
	color: #666;
	font-weight: 400;
}

.ff-tile__price ins {
	text-decoration: none;
}

.ff-tile__arrow {
	flex: none;
	width: 9px;
	height: 9px;
	border: solid var(--ff-maroon);
	border-width: 2px 2px 0 0;
	transform: rotate(45deg);
	transition: transform .2s;
}

.ff-tile:hover .ff-tile__arrow,
.ff-tile:focus-visible .ff-tile__arrow {
	transform: translateX(4px) rotate(45deg);
}


.ff-btn {
	display: inline-flex;
	align-items: center;
	margin-top: 8px;
	padding: 13px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--ff-maroon);
	color: #fff;
	font: 600 15px/1 'Open Sans', Arial, sans-serif;
	cursor: pointer;
	transition: background-color .15s;
}

.ff-btn:hover,
.ff-btn:focus-visible {
	background: #6a171e;
}


@media (max-width: 768px) {
	.ff-archive {
		width: auto;
		padding: 20px 16px 48px;
	}

	.ff-archive__title {
		font-size: 32px;
	}

	.ff-tiles {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.ff-tile__body {
		padding: 12px;
	}

	.ff-tile__name {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.ff-archive__title {
		font-size: 28px;
	}
}
