/*
Theme Name: ParrotCommerce
Theme URI: https://example.com/parrotcommerce
Author: ParrotCommerce Studio
Author URI: https://example.com
Description: ParrotCommerce is a premium, mobile-first WooCommerce theme with a Parrot Green visual identity, a fully dynamic design-token system, live AJAX search with voice input, geolocation delivery picker, cart drawer, dark/light mode and free Elementor support. Works with WordPress, WooCommerce, free Elementor and Gutenberg — no Elementor Pro required.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: parrotcommerce
Tags: e-commerce, woocommerce, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-width-template, block-styles, wide-blocks, translation-ready, threaded-comments, blog, dark-mode, accessibility-ready
*/

/* -----------------------------------------------------------------------------
   1. Reset / Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--pc-bg);
	color: var(--pc-text);
	font-family: var(--pc-font-body);
	font-size: var(--pc-font-size-base);
	line-height: var(--pc-line-height);
	font-weight: var(--pc-font-weight-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--pc-link); text-decoration: none; transition: color .22s ease, opacity .22s ease; }
a:hover { color: var(--pc-link-hover); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--pc-font-heading);
	color: var(--pc-heading);
	font-weight: var(--pc-font-weight-heading);
	line-height: 1.15;
	letter-spacing: var(--pc-heading-letter-spacing);
	margin: 0 0 .6em;
	text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25rem; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--pc-primary);
	outline-offset: 2px;
	border-radius: 6px;
}
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	background: var(--pc-card); color: var(--pc-heading); clip: auto; clip-path: none;
	display: block; font-weight: 600; height: auto; left: 1rem; padding: .8rem 1.2rem;
	top: 1rem; width: auto; z-index: 100000; border-radius: var(--pc-radius-sm);
	box-shadow: var(--pc-shadow-lg);
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* -----------------------------------------------------------------------------
   2. Layout primitives
   -------------------------------------------------------------------------- */
.pc-container { width: 100%; max-width: var(--pc-container); margin-inline: auto; padding-inline: 20px; }
.pc-container--wide { max-width: calc(var(--pc-container) + 160px); }
.pc-container--full { max-width: none; padding-inline: 0; }
.pc-section { padding-block: var(--pc-section-space); position: relative; }
.pc-section--tight { padding-block: calc(var(--pc-section-space) * .6); }
.pc-grid { display: grid; gap: var(--pc-gap); }
.pc-flex { display: flex; align-items: center; gap: 12px; }
.pc-center { text-align: center; margin-inline: auto; }
.pc-stack > * + * { margin-top: 1rem; }
.pc-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pc-hide-mobile { display: none; }
@media (min-width: 1024px) { .pc-hide-mobile { display: block; } .pc-hide-desktop { display: none !important; } }

/* Section headings */
.pc-section-head {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 20px; margin-bottom: clamp(24px, 3vw, 44px); flex-wrap: wrap;
}
.pc-section-head__title { margin: 0; }
.pc-section-head__sub { margin: .5rem 0 0; color: var(--pc-text-muted); max-width: 60ch; }
.pc-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--pc-font-button);
	font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	color: var(--pc-primary-ink);
	background: var(--pc-primary-soft);
	border: 1px solid var(--pc-primary-border);
	padding: .45rem .85rem; border-radius: 999px; margin-bottom: 1rem;
}
.pc-eyebrow--ghost { background: transparent; color: inherit; border-color: currentColor; }

/* -----------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.pc-btn, .wp-block-button__link, button[type="submit"]:not(.pc-raw), input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	font-family: var(--pc-font-button);
	font-weight: var(--pc-font-weight-button);
	font-size: var(--pc-btn-font-size);
	letter-spacing: var(--pc-btn-letter-spacing);
	line-height: 1;
	padding: var(--pc-btn-padding);
	border-radius: var(--pc-btn-radius);
	border: 1px solid transparent;
	background: var(--pc-gradient-primary);
	color: var(--pc-btn-text);
	text-decoration: none; white-space: nowrap;
	transition: transform .2s cubic-bezier(.22,.61,.36,1), box-shadow .25s ease, filter .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
	box-shadow: var(--pc-shadow-btn);
	position: relative; overflow: hidden; isolation: isolate;
}
.pc-btn::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
	background: linear-gradient(135deg, var(--pc-accent), var(--pc-primary));
	transition: opacity .3s ease;
}
.pc-btn:hover::after, .pc-btn:focus-visible::after { opacity: 1; }
.pc-btn:hover, .wp-block-button__link:hover, button[type="submit"]:hover, input[type="submit"]:hover {
	color: var(--pc-btn-text); transform: translateY(-2px); box-shadow: var(--pc-shadow-btn-hover);
}
.pc-btn:active { transform: translateY(0); }
.pc-btn--ghost { background: transparent; color: var(--pc-heading); border-color: var(--pc-border-strong); box-shadow: none; }
.pc-btn--ghost::after { background: var(--pc-gradient-primary); }
.pc-btn--ghost:hover { color: var(--pc-btn-text); border-color: transparent; }
.pc-btn--outline { background: transparent; color: var(--pc-primary-ink); border-color: var(--pc-primary); box-shadow: none; }
.pc-btn--outline:hover { color: var(--pc-btn-text); border-color: transparent; }
.pc-btn--light { background: #fff; color: #10231a; box-shadow: var(--pc-shadow-md); }
.pc-btn--light::after { background: var(--pc-gradient-primary); }
.pc-btn--light:hover { color: #fff; }
.pc-btn--dark { background: var(--pc-charcoal); color: #fff; box-shadow: var(--pc-shadow-md); }
.pc-btn--dark::after { background: var(--pc-gradient-secondary); }
.pc-btn--sm { padding: .62rem 1.05rem; font-size: .8rem; }
.pc-btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }
.pc-btn--block { width: 100%; }
.pc-btn--icon { padding: .72rem; border-radius: 50%; aspect-ratio: 1; }

/* Link arrow */
.pc-link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--pc-primary-ink); font-family: var(--pc-font-button); }
.pc-link-arrow svg { transition: transform .25s ease; }
.pc-link-arrow:hover svg { transform: translateX(4px); }

/* -----------------------------------------------------------------------------
   4. Cards / surfaces
   -------------------------------------------------------------------------- */
.pc-card {
	background: var(--pc-card); border: 1px solid var(--pc-border);
	border-radius: var(--pc-radius); box-shadow: var(--pc-shadow-sm);
	transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.pc-card--hover:hover { transform: translateY(-6px); box-shadow: var(--pc-shadow-lg); border-color: var(--pc-primary-border); }
.pc-panel { background: var(--pc-surface); border: 1px solid var(--pc-border); border-radius: var(--pc-radius); padding: clamp(18px, 2.4vw, 32px); }

/* -----------------------------------------------------------------------------
   5. Forms
   -------------------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], input[type="date"],
select, textarea, .pc-input {
	width: 100%; padding: .82rem 1rem; background: var(--pc-input-bg);
	border: 1px solid var(--pc-border); border-radius: var(--pc-radius-sm);
	color: var(--pc-text); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input::placeholder, textarea::placeholder { color: var(--pc-text-muted); opacity: 1; }
input:focus, select:focus, textarea:focus {
	border-color: var(--pc-primary); outline: none;
	box-shadow: 0 0 0 4px var(--pc-primary-soft);
}
label { display: inline-block; font-size: .86rem; font-weight: 600; margin-bottom: .35rem; color: var(--pc-heading); }

/* Badges */
.pc-badge {
	display: inline-flex; align-items: center; gap: .35rem;
	font-family: var(--pc-font-button);
	font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
	padding: .34rem .62rem; border-radius: 999px; line-height: 1;
	background: var(--pc-gradient-primary); color: var(--pc-badge-text);
	box-shadow: var(--pc-shadow-sm);
}
.pc-badge--sale { background: var(--pc-sale); }
.pc-badge--out { background: var(--pc-charcoal); color: #fff; }
.pc-badge--soft { background: var(--pc-primary-soft); color: var(--pc-primary-ink); box-shadow: none; border: 1px solid var(--pc-primary-border); }

/* Utility */
.pc-text-muted { color: var(--pc-text-muted); }
.pc-radius { border-radius: var(--pc-radius); overflow: hidden; }
.pc-grad-text {
	background: var(--pc-gradient-primary);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.pc-divider { height: 1px; background: var(--pc-border); border: 0; margin: 0; }
.pc-skeleton { background: linear-gradient(90deg, var(--pc-border) 25%, var(--pc-surface) 37%, var(--pc-border) 63%); background-size: 400% 100%; animation: pc-shimmer 1.4s ease infinite; border-radius: var(--pc-radius-sm); }
@keyframes pc-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* WP core blocks */
.alignwide { max-width: calc(var(--pc-container) + 120px); margin-inline: auto; }
.alignfull { max-width: none; width: 100%; }
.wp-caption, .gallery-caption { font-size: .85rem; color: var(--pc-text-muted); }
.sticky, .bypostauthor { position: relative; }
.screen-reader-text ~ * { }
