/* SHETECK WooCommerce archive styles */
/* ============================================================
   PAGE — SHOP ARCHIVE
   ============================================================ */
.shop-hero {
  position: relative;
  padding: 64px 0 32px;
  isolation: isolate;
  overflow: hidden;
}
.shop-hero .leaf.lh1 { position: absolute; top: 24px; right: 6%; width: 180px; height: 220px; rotate: 22deg; opacity: .9; }
.shop-hero .leaf.lh2 { position: absolute; bottom: -40px; left: -20px; width: 200px; height: 280px; rotate: -16deg; opacity: .85; }
.shop-hero .leaf.lh3 { position: absolute; top: 40px; left: 28%; width: 80px; height: 100px; rotate: 140deg; opacity: .75; }

.crumb {
  font-family: var(--display);
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 36px;
}
.crumb .now { color: var(--ink); font-weight: 500; }
.crumb a:hover { color: var(--accent); }

.shop-title-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: end;
}
.shop-title-row .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(72px, 9vw, 128px);
  line-height: .9;
  letter-spacing: -.05em;
}
.shop-title-row .num .dot { color: var(--accent); }
.shop-title-row h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 88px);
  line-height: .92;
  letter-spacing: -.04em;
  margin: 0;
}
.shop-title-row h1 i { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--ink-3); }
.shop-title-row .desc {
  max-width: 30ch;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

.shop-meta {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding: 22px 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.shop-meta b { color: var(--ink); font-weight: 700; }

/* ============================================================
   FILTER + GRID LAYOUT
   ============================================================ */
.shop-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 40px 0 80px;
  position: relative;
}

.filters {
  position: sticky;
  top: 100px;
  align-self: start;
  font-family: var(--display);
}
.filters h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--ink);
}
.filter-group {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.filter-group:first-of-type { padding-top: 0; }
.filter-group ul li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.filter-group ul li:hover { color: var(--ink); }
.filter-group ul li.is-active { color: var(--ink); font-weight: 600; }
.filter-group ul li.is-active::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terra); margin-left: 8px; }
.filter-group ul li .ct { color: var(--ink-3); font-size: 12px; }
.filter-group ul li.is-active .ct { color: var(--ink-3); font-weight: 400; }

.filter-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.f-color {
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease);
  position: relative;
}
.f-color:hover { transform: scale(1.12); }
.f-color.is-active::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.f-color[data-color="ink"]   { background: var(--ink); }
.f-color[data-color="paper"] { background: var(--paper-3); }
.f-color[data-color="sky"]   { background: var(--sky); }
.f-color[data-color="butter"]{ background: var(--butter); }
.f-color[data-color="terra"] { background: var(--terra); }
.f-color[data-color="sage"]  { background: var(--leaf-2); }

.filter-sizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.f-size {
  aspect-ratio: 1/1;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.f-size:hover { background: var(--paper-2); }
.f-size.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.f-size.disabled { opacity: .35; cursor: not-allowed; position: relative; }
.f-size.disabled::after {
  content: ""; position: absolute;
  left: 6px; right: 6px; top: 50%;
  height: 1px; background: var(--ink-3);
  transform: rotate(-15deg);
}

.range-track { position: relative; height: 32px; margin: 4px 0; }
.range-track .rail {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--line);
  transform: translateY(-50%);
}
.range-track .fill {
  position: absolute; top: 50%; height: 2px;
  background: var(--ink);
  transform: translateY(-50%);
}
.range-track input[type="range"] {
  position: absolute;
  left: 0; right: 0; top: 0;
  width: 100%; height: 30px;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none; appearance: none;
}
.range-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  pointer-events: auto;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--paper);
  cursor: grab;
}
.range-track input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--paper);
  cursor: grab;
}
.range-vals {
  display: flex; justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 4px;
}
.range-vals small { color: var(--ink-3); margin-right: 4px; }

.btn-clear {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn-clear:hover { color: var(--accent); border-color: var(--terra); }

/* ============================================================
   GRID
   ============================================================ */
.grid-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.results-count {
  font-family: var(--display);
  font-size: 13px; color: var(--ink-3);
}
.results-count strong { color: var(--ink); font-weight: 700; }
.toolbar-right { display: flex; align-items: center; gap: 12px; }

.dropdown { position: relative; }
.btn-sort {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn-sort:hover { background: var(--ink); color: var(--paper); }
.btn-sort .lbl { color: var(--ink-3); }
.btn-sort:hover .lbl { color: var(--paper); opacity: .7; }
.btn-sort svg { width: 9px; height: 9px; transition: transform var(--dur) var(--ease); }
.btn-sort.is-open svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 200px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 6px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  z-index: 40;
  box-shadow: 0 16px 40px -20px rgba(20,19,15,.2);
}
.dropdown-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dropdown-menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 9px 12px;
  font-size: 13px;
  font-family: var(--display);
  color: var(--ink-2);
  text-align: left;
  transition: background var(--dur) var(--ease);
}
.dropdown-menu button:hover { background: var(--paper-2); color: var(--ink); }
.dropdown-menu button.is-active { color: var(--ink); font-weight: 600; }

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 18px;
}
.pcard { position: relative; transition: opacity var(--dur) var(--ease); }
.pcard.is-hidden { display: none; }

.pcard-media {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--paper-2);
  overflow: hidden;
}
.pcard-media .img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.2s var(--ease);
}
.pcard:hover .pcard-media .img { transform: scale(1.05); }
.pcard-tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--display);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em;
  background: var(--ink); color: var(--paper);
  padding: 5px 9px;
  z-index: 2;
}
.pcard-tag.hot { background: var(--terra); }
.pcard-tag.new { background: var(--butter); color: var(--ink); }

.pcard-fav {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: color var(--dur) var(--ease);
}
.pcard-fav:hover { color: var(--accent); }
.pcard-fav.is-fav { color: var(--accent); }
.pcard-fav.is-fav svg { fill: currentColor; }
.pcard-fav svg { width: 13px; height: 13px; }

.pcard-quick {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  padding: 11px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
  z-index: 3;
  cursor: pointer;
}
.pcard:hover .pcard-quick { opacity: 1; transform: translateY(0); }
.pcard-quick:hover { background: var(--terra); }
.pcard-quick svg { width: 11px; height: 11px; }
.pcard-quick.added { background: var(--terra); }

.pcard-info {
  display: flex; justify-content: space-between; align-items: start;
  gap: 14px;
  margin-top: 14px;
}
.pcard-cat {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.pcard-name {
  font-family: var(--display);
  font-size: 16px; font-weight: 500;
  margin: 0;
}
.pcard-price {
  font-family: var(--display);
  font-size: 15px; font-weight: 700;
  white-space: nowrap;
}
.pcard-price s { color: var(--ink-3); margin-right: 6px; font-weight: 400; }

/* PROMOTIONAL color tile inside the grid */
.promo-tile {
  position: relative;
  aspect-ratio: 4/5;
  padding: 22px 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--sky);
  overflow: hidden;
}
.promo-tile .leaf {
  position: absolute;
  bottom: -10px; right: -20px;
  width: 130px; height: 180px;
  rotate: -16deg;
  z-index: 0;
}
.promo-tile h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0;
  position: relative; z-index: 1;
  max-width: 8ch;
}
.promo-tile p {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
  position: relative; z-index: 1;
}
.promo-tile .promo-foot {
  display: flex; justify-content: space-between; align-items: end;
  position: relative; z-index: 1;
}
.promo-tile .arrow {
  width: 38px; height: 38px;
  background: var(--ink);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--paper);
  transition: transform var(--dur) var(--ease-spring);
}
.promo-tile:hover .arrow { transform: translate(4px, -4px) rotate(-8deg); }
.promo-tile .arrow svg { width: 13px; height: 13px; }
.promo-tile.butter { background: var(--butter); }
.promo-tile.rose { background: var(--rose); }

/* PAGINATION */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 18px;
  margin-top: 56px;
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink-3);
}
.page-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500;
  color: var(--ink);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.page-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page-btn.is-current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page-btn.dim { opacity: .4; cursor: not-allowed; }
.page-btn.dim:hover { background: transparent; color: var(--ink); border-color: var(--line); }
.page-btn svg { width: 12px; height: 12px; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .shop-body { grid-template-columns: 1fr; gap: 0; }
  .filters {
    position: relative; top: 0;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
  }
  .products { grid-template-columns: repeat(2, 1fr); }
  .shop-title-row { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  .products { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
}

/* WordPress/WooCommerce template compatibility */
.woocommerce-shop #main-content,
.tax-product_cat #main-content,
.tax-product_tag #main-content,
.post-type-archive-product #main-content {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 90px;
  direction: ltr;
}

.woocommerce-shop .breadcrumb,
.tax-product_cat .breadcrumb,
.tax-product_tag .breadcrumb,
.post-type-archive-product .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 40px 0 24px;
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink-3);
}

.woocommerce-shop .breadcrumb .current,
.tax-product_cat .breadcrumb .current,
.tax-product_tag .breadcrumb .current,
.post-type-archive-product .breadcrumb .current {
  color: var(--ink);
}

.shop-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 0 30px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.shop-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(46px, 6vw, 86px);
  line-height: .92;
  letter-spacing: -.04em;
}

.shop-desc {
  max-width: 34ch;
  color: var(--ink-2);
  line-height: 1.6;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 0 30px;
}

.shop-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

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

.shop-sort select,
.woocommerce .woocommerce-ordering select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 38px 0 14px;
  font-family: var(--display);
  font-size: 12px;
}

.shop-grid {
  width: 100%;
}

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

.woocommerce .shop-grid ul.products::before,
.woocommerce .shop-grid ul.products::after,
.woocommerce-page .shop-grid ul.products::before,
.woocommerce-page .shop-grid ul.products::after {
  content: none;
  display: none;
}

.woocommerce .shop-grid ul.products li.product,
.woocommerce-page .shop-grid ul.products li.product,
.shop-grid .product-card {
  display: block;
  grid-template-columns: none;
  gap: 0;
  float: none;
  clear: none;
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce .shop-grid ul.products li.product a {
  display: block;
  color: inherit;
}

.woocommerce .shop-grid ul.products li.product a img,
.shop-grid .pcard-media img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.shop-grid .pcard-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-top: 14px;
  text-align: left;
}

.shop-grid .pcard-name {
  min-width: 0;
  max-width: none;
  width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  direction: ltr;
  unicode-bidi: isolate;
  line-height: 1.25;
}

.shop-grid .pcard-price {
  direction: ltr;
  unicode-bidi: isolate;
  justify-self: start;
}

.woocommerce .shop-grid ul.products li.product .price {
  color: inherit;
}

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

@media (max-width: 760px) {
  .woocommerce-shop #main-content,
  .tax-product_cat #main-content,
  .tax-product_tag #main-content,
  .post-type-archive-product #main-content {
    width: min(100% - 28px, 1480px);
  }

  .shop-header {
    display: block;
  }

  .shop-toolbar {
    align-items: stretch;
  }

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

  .woocommerce .shop-grid ul.products,
  .woocommerce-page .shop-grid ul.products,
  .shop-grid .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }

  .shop-grid .pcard-info {
    display: grid;
  }

  .shop-grid .pcard-price {
    display: inline-block;
    margin-top: 7px;
  }
}

/* Shop product card UX refresh */
.woocommerce .shop-grid ul.products li.product.product-card,
.woocommerce-page .shop-grid ul.products li.product.product-card,
.shop-grid .product-card {
  min-width: 0;
  height: 100%;
}

.shop-grid .product-card-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 52px -46px rgba(20, 19, 15, .48);
  transition: transform 260ms var(--ease), border-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.shop-grid .product-card:hover .product-card-shell {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--ink) 18%, var(--line));
  box-shadow: 0 26px 68px -48px rgba(20, 19, 15, .58);
}

.shop-grid .product-card-media-wrap {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}

.woocommerce .shop-grid ul.products li.product a.product-media-link,
.woocommerce-page .shop-grid ul.products li.product a.product-media-link,
.shop-grid .product-media-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  color: inherit;
}

.shop-grid .pcard-media {
  margin: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,0)),
    var(--paper-2);
}

.shop-grid .pcard-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20,19,15,0), rgba(20,19,15,.08));
  opacity: 0;
  transition: opacity 260ms var(--ease);
}

.shop-grid .product-card:hover .pcard-media::after {
  opacity: 1;
}

.shop-grid .pcard-media img {
  transform-origin: center;
}

.shop-grid .pcard-media .secondary-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 360ms var(--ease), transform 1.2s var(--ease);
}

.shop-grid .product-card:hover .pcard-media .secondary-img {
  opacity: 1;
}

.shop-grid .pcard-tag {
  top: 12px;
  left: 12px;
  z-index: 3;
  border-radius: 999px;
  background: rgba(20, 19, 15, .9);
  box-shadow: 0 12px 28px -20px rgba(20, 19, 15, .55);
}

.shop-grid .pcard-tag.hot {
  background: var(--terra);
}

.shop-grid .pcard-tag.out-of-stock {
  background: var(--ink-3);
}

.shop-grid .pcard .pcard-quickview-btn {
  top: 12px !important;
  right: 12px !important;
  width: 38px !important;
  height: 38px !important;
  z-index: 4 !important;
  border: 1px solid rgba(20, 19, 15, .08) !important;
  background: rgba(255,255,255,.94) !important;
  color: var(--ink) !important;
  box-shadow: 0 14px 34px -24px rgba(20, 19, 15, .6) !important;
}

.shop-grid .pcard .pcard-quickview-btn:hover {
  background: var(--ink) !important;
  color: var(--paper) !important;
}

.shop-grid .pcard-info {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  margin-top: 0;
  min-height: 158px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.shop-grid .product-card-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.shop-grid .pcard-cat {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.2;
}

.woocommerce .shop-grid ul.products li.product a.product-title-link,
.woocommerce-page .shop-grid ul.products li.product a.product-title-link,
.shop-grid .product-title-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.shop-grid .product-title-link:hover .pcard-name {
  color: var(--accent);
}

.shop-grid .pcard-name {
  display: -webkit-box;
  min-height: 42px;
  max-height: 42px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.28;
  transition: color 220ms var(--ease);
}

.shop-grid .pcard-price,
.woocommerce .shop-grid ul.products li.product .price {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}

.shop-grid .pcard-price del,
.woocommerce .shop-grid ul.products li.product .price del {
  margin-right: 7px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  opacity: .78;
}

.shop-grid .pcard-price ins,
.woocommerce .shop-grid ul.products li.product .price ins {
  text-decoration: none;
}

.shop-grid .product-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  align-self: end;
  margin-top: 2px;
}

.woocommerce .shop-grid ul.products li.product .product-card-actions .button,
.woocommerce-page .shop-grid ul.products li.product .product-card-actions .button,
.shop-grid .product-card-actions .button {
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
}

.woocommerce .shop-grid ul.products li.product .product-card-actions .button:hover,
.woocommerce-page .shop-grid ul.products li.product .product-card-actions .button:hover,
.shop-grid .product-card-actions .button:hover {
  border-color: var(--terra);
  background: var(--terra);
  color: var(--paper);
  transform: translateY(-1px);
}

.woocommerce .shop-grid ul.products li.product .product-card-actions .button.loading,
.woocommerce-page .shop-grid ul.products li.product .product-card-actions .button.loading,
.shop-grid .product-card-actions .button.loading {
  opacity: .78;
}

.woocommerce .shop-grid ul.products li.product .product-card-actions .button.added,
.woocommerce-page .shop-grid ul.products li.product .product-card-actions .button.added,
.shop-grid .product-card-actions .button.added {
  border-color: var(--leaf-2);
  background: var(--leaf-2);
}

.shop-grid .pcard-details {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: background 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
}

.shop-grid .pcard-details:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  transform: translateX(2px);
}

.shop-grid .pcard-details svg {
  width: 13px;
  height: 13px;
}

.woocommerce .shop-grid ul.products li.product .added_to_cart.wc-forward,
.woocommerce-page .shop-grid ul.products li.product .added_to_cart.wc-forward,
.shop-grid .added_to_cart.wc-forward {
  grid-column: 1 / -1;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

:root[data-theme="dark"]:not([data-palette]) .shop-grid .product-card-shell,
:root[data-theme="dark"]:not([data-palette]) .shop-grid .pcard-info,
:root[data-theme="dark"]:not([data-palette]) .shop-grid .pcard-details,
:root[data-palette="midnight"] .shop-grid .product-card-shell,
:root[data-palette="midnight"] .shop-grid .pcard-info,
:root[data-palette="midnight"] .shop-grid .pcard-details,
:root[data-palette="forest"] .shop-grid .product-card-shell,
:root[data-palette="forest"] .shop-grid .pcard-info,
:root[data-palette="forest"] .shop-grid .pcard-details {
  background: var(--paper);
}

@media (max-width: 760px) {
  .shop-grid .product-card-shell {
    border-radius: 7px;
  }

  .shop-grid .pcard-info {
    min-height: 140px;
    padding: 12px;
    gap: 8px;
  }

  .shop-grid .pcard-cat {
    font-size: 9px;
  }

  .shop-grid .pcard-name {
    min-height: 38px;
    max-height: 38px;
    font-size: 14px;
  }

  .shop-grid .pcard-price,
  .woocommerce .shop-grid ul.products li.product .price {
    margin-top: 0;
    font-size: 14px;
  }

  .shop-grid .product-card-actions {
    grid-template-columns: 1fr;
  }

  .shop-grid .pcard-details {
    display: none !important;
  }

  .woocommerce .shop-grid ul.products li.product .product-card-actions .button,
  .woocommerce-page .shop-grid ul.products li.product .product-card-actions .button,
  .shop-grid .product-card-actions .button {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 10px;
  }

  .shop-grid .pcard .pcard-quickview-btn {
    width: 34px !important;
    height: 34px !important;
  }
}

/* Final mobile guard: keep product cards compact and prevent action controls from wrapping. */
@media (max-width: 760px) {
  .woocommerce .shop-grid ul.products,
  .woocommerce-page .shop-grid ul.products,
  .shop-grid .products {
    gap: 22px 12px;
  }

  .shop-grid .pcard-info,
  .woocommerce .shop-grid .pcard-info,
  .woocommerce-page .shop-grid .pcard-info {
    min-height: 158px;
    padding: 12px;
    gap: 7px;
  }

  .shop-grid .pcard-name,
  .woocommerce .shop-grid .pcard-name,
  .woocommerce-page .shop-grid .pcard-name {
    display: -webkit-box;
    min-height: 44px;
    max-height: 44px;
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .shop-grid .product-card-actions,
  .woocommerce .shop-grid .product-card-actions,
  .woocommerce-page .shop-grid .product-card-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    gap: 0;
  }

  .shop-grid .pcard-details,
  .woocommerce .shop-grid .product-card .pcard-details,
  .woocommerce-page .shop-grid .product-card .pcard-details {
    display: none !important;
  }

  .woocommerce .shop-grid ul.products li.product .product-card-actions .button,
  .woocommerce-page .shop-grid ul.products li.product .product-card-actions .button,
  .shop-grid .product-card-actions .button {
    width: 100%;
    min-height: 40px;
    padding-inline: 10px;
    font-size: 9.5px;
    letter-spacing: .05em;
  }
}
