/* ========================================
   A PRIORI DESIGN V2
   New brand design system
   ======================================== */
@import url("font.css");
@import url("notices.css");
@import url("footer.css");

/* start jquery ui spinner overwride */
.ui-spinner {
    border-radius: 0 !important;
    border-width: 0 !important;
}

.ui-spinner-input {
    margin: 0 !important;
}

.ui-button {
    border-radius: 0 !important;
    background-image: none !important;
    background-color: var(--color-cream) !important;
    color: var(--color-blackened) !important;    
}
/* stop jquery ui spinner overwride */

/* =============================================
   GO BACK LINK (small button style)
   ============================================= */

.go-back-link {
  display: inline-block;
  background: var(--color-cream);
  color: var(--color-blackened);
  font-family: var(--font-nav);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 16px;
  margin-bottom: 16px;
  transition: background-color 0.2s ease, color 0.2s ease;
  order: -1;
  flex:0 0 100%;
}

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  --color-blackened: #100F12;
  --color-gilded: #A07500;
  --color-cream: #FFF8E7;
  --color-cream-transparent: rgba(255, 248, 231, 0.75);
  --color-peach: #FCD0A6;

  --font-display: 'Chive Turkey JNL', Georgia, serif;
  --font-display-alt: 'Sheet Music JNL', Georgia, serif;
  --font-nav: 'Show Biz JNL', 'Futura PT', sans-serif;
  --font-mono: 'Desk Jockey JNL', 'Courier New', monospace;
  --font-body: 'Futura PT', 'Helvetica Neue', sans-serif;

  --border-width: 2px;
  --content-max-width: 1392px;
  --page-padding: 24px;

  --checker-tile-width: 12.94px;
  --checker-tile-height: 5.99px;
  --checker-border-width: 6px;
  --checker-gap: 12px;
}

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

/* Visually hidden but accessible to screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip navigation link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-blackened);
  color: var(--color-cream);
  padding: 8px 16px;
  z-index: 9999;
  text-decoration: underline;
  font-family: var(--font-body);
  font-size: 14px;
}

.skip-link:focus {
  top: 6px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-cream);
  color: var(--color-blackened);
  line-height: 1.4;
  margin: 0;
  padding: 6px;
  overflow-x: hidden;
}

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

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

a:hover,
a:focus {
  text-decoration: none;
}

/* Override parent theme underline styles */
.entry-content a,
.entry-content a:hover,
.entry-content a:focus {
  text-decoration: none;
}

/* ========================================
   REUSABLE COMPONENTS
   ======================================== */
.btn-gilded {
  display: inline-block;
  background: var(--color-gilded);
  border: var(--border-width) solid var(--color-blackened);
  color: var(--color-cream);
  font-family: var(--font-nav);
  font-size: 16px;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-gilded:hover {
  background-color: var(--color-blackened);
  color: var(--color-cream);
}

.btn-outlined {
  display: inline-block;
  background: var(--color-cream);
  border: var(--border-width) solid var(--color-blackened);
  color: var(--color-blackened);
  font-family: var(--font-nav);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 4px 16px;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outlined:hover {
  background-color: var(--color-blackened);
  color: var(--color-cream);
}

.nav .btn-outlined {
  font-size: 12px;
}

/* ========================================
   LAYOUT CONTAINER
   ======================================== */
.page-wrapper {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--checker-gap);
  position: relative;
  overflow: hidden;
}

#main-content {
  overflow: hidden;
  max-width: 100%;
}

.berocket_cart_notice {
    display: block !important;
}

/* ========================================
   CHECKERBOARD BORDER
   ======================================== */
.checker-border {
  position: absolute;
  background-repeat: repeat;
  pointer-events: none;
}

/* Horizontal borders */
.checker-border--top,
.checker-border--bottom {
  left: 0;
  right: 0;
  height: var(--checker-border-width);
  background-image: url('../images/checker-tile.svg');
  background-size: var(--checker-tile-width) var(--checker-tile-height);
}

.checker-border--top {
  top: 0;
}

.checker-border--bottom {
  bottom: 0;
  transform: rotate(180deg);
}

/* Vertical borders */
.checker-border--left,
.checker-border--right {
  top: var(--checker-border-width);
  bottom: var(--checker-border-width);
  width: var(--checker-border-width);
  background-image: url('../images/checker-tile-vertical.svg');
  background-size: var(--checker-tile-height) var(--checker-tile-width);
}

.checker-border--left {
  left: 0;
}

.checker-border--right {
  right: 0;
  transform: rotate(180deg);
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  border: var(--border-width) solid var(--color-blackened);
  padding: 24px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1000;
  background: var(--color-cream);
  transition: background-color 0.3s ease;
}

/* Header turns gilded when menu is open */
body.menu-open .site-header {
  background: var(--color-gilded);
}

.site-logo {
  display: block;
  flex-shrink: 0;
}

.site-logo img {
  display: block;
  width: 211px;
  height: 60px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  flex-shrink: 1;
  min-width: 0;
}

.main-nav a:not(.btn-outlined) {
  font-family: var(--font-nav);
  font-size: clamp(11px, 1.1vw, 15px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--color-gilded);
}

/* Hamburger Menu */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-icon {
  width: 46px;
  height: 48px;
  object-fit: contain;
}

.menu-icon--close {
  display: none;
}

/* When menu is open */
.mobile-menu-toggle[aria-expanded="true"] .menu-icon--open {
  display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon--close {
  display: block;
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-menu {
  position: fixed;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  background: var(--color-cream);
  z-index: 999;
  padding: var(--checker-gap);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu .checker-border {
  position: fixed;
}

.mobile-menu .checker-border--top {
  top: 6px;
  left: 6px;
  right: 6px;
}

.mobile-menu .checker-border--bottom {
  bottom: 6px;
  left: 6px;
  right: 6px;
}

.mobile-menu .checker-border--left {
  top: calc(6px + var(--checker-border-width));
  bottom: calc(6px + var(--checker-border-width));
  left: 6px;
}

.mobile-menu .checker-border--right {
  top: calc(6px + var(--checker-border-width));
  bottom: calc(6px + var(--checker-border-width));
  right: 6px;
}

.mobile-menu[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  background: var(--color-gilded);
  border: var(--border-width) solid var(--color-blackened);
  min-height: calc(100% - 80px);
  margin-top: 144px;
  display: flex;
  flex-direction: column;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.mobile-menu-links a {
  font-family: var(--font-nav);
  font-size: 16px;
  color: white;
  letter-spacing: 0.1em;
  padding: 14px 24px;
  border-bottom: 1px solid var(--color-blackened);
  transition: background-color 0.2s ease;
}

.mobile-menu-links a:first-child {
  border-top: none;
}

.mobile-menu-links a:last-child {
  border-bottom: none;
}

.mobile-menu-links a:hover {
  background: rgba(0, 0, 0, 0.1);
}

.mobile-menu-illustration {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 24px 0 24px;
}

.mobile-menu-illustration img {
  max-width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
}

/* ========================================
   MARQUEE
   ======================================== */
.marquee {
  border: var(--border-width) solid var(--color-blackened);
  border-top: none;
  background: var(--color-cream);
  height: 60px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
}

.marquee-content {
  font-family: var(--font-mono);
  font-size: 24px;
  white-space: nowrap;
  display: inline-block;
}

/* Pause marquee on hover/focus for accessibility */
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

.marquee-content span {
  color: var(--color-gilded);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
  border: var(--border-width) solid var(--color-blackened);
  border-top: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('../images/tiled-box.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 48px;
  gap: 0;
  height: 670px;
}

.contact-left {
  background: var(--color-cream);
  border: var(--border-width) solid var(--color-blackened);
  padding: 28px 48px 28px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 32px;
  width: 464px;
  height: 455px;
  flex-shrink: 0;
}

.contact-heading {
  font-family: var(--font-display-alt);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05em;
  -webkit-text-stroke: 1px var(--color-gilded);
  text-stroke: 1px var(--color-gilded);
}

.contact-icon {
  width: 230px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-cta {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 400;
  font-style: normal;
  color: var(--color-gilded);
  letter-spacing: 2.7px;
  -webkit-text-stroke: 2px var(--color-blackened);
  text-stroke: 2px var(--color-blackened);
  text-decoration: none;
}

.contact-cta:hover,
.contact-cta:focus-visible {
  color: var(--color-blackened);
  -webkit-text-stroke-color: var(--color-gilded);
  text-stroke-color: var(--color-gilded);
}

.contact-right {
  background: var(--color-cream);
  border: var(--border-width) solid var(--color-blackened);
  border-left: none;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 464px;
  height: 455px;
  flex-shrink: 0;
}

.contact-info-item {
  border: var(--border-width) solid var(--color-gilded);
  padding: 18px 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.contact-info-item+.contact-info-item {
  border-top: none;
}

.contact-info-item a {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2vw, 30px);
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.contact-info-item a:hover {
  color: var(--color-gilded);
}

.contact-phone a {
  font-family: var(--font-nav);
  font-size: clamp(28px, 3vw, 39px);
  letter-spacing: 0.05em;
}

.contact-address {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(16px, 1.5vw, 24px);
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-style: normal;
}

.contact-address-link {
  color: inherit;
  text-decoration: none;
}

.contact-address-link:hover,
.contact-address-link:focus-visible {
  text-decoration: underline;
}

/* ========================================
   WHOLESALE CTA SECTION
   ======================================== */
.wholesale-cta {
  border: var(--border-width) solid var(--color-blackened);
  border-top: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url('../images/tiled-box.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 48px;
  gap: 0;
  min-height: 670px;
}

.wholesale-cta-left,
.wholesale-cta-right {
  background: var(--color-cream);
  border: var(--border-width) solid var(--color-blackened);
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  width: 464px;
  min-height: 455px;
  flex-shrink: 0;
}

.wholesale-cta-right {
  border-left: none;
}

.wholesale-cta-heading {
  font-family: var(--font-display-alt);
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05em;
  -webkit-text-stroke: 1px var(--color-gilded);
  text-stroke: 1px var(--color-gilded);
  margin: 0;
}

.wholesale-cta-icon {
  width: 180px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wholesale-cta-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wholesale-cta-description {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.05em;
  margin: 0;
  max-width: 300px;
}

.wholesale-cta-button {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 400;
  color: var(--color-gilded);
  letter-spacing: 2.7px;
  -webkit-text-stroke: 2px var(--color-blackened);
  text-stroke: 2px var(--color-blackened);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wholesale-cta-button:hover,
.wholesale-cta-button:focus-visible {
  color: var(--color-blackened);
  -webkit-text-stroke-color: var(--color-gilded);
  text-stroke-color: var(--color-gilded);
}

.wholesale-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.wholesale-cta-action {
  display: block;
  background: var(--color-gilded);
  border: var(--border-width) solid var(--color-blackened);
  color: var(--color-cream);
  font-family: var(--font-nav);
  font-size: 18px;
  letter-spacing: 0.1em;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.wholesale-cta-action:hover,
.wholesale-cta-action:focus-visible {
  background-color: var(--color-blackened);
  color: var(--color-cream);
}

/* ========================================
   WHOLESALE SIGNUP BANNER (Product Category)
   ======================================== */
.wholesale-signup-banner {
  background: var(--color-cream);
  position: relative;
  padding: calc(var(--checker-border-width) + 12px);
  margin: 0 auto 60px;
  max-width: 700px;
}

/* Add space above wholesale signup banner on wholesale-ordering page */
.wholesale-ordering-page .wholesale-signup-banner {
  margin-top: 60px;
}

.wholesale-signup-inner {
  border: var(--border-width) solid var(--color-gilded);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 48px;
  gap: 16px;
}

.wholesale-signup-cta {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  color: var(--color-gilded);
  letter-spacing: 2px;
  -webkit-text-stroke: 1px var(--color-blackened);
  text-stroke: 1px var(--color-blackened);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.wholesale-signup-cta:hover,
.wholesale-signup-cta:focus-visible {
  color: var(--color-blackened);
  -webkit-text-stroke-color: var(--color-gilded);
  text-stroke-color: var(--color-gilded);
}

.wholesale-signup-or {
  font-family: var(--font-body);
  font-size: 16px;
  font-style: italic;
  color: var(--color-blackened);
}

.wholesale-signup-login {
  font-family: var(--font-nav);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--color-blackened);
  text-decoration: none;
  border-bottom: 1px solid var(--color-blackened);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.wholesale-signup-login:hover,
.wholesale-signup-login:focus-visible {
  color: var(--color-gilded);
  border-color: var(--color-gilded);
}

@media (max-width: 600px) {
  .wholesale-signup-banner {
    margin-bottom: 36px;
  }

  .wholesale-signup-inner {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    gap: 12px;
  }

  .wholesale-signup-cta {
    font-size: 20px;
    white-space: normal;
    line-height: 1.2;
  }
}

/* ========================================
   WOOCOMMERCE
   ======================================== */
.woocommerce-content {
  padding: var(--page-padding);
  border: var(--border-width) solid var(--color-blackened);
  border-top: none;
  background: var(--color-cream);
}

/* Category Description */
.content-body.category-description {
  border-top: none;
  border-bottom: none;
  padding: 48px;
  text-align: center;
}

.category-description .content-body-inner {
  max-width: 800px;
}

.category-description p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-blackened);
  margin: 0;
}

.category-description p+p {
  margin-top: 1em;
}

/* Shop Page Category Grid (styled like homepage buttons) */
.shop-categories-section {
  position: relative;
  overflow: hidden;
}

.shop-categories-bg {
  display: none; /* No background image on shop page - pears are homepage only */
}

.shop-categories-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-content: center;
  gap: 0;
  padding: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.shop-categories-grid .product-category {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-categories-grid .product-button {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
}

/* Adjacent category borders - remove shared borders to prevent doubling */
.shop-categories-grid .product-category:nth-child(even) .product-button {
  border-left: none;
}

.shop-categories-grid .product-category:nth-child(n+3) .product-button {
  border-top: none;
}

@media (max-width: 700px) {
  .shop-categories-grid {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .shop-categories-grid .product-category:nth-child(n+2) .product-button {
    border-left: var(--border-width) solid var(--color-blackened);
    border-top: none;
  }
}

/* Single Product Page */
.single-product .quantity,
.product-quantity .quantity {
    background: var(--color-cream) !important;
    border: var(--border-width) solid var(--color-blackened) !important;
    border-radius: 0 !important;
    width: fit-content;
}

.quantity input.qty {
    height: 40px;
    width: 80px;
}

/* Related/Upsell products - remove Bootstrap container constraints */
.woocommerce-related-products .container,
.woocommerce-upsells-products .container {
  max-width: 100%;
  width: 100%;
  padding: 0;
}

.woocommerce-related-products .row,
.woocommerce-upsells-products .row {
  margin: 0;
}

.woocommerce-related-products .row::before,
.woocommerce-related-products .row::after,
.woocommerce-upsells-products .row::before,
.woocommerce-upsells-products .row::after {
  display: none !important;
  content: none !important;
}

.woocommerce-related-products ul.products,
.woocommerce-upsells-products ul.products {
  padding: 0 !important;
}

.woocommerce-related-products ul.products li.product,
.woocommerce-upsells-products ul.products li.product {
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.woocommerce-related-products li.product .product-header,
.woocommerce-upsells-products li.product .product-header {
  background: transparent !important;
}

/* Subcategory Grid - Override for category archive pages with many subcategories */
.woocommerce ul.products:has(li.product-category) {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.woocommerce ul.products:has(li.product-category)::before,
.woocommerce ul.products:has(li.product-category)::after {
  display: none !important;
  content: none !important;
}

.woocommerce ul.products:has(li.product-category) > li.product-category {
  flex: none;
  max-width: none;
  width: 100%;
  border: none !important;
}

.woocommerce ul.products li.product-category .product-button {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 16px;
  aspect-ratio: 1;
  background: var(--color-cream);
  border: var(--border-width) solid var(--color-blackened);
  text-decoration: none;
  transition: background-color 0.2s ease;
  /* Reset inherited homepage button styles */
  gap: 8px;
  position: static;
}

.woocommerce ul.products li.product-category .product-button::after {
  display: none; /* Remove gold inner border */
}

.woocommerce ul.products li.product-category .product-button:hover {
  background-color: var(--color-peach);
}

.woocommerce ul.products li.product-category .product-icon {
  flex: 1;
  min-height: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--color-blackened);
}

.woocommerce ul.products li.product-category .product-icon img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
}

.woocommerce ul.products li.product-category .product-text {
  text-align: center;
  flex-shrink: 0;
}

.quick-prod-info {
    text-align: left;
}

.quick-prod-summary {
    padding: 0 !important;
}

.quick-prod-summary img {
    border: 1px solid var(--color-blackened);
}

.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
    border: 1px solid var(--color-blackened);
}

.woocommerce ul.products li.product-category .product-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-blackened);
  text-transform: none;
  transition: color 0.2s ease;
}

.woocommerce ul.products li.product-category .product-subtitle {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-blackened);
  opacity: 0.7;
}

@media (max-width: 1100px) {
  .woocommerce ul.products:has(li.product-category) {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 800px) {
  .woocommerce ul.products:has(li.product-category) {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .woocommerce ul.products li.product-category .product-button {
    padding: 12px;
  }
}

@media (max-width: 500px) {
  .woocommerce ul.products:has(li.product-category) {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
  }

  .woocommerce ul.products li.product-category .product-button {
    margin: 0 auto;
    padding: 20px;
    height: auto;
    aspect-ratio: 1;
    align-items: center;
  }

  .woocommerce ul.products li.product-category .product-icon {
    flex: 1;
    min-height: 0;
    margin-bottom: 12px;
    width: 100%;
    overflow: hidden;
  }

  .woocommerce ul.products li.product-category .product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .woocommerce ul.products li.product-category .product-title {
    font-size: 14px;
  }
}

/* Product Grid - Thumbnail wrapper (background-image based thumbnails) */
div.product-image {
  height: 265px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
  position: relative;
}

.flex-control-thumbs li {
    border: 1px solid var(--color-blackened);
}

.custom-thumbnail-wrapper {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
  width: 100%;
  border: 1px solid var(--color-blackened);
}

.custom-thumbnail-wrapper img {
  opacity: 0;
}

div.product-image a {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
}

/* Product Grid - Product Titles */
ul.products h3.product-title,
ul.products .shop-item-title-link {
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-blackened);
  text-transform: uppercase;
  text-decoration: none;
  -webkit-text-stroke: 0;
}

ul.products h3.product-title {
  margin: 12px 0 8px;
  text-align: center;
}

ul.products .shop-item-title-link:hover {
  color: var(--color-gilded);
}

/* ========================================
   PRODUCT VIEW TABS
   ======================================== */
#product-header {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-left: var(--border-width) solid var(--color-blackened);
  border-right: var(--border-width) solid var(--color-blackened);
}

.tab-group {
  display: flex;
}

.tab {
  background: var(--color-cream);
  border: var(--border-width) solid var(--color-blackened);
  height: 60px;
  width: 220px;
  font-family: var(--font-nav);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--color-blackened);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.tab+.tab {
  border-left: none;
}

.tab:hover {
  background: var(--color-gilded);
  color: var(--color-cream);
}

.tab--active {
  background: var(--color-blackened);
  color: var(--color-cream);
}

.pdf-catalog-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-nav);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--color-gilded);
  text-decoration: none;
  margin-top: 12px;
}

.pdf-catalog-link:hover {
  color: var(--color-blackened);
  text-decoration: underline;
}

.pdf-catalog-link i {
  font-size: 16px;
}

/* ========================================
   CONTENT PAGE
   ======================================== */

/* Page Hero */
.page-hero {
  background-image: url('../images/tiled-box.svg');
  background-size: cover;
  background-position: center;
  border: var(--border-width) solid var(--color-blackened);
  border-top: none;
  padding: 72px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.page-headline {
  font-family: var(--font-display-alt);
  font-size: 108px;
  line-height: 1;
  color: var(--color-cream);
  -webkit-text-stroke: 3px var(--color-blackened);
  text-stroke: 3px var(--color-blackened);
  text-align: center;
  letter-spacing: 5.4px;
  margin: 0;
}

/* Product search bar above product grid */
.product-search-bar {
  background: var(--color-cream);
  padding: 24px 48px;
  display: flex;
  justify-content: center;
}

/* Ensure search button matches input height in all search forms
   (overrides rebrand.css !important rules on .search-submit) */
.search-form {
  align-items: stretch;
}

.search-form label {
  display: flex;
}

.search-form .search-field {
  flex: 1;
  box-sizing: border-box;
}

.search-form .search-submit {
  display: flex !important;
  align-items: center !important;
  border: var(--border-width) solid var(--color-blackened) !important;
  padding: 12px 16px !important;
  box-sizing: border-box;
}

.product-search-bar .search-form {
  display: flex;
  max-width: 480px;
  width: 100%;
}

.product-search-bar .search-form label {
  flex: 1;
}

.product-search-bar .search-form .search-field {
  width: 100%;
  background: var(--color-cream);
  border: var(--border-width) solid var(--color-blackened);
  border-right: none;
  border-radius: 0;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-blackened);
  outline: none;
}

.product-search-bar .search-form .search-field::placeholder {
  color: rgba(16, 15, 18, 0.5);
}

.product-search-bar .search-form .search-field:focus {
  border-color: var(--color-gilded);
}

.product-search-bar .search-submit {
  background: var(--color-gilded);
  border: var(--border-width) solid var(--color-blackened);
  color: var(--color-cream);
  font-family: var(--font-nav);
  font-size: 14px;
  letter-spacing: 0.1em;
  padding: 12px 24px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.product-search-bar .search-submit:hover {
  background: var(--color-blackened);
}

/* ========================================
   SEARCH RESULTS PAGE
   ======================================== */

/* Search refinement bar */
.search-refinement {
  background: var(--color-cream);
  border: var(--border-width) solid var(--color-blackened);
  border-top: none;
  padding: 36px 48px;
  display: flex;
  justify-content: center;
}

.search-refinement-inner {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.search-refinement-label {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-blackened);
  margin: 0 0 16px 0;
}

.search-refinement .search-form {
  display: flex;
  width: 100%;
}

.search-refinement .search-form label {
  flex: 1;
}

.search-refinement .search-field {
  width: 100%;
  background: var(--color-cream);
  border: var(--border-width) solid var(--color-blackened);
  border-right: none;
  border-radius: 0;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-blackened);
  outline: none;
}

.search-refinement .search-field:focus {
  border-color: var(--color-gilded);
}

.search-refinement .search-submit {
  background: var(--color-gilded);
  border: var(--border-width) solid var(--color-blackened);
  color: var(--color-cream);
  padding: 12px 16px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.search-refinement .search-submit:hover {
  background: var(--color-blackened);
}

/* Search results grid */
.search-results-section {
  background: var(--color-cream);
  border: var(--border-width) solid var(--color-blackened);
  border-top: none;
  padding: 48px;
}

.search-results-grid {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Individual search result card */
.search-result-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid rgba(16, 15, 18, 0.15);
}

.search-result-card:nth-child(even) {
  background: rgba(16, 15, 18, 0.03);
}

.search-result-card:last-child {
  border-bottom: none;
}

.search-result-thumbnail {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  overflow: hidden;
  border: var(--border-width) solid var(--color-blackened);
  display: block;
}

.search-result-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.search-result-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-result-type {
  font-family: var(--font-nav);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gilded);
  font-weight: 600;
}

.search-result-sku {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-blackened);
  opacity: 0.6;
}

.search-result-title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.search-result-title a {
  color: var(--color-blackened);
  text-decoration: none;
  transition: color 0.2s ease;
}

.search-result-title a:hover {
  color: var(--color-gilded);
}

.search-result-excerpt {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-blackened);
  opacity: 0.8;
}

.search-result-excerpt p {
  margin: 0;
}

.search-result-card .btn-outlined {
  align-self: flex-start;
  margin-top: 4px;
}

/* No results state */
.search-no-results {
  text-align: center;
  padding: 48px 24px;
}

.search-no-results p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-blackened);
  margin: 0 0 24px 0;
}

/* Search pagination */
.search-results-section .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(16, 15, 18, 0.15);
}

.search-results-section .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: var(--font-nav);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--color-blackened);
  border: var(--border-width) solid var(--color-blackened);
  background: var(--color-cream);
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.search-results-section .page-numbers:hover {
  background: var(--color-gilded);
  color: var(--color-cream);
}

.search-results-section .page-numbers.current {
  background: var(--color-blackened);
  color: var(--color-cream);
}

.search-results-section .page-numbers.dots {
  border: none;
  background: none;
  min-width: auto;
  padding: 0 4px;
}

/* ========================================
   404 PAGE
   ======================================== */
.error-404-section {
  background: var(--color-cream);
  border: var(--border-width) solid var(--color-blackened);
  border-top: none;
  padding: 80px 48px;
  text-align: center;
}

.error-404-inner {
  max-width: 560px;
  margin: 0 auto;
}

.error-404-subtitle {
  font-family: var(--font-nav);
  font-size: 24px;
  letter-spacing: 0.1em;
  color: var(--color-gilded);
  margin: 0 0 16px 0;
}

.error-404-message {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-blackened);
  opacity: 0.8;
  margin: 0 0 40px 0;
}

.error-404-search {
  margin-bottom: 40px;
}

.error-404-search .search-form {
  display: flex;
  width: 100%;
}

.error-404-search .search-form label {
  flex: 1;
}

.error-404-search .search-field {
  width: 100%;
  background: var(--color-cream);
  border: var(--border-width) solid var(--color-blackened);
  border-right: none;
  border-radius: 0;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-blackened);
  outline: none;
}

.error-404-search .search-field:focus {
  border-color: var(--color-gilded);
}

.error-404-search .search-submit {
  background: var(--color-gilded);
  border: var(--border-width) solid var(--color-blackened);
  color: var(--color-cream);
  padding: 12px 16px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.error-404-search .search-submit:hover {
  background: var(--color-blackened);
}


/* Post Header (for single posts) */
.post-header {
  background: var(--color-cream);
  border: var(--border-width) solid var(--color-blackened);
  border-top: none;
  padding: 48px;
  text-align: center;
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 400;
  color: var(--color-blackened);
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin: 0;
}

/* Single Post Content - allows full-width ACF blocks */
.post-content {
  background: var(--color-cream);
  border: var(--border-width) solid var(--color-blackened);
  border-top: none;
}

/* Regular content (paragraphs, lists, etc.) inside posts */
.post-content > p,
.post-content > ul,
.post-content > ol,
.post-content > h2,
.post-content > h3,
.post-content > h4,
.post-content > blockquote {
  max-width: 678px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
  box-sizing: content-box;
}

.post-content > p:first-child {
  padding-top: 72px;
}

.post-content > p:last-child,
.post-content > *:last-child {
  padding-bottom: 72px;
}

.post-content > p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.7;
  margin: 0 auto 20px;
  color: var(--color-blackened);
}

.post-content > h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 30px;
  margin: 40px auto 20px;
  padding-top: 24px;
}

.post-content > h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 22px;
  margin: 32px auto 16px;
}

.post-content a {
  color: var(--color-gilded);
  font-weight: 700;
  text-decoration: underline;
}

/* Post Images */
.post-content > figure,
.post-content > .wp-block-image {
  max-width: 678px;
  margin: 40px auto;
  padding-left: 48px;
  padding-right: 48px;
  box-sizing: content-box;
}

.post-content > figure img,
.post-content > .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-content > figure figcaption,
.post-content > .wp-block-image figcaption {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--color-blackened);
  opacity: 0.7;
  text-align: center;
  margin-top: 12px;
}

/* Full-width images */
.post-content > .alignfull,
.post-content > .wp-block-image.alignfull {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Wide images */
.post-content > .alignwide,
.post-content > .wp-block-image.alignwide {
  max-width: 900px;
}

/* Blockquotes / Pullquotes */
.post-content > blockquote,
.post-content > .wp-block-quote,
.post-content > .wp-block-pullquote {
  max-width: 678px;
  margin: 48px auto;
  padding: 32px 48px;
  border-left: 4px solid var(--color-gilded);
  background: rgba(160, 117, 0, 0.05);
  box-sizing: content-box;
}

.post-content > blockquote p,
.post-content > .wp-block-quote p,
.post-content > .wp-block-pullquote p {
  font-family: var(--font-body);
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 16px;
  color: var(--color-blackened);
}

.post-content > blockquote p:last-child,
.post-content > .wp-block-quote p:last-child,
.post-content > .wp-block-pullquote p:last-child {
  margin-bottom: 0;
}

.post-content > blockquote cite,
.post-content > .wp-block-quote cite,
.post-content > .wp-block-pullquote cite {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  color: var(--color-gilded);
  margin-top: 16px;
}

/* Lists */
.post-content > ul,
.post-content > ol {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  margin: 0 auto 24px;
  color: var(--color-blackened);
}

.post-content > ul li,
.post-content > ol li {
  margin-bottom: 12px;
}

.post-content > ul li:last-child,
.post-content > ol li:last-child {
  margin-bottom: 0;
}

/* Separator / HR */
.post-content > hr,
.post-content > .wp-block-separator {
  max-width: 678px;
  margin: 48px auto;
  border: none;
  border-top: 2px solid var(--color-gilded);
  opacity: 0.5;
}

/* Code blocks */
.post-content > pre,
.post-content > .wp-block-code {
  max-width: 678px;
  margin: 32px auto;
  padding: 24px 48px;
  background: var(--color-blackened);
  color: var(--color-cream);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
  box-sizing: content-box;
}

/* Inline code */
.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(16, 15, 18, 0.08);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Tables */
.post-content > .wp-block-table,
.post-content > table {
  max-width: 678px;
  margin: 32px auto;
  padding-left: 48px;
  padding-right: 48px;
  box-sizing: content-box;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
}

.post-content table th,
.post-content table td {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-blackened);
}

.post-content table th {
  font-weight: 700;
  background: rgba(16, 15, 18, 0.05);
}

/* Columns */
.post-content > .wp-block-columns {
  max-width: 900px;
  margin: 40px auto;
  padding-left: 48px;
  padding-right: 48px;
  box-sizing: content-box;
}

/* Gallery */
.post-content > .wp-block-gallery {
  max-width: 900px;
  margin: 40px auto;
  padding-left: 48px;
  padding-right: 48px;
  box-sizing: content-box;
}

/* Posts Archive */
.posts-archive .content-body-inner {
  max-width: 800px;
}

.posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.posts-list-item {
  border-bottom: 1px solid var(--color-gilded);
}

.posts-list-item {
  padding: 24px 0;
}

.posts-list-item:last-child {
  border-bottom: none;
}

.posts-list-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 8px;
}

.posts-list-title {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-blackened);
  text-decoration: none;
  transition: color 0.2s ease;
}

.posts-list-title:hover {
  color: var(--color-gilded);
}

.posts-list-date {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-blackened);
  opacity: 0.6;
  white-space: nowrap;
}

.posts-list-excerpt {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-blackened);
  opacity: 0.8;
  margin: 0 0 12px;
}

.posts-list-readmore {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-gilded);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.posts-list-readmore:hover {
  opacity: 0.7;
}

/* Content Photos */
.content-photo {
  border: var(--border-width) solid var(--color-blackened);
  border-top: none;
  overflow: hidden;
}

.content-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-photo--huge {
  height: 835px;
}

.content-photo--small {
  max-width: 928px;
  height: 556px;
  margin: 48px auto;
  border: var(--border-width) solid var(--color-blackened);
}

/* Full-width photo inside content-body (spans content-body inner width) */
.content-body-inner .content-photo--full {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 12px - 96px);
  max-width: calc(var(--content-max-width) - var(--checker-gap) * 2 - 96px);
  margin: 48px 0;
  height: 556px;
  border: var(--border-width) solid var(--color-blackened);
}

/* Content Body */
.content-body {
  background: var(--color-cream);
  border: var(--border-width) solid var(--color-blackened);
  border-top: none;
  padding: 72px 48px;
  display: flex;
  justify-content: center;
}

.content-body-inner {
  max-width: 678px;
  color: var(--color-blackened);
}

/* WPForms container */
.content-body-inner .wpforms-container {
  max-width: 100%;
}

/* Cart page needs full width for product table */
.woocommerce-cart .content-body-inner {
  max-width: 100%;
}

.content-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 16px 0;
}

.content-subheading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  margin: 24px 0 16px 0;
}

/* WordPress block editor headings */
.content-body h2,
.content-body-inner h2,
.content-body h2.wp-block-heading,
.content-body-inner h2.wp-block-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 16px 0;
  color: var(--color-blackened);
}

.content-body h3,
.content-body-inner h3,
.content-body h3.wp-block-heading,
.content-body-inner h3.wp-block-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  margin: 24px 0 16px 0;
  color: var(--color-blackened);
}

.content-body h4,
.content-body-inner h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 24px 0 12px 0;
  color: var(--color-blackened);
}

/* WordPress block editor lists */
.content-body ul,
.content-body ol,
.content-body-inner ul,
.content-body-inner ol {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 16px 0;
  padding-left: 24px;
  color: var(--color-blackened);
}

.content-body li,
.content-body-inner li {
  margin-bottom: 8px;
}

.content-body li:last-child,
.content-body-inner li:last-child {
  margin-bottom: 0;
}

.content-body p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.content-body p:last-child {
  margin-bottom: 0;
}

.content-body a:not(.feature-btn) {
  color: var(--color-gilded);
  font-weight: 700;
  text-decoration: underline;
}

.content-body em {
  font-style: italic;
}

/* Feature Buttons */
.feature-buttons {
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.feature-btn {
  background: var(--color-cream);
  padding: calc(var(--checker-border-width) + 12px);
  position: relative;
  width: 100%;
  max-width: 695px;
  height: 120px;
  box-sizing: border-box;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.feature-btn-inner {
  border: var(--border-width) solid var(--color-gilded);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.feature-btn-text {
  font-family: var(--font-display);
  font-size: 54px;
  color: var(--color-gilded);
  -webkit-text-stroke: 1px var(--color-blackened);
  text-stroke: 1px var(--color-blackened);
  letter-spacing: 2.7px;
  text-align: center;
  text-decoration: none;
  transition: color 0.3s ease;
}

.feature-btn:hover .feature-btn-inner {
  background: var(--color-gilded);
  border-color: var(--color-blackened);
}

.feature-btn:hover .feature-btn-text {
  color: var(--color-cream);
  -webkit-text-stroke-color: var(--color-blackened);
}

.feature-btn--active .feature-btn-inner {
  background: var(--color-peach);
  border-color: var(--color-blackened);
}

.feature-btn--active .feature-btn-text {
  color: var(--color-gilded);
}

/* Form Elements */
.form-elements {
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.form-field {
  background: var(--color-cream);
  border: var(--border-width) solid var(--color-blackened);
  height: 60px;
}

.form-field input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  padding: 0 24px;
  font-family: var(--font-nav);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--color-blackened);
}

.form-field input::placeholder {
  color: var(--color-blackened);
  opacity: 0.6;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
.product-button:focus-visible,
.feature-btn:focus-visible,
.tab:focus-visible,
.btn-gilded:focus-visible,
.btn-outlined:focus-visible,
.btn-small:focus-visible {
  outline: 3px solid var(--color-gilded);
  outline-offset: 2px;
}

.form-field input:focus-visible {
  outline: 2px solid var(--color-gilded);
  outline-offset: 0;
}

.btn-small {
  background: var(--color-gilded);
  border: var(--border-width) solid var(--color-blackened);
  height: 60px;
  padding: 0 32px;
  font-family: var(--font-nav);
  font-size: 24px;
  letter-spacing: 0.1em;
  color: var(--color-cream);
  -webkit-text-stroke: 1px var(--color-blackened);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-small:hover,
.btn-small--active {
  background: var(--color-blackened);
  color: var(--color-cream);
}

.tab-group {
  display: flex;
}

.tab {
  background: var(--color-cream);
  border: var(--border-width) solid var(--color-blackened);
  height: 60px;
  padding: 0 24px;
  font-family: var(--font-nav);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--color-blackened);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tab+.tab {
  border-left: none;
}

.tab:hover,
.tab--hover {
  background: var(--color-gilded);
  color: var(--color-cream);
}

.tab--active {
  background: var(--color-blackened);
  color: var(--color-cream);
}

/* ========================================
   WORDPRESS CONTENT AREA INTEGRATION
   Styles to integrate WordPress content
   with new design shell
   ======================================== */

/* Main content area inside new wrapper */
.site-main {
  border: var(--border-width) solid var(--color-blackened);
  border-top: none;
  background: var(--color-cream);
  min-height: 400px;
}

/* Entry content (page/post content from WordPress) */
.entry-content {
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
}

/* Wholesale page specific - remove extra padding since plugin has its own */
.wholesale-ordering-page .site-main {
  padding: 0;
}

.wholesale-ordering-page .entry-content {
  padding: 20px 48px 48px;
  max-width: none;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --page-padding: 16px;
  }

  .site-header {
    padding: 20px 24px;
  }

  .main-nav {
    gap: 20px;
  }

  .main-nav a {
    font-size: 14px;
  }

  .hero {
    padding: 48px 24px;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero-monogram {
    display: none;
  }

  .homepage-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 48px;
  }

  .contact {
    flex-direction: column;
    align-items: center;
    padding: 24px;
    height: auto;
  }

  .contact-left {
    width: 100%;
    max-width: 464px;
    border-bottom: none;
  }

  .contact-right {
    width: 100%;
    max-width: 464px;
    border-left: var(--border-width) solid var(--color-blackened);
    border-top: none;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-illustration {
    height: 200px;
  }

  /* Content Page - Tablet */
  .page-headline {
    font-size: 72px;
  }

  .content-photo--huge {
    height: 500px;
  }

  .content-photo--small {
    height: 400px;
  }

  .content-body-inner .content-photo--full {
    width: calc(100vw - 12px - 96px);
    max-width: calc(100vw - 108px);
    height: 400px;
  }

  .feature-btn-text {
    font-size: 36px;
  }

  .form-field {
    width: 100%;
    max-width: 400px;
  }
}

/* Navigation breakpoint - switches to mobile nav at 1080px */
@media (max-width: 1080px) {
  /* Header: Logo + hamburger */
  .site-header {
    padding: 24px;
  }

  .site-logo img {
    width: 156px;
    height: 44px;
  }

  .main-nav {
    display: none;
  }

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

/* Mobile layout - hero, categories, content at 768px */
@media (max-width: 768px) {
  :root {
    --page-padding: 24px;
  }

  /* Hero: Icon, CTA, single text column */
  .hero {
    padding: 36px 24px;
  }

  .hero-lockup {
    display: none;
  }

  .hero-icon-mobile {
    display: flex;
  }

  .hero-cta {
    padding: 0;
    max-width: 287px;
    height: auto;
    margin-bottom: 24px;
  }

  .hero-cta .checker-border {
    display: none;
  }

  .hero-cta-inner {
    border-width: var(--border-width);
    padding: 18px 16px;
    height: auto;
  }

  .hero-cta-text {
    font-size: 28px;
    line-height: 1.3;
    letter-spacing: 1.4px;
    white-space: normal;
    -webkit-text-stroke: 1px var(--color-blackened);
    text-stroke: 1px var(--color-blackened);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-text:last-child {
    display: none;
  }

  .hero-text {
    font-size: 12px;
    width: 100%;
  }

  .hero-wholesale-cta {
    display: block;
    height: auto;
    padding: 24px;
    text-align: center;
    max-width: 100%;
    margin-right: 0;
    width: 100%;
    border: var(--border-width) solid var(--color-blackened);
    position: relative;
  }

  .hero-wholesale-cta::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: var(--border-width) solid var(--color-gilded);
    pointer-events: none;
  }

  .hero-wholesale-cta-text {
    font-family: var(--font-display);
    font-size: 18px;
    font-style: normal;
    letter-spacing: 0.02em;
    white-space: normal;
  }

  .hero-wholesale-cta-icon {
    display: none;
  }

  /* Homepage Categories: Single column stacked */
  .homepage-categories-grid {
    grid-template-columns: 1fr;
    padding: 48px 24px;
    justify-items: center;
  }

  .product-button {
    width: 264px;
    height: 272px;
    aspect-ratio: unset;
    padding: 32px 24px 24px;
    gap: 0px;
    justify-content: flex-start;
  }

  .product-button::after {
    inset: 11px;
  }

  /* Mobile single column: restore left borders removed by desktop 2n rule, remove top borders after first */
  .product-button:nth-child(n+2) {
    border-left: var(--border-width) solid var(--color-blackened);
    border-top: none;
  }

  .product-icon {
    flex: 0 0 auto;
    width: 160px;
    height: 120px;
    min-height: unset;
    margin-bottom: 20px;
    overflow: hidden;
  }

  .product-icon img {
    max-height: 100%;
    object-fit: contain;
  }

  .product-title {
    font-size: 24px;
  }

  .product-button:has(.product-subtitle) {
    height: 310px;
  }

  .product-button:has(.product-subtitle) .product-text {
    margin-top: 0;
  }

  /* Marquee */
  .marquee-content {
    font-size: 24px;
  }

  /* Contact: Hide left column, show only info boxes */
  .contact {
    flex-direction: column;
    align-items: center;
    padding: 48px 36px;
    height: auto;
    background-size: 400%;
  }

  .contact-left {
    display: none;
  }

  .contact-right {
    width: 100%;
    padding: 12px;
    border-left: var(--border-width) solid var(--color-blackened);
    height: auto;
  }

  .contact-info-item {
    padding: 12px 16px;
    height: 48px;
  }

  .contact-info-item a {
    font-size: 18px;
  }

  .contact-phone {
    font-size: 22px;
  }

  .contact-address {
    font-size: 12px;
    line-height: 1.4;
  }

  /* Footer: Reversed order (nav first, illustration last) */
  .site-footer {
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 24px;
  }

  .footer-content {
    order: 1;
  }

  .footer-illustration {
    order: 2;
    height: 126px;
  }

  .footer-nav a {
    font-size: 16px;
    line-height: 3;
  }

  .footer-copyright {
    margin-top: 24px;
    font-size: 10px;
  }

  /* Content Page - Mobile */
  .page-hero {
    padding: 48px 24px;
  }

  .product-search-bar {
    padding: 20px 24px;
  }

  .product-search-bar .search-form {
    max-width: 100%;
  }

  .search-refinement {
    padding: 24px;
  }

  .search-results-section {
    padding: 24px;
  }

  .search-result-card {
    flex-direction: column;
    gap: 16px;
  }

  .search-result-thumbnail {
    width: 100%;
    height: 200px;
  }

  .search-result-title {
    font-size: 18px;
  }

  .search-results-section .nav-links {
    flex-wrap: wrap;
    margin-top: 32px;
  }

  .error-404-section {
    padding: 48px 24px;
  }

  .page-headline {
    font-weight: 400;
    font-size: 48px;
    -webkit-text-stroke: 0.01rem var(--color-blackened);
    letter-spacing: 2px;
  }

  .content-photo--huge {
    height: 300px;
  }

  .content-photo--small {
    height: 250px;
  }

  .content-body-inner .content-photo--full {
    width: calc(100vw - 12px - 48px);
    max-width: calc(100vw - 60px);
    height: 250px;
  }

  .content-body {
    padding: 36px 24px;
  }

  .content-heading,
  .content-body h2,
  .content-body-inner h2 {
    font-size: 20px;
  }

  .content-body h3,
  .content-body-inner h3 {
    font-size: 14px;
  }

  .content-body p,
  .content-body ul,
  .content-body ol,
  .content-body-inner ul,
  .content-body-inner ol {
    font-size: 14px;
  }

  .feature-buttons {
    padding: 24px;
    gap: 16px;
  }

  .feature-btn {
    height: 80px;
    padding: 8px;
  }

  .feature-btn-text {
    font-size: 20px;
    letter-spacing: 1.5px;
  }

  .form-elements {
    padding: 24px;
    gap: 16px;
  }

  .form-row {
    flex-direction: column;
    width: 100%;
  }

  .form-field {
    width: 100%;
    height: 48px;
  }

  .btn-small {
    width: 100%;
    height: 48px;
    font-size: 16px;
  }

  .tab-group {
    flex-wrap: wrap;
    width: 100%;
  }

  .tab {
    flex: 1;
    height: 48px;
    font-size: 10px;
    padding: 0 8px;
    white-space: nowrap;
  }

  /* WordPress content - Mobile */
  .entry-content {
    padding: 24px;
  }

  .wholesale-ordering-page .entry-content {
    padding: 20px 24px 24px;
  }

  /* Distributor notice - Mobile */
  #distributor-notice {
    margin-top: 32px;
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }

  .mobile-menu,
  .site-header,
  .product-button,
  .tab,
  .feature-btn-inner,
  .btn-gilded,
  .btn-outlined,
  .btn-small {
    transition: none;
  }
}

/* =============================================
   NEW CUSTOMERS PAGE
   ============================================= */

.new-customers-page {
  padding: var(--page-padding);
  border: var(--border-width) solid var(--color-blackened);
  border-top: none;
  background: var(--color-cream);
}

.new-customers-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.new-customers-intro {
  text-align: center;
  margin-bottom: 48px;
}

.new-customers-intro .lead-text {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-blackened);
}

.new-customers-steps {
  margin-bottom: 48px;
}

.new-customers-steps h2 {
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blackened);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: var(--border-width) solid var(--color-blackened);
}

.new-customers-steps .step {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.new-customers-steps .step:last-child {
  margin-bottom: 0;
}

.new-customers-steps .step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--color-cream);
  background: var(--color-gilded);
  border-radius: 50%;
}

.new-customers-steps .step-content h3 {
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blackened);
  margin: 0 0 8px 0;
}

.new-customers-steps .step-content p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-blackened);
  margin: 0;
}

.new-customers-steps .step-content a {
  color: var(--color-gilded);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.new-customers-steps .step-content a:hover {
  color: var(--color-blackened);
}

.new-customers-cta {
  text-align: center;
  padding-top: 32px;
  border-top: var(--border-width) solid var(--color-blackened);
}

.new-customers-cta .btn-primary {
  display: inline-block;
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-cream);
  background: var(--color-gilded);
  border: var(--border-width) solid var(--color-gilded);
  padding: 16px 40px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.new-customers-cta .btn-primary:hover {
  background: var(--color-blackened);
  border-color: var(--color-blackened);
}

.new-customers-cta .already-have-account {
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-blackened);
}

.new-customers-cta .already-have-account a {
  color: var(--color-gilded);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.new-customers-cta .already-have-account a:hover {
  color: var(--color-blackened);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .new-customers-intro .lead-text {
    font-size: 16px;
  }

  .new-customers-steps .step {
    flex-direction: column;
    gap: 16px;
  }

  .new-customers-steps .step-number {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

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

.hide-me {
  display: none !important;
}

/* ========================================
   QUICK VIEW (Catalog View)
   ======================================== */

.quick-view-container {
  text-align: center;
  padding: 4px 0;
  width: 100%;
  flex-shrink: 0;
}

.quick-view-container .quick-view {
  cursor: pointer;
  color: var(--color-gilded);
  font-family: var(--font-nav);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.quick-view-container .quick-view:hover {
  color: var(--color-blackened);
}

/* jQuery UI Dialog overrides for Quick View */
.quick-view-dialog.ui-dialog {
  border: var(--border-width) solid var(--color-blackened);
  border-radius: 0;
  padding: 0;
  display:flex;
  flex-direction:column;
}

.quick-view-dialog.ui-dialog .ui-button {
    box-shadow: none !important;
}

.quick-view-dialog.ui-dialog .ui-dialog-buttonpane {
  background: var(--color-cream);
  color: var(--color-blackened);
  border-width: 0px;
  margin-top: 0;
}

.quick-view-dialog .ui-dialog-titlebar {
  background: var(--color-cream);
  color: var(--color-blackened);
  border: none;
  border-radius: 0;
  font-family: var(--font-nav);
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 12px 16px;
}

.quick-view-dialog .ui-dialog-titlebar-close {
  background: transparent;
  border: none;
  color: var(--color-blackened);
}

.quick-view-dialog .ui-dialog-content {
  padding: 0 !important;
  background: var(--color-cream);
}
