/*
Theme Name: Pebble Mile Outfitters
Description: Pebble Mile's equipment shop child theme for WooCommerce Storefront.
Template: storefront
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: pebble-mile
*/

.store-pebblemile {
	--ink: #172d21;
	--paper: #fbfcf6;
	--surface: #e9eddf;
	--line: #d7dcce;
	--pm-green: #173c2b;
	--pm-lime: #e2f75c;
	--pm-edge: clamp(1rem, 3.8vw, 4.4rem);
}
.store-pebblemile .col-full, .store-pebblemile .wrap { box-sizing: border-box; width: 100%; max-width: 100rem; margin-inline: auto; padding-inline: var(--pm-edge); }
.store-pebblemile .site { overflow-x: clip; }
.store-pebblemile #masthead { margin: 0; padding: 0; border: none; background: var(--pm-green); color: #fff; }
.store-pebblemile #masthead > .col-full { display: grid; grid-template-columns: auto minmax(12rem, 35rem) auto; justify-content: space-between; align-items: center; gap: 2rem; min-height: 5.2rem; }
.store-pebblemile #masthead .col-full::before, .store-pebblemile #masthead .col-full::after { display: none; }
.store-pebblemile #masthead .wordmark, .store-pebblemile #masthead .bag-link { color: #fff; }
.store-pebblemile #masthead .wordmark { font-size: clamp(1.7rem, 2.9vw, 2.65rem); }
.store-pebblemile #masthead .brand-mark, .store-pebblemile #colophon .brand-mark { color: var(--pm-lime); }
.store-pebblemile #masthead .site-search { display: block; float: none; width: auto; margin: 0; }
.store-pebblemile #masthead .site-search .widget, .store-pebblemile #masthead .site-search form { margin: 0; }
.store-pebblemile #masthead .site-search input.search-field { width: 100%; padding: .68rem 1rem .68rem 2.7rem; background: #f3f5e9; color: var(--ink); box-shadow: none; font-size: .96rem; border: 0; border-radius: 3px; }
.store-pebblemile #masthead .site-search .widget_product_search form::before { top: 50%; left: 1rem; color: var(--pm-green); transform: translateY(-50%); }
.store-pebblemile #masthead .bag-link { justify-self: end; margin: 0; }
.store-pebblemile #masthead .bag-link svg { width: 1.25rem; height: 1.25rem; }
.store-pebblemile #masthead .bag-count { color: var(--pm-lime); border-color: currentColor; }
.store-pebblemile .storefront-primary-navigation { margin: 0; background: var(--pm-lime); color: var(--ink); }
.store-pebblemile .pm-shop-navigation .menu-list { display: flex; align-items: center; gap: clamp(1.2rem, 3.6vw, 3.8rem); }
.store-pebblemile .pm-shop-navigation a { display: block; padding: .65rem 0; color: var(--ink); font-size: .91rem; font-weight: 750; }
.store-pebblemile .pm-shop-navigation a:hover, .store-pebblemile .pm-shop-navigation a[aria-current="page"] { text-decoration: underline; }
.store-pebblemile .storefront-breadcrumb { margin: 0; padding: .9rem 0; }
.store-pebblemile.home .storefront-breadcrumb { display: none; }
.store-pebblemile #primary { float: none; width: 100%; margin-right: 0; }
.store-pebblemile #content > .col-full { padding-block: 1rem 2rem; }
.store-pebblemile #main article:has(.store-page-copy) { max-width: 72ch; margin-inline: auto; padding-block: clamp(1rem, 2vw, 2.4rem); }
.store-pebblemile #main article:has(.store-page-copy) .entry-title { font-size: clamp(2.25rem, 4.5vw, 3.9rem); letter-spacing: -.055em; }
.store-pebblemile.home #content > .col-full { padding-block: 1.1rem 2.8rem; }
.store-pebblemile .pm-home { margin: 0; }

/* The imagery fills the frame; the lower-left scrim keeps text legible on every photograph. */
.store-pebblemile .pm-home .hero { display: grid; grid-template: 1fr / 1fr; min-height: clamp(25rem, 34vw, 35rem); background: #233c2c; color: white; isolation: isolate; overflow: hidden; }
.store-pebblemile .pm-home .hero-copy, .store-pebblemile .pm-home .hero-photo { grid-area: 1 / 1; min-width: 0; }
.store-pebblemile .pm-home .hero-photo { position: absolute; inset: 0; aspect-ratio: auto; overflow: hidden; }
.store-pebblemile .pm-home .hero-photo img { border-radius: 0; object-position: 52% 50%; }
.store-pebblemile .pm-home .hero::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,22,16,.83) 0%, rgba(6,22,16,.64) 29%, rgba(6,22,16,.12) 66%, transparent); content: ""; pointer-events: none; }
.store-pebblemile .pm-home .hero-copy { z-index: 1; align-self: end; align-items: end; width: min(43rem, 62%); padding: clamp(1.45rem, 4.3vw, 4.7rem); pointer-events: none; }
.store-pebblemile .pm-home .hero-copy h1 { max-width: 11ch; color: white; font-size: clamp(3.7rem, 6.2vw, 6.6rem); line-height: .93; letter-spacing: -.07em; }
.store-pebblemile .pm-home .hero p { margin: 1rem 0 1.3rem; max-width: 32ch; color: #f5f5e9; }
.store-pebblemile .pm-home .hero-cta { background: var(--pm-lime); color: #172d21; pointer-events: auto; }
.store-pebblemile .pm-home .hero-picker { z-index: 2; }
.store-pebblemile .pm-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 1rem; }
.store-pebblemile .pm-section-heading h2 { margin: 0; color: var(--ink); font: 400 clamp(1.7rem, 3vw, 3rem)/1 var(--display); letter-spacing: -.055em; }
.store-pebblemile .pm-section-heading > a { flex-shrink: 0; color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: underline; text-underline-offset: .24em; }
.pm-departments, .pm-new { margin-top: clamp(2.2rem, 4vw, 4rem); }
.pm-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(.55rem, 1.6vw, 1.5rem); }
.store-pebblemile .pm-category { display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid var(--line); background: white; color: var(--ink); text-decoration: none; }
.store-pebblemile .pm-category img { width: 100%; aspect-ratio: 2.55; object-fit: cover; grid-column: 1 / -1; border-radius: 0; }
.store-pebblemile .pm-category h3 { margin: .8rem 1rem; font: 400 clamp(1.08rem, 1.8vw, 1.85rem)/1.12 var(--display); letter-spacing: -.04em; }
.store-pebblemile .pm-category-arrow { margin-right: 1rem; font: 700 1.2rem/1 sans-serif; }
.store-pebblemile .pm-category:hover { background: var(--pm-lime); border-color: var(--ink); }
.store-pebblemile ul.products li.product { color: var(--ink); }
.store-pebblemile ul.products li.product img { border-radius: 0; }
.store-pebblemile .pm-new ul.products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(.85rem, 1.6vw, 1.6rem); }
.store-pebblemile .pm-new ul.products::before, .store-pebblemile .pm-new ul.products::after { display: none; }
.store-pebblemile .pm-new ul.products li.product { display: flex; flex-direction: column; align-items: start; float: none; width: 100%; margin: 0 0 .75rem; text-align: left; }
.store-pebblemile .pm-new li.product .woocommerce-LoopProduct-link { width: 100%; }
.store-pebblemile .pm-new ul.products li.product img { width: 100%; aspect-ratio: 1; object-fit: contain; background: white; margin-bottom: .7rem; }
.store-pebblemile .pm-new ul.products li.product .woocommerce-loop-product__title { font: 650 1rem/1.32 var(--ui); margin: .3rem 0; }
.store-pebblemile .pm-new ul.products li.product .price { margin-bottom: .75rem; font-size: .95rem; }
.store-pebblemile .pm-new ul.products li.product .button { margin-top: auto; background: var(--pm-green); color: white; }
.store-pebblemile #colophon { padding: 2.25rem 0; background: var(--pm-green); color: #fafcf3; }
.store-pebblemile #colophon .wrap { padding: 0; }
.store-pebblemile #colophon .wordmark, .store-pebblemile #colophon .footer-nav-title, .store-pebblemile #colophon a { color: #fafcf3; }
.store-pebblemile #colophon .footer-legal { color: #ced8c6; }
.store-pebblemile.home #colophon .brand { flex: 0 1 auto; flex-direction: column; align-items: flex-start; max-width: 100%; }
.store-pebblemile #colophon .brand .footer-business { margin: .65rem 0 0; font-size: .85rem; color: #ced8c6; }

@media (max-width: 720px) {
	.store-pebblemile #masthead > .col-full { min-height: 0; grid-template-columns: 1fr auto; gap: .65rem 1rem; padding-block: .9rem; }
	.store-pebblemile #masthead .site-search { grid-row: 2; grid-column: 1 / -1; }
	.store-pebblemile #masthead .bag-link { grid-row: 1; grid-column: 2; }
	.store-pebblemile .pm-shop-navigation .menu-list { gap: clamp(.85rem, 4vw, 1.8rem); }
	.store-pebblemile .pm-shop-navigation a { padding-block: .6rem; font-size: .84rem; }
	.store-pebblemile.home #content > .col-full { padding-inline: 0; padding-top: 0; }
	.store-pebblemile .pm-home .hero { min-height: 27rem; }
	.store-pebblemile .pm-home .hero-copy { align-self: end; width: 100%; padding: 1.3rem var(--pm-edge) 4.8rem; }
	.store-pebblemile .pm-home .hero::after { background: linear-gradient(0deg, rgba(6,22,16,.9), rgba(6,22,16,.62) 45%, transparent 87%); }
	.store-pebblemile .pm-home .hero-copy h1 { max-width: 12ch; font-size: clamp(3rem, 10vw, 4.5rem); }
	.store-pebblemile .pm-home .hero p { font-size: .96rem; margin-block: .65rem .9rem; }
	.store-pebblemile .pm-home .hero-picker { right: auto; left: var(--pm-edge); }
	.pm-departments, .pm-new, .pm-home .page-extra { padding-inline: var(--pm-edge); }
	.store-pebblemile .pm-new ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.store-pebblemile .pm-category img { aspect-ratio: 1.18; }
	.store-pebblemile .pm-category h3 { margin: .7rem .4rem; font: 700 clamp(.85rem, 2.5vw, 1.08rem)/1.1 var(--ui); }
	.store-pebblemile .pm-category-arrow { font-size: .78rem; margin-right: .35rem; }
}
