/*
Theme Name: PramYard v2
Theme URI: https://pramyard.co.uk
Author: PramYard
Author URI: https://pramyard.co.uk
Description: World-class editorial marketplace theme for PramYard — London's curated pre-loved children's marketplace. Warm, editorial, community-driven.
Version: 3.29.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
WC requires at least: 7.0
WC tested up to: 9.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pramyard
Tags: woocommerce, marketplace, editorial, children, london

*/

/* ============================================================
   PRAMYARD DESIGN SYSTEM
   ============================================================ */

:root {
  /* ── Color Palette ─────────────────────────────────────── */
  --py-cream:        #F9F5EE;
  --py-cream-dark:   #F0EAD8;
  --py-cream-mid:    #EDE5D0;
  --py-sand:         #D6C9A8;
  --py-tan:          #B89E72;
  --py-rust:         #C4622D;
  --py-rust-light:   #E07B46;
  --py-rust-dark:    #9E4A1E;
  --py-sage:         #7A9E7E;
  --py-sage-light:   #A8C4AB;
  --py-sage-dark:    #4E7353;
  --py-navy:         #1D2B3A;
  --py-navy-mid:     #2E4057;
  --py-charcoal:     #3A3530;
  --py-brown:        #6B5744;
  --py-brown-light:  #8C7260;
  --py-white:        #FFFFFF;
  --py-black:        #1A1612;

  /* ── Typography ────────────────────────────────────────── */
  --font-display:    'Cormorant Garamond', 'Garamond', Georgia, serif;
  --font-heading:    'Cormorant Garamond', Georgia, serif;
  --font-body:       'Jost', 'Nunito Sans', system-ui, sans-serif;
  --font-accent:     'Playfair Display', Georgia, serif;
  --font-mono:       'JetBrains Mono', monospace;

  /* ── Type Scale ─────────────────────────────────────────── */
  --text-xs:    0.6875rem;  /* 11px */
  --text-sm:    0.8125rem;  /* 13px */
  --text-base:  1rem;       /* 16px */
  --text-md:    1.125rem;   /* 18px */
  --text-lg:    1.25rem;    /* 20px */
  --text-xl:    1.5rem;     /* 24px */
  --text-2xl:   2rem;       /* 32px */
  --text-3xl:   2.75rem;    /* 44px */
  --text-4xl:   3.5rem;     /* 56px */
  --text-5xl:   5rem;       /* 80px */
  --text-hero:  7.5rem;     /* 120px */

  /* ── Spacing ────────────────────────────────────────────── */
  --space-1:    0.25rem;
  --space-2:    0.5rem;
  --space-3:    0.75rem;
  --space-4:    1rem;
  --space-5:    1.25rem;
  --space-6:    1.5rem;
  --space-8:    2rem;
  --space-10:   2.5rem;
  --space-12:   3rem;
  --space-16:   4rem;
  --space-20:   5rem;
  --space-24:   6rem;
  --space-32:   8rem;
  --space-40:   10rem;

  /* ── Layout ─────────────────────────────────────────────── */
  --container-sm:    640px;
  --container-md:    768px;
  --container-lg:    1024px;
  --container-xl:    1280px;
  --container-2xl:   1440px;
  --container-max:   1600px;

  /* ── Borders ────────────────────────────────────────────── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* ── Shadows ────────────────────────────────────────────── */
  --shadow-sm:   0 1px 3px rgba(58,53,48,0.08), 0 1px 2px rgba(58,53,48,0.06);
  --shadow-md:   0 4px 16px rgba(58,53,48,0.10), 0 2px 6px rgba(58,53,48,0.07);
  --shadow-lg:   0 12px 40px rgba(58,53,48,0.12), 0 4px 16px rgba(58,53,48,0.08);
  --shadow-xl:   0 24px 64px rgba(58,53,48,0.16), 0 8px 24px rgba(58,53,48,0.10);

  /* ── Transitions ────────────────────────────────────────── */
  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Z-index Scale ──────────────────────────────────────── */
  --z-below:    -1;
  --z-base:     0;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   500;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--py-charcoal);
  background-color: var(--py-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--py-navy);
}

h1, .h1 { font-size: clamp(2.75rem, 5vw, var(--text-5xl)); font-weight: 300; }
h2, .h2 { font-size: clamp(2rem, 3.5vw, var(--text-4xl)); }
h3, .h3 { font-size: clamp(1.5rem, 2.5vw, var(--text-3xl)); }
h4, .h4 { font-size: clamp(1.25rem, 2vw, var(--text-2xl)); }
h5, .h5 { font-size: var(--text-xl); }
h6, .h6 { font-size: var(--text-lg); }

.display-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, var(--text-hero));
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.editorial-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.label-text {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--py-brown-light);
}

.body-large {
  font-size: var(--text-md);
  line-height: 1.75;
  color: var(--py-brown);
}

p {
  max-width: 70ch;
}

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container--wide  { max-width: var(--container-2xl); }
.container--max   { max-width: var(--container-max); }
.container--narrow{ max-width: var(--container-md); }

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.flex--gap-4 { gap: var(--space-4); }
.flex--gap-6 { gap: var(--space-6); }
.flex--gap-8 { gap: var(--space-8); }

/* ============================================================
   SECTION SPACING
   ============================================================ */

.section {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.section--sm {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section--lg {
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
}

.section--cream    { background-color: var(--py-cream); }
.section--cream-dark { background-color: var(--py-cream-dark); }
.section--navy     { background-color: var(--py-navy); color: var(--py-cream); }
.section--sand     { background-color: var(--py-sand); }
.section--sage     { background-color: var(--py-sage-light); }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--py-cream);
  border-bottom: 1px solid var(--py-cream-mid);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.site-header__announcement {
  background-color: var(--py-rust);
  color: var(--py-white);
  text-align: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  padding: 0 var(--space-6);
  max-width: var(--container-max);
  margin: 0 auto;
}

.site-header__nav-left,
.site-header__nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.site-header__nav-right {
  justify-content: flex-end;
}

.site-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.site-logo__name {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--py-navy);
  line-height: 1;
}

.site-logo__tagline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--py-tan);
  margin-top: 2px;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--py-charcoal);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--py-rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.nav-link:hover {
  color: var(--py-rust);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Mega Menu */
.nav-item--mega {
  position: relative;
}

/* old mega menu hover CSS removed */

/* Header Actions */
.header-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--py-charcoal);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  position: relative;
}

.header-action:hover {
  background-color: var(--py-cream-dark);
  color: var(--py-rust);
}

.header-action__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  background-color: var(--py-rust);
  color: var(--py-white);
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Header */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.mobile-menu-toggle span {
  display: block;
  height: 1.5px;
  background-color: var(--py-navy);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background-color: var(--py-rust);
  border-color: var(--py-rust);
  color: var(--py-white);
}

.btn-primary:hover {
  background-color: var(--py-rust-dark);
  border-color: var(--py-rust-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--py-charcoal);
  color: var(--py-charcoal);
}

.btn-secondary:hover {
  background-color: var(--py-charcoal);
  color: var(--py-cream);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--py-rust);
  color: var(--py-rust);
}

.btn-outline:hover {
  background-color: var(--py-rust);
  color: var(--py-white);
}

.btn-cream {
  background-color: var(--py-cream);
  border-color: var(--py-cream);
  color: var(--py-navy);
}

.btn-cream:hover {
  background-color: var(--py-cream-dark);
  border-color: var(--py-cream-dark);
}

.btn-navy {
  background-color: var(--py-navy);
  border-color: var(--py-navy);
  color: var(--py-cream);
}

.btn-navy:hover {
  background-color: var(--py-navy-mid);
  border-color: var(--py-navy-mid);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn--xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-md);
  border-radius: var(--radius-md);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background-color: var(--py-cream);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-24) var(--space-16) var(--space-24) var(--space-16);
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero__eyebrow-line {
  width: 40px;
  height: 1px;
  background-color: var(--py-rust);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 5.5vw, 6.5rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--py-navy);
  margin-bottom: var(--space-6);
}

.hero__title em {
  font-style: italic;
  color: var(--py-rust);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--py-brown);
  max-width: 42ch;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--py-cream-mid);
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--py-navy);
  line-height: 1;
  display: block;
}

.hero__stat-label {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--py-brown-light);
  display: block;
  margin-top: var(--space-1);
}

.hero__visual {
  position: relative;
  overflow: hidden;
  background-color: var(--py-cream-dark);
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image-badge {
  position: absolute;
  bottom: var(--space-8);
  left: var(--space-8);
  background-color: var(--py-white);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: var(--shadow-md);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--py-brown-light);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */

.product-card {
  background-color: var(--py-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--py-cream-dark);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image {
  transform: scale(1.04);
}

.product-card__badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.product-card__wishlist {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  background-color: var(--py-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  opacity: 0;
}

.product-card:hover .product-card__wishlist {
  opacity: 1;
}

.product-card__wishlist:hover {
  background-color: var(--py-rust);
  color: var(--py-white);
}

.product-card__quick-actions {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  right: var(--space-3);
  display: flex;
  gap: var(--space-2);
  transform: translateY(8px);
  opacity: 0;
  transition: all var(--transition-base);
}

.product-card:hover .product-card__quick-actions {
  transform: translateY(0);
  opacity: 1;
}

.product-card__body {
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.product-card__category {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--py-rust);
}

.product-card__condition {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px var(--space-2);
  border-radius: var(--radius-sm);
  background-color: var(--py-sage-light);
  color: var(--py-sage-dark);
}

.product-card__condition--excellent { background-color: var(--py-sage-light); color: var(--py-sage-dark); }
.product-card__condition--good      { background-color: #FEF3C7; color: #92400E; }
.product-card__condition--fair      { background-color: #FEE2E2; color: #991B1B; }

.product-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--py-navy);
  line-height: 1.3;
  margin-bottom: var(--space-2);
  text-decoration: none;
  display: block;
}

.product-card__title:hover { color: var(--py-rust); }

.product-card__brand {
  font-size: var(--text-sm);
  color: var(--py-brown-light);
  margin-bottom: var(--space-3);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--py-cream-dark);
}

.product-card__price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--py-navy);
}

.product-card__price-original {
  font-size: var(--text-sm);
  color: var(--py-brown-light);
  text-decoration: line-through;
  margin-left: var(--space-2);
}

.product-card__seller {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--py-brown-light);
}

.product-card__seller-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background-color: var(--py-cream-dark);
}

/* ============================================================
   BADGE / TAG COMPONENTS
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--rust    { background-color: var(--py-rust); color: white; }
.badge--sage    { background-color: var(--py-sage-light); color: var(--py-sage-dark); }
.badge--navy    { background-color: var(--py-navy); color: var(--py-cream); }
.badge--sand    { background-color: var(--py-sand); color: var(--py-navy); }
.badge--cream   { background-color: var(--py-cream); color: var(--py-brown); border: 1px solid var(--py-sand); }

/* ============================================================
   EDITORIAL SECTIONS
   ============================================================ */

.editorial-banner {
  position: relative;
  padding: var(--space-24) 0;
  overflow: hidden;
}

.editorial-banner__bg {
  position: absolute;
  inset: 0;
  background-color: var(--py-navy);
}

.editorial-banner__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: 
    radial-gradient(circle at 20% 50%, var(--py-rust) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--py-sage) 0%, transparent 50%);
}

.editorial-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.editorial-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 300;
  color: var(--py-cream);
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.editorial-banner h2 em {
  font-style: italic;
  color: var(--py-rust-light);
}

/* Category Cards */
.category-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.category-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  background-color: var(--py-cream-dark);
}

.category-card:hover .category-card__image {
  transform: scale(1.06);
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29,43,58,0.85) 0%, rgba(29,43,58,0.2) 50%, transparent 100%);
}

.category-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  color: var(--py-white);
}

.category-card__label {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.75;
  margin-bottom: var(--space-1);
}

.category-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.1;
}

.category-card__count {
  font-size: var(--text-sm);
  opacity: 0.65;
  margin-top: var(--space-1);
}

/* Feature Strip / Horizontal Scrolling */
.feature-strip {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: var(--space-2);
}

.feature-strip::-webkit-scrollbar { display: none; }

.feature-strip > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* How It Works */
.how-it-works__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: start;
}

.how-it-works__number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--py-rust);
  color: var(--py-rust);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--py-charcoal);
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--py-sand);
  border-radius: var(--radius-md);
  background-color: var(--py-white);
  color: var(--py-charcoal);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--py-rust);
  box-shadow: 0 0 0 3px rgba(196,98,45,0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--py-brown-light);
}

.form-error {
  font-size: var(--text-xs);
  color: #DC2626;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--py-white);
  border: 1.5px solid var(--py-sand);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-bar:focus-within {
  border-color: var(--py-rust);
  box-shadow: 0 0 0 3px rgba(196,98,45,0.12);
}

.search-bar__input {
  flex: 1;
  padding: var(--space-3) var(--space-5);
  border: none;
  background: transparent;
  font-size: var(--text-base);
  color: var(--py-charcoal);
  outline: none;
}

.search-bar__btn {
  padding: var(--space-3) var(--space-5);
  background-color: var(--py-rust);
  color: var(--py-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background-color var(--transition-fast);
}

.search-bar__btn:hover {
  background-color: var(--py-rust-dark);
}

/* ============================================================
   SIDEBAR FILTERS
   ============================================================ */

.filter-sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--py-sand) transparent;
}

.filter-group {
  border-bottom: 1px solid var(--py-cream-dark);
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
}

.filter-group__title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--py-charcoal);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--py-brown);
  transition: color var(--transition-fast);
}

.filter-option:hover { color: var(--py-rust); }

.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--py-sand);
  border-radius: var(--radius-sm);
  cursor: pointer;
  accent-color: var(--py-rust);
}

/* Price Range */
.price-range {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.price-range__input {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border: 1.5px solid var(--py-sand);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  text-align: center;
  outline: none;
  transition: border-color var(--transition-fast);
}

.price-range__input:focus { border-color: var(--py-rust); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonial-card {
  background-color: var(--py-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
}

.testimonial-card__quote-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 0.6;
  color: var(--py-cream-mid);
  margin-bottom: var(--space-4);
  display: block;
}

.testimonial-card__text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.6;
  color: var(--py-navy);
  margin-bottom: var(--space-6);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background-color: var(--py-cream-dark);
}

.testimonial-card__name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--py-charcoal);
}

.testimonial-card__location {
  font-size: var(--text-xs);
  color: var(--py-brown-light);
}

/* ============================================================
   BLOG / EDITORIAL
   ============================================================ */

.blog-card {
  text-decoration: none;
  display: block;
  color: inherit;
}

.blog-card__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background-color: var(--py-cream-dark);
  margin-bottom: var(--space-4);
}

.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__image { transform: scale(1.04); }

.blog-card__category {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--py-rust);
  margin-bottom: var(--space-2);
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--py-navy);
  line-height: 1.25;
  margin-bottom: var(--space-3);
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card__title { color: var(--py-rust); }

.blog-card__excerpt {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--py-brown);
  margin-bottom: var(--space-4);
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--py-brown-light);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background-color: var(--py-navy);
  color: var(--py-cream);
  padding-top: var(--space-24);
  padding-bottom: var(--space-10);
}

.footer__main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(249,245,238,0.1);
  margin-bottom: var(--space-8);
}

.footer__brand-tagline {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  font-style: italic;
  color: var(--py-cream);
  line-height: 1.2;
  margin: var(--space-4) 0 var(--space-5);
  max-width: 28ch;
}

.footer__brand-desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(249,245,238,0.6);
  max-width: 34ch;
  margin-bottom: var(--space-6);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(249,245,238,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--py-cream);
  opacity: 0.6;
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  opacity: 1;
  border-color: var(--py-rust-light);
  background-color: var(--py-rust);
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--py-cream);
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(249,245,238,0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__link:hover { color: var(--py-cream); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: rgba(249,245,238,0.4);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-5);
}

.footer__legal-link {
  font-size: var(--text-xs);
  color: rgba(249,245,238,0.4);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__legal-link:hover { color: rgba(249,245,238,0.8); }

.footer__trust-badges {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */

/* Product Archive */
.woocommerce-page .woocommerce,
.woocommerce {
  background-color: var(--py-cream);
}

.woocommerce .products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  transition: none;
  box-shadow: none;
  border: none;
  list-style: none;
}

.woocommerce ul.products li.product:hover {
  transform: none;
  box-shadow: none;
}

/* Hide WC default elements — our product-card.php handles everything */
.woocommerce ul.products li.product > a > img,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .star-rating {
  /* These won't exist when using our template, but just in case */
}

/* Single Product */
.woocommerce div.product {
  background: transparent;
}

.woocommerce div.product .product_title {
  font-family: var(--font-display) !important;
  font-size: clamp(2rem, 3.5vw, var(--text-4xl)) !important;
  font-weight: 400 !important;
  color: var(--py-navy) !important;
  line-height: 1.15 !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--font-display) !important;
  font-size: var(--text-3xl) !important;
  color: var(--py-navy) !important;
}

.woocommerce div.product .single_add_to_cart_button {
  background-color: var(--py-rust) !important;
  color: var(--py-white) !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  padding: var(--space-4) var(--space-8) !important;
  font-size: var(--text-base) !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  transition: all var(--transition-base) !important;
}

.woocommerce div.product .single_add_to_cart_button:hover {
  background-color: var(--py-rust-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Cart & Checkout */
.woocommerce-cart .cart-collaterals,

.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
  background-color: var(--py-rust) !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
}

/* WooCommerce Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top: 3px solid var(--py-rust) !important;
  border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
  background-color: var(--py-cream) !important;
  color: var(--py-charcoal) !important;
}

/* ============================================================
   MARKETKING OVERRIDES
   ============================================================ */

.marketking-vendor-store-banner {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.marketking-store-header {
  background-color: var(--py-cream);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--py-cream-dark);
}

.marketking-vendor-rating .star-rating {
  color: var(--py-rust) !important;
}

/* ============================================================
   PAGE: HOMEPAGE
   ============================================================ */

/* Marquee Strip */
.marquee-strip {
  background-color: var(--py-rust);
  color: var(--py-white);
  padding: var(--space-3) 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-inner {
  display: inline-flex;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-inner span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 var(--space-6);
}

.marquee-inner span::after {
  content: '✦';
  opacity: 0.5;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Borough Selector */
.borough-selector {
  background-color: var(--py-cream-dark);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--py-sand);
}

.borough-selector__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.borough-selector__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--py-charcoal);
  white-space: nowrap;
}

.borough-chips {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.borough-chip {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  background-color: var(--py-white);
  color: var(--py-charcoal);
  border: 1.5px solid var(--py-sand);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.borough-chip:hover,
.borough-chip.active {
  background-color: var(--py-navy);
  color: var(--py-cream);
  border-color: var(--py-navy);
}

/* ============================================================
   PAGE: ABOUT
   ============================================================ */

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
}

.about-hero__image-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-3);
  padding: var(--space-8);
  background-color: var(--py-cream-dark);
}

.about-hero__image-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-hero__image-mosaic img:first-child {
  grid-row: span 2;
  border-radius: var(--radius-xl);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.value-card {
  text-align: center;
  padding: var(--space-8);
}

.value-card__icon {
  width: 64px;
  height: 64px;
  background-color: var(--py-cream-dark);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   PAGE: HOW IT WORKS
   ============================================================ */

.process-timeline {
  position: relative;
  padding-left: var(--space-10);
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 28px;
  bottom: 28px;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--py-rust), var(--py-sage));
}

.process-step {
  position: relative;
  padding-bottom: var(--space-12);
}

.process-step__dot {
  position: absolute;
  left: calc(-1 * var(--space-10) + 14px);
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background-color: var(--py-rust);
  border: 3px solid var(--py-cream);
  box-shadow: 0 0 0 3px var(--py-rust);
}

/* ============================================================
   SELLER DASHBOARD PANEL (Admin-style)
   ============================================================ */

.seller-dashboard {
  background-color: var(--py-cream);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.seller-sidebar {
  background-color: var(--py-navy);
  padding: var(--space-6) 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.seller-sidebar__logo {
  padding: var(--space-4) var(--space-6) var(--space-6);
  border-bottom: 1px solid rgba(249,245,238,0.1);
  margin-bottom: var(--space-4);
}

.seller-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  color: rgba(249,245,238,0.6);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.seller-nav-item:hover,
.seller-nav-item.active {
  color: var(--py-cream);
  background-color: rgba(249,245,238,0.06);
  border-left-color: var(--py-rust);
}

.seller-main {
  padding: var(--space-8);
}

.dashboard-stat-card {
  background-color: var(--py-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--py-cream-dark);
}

.dashboard-stat-card__value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 500;
  color: var(--py-navy);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.dashboard-stat-card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--py-brown-light);
}

.dashboard-stat-card__trend {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-top: var(--space-3);
}

.dashboard-stat-card__trend.up { color: var(--py-sage-dark); }
.dashboard-stat-card__trend.down { color: #DC2626; }

/* ============================================================
   ADMIN PANEL (Theme Options)
   ============================================================ */

.py-admin-wrap {
  background-color: #F4F0E8;
  min-height: 100vh;
  padding: 0;
}

.py-admin-header {
  background-color: var(--py-navy);
  color: var(--py-cream);
  padding: var(--space-4) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.py-admin-header__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.py-admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 56px);
}

.py-admin-sidebar {
  background-color: var(--py-white);
  border-right: 1px solid var(--py-cream-dark);
  padding: var(--space-6) 0;
}

.py-admin-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--py-charcoal);
  text-decoration: none;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all var(--transition-fast);
}

.py-admin-nav-item:hover { color: var(--py-rust); }
.py-admin-nav-item.active {
  color: var(--py-rust);
  background-color: rgba(196,98,45,0.06);
  border-left-color: var(--py-rust);
}

.py-admin-content {
  padding: var(--space-8);
  max-width: 960px;
}

.py-admin-section {
  background-color: var(--py-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  border: 1px solid var(--py-cream-dark);
}

.py-admin-section__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--py-navy);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--py-cream-dark);
}

/* Color Picker */
.py-color-picker-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.py-color-swatch {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 2px solid var(--py-sand);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.py-color-swatch:hover { transform: scale(1.1); }

/* ============================================================
   SWAP SYSTEM UI
   ============================================================ */

.swap-card {
  background-color: var(--py-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--py-cream-dark);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-6);
}

.swap-card__item {
  text-align: center;
}

.swap-card__item-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background-color: var(--py-cream-dark);
  margin-bottom: var(--space-3);
}

.swap-card__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--py-rust);
}

.swap-status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.swap-status-badge--pending   { background-color: #FEF3C7; color: #92400E; }
.swap-status-badge--accepted  { background-color: var(--py-sage-light); color: var(--py-sage-dark); }
.swap-status-badge--completed { background-color: var(--py-navy); color: var(--py-cream); }
.swap-status-badge--declined  { background-color: #FEE2E2; color: #991B1B; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll--delay-1 { transition-delay: 0.1s; }
.animate-on-scroll--delay-2 { transition-delay: 0.2s; }
.animate-on-scroll--delay-3 { transition-delay: 0.3s; }
.animate-on-scroll--delay-4 { transition-delay: 0.4s; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.text-rust    { color: var(--py-rust); }
.text-navy    { color: var(--py-navy); }
.text-cream   { color: var(--py-cream); }
.text-brown   { color: var(--py-brown); }
.text-sage    { color: var(--py-sage); }
.text-muted   { color: var(--py-brown-light); }

.bg-cream     { background-color: var(--py-cream); }
.bg-cream-dark{ background-color: var(--py-cream-dark); }
.bg-navy      { background-color: var(--py-navy); }
.bg-rust      { background-color: var(--py-rust); }
.bg-white     { background-color: var(--py-white); }
.bg-sage      { background-color: var(--py-sage-light); }

.rounded-sm   { border-radius: var(--radius-sm); }
.rounded-md   { border-radius: var(--radius-md); }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-xl   { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm    { box-shadow: var(--shadow-sm); }
.shadow-md    { box-shadow: var(--shadow-md); }
.shadow-lg    { box-shadow: var(--shadow-lg); }

.mt-auto { margin-top: auto; }
.mb-0    { margin-bottom: 0; }

.divider {
  height: 1px;
  background-color: var(--py-cream-dark);
  border: none;
  margin: var(--space-8) 0;
}

.aspect-square  { aspect-ratio: 1; }
.aspect-video   { aspect-ratio: 16/9; }
.aspect-photo   { aspect-ratio: 4/3; }

.overflow-hidden { overflow: hidden; }
.relative        { position: relative; }
.w-full          { width: 100%; }
.h-full          { height: 100%; }
.object-cover    { object-fit: cover; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero__visual { min-height: 400px; }
  .hero__content { padding: var(--space-16) var(--space-8); }
  .about-hero { grid-template-columns: 1fr; }
  .seller-dashboard { grid-template-columns: 1fr; }
  .seller-sidebar { height: auto; position: relative; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --space-24: 4rem;
    --space-32: 5rem;
  }

  .site-header__inner {
    height: 60px;
    padding: 0 var(--space-4);
  }

  .site-header__nav-left,
  .site-header__nav-right {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .grid--5 {
    grid-template-columns: 1fr;
  }

  .values-grid { grid-template-columns: 1fr; }

  .footer__main {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .swap-card {
    grid-template-columns: 1fr;
  }

  .py-admin-layout {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }

  .display-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
  .site-header, .site-footer, .mobile-menu-toggle { display: none; }
  body { background: white; color: black; }
}

/* ============================================================
   PRAMYARD v2.1 — NEW FEATURES
   Mega menu, horizontal filter bar, editorial tiles,
   category banners, product page, swap toggle, nav typography
   ============================================================ */

/* ── NAV TYPOGRAPHY ──────────────────────────────────────── */
.nav-link {
  font-family: var(--font-body);
  font-size: 0.8125rem;       /* 13px */
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--py-navy);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-base);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--py-rust);
  transition: width var(--transition-base);
}
.nav-link:hover { color: var(--py-rust); }
.nav-link:hover::after { width: 100%; }

/* ── MEGA MENU ────────────────────────────────────────────── */
/* Mega menu wraps the SHOP button only — no relative positioning here */
.mega-menu-wrap {
  position: static;
}
/* Menu is fixed to viewport so left:50% is truly centred */
.mega-menu {
  position: fixed;
  top: 72px;
  width: 100vw;
  left: 0;
  transform: none;
  border-radius: 0;
  border-left: none;
  border-right: none;
  background: var(--py-white);
  border-top: 1px solid var(--py-cream-dark);
  border-bottom: 1px solid var(--py-cream-dark);
  box-shadow: 0 24px 80px rgba(29,43,58,.12), 0 8px 24px rgba(29,43,58,.06);
  padding: var(--space-8) var(--space-10);
  display: none;
  z-index: 600;
}
.mega-menu.is-open {
  display: block;
}
.mega-menu__inner {
  display: grid;
  gap: var(--space-8);
  max-width: var(--container-max);
  margin: 0 auto;
  align-items: start;
}
/* 4 cols: type | col2 from menu | col3 from menu | images side-by-side */
.mega-menu--shop .mega-menu__inner { grid-template-columns: 180px 1fr 1fr 380px; }

/* Column title — "Shop by category" style with italic last word */
.mega-menu__col-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--py-navy);
  margin-bottom: var(--space-4);
  letter-spacing: 0;
  text-transform: none;
  border-bottom: none;
  padding-bottom: 0;
  line-height: 1.3;
}
.mega-menu__col-title em {
  font-style: italic;
  font-family: var(--font-heading);
}
a.mega-menu__col-title--link {
  display: block;
  text-decoration: none;
  color: var(--py-navy);
  transition: color var(--transition-fast);
}
a.mega-menu__col-title--link:hover { color: var(--py-rust); }

.mega-menu__links { list-style: none; padding: 0; margin: 0; }
.mega-menu__links li { margin-bottom: 10px; }
.mega-menu__links a {
  font-size: var(--text-sm);
  color: var(--py-charcoal);
  text-decoration: none;
  font-weight: 400;
  transition: color var(--transition-fast);
  line-height: 1.4;
}
.mega-menu__links a:hover { color: var(--py-rust); }

/* Image cards column — side by side like Rebecca Udall */
.mega-menu__col--images .mega-menu__col-title { margin-bottom: var(--space-3); }
.mega-menu__cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mega-menu__img-card,
.mega-menu__image-card {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 2/3;
  background: var(--py-cream-dark);
  text-decoration: none;
  display: block;
}
.mega-menu__img-card img,
.mega-menu__image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.mega-menu__img-card:hover img,
.mega-menu__image-card:hover img { transform: scale(1.04); }
.mega-menu__img-label,
.mega-menu__image-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 12px 12px;
  background: linear-gradient(to top, rgba(29,43,58,.65), transparent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mega-menu__img-placeholder { width:100%; height:100%; background: var(--py-cream-dark); }

/* ── CATEGORY BANNER ─────────────────────────────────────── */
.cat-banner {
  position: relative;
  width: 100%;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 0;
}
.cat-banner__bg {
  position: absolute;
  inset: 0;
  background: var(--py-navy);
}
.cat-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}
.cat-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29,43,58,.85) 0%, rgba(29,43,58,.3) 50%, transparent 100%);
}
.cat-banner__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--space-10) var(--space-8) var(--space-10);
  color: var(--py-cream);
}
.cat-banner__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(249,245,238,.6);
  margin-bottom: 10px;
}
.cat-banner__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--py-cream);
  margin-bottom: 14px;
}
.cat-banner__desc {
  font-size: var(--text-md);
  color: rgba(249,245,238,.7);
  max-width: 50ch;
  line-height: 1.65;
}
.cat-banner__subcats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.cat-banner__subcat {
  background: rgba(249,245,238,.12);
  border: 1px solid rgba(249,245,238,.25);
  color: var(--py-cream);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  transition: background var(--transition-fast);
}
.cat-banner__subcat:hover {
  background: rgba(249,245,238,.25);
  color: var(--py-cream);
}

/* ── HORIZONTAL FILTER BAR ───────────────────────────────── */
.shop-filter-bar {
  background: var(--py-white);
  border-bottom: 1px solid var(--py-cream-dark);
  padding: 0;
  position: sticky;
  top: var(--header-height, 80px);
  z-index: 50;
}
.shop-filter-bar__inner {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.shop-filter-bar__inner::-webkit-scrollbar { display: none; }
.shop-filter-bar__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--py-brown-light);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 14px 0;
}
.shop-filter-bar__divider {
  width: 1px;
  height: 20px;
  background: var(--py-cream-dark);
  flex-shrink: 0;
}
.filter-chip {
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--py-cream-dark);
  background: transparent;
  color: var(--py-charcoal);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  flex-shrink: 0;
  font-family: var(--font-body);
}
.filter-chip:hover, .filter-chip.active {
  border-color: var(--py-navy);
  background: var(--py-navy);
  color: var(--py-cream);
}
.filter-chip--rust:hover, .filter-chip--rust.active {
  border-color: var(--py-rust);
  background: var(--py-rust);
}
.filter-chip svg { width: 12px; height: 12px; }

/* Postcode bar */
.postcode-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--py-cream-dark);
  background: transparent;
  font-size: var(--text-xs);
  color: var(--py-charcoal);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  white-space: nowrap;
}
.postcode-bar:hover { border-color: var(--py-rust); color: var(--py-rust); }
.postcode-bar svg { color: var(--py-rust); width: 12px; height: 12px; }
.postcode-bar.has-postcode { border-color: var(--py-rust); color: var(--py-rust); }

/* ── EDITORIAL TILES (interspersed in product grid) ────── */
.editorial-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--py-navy);
  aspect-ratio: 1/1.5;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}
.editorial-tile.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}
.editorial-tile__bg {
  position: absolute;
  inset: 0;
}
.editorial-tile__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .65;
  transition: transform var(--transition-slow);
}
.editorial-tile:hover .editorial-tile__bg img {
  transform: scale(1.04);
}
.editorial-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29,43,58,.9) 0%, rgba(29,43,58,.2) 60%, transparent 100%);
}
.editorial-tile__content {
  position: relative;
  z-index: 2;
  padding: var(--space-5);
  color: var(--py-cream);
}
.editorial-tile__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--py-rust-light);
  margin-bottom: 8px;
}
.editorial-tile__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: var(--py-cream);
  margin-bottom: 10px;
}
.editorial-tile__cta {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(249,245,238,.7);
}

/* ── PRODUCT CARD v2 (taller) ────────────────────────────── */
.product-card {
  background: var(--py-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--py-cream-dark);
}
.product-card__image-wrap {
  position: relative;
  aspect-ratio: 3/4;      /* Taller portrait ratio */
  overflow: hidden;
  background: var(--py-cream-dark);
}
.product-card__image,
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  display: block;
}
.product-card:hover .product-card__image,
.product-card:hover .product-card__img {
  transform: scale(1.04);
}
.product-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.product-card__condition {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--py-sage);
  color: var(--py-white);
}
.product-card__condition--mint     { background: #3D7A5F; }
.product-card__condition--excellent { background: var(--py-sage-dark); }
.product-card__condition--good     { background: var(--py-sage); }
.product-card__condition--fair     { background: var(--py-tan); color: var(--py-white); }
.product-card__wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--py-brown-light);
  opacity: 0;
  transform: scale(.8);
  transition: all var(--transition-fast);
  z-index: 3;
  backdrop-filter: blur(4px);
}
.product-card:hover .product-card__wishlist {
  opacity: 1;
  transform: scale(1);
}
.product-card__wishlist:hover,
.product-card__wishlist.is-wishlisted {
  background: var(--py-rust);
  color: var(--py-white);
}
/* product-card__swap-badge defined below */
.product-card__quick-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3);
  background: linear-gradient(to top, rgba(255,255,255,.95) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform var(--transition-base);
  display: flex;
  gap: 6px;
  z-index: 4;
}
.product-card:hover .product-card__quick-actions {
  transform: translateY(0);
}
.product-card__body {
  padding: var(--space-3) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.product-card__category {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--py-rust);
}
.product-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--py-navy);
  text-decoration: none;
  line-height: 1.25;
  margin-bottom: 5px;
  display: block;
  transition: color var(--transition-fast);
}
.product-card__title:hover { color: var(--py-rust); }
.product-card__brand {
  font-size: var(--text-xs);
  color: var(--py-brown-light);
  font-weight: 500;
  margin-bottom: auto;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--py-cream-dark);
}
.product-card__price {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--py-navy);
}
.product-card__price .woocommerce-Price-currencySymbol { font-size: .85em; }
.product-card__seller {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--py-brown-light);
}
.product-card__seller-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

/* ── SWAP TOGGLE ─────────────────────────────────────────── */
/* Swap toggle widget (inside panels/drawers only) */
.swap-mode-widget .swap-toggle,
.py-swap-widget .swap-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--py-cream-dark);
  border-radius: 12px;
  margin-bottom: var(--space-5);
  cursor: pointer;
  transition: background var(--transition-fast);
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}
.swap-toggle:hover { background: var(--py-cream-mid); }
.swap-toggle__track {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--py-cream-mid);
  position: relative;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}
.swap-toggle.active .swap-toggle__track { background: var(--py-sage-dark); }
.swap-toggle__thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--py-white);
  position: absolute;
  top: 3px;
  left: 3px;
  transition: left var(--transition-fast);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.swap-toggle.active .swap-toggle__thumb { left: 21px; }
.swap-toggle__text { flex: 1; }
.swap-toggle__title { font-weight: 600; font-size: var(--text-sm); color: var(--py-navy); }
.swap-toggle__sub { font-size: var(--text-xs); color: var(--py-brown-light); margin-top: 2px; }

/* Swap mode active — page overlay indicator */
.swap-mode-active .site-header {
  border-bottom: 2px solid var(--py-sage-dark);
}
.swap-mode-banner {
  background: var(--py-sage-dark);
  color: var(--py-white);
  text-align: center;
  padding: 8px 20px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .06em;
  display: none;
}
.swap-mode-active .swap-mode-banner { display: block; }

/* ── SINGLE PRODUCT PAGE ─────────────────────────────────── */
.py-single-product {
  max-width: 100%;
}

/* Gallery: stacked grid like Sharland */
.py-product-gallery {
  display: grid;
  gap: 10px;
}
.py-product-gallery .main-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--py-cream-dark);
}
.py-product-gallery .main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.py-product-gallery .thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.py-product-gallery .thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--py-cream-dark);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}
.py-product-gallery .thumb.active { border-color: var(--py-rust); }
.py-product-gallery .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product summary panel */
.py-product-summary {
  position: sticky;
  top: calc(var(--header-height, 80px) + 20px);
}
.py-product-summary .product-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--py-rust);
  margin-bottom: 10px;
}
.py-product-summary .product_title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--py-navy);
  margin-bottom: 16px;
}
.py-product-summary .price {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--py-navy);
  margin-bottom: 20px;
  display: block;
}
.py-product-summary .woocommerce-product-details__short-description {
  color: var(--py-brown);
  font-size: var(--text-md);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

/* Add to cart section */
.py-product-summary .cart { display: flex; gap: 12px; align-items: center; }
.py-product-summary .quantity input {
  width: 64px;
  height: 52px;
  text-align: center;
  border: 1.5px solid var(--py-cream-dark);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--py-navy);
  background: var(--py-cream);
}
.py-product-summary .single_add_to_cart_button {
  flex: 1;
  background: var(--py-navy);
  color: var(--py-cream);
  border: none;
  border-radius: var(--radius-md);
  padding: 15px 28px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.py-product-summary .single_add_to_cart_button:hover { background: var(--py-rust); }

/* Product meta tags */
.py-product-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-5);
}
.py-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--py-cream-dark);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--py-charcoal);
}
.py-meta-tag--sage { background: rgba(122,158,126,.15); color: var(--py-sage-dark); }
.py-meta-tag--rust { background: rgba(196,98,45,.1); color: var(--py-rust-dark); }

/* Trust icons row */
.py-trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--py-cream-dark);
  border-bottom: 1px solid var(--py-cream-dark);
  margin: var(--space-6) 0;
}
.py-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.py-trust-item svg { color: var(--py-sage-dark); width: 20px; height: 20px; }
.py-trust-item span {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--py-brown-light);
}

/* Seller card on product page */
.py-seller-card {
  background: var(--py-cream-dark);
  border-radius: 16px;
  padding: var(--space-5);
  margin-top: var(--space-5);
}

/* Product tabs */
.woocommerce-tabs .tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--py-cream-dark);
  margin-bottom: var(--space-6);
  list-style: none;
  padding: 0;
}
.woocommerce-tabs .tabs li a {
  display: block;
  padding: 12px 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--py-brown-light);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.woocommerce-tabs .tabs li.active a {
  color: var(--py-navy);
  border-bottom-color: var(--py-rust);
}

/* Related products */
.related-products-section { margin-top: var(--space-20); padding-top: var(--space-8); border-top: 1px solid var(--py-cream-dark); }
.related-products-section h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--py-navy);
  margin-bottom: var(--space-8);
}

/* ── POSTCODE MODAL ──────────────────────────────────────── */
.postcode-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.postcode-modal.is-open {
  opacity: 1;
  pointer-events: all;
}
.postcode-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29,43,58,.5);
  backdrop-filter: blur(4px);
}
.postcode-modal__box {
  position: relative;
  background: var(--py-white);
  border-radius: 20px;
  padding: var(--space-8);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-xl);
  transform: translateY(12px);
  transition: transform var(--transition-base);
}
.postcode-modal.is-open .postcode-modal__box { transform: translateY(0); }
.postcode-modal__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--py-navy);
  margin-bottom: var(--space-2);
}
.postcode-modal__input-row {
  display: flex;
  gap: 8px;
  margin-top: var(--space-5);
}
.postcode-modal__input {
  flex: 1;
  border: 1.5px solid var(--py-cream-dark);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: var(--text-sm);
  color: var(--py-charcoal);
  background: var(--py-cream);
  font-family: var(--font-body);
  transition: border-color var(--transition-fast);
  text-transform: uppercase;
}
.postcode-modal__input:focus { border-color: var(--py-rust); outline: none; }
.postcode-modal__input::placeholder { text-transform: none; color: var(--py-brown-light); }

/* ── SEARCH ICON FIX ─────────────────────────────────────── */
/* Make the search toggle always show properly */
.search-toggle {
  background: none;
  border: 1.5px solid var(--py-navy);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--py-navy);
  transition: all var(--transition-fast);
}
.search-toggle:hover {
  background: var(--py-navy);
  color: var(--py-cream);
}
.search-toggle svg { width: 16px; height: 16px; }

/* ── RESPONSIVE ADJUSTMENTS ──────────────────────────────── */
@media (max-width: 1024px) {
  /* mega menu handled by JS .is-open class */
  .shop-filter-bar__inner { gap: var(--space-3); }
  .py-trust-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .cat-banner { min-height: 240px; }
  .cat-banner__title { font-size: 2.5rem; }
  .product-card__quick-actions { transform: translateY(0); opacity: 1; }
  .product-card__wishlist { opacity: 1; transform: scale(1); }
  .py-trust-row { grid-template-columns: repeat(2, 1fr); }
  .mega-menu__images { display: none; }
}


/* ── WooCommerce ordering dropdown — fix style ────────────── */
.woocommerce-ordering select,
.woocommerce-ordering .orderby {
  appearance: none;
  -webkit-appearance: none;
  background: var(--py-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B5744' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1.5px solid var(--py-cream-dark);
  border-radius: 999px;
  padding: 8px 36px 8px 14px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--py-charcoal);
  cursor: pointer;
  min-width: 180px;
  max-width: none;
  overflow: visible;
  text-overflow: unset;
  transition: border-color var(--transition-fast);
}
.woocommerce-ordering select:hover { border-color: var(--py-navy); }
.woocommerce-ordering select:focus { outline: none; border-color: var(--py-rust); }

/* ── Sign in / header modal issues ───────────────────────── */
/* The mobile drawer was opening over postcode modal – z-index fix */
.mobile-drawer { z-index: 300; }
.postcode-modal { z-index: 400; }
#quick-view-modal { z-index: 500; }
#toast-container { z-index: 600; }

/* ── Category card thumbnails (WPBakery element) ─────────── */
.py-cat-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-5);
}
.py-cat-thumb-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--py-cream-dark);
  display: block;
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.py-cat-thumb-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.py-cat-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.py-cat-thumb-card:hover img { transform: scale(1.05); }
.py-cat-thumb-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(to top, rgba(29,43,58,.75), transparent);
  color: var(--py-cream);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
}
.py-cat-thumb-card__count {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-style: normal;
  opacity: .7;
  margin-top: 3px;
  font-weight: 500;
}

/* ── Full-width banner (like inspo sites) ────────────────── */
.py-fw-banner {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.py-fw-banner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 90vh;
}
.py-fw-banner__media {
  position: absolute;
  inset: 0;
}
.py-fw-banner--split .py-fw-banner__media {
  position: relative;
  inset: auto;
  min-height: 600px;
}
.py-fw-banner__media img, .py-fw-banner__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.py-fw-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(29,43,58,.7) 0%, rgba(29,43,58,.1) 60%);
  pointer-events: none;
}
.py-fw-banner__content {
  position: relative;
  z-index: 2;
  padding: var(--space-16) var(--space-10);
  color: var(--py-cream);
  max-width: 640px;
}
.py-fw-banner--split .py-fw-banner__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-16) var(--space-12);
  color: var(--py-navy);
  background: var(--py-cream);
  max-width: none;
}
.py-fw-banner__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 16px;
}
.py-fw-banner__headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.py-fw-banner__headline em {
  font-style: italic;
  color: var(--py-rust-light);
}
.py-fw-banner--split .py-fw-banner__headline em { color: var(--py-sage-dark); }
.py-fw-banner__sub {
  font-size: var(--text-md);
  line-height: 1.65;
  opacity: .85;
  margin-bottom: 32px;
  max-width: 44ch;
}
.py-fw-banner__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Search camera icon */
.search-toggle svg { pointer-events: none; }


/* ============================================================
   PRAMYARD v2.2 — CART, CHECKOUT, VENDOR, HEADER FIXES,
   SLIDE CART, WISHLIST, SWAP PROPOSAL PANEL
   ============================================================ */

/* ── HEADER LAYOUT FIX ──────────────────────────────────────
   The header was showing mega menu links broken/overlapping
   on both mobile and desktop. Fixed layout below.           */
/* site-header: see line ~290 for base styles — z-index raised here */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--py-cream);
  border-bottom: 1px solid var(--py-cream-dark);
  box-shadow: 0 1px 0 rgba(29,43,58,.04);
}
.site-header__inner {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 72px;
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
/* Logo — centred */
.site-logo { flex: 1; display: flex; justify-content: center; }
.site-logo__link { text-decoration: none; display: flex; flex-direction: column; align-items: center; }
.site-logo__wordmark {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--py-navy);
  letter-spacing: -.01em;
  line-height: 1;
}
.site-logo__tagline {
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--py-brown-light);
  margin-top: 3px;
}
/* Nav sides */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex: 1;
}
.header-nav--right { justify-content: flex-end; }
.header-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: var(--space-3);
}
.header-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--py-navy);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
  position: relative;
}
.header-icon-btn:hover { background: var(--py-cream-dark); }
.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--py-rust);
  color: var(--py-white);
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid var(--py-cream);
}
.cart-count.is-empty { display: none; }

/* Mobile menu toggle — only visible on mobile */
.mobile-menu-toggle { display: none; }

@media (max-width: 1024px) {
  .header-nav--left .nav-link:not(#shop-mega-trigger) { display: none; }
  .header-nav--right .nav-link { display: none; }
  .mobile-menu-toggle { display: flex; }
  .site-header__inner { gap: var(--space-3); overflow: visible; }
}
@media (max-width: 640px) {
  .header-nav--left { display: flex; }
  .header-nav--left .nav-link,
  .header-nav--left .mega-menu-wrap { display: none; }
  .site-logo { justify-content: flex-start; }
  .site-logo__tagline { display: none; }
  /* Hide swap toggle on small screens — accessible via menu */
  .header-icons .swap-toggle { display: none; }
  .header-icons { gap: 2px; }
  .header-icon-btn { width: 32px; height: 32px; }
}

/* ── MOBILE DRAWER FIX ──────────────────────────────────────*/
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--py-white);
  z-index: 300;
  transition: left var(--transition-base);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.mobile-drawer.is-open { left: 0; }
.mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-5);
  border-bottom: 1px solid var(--py-cream-dark);
  position: sticky;
  top: 0;
  background: var(--py-white);
  z-index: 2;
}
.mobile-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--py-charcoal);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.mobile-drawer__close:hover { background: var(--py-cream-dark); }
.mobile-drawer__nav { flex: 1; padding: var(--space-3) 0; }
.mobile-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--py-navy);
  text-decoration: none;
  border-bottom: 1px solid var(--py-cream-dark);
  transition: background var(--transition-fast);
}
.mobile-drawer__link:hover { background: var(--py-cream-dark); }
.mobile-drawer__link--sub {
  padding-left: calc(var(--space-5) + 14px);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--py-brown);
}
.mobile-drawer__footer { padding: var(--space-5); border-top: 1px solid var(--py-cream-dark); }
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(29,43,58,.4);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(2px);
}
.mobile-backdrop.is-visible {
  opacity: 1;
  pointer-events: all;
}

/* ── SLIDE CART ─────────────────────────────────────────────*/
.slide-cart {
  position: fixed;
  top: 0;
  right: -480px;
  width: min(460px, 100vw);
  height: 100vh;
  background: var(--py-white);
  z-index: 350;
  transition: right var(--transition-base);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(29,43,58,.12);
}
.slide-cart.is-open { right: 0; }
.slide-cart__header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--py-cream-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--py-white);
  z-index: 2;
}
.slide-cart__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--py-navy);
}
.slide-cart__count {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--py-brown-light);
  margin-left: 8px;
}
.slide-cart__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--py-charcoal);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.slide-cart__close:hover { background: var(--py-cream-dark); }
.slide-cart__items { flex: 1; overflow-y: auto; padding: var(--space-4) 0; }
.slide-cart__item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--py-cream-dark);
  align-items: start;
}
.slide-cart__img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--py-cream-dark);
}
.slide-cart__item-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--py-navy);
  margin-bottom: 4px;
  line-height: 1.3;
}
.slide-cart__item-seller {
  font-size: var(--text-xs);
  color: var(--py-brown-light);
  margin-bottom: 4px;
}
.slide-cart__item-location {
  font-size: var(--text-xs);
  color: var(--py-sage-dark);
  display: flex;
  align-items: center;
  gap: 3px;
}
.slide-cart__item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--py-brown-light);
  font-size: var(--text-xs);
  text-decoration: underline;
  padding: 0;
  margin-top: 6px;
  font-family: var(--font-body);
}
.slide-cart__item-price {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--py-navy);
  flex-shrink: 0;
}
.slide-cart__footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--py-cream-dark);
  background: var(--py-cream);
}
.slide-cart__total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-4);
}
.slide-cart__total-label { font-size: var(--text-sm); font-weight: 700; color: var(--py-charcoal); letter-spacing: .06em; text-transform: uppercase; }
.slide-cart__total-price { font-family: var(--font-heading); font-size: var(--text-xl); color: var(--py-navy); }
.slide-cart__actions { display: flex; flex-direction: column; gap: 10px; }
.slide-cart__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: var(--space-10);
  text-align: center;
  color: var(--py-brown-light);
}
.slide-cart__empty-icon { font-size: 3.5rem; margin-bottom: var(--space-4); opacity: .3; }

/* ── SWAP PROPOSAL PANEL (slide-in from right) ──────────── */
.swap-panel {
  position: fixed;
  top: 0;
  right: -580px;
  width: min(560px, 100vw);
  height: 100vh;
  background: var(--py-white);
  z-index: 360;
  transition: right var(--transition-base);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(29,43,58,.15);
}
.swap-panel.is-open { right: 0; }
.swap-panel__header {
  background: var(--py-navy);
  color: var(--py-cream);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.swap-panel__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
}
.swap-panel__subtitle { font-size: var(--text-xs); opacity: .7; margin-top: 4px; }
.swap-panel__body { flex: 1; overflow-y: auto; padding: var(--space-6); }
.swap-panel__section-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--py-brown-light);
  margin-bottom: var(--space-3);
  margin-top: var(--space-5);
}
.swap-panel__wanted-item {
  background: var(--py-cream-dark);
  border-radius: 14px;
  padding: var(--space-4);
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-5);
}
.swap-panel__wanted-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--py-cream-mid);
  flex-shrink: 0;
}
.swap-panel__item-card {
  border: 2px solid var(--py-cream-dark);
  border-radius: 14px;
  padding: var(--space-3);
  display: flex;
  gap: var(--space-3);
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: var(--space-3);
}
.swap-panel__item-card:hover, .swap-panel__item-card.selected {
  border-color: var(--py-sage-dark);
  background: rgba(122,158,126,.07);
}
.swap-panel__item-card.selected::after {
  content: '✓';
  margin-left: auto;
  flex-shrink: 0;
  color: var(--py-sage-dark);
  font-weight: 700;
  font-size: 1.2rem;
}
.swap-panel__item-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--py-cream-dark);
  flex-shrink: 0;
}
.swap-panel__textarea {
  width: 100%;
  border: 1.5px solid var(--py-cream-dark);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--py-charcoal);
  resize: vertical;
  min-height: 100px;
  background: var(--py-cream);
  transition: border-color var(--transition-fast);
}
.swap-panel__textarea:focus { outline: none; border-color: var(--py-sage-dark); }
.swap-panel__footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--py-cream-dark);
  background: var(--py-cream);
}
.swap-in-progress {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--py-sage);
  color: var(--py-white);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── PRODUCT PAGE TAB REDESIGN ──────────────────────────── */
.py-product-tabs {
  border-top: 1px solid var(--py-cream-dark);
  margin-top: var(--space-12);
}
.py-product-tabs__nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.py-product-tabs__nav::-webkit-scrollbar { display: none; }
.py-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--py-brown-light);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  margin-bottom: -1px;
  position: relative;
}
.py-tab-btn.active {
  color: var(--py-navy);
  border-bottom-color: var(--py-rust);
}
.py-tab-btn:hover { color: var(--py-navy); }
.py-tab-panel {
  display: none;
  padding: var(--space-8) 0;
  animation: tabFadeIn .2s ease;
}
.py-tab-panel.active { display: block; }
@keyframes tabFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Review form styling */
.py-review-form {
  max-width: 520px;
  margin-top: var(--space-6);
}
.py-review-form .stars-select {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.py-review-form .star-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--py-cream-dark);
  transition: color var(--transition-fast);
  padding: 0;
}
.py-review-form .star-btn.lit { color: #F5A623; }
.py-review-form textarea, .py-review-form input[type="text"], .py-review-form input[type="email"] {
  width: 100%;
  border: 1.5px solid var(--py-cream-dark);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--py-charcoal);
  background: var(--py-cream);
  transition: border-color var(--transition-fast);
  margin-bottom: 12px;
}
.py-review-form textarea:focus, .py-review-form input:focus { outline: none; border-color: var(--py-rust); }
.py-review-form .submit-btn {
  background: var(--py-navy);
  color: var(--py-cream);
  border: none;
  border-radius: 999px;
  padding: 12px 32px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.py-review-form .submit-btn:hover { background: var(--py-rust); }
/* Stars in reviews */
.wc-product-rating .star-rating::before,
.wc-product-rating .star-rating span::before {
  color: #F5A623;
}

/* Vendor tab — hide ugly default MarketKing output */
.woocommerce-tabs .panel .vendor-info-default { display: none; }
.py-vendor-panel {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}
.py-vendor-panel__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--py-cream-dark);
}
.py-vendor-panel__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--py-navy);
  margin-bottom: 4px;
}
.py-vendor-panel__meta { font-size: var(--text-xs); color: var(--py-brown-light); margin-bottom: 12px; }

/* ── CART PAGE ──────────────────────────────────────────── */
.py-cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-8);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-10) var(--space-20);
}
.py-cart-heading {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--py-navy);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.py-cart-count {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--py-brown-light);
}
.py-cart-table {
  width: 100%;
  border-collapse: collapse;
}
.py-cart-table th {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--py-brown-light);
  padding: 12px 0;
  border-bottom: 2px solid var(--py-cream-dark);
  text-align: left;
}
.py-cart-item {
  border-bottom: 1px solid var(--py-cream-dark);
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4) 0;
}
.py-cart-item__img-wrap { display: block; flex-shrink: 0; }
.py-cart-item__img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--py-cream-dark);
}
.py-cart-item__name { font-size: var(--text-base); font-weight: 500; color: var(--py-navy); text-decoration: none; margin-bottom: 4px; display: block; }
.py-cart-item__name:hover { color: var(--py-rust); }
.py-cart-item__cat { font-size: var(--text-xs); color: var(--py-brown-light); margin-bottom: 2px; }
.py-cart-item__seller { font-size: var(--text-xs); color: var(--py-brown-light); margin-bottom: 8px; }
.py-cart-item__remove { font-size: var(--text-xs); color: var(--py-brown-light); text-decoration: underline; cursor: pointer; background: none; border: none; font-family: var(--font-body); padding: 0; }
.py-cart-item__remove:hover { color: var(--py-rust); }
.py-cart-item__price { font-family: var(--font-heading); font-size: var(--text-lg); color: var(--py-navy); font-weight: 500; text-align: right; }
.py-cart-item__details { display: flex; flex-direction: column; }
/* Summary sidebar */
.py-cart-summary {
  background: var(--py-cream-dark);
  border-radius: 20px;
  padding: var(--space-6);
  position: sticky;
  top: calc(72px + var(--space-4));
}
.py-cart-summary__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--py-navy);
  margin-bottom: var(--space-4);
}
.py-cart-summary__body { border-top: 1px solid rgba(0,0,0,.07); padding-top: var(--space-4); margin-bottom: var(--space-4); }
.py-cart-summary__cta { width: 100%; display: block; text-align: center; }
.py-cart-summary__continue { display: block; text-align: center; margin-top: var(--space-3); font-size: var(--text-sm); color: var(--py-brown-light); text-decoration: none; }
.py-cart-summary__continue:hover { color: var(--py-rust); }
/* WC totals table inside summary */
.woocommerce-cart .cart_totals table { width: 100%; border-collapse: collapse; }
.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td { padding: 8px 0; font-size: var(--text-sm); border: none; border-bottom: 1px solid rgba(0,0,0,.06); }
.woocommerce-cart .cart_totals table .order-total th,
.woocommerce-cart .cart_totals table .order-total td { font-weight: 700; font-size: var(--text-base); border-bottom: none; padding-top: 14px; }
.woocommerce-cart .cart_totals .wc-proceed-to-checkout { display: none; } /* We use our own button */
/* Hide WC quantity in cart */
.woocommerce-cart td.product-quantity,
.woocommerce-cart .quantity,
.woocommerce-cart input.qty { display: none !important; }
@media (max-width: 768px) {
  .py-cart-layout { grid-template-columns: 1fr; padding: var(--space-6) var(--space-4); }
  .py-cart-summary { position: static; }
}
/* Cart totals legacy */
.py-cart-totals {
  background: var(--py-cream-dark);
  border-radius: 20px;
  padding: var(--space-6);
}
.py-cart-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.py-cart-totals__row:last-child { border-bottom: none; }
.py-cart-totals__total-label { font-weight: 700; color: var(--py-charcoal); font-size: var(--text-base); }
.py-cart-totals__total-price { font-family: var(--font-heading); font-size: 1.75rem; color: var(--py-navy); }

.wc-page-wrap .woocommerce { padding: var(--space-10) var(--space-6) var(--space-20); }
.wc-page-wrap .woocommerce-cart .woocommerce { padding: 0; }
.woocommerce form .form-row { margin-bottom: var(--space-3); }
.woocommerce form .form-row label { font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--py-brown-light); margin-bottom: 6px; display: block; }
.woocommerce form .form-row input, 
.woocommerce form .form-row select, 
.woocommerce form .form-row textarea {
  border: 1.5px solid var(--py-cream-dark) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-family: var(--font-body) !important;
  font-size: var(--text-sm) !important;
  color: var(--py-charcoal) !important;
  background: var(--py-cream) !important;
  width: 100% !important;
  transition: border-color var(--transition-fast) !important;
}
.woocommerce form .form-row input:focus,
.woocommerce form .form-row select:focus { border-color: var(--py-rust) !important; outline: none !important; }
/* Place order button */
#place_order {
  background: var(--py-rust) !important;
  color: var(--py-white) !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 18px 48px !important;
  font-family: var(--font-body) !important;
  font-size: var(--text-base) !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: background var(--transition-fast) !important;
  box-shadow: 0 8px 24px rgba(196,98,45,.3) !important;
}
#place_order:hover { background: var(--py-rust-dark) !important; }

/* ── VENDOR / STORE PAGE (MarketKing template override) ── */
.marketking-store-header {
  background: var(--py-navy);
  min-height: 240px;
  position: relative;
  display: flex;
  align-items: flex-end;
  border-radius: 0;
  overflow: hidden;
}
.marketking-store-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29,43,58,.9) 20%, transparent 100%);
}
.marketking-store-header__content {
  position: relative;
  z-index: 2;
  padding: var(--space-8);
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  color: var(--py-cream);
}
.mk-store-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.3);
  object-fit: cover;
  flex-shrink: 0;
}
.mk-store-name {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--py-cream);
  line-height: 1;
  margin-bottom: 6px;
}
.mk-store-meta { font-size: var(--text-xs); color: rgba(249,245,238,.6); }

/* ── WISHLIST ─────────────────────────────────────────────*/
.py-wishlist-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-8);
}
.py-wishlist-sidebar { border-right: 1px solid var(--py-cream-dark); padding-right: var(--space-6); }
.py-board-list { list-style: none; padding: 0; margin: 0; }
.py-board-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--transition-fast);
  margin-bottom: 4px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--py-charcoal);
}
.py-board-item:hover { background: var(--py-cream-dark); }
.py-board-item.active { background: var(--py-navy); color: var(--py-cream); }
.py-board-item__count { margin-left: auto; font-size: var(--text-xs); opacity: .6; }
.py-board-create {
  display: flex;
  gap: 8px;
  margin-top: var(--space-4);
}
.py-board-create input {
  flex: 1;
  border: 1.5px solid var(--py-cream-dark);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  background: var(--py-cream);
}
.py-board-create input:focus { outline: none; border-color: var(--py-rust); }

/* ── ORDER CONFIRMATION PAGE ────────────────────────────── */
.py-order-success {
  max-width: 640px;
  margin: var(--space-16) auto;
  text-align: center;
  padding: 0 var(--space-6);
}
.py-order-success__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--py-sage-dark);
  color: var(--py-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  font-size: 2rem;
}
.py-order-success__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--py-navy);
  margin-bottom: var(--space-3);
}
.py-order-success__details {
  background: var(--py-cream-dark);
  border-radius: 16px;
  padding: var(--space-6);
  text-align: left;
  margin: var(--space-6) 0;
}

/* ── WHATSAPP SHARE BUTTON ──────────────────────────────── */
.py-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: var(--py-white);
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast);
}
.py-whatsapp-btn:hover { background: #1FAD53; color: var(--py-white); }
.py-whatsapp-btn svg { width: 18px; height: 18px; }

/* ── SEARCH PAGE REDESIGN ───────────────────────────────── */
.py-search-hero {
  background: var(--py-navy);
  padding: var(--space-12) 0;
  text-align: center;
  color: var(--py-cream);
}
.py-search-hero form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  background: var(--py-white);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(29,43,58,.2);
}
.py-search-hero input {
  flex: 1;
  border: none;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--py-charcoal);
  background: transparent;
}
.py-search-hero input:focus { outline: none; }
.py-search-hero button[type="submit"] {
  background: var(--py-rust);
  color: var(--py-white);
  border: none;
  padding: 16px 28px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: background var(--transition-fast);
}
.py-search-hero button:hover { background: var(--py-rust-dark); }

/* Add to cart button override — no quantity */
.single_add_to_cart_button { width: 100%; }
.py-no-qty .quantity { display: none !important; }

/* Footer nav fix */
.site-footer__nav a { color: var(--py-cream); opacity: .7; text-decoration: none; font-size: var(--text-sm); }
.site-footer__nav a:hover { opacity: 1; }
/* Footer — sign out links should not appear as category links */
.site-footer .woocommerce-MyAccount-navigation { display: none; }

/* Add to cart button — remove default purple WooCommerce */
.woocommerce .single_add_to_cart_button,
.woocommerce button.button.alt,
.woocommerce #respond input#submit.alt {
  background-color: var(--py-navy) !important;
  color: var(--py-cream) !important;
  border-radius: 12px !important;
  font-family: var(--font-body) !important;
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  padding: 15px 28px !important;
  border: none !important;
  transition: background var(--transition-fast) !important;
}
.woocommerce .single_add_to_cart_button:hover,
.woocommerce button.button.alt:hover { background-color: var(--py-rust) !important; }


/* ── TOAST NOTIFICATIONS ─────────────────────────────────── */
#toast-container { position:fixed;bottom:24px;right:24px;z-index:600;display:flex;flex-direction:column;gap:10px;pointer-events:none; }
.toast { background:var(--py-navy);color:var(--py-cream);padding:12px 20px;border-radius:12px;font-size:var(--text-sm);font-weight:500;box-shadow:var(--shadow-lg);opacity:0;transform:translateY(10px);transition:all .3s ease;pointer-events:all;max-width:300px; }
.toast--visible { opacity:1;transform:none; }
.toast--success { background:var(--py-sage-dark); }
.toast--error { background:#C0392B; }

/* ── WISHLIST HEART HOVER ──────────────────────────────────── */
.product-card__heart:hover { background:rgba(255,255,255,1) !important;transform:scale(1.1); }
.product-card__heart.is-saved svg { fill:var(--py-rust);stroke:var(--py-rust); }

/* ── PRODUCT CARD COMPLETE ──────────────────────────────────── */
.product-card__image-wrap { position:relative;overflow:hidden; }
.product-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  z-index: 2;
}
.product-card__swap-badge {
  position: absolute;
  top: 10px;
  right: 44px;
  background: rgba(196,98,45,.92);
  color: #fff;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  flex-shrink: 0;
}
.product-card__heart {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(255,255,255,.88);
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: all .15s;
  z-index: 3;
}
.product-card__brand {
  font-size: var(--text-xs);
  color: var(--py-brown-light);
  font-weight: 400;
  margin-bottom: auto;
  margin-top: 2px;
}

.woocommerce-page .woocommerce,
.woocommerce #customer_details { grid-column:1; }

/* ── ORDER SUCCESS PAGE ──────────────────────────────────── */
.woocommerce-order-received h2,
.woocommerce-thankyou-order-received { font-family:var(--font-heading);font-size:2.5rem;font-weight:300;color:var(--py-navy); }

/* ── CART PAGE OVERRIDES ─────────────────────────────────── */
.woocommerce-cart table.cart { border-collapse:collapse; }
.woocommerce-cart table.cart td, .woocommerce-cart table.cart th { border:none;padding:var(--space-4) var(--space-3); }
.woocommerce-cart table.cart .product-thumbnail img { border-radius:10px;width:80px;height:80px;object-fit:cover; }
.woocommerce-cart .cart-collaterals { background:var(--py-cream-dark);border-radius:20px;padding:var(--space-5); }
.woocommerce-cart .cart_totals h2 { font-family:var(--font-heading);font-size:var(--text-xl);font-weight:400;color:var(--py-navy);margin-bottom:var(--space-4); }
/* Remove qty from cart */
.woocommerce-cart .qty { width:60px;border:1.5px solid var(--py-cream-dark);border-radius:8px;text-align:center;padding:6px;font-family:var(--font-body); }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background:var(--py-rust) !important;color:var(--py-white) !important;border-radius:999px !important;padding:16px 32px !important;font-weight:700 !important;font-size:var(--text-base) !important;letter-spacing:.06em !important;text-transform:uppercase !important;width:100% !important;text-align:center !important;display:block !important;
}

/* ── BREADCRUMB ───────────────────────────────────────────── */
.py-breadcrumb { font-size:var(--text-xs);color:var(--py-brown-light); }
.py-breadcrumb a { color:var(--py-brown-light);text-decoration:none; }
.py-breadcrumb a:hover { color:var(--py-rust); }
.py-breadcrumb span { color:var(--py-charcoal); }

/* ── VENDOR STORE PAGE RESPONSIVE ───────────────────────── */
@media (max-width:768px) {
  .marketking-store-header__content { flex-direction:column;gap:12px;padding:var(--space-5); }
  .mk-store-name { font-size:1.5rem; }
  .py-wishlist-grid { grid-template-columns:1fr; }
  .py-wishlist-sidebar { border-right:none;border-bottom:1px solid var(--py-cream-dark);padding-right:0;padding-bottom:var(--space-5); }
}

/* ── SWAP PANEL MOBILE ───────────────────────────────────── */
@media (max-width:640px) {
  .swap-panel { width:100vw; }
  .slide-cart { width:100vw; }
}

/* Fix WooCommerce account sidebar showing in footer */
.site-footer .woocommerce-MyAccount-navigation,
.site-footer .woocommerce-account-navigation { display:none !important; }

/* ── SOCIAL LOGIN BUTTONS ─────────────────────────────────── */
.social-login-divider { display:flex;align-items:center;gap:12px;margin:16px 0;color:var(--py-brown-light);font-size:var(--text-xs); }
.social-login-divider::before, .social-login-divider::after { content:'';flex:1;height:1px;background:var(--py-cream-dark); }
.btn-social { display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:12px 20px;border:1.5px solid var(--py-cream-dark);border-radius:12px;background:var(--py-white);font-family:var(--font-body);font-size:var(--text-sm);font-weight:500;color:var(--py-charcoal);cursor:pointer;transition:all var(--transition-fast);text-decoration:none;margin-bottom:10px; }
.btn-social:hover { border-color:var(--py-navy);background:var(--py-cream-dark); }
.btn-social svg { width:18px;height:18px;flex-shrink:0; }

/* ── ADMIN PANEL section_title and info ─────────────────── */
.py-admin-section-title { font-size:1rem;font-weight:700;color:#1D2B3A;margin:24px 0 4px;padding-bottom:8px;border-bottom:2px solid #F9F5EE; }
.py-admin-info-box { background:#F9F5EE;border-left:4px solid #7A9E7E;padding:12px 16px;border-radius:0 8px 8px 0;font-size:.875rem;color:#4A3728;margin:12px 0; }
.py-admin-info-box code { background:#fff;padding:2px 6px;border-radius:4px;font-size:.8rem; }


/* ============================================================
   PRAMYARD v2.3 — BUG FIXES
   ============================================================ */

/* ── Remove blue focus rings on icon buttons ─────────────── */
.header-icon-btn:focus,
.header-icon-btn:focus-visible,
button:focus:not(:focus-visible),
.nav-link:focus:not(:focus-visible),
.py-tab-btn:focus:not(:focus-visible),
.slide-cart__close:focus:not(:focus-visible),
.mobile-drawer__close:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}
/* Keep visible focus for keyboard navigation only */
.header-icon-btn:focus-visible {
  outline: 2px solid var(--py-rust);
  outline-offset: 2px;
}
/* Search bar input — remove blue border */
#search-bar input[type="search"]:focus { outline: none; box-shadow: none; }
#search-bar { border-top: 1px solid var(--py-cream-dark) !important; }

/* ── SHOP button fix — remove box outline ────────────────── */
#shop-mega-trigger {
  outline: none !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0;
  vertical-align: middle;
  line-height: inherit;
  height: 100%;
  display: inline-flex;
  align-items: center;
}
#shop-mega-trigger:focus { outline: none !important; }

/* ── CART page — hide quantity stepper ───────────────────── */
.woocommerce-cart .product-quantity,
.woocommerce-cart td.product-quantity,
.woocommerce-cart .qty,
.woocommerce-cart input.qty,
.woocommerce-cart .quantity { display: none !important; }

/* ── REVIEWS — fix doubled heading ──────────────────────── */
/* Our tab already has "Reviews" heading, hide WC's own heading */
#tab-reviews > h2:first-child { display: none; }
/* Also hide duplicate from WC comments_template */
.woocommerce-Reviews-title { display: none !important; }

/* ── FOOTER FIX — restore columns ───────────────────────── */
.site-footer { background: var(--py-navy); color: var(--py-cream); }
.site-footer__brand {
  max-width: 240px;
}
.site-footer__logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 300;
  color: var(--py-cream);
  margin-bottom: 6px;
}
.site-footer__inner {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-12) var(--space-6) var(--space-8);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-12);
}
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.site-footer__col h3,
.site-footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(249,245,238,.5);
  margin-bottom: var(--space-3);
  display: block;
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col ul li { margin-bottom: 8px; }
.site-footer__col ul li a {
  color: rgba(249,245,238,.75);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}
.site-footer__col ul li a:hover { color: var(--py-cream); }
.site-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(249,245,238,.2);
  color: rgba(249,245,238,.6);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.site-footer__social:hover { border-color: var(--py-cream); color: var(--py-cream); }
.site-footer__bottom {
  border-top: 1px solid rgba(249,245,238,.1);
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: rgba(249,245,238,.4);
}
.site-footer__bottom nav { display: flex; gap: var(--space-5); }
.site-footer__bottom nav a { color: rgba(249,245,238,.4); text-decoration: none; }
.site-footer__bottom nav a:hover { color: rgba(249,245,238,.7); }

/* Newsletter section */
.newsletter-section {
  background: var(--py-sage-dark);
  padding: var(--space-12) var(--space-6);
  text-align: center;
}
.newsletter-section > * {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-section__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255,255,255,.6);
  text-align: center;
  margin-bottom: 8px;
}
.newsletter-section__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--py-white);
  margin-bottom: 8px;
}
.newsletter-section__text { font-size: var(--text-sm); color: rgba(255,255,255,.75); margin-bottom: var(--space-5); text-align: center; }
.newsletter-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  background: var(--py-white);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.newsletter-form__input {
  flex: 1;
  border: none;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  background: transparent;
  color: var(--py-charcoal);
}
.newsletter-form__input:focus { outline: none; }
.newsletter-form__btn {
  background: var(--py-navy);
  color: var(--py-white);
  border: none;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.newsletter-form__btn:hover { background: var(--py-rust); }

/* ── CUSTOM WP LOGIN PAGE ────────────────────────────────── */
body.login { background: var(--py-cream) !important; }
body.login #login { padding: 40px 0; }
body.login h1 a {
  background-image: none !important;
  font-family: Georgia, serif !important;
  font-size: 2rem !important;
  font-weight: 300;
  color: var(--py-navy) !important;
  text-indent: 0 !important;
  width: auto !important;
  height: auto !important;
}
body.login #loginform,
body.login #registerform,
body.login #lostpasswordform {
  border: none !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 40px rgba(29,43,58,.1) !important;
  padding: 32px !important;
}
body.login label { font-family: Arial, sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #666; }
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
  border: 1.5px solid #E8E2D9 !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-size: .9rem !important;
  box-shadow: none !important;
}
body.login input[type="text"]:focus,
body.login input[type="password"]:focus { border-color: #C4622D !important; outline: none !important; box-shadow: none !important; }
body.login .button-primary {
  background: #1D2B3A !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 12px 32px !important;
  font-size: .875rem !important;
  font-weight: 700 !important;
  width: 100% !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: none !important;
  cursor: pointer;
  transition: background .2s !important;
}
body.login .button-primary:hover { background: #C4622D !important; }
body.login #nav, body.login #backtoblog { text-align: center; }
body.login #nav a, body.login #backtoblog a { color: #C4622D !important; }

/* ── MOBILE PRODUCT CARD FIX ─────────────────────────────── */
@media (max-width: 640px) {
  .product-card { border-radius: 14px; }
  .product-card__img { border-radius: 14px 14px 0 0; }
  .product-card__body { padding: var(--space-3); }
  .product-card__title { font-size: var(--text-sm); }
  .product-card__price { font-size: var(--text-base); }
  /* Product page on mobile */
  .py-gallery { margin-bottom: var(--space-4); }
  .woocommerce div.product { flex-direction: column; }
}

/* ── WISHLIST HEART on product page ─────────────────────── */
.py-single-heart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--py-cream-dark);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--py-charcoal);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 10px;
}
.py-single-heart:hover, .py-single-heart.is-saved {
  border-color: var(--py-rust);
  color: var(--py-rust);
}
.py-single-heart svg { transition: fill .15s; }
.py-single-heart.is-saved svg { fill: var(--py-rust); }

/* ── SWAP PANEL improvements ─────────────────────────────── */
.swap-panel__wanted-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-3);
}
.swap-panel__cat-chip {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--py-cream-dark);
  color: var(--py-charcoal);
  font-size: var(--text-xs);
  font-weight: 600;
}
.swap-panel__upload-prompt {
  background: var(--py-cream-dark);
  border-radius: 14px;
  padding: var(--space-5);
  text-align: center;
  border: 2px dashed var(--py-cream-mid, #d5ccbe);
}

/* ── DEFAULT SORTING inline fix ─────────────────────────── */
.py-filter-bar { align-items: center !important; }
.woocommerce-ordering {
  margin: 0 !important;
  float: none !important;
  display: flex !important;
  align-items: center !important;
}
.woocommerce-ordering select {
  height: 36px !important;
  line-height: 36px !important;
}


/* ── MOBILE PRODUCT GRID ─────────────────────────────────── */
@media (max-width: 768px) {
  /* 2-column grid on mobile — targets both WC default and our custom grid */
  .woocommerce .products,
  .products.columns-4,
  .products.columns-3,
  .py-product-grid,
  [class*="py-product-grid--"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-3) !important;
  }
  /* Header mobile */
  .site-header { padding: 0 16px; }
  .header-nav--left { display: none; }
  .header-nav--right .nav-link { display: none; }
  .header-nav--right .header-icons { display: flex; }
  .header-icon-btn--menu { display: flex !important; }
  /* Product cards on mobile */
  .product-card__body { padding: 10px 12px; }
  .product-card__title { font-size: var(--text-sm); line-height: 1.3; }
  .product-card__title a { font-size: var(--text-sm); }
  .product-card__price { font-size: var(--text-sm); }
  .product-card__footer { gap: 6px; }
  /* Related products on mobile */
  .py-related-grid { grid-template-columns: repeat(2, 1fr) !important; }
  /* Product page gallery on mobile */
  .py-single-two-col { grid-template-columns: 1fr !important; }
  /* Category banner on mobile */
  .cat-banner { min-height: 200px; }
  /* Filter bar on mobile */
  .shop-filter-bar__inner { gap: 6px; flex-wrap: nowrap; padding: 8px 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Mega menu full width on mobile */
  .mega-menu { width: 100vw; left: 0; right: 0; }
  /* Slide cart full width on mobile */
  #slide-cart { width: 100vw !important; }
}
@media (max-width: 480px) {
  .woocommerce .products,
  .py-product-grid,
  [class*="py-product-grid--"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .product-card__img-link { display: block; }
  .product-card__badge { font-size: 9px; padding: 3px 6px; }
}

/* ── SELLER SPOTLIGHT CARD ──────────────────────────────────*/
.seller-spotlight-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8);
  background: var(--py-white);
  border-radius: 16px;
  border: 1px solid var(--py-cream-dark);
}
.seller-spotlight-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-4);
  border: 3px solid var(--py-cream-dark);
}
.seller-spotlight-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--py-navy);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}
.seller-spotlight-card__name:hover { color: var(--py-rust); }
.seller-spotlight-card__meta {
  font-size: var(--text-xs);
  color: var(--py-brown-light);
  letter-spacing: .04em;
  margin-bottom: var(--space-3);
}
.seller-spotlight-card__bio {
  font-size: var(--text-sm);
  color: var(--py-brown);
  line-height: 1.6;
  margin-bottom: var(--space-5);
  flex: 1;
}

/* ── STAR RATINGS ───────────────────────────────────────────*/
.star-rating {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  margin-top: 6px;
}
.star { display: inline-flex; align-items: center; color: var(--py-cream-dark); }
.star--filled { color: #C4622D; }
.star--half { color: #C4622D; opacity: 0.5; }
.star--empty { color: var(--py-cream-dark); }
.star svg { display: block; }
.rating-count { font-size: var(--text-xs); color: var(--py-brown-light); margin-left: 4px; }

/* ── FOOTER MOBILE ──────────────────────────────────────────*/
@media (max-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: var(--space-8) var(--space-5);
    text-align: center;
  }
  .site-footer__brand {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .site-footer__brand > * { text-align: center; }
  .site-footer__nav {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  .site-footer__col { text-align: left; }
  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
  }
  .site-footer__bottom nav { justify-content: center; flex-wrap: wrap; }
}

/* ── PRODUCT CARD BOTTOM PADDING ────────────────────────────*/
.product-card { padding-bottom: var(--space-2); }

/* ── PY HERO SECTION ────────────────────────────────────────*/
.py-hero-section {
  background: var(--py-cream);
  padding: var(--space-16) 0 var(--space-10);
  overflow: hidden;
}
.py-hero-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  min-height: 560px;
}
.py-hero-section__content {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.py-hero-section__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--py-rust);
  margin-bottom: var(--space-5);
}
.py-hero-section__eyebrow-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--py-rust);
  flex-shrink: 0;
}
.py-hero-section__heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--py-navy);
  margin-bottom: var(--space-6);
}
.py-hero-section__heading em {
  font-style: italic;
  color: var(--py-rust-light);
}
.py-hero-section__subtext {
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--py-brown);
  max-width: 44ch;
  margin-bottom: var(--space-8);
}
.py-hero-section__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}
.py-hero-section__stats {
  display: flex;
  gap: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--py-cream-dark);
}
.py-hero-section__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.py-hero-section__stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 300;
  color: var(--py-navy);
  line-height: 1;
}
.py-hero-section__stat-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--py-brown-light);
}
.py-hero-section__image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 5/6;
  background: var(--py-cream-dark);
}
.py-hero-section__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
@media (max-width: 768px) {
  .py-hero-section__inner { grid-template-columns: 1fr; min-height: auto; }
  .py-hero-section__image-wrap { aspect-ratio: 16/10; max-height: 400px; }
  .py-hero-section { padding: var(--space-10) 0 var(--space-8); }
}

/* ── BLOG CARDS — editorial magazine style ──────────────────*/
/* Override existing plain blog-card with richer styling */
.blog-card {
  text-decoration: none;
  display: block;
  color: inherit;
  background: transparent;
}
.blog-card__image-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: var(--py-cream-dark);
  margin-bottom: var(--space-4);
  position: relative;
}
.blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.blog-card:hover .blog-card__image { transform: scale(1.04); }
.blog-card__category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--py-rust);
  margin-bottom: 8px;
  display: block;
}
.blog-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--py-navy);
  line-height: 1.2;
  margin-bottom: var(--space-3);
  transition: color var(--transition-fast);
}
.blog-card:hover .blog-card__title { color: var(--py-rust); }
.blog-card__excerpt {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--py-brown);
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--py-brown-light);
  letter-spacing: .02em;
}
/* Featured (first) blog card — larger */
.py-blog-grid .blog-card:first-child .blog-card__image-wrap {
  aspect-ratio: 5/4;
}
.py-blog-grid .blog-card:first-child .blog-card__title {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}
/* Blog grid layout — use named column classes below */
.py-blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

/* ── VENDOR STORE PAGE ──────────────────────────────────────*/
/* Hide MarketKing's auto-generated "Store: X" page title */
.marketking-store-header-title,
.marketking-vendor-page-title,
body.tax-post_tag.term-store h1.page-title,
.single-store h1,
h1.marketking-store-title { display: none !important; }

/* Store product grid  */
.py-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-5);
}

/* ── YOU MIGHT ALSO LIKE — fix padding below heading ────────*/
.py-related-section__heading {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--py-navy);
  margin-bottom: var(--space-10);
  padding-bottom: 0;
}

/* ── CATEGORY THUMBNAILS — mobile responsive ────────────────*/
.py-cat-thumbs-grid {
  display: grid;
}
@media (max-width: 768px) {
  .py-cat-thumbs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-3) !important;
  }
  .py-cat-thumbs-grid .py-cat-thumb-card { aspect-ratio: 1/1; }
  .py-cat-thumb-card__label { font-size: 0.9rem; padding: 24px 10px 10px; }
}

/* ── CART PAGE — padding fix ────────────────────────────────*/
.py-cart-layout {
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}
@media (max-width: 768px) {
  .py-cart-layout {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

/* ── CART — vendor grouped items ────────────────────────────*/
.py-cart-vendor-group {
  margin-bottom: var(--space-6);
  background: var(--py-white);
  border-radius: 16px;
  border: 1px solid var(--py-cream-dark);
  overflow: hidden;
}
.py-cart-vendor-group__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--py-cream-dark);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.py-cart-vendor-group__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--py-cream-mid);
}
.py-cart-vendor-group__name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--py-navy);
  font-weight: 400;
  text-decoration: none;
}
.py-cart-vendor-group__name:hover { color: var(--py-rust); }
.py-cart-vendor-group__count {
  font-size: var(--text-xs);
  color: var(--py-brown-light);
  margin-left: auto;
}
.py-cart-vendor-group .py-cart-item {
  padding: var(--space-4) var(--space-5);
}
.py-cart-vendor-group .py-cart-item:last-child {
  border-bottom: none;
}


/* ── PY BLOG GRID — column classes (mobile collapses to 1col) ──*/
.py-blog-grid--1col { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.py-blog-grid--2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.py-blog-grid--3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 768px) {
  .py-blog-grid--2col,
  .py-blog-grid--3col { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* WC order review table */
/* Place order button */
.woocommerce #place_order {
  width: 100%;
  background: var(--py-rust);
  color: var(--py-white);
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: var(--space-4);
  transition: background var(--transition-fast);
}
.woocommerce #place_order:hover { background: var(--py-rust-dark); }
@media (max-width: 768px) {
}

/* ── CART PAGE — full-width layout via page.php ─────────────*/
.wc-page-wrap { background: var(--py-cream); }
/* Force cart content to use our proper layout */
.woocommerce-cart .wc-page-wrap .the_content,
.woocommerce-cart .wc-page-wrap > div:last-child { max-width: 1100px; margin: 0 auto; }

/* ── WC BLOCK CART override — if using blocks ───────────────*/
.wp-block-woocommerce-cart,
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-6) var(--space-20);
}
.wp-block-woocommerce-cart .wp-block-woocommerce-cart-items-block {
  border-radius: 16px;
  border: 1px solid var(--py-cream-dark);
  overflow: hidden;
}
.wp-block-woocommerce-cart .wp-block-woocommerce-cart-totals-block {
  background: var(--py-cream-dark);
  border-radius: 16px;
  padding: var(--space-6);
}

/* ── MOBILE HAMBURGER — belt and braces ─────────────────────*/
/* Targets all mobile breakpoints to guarantee hamburger visibility */
@media (max-width: 1024px) {
  .header-nav--right { display: flex !important; }
  .header-nav--right .header-icons { display: flex !important; }
  .mobile-menu-toggle { display: flex !important; }
  button.mobile-menu-toggle { display: flex !important; }
  #mobile-menu-toggle { display: flex !important; }
}

/* footer mobile handled in the 768px block above */

/* ── WISHLIST EMPTY STATE — centered ───────────────────────*/
.py-wishlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16) var(--space-6);
  gap: var(--space-4);
  background: var(--py-cream-dark);
  border-radius: 20px;
}
.py-wishlist-empty__icon { font-size: 3.5rem; opacity: .3; line-height: 1; }
.py-wishlist-empty__title { font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: 400; color: var(--py-navy); }
.py-wishlist-empty__text { font-size: var(--text-sm); color: var(--py-brown-light); max-width: 28ch; }

/* ── CATEGORY FILTER DROPDOWN in filter bar ─────────────────*/
.shop-filter-bar .cat-filter-select {
  background: none;
  border: 1.5px solid var(--py-cream-dark);
  border-radius: 999px;
  padding: 6px 16px 6px 12px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--py-navy);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231D2B3A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  transition: border-color var(--transition-fast);
}
.shop-filter-bar .cat-filter-select:hover,
.shop-filter-bar .cat-filter-select:focus { border-color: var(--py-navy); outline: none; }

/* ── CATEGORY ITEM COUNT badge on cat pages ─────────────────*/
.cat-banner__item-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--py-cream);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   EDITORIAL SINGLE POST / STORY LAYOUT  v3.10
   ══════════════════════════════════════════════════════════ */

/* ── Header area ────────────────────────────────────────────*/
.py-editorial__header {
  background: var(--py-cream);
  padding: var(--space-14) var(--space-6) var(--space-10);
  border-bottom: 1px solid var(--py-cream-dark);
}
.py-editorial__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--py-rust);
  text-decoration: none;
  margin-bottom: var(--space-4);
}
.py-editorial__eyebrow:hover { opacity: .75; }
.py-editorial__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--py-navy);
  margin: 0 0 var(--space-5);
}
.py-editorial__deck {
  font-size: var(--text-lg);
  color: var(--py-brown);
  line-height: 1.65;
  margin-bottom: var(--space-6);
  max-width: 62ch;
}
.py-editorial__byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--py-brown-light);
  flex-wrap: wrap;
}
.py-editorial__author-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--py-navy);
  font-weight: 500;
}
.py-editorial__author-link:hover { color: var(--py-rust); }
.py-editorial__author-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  object-fit: cover;
}
.py-editorial__author-name { font-weight: 600; }
.py-editorial__author-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--py-rust);
  color: white;
  padding: 2px 7px;
  border-radius: 999px;
}
.py-editorial__byline-sep { opacity: .35; }
.py-editorial__date, .py-editorial__read-time { color: var(--py-brown-light); }

/* ── Hero image ─────────────────────────────────────────────*/
.py-editorial__hero-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  margin-top: var(--space-8);
}
.py-editorial__hero-img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* ── Share row ───────────────────────────────────────────────*/
.py-editorial__share-row {
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--py-cream-dark);
  margin-top: var(--space-6);
  background: var(--py-cream);
}
.py-editorial__share-row .container {
  display: flex;
  align-items: center;
  gap: 8px;
}
.py-editorial__share-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--py-brown-light);
  margin-right: 4px;
}
.py-editorial__share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--py-cream-dark);
  background: transparent;
  color: var(--py-navy);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.py-editorial__share-btn:hover {
  border-color: var(--py-navy);
  background: var(--py-cream-dark);
}
.py-editorial__save-btn { color: var(--py-rust); border-color: rgba(196,98,45,.3); }
.py-editorial__save-btn:hover { background: rgba(196,98,45,.06); border-color: var(--py-rust); }
.py-editorial__share-sep {
  width: 1px;
  height: 18px;
  background: var(--py-cream-dark);
  margin: 0 4px;
}

/* ── Article body ────────────────────────────────────────────*/
.py-editorial__body {
  padding: var(--space-12) var(--space-6) var(--space-8);
  background: var(--py-cream);
}
.py-editorial__content {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.85;
  color: var(--py-charcoal);
}
.py-editorial__content p { margin-bottom: var(--space-5); }
.py-editorial__content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--py-navy);
  margin: var(--space-10) 0 var(--space-4);
}
.py-editorial__content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--py-navy);
  margin: var(--space-8) 0 var(--space-3);
}
.py-editorial__content blockquote {
  border-left: 3px solid var(--py-rust);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--py-cream-dark);
  border-radius: 0 12px 12px 0;
}
.py-editorial__content blockquote p {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--py-navy);
  margin: 0;
}
.py-editorial__content img {
  width: 100%;
  border-radius: 12px;
  margin: var(--space-6) 0;
}
.py-editorial__content a { color: var(--py-rust); }
.py-editorial__content a:hover { text-decoration: underline; }

/* Tags */
.py-editorial__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--py-cream-dark);
}
.py-editorial__tag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--py-navy);
  text-decoration: none;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--py-cream-dark);
  transition: background var(--transition-fast);
}
.py-editorial__tag:hover { background: var(--py-cream-mid); }

/* Bottom share */
.py-editorial__share-bottom {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--py-cream-dark);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--py-navy);
}

/* ── Author card ─────────────────────────────────────────────*/
.py-editorial__author-card {
  display: flex;
  gap: var(--space-5);
  background: var(--py-cream-dark);
  border-radius: 20px;
  padding: var(--space-7);
  margin-bottom: var(--space-6);
}
.py-editorial__author-card__avatar {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.py-editorial__author-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--py-brown-light);
  margin-bottom: 4px;
}
.py-editorial__author-card__name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--py-navy);
  text-decoration: none;
  margin-bottom: 8px;
}
.py-editorial__author-card__name:hover { color: var(--py-rust); }
.py-editorial__author-card__bio { font-size: var(--text-sm); color: var(--py-brown); line-height: 1.6; }

/* ── Prev/Next ───────────────────────────────────────────────*/
.py-editorial__prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.py-editorial__prevnext__item {
  background: var(--py-white);
  border: 1px solid var(--py-cream-dark);
  border-radius: 14px;
  padding: var(--space-5);
  text-decoration: none;
  transition: border-color var(--transition-fast);
}
.py-editorial__prevnext__item:hover { border-color: var(--py-navy); }
.py-editorial__prevnext__item--next { text-align: right; }
.py-editorial__prevnext__item--solo { grid-column: 1 / -1; }
.py-editorial__prevnext__label {
  display: block;
  font-size: var(--text-xs);
  color: var(--py-brown-light);
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: .06em;
}
.py-editorial__prevnext__title {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--py-navy);
  line-height: 1.35;
}

/* ── Mobile ──────────────────────────────────────────────────*/
@media (max-width: 768px) {
  .py-editorial__header { padding: var(--space-10) var(--space-5) var(--space-8); }
  .py-editorial__hero-wrap { padding: 0 var(--space-4); }
  .py-editorial__hero-img { border-radius: 12px; max-height: 320px; }
  .py-editorial__share-row .container { gap: 6px; flex-wrap: wrap; }
  .py-editorial__body { padding: var(--space-8) var(--space-5); }
  .py-editorial__author-card { flex-direction: column; }
  .py-editorial__prevnext { grid-template-columns: 1fr; }
  .py-editorial__prevnext__item--next { text-align: left; }
}

/* ── VENDOR STORE PAGE ──────────────────────────────────────*/
.py-vendor-store { background: var(--py-cream); }

.py-vendor-banner {
  min-height: 220px;
  background: var(--py-cream-mid);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.py-vendor-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29,43,58,.6) 0%, transparent 65%);
}
.py-vendor-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: var(--space-5);
  padding-bottom: 0;
  padding-top: var(--space-10);
}
.py-vendor-banner__avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  flex-shrink: 0;
  margin-bottom: -30px;
}
.py-vendor-banner__text { padding-bottom: var(--space-5); }
.py-vendor-banner__name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  margin: 0 0 6px;
  line-height: 1.1;
}
.py-vendor-banner__meta { font-size: var(--text-sm); }

.py-vendor-about {
  padding-top: 52px;
  padding-bottom: var(--space-8);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  border-bottom: 1px solid var(--py-cream-dark);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.py-vendor-about__desc {
  max-width: 600px;
  font-size: var(--text-base);
  color: var(--py-brown);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .py-vendor-banner { min-height: 180px; }
  .py-vendor-banner__avatar { width: 64px; height: 64px; margin-bottom: -22px; }
  .py-vendor-about { padding-top: 40px; flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════
   CART v3.12 — vendor groups with location + remove
   ══════════════════════════════════════════════════════════ */

.py-cart-empty {
  text-align: center;
  padding: var(--space-20) var(--space-6);
  background: var(--py-cream);
}
.py-cart-empty__icon { font-size: 3.5rem; opacity: .2; margin-bottom: var(--space-4); }
.py-cart-empty__title { font-family: var(--font-heading); font-size: var(--text-2xl); color: var(--py-navy); margin-bottom: var(--space-3); }
.py-cart-empty__text { color: var(--py-brown); margin-bottom: var(--space-6); }

/* Vendor group location */
.py-cart-vendor-group__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.py-cart-vendor-group__location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--py-brown-light);
}

/* Remove button — proper anchor style */
.py-cart-item__remove {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--py-brown-light);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color var(--transition-fast);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
}
.py-cart-item__remove:hover { color: var(--py-rust); }

/* Cart items header */
.py-cart-items__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--py-cream-dark);
}
.py-cart-items__count {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--py-navy);
}
.py-cart-items__continue {
  font-size: var(--text-xs);
  color: var(--py-brown-light);
  text-decoration: none;
}
.py-cart-items__continue:hover { color: var(--py-navy); }

/* Summary note */
.py-cart-summary__note {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  font-size: var(--text-xs);
  color: var(--py-brown-light);
  margin-top: var(--space-3);
}

/* ── VENDOR STORE PAGE v3.12 ────────────────────────────────*/
.py-vendor-store { background: var(--py-cream); }

.py-vendor-banner {
  min-height: 200px;
  background: var(--py-cream-mid);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.py-vendor-banner--has-image { min-height: 260px; }
.py-vendor-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29,43,58,.65) 0%, transparent 60%);
}
.py-vendor-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: var(--space-5);
  padding-bottom: 0;
}
.py-vendor-banner__logo-wrap { flex-shrink: 0; margin-bottom: -32px; }
.py-vendor-banner__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  display: block;
}
.py-vendor-banner__text { padding-bottom: var(--space-5); }
.py-vendor-banner--has-image .py-vendor-banner__name { color: #fff; }
.py-vendor-banner--has-image .py-vendor-banner__meta { color: rgba(255,255,255,.8); }
.py-vendor-banner__name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--py-navy);
  margin: 0 0 6px;
  line-height: 1.1;
}
.py-vendor-banner__meta {
  font-size: var(--text-sm);
  color: var(--py-brown-light);
}
.py-vendor-banner__rating { font-weight: 600; }

.py-vendor-about {
  padding-top: 52px;
  padding-bottom: var(--space-8);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  border-bottom: 1px solid var(--py-cream-dark);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.py-vendor-about__desc {
  max-width: 620px;
  font-size: var(--text-base);
  color: var(--py-brown);
  line-height: 1.75;
}
.py-vendor-about__actions { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }

/* Suppress MarketKing's own h3 if it still renders */
.py-vendor-store-page h3:first-of-type,
.marketking_store_page_header_container { display: none !important; }

@media (max-width: 768px) {
  .py-vendor-banner--has-image { min-height: 180px; }
  .py-vendor-banner__logo-wrap { margin-bottom: -24px; }
  .py-vendor-banner__avatar { width: 68px; height: 68px; }
  .py-vendor-about { flex-direction: column; padding-top: 40px; }
}

/* ── SORT DROPDOWN — fix text clipping ──────────────────────*/
.woocommerce-ordering,
.woocommerce-ordering select,
.woocommerce-ordering .orderby {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  min-width: 190px !important;
  max-width: none !important;
}
/* Ensure "Default sorting" text shows fully */
.woocommerce-ordering select option { white-space: normal; }

/* ── VENDOR PAGE initials avatar ────────────────────────────*/
.py-vendor-banner__initials {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--py-navy);
  color: var(--py-cream);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  flex-shrink: 0;
}
.py-vendor-about {
  padding-top: 52px;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--py-cream-dark);
  margin-bottom: 0;
}
.py-vendor-about__text {
  font-size: var(--text-base);
  color: var(--py-brown);
  line-height: 1.75;
  max-width: 700px;
}
.py-vendor-filter-bar { margin-bottom: 0 !important; }
.py-vendor-banner__action { margin-left: auto; }
.py-vendor-banner__btn { flex-shrink: 0; }

@media (max-width: 768px) {
  .py-vendor-banner__initials { width: 68px; height: 68px; font-size: 1.5rem; }
  .py-vendor-about { padding-top: 40px; }
  .py-vendor-banner__action { display: none; } /* show inline below on mobile */
}

/* ══════════════════════════════════════════════════════════
   PY: EDITORIAL HERO  (SheерLuxe-style full-bleed)
   ══════════════════════════════════════════════════════════ */

.py-ed-hero {
  position: relative;
  height: var(--hero-height, 75vh);
  background-size: cover;
  background-position: center;
  background-color: var(--py-navy);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.py-ed-hero--centre  { align-items: center; justify-content: center; text-align: center; }
.py-ed-hero--right   { align-items: flex-end; }

.py-ed-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(10,15,20,.82) 0%,
    rgba(10,15,20,.3)  45%,
    transparent        75%);
  pointer-events: none;
}
/* Centre variant: full-surface darker overlay */
.py-ed-hero--centre .py-ed-hero__overlay {
  background: rgba(10,15,20,.52);
}

.py-ed-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--space-10) var(--space-12);
  max-width: 820px;
}
.py-ed-hero--right .py-ed-hero__content  { margin-left: auto; text-align: right; }
.py-ed-hero--centre .py-ed-hero__content { text-align: center; padding-bottom: 0; max-width: 700px; }

.py-ed-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.py-ed-hero--right .py-ed-hero__eyebrow  { justify-content: flex-end; }
.py-ed-hero--centre .py-ed-hero__eyebrow { justify-content: center; }
.py-ed-hero__sep { opacity: .4; }

.py-ed-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 var(--space-5);
}

.py-ed-hero__excerpt {
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  max-width: 56ch;
  margin-bottom: var(--space-6);
}
.py-ed-hero--right  .py-ed-hero__excerpt { margin-left: auto; }
.py-ed-hero--centre .py-ed-hero__excerpt { margin: 0 auto var(--space-6); }

.py-ed-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.py-ed-hero--right  .py-ed-hero__meta { justify-content: flex-end; }
.py-ed-hero--centre .py-ed-hero__meta { justify-content: center; }

.py-ed-hero__author {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
  font-style: italic;
}
.py-ed-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, border-color .2s;
  backdrop-filter: blur(4px);
}
.py-ed-hero__btn:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.6);
}

@media (max-width: 768px) {
  .py-ed-hero__content { padding: 0 var(--space-5) var(--space-8); }
  .py-ed-hero--right .py-ed-hero__content { text-align: left; }
  .py-ed-hero--right .py-ed-hero__eyebrow { justify-content: flex-start; }
  .py-ed-hero--right .py-ed-hero__meta    { justify-content: flex-start; }
}

/* ══════════════════════════════════════════════════════════
   PY: VIDEO HERO
   ══════════════════════════════════════════════════════════ */

.py-video-hero { background: var(--py-navy); }

.py-video-hero__media {
  position: relative;
  height: var(--video-height, 60vh);
  overflow: hidden;
}
.py-video-hero__video,
.py-video-hero__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}
.py-video-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.py-video-hero__below {
  background: var(--py-cream);
  padding: var(--space-7) 0 var(--space-8);
  border-bottom: 1px solid var(--py-cream-dark);
}
.py-video-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--py-rust);
  margin-bottom: var(--space-2);
}
.py-video-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--py-navy);
  letter-spacing: -.03em;
  margin: 0 0 var(--space-4);
  line-height: 1.1;
}
.py-video-hero__footer {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.py-video-hero__author {
  font-size: var(--text-sm);
  color: var(--py-brown-light);
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════
   PY: EDITORIAL TEXT BLOCK
   ══════════════════════════════════════════════════════════ */

.py-ed-text {
  padding: var(--space-14) var(--space-6);
  background: var(--py-cream);
}
.py-ed-text__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--py-rust);
  margin-bottom: var(--space-4);
}
.py-ed-text__title {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--py-navy);
  line-height: 1.08;
  letter-spacing: -.04em;
  margin: 0 0 var(--space-5);
}
.py-ed-text__byline {
  font-size: var(--text-sm);
  color: var(--py-brown-light);
  font-style: italic;
}

@media (max-width: 768px) {
  .py-ed-text { padding: var(--space-10) var(--space-5); }
  .py-ed-text__title { letter-spacing: -.02em; }
}

/* ══════════════════════════════════════════════════════════
   PY: STICKY SPLIT SCROLL
   (Fixed image panel · scrolling content panel)
   ══════════════════════════════════════════════════════════ */

.py-sticky-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: var(--py-cream);
}
/* Image left (default) */
.py-sticky-split__image-col  { order: 1; }
.py-sticky-split__content-col { order: 2; }
/* Image right */
.py-sticky-split--right .py-sticky-split__image-col  { order: 2; }
.py-sticky-split--right .py-sticky-split__content-col { order: 1; }

/* The sticky image wrapper */
.py-sticky-split__image-sticky {
  position: sticky;
  top: 80px; /* below the fixed header */
  height: calc(100vh - 80px);
  overflow: hidden;
}
.py-sticky-split__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.py-sticky-split__caption {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  right: var(--space-5);
  font-size: var(--text-xs);
  color: rgba(255,255,255,.7);
  font-style: italic;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* Scrolling content col */
.py-sticky-split__content-col {
  padding: var(--space-12) var(--space-10) var(--space-20);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.py-sticky-split__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 300;
  color: var(--py-navy);
  letter-spacing: -.03em;
  margin: 0 0 var(--space-2);
  line-height: 1.15;
}
.py-sticky-split__content {
  font-size: var(--text-base);
  color: var(--py-charcoal);
  line-height: 1.8;
}
/* Products inside the scroll panel */
.py-sticky-split__content .py-product-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

/* Mobile: stack vertically, no sticky */
@media (max-width: 900px) {
  .py-sticky-split {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .py-sticky-split__image-col  { order: 1 !important; }
  .py-sticky-split__content-col { order: 2 !important; }
  .py-sticky-split__image-sticky {
    position: relative;
    top: 0;
    height: 55vw;
    min-height: 280px;
  }
  .py-sticky-split__content-col {
    padding: var(--space-8) var(--space-5) var(--space-12);
  }
  .py-sticky-split__content .py-product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ══════════════════════════════════════════════════════════
   PAGE TEMPLATE: Editorial Hero  (template-editorial-hero.php)
   ══════════════════════════════════════════════════════════ */

.py-tp-hero__banner {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--py-navy);
}
.py-tp-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.py-tp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,12,18,.88) 0%,
    rgba(8,12,18,.35) 45%,
    transparent 72%
  );
}
.py-tp-hero__text {
  position: relative;
  z-index: 2;
  padding: var(--space-12) var(--space-6);
  max-width: 760px;
}
.py-tp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  margin-bottom: var(--space-4);
}
.py-tp-hero__sep { opacity: .4; }
.py-tp-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.04;
  letter-spacing: -.04em;
  margin: 0 0 var(--space-5);
}
.py-tp-hero__excerpt {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,.75);
  line-height: 1.68;
  max-width: 54ch;
  margin-bottom: var(--space-6);
}
.py-tp-hero__byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  color: rgba(255,255,255,.5);
}
.py-tp-hero__avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
}
.py-tp-hero__author { color: rgba(255,255,255,.8); font-weight: 500; }
.py-tp-hero__dot { opacity: .35; }

.py-tp-hero__share-row {
  background: var(--py-cream);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--py-cream-dark);
}
.py-tp-hero__body {
  background: var(--py-cream);
  padding: var(--space-12) var(--space-6) var(--space-8);
}

@media (max-width: 768px) {
  .py-tp-hero__banner { min-height: 65vh; }
  .py-tp-hero__text { padding-bottom: var(--space-8); }
  .py-tp-hero__title { letter-spacing: -.02em; }
}

/* ══════════════════════════════════════════════════════════
   PAGE TEMPLATE: Editorial Video  (template-editorial-video.php)
   ══════════════════════════════════════════════════════════ */

.py-tp-video__media {
  position: relative;
  height: 65vh;
  min-height: 360px;
  background: var(--py-navy);
  overflow: hidden;
}
.py-tp-video__video,
.py-tp-video__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}
.py-tp-video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.py-tp-video__placeholder {
  position: absolute;
  inset: 0;
  background: var(--py-navy);
}
.py-tp-video__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.15);
  pointer-events: none;
}
.py-tp-video__header {
  background: var(--py-cream);
  padding: var(--space-10) var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--py-cream-dark);
}
.py-tp-video__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--py-navy);
  letter-spacing: -.04em;
  line-height: 1.07;
  margin: var(--space-3) 0 var(--space-4);
}
.py-tp-video__excerpt {
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  color: var(--py-brown);
  line-height: 1.7;
  max-width: 56ch;
  margin-bottom: var(--space-6);
}

@media (max-width: 768px) {
  .py-tp-video__media { height: 50vw; min-height: 260px; }
  .py-tp-video__title { letter-spacing: -.02em; }
}
/* ============================================================
   PRAMYARD v3.15 — COMPREHENSIVE FIXES
   Add to bottom of style.css (or enqueue as separate file)
   ============================================================ */

/* ── 1. STICKY SPLIT SCROLL — fix so page itself scrolls ──── */
/* Remove overflow-y from content col so the browser's own
   scroll engine drives the sticky behaviour (like SheerLuxe) */
.py-sticky-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;          /* KEY: not stretch — lets cols have natural height */
  background: var(--py-cream);
}
.py-sticky-split__content-col {
  overflow-y: visible;         /* remove the inner scroll — let the PAGE scroll */
  padding: var(--space-12) var(--space-10) var(--space-20);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.py-sticky-split__image-sticky {
  position: sticky;
  top: 72px;                   /* header height */
  height: calc(100vh - 72px);
  overflow: hidden;
}
/* Remove min-height:100vh so the component doesn't force a
   full-viewport height — height is driven by the content col */
.py-sticky-split { min-height: unset; }

/* ── 2. EDITORIAL HERO TEMPLATE — centre title + show excerpt + editor ── */
/* The banner text was left-aligned; make it centred */
.py-tp-hero__text {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.py-tp-hero__excerpt {
  margin-left: auto;
  margin-right: auto;
}
.py-tp-hero__byline {
  justify-content: center;
}
/* Editor position line */
.py-tp-hero__editor-position {
  font-size: var(--text-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
}
/* Container override so the text block spans correctly */
.py-tp-hero__banner .container {
  width: 100%;
}

/* ── 3. EDITORIAL BODY — full width (not thin column) ──────── */
/* single.php, template-editorial-hero.php, template-editorial-video.php
   content areas should be full-width up to a comfortable reading max */
.py-tp-hero__body > .container,
.py-tp-video__body > .container,
.py-editorial__body > .container {
  max-width: 900px !important;
}
/* Full-width content blocks (images, WPBakery rows) that appear
   inside the editorial body should break out of the reading width */
.py-editorial__content .wp-block-image.alignfull,
.py-editorial__content .vc_row.vc_row-fluid,
.py-editorial__content [data-vc-full-width="true"],
.py-tp-hero__body .vc_row.vc_row-fluid {
  width: 100vw !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 0;
  margin-right: 0;
}
/* Default blog single post — widen the content area */
.py-editorial__body .container[style*="max-width:760px"],
.py-editorial .container[style*="max-width:760px"] {
  max-width: min(900px, 95vw) !important;
}

   we need to escape that for header/footer */

/* ── 5. CATEGORY PAGE — sort dropdown not cut off ─────────── */
.shop-filter-bar .orderby,
.woocommerce-ordering select,
.shop-filter-bar__sort select {
  min-width: 160px;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
/* The sort container should not clip */
.shop-filter-bar__right,
.woocommerce-ordering,
.shop-filter-bar .woocommerce-ordering {
  overflow: visible !important;
  min-width: 180px;
  flex-shrink: 0;
}
.shop-filter-bar {
  overflow: visible !important;
}

/* ── 6. VENDOR PAGE — multi-col product grid ───────────────── */
/* Currently renders 1 per row. Force the same grid as category pages */
.py-vendor-store .py-product-grid,
.py-vendor-store .py-product-grid--4col {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: var(--space-5) !important;
}
@media (max-width: 1100px) {
  .py-vendor-store .py-product-grid,
  .py-vendor-store .py-product-grid--4col {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .py-vendor-store .py-product-grid,
  .py-vendor-store .py-product-grid--4col {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── 7. VENDOR PAGE — profile avatar / logo fix ────────────── */
/* Avatar was overflowing and misplaced; clip + position correctly */
.py-vendor-banner__logo-wrap {
  flex-shrink: 0;
  margin-bottom: -40px;
  z-index: 2;
  position: relative;
}
.py-vendor-banner__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  display: block;
  background: var(--py-cream-dark);
}
.py-vendor-banner__initials {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--py-navy);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
/* Banner inner needs padding-top when no banner image */
.py-vendor-banner:not(.py-vendor-banner--has-image) .py-vendor-banner__inner {
  padding-top: var(--space-8);
  align-items: center;
}
/* Contact button positioning — move up into the header row */
.py-vendor-banner__action {
  margin-left: auto;
  padding-bottom: var(--space-4);
  align-self: flex-start;
  padding-top: var(--space-4);
}
/* About section top padding (for the avatar overlap) */
.py-vendor-about {
  padding-top: 56px;
}
/* If no about section, product grid needs padding */
.py-vendor-store .container:not(.py-vendor-about):first-of-type {
  padding-top: var(--space-10);
}

/* ── 8. SWAP ICON — active state visual indicator ──────────── */
/* Ensure the swap icon visibly changes when active */
.swap-toggle__dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--py-rust);
  border: 2px solid var(--py-cream);
  display: none;
}
.swap-mode-active #swap-toggle {
  color: var(--py-rust) !important;
}
.swap-mode-active #swap-toggle svg {
  stroke: var(--py-rust);
  color: var(--py-rust);
}
#swap-toggle {
  position: relative;
}
/* Swap banner — improved styling */
.swap-mode-banner {
  background: var(--py-rust);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 8px var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  justify-content: center;
}

/* ── 9. MARKETKING DASHBOARD — theme-matched colours + typography ── */
/* Applied via wp_head (see marketking.php update), but also
   cascade-safe overrides here for specificity */
body.marketking-dashboard-body,
.marketking-page-wrapper {
  background: var(--py-cream) !important;
  font-family: var(--font-body) !important;
}
.marketking-sidebar-nav,
.marketking-left-menu {
  background: var(--py-white) !important;
  border-right: 1px solid var(--py-cream-dark) !important;
  font-family: var(--font-body) !important;
}
.marketking-menu-item {
  font-family: var(--font-body) !important;
  font-size: var(--text-sm) !important;
  color: var(--py-charcoal) !important;
  border-radius: var(--radius-md) !important;
  margin: 2px 8px !important;
}
.marketking-menu-item:hover,
.marketking-menu-item.active,
.marketking-menu-item.current {
  background: rgba(196,98,45,.08) !important;
  color: var(--py-rust) !important;
  border-left: 3px solid var(--py-rust) !important;
}
.marketking-dashboard-title,
.marketking-page-title {
  font-family: var(--font-heading) !important;
  font-weight: 400 !important;
  color: var(--py-navy) !important;
  letter-spacing: -.02em !important;
}
.marketking-card,
.marketking-stats-card,
.marketking-panel {
  background: var(--py-white) !important;
  border: 1px solid var(--py-cream-dark) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm) !important;
  font-family: var(--font-body) !important;
}
/* Balance card — use navy instead of random purple/pink */
.marketking-balance-card,
.marketking-earnings-highlight {
  background: var(--py-navy) !important;
  color: var(--py-cream) !important;
  border-radius: var(--radius-lg) !important;
}
.marketking-button-primary,
.marketking-btn-primary {
  background: var(--py-rust) !important;
  border-color: var(--py-rust) !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
}
.marketking-button-primary:hover { background: var(--py-rust-dark) !important; }
/* Table styling */
.marketking-table th {
  font-family: var(--font-body) !important;
  font-size: var(--text-xs) !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: var(--py-brown-light) !important;
}
.marketking-table td {
  font-family: var(--font-body) !important;
  font-size: var(--text-sm) !important;
  color: var(--py-charcoal) !important;
}
/* Notification badge */
.marketking-badge,
.marketking-menu-badge {
  background: var(--py-rust) !important;
  color: #fff !important;
  font-family: var(--font-body) !important;
}
/* Status colours aligned with PramYard palette */
.marketking-status--completed { color: var(--py-sage-dark) !important; }
.marketking-status--pending    { color: var(--py-rust) !important; }
.marketking-status--cancelled  { color: #dc2626 !important; }

/* ── 10. DASHBOARD SWAP STATS BOX ───────────────────────────── */
/* This sits to the right of Store Statistics as a sibling card */
.py-dash-swap-stats {
  background: var(--py-white);
  border: 1px solid var(--py-cream-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.py-dash-swap-stats__title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--py-charcoal);
  margin-bottom: var(--space-5);
}
.py-dash-swap-stats__chart-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-4);
}
.py-dash-swap-stats__donut {
  width: 120px;
  height: 120px;
}
.py-dash-swap-stats__centre {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
.py-dash-swap-stats__num {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--py-navy);
}
.py-dash-swap-stats__label-sm {
  font-size: var(--text-xs);
  color: var(--py-brown-light);
}
.py-dash-swap-stats__legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: var(--space-3);
}
.py-dash-swap-stats__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--py-brown);
}
.py-dash-swap-stats__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── 11. WISHLIST — share / pinterest buttons ───────────────── */
.py-wishlist-board-share {
  display: flex;
  gap: 8px;
  align-items: center;
}
.py-wl-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--py-cream-dark);
  background: #fff;
  color: var(--py-charcoal);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.py-wl-share-btn:hover {
  border-color: var(--py-rust);
  color: var(--py-rust);
}
.py-wl-share-btn--pinterest {
  border-color: #e60023;
  color: #e60023;
}
.py-wl-share-btn--pinterest:hover {
  background: #e60023;
  color: #fff;
}

/* ── 12. VIDEO HERO TEMPLATE — controls + excerpt + editor ─── */
.py-tp-video__header {
  background: var(--py-cream);
  padding: var(--space-8) var(--space-6) var(--space-6);
  text-align: center;
}
.py-tp-video__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--py-navy);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0 0 var(--space-4);
}
.py-tp-video__excerpt {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--py-brown);
  max-width: 60ch;
  margin: 0 auto var(--space-5);
  line-height: 1.65;
}
.py-tp-video__editor-position {
  font-size: var(--text-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--py-brown-light);
  margin-top: 2px;
}
.py-tp-video__controls {
  position: absolute;
  bottom: var(--space-5);
  right: var(--space-5);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.py-video-ctrl-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.py-video-ctrl-btn:hover {
  background: rgba(255,255,255,.35);
}

/* ── RESPONSIVE TWEAKS ───────────────────────────────────────── */
@media (max-width: 768px) {
  .py-tp-hero__text { text-align: left; }
  .py-tp-hero__byline { justify-content: flex-start; }
  .py-tp-hero__excerpt { margin-left: 0; margin-right: 0; }
  .py-vendor-store .py-product-grid,
  .py-vendor-store .py-product-grid--4col {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================================================
   PRAMYARD v3.17 — TARGETED FIXES
   ============================================================ */

/* ── 1. EDITORIAL HERO — title centred, everything beneath centred ── */
.py-tp-hero__text {
    text-align: center;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}
.py-tp-hero__eyebrow {
    justify-content: center;
}
.py-tp-hero__title {
    text-align: center;
}
.py-tp-hero__excerpt {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.py-tp-hero__byline {
    justify-content: center;
}
/* On mobile revert to left */
@media (max-width: 768px) {
    .py-tp-hero__text { text-align: left; }
    .py-tp-hero__byline { justify-content: flex-start; }
    .py-tp-hero__excerpt { margin-left: 0; margin-right: 0; }
}

/* ── 2. VENDOR PAGE — nav/logo/contact fixes ─────────────── */

/* Banner inner — align items to centre vertically */
.py-vendor-banner__inner {
    align-items: center;
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
    flex-wrap: wrap;
    gap: var(--space-5);
}
/* Remove the negative margin that was dragging logo down */
.py-vendor-banner__logo-wrap {
    margin-bottom: 0 !important;
    flex-shrink: 0;
}
/* Contact button sits at same level as store info, not offset */
.py-vendor-banner__action {
    margin-left: auto;
    align-self: center;
    padding: 0;
}
/* About section no longer needs the extra top padding for avatar overlap */
.py-vendor-about {
    padding-top: var(--space-8);
}

/* Categories as dropdown on vendor page */
.py-vendor-filter-bar .py-vendor-cat-select {
    background: none;
    border: 1.5px solid var(--py-cream-dark);
    border-radius: 999px;
    padding: 6px 28px 6px 14px;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--py-navy);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231D2B3A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color var(--transition-fast);
}
.py-vendor-filter-bar .py-vendor-cat-select:focus {
    border-color: var(--py-navy);
    outline: none;
}
.py-vendor-filter-bar .py-vendor-cat-select.has-selection {
    border-color: var(--py-navy);
    background-color: var(--py-navy);
    color: var(--py-cream);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23F9F5EE' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* ── 3. PAGINATION — more breathing room ─────────────────── */
.page-numbers,
.woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    margin: 0 3px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--py-charcoal);
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: all var(--transition-fast);
}
.page-numbers:hover { border-color: var(--py-navy); color: var(--py-navy); }
.page-numbers.current,
.woocommerce-pagination .page-numbers.current {
    background: var(--py-navy);
    color: var(--py-cream);
    border-color: var(--py-navy);
    font-weight: 600;
}
.page-numbers.dots { border: none; min-width: auto; padding: 0 4px; }
/* Pagination wrapper */
.woocommerce-pagination,
nav.woocommerce-pagination {
    display: flex;
    justify-content: center;
    padding: var(--space-8) 0 var(--space-4);
}
.paginate_links,
nav.py-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* ── 4. REVIEW AREA — button styled, better spacing ────────── */
#reviews,
#tab-reviews {
    padding: var(--space-8) 0;
}
.woocommerce-Reviews .comment-reply-title,
#reply-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--py-navy);
    margin-bottom: var(--space-5);
}
.woocommerce-Reviews .comment-form-rating label,
.woocommerce-Reviews .comment-form-comment label,
.woocommerce-Reviews label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--py-charcoal);
    display: block;
    margin-bottom: var(--space-2);
}
/* Star rating row */
.woocommerce-Reviews .stars a,
.comment-form-rating .stars a {
    font-size: 1.4rem;
    color: var(--py-sand);
    text-decoration: none;
    letter-spacing: 3px;
    transition: color var(--transition-fast);
}
.woocommerce-Reviews .stars a:hover,
.woocommerce-Reviews .stars.selected a { color: #F5A623; }
/* Text area */
.woocommerce-Reviews textarea#comment,
.comment-form-comment textarea {
    width: 100%;
    border: 1.5px solid var(--py-cream-dark);
    border-radius: 12px;
    padding: var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--py-charcoal);
    background: var(--py-white);
    resize: vertical;
    min-height: 100px;
    transition: border-color var(--transition-fast);
}
.woocommerce-Reviews textarea:focus { outline: none; border-color: var(--py-navy); }
/* Submit button — white bg, navy border, navy text; hover fills navy */
.woocommerce-Reviews #submit,
.comment-form .submit,
input#submit {
    background: var(--py-white) !important;
    color: var(--py-navy) !important;
    border: 1.5px solid var(--py-navy) !important;
    border-radius: 999px !important;
    padding: 10px 28px !important;
    font-family: var(--font-body) !important;
    font-size: var(--text-sm) !important;
    font-weight: 600 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all var(--transition-fast) !important;
    margin-top: var(--space-4) !important;
}
.woocommerce-Reviews #submit:hover,
input#submit:hover {
    background: var(--py-navy) !important;
    color: var(--py-cream) !important;
}
/* Spacing between review form fields */
.woocommerce-Reviews .comment-form p {
    margin-bottom: var(--space-4);
}
.woocommerce-Reviews .comment-form-rating {
    margin-bottom: var(--space-4);
}
/* No reviews yet text */
.woocommerce-Reviews .woocommerce-noreviews {
    color: var(--py-brown-light);
    font-size: var(--text-sm);
    padding: var(--space-4) 0;
}

/* ── 5. EYEBROW TEXT — always centred when in centred context ── */
/* py_ed_text eyebrow */
.py-ed-text__eyebrow { text-align: center; justify-content: center; }
/* Editorial eyebrows: centre only on hero banners */
.py-tp-hero__eyebrow,
.py-editorial__eyebrow { justify-content: center; }
/* Steps / about section eyebrow labels */
/* py-section-eyebrow: explicit opt-in class only */
.py-section-eyebrow { justify-content: center; }

/* Remove the cramped container from page.php and go full bleed */
/* The grid itself — properly centred */
/* Left cards */
/* Right summary */
/* Form inputs — cream bg, clean borders */
/* Payment section */
/* Place order button */
.woocommerce #place_order {
    width: 100% !important;
    background: var(--py-rust) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 15px 28px !important;
    font-family: var(--font-body) !important;
    font-size: var(--text-sm) !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background var(--transition-fast) !important;
    margin-top: var(--space-4) !important;
}
.woocommerce #place_order:hover { background: var(--py-rust-dark) !important; }
/* Coupon row */
/* Remove the ugly white box WC adds below the form */
@media (max-width: 900px) {
}

/* ── 7. CART — ensure vendor name shows on product rows ─────── */
.py-cart-vendor-group__name {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--py-navy);
    text-decoration: none;
}
.py-cart-vendor-group__name:hover { color: var(--py-rust); }
/* Vendor label row */
.py-cart-vendor-group__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--py-cream-dark);
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid var(--py-cream-mid);
}

/* ============================================================
   PRAMYARD v3.18 — TARGETED FIXES
   ============================================================ */

/* ── 1. VENDOR FILTER BAR — vertical centring ─────────────── */
.py-vendor-filter-bar .shop-filter-bar__inner {
  height: 56px;
  display: flex;
  align-items: center;
}

/* ── 2. SORT DROPDOWN — prevent word cut-off ──────────────── */
/* The native <select> inside the custom wrapper */
.woocommerce-ordering select,
.shop-filter-bar__sort select,
select.orderby {
  min-width: 180px !important;
  max-width: none !important;
  overflow: visible !important;
  white-space: nowrap !important;
  text-overflow: clip !important;
}
/* The outer wrapper */
.woocommerce-ordering,
.shop-filter-bar__sort {
  min-width: 180px;
  overflow: visible;
}

/* ── 3. STICKY HEADER — no gap between header & filter bar ── */
/* When .scrolled the header shrinks slightly — match that offset */
.site-header {
  position: sticky;
  top: 0;
  z-index: 510; /* above filter bar */
}
.shop-filter-bar {
  position: sticky;
  top: 72px; /* matches .site-header__inner height */
  z-index: 500;
  /* Ensure it butts up directly underneath — no background gap */
  margin-top: 0;
}
/* When header is .scrolled it still stays 72px tall, so top stays 72px */
/* Add a pseudo-cover so product images never bleed through the gap */
.shop-filter-bar::before {
  content: '';
  display: block;
  position: absolute;
  top: -2px; /* overlap 2px upward to close any subpixel gap */
  left: 0;
  right: 0;
  height: 2px;
  background: var(--py-white);
  z-index: 1;
}

/* ── 4. WHATSAPP BUTTON — match save-to-wishlist button style ─ */
/* Both buttons: identical pill, border, neutral colours */
.py-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  color: var(--py-charcoal);
  border: 1.5px solid var(--py-cream-dark);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-top: 10px;
}
.py-whatsapp-btn:hover {
  border-color: #25D366;
  color: #25D366;
  background: none;
}
.py-whatsapp-btn svg {
  width: 16px;
  height: 16px;
  color: #25D366;
}

/* ── 5. CART ITEM — clean rows with vendor name & location ─── */
.py-cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--py-cream-dark);
}
.py-cart-item__img-wrap {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.py-cart-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.py-cart-item__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.py-cart-item__name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--py-charcoal);
  text-decoration: none;
  line-height: 1.4;
}
.py-cart-item__name:hover { color: var(--py-rust); }
.py-cart-item__meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.py-cart-item__vendor {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--py-navy);
  text-decoration: none;
  letter-spacing: .02em;
}
.py-cart-item__vendor:hover { color: var(--py-rust); }
.py-cart-item__sep { color: var(--py-cream-mid); font-size: var(--text-xs); }
.py-cart-item__location {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--text-xs);
  color: var(--py-brown-light);
}
.py-cart-item__remove {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--text-xs);
  color: var(--py-brown-light);
  cursor: pointer;
  margin-top: var(--space-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.py-cart-item__remove:hover { color: var(--py-rust); }
.py-cart-item__price {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--py-charcoal);
  white-space: nowrap;
  padding-top: 2px;
}

/* WooCommerce wraps content in .woocommerce which has max-width */
/* The actual form grid */
/* Ensure the page wrapper doesn't add whitespace */
/* Remove any WC-generated white box above form */

/* ── 7. STICKY SPLIT — simple two-panel CSS-only scroll ───── */
/* Replaces the WPBakery container approach entirely.
   Usage in WPBakery: just use the element settings for image.
   Content drops BELOW the element (not inside it) on mobile,
   and the image sticks on desktop. */
.py-sticky-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  min-height: 100vh;
  background: var(--py-cream);
}
.py-sticky-split__image-sticky {
  position: sticky;
  top: 144px; /* 72px header + 72px filter bar */
  max-height: calc(100vh - 160px);
  overflow: hidden;
}
.py-sticky-split__content-col {
  padding: var(--space-12) var(--space-10) var(--space-20);
  overflow-y: visible; /* page scroll drives this, not inner scroll */
}
@media (max-width: 900px) {
  .py-sticky-split { grid-template-columns: 1fr; min-height: auto; }
  .py-sticky-split__image-sticky { position: static; max-height: 60vw; }
  .py-sticky-split--right .py-sticky-split__image-col { order: 1; }
  .py-sticky-split--right .py-sticky-split__content-col { order: 2; }
}

/* ============================================================
   PRAMYARD v3.19 — TARGETED FIXES
   ============================================================ */

/* ── 1. SORT DROPDOWN — definitive fix for text cut-off ──── */
/* The inner scrollable strip clips the dropdown — needs overflow:visible */
.shop-filter-bar__inner {
  overflow: visible !important;
  overflow-x: visible !important;
}
/* But we still want the chips to scroll on narrow screens — 
   use a child wrapper for just the chips, leaving sort outside */
.woocommerce-ordering {
  overflow: visible !important;
  flex-shrink: 0;
  margin-left: auto !important;
  position: relative;
  z-index: 60; /* above the product grid */
}
.woocommerce-ordering select,
select.orderby {
  min-width: 200px !important;
  width: auto !important;
  max-width: none !important;
  overflow: visible !important;
  white-space: nowrap !important;
  text-overflow: unset !important;
  -webkit-appearance: none;
  appearance: none;
}

/* ── 2. VENDOR PAGE — filter items vertically centred ──────── */
.py-vendor-filter-bar .shop-filter-bar__inner {
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 var(--space-6) !important;
}
.py-vendor-filter-bar .filter-chip,
.py-vendor-filter-bar .py-vendor-cat-select,
.py-vendor-filter-bar .filter-chip--swap,
.py-vendor-filter-bar span {
  align-self: center;
}
/* Item count — also vertically aligned */
.py-vendor-filter-bar .shop-filter-bar__right {
  align-self: center;
  margin-left: auto;
}

/* ── 3. STICKY SPLIT — definitive image sticky ──────────────── */
/* The image must stick relative to the VIEWPORT, so we need the
   page to scroll (not inner overflow). The image-col needs no
   height constraint — let it be as tall as the content-col. */
.py-sticky-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start; /* CRUCIAL — not stretch */
  background: var(--py-cream);
}
.py-sticky-split--right .py-sticky-split__image-col  { order: 2; }
.py-sticky-split--right .py-sticky-split__content-col { order: 1; }
.py-sticky-split__image-col {
  /* no height — it sizes to the sticky element */
}
.py-sticky-split__image-sticky {
  position: sticky;
  top: 150px; /* below header (72px) + filter bar (56px) + small gap */
  height: calc(100vh - 160px);
  overflow: hidden;
}
.py-sticky-split__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.py-sticky-split__content-col {
  padding: var(--space-10) var(--space-8) var(--space-20);
  /* NO overflow-y — the PAGE scroll drives the sticky */
  min-height: 200vh; /* ensure enough scroll depth for stickiness to activate */
}
@media (max-width: 900px) {
  .py-sticky-split { grid-template-columns: 1fr; }
  .py-sticky-split__image-sticky { position: relative; top: auto; height: 60vw; }
  .py-sticky-split__content-col { min-height: auto; }
  .py-sticky-split--right .py-sticky-split__image-col  { order: 1; }
  .py-sticky-split--right .py-sticky-split__content-col { order: 2; }
}

/* ── 4. VENDOR AVATAR on product cards — smaller ──────────── */
.product-card__seller img,
.product-card__seller-avatar,
.product-card__seller .avatar {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

/* ── 5. PINTEREST button — matches Share board style ─────── */
/* Remove the red border that makes it look different */
.py-wl-share-btn--pinterest {
  border-color: var(--py-cream-dark) !important;
  color: var(--py-charcoal) !important;
  background: var(--py-white) !important;
}
.py-wl-share-btn--pinterest:hover {
  border-color: #e60023 !important;
  color: #e60023 !important;
  background: none !important;
}
/* Pinterest P icon — small, inline */
.py-wl-share-btn--pinterest svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── 6. SEARCH HERO — fix bottom squash + mega menu overlay ── */
.py-search-hero {
  padding: var(--space-6) 0 var(--space-8);
  background: var(--py-cream);
  position: relative;
  z-index: 1; /* below header nav z-index */
}
/* Ensure mega menu sits ABOVE the search hero on z axis */
.site-header__nav-left .mega-menu,
.site-header__nav-right .mega-menu,
.mega-menu__panel,
.shop-mega-menu {
  z-index: 600 !important; /* above search hero */
}
/* Stop search hero from pushing down the site header */
.py-search-hero form {
  margin: 0 auto;
}

/* ── 7. EDIT THIS LISTING — site-native style ──────────────── */
/* Was a plain text link — now a small outlined pill matching the theme */
.py-edit-listing-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--py-cream-dark);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--py-charcoal);
  text-decoration: none;
  background: var(--py-white);
  transition: all var(--transition-fast);
  margin-bottom: var(--space-3);
}
.py-edit-listing-link:hover {
  border-color: var(--py-navy);
  color: var(--py-navy);
  background: var(--py-cream);
}
.py-edit-listing-link svg {
  width: 12px;
  height: 12px;
  opacity: .7;
}

/* ── 8. HOW IT WORKS eyebrow — force centre ────────────────── */
/* v3.21: moved to surgical rules at end of file */
  padding-left: var(--space-10);
}
.process-step__dot {
  background-color: var(--py-sage) !important;
  border: 3px solid var(--py-cream-dark) !important;
  box-shadow: 0 0 0 3px var(--py-sage) !important;
}

/* The problem is WC injects its own template wrapper around our form */
/* The actual form gets our grid */
/* Coupon toggle row */


/* ============================================================
   PRAMYARD v3.20 — TARGETED FIXES
   ============================================================ */

/* ── 1. CUSTOM SORT SELECT ────────────────────────────────── */
.py-sort-wrap {
  position: relative;
  flex-shrink: 0;
}
.py-sort-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--py-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B5744' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1.5px solid var(--py-cream-dark);
  border-radius: 999px;
  padding: 8px 36px 8px 14px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--py-charcoal);
  cursor: pointer;
  min-width: 170px;
  white-space: nowrap;
  transition: border-color var(--transition-fast);
  /* Critical: let the browser size it to content */
  width: auto;
  max-width: none;
  overflow: visible;
}
.py-sort-select:hover { border-color: var(--py-navy); }
.py-sort-select:focus { outline: none; border-color: var(--py-rust); }

/* ── 2. SEARCH BAR — white background, no cream strip ─────── */
/* The search bar that slides down from header */
#search-bar,
.site-search-bar {
  background: var(--py-white) !important;
}
/* The shop-page inline search hero inherits cream — fix it */
.py-search-hero {
  background: var(--py-white) !important;
  padding: var(--space-4) 0 var(--space-5);
  border-bottom: 1px solid var(--py-cream-dark);
}

/* ── 3. STICKY SPLIT — exact product-page pattern ─────────── */
/* Reset all previous sticky split declarations */
.py-sticky-split {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: var(--space-10) !important;
  align-items: start !important; /* CRUCIAL — not stretch */
  background: var(--py-cream);
  padding: var(--space-10) var(--space-6);
}
/* Image col: the TALL one — image fills viewport height, no sticky needed */
.py-sticky-split__image-col {
  /* Position is NOT sticky — it scrolls normally */
  /* The content col is sticky against it */
}
.py-sticky-split__img {
  width: 100%;
  border-radius: 20px;
  display: block;
  object-fit: cover;
}
/* Content col: STICKY — mirrors product page summary div */
.py-sticky-split__content-col {
  position: sticky !important;
  top: calc(72px + var(--space-6)) !important; /* same as single-product.php */
  padding: 0;
}
/* Right-side variant — swap order */
.py-sticky-split--right .py-sticky-split__image-col  { order: 2 !important; }
.py-sticky-split--right .py-sticky-split__content-col { order: 1 !important; }
.py-sticky-split__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 300;
  color: var(--py-navy);
  margin-bottom: var(--space-6);
}
.py-sticky-split__caption {
  font-size: var(--text-xs);
  color: var(--py-brown-light);
  text-align: center;
  margin-top: var(--space-2);
}
.py-sticky-split__content { /* inner content area */ }
@media (max-width: 900px) {
  .py-sticky-split {
    grid-template-columns: 1fr !important;
    padding: var(--space-6) var(--space-4) !important;
  }
  .py-sticky-split__content-col { position: static !important; top: auto !important; }
  .py-sticky-split--right .py-sticky-split__image-col  { order: 1 !important; }
  .py-sticky-split--right .py-sticky-split__content-col { order: 2 !important; }
}

/* Since we now call wc_get_template directly, no .woocommerce wrapper */
/* Hide the old header div if it somehow still renders */
/* Give the outer page container cream background */

/* ── 5. NO-PRODUCTS-FOUND — absolutely centred ─────────────── */
.py-no-products {
  text-align: center !important;
  padding: var(--space-16) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   PRAMYARD v3.21 — TARGETED FIXES
   ============================================================ */

/* ── 1. STICKY SPLIT — IMAGE sticky, CONTENT tall & scrolling */
/* Override all previous declarations */
.py-sticky-split {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: var(--space-10) !important;
  align-items: start !important;
  background: var(--py-cream);
  padding: var(--space-10) var(--space-6);
}
/* IMAGE is sticky — stays in viewport while content scrolls */
.py-sticky-split__image-col {
  position: sticky !important;
  top: calc(72px + var(--space-6)) !important;
}
.py-sticky-split__img {
  width: 100%;
  border-radius: 20px;
  display: block;
  object-fit: cover;
  /* No fixed height — image fills its natural aspect ratio */
}
/* CONTENT is NOT sticky — scrolls naturally and is the tall column */
.py-sticky-split__content-col {
  position: static !important;
  top: auto !important;
  padding: 0;
  /* Must be taller than viewport for stickiness to activate on image */
}
/* Right-side variant */
.py-sticky-split--right .py-sticky-split__image-col  { order: 2 !important; }
.py-sticky-split--right .py-sticky-split__content-col { order: 1 !important; }
@media (max-width: 900px) {
  .py-sticky-split {
    grid-template-columns: 1fr !important;
    padding: var(--space-6) var(--space-4) !important;
  }
  .py-sticky-split__image-col { position: static !important; top: auto !important; }
  .py-sticky-split--right .py-sticky-split__image-col  { order: 1 !important; }
  .py-sticky-split--right .py-sticky-split__content-col { order: 2 !important; }
}

/* ── 2. LABEL-TEXT centering — SURGICAL, not global ─────────── */
/* ONLY centre in these specific section contexts */
/* Remove the broad [class*="section"] rule — too aggressive */

/* ── 3. SHOP HEADER — match search bar white background ────── */
/* Remove cream-dark from shop "Browse / Shop" heading to avoid cream band */
.shop-page-header,
.shop-heading-area {
  background: var(--py-white) !important;
}
/* The inline-styled shop header div in archive-product.php */
/* We can't target inline styles directly so we use a class fix below */

/* ── 4. CART — ensure vendor group header is visible ────────── */
.py-cart-vendor-group__header {
  display: flex !important;
  background: var(--py-cream-dark) !important;
  padding: var(--space-3) var(--space-5) !important;
  border-bottom: 1px solid rgba(0,0,0,.06) !important;
}
.py-cart-vendor-group__name {
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  color: var(--py-navy) !important;
}

/* ── 5. CART — kill any lingering description/double price ──── */
/* WC sometimes hooks into our custom template via fragments */
.py-cart-item p,
.py-cart-item .variation,
.py-cart-item .cart-item-description,
.py-cart-item td p { display: none; }
/* But keep our intentional children visible */
.py-cart-item__name,
.py-cart-item__meta-row,
.py-cart-item__remove,
.py-cart-item__vendor,
.py-cart-item__location { display: flex !important; }
.py-cart-item__name { display: block !important; }
.py-cart-item__remove { display: inline-block !important; }

/* ── 6. LABEL-TEXT inheritance fix for CTA banners ─────────── */
/* .container has inline text-align from PHP ($a['align'])     */

/* ============================================================
   PRAMYARD v3.22 — CHECKOUT REDESIGN
   Full-width, clean marketplace checkout 2026
   ============================================================ */

/* ── OUTER WRAP: cream full-bleed ──────────────────────────── */


/* ── LEFT COLUMN: white, full height ───────────────────────── */

/* ── STEP LABELS ────────────────────────────────────────────── */

/* ── FORM FIELDS ────────────────────────────────────────────── */

/* Payment section */

/* ── RIGHT COLUMN: cream, sticky summary ───────────────────── */

/* Order review table */
/* Delivery/subtotal/total rows */

/* Delivery selection pills in summary */

/* Location pin rows in order review */
/* Hide the "Your area / Shared with buyers" shipping notice in order review */

/* Coupon row */
.woocommerce-form-coupon { display: none; } /* Hidden - can show via toggle */

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
}
@media (max-width: 600px) {
}

/* ── v3.22 MISC FIXES ───────────────────────────────────────── */

/* Search cream band: make header cream bg white when search is open */
/* The header slides the search bar out below its own cream body */
/* Making the header white when search is open eliminates the cream bleed */
.site-header.search-open,
body.search-open .site-header {
  background-color: var(--py-white);
}
/* Ensure site-search-bar has white bg and no bottom border gap */
.site-search-bar {
  background: var(--py-white) !important;
  padding-bottom: 2px;
}

/* Shop page white header area — remove cream line at top of content */
.shop-heading-area {
  background: var(--py-white) !important;
  border-bottom: none !important;
  padding-top: var(--space-6) !important;
}
/* The filter bar directly below also white to eliminate any gap */
.shop-filter-bar {
  background: var(--py-white);
}

/* Cart vendor group header — always visible  */
.py-cart-vendor-group {
  margin-bottom: var(--space-4) !important;
}
.py-cart-vendor-group__header {
  display: flex !important;
  align-items: center !important;
  gap: var(--space-3) !important;
  padding: 10px 16px !important;
  background: var(--py-cream) !important;
  border-bottom: 1px solid var(--py-cream-mid) !important;
  border-radius: 12px 12px 0 0 !important;
}
.py-cart-vendor-group__name {
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  color: var(--py-navy) !important;
}

/* Cart: hide WC default description / extra price that bleeds through */
/* WC injects .product-quantity and wc_variation in cart cells */
.woocommerce-cart-form .product-description,
.woocommerce-cart-form td.product-description { display: none; }

/* ============================================================
   PRAMYARD v3.23 — TARGETED FIXES
   ============================================================ */

/* ── 1. HEADER + FOOTER: remove max-width constraint ────────── */
/* This makes them truly full-width on all screens             */
.site-header__inner {
  max-width: none !important;
  padding-left: var(--space-8) !important;
  padding-right: var(--space-8) !important;
}
.site-footer__inner {
  max-width: none !important;
  padding-left: var(--space-8) !important;
  padding-right: var(--space-8) !important;
}
@media (max-width: 900px) {
  .site-header__inner { padding-left: var(--space-4) !important; padding-right: var(--space-4) !important; }
  .site-footer__inner { padding-left: var(--space-4) !important; padding-right: var(--space-4) !important; }
}

/* We have our own "Contact & Delivery" heading via template     */
.woocommerce h3#ship-to-different-address { 
  display: none !important; 
}
/* Also reduce tight gap between sections */

/* ── 3. PAGINATION: fix current page styling ────────────────── */
/* WC outputs <span class="page-numbers current"> for current page */
span.page-numbers.current {
  background: var(--py-navy) !important;
  color: var(--py-cream) !important;
  border-color: var(--py-navy) !important;
  font-weight: 600 !important;
}
/* Fix the → next button */
a.page-numbers.next,
a.page-numbers.prev {
  border-color: var(--py-cream-dark) !important;
  background: transparent !important;
}
a.page-numbers.next:hover,
a.page-numbers.prev:hover {
  border-color: var(--py-navy) !important;
  color: var(--py-navy) !important;
}
/* Ensure pagination wrapper flex centering works */
nav.woocommerce-pagination ul {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
nav.woocommerce-pagination ul li { display: flex; }

/* ── 4. EYEBROW / LABEL-TEXT: Nuclear inline-style override ─── */
/* Belt AND braces — the inline PHP styles should win but add this too */
/* The ONLY remaining case: cat grid section where $a['label'] is used */
/* but the user hasn't set a label so it defaults. 
   These specific shortcode sections should always be centred: */
/* ── 5. GALLERY LIGHTBOX: overlay trigger ───────────────────── */
.py-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: pyFadeIn .2s ease;
}
@keyframes pyFadeIn { from { opacity:0 } to { opacity:1 } }
.py-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  cursor: default;
}
.py-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 999px;
  color: #fff;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.py-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.py-lightbox-nav--prev { left: 20px; }
.py-lightbox-nav--next { right: 20px; }

/* ── 6. CONSUMER PROTECTION tooltip ────────────────────────── */
.py-consumer-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--py-brown-light);
  cursor: pointer;
  margin-top: var(--space-4);
  text-underline-offset: 2px;
  text-decoration: underline;
  text-decoration-style: dotted;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
}
.py-consumer-notice svg { flex-shrink: 0; }
.py-consumer-popup {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,.4);
  animation: pyFadeIn .2s ease;
}
.py-consumer-popup__inner {
  background: var(--py-white);
  border-radius: 20px 20px 0 0;
  padding: var(--space-8) var(--space-8) var(--space-10);
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}
@media (min-width: 640px) {
  .py-consumer-popup {
    align-items: center;
  }
  .py-consumer-popup__inner {
    border-radius: 20px;
    margin: var(--space-6);
  }
}
.py-consumer-popup__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--py-navy);
  margin-bottom: var(--space-4);
}
.py-consumer-popup__body {
  font-size: var(--text-sm);
  color: var(--py-brown);
  line-height: 1.8;
}
.py-consumer-popup__body a { color: var(--py-rust); }
.py-consumer-popup__close {
  display: block;
  width: 100%;
  margin-top: var(--space-6);
  background: var(--py-navy);
  color: var(--py-cream);
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

/* ── 7. PRODUCT PRICE FILTER (price range slider area) ──────── */
.py-price-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.py-price-filter input[type="number"] {
  width: 68px;
  border: 1.5px solid var(--py-cream-dark);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: var(--text-xs);
  font-family: var(--font-body);
  color: var(--py-charcoal);
  background: var(--py-white);
  text-align: center;
}
.py-price-filter input:focus { outline: none; border-color: var(--py-navy); }
.py-price-filter__sep { color: var(--py-brown-light); font-size: var(--text-xs); }
.py-price-filter__btn {
  border: 1.5px solid var(--py-cream-dark);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: var(--text-xs);
  font-family: var(--font-body);
  color: var(--py-charcoal);
  background: var(--py-white);
  cursor: pointer;
  font-weight: 600;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.py-price-filter__btn:hover { border-color: var(--py-navy); color: var(--py-navy); }


/* ============================================================
   PRAMYARD v3.24 — TARGETED FIXES
   ============================================================ */

/* ── 1. EYEBROW CENTERING — highest possible specificity ────── */
/* This uses ID-equivalent specificity to beat everything */
/* ── 2. PAGINATION — no borders ─────────────────────────────── */
.page-numbers,
.woocommerce-pagination .page-numbers,
nav.woocommerce-pagination .page-numbers {
  border: none !important;
  background: transparent !important;
}
span.page-numbers.current,
.woocommerce-pagination span.page-numbers.current {
  background: var(--py-navy) !important;
  color: var(--py-cream) !important;
  border: none !important;
  border-radius: 999px !important;
}
a.page-numbers:hover {
  background: var(--py-cream-dark) !important;
  border: none !important;
  border-radius: 999px !important;
}
a.page-numbers.next, a.page-numbers.prev {
  color: var(--py-navy) !important;
  font-weight: 600 !important;
}

/* ── 3. LIGHTBOX — cream/white background, refined buttons ──── */
.py-lightbox-overlay {
  background: rgba(249, 245, 238, 0.97) !important; /* py-cream at 97% */
}
.py-lightbox-img {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(29,43,58,.15);
}
.py-lightbox-close {
  background: var(--py-cream-dark) !important;
  border: 1.5px solid var(--py-cream-mid) !important;
  color: var(--py-navy) !important;
  width: 40px !important;
  height: 40px !important;
  font-size: 22px !important;
  top: var(--space-5) !important;
  right: var(--space-5) !important;
}
.py-lightbox-close:hover { background: var(--py-cream-mid) !important; }
.py-lightbox-nav {
  background: var(--py-white) !important;
  border: 1.5px solid var(--py-cream-mid) !important;
  color: var(--py-navy) !important;
  width: 48px !important;
  height: 48px !important;
  font-size: 24px !important;
  box-shadow: 0 4px 16px rgba(29,43,58,.1) !important;
}
.py-lightbox-nav:hover { background: var(--py-cream-dark) !important; }
.py-lightbox-nav--prev { left: var(--space-5) !important; }
.py-lightbox-nav--next { right: var(--space-5) !important; }

/* The "not connected to Stripe" / coupon banners at top */
/* The coupon toggle link */

/* The "Your area / Near Hackney" text in order review  */
/* WC renders this via product meta — we style the meta key/value */
/* Replace the 📍 pin emoji rows with a subtle tag style */
/* The "Your area" shipping line — remove pin emoji via CSS */
/* Strip the literal emoji 📍 */
/* Add a clean dot separator instead */
.shipping-location-line::before {
  content: '·';
  margin-right: 4px;
  color: var(--py-cream-mid);
}

/* Move WC output_all_notices into the grid context */

/* ── 7. STICKY SPLIT — ensure content-col fills height ──────── */
.py-sticky-split__content {
  padding-bottom: var(--space-16); /* breathing room for scroll */
}
/* When py_product_grid is inside sticky split, remove its section padding */
.py-sticky-split__content .section {
  padding: 0 !important;
  background: transparent !important;
}
.py-sticky-split__content .section--cream {
  background: transparent !important;
}


/* ============================================================
   PRAMYARD v3.25 — COMPLETE FIX PASS
   ============================================================ */

/* Our grid needs full width — override every rule that limits it */
/* Hide WC's own billing/shipping h3 headings we don't want */
.woocommerce h3#ship-to-different-address { display: none !important; }
@media (max-width: 1024px) {
}


/* ── 3. CART LAYOUT — full width, clean spacing ─────────────── */
.py-cart-layout {
  max-width: none !important;
  padding: var(--space-6) var(--space-8) var(--space-20) !important;
}

/* Cart page header — tight, connected to content */
.py-cart-page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--space-6) var(--space-8) var(--space-4);
  border-bottom: 1px solid var(--py-cream-dark);
  background: var(--py-cream);
}
.py-cart-page-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--py-navy);
  letter-spacing: -.02em;
  margin: 0;
}
.py-cart-page-header__continue {
  font-size: var(--text-sm);
  color: var(--py-brown-light);
  text-decoration: none;
}
.py-cart-page-header__continue:hover { color: var(--py-navy); }

/* Cart notices — styled cream alerts */
.py-cart-notices {
  padding: 0 var(--space-8);
  background: var(--py-cream);
}
.py-cart-notices .woocommerce-info {
  background: var(--py-cream-dark) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-size: var(--text-sm) !important;
  color: var(--py-charcoal) !important;
  margin: var(--space-3) 0 0 !important;
}
.py-cart-notices .woocommerce-info::before { display: none !important; }
.py-cart-notices .woocommerce-error {
  background: #fef2f2 !important;
  border-left: 3px solid var(--py-rust) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-size: var(--text-sm) !important;
  margin: var(--space-3) 0 0 !important;
  list-style: none !important;
}
.py-cart-notices .woocommerce-error::before { display: none !important; }

/* Cart items count */
.py-cart-items-count {
  font-size: var(--text-sm);
  color: var(--py-brown-light);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--py-cream-dark);
}

/* Cart item — price and remove in right column, stacked */
.py-cart-item {
  grid-template-columns: 90px 1fr auto !important;
  padding: var(--space-4) 0 !important;
}
.py-cart-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}
.py-cart-item__price {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--py-navy);
  font-weight: 500;
}
.py-cart-item__remove {
  font-size: 11px;
  color: var(--py-brown-light);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.15s, color 0.15s;
}
.py-cart-item__remove:hover { opacity: 1; color: var(--py-rust); }

/* Item meta row: vendor · location */
.py-cart-item__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.py-cart-item__seller {
  font-size: var(--text-xs);
  color: var(--py-brown-light);
  text-decoration: none;
  font-weight: 500;
}
.py-cart-item__seller:hover { color: var(--py-rust); }
.py-cart-item__meta-sep { font-size: var(--text-xs); color: var(--py-cream-mid); }
.py-cart-item__loc {
  font-size: var(--text-xs);
  color: var(--py-brown-light);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Vendor group header avatar — initials fallback */
.py-cart-vendor-group__avatar-wrap {
  display: flex;
  flex-shrink: 0;
  text-decoration: none;
}
.py-cart-vendor-group__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--py-cream-mid);
}
.py-cart-vendor-group__avatar-init {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--py-navy);
  color: var(--py-cream);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  flex-shrink: 0;
}
/* Vendor location in header */
.py-cart-vendor-group__loc {
  font-size: var(--text-xs);
  color: var(--py-brown-light);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 1px;
}

/* Cart summary CTA button — arrow at right, text centred */
.py-cart-summary__cta {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  background: var(--py-navy);
  color: var(--py-cream);
  border-radius: 12px;
  padding: 16px var(--space-5);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background var(--transition-fast);
  margin: var(--space-4) 0 var(--space-3);
}
.py-cart-summary__cta:hover { background: var(--py-charcoal); color: var(--py-cream); }
.py-cart-summary__cta svg { flex-shrink: 0; margin-left: auto; }
.py-cart-summary__secure {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  font-size: var(--text-xs);
  color: var(--py-brown-light);
}

/* ── 4. FILTER BAR — now slimmer (no condition chips) ───────── */
/* Cat banner bottom row — condition chips + swap inside banner */
.cat-banner__bottom-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}
.cat-banner__filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.35);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  white-space: nowrap;
}
.cat-banner__filter-chip:hover,
.cat-banner__filter-chip.active {
  background: var(--py-cream);
  color: var(--py-navy);
  border-color: var(--py-cream);
}
/* Dark variant for shop heading (white background) */
.cat-banner__filter-chip.dark {
  color: var(--py-charcoal);
  border-color: var(--py-cream-dark);
  background: var(--py-white);
}
.cat-banner__filter-chip.dark:hover,
.cat-banner__filter-chip.dark.active {
  background: var(--py-navy);
  color: var(--py-cream);
  border-color: var(--py-navy);
}
.cat-banner__filter-chip--swap { border-style: dashed; }

/* ── 5. EYEBROW — belt-and-braces CSS layer (wp_head injects <style> too) */


/* ── LABEL-TEXT CENTERING — ONE CLEAN RULE ─────────────────────────
   Rule: if a .label-text is inside a .text-center div, it centres.
   Nothing else. No !important wars. No specificity hacks.
   The inline style on each element (text-align:center) already handles
   the centred instances. This CSS is belt-and-braces backup only.
   ------------------------------------------------------------------ */
.text-center .label-text { text-align: center; display: block; }
/* Section-specific: these sections always have centred eyebrows */
.py-about-section .label-text,
.py-steps-section .label-text { text-align: center; display: block; }

/* ============================================================
   PRAMYARD v3.27 FIXES
   ============================================================ */

/* ── EYEBROW CLASS — replaces inline style approach entirely ─ */
/* Applied via PHP class="label-text py-eyebrow-center"         */
/* This class has no specificity conflict with anything         */
.py-eyebrow-center {
  text-align: center !important;
  display: block !important;
  width: 100%;
}

/* ── SELLER SPOTLIGHT — initials avatar ─────────────────────── */
.seller-spotlight-card__avatar-wrap {
  display: block;
  margin: 0 auto var(--space-4);
  width: 100px;
  height: 100px;
  position: relative;
}
.seller-spotlight-card__avatar {
  width: 100px !important;
  height: 100px !important;
  border-radius: 50% !important;
  object-fit: cover;
  display: block;
}
.seller-spotlight-card__initials {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--py-navy);
  color: var(--py-cream);
  font-size: 2.5rem;
  font-weight: 600;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── MOBILE: filter bar scrolls horizontally, never wraps ───── */
@media (max-width: 768px) {
  .shop-filter-bar__inner {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 16px;
  }
  .shop-filter-bar__inner::-webkit-scrollbar { display: none; }
  /* Ensure all children don't shrink */
  .shop-filter-bar__inner > * { flex-shrink: 0; }
  /* Sort select on its own row below the bar */
  .py-sort-wrap { 
    flex-shrink: 0;
  }
}

/* ── MOBILE: header — no overflow ───────────────────────────── */
@media (max-width: 1024px) {
  .site-header {
    max-width: 100vw;
    overflow: hidden;
  }
  .site-header__inner {
    max-width: 100%;
    overflow: hidden;
  }
}

/* ── CART NOTICES — cleaner cream alerts ────────────────────── */
.py-cart-notices .woocommerce-info,
.py-cart-notices .woocommerce-message {
  background: var(--py-cream-dark) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
  font-size: var(--text-sm) !important;
  color: var(--py-charcoal) !important;
  margin: var(--space-3) 0 0 !important;
  max-width: none !important;
}
.py-cart-notices .woocommerce-info::before,
.py-cart-notices .woocommerce-message::before { display: none !important; }
.py-cart-notices .woocommerce-error {
  background: #fef2f2 !important;
  border: none !important;
  border-left: 3px solid var(--py-rust) !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
  font-size: var(--text-sm) !important;
  margin: var(--space-3) 0 0 !important;
  list-style: none !important;
  max-width: none !important;
}
.py-cart-notices .woocommerce-error::before { display: none !important; }
/* Remove the WC arrow/icon from info boxes */
.py-cart-notices .woocommerce-info a.button,
.py-cart-notices .woocommerce-message a.button { display: none; }


/* ============================================================
   PRAMYARD v3.28 — CART + CHECKOUT COMPLETE REWRITE
   ============================================================ */

/* ── CART ITEM LAYOUT ───────────────────────────────────────── */
/* 80px image | flexible details | price+remove flush right     */
.py-cart-item {
  grid-template-columns: 80px 1fr auto !important;
  gap: var(--space-3) !important;
  padding: var(--space-4) 0 !important;
  align-items: start !important;
}
.py-cart-item__img-wrap { display: block; }
.py-cart-item__img {
  width: 80px !important;
  height: 80px !important;
  border-radius: 10px;
  object-fit: cover;
  background: var(--py-cream-dark);
  display: block;
}
.py-cart-item__details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 2px;
}
.py-cart-item__name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--py-navy);
  text-decoration: none;
  line-height: 1.3;
}
.py-cart-item__name:hover { color: var(--py-rust); }

/* Product attributes: brand · size · colour · condition */
.py-cart-item__attrs {
  font-size: var(--text-xs);
  color: var(--py-brown-light);
  margin: 0;
  line-height: 1.4;
}

/* Seller name · location inline */
.py-cart-item__seller-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.py-cart-item__seller {
  font-size: var(--text-xs);
  color: var(--py-brown-light);
  text-decoration: none;
  font-weight: 500;
}
.py-cart-item__seller:hover { color: var(--py-rust); }
.py-cart-item__meta-sep {
  font-size: var(--text-xs);
  color: var(--py-cream-mid);
  line-height: 1;
}
.py-cart-item__loc {
  font-size: var(--text-xs);
  color: var(--py-brown-light);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.py-cart-item__loc svg { fill: currentColor; flex-shrink: 0; opacity: 0.6; }

/* Price + remove stacked flush right */
.py-cart-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-top: 2px;
  flex-shrink: 0;
}
.py-cart-item__price {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--py-navy);
  white-space: nowrap;
}
/* Kill WC's nested price markup duplication */
.py-cart-item__price .woocommerce-Price-amount { font-size: inherit !important; }
.py-cart-item__remove {
  font-size: 11px;
  color: var(--py-brown-light);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.6;
  transition: opacity 0.15s, color 0.15s;
  white-space: nowrap;
}
.py-cart-item__remove:hover { opacity: 1; color: var(--py-rust); }

/* Vendor group header pin icon — solid filled teardrop */
.py-cart-vendor-group__loc svg,
.py-cart-item__loc svg { fill: currentColor; }


/* Notices strip — coupon + Stripe alerts */
/* "Have a coupon?" toggle link */
/* Stripe / error notices */

/* Grid wrapper */

/* LEFT: white panel — contact fields only */

/* Form fields — clean 2-col grid */
/* Hide WC's duplicate H3 headings inside billing/shipping fields */
.woocommerce h3#ship-to-different-address { display: none !important; }

/* RIGHT: cream panel — order summary + payment */

/* Order review table — clean line items, NO meta clutter */
/* HIDE ALL MarketKing/WC meta in order review — "Your area", "Vendor:", "Shared with buyers" etc */
/* Keep just: quantity × name */

/* Totals / shipping / order-total rows */

/* Payment section inside right column */

/* Responsive */
@media (max-width: 1024px) {
}
@media (max-width: 768px) {
}


/* ============================================================
   PRAMYARD v3.29 FIXES
   ============================================================ */

/* ── CART SUMMARY — manual totals rows ─────────────────────── */
.py-cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--py-charcoal);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.py-cart-summary__row:last-child { border-bottom: none; }
.py-cart-summary__row--total {
  padding-top: var(--space-4) !important;
  margin-top: var(--space-2);
  border-top: 2px solid var(--py-navy) !important;
  border-bottom: none !important;
}
.py-cart-summary__row--total span:first-child {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--py-navy);
}
.py-cart-summary__row--total span:last-child {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--py-navy);
}
.py-cart-summary__row--discount span:last-child {
  color: var(--py-sage-dark);
  font-weight: 500;
}

/* MarketKing injects various meta: "Your area", "Shared with buyers",
   "Location:", "Vendor:" via dl/dt/dd, .wc-item-meta, .variation, p tags.
   This targets EVERYTHING inside .product-name except the product
   link and the quantity span. */
/* Keep the quantity indicator (x 1) */

/* "Have a coupon?" link — transparent, text-only */
/* Stripe not connected / error alerts — blush/red card */
/* Coupon form when expanded */


/* ============================================================
   PRAMYARD v3.29 — CART + CHECKOUT FIXES
   ============================================================ */

/* ── CART: Fix item spacing — breathing room on edges ──────── */
.py-cart-item {
  grid-template-columns: 90px 1fr auto !important;
  gap: var(--space-4) !important;
  padding: var(--space-4) var(--space-4) !important;
  align-items: start !important;
}
.py-cart-item__img {
  width: 90px !important;
  height: 90px !important;
  border-radius: 10px;
  object-fit: cover;
  background: var(--py-cream-dark);
  display: block;
}
.py-cart-item__right {
  padding-right: var(--space-2) !important;
  min-width: 70px;
}

/* ── CART: Vendor header — name + pin + location INLINE ────── */
.py-cart-vendor-group__name-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.py-cart-vendor-group__name-line .py-cart-vendor-group__name {
  font-size: var(--text-sm) !important;
  font-weight: 600 !important;
  color: var(--py-navy) !important;
  text-decoration: none;
}
.py-cart-vendor-group__name-line .py-cart-vendor-group__loc {
  margin-top: 0 !important;
  font-size: var(--text-xs);
  color: var(--py-brown-light);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.py-cart-vendor-group__name-line .py-cart-vendor-group__loc svg {
  width: 9px;
  height: 11px;
  fill: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ── CART SUMMARY — totals rows ────────────────────────────── */
.py-cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--py-charcoal);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.py-cart-summary__row:last-child { border-bottom: none; }
.py-cart-summary__row--total {
  padding-top: var(--space-4) !important;
  margin-top: var(--space-2);
  border-top: 2px solid var(--py-navy) !important;
  border-bottom: none !important;
}
.py-cart-summary__row--total span:first-child {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--py-navy);
}
.py-cart-summary__row--total span:last-child {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--py-navy);
}
.py-cart-summary__row--discount span:last-child {
  color: var(--py-sage-dark);
  font-weight: 500;
}

/* MarketKing injects "Your area", "Shared with buyers...", vendor
   location, etc via dl/dt/dd, p, .wc-item-meta, .variation.
   Hide ALL of it in the order review panel. */


/* Subtotal / shipping / total rows */

/* Place order button */


/* ============================================================
   v3.29b — CHECKOUT LAYOUT FIX
   Full-width background, constrained content
   ============================================================ */

/* Notices bar also full-width */
/* Grid sits inside and is constrained */
/* LEFT white panel */
/* RIGHT cream panel */
/* Form resets */

/* ── Cart: size/colour/condition meta — also check ACF field keys ── */
/* Some ACF fields use pa_size, pa_colour etc taxonomy terms */
.py-cart-item__attrs {
  font-size: var(--text-xs) !important;
  color: var(--py-brown-light) !important;
  margin: 2px 0 0 !important;
  line-height: 1.4 !important;
}

@media (max-width: 768px) {
}


/* ============================================================
   v3.29c — CENTERING FIX + CHECKOUT POLISH + EDITORIAL RELATED
   ============================================================ */

/* ── GLOBAL: Fix p { max-width: 70ch } breaking centering ──── */
/* When parent is centered, paragraphs should center too */
.py-no-products p,
.py-empty-cart p,
[style*="text-align:center"] p,
[style*="text-align: center"] p,
.text-center p,
.py-about-section p,
.py-steps-section p {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* ── EYEBROW: Force ALL .label-text inside WPBakery centered sections ── */
/* WPBakery adds .vc_text_align_center or text_align="center" */
.vc_text_align_center .label-text,
[class*="text_align_center"] .label-text,
.wpb_text_column.vc_align_center .label-text,
.vc_column_container .vc_column-inner .wpb_wrapper .label-text {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}
/* Broader fix: any label-text that visually should center */
.label-text.py-eyebrow-center,
.text-center .label-text,
.py-about-section .label-text,
.py-steps-section .label-text {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Clean cream background edge-to-edge, content max-width constrained */
/* LEFT: white card with rounded corners */
/* RIGHT: slightly darker cream */
/* Step label styling */
/* Order review table — clean, no borders */
/* Subtotal / shipping / total in footer */
/* 02 Payment heading */
/* Payment box */
/* Place order */
/* Billing fields — better spacing */
/* Order notes section */

/* Responsive */
@media (max-width: 768px) {
}

/* ── EDITORIAL: Related Stories section ────────────────────── */
.py-related-stories {
  background: var(--py-brown, #8b6f5c);
  padding: var(--space-12) var(--space-8);
  margin-top: var(--space-12);
}
.py-related-stories__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--py-cream);
  text-align: center;
  margin: 0 0 var(--space-8);
  letter-spacing: 0.02em;
}
.py-related-stories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}
.py-related-stories__card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.py-related-stories__card:hover .py-related-stories__img {
  transform: scale(1.03);
}
.py-related-stories__img-wrap {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: var(--space-3);
  aspect-ratio: 4/3;
}
.py-related-stories__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.py-related-stories__cat {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--py-cream);
  opacity: 0.65;
  margin-bottom: 4px;
  display: block;
}
.py-related-stories__card-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--py-cream);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin: 0 0 4px;
}
.py-related-stories__date {
  font-size: var(--text-xs);
  color: var(--py-cream);
  opacity: 0.5;
}
@media (max-width: 768px) {
  .py-related-stories__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}


/* ============================================================
   v3.29d — CHECKOUT FINAL FIX
   ============================================================ */

/* Remove the internal scrollbar on right column */

/* Left column: billing fields should USE the space properly */
/* Make billing fields fill the available width */
/* Full-width fields */
/* First + Last name stay as 2-col */
/* Postcode + Phone as 2-col too */
/* Input fields — proper width */
/* Order notes full width */


@media (max-width: 768px) {
}


/* ============================================================
   v3.29e — CHECKOUT: TRULY FULL WIDTH, NO BORDER/GAP
   ============================================================ */
/* Notices full width */

@media (max-width: 768px) {
}

/* ── RELATED STORIES: Magazine-quality swipeable carousel ──── */
/* Override the basic grid with a horizontal scroll carousel */
.py-related-stories {
  background: var(--py-brown, #8b6f5c) !important;
  padding: var(--space-12) 0 var(--space-12) !important;
  overflow: hidden !important;
  position: relative !important;
}
.py-related-stories__title {
  padding: 0 var(--space-8) !important;
  margin-bottom: var(--space-6) !important;
}
.py-related-stories__grid {
  display: flex !important;
  gap: var(--space-5) !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 0 var(--space-8) var(--space-4) !important;
  scrollbar-width: none !important;
  max-width: none !important;
  grid-template-columns: none !important;
}
.py-related-stories__grid::-webkit-scrollbar { display: none !important; }
.py-related-stories__card {
  flex: 0 0 320px !important;
  scroll-snap-align: start !important;
  min-width: 280px !important;
}
.py-related-stories__img-wrap {
  aspect-ratio: 3/4 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}
/* Navigation arrows */
.py-related-stories__nav {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  padding: 0 var(--space-8);
  margin-bottom: var(--space-4);
}
.py-related-stories__nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(249,245,238,.3);
  background: transparent;
  color: var(--py-cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.py-related-stories__nav-btn:hover {
  background: rgba(249,245,238,.1);
  border-color: rgba(249,245,238,.6);
}

/* Mobile: smaller cards */
@media (max-width: 768px) {
  .py-related-stories__card {
    flex: 0 0 260px !important;
    min-width: 240px !important;
  }
}


/* Mobile */
@media (max-width: 768px) {
}


/* ============================================================
   v3.30 — EDITORIAL product cards: match category card styling
   ============================================================ */
.py-sticky-split__content .py-product-grid {
  gap: var(--space-4) !important;
}
.py-sticky-split__content .product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
/* Match category card padding exactly */
.py-sticky-split__content .product-card__body {
  padding: var(--space-3) var(--space-4) var(--space-4) !important;
}
.py-sticky-split__content .product-card__title {
  font-family: var(--font-heading) !important;
  font-size: var(--text-lg) !important;
  font-weight: 400 !important;
  color: var(--py-navy) !important;
  line-height: 1.25 !important;
  margin-bottom: 5px !important;
}
.py-sticky-split__content .product-card__brand {
  font-size: var(--text-xs) !important;
  color: var(--py-brown-light) !important;
  font-weight: 500 !important;
  margin-bottom: var(--space-1) !important;
}
.py-sticky-split__content .product-card__footer {
  margin-top: var(--space-3) !important;
  padding-top: var(--space-3) !important;
  border-top: 1px solid var(--py-cream-dark) !important;
}


/* ============================================================
   v3.30 — MOBILE: ensure hamburger is visible
   ============================================================ */
@media (max-width: 1024px) {
  .mobile-menu-toggle,
  button.mobile-menu-toggle,
  #mobile-menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 100 !important;
    width: 40px !important;
    height: 40px !important;
  }
  .mobile-menu-toggle svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
  }
}


/* ============================================================
   v3.30 — Full Width Banner: actions left-aligned with content
   ============================================================ */
.py-fw-banner__actions {
  display: flex !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  padding: 0 !important;
  margin: 0 !important;
  /* Pull first button text flush with headline text above */
  margin-left: calc(var(--space-6) * -1) !important;
}

/* ============================================================
   v3.30 — Share: use native Web Share API
   ============================================================ */


/* ============================================================
   PRAMYARD CHECKOUT — SINGLE SOURCE OF TRUTH
   All checkout styles in one place. No duplicates.
   ============================================================ */

/* Body reset — remove all padding from body on checkout */
body.woocommerce-checkout {
  padding: 0 !important;
  margin: 0 !important;
}

/* Ensure header/footer display normally */
.woocommerce-checkout .site-header,
.woocommerce-checkout .newsletter-section,
.woocommerce-checkout .site-footer { display: block; }

/* WC form — no constraints */
body.woocommerce-checkout .woocommerce,
body.woocommerce-checkout .entry-content,
body.woocommerce-checkout form.woocommerce-checkout {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

/* ── Notices strip ── */
.py-co-notices {
  width: 100%;
  padding: var(--space-2) var(--space-6);
  background: var(--py-cream);
}

/* ── Outer wrap ── */
.py-co-wrap {
  background: var(--py-cream);
  min-height: 60vh;
  padding: 0;
}

/* ── Two-column grid ── */
.py-co-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

/* ── LEFT: Contact & Delivery ── */
.py-co-left {
  background: var(--py-white);
  padding: var(--space-8) var(--space-10) var(--space-16);
  border-right: 1px solid var(--py-cream-dark);
}

/* Step labels */
.py-co-step-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--py-sage);
  margin-bottom: var(--space-1);
}
.py-co-step-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--py-navy);
  margin-bottom: var(--space-6);
}

/* Customer details container — fill width */
.py-co-left #customer_details {
  width: 100%;
}

/* Billing/shipping fields — 2-col grid for field pairs */
.py-co-left .woocommerce-billing-fields__field-wrapper,
.py-co-left .woocommerce-shipping-fields .woocommerce-shipping-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-4);
  width: 100%;
}

/* Full-width rows */
.py-co-left .form-row-wide,
.py-co-left #billing_country_field,
.py-co-left #billing_address_1_field,
.py-co-left #billing_address_2_field,
.py-co-left #billing_city_field,
.py-co-left #billing_state_field,
.py-co-left #billing_email_field {
  grid-column: 1 / -1;
}

/* Half-width paired rows */
.py-co-left #billing_first_name_field,
.py-co-left #billing_last_name_field,
.py-co-left #billing_postcode_field,
.py-co-left #billing_phone_field {
  grid-column: auto;
}

/* Form rows — no extra margin */
.py-co-left .form-row {
  margin-bottom: 0;
  padding: 0;
}

/* Labels */
.py-co-left .form-row label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--py-charcoal);
  margin-bottom: 6px;
}

/* Inputs */
.py-co-left .form-row input[type="text"],
.py-co-left .form-row input[type="email"],
.py-co-left .form-row input[type="tel"],
.py-co-left .form-row input[type="number"],
.py-co-left .form-row select,
.py-co-left .form-row textarea,
.py-co-left .select2-container .select2-selection {
  width: 100%;
  padding: 10px 0;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--py-charcoal);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--py-cream-dark);
  border-radius: 0;
  outline: none;
  transition: border-color var(--transition-fast);
  -webkit-appearance: none;
}
.py-co-left .form-row input:focus,
.py-co-left .form-row select:focus,
.py-co-left .form-row textarea:focus {
  border-color: var(--py-navy);
  box-shadow: none;
}
.py-co-left .form-row.woocommerce-invalid input { border-color: var(--py-rust); }
.py-co-left .form-row .required { color: var(--py-rust); }

/* Order notes — full width below */
.py-co-left .woocommerce-additional-fields {
  margin-top: var(--space-4);
}
.py-co-left #order_comments_field textarea {
  border: 1px solid var(--py-cream-dark);
  border-radius: 8px;
  padding: var(--space-3);
  min-height: 80px;
  resize: vertical;
}

/* ── RIGHT: Order summary + Payment ── */
.py-co-right {
  padding: var(--space-8) var(--space-8) var(--space-16);
  position: relative;
}
.py-co-step-title--right {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--py-navy);
  margin-bottom: var(--space-4);
}

/* Order review table */
.py-co-right .woocommerce-checkout-review-order-table,
.py-co-right .shop_table {
  width: 100%;
  border-collapse: collapse;
}
.py-co-right .woocommerce-checkout-review-order-table th,
.py-co-right .woocommerce-checkout-review-order-table td {
  padding: 10px 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-family: var(--font-body);
}
.py-co-right .order-total td,
.py-co-right .order-total th {
  font-weight: 600;
  font-size: var(--text-lg);
  border-bottom: none;
  padding-top: var(--space-4);
  font-family: var(--font-heading);
}

/* Payment heading */
.py-co-payment-heading {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--py-cream-dark);
}
.py-co-payment-heading .py-co-step-label { margin-bottom: var(--space-1); }
.py-co-payment-heading .py-co-step-title { margin-bottom: var(--space-4); }

/* Payment box */
.py-co-right #payment {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}
.py-co-right #payment ul.payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  border: none;
}
.py-co-right #payment ul.payment_methods li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.py-co-right #payment ul.payment_methods li label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
}
.py-co-right #payment ul.payment_methods li label img {
  max-height: 24px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
.py-co-right .payment_box {
  padding: var(--space-4) 0;
  background: none;
}
.py-co-right .payment_box::before { display: none; }

/* Place order button */
.py-co-right #place_order {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  background: var(--py-rust);
  color: var(--py-cream);
  border: none;
  border-radius: 12px;
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background var(--transition-fast);
  font-family: var(--font-body);
}
.py-co-right #place_order:hover { background: var(--py-rust-dark, #a84f1e); }

/* Privacy text */
.py-co-right .woocommerce-terms-and-conditions-wrapper,
.py-co-right .woocommerce-privacy-policy-text {
  font-size: var(--text-xs);
  color: var(--py-brown-light);
  margin-bottom: var(--space-4);
}

/* ── Hide WC default headings we replace ── */
.py-co-left .woocommerce-billing-fields > h3,
.py-co-left .woocommerce-shipping-fields > h3 { display: none; }

/* ── Hide MarketKing meta rows ── */
.py-co-left .marketking_checkout_shipping_location_row,
.py-co-left [class*="marketking_checkout"],
.py-co-right .marketking_checkout_shipping_location_row,
.py-co-right [class*="marketking_checkout"] { display: none !important; }

/* WC Blocks checkout override */
.wp-block-woocommerce-checkout { display: none !important; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .py-co-grid {
    grid-template-columns: 1fr;
  }
  .py-co-left {
    padding: var(--space-6) var(--space-4) var(--space-8);
    border-right: none;
    border-bottom: 1px solid var(--py-cream-dark);
  }
  .py-co-left .woocommerce-billing-fields__field-wrapper {
    grid-template-columns: 1fr;
  }
  .py-co-left #billing_first_name_field,
  .py-co-left #billing_last_name_field,
  .py-co-left #billing_postcode_field,
  .py-co-left #billing_phone_field {
    grid-column: 1 / -1;
  }
  .py-co-right {
    padding: var(--space-6) var(--space-4);
  }
}

