/*
Theme Name: Furrtrition
Theme URI: https://furrtritionpetproducts.com.au/
Author: Jack of Clubs
Description: Custom WooCommerce theme for Furrtrition Pet Products. Rebuilt from the Elementor design tokens recovered from the live site.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: furrtrition
*/

/*
 * Design tokens recovered verbatim from the live site's Elementor kit
 * (elementor-kit-25) and the four per-page generated stylesheets.
 * These are the site's real colours and fonts, not an approximation.
 */
:root {
	--furr-primary:        #000000;
	--furr-secondary:      #F038BF;
	--furr-accent:         #F038BF;
	--furr-text:           #797373;
	--furr-cream:          #FAF1EC;
	--furr-blush:          #F7E0E1;
	--furr-blush-deep:     #F0EDED;
	--furr-rose:           #B45357;
	--furr-amber:          #FFC01D;
	--furr-peach:          #FFBC7D;
	--furr-stone:          #C1BFBF;
	--furr-white:          #FFFFFF;

	--furr-font-heading:   "Prata", Georgia, serif;
	--furr-font-body:      "Poppins", -apple-system, sans-serif;

	--furr-radius:         6px;
	--furr-wrap:           1320px;
}

/* ---------------------------------------------------------------- base */

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--furr-font-body);
	font-size: 16px;
	line-height: 1.625;
	color: var(--furr-text);
	background: var(--furr-white);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--furr-rose); text-decoration: none; }
a:hover { color: var(--furr-secondary); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--furr-font-heading);
	font-weight: 600;
	color: var(--furr-primary);
	line-height: 1.355;
	margin: 0 0 .5em;
}

h1 { font-size: 54px; }
h2 { font-size: 42px; }
h3 { font-size: 30px; }

.furr-wrap {
	max-width: var(--furr-wrap);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------------------------------------------------------------- header */

.site-header {
	background: var(--furr-white);
	border-bottom: 1px solid var(--furr-blush-deep);
	position: sticky;
	top: 0;
	z-index: 90;
}

.site-header .furr-wrap {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 88px;
}

.site-branding img { max-height: 56px; width: auto; }
.site-title { font-family: var(--furr-font-heading); font-size: 26px; margin: 0; }
.site-title a { color: var(--furr-primary); }

.furr-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 30px;
	align-items: center;
}
.furr-nav a {
	font-family: var(--furr-font-body);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--furr-primary);
}
.furr-nav a:hover { color: var(--furr-secondary); }
.furr-nav li.current-menu-item > a,
.furr-nav li.current_page_item > a { color: var(--furr-secondary); }

.furr-nav .menu-item-has-children { position: relative; }
.furr-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	box-shadow: 0 8px 30px rgba(0,0,0,.10);
	padding: 8px 0;
	display: none;
	z-index: 99;
}
.furr-nav li:hover > .sub-menu { display: block; }
.furr-nav .sub-menu a {
	display: block;
	padding: 9px 20px;
	letter-spacing: 1px;
	font-weight: 500;
	text-transform: none;
	font-size: 14px;
}
.furr-nav .sub-menu li.current-menu-item > a { color: var(--furr-secondary); }

.furr-header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.furr-cart-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--furr-primary);
}
.furr-cart-count {
	background: var(--furr-secondary);
	color: #fff;
	border-radius: 50%;
	min-width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	padding: 0 5px;
}

.furr-mobile-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--furr-primary); }

/* ---------------------------------------------------------------- hero */

.furr-hero {
	background: var(--furr-cream);
	padding: 84px 0 92px;
	text-align: center;
}
.furr-hero h1 {
	font-size: 70px;
	line-height: 1.25;
	max-width: 900px;
	margin: 0 auto 22px;
}
.furr-hero h1 em { font-style: normal; color: var(--furr-secondary); }
.furr-hero p {
	font-size: 17px;
	max-width: 640px;
	margin: 0 auto 34px;
	color: var(--furr-text);
}
.furr-hero .furr-cta { display: inline-block; }

.furr-btn {
	display: inline-block;
	background: var(--furr-secondary);
	color: #fff;
	padding: 15px 34px;
	border-radius: var(--furr-radius);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
	transition: background .18s ease;
}
.furr-btn:hover { background: var(--furr-rose); color: #fff; }
.furr-btn--ghost { background: transparent; color: var(--furr-primary); border: 2px solid var(--furr-primary); }
.furr-btn--ghost:hover { background: var(--furr-primary); color: #fff; }

/* ---------------------------------------------------------------- sections */

.furr-section { padding: 86px 0; }
.furr-section--blush { background: var(--furr-blush); }
.furr-section--cream { background: var(--furr-cream); }

.furr-section-head { text-align: center; max-width: 760px; margin: 0 auto 54px; }
.furr-section-head h2 { margin-bottom: 14px; }
.furr-section-head p { font-size: 17px; margin: 0; }

.furr-eyebrow {
	display: block;
	font-family: var(--furr-font-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--furr-secondary);
	margin-bottom: 14px;
}

/* ---------------------------------------------------------------- categories */

.furr-cats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}
.furr-cat {
	background: #fff;
	border-radius: var(--furr-radius);
	overflow: hidden;
	box-shadow: 0 4px 22px rgba(0,0,0,.05);
	text-align: center;
	transition: transform .2s ease, box-shadow .2s ease;
}
.furr-cat:hover { transform: translateY(-4px); box-shadow: 0 12px 34px rgba(0,0,0,.10); }
.furr-cat img {
	width: 100%;
	aspect-ratio: 1/1;
	object-fit: cover;
	display: block;
	/* get_the_post_thumbnail() emits its own dimensions; the tile is square
	   and crops, so the attributes are overridden here. */
	height: auto;
	max-height: 100%;
}
.furr-cat { position: relative; overflow: hidden; aspect-ratio: 1/1; }
.furr-cat img { position: absolute; inset: 0; height: 100%; }
/* The category label sits over the photograph. It needs its own dark scrim
   and white text - the brand pink used elsewhere is unreadable on a photo.
   This is one rule: a later duplicate was overriding the colour. */
.furr-cat h5 {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	font-family: var(--furr-font-body);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	background: linear-gradient( to top, rgba(0,0,0,.78) 40%, rgba(0,0,0,0) );
	color: #fff;
	margin: 0;
	padding: 40px 12px 18px;
	text-shadow: 0 1px 3px rgba(0,0,0,.5);
	/* The tile is a fixed square and the image is absolutely positioned, so
	   the label is anchored to the bottom of the tile rather than pulled up
	   with a negative margin - which the tile's overflow:hidden would clip. */
	left: 0;
	right: 0;
	bottom: 0;
}


/* ---------------------------------------------------------------- feature grid */

.furr-features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	text-align: center;
}
.furr-feature h3 { font-size: 24px; margin-bottom: 10px; }
.furr-feature p { margin: 0; font-size: 15px; }
.furr-feature .furr-icon {
	width: 66px;
	height: 66px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--furr-blush);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--furr-primary);
}
/* The icons are inline SVG, not a font glyph, so they need an explicit size -
   a bare <svg> has no intrinsic dimensions and collapses to nothing. */
.furr-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* ---------------------------------------------------------------- gallery */

.furr-gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.furr-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--furr-radius); display: block; }
.furr-gallery a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.furr-gallery a:nth-child(6) { grid-column: span 2; }

/* ---------------------------------------------------------------- testimonials */

.furr-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.furr-quote {
	background: #fff;
	border-radius: var(--furr-radius);
	padding: 34px 30px;
	box-shadow: 0 4px 22px rgba(0,0,0,.05);
}
.furr-quote p { font-style: italic; margin: 0 0 16px; }
.furr-quote cite { font-style: normal; font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--furr-rose); }

/* ---------------------------------------------------------------- footer */

.site-footer {
	background: var(--furr-primary);
	color: #C1BFBF;
	padding: 70px 0 34px;
}
.site-footer h4 {
	color: #fff;
	font-family: var(--furr-font-body);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 18px;
}
.site-footer a { color: #C1BFBF; }
.site-footer a:hover { color: var(--furr-secondary); }
.furr-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.4fr;
	gap: 40px;
	padding-bottom: 44px;
	border-bottom: 1px solid rgba(255,255,255,.12);
}
.furr-footer-grid ul { list-style: none; margin: 0; padding: 0; }
.furr-footer-grid li { margin-bottom: 10px; font-size: 15px; }
.furr-footer-grid .furr-logo { height: 56px; margin-bottom: 18px; }
.furr-social { display: flex; gap: 12px; margin-top: 16px; }
.furr-social a {
	width: 38px; height: 38px;
	border: 1px solid rgba(255,255,255,.25);
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 700;
}
.furr-social a:hover { background: var(--furr-secondary); border-color: var(--furr-secondary); color: #fff; }
.furr-footer-bottom { padding-top: 26px; font-size: 14px; text-align: center; }

/* ---------------------------------------------------------------- shop */

.furr-shop-hero {
	background: var(--furr-blush);
	padding: 62px 0;
	text-align: center;
}
.furr-shop-hero h1 { margin-bottom: 8px; }
.furr-shop-hero p { margin: 0; font-size: 16px; }

.furr-breadcrumb {
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--furr-text);
	margin-bottom: 26px;
}
.furr-breadcrumb a { color: var(--furr-text); }
.furr-breadcrumb span { margin: 0 8px; color: var(--furr-stone); }

.furr-shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; padding: 54px 0 80px; }
.furr-shop-layout.woocommerce-page .furr-sidebar { display: none; }
.furr-shop-layout .furr-sidebar { font-size: 15px; }
.furr-shop-layout .widget { margin-bottom: 30px; }
.furr-shop-layout .widget-title {
	font-family: var(--furr-font-body);
	font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
	margin-bottom: 14px; color: var(--furr-primary);
}
.furr-shop-layout ul { list-style: none; margin: 0; padding: 0; }
.furr-shop-layout li { margin-bottom: 9px; }
.furr-shop-layout select { width: 100%; padding: 10px; border: 1px solid var(--furr-stone); border-radius: 4px; }

ul.products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin: 0; padding: 0;
	list-style: none;
}
/* WooCommerce writes columns-2/3/4 onto the same element. The theme's grid
   decides the layout, so the class is neutralised rather than fought. */
ul.products[class*="columns-"] { grid-template-columns: repeat(3, 1fr); }
/* WooCommerce clears its product list with ::before/::after pseudo-elements
   (display: table). In a grid container those become grid ITEMS, and the
   ::before occupies the first cell - which showed as an empty product slot.
   They are not needed here, because the grid does the clearing. */
/* WooCommerce's own rule is `.woocommerce ul.products::before` - two classes,
   so it outranks a bare `ul.products::before`. The rule has to match its
   specificity, or the pseudo-element stays a grid item. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
	content: none !important;
	display: none !important;
}
ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
ul.products li.product img { border-radius: var(--furr-radius); display: block; }
ul.products li.product .woocommerce-loop-product__title {
	font-size: 19px; margin: 16px 0 6px; line-height: 1.35;
}
ul.products li.product .price { display: block; margin-bottom: 14px; font-size: 17px; }
ul.products li.product .button { font-size: 12px !important; padding: 12px 20px !important; }
.woocommerce ul.products li.product .onsale {
	min-width: auto; min-height: auto; padding: 6px 12px; margin: 10px 10px 0 0;
	font-size: 11px; letter-spacing: 1px;
}

.furr-shop-tools {
	display: flex; justify-content: space-between; align-items: center;
	margin-bottom: 26px; font-size: 14px;
}
.furr-shop-tools select {
	padding: 9px 14px;
	border: 1px solid var(--furr-stone);
	border-radius: 4px;
	background: #fff;
	font-family: var(--furr-font-body);
	font-size: 13px;
	color: var(--furr-primary);
}
.furr-shop-tools select:focus { outline: 2px solid var(--furr-secondary); outline-offset: 1px; }
.woocommerce-ordering { margin: 0; }
.furr-shop-layout .widget .wp-block-search__button {
	background: var(--furr-secondary);
	border: 0;
	border-radius: 4px;
	color: #fff;
	font-weight: 700;
	padding: 9px 18px;
	cursor: pointer;
}
.furr-shop-layout .widget .wp-block-search__input {
	border: 1px solid var(--furr-stone);
	border-radius: 4px;
	padding: 9px 12px;
	width: 100%;
}

/* ---------------------------------------------------------------- product */

.single-product div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; padding: 54px 0 80px; }
.single-product .woocommerce-product-gallery { width: auto !important; float: none !important; }
.single-product .product_title { font-size: 38px; margin-bottom: 14px; }
.single-product .price { font-size: 28px; margin-bottom: 20px; }
.single-product .woocommerce-product-details__short-description { margin-bottom: 22px; }
.single-product .product_meta { margin-top: 22px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.single-product form.cart { margin: 26px 0; }
.single-product .quantity input { width: 78px; padding: 12px; border: 1px solid var(--furr-stone); border-radius: 4px; }
.single-product .woocommerce-tabs { grid-column: 1 / -1; }

.furrtrition-storage-note {
	background: var(--furr-cream);
	border-left: 4px solid var(--furr-amber);
	padding: 14px 18px;
	border-radius: 0 4px 4px 0;
	font-size: 15px;
	margin-bottom: 20px;
}

.related.products { padding-top: 20px; }

/* ---------------------------------------------------------------- cart & checkout */

.woocommerce-cart, .woocommerce-checkout { padding: 54px 0 80px; }
.woocommerce table.shop_table { border-radius: var(--furr-radius); border-color: var(--furr-blush-deep); }
.woocommerce table.shop_table th { font-family: var(--furr-font-body); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.woocommerce form .form-row label { font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.woocommerce .quantity input { border: 1px solid var(--furr-stone); border-radius: 4px; padding: 10px; }
#coupon_code { border: 1px solid var(--furr-stone) !important; border-radius: 4px; padding: 10px; }

/* ---------------------------------------------------------------- misc */

.page-hero {
	background: var(--furr-cream);
	padding: 66px 0;
	text-align: center;
}
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { margin: 0; font-size: 17px; }

.furr-page { padding: 54px 0 80px; }
.furr-page h2 { margin-top: 38px; }
.furr-prose { max-width: 780px; }

.furr-empty { text-align: center; padding: 70px 0; }
.furr-empty h2 { margin-bottom: 12px; }

.furr-notice {
	background: var(--furr-blush);
	border-radius: var(--furr-radius);
	padding: 16px 22px;
	margin-bottom: 26px;
	font-size: 15px;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
	.furr-cats { grid-template-columns: repeat(2, 1fr); }
	.furr-features { grid-template-columns: repeat(2, 1fr); }
	.furr-quotes { grid-template-columns: 1fr; }
	.furr-gallery { grid-template-columns: repeat(2, 1fr); }
	.furr-gallery a:nth-child(1) { grid-column: span 2; grid-row: span 1; }
	ul.products, ul.products[class*="columns-"] { grid-template-columns: repeat(2, 1fr); }
	.furr-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 782px) {
	h1 { font-size: 34px; }
	h2 { font-size: 28px; }
	.furr-hero h1 { font-size: 38px; }
	.furr-mobile-toggle { display: block; }
	.furr-nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		background: #fff; border-bottom: 1px solid var(--furr-blush-deep);
		padding: 18px 24px; z-index: 99;
	}
	.furr-nav.is-open { display: block; }
	.furr-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }
	.furr-nav .sub-menu { position: static; display: block; box-shadow: none; padding-left: 14px; }
	.site-header .furr-wrap { flex-wrap: wrap; gap: 16px; min-height: 68px; }
	.furr-shop-layout { grid-template-columns: 1fr; }
	.single-product div.product { grid-template-columns: 1fr; gap: 30px; }
	.furr-cats { grid-template-columns: repeat(2, 1fr); }
	ul.products, ul.products[class*="columns-"] { grid-template-columns: repeat(2, 1fr); }
	.furr-footer-grid { grid-template-columns: 1fr; }
	.furr-section { padding: 56px 0; }
}
