/* ============================================================
   Amp & Ohm Shop / Product Archive
   ============================================================ */

:root {
  --shop-bg: #E3F1E4;
  --shop-surface: #FFFFFF;
  --shop-surface-soft: #EAF3E4;
  --shop-surface-muted: #EAF3E4;
  --shop-text: #1B2F26;
  --shop-heading: #24392F;
  --shop-muted: #556B5D;
  --shop-soft-text: #556B5D;
  --shop-border: #D2E3CB;
  --shop-accent: #2F7D4F;
  --shop-accent-dark: #24392F;
  --shop-blush: #2F7D4F;
  --shop-sale: #B42318;
  --shop-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shop-heading-font: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
  --shop-container: 1280px;
  --shop-pad: 16px;
}

.shop-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, var(--shop-bg) 0, #FFFFFF 260px),
    var(--shop-surface);
  color: var(--shop-text);
  font-family: var(--shop-font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.shop-container {
  width: min(100%, var(--shop-container));
  margin: 0 auto;
  padding: 18px var(--shop-pad) 56px;
}

@media (min-width: 1024px) {
  .shop-container {
    --shop-pad: 24px;
    padding-top: 24px;
    padding-bottom: 72px;
  }
}

.shop-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  color: var(--shop-soft-text);
  font-size: 0.8125rem;
  font-weight: 600;
}

.shop-breadcrumb a {
  color: var(--shop-soft-text);
  text-decoration: none;
  transition: color 180ms ease;
}

.shop-breadcrumb a:hover {
  color: var(--shop-heading);
}

.shop-breadcrumb span[aria-hidden="true"] {
  color: var(--shop-accent);
}

.shop-header {
  position: relative;
  margin: 0 0 18px;
  padding: 28px 22px;
  overflow: hidden;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 125, 79, 0.22), transparent 34%),
    linear-gradient(135deg, #FFFFFF 0%, var(--shop-bg) 52%, var(--shop-surface-muted) 100%);
}

.shop-header::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 0;
  width: 180px;
  height: 5px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--shop-accent), var(--shop-blush));
  opacity: 0.75;
}

.shop-header__content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.shop-header__eyebrow {
  margin: 0 0 12px;
  color: var(--shop-accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shop-header__title {
  margin: 0;
  color: var(--shop-heading);
  font-family: var(--shop-heading-font);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.shop-header__description {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--shop-muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  font-weight: 600;
  line-height: 1.75;
}

.shop-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.shop-header__meta span,
.shop-header__meta a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.shop-header__meta span {
  border: 1px solid rgba(47, 125, 79, 0.35);
  background: rgba(255, 255, 255, 0.68);
  color: var(--shop-heading);
}

.shop-header__meta a {
  background: var(--shop-heading);
  color: #FFFFFF;
  transition: background 180ms ease, transform 120ms ease;
}

.shop-header__meta a:hover {
  background: var(--shop-accent);
}

.shop-header__meta a:active {
  transform: scale(0.98);
}

.shop-category-nav {
  display: flex;
  gap: 10px;
  margin: 0 0 20px;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(27, 47, 38, 0.05);
  scrollbar-width: thin;
}

.shop-category-nav a {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--shop-border);
  border-radius: 999px;
  background: var(--shop-surface);
  color: var(--shop-heading);
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.shop-category-nav a:hover,
.shop-category-nav a.is-current {
  border-color: var(--shop-accent);
  background: var(--shop-heading);
  color: #FFFFFF;
}

.shop-category-nav .count {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--shop-bg);
  color: var(--shop-accent-dark);
  font-size: 0.74rem;
  font-weight: 900;
}

.shop-category-nav a.is-current .count,
.shop-category-nav a:hover .count {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 24px;
  padding: 12px;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(27, 47, 38, 0.06);
}

.shop-toolbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-toolbar__count {
  color: var(--shop-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.shop-filter-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--shop-border);
  border-radius: 999px;
  background: var(--shop-surface);
  color: var(--shop-heading);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.shop-filter-btn:hover,
.shop-filter-btn:focus-visible {
  border-color: var(--shop-accent);
  background: var(--shop-surface-soft);
  color: var(--shop-accent-dark);
}

@media (min-width: 1024px) {
  .shop-filter-btn {
    display: none;
  }
}

.woocommerce-ordering {
  float: none;
  margin: 0;
}

.woocommerce-ordering select,
.shop-sort select {
  min-height: 42px;
  max-width: 100%;
  padding: 0 40px 0 14px;
  border: 1px solid var(--shop-border);
  border-radius: 999px;
  background-color: var(--shop-surface);
  color: var(--shop-heading);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.woocommerce-ordering select:focus,
.shop-sort select:focus {
  border-color: var(--shop-accent);
  box-shadow: 0 0 0 3px rgba(47, 125, 79, 0.18);
}

.shop-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 1024px) {
  .shop-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 30px;
  }
}

.shop-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  visibility: hidden;
  background: rgba(27, 47, 38, 0.44);
  opacity: 0;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.shop-sidebar-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.shop-sidebar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  max-height: 86vh;
  padding: 18px 16px 28px;
  overflow-y: auto;
  border-radius: 8px 8px 0 0;
  background: var(--shop-surface);
  box-shadow: 0 -20px 50px rgba(27, 47, 38, 0.2);
  transform: translateY(100%);
  transition: transform 240ms ease;
}

.shop-sidebar.is-open {
  transform: translateY(0);
}

.shop-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--shop-border);
}

.shop-sidebar__mobile-title {
  margin: 0;
  color: var(--shop-heading);
  font-size: 1rem;
  font-weight: 800;
}

.shop-sidebar__close {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--shop-border);
  border-radius: 999px;
  background: var(--shop-bg);
  color: var(--shop-heading);
  cursor: pointer;
}

.shop-sidebar__close:hover {
  background: var(--shop-surface-soft);
}

@media (min-width: 1024px) {
  .shop-sidebar-overlay {
    display: none;
  }

  .shop-sidebar {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 112px);
    padding: 18px;
    border: 1px solid var(--shop-border);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(27, 47, 38, 0.06);
    transform: none;
  }

  .shop-sidebar__header {
    display: none;
  }
}

.shop-sidebar__widget,
.widget_product_categories,
.widget_price_filter,
.woocommerce-widget-layered-nav {
  margin: 0 0 24px;
}

.shop-sidebar__widget:last-child,
.shop-sidebar .widget:last-child {
  margin-bottom: 0;
}

.shop-sidebar__title,
.shop-sidebar .widgettitle {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--shop-border);
  color: var(--shop-heading);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-sidebar__categories,
.widget_product_categories ul,
.woocommerce-widget-layered-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-sidebar__categories li,
.widget_product_categories li,
.woocommerce-widget-layered-nav-list__item {
  margin: 0;
}

.shop-sidebar__categories a,
.widget_product_categories a,
.woocommerce-widget-layered-nav-list__item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--shop-muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.shop-sidebar__categories a:hover,
.shop-sidebar__categories a[aria-current="page"],
.widget_product_categories a:hover,
.woocommerce-widget-layered-nav-list__item a:hover,
.woocommerce-widget-layered-nav-list__item--chosen a {
  background: var(--shop-bg);
  color: var(--shop-heading);
}

.shop-sidebar__categories .count,
.widget_product_categories .count,
.woocommerce-widget-layered-nav-list__item .count {
  color: var(--shop-soft-text);
  font-size: 0.78rem;
  font-weight: 800;
}

.widget_price_filter .price_slider_wrapper {
  padding-top: 8px;
}

.widget_price_filter .ui-slider-horizontal {
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: var(--shop-border);
}

.widget_price_filter .ui-slider-range,
.widget_price_filter .ui-slider-handle {
  background: var(--shop-accent);
}

.widget_price_filter .ui-slider-handle {
  top: -6px;
  width: 17px;
  height: 17px;
  border: 3px solid var(--shop-surface);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(27, 47, 38, 0.2);
}

.widget_price_filter .price_label {
  margin-top: 12px;
  color: var(--shop-muted);
  font-size: 0.875rem;
  font-weight: 700;
}

.widget_price_filter .button,
.shop-sidebar .button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--shop-heading);
  color: #FFFFFF;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 180ms ease;
}

.widget_price_filter .button:hover,
.shop-sidebar .button:hover {
  background: var(--shop-accent);
}

.shop-main {
  min-width: 0;
  width: 100%;
}

.shop-main ul.products,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .shop-main ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1180px) {
  .shop-main ul.products,
  .woocommerce ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
  }
}

.woocommerce ul.products li.product,
ul.products li.product,
.product-card {
  float: none;
  width: auto;
  margin: 0;
}

.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  background: var(--shop-surface);
  box-shadow: 0 8px 24px rgba(27, 47, 38, 0.05);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card:hover {
  border-color: rgba(47, 125, 79, 0.55);
  box-shadow: 0 18px 38px rgba(27, 47, 38, 0.12);
  transform: translateY(-3px);
}

.product-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.product-card__shell,
.product-card__inner {
  position: relative;
  overflow: hidden;
}

.product-card__shell {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, rgba(227, 241, 228, 0.72), rgba(248, 242, 238, 0.9)),
    var(--shop-surface-muted);
}

.product-card__inner,
.product-card__img-wrap {
  width: 100%;
  height: 100%;
}

.product-card__img,
.woocommerce ul.products li.product a img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform 420ms ease;
}

.product-card:hover .product-card__img {
  transform: scale(1.035);
}

.product-card__badge,
.onsale {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--shop-sale);
  box-shadow: 0 8px 18px rgba(27, 47, 38, 0.12);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.2;
}

.product-card__cta {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(27, 47, 38, 0.9);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

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

.product-card__meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 13px;
}

@media (min-width: 768px) {
  .product-card__meta {
    padding: 15px;
  }
}

.product-card__info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.product-card__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--shop-heading);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.product-card__cat {
  color: var(--shop-soft-text);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin-top: auto;
  color: var(--shop-heading);
  font-size: 1rem;
  font-weight: 900;
}

.product-card__price ins {
  color: var(--shop-sale);
  text-decoration: none;
}

.product-card__price del {
  color: var(--shop-soft-text);
  font-size: 0.86rem;
  font-weight: 700;
}

.product-card__price .woocommerce-Price-amount {
  color: inherit;
  font-weight: inherit;
}

.product-card__rating .star-rating,
.star-rating {
  color: var(--shop-accent);
}

.woocommerce ul.products li.product .button,
.add_to_cart_button {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--shop-heading);
  color: #FFFFFF;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 120ms ease;
}

.woocommerce ul.products li.product .button:hover,
.add_to_cart_button:hover {
  background: var(--shop-accent);
  color: #FFFFFF;
}

.woocommerce ul.products li.product .button:active,
.add_to_cart_button:active {
  transform: scale(0.98);
}

.shop-pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--shop-border);
}

.woocommerce-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--shop-border);
  border-radius: 999px;
  background: var(--shop-surface);
  color: var(--shop-heading);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.woocommerce-pagination .page-numbers li a:hover {
  border-color: var(--shop-accent);
  background: var(--shop-bg);
}

.woocommerce-pagination .page-numbers li span.current {
  border-color: var(--shop-heading);
  background: var(--shop-heading);
  color: #FFFFFF;
}

.shop-empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 70px 18px;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  background: var(--shop-bg);
  text-align: center;
}

.shop-empty p {
  margin: 0;
  color: var(--shop-muted);
  font-size: 1rem;
  font-weight: 700;
}

.shop-empty a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--shop-accent);
  color: #FFFFFF;
  font-weight: 800;
  text-decoration: none;
}

.shop-empty a:hover {
  background: var(--shop-heading);
}

@media (max-width: 480px) {
  .shop-toolbar {
    align-items: stretch;
  }

  .woocommerce-ordering,
  .woocommerce-ordering select {
    width: 100%;
  }

  .product-card__cta {
    display: none;
  }

  .product-card__meta {
    padding: 11px;
  }

  .product-card__title {
    font-size: 0.875rem;
  }
}

/* ============================================================
   Shop polish overrides
   Scoped selectors keep WooCommerce and Tailwind resets from
   flattening the archive layout.
   ============================================================ */

.shop-page {
  --shop-bg: #EAF3E4;
  --shop-surface-soft: #F6FAF3;
  --shop-surface-muted: #EAF3E4;
  --shop-ring: rgba(47, 125, 79, 0.18);
  --shop-shadow-sm: 0 10px 28px rgba(27, 47, 38, 0.06);
  --shop-shadow-md: 0 20px 48px rgba(27, 47, 38, 0.09);
  background:
    linear-gradient(180deg, #E3F1E4 0, #F6FAF3 360px, #FFFFFF 100%),
    #FFFFFF;
}

.shop-page *,
.shop-page *::before,
.shop-page *::after {
  box-sizing: border-box;
}

.shop-page .shop-container {
  width: min(100%, 1264px);
  padding: clamp(20px, 2.2vw, 30px) clamp(16px, 3vw, 28px) 72px;
}

.shop-page .shop-breadcrumb {
  margin-bottom: 20px;
  font-size: 0.82rem;
  line-height: 1.2;
}

.shop-page .shop-header {
  min-height: 0;
  margin-bottom: 16px;
  padding: clamp(26px, 4vw, 46px);
  border-color: rgba(47, 125, 79, 0.22);
  background:
    radial-gradient(circle at 92% 12%, rgba(47, 125, 79, 0.24), transparent 28%),
    radial-gradient(circle at 8% 18%, rgba(47, 125, 79, 0.18), transparent 30%),
    linear-gradient(135deg, #FFFFFF 0%, #E3F1E4 54%, #EAF3E4 100%);
  box-shadow: var(--shop-shadow-sm);
}

.shop-page .shop-header::after {
  right: clamp(22px, 3vw, 38px);
  width: min(180px, 30%);
  height: 4px;
}

.shop-page .shop-header__content {
  max-width: 880px;
}

.shop-page .shop-header__eyebrow {
  margin-bottom: 10px;
  color: #1F5E3A;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.shop-page .shop-header__title {
  max-width: 780px;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 0.98;
}

.shop-page .shop-header__description {
  max-width: 760px;
  margin-top: 16px;
  color: #3F5A4B;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  font-weight: 550;
  line-height: 1.65;
}

.shop-page .shop-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.shop-page .shop-header__meta span,
.shop-page .shop-header__meta a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.shop-page .shop-header__meta span {
  border: 1px solid rgba(47, 125, 79, 0.35);
  background: rgba(255, 255, 255, 0.72);
  color: var(--shop-heading);
}

.shop-page .shop-header__meta a {
  background: var(--shop-heading);
  color: #FFFFFF;
  box-shadow: 0 10px 20px rgba(36, 57, 47, 0.14);
}

.shop-page .shop-header__meta a:hover {
  background: #1F5E3A;
}

.shop-page .shop-category-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 12px;
  overflow: visible;
  border: 1px solid rgba(210, 227, 203, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shop-shadow-sm);
}

.shop-page .shop-category-nav a {
  display: inline-flex;
  min-height: 38px;
  max-width: 100%;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--shop-border);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--shop-heading);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.shop-page .shop-category-nav a:hover,
.shop-page .shop-category-nav a.is-current {
  border-color: #1F5E3A;
  background: #24392F;
  color: #FFFFFF;
}

.shop-page .shop-category-nav .count {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #E3F1E4;
  color: #1F5E3A;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.shop-page .shop-category-nav a:hover .count,
.shop-page .shop-category-nav a.is-current .count {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.shop-page .shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 24px;
  padding: 12px;
  border: 1px solid rgba(210, 227, 203, 0.95);
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: var(--shop-shadow-md);
}

.shop-page .shop-toolbar__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.shop-page .shop-toolbar__count {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #EAF3E4;
  color: var(--shop-heading);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1;
}

.shop-page .woocommerce-ordering {
  float: none;
  margin: 0;
}

.shop-page .woocommerce-ordering select {
  width: min(100%, 248px);
  min-height: 42px;
  border-radius: 999px;
  background-color: #FFFFFF;
}

.shop-page .woocommerce-ordering select:focus {
  border-color: #2F7D4F;
  box-shadow: 0 0 0 4px var(--shop-ring);
}

.shop-page .shop-layout {
  display: grid;
  gap: clamp(18px, 2.6vw, 32px);
  align-items: start;
}

@media (min-width: 1024px) {
  .shop-page .shop-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

.shop-page .shop-sidebar {
  background: #FFFFFF;
}

@media (min-width: 1024px) {
  .shop-page .shop-sidebar {
    top: 104px;
    padding: 18px;
    border-color: rgba(210, 227, 203, 0.95);
    box-shadow: var(--shop-shadow-sm);
  }
}

.shop-page .shop-sidebar__title,
.shop-page .shop-sidebar .widgettitle {
  margin-bottom: 14px;
  padding-bottom: 12px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.shop-page .shop-sidebar__categories {
  display: grid;
  gap: 4px;
}

.shop-page .shop-sidebar__categories a,
.shop-page .widget_product_categories a,
.shop-page .woocommerce-widget-layered-nav-list__item a {
  min-height: 42px;
  padding: 9px 10px;
  color: #556B5D;
  line-height: 1.35;
}

.shop-page .shop-sidebar__categories a:hover,
.shop-page .shop-sidebar__categories a[aria-current="page"],
.shop-page .widget_product_categories a:hover,
.shop-page .woocommerce-widget-layered-nav-list__item a:hover,
.shop-page .woocommerce-widget-layered-nav-list__item--chosen a {
  background: #E3F1E4;
  color: #24392F;
}

.shop-page .shop-main ul.products,
.shop-page.woocommerce ul.products,
.shop-page .woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
}

@media (min-width: 760px) {
  .shop-page .shop-main ul.products,
  .shop-page.woocommerce ul.products,
  .shop-page .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .shop-page .shop-main ul.products,
  .shop-page.woocommerce ul.products,
  .shop-page .woocommerce ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.shop-page .woocommerce ul.products li.product,
.shop-page ul.products li.product,
.shop-page .product-card {
  float: none;
  width: auto;
  margin: 0;
}

.shop-page .product-card {
  border-color: rgba(210, 227, 203, 0.95);
  background: #FFFFFF;
  box-shadow: var(--shop-shadow-sm);
}

.shop-page .product-card:hover {
  border-color: rgba(47, 125, 79, 0.6);
  box-shadow: 0 22px 46px rgba(27, 47, 38, 0.13);
}

.shop-page .product-card__shell {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.78), transparent 34%),
    linear-gradient(135deg, #EAF3E4 0%, #F6FAF3 48%, #E3F1E4 100%);
}

.shop-page .product-card__img,
.shop-page .woocommerce ul.products li.product a img {
  object-fit: cover;
}

.shop-page .product-card__meta {
  gap: 12px;
  padding: 16px;
  border-top: 1px solid rgba(210, 227, 203, 0.8);
}

.shop-page .product-card__title {
  font-size: 0.96rem;
  line-height: 1.35;
}

.shop-page .product-card__cat {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
}

.shop-page .product-card__price {
  font-size: 1.02rem;
}

@media (max-width: 640px) {
  .shop-page .shop-container {
    padding-bottom: 48px;
  }

  .shop-page .shop-header {
    padding: 24px 18px;
  }

  .shop-page .shop-header__meta,
  .shop-page .shop-toolbar,
  .shop-page .shop-toolbar__left {
    align-items: stretch;
  }

  .shop-page .shop-header__meta span,
  .shop-page .shop-header__meta a,
  .shop-page .shop-toolbar__count,
  .shop-page .shop-filter-btn,
  .shop-page .woocommerce-ordering,
  .shop-page .woocommerce-ordering select {
    width: 100%;
  }

  .shop-page .shop-category-nav {
    flex-wrap: nowrap;
    margin-inline: calc(clamp(16px, 3vw, 28px) * -1);
    padding-inline: clamp(16px, 3vw, 28px);
    overflow-x: auto;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}


/* ============================================================
   Trail-guide shop layout (UrbanFlexWear)
   Photo banner with a ridge edge, sticky "trail legend" rail on
   the left, 3-column grid of luggage-tag product cards.
   ============================================================ */

.cr-shop {
  background: var(--color-background);
}

.cr-shop__head {
  padding-bottom: 5.5rem;
  background: #14432b;
}

.cr-shop__head-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.25rem 1rem 0;
}

.cr-shop__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

.cr-shop__crumbs a {
  color: #fff;
  text-decoration: none;
}

.cr-shop__crumbs a:hover {
  text-decoration: underline;
}

.cr-shop__eyebrow {
  margin: 1.4rem 0 0;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e8c98f;
}

.cr-shop__title {
  margin: 0.3rem 0 0;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
}

.cr-shop__desc {
  max-width: 34rem;
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.cr-shop__count {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.7rem 1.1rem;
  border: 1.5px dashed rgba(232, 201, 143, 0.7);
  border-radius: 999px;
  background: rgba(15, 42, 29, 0.45);
  backdrop-filter: blur(6px);
}

.cr-shop__count-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #e8c98f;
}

.cr-shop__count-label {
  max-width: 6rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

@media (min-width: 768px) {
  .cr-shop__count {
    display: inline-flex;
  }
}

/* Layout: rail + grid */
.cr-shop__layout {
  display: grid;
  gap: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.5rem 1rem 4rem;
}

@media (min-width: 1024px) {
  .cr-shop__layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
    padding-top: 1.5rem;
  }
}

.cr-shop__main {
  min-width: 0;
}

/* Trail legend rail */
.cr-legend {
  padding: 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: 1.25rem;
  background: #fff;
}

@media (min-width: 1024px) {
  .cr-legend {
    position: sticky;
    top: 112px;
    padding: 1.4rem 1.25rem;
    background-image:
      radial-gradient(circle at 100% 0, rgba(47, 125, 79, 0.08), transparent 55%);
  }
}

.cr-legend__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
}

.cr-legend__list {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.cr-legend__list::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .cr-legend__list {
    position: relative;
    flex-direction: column;
    gap: 0.15rem;
    overflow: visible;
    padding-left: 1.1rem;
  }

  /* dotted trail running down the legend */
  .cr-legend__list::before {
    content: "";
    position: absolute;
    top: 0.9rem;
    bottom: 0.9rem;
    left: 0.28rem;
    border-left: 2px dotted var(--color-accent);
    opacity: 0.55;
  }
}

.cr-leg {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.95rem;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-foreground);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.cr-leg:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
}

.cr-leg.is-current {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}

.cr-leg__count {
  display: inline-flex;
  min-width: 1.4rem;
  height: 1.4rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--color-accent-soft);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-accent-hover);
}

.cr-leg.is-current .cr-leg__count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

@media (min-width: 1024px) {
  .cr-leg {
    padding: 0.55rem 0.6rem 0.55rem 0.9rem;
    border: 0;
    border-radius: 0.75rem;
    font-size: 1.05rem;
  }

  .cr-leg::before {
    content: "";
    position: absolute;
    left: -1.1rem;
    top: 50%;
    width: 0.62rem;
    height: 0.62rem;
    margin-top: -0.31rem;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    background: #fff;
    transition: background 180ms ease, transform 180ms ease;
  }

  .cr-leg:hover {
    background: var(--color-accent-soft);
    transform: translateX(3px);
  }

  .cr-leg.is-current::before {
    background: var(--color-accent);
    transform: scale(1.35);
    box-shadow: 0 0 0 4px rgba(47, 125, 79, 0.18);
  }

  .cr-leg.is-current:hover {
    background: var(--color-accent);
  }
}

.cr-sort {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--color-border);
}

@media (min-width: 1024px) {
  .cr-sort {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
  }
}

.cr-sort__label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted, #556b5d);
}

.cr-sort .woocommerce-ordering {
  flex: 1 1 auto;
  margin: 0;
}

.cr-sort select {
  width: 100%;
  min-height: 2.6rem;
  padding: 0 2.2rem 0 0.9rem;
  border: 1.5px solid var(--color-border);
  border-radius: 0.75rem;
  background-color: #fff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-foreground);
}

/* Grid */
.cr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .cr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
  }
}

@media (min-width: 1280px) {
  .cr-grid--home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

.cr-card__link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1.5px solid var(--color-border);
  border-radius: 1.1rem;
  background: #fff;
  color: var(--color-foreground);
  text-decoration: none;
  transition: transform 260ms cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 260ms ease, border-color 200ms ease;
}

.cr-card__link:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 20px 38px rgba(27, 47, 38, 0.16);
}

.cr-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-accent-soft);
}

.cr-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.cr-card__link:hover .cr-card__img {
  transform: scale(1.06);
}

/* Luggage tag hanging off the top-right corner */
.cr-card__tag {
  position: absolute;
  top: 0;
  right: 0.75rem;
  z-index: 2;
  padding: 1.35rem 0.7rem 0.55rem;
  background: #e8c98f;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 50% 100%, 0 84%);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-align: center;
  color: #1b2f26;
  transform-origin: 50% 0;
  animation: tag-swing 5s ease-in-out infinite;
}

.cr-card__tag::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: -0.25rem;
  border-radius: 50%;
  background: rgba(27, 47, 38, 0.55);
}

.cr-card__tag del {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.6;
}

.cr-card__tag ins {
  text-decoration: none;
}

.cr-card__tag .woocommerce-Price-amount {
  white-space: nowrap;
}

.cr-card:nth-child(2n) .cr-card__tag { animation-delay: -1.7s; }
.cr-card:nth-child(3n) .cr-card__tag { animation-delay: -3.2s; }

.cr-card__link:hover .cr-card__tag {
  animation-duration: 1.6s;
}

.cr-card__sale {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #1b2f26;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.cr-card__body {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 1rem 1.1rem;
}

.cr-card__cat {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.cr-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.cr-card__link:hover .cr-card__title {
  color: var(--color-accent-hover);
}

.cr-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.3rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
}

.cr-card__cta svg {
  transition: transform 220ms ease;
}

.cr-card__link:hover .cr-card__cta svg {
  transform: translateX(5px);
}

@keyframes tag-swing {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

/* Pagination */
.cr-pagination {
  margin-top: 2.5rem;
}

.cr-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cr-pagination .page-numbers li a,
.cr-pagination .page-numbers li span {
  display: inline-flex;
  min-width: 2.7rem;
  height: 2.7rem;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-border);
  border-radius: 0.75rem;
  background: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-foreground);
  text-decoration: none;
}

.cr-pagination .page-numbers li .current {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}

.cr-empty {
  padding: 3rem 1.5rem;
  border: 2px dashed var(--color-border);
  border-radius: 1.25rem;
  text-align: center;
}

.cr-empty p {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cr-empty a {
  font-weight: 700;
  color: var(--color-accent-hover);
}

@media (prefers-reduced-motion: reduce) {
  .cr-card__link,
  .cr-card__img,
  .cr-leg {
    transition: none;
  }

  .cr-card__tag {
    animation: none;
  }
}

.cr-grid--home {
  margin-top: 2.5rem;
}

.cr-shop__layout > * {
  min-width: 0;
}
