/**
 * Shopinger shop — premium fashion catalog (FA)
 * UI/UX Pro: content-first cards, ink + stone, calm motion
 */
:root {
  --sg-ink: #2b2a29;
  --sg-ink-soft: #4a4a45;
  --sg-muted: #75756e;
  --sg-line: #e5ddd3;
  --sg-surface: #f3e9df;
  --sg-bg: #faf8f5;
  --sg-card: #ffffff;
  --sg-accent: #cc653c;
  --sg-sale: #dc2626;
  --sg-ok: #a1a57d;
  --sg-radius: 1.1rem;
  --sg-radius-sm: 0.75rem;
  --sg-shop-max: 1320px;
  --sg-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.sg-shop-page .woocommerce-products-header,
.sg-shop-layout .woocommerce-products-header {
  display: none !important;
}

.sg-shop {
  background: var(--sg-bg);
  padding-bottom: 4rem;
}
.sg-shop__container {
  max-width: var(--sg-shop-max);
  margin: 0 auto;
  padding-inline: var(--sg-space, clamp(1.15rem, 3.5vw, 2.5rem));
}

/* —— Breadcrumb —— */
.sg-shop__crumb {
  background: transparent;
  padding: 0.35rem 0 0.25rem;
}
.sg-shop__crumb-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--sg-muted);
}
.sg-shop__crumb-nav a {
  text-decoration: none !important;
  color: var(--sg-muted);
  transition: color 0.2s;
}
.sg-shop__crumb-nav a:hover {
  color: var(--sg-ink);
}
.sg-shop__crumb-sep {
  display: inline-flex;
  opacity: 0.45;
}
[dir="rtl"] .sg-shop__crumb-sep svg {
  transform: scaleX(-1);
}
.sg-shop__crumb-current {
  color: var(--sg-ink);
  font-weight: 700;
}

/* —— Banner —— */
.sg-shop__banner {
  padding: 0.85rem 0 0.15rem;
}
.sg-shop__banner-link {
  display: block;
  border-radius: var(--sg-radius);
  overflow: hidden;
  text-decoration: none !important;
}
.sg-shop__banner-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: none;
  object-fit: contain;
  vertical-align: middle;
}
.sg-shop__banner-fallback {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  min-height: 150px;
  padding: 1.5rem 2rem;
  border-radius: var(--sg-radius);
  background:
    radial-gradient(ellipse at 80% 30%, rgba(29, 78, 216, 0.12), transparent 50%),
    linear-gradient(115deg, #f5f5f4 0%, #e7e5e4 55%, #dbeafe 100%);
  color: var(--sg-ink);
}
.sg-shop__banner-fallback em {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sg-muted);
}
.sg-shop__banner-fallback strong {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sg-shop__banner-fallback span {
  font-size: 0.9rem;
  color: var(--sg-ink-soft);
}

/* —— Categories —— */
.sg-shop__cats {
  padding: 1.35rem 0 1.6rem;
}
.sg-shop__cats-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.85rem;
  justify-items: center;
}
.sg-shop-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 108px;
  text-decoration: none !important;
  text-align: center;
  cursor: pointer;
}
.sg-shop-cat__media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sg-surface);
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.25s var(--sg-ease);
}
.sg-shop-cat:hover .sg-shop-cat__media {
  transform: translateY(-2px);
}
.sg-shop-cat.is-active .sg-shop-cat__media {
  border-color: var(--sg-ink);
}
.sg-shop-cat__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--sg-ease);
}
.sg-shop-cat:hover .sg-shop-cat__media img {
  transform: scale(1.06);
}
.sg-shop-cat__ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  background: var(--sg-ink);
}
.sg-shop-cat__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sg-ink-soft);
  line-height: 1.3;
}
.sg-shop-cat.is-active .sg-shop-cat__title {
  color: var(--sg-ink);
}

/* —— Layout —— */
.sg-shop__main {
  padding-top: 0.25rem;
}
.sg-shop__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

/* —— Sidebar —— */
.sg-shop__sidebar {
  position: sticky;
  top: calc(var(--sg-header-h, 58px) + 1rem);
}
.sg-shop-filter {
  background: var(--sg-card);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  overflow: hidden;
}
.sg-shop-filter__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0.75rem 1.05rem;
  border-bottom: 1px solid var(--sg-line);
}
.sg-shop-filter__title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--sg-ink);
}
.sg-shop-filter__close {
  display: none;
  border: 0;
  background: var(--sg-surface);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 1.2rem;
  cursor: pointer;
}
.sg-shop-filter__shape {
  display: none;
}
.sg-shop-filter__form {
  padding: 0.35rem 1.05rem 1.15rem;
}
.sg-shop-filter__block {
  border-bottom: 1px solid #f0eeec;
  padding: 0.55rem 0;
}
.sg-shop-filter__block:last-of-type {
  border-bottom: 0;
}
.sg-shop-filter__block > summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0 0.55rem;
  color: var(--sg-ink);
}
.sg-shop-filter__block > summary::-webkit-details-marker {
  display: none;
}
.sg-shop-filter__block > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-inline-end: 1.5px solid #a8a29e;
  border-bottom: 1.5px solid #a8a29e;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s;
}
.sg-shop-filter__block[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.sg-shop-filter__price {
  display: grid;
  gap: 0.65rem;
}
.sg-shop-filter__price-inputs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sg-shop-filter__price-inputs input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-sm);
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-size: 0.85rem;
  background: #fff;
}
.sg-shop-filter__price-inputs input:focus {
  outline: 2px solid var(--sg-ink);
  outline-offset: 1px;
  border-color: transparent;
}
.sg-shop-filter__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--sg-ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  width: max-content;
  transition: background 0.2s, transform 0.2s;
}
.sg-shop-filter__go:hover {
  background: var(--sg-sage, #a1a57d);
  transform: translateY(-1px);
}
.sg-shop-filter__list,
.sg-shop-filter__rating {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
  max-height: 210px;
  overflow: auto;
}
.sg-shop-filter__list a,
.sg-shop-filter__rating a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  font-size: 0.84rem;
  color: var(--sg-ink-soft);
  padding: 0.4rem 0.25rem;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.sg-shop-filter__list a::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 1.5px solid #d6d3d1;
  border-radius: 4px;
  flex-shrink: 0;
}
.sg-shop-filter__list a span {
  flex: 1;
}
.sg-shop-filter__list a:hover,
.sg-shop-filter__list a.is-active,
.sg-shop-filter__rating a:hover,
.sg-shop-filter__rating a.is-active {
  color: var(--sg-ink);
  background: var(--sg-surface);
}
.sg-shop-filter__list a:hover::before,
.sg-shop-filter__list a.is-active::before {
  border-color: var(--sg-ink);
  background: var(--sg-ink);
}
.sg-shop-filter__list em {
  font-style: normal;
  color: var(--sg-muted);
  font-size: 0.78rem;
}
.sg-shop-filter__stars {
  color: #eab308;
  letter-spacing: 1px;
  font-size: 0.8rem;
}
.sg-shop-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sg-shop-filter__chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.85rem;
  border: 1px solid var(--sg-line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none !important;
  color: var(--sg-ink-soft);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: pointer;
}
.sg-shop-filter__chip:hover,
.sg-shop-filter__chip.is-active {
  border-color: var(--sg-navy, #123a5c);
  color: #fff;
  background: var(--sg-navy, #123a5c);
}
.sg-shop-filter__reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.9rem;
  min-height: 42px;
  width: 100%;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--sg-ink);
  color: #fff !important;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s;
  cursor: pointer;
}
.sg-shop-filter__reset:hover {
  background: var(--sg-sage, #a1a57d);
}

/* —— Toolbar —— */
.sg-shop-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.1rem;
  margin-bottom: 1.15rem;
  padding: 0.85rem 1rem;
  background: var(--sg-card);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-sm);
}
.sg-shop-tools__filter-btn {
  display: none;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0 0.95rem;
  border: 1px solid var(--sg-line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}
.sg-shop-tools__filter-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--sg-orange, #fa522e);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}
.sg-shop-tools__results {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sg-muted, #71717a);
}

/* Active filters bar — high visibility */
.sg-shop-active {
  margin: 0.75rem 0 1.15rem;
  padding: 0.95rem 1rem;
  border: 2px solid rgba(18, 58, 92, 0.16);
  border-radius: 1rem;
  background: linear-gradient(180deg, #eef3f8 0%, #fff 100%);
  box-shadow: 0 8px 24px rgba(18, 58, 92, 0.06);
}
.sg-shop-active--drawer {
  margin: 0;
  border-radius: 0;
  border-width: 0 0 1px;
  border-color: rgba(18, 58, 92, 0.1);
  box-shadow: none;
  flex-shrink: 0;
}
.sg-shop-active__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}
.sg-shop-active__head strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--sg-navy, #123a5c);
}
.sg-shop-active__clear {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff !important;
  text-decoration: none !important;
  background: var(--sg-orange, #fa522e);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.sg-shop-active__clear:hover {
  filter: brightness(1.05);
}
.sg-shop-active__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sg-shop-active__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.3rem 0.45rem 0.3rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--sg-navy, #123a5c);
  color: var(--sg-navy, #123a5c);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sg-shop-active__chip em {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1;
  background: var(--sg-navy, #123a5c);
  color: #fff;
}
.sg-shop-active__chip:hover {
  background: var(--sg-orange, #fa522e);
  border-color: var(--sg-orange, #fa522e);
  color: #fff;
}
.sg-shop-active__chip:hover em {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
@media (max-width: 991px) {
  .sg-shop-active:not(.sg-shop-active--drawer) {
    position: sticky;
    top: calc(var(--sg-chrome-top, 52px) + 0.35rem);
    z-index: 40;
  }
}
@media (max-width: 560px) {
  .sg-shop-active {
    padding: 0.8rem 0.85rem;
    border-radius: 0.9rem;
  }
}
.sg-shop-tools__left,
.sg-shop-tools__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}
.sg-shop-tools__count {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sg-ink);
}
.sg-shop-tools__views {
  display: inline-flex;
  gap: 0.2rem;
  border: 1px solid var(--sg-line);
  border-radius: 10px;
  padding: 0.15rem;
  background: #fff;
}
.sg-shop-tools__view {
  width: 34px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sg-muted);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.sg-shop-tools__view.is-active,
.sg-shop-tools__view:hover {
  background: var(--sg-ink);
  color: #fff;
}
.sg-shop-tools__sort,
.sg-shop-tools__show {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--sg-ink-soft);
}
.sg-shop-tools .woocommerce-ordering {
  margin: 0 !important;
  float: none !important;
}
.sg-shop-tools select,
.sg-shop-tools .orderby {
  border: 1px solid var(--sg-line);
  border-radius: 999px;
  min-height: 38px;
  padding: 0.35rem 0.9rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  background: #fff;
  color: var(--sg-ink);
  cursor: pointer;
}

/* —— Product grid —— */
.sg-shop__content ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.5rem 1.15rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
}
.sg-shop__content[data-cols="2"] ul.products {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.sg-shop__content[data-cols="4"] ul.products {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.sg-shop__content ul.products::before,
.sg-shop__content ul.products::after {
  display: none !important;
}
.sg-shop__content ul.products > li.product,
.sg-shop__content ul.products > .product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

/* =========================================================
   PRODUCT CARD — clean fashion catalog
   ========================================================= */
.sg-card,
.sg-card.product,
ul.products li.product.sg-card {
  --sg-img-w: 118%;
  --sg-img-h: 118%;
  --sg-img-l: -9%;
  --sg-img-t: -9%;
  --sg-img-hover: 1.05;
  position: relative;
  display: flex !important;
  flex-direction: column;
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 1.15rem !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  height: 100%;
  padding: 0 !important;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.25s var(--sg-ease), transform 0.25s var(--sg-ease);
}
.sg-card:hover,
ul.products li.product.sg-card:hover {
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1) !important;
  transform: translateY(-3px);
}

.sg-card__media,
ul.products .sg-card .sg-card__media {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #f5f5f4 !important;
  margin: 0 !important;
}

.sg-card__hit {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2;
  display: block !important;
  background: transparent !important;
  text-indent: -9999px;
  overflow: hidden;
}

.sg-card__media > .sg-card__img,
.sg-card__media > img,
.woocommerce ul.products li.product .sg-card__media > img {
  position: absolute !important;
  top: var(--sg-img-t) !important;
  left: var(--sg-img-l) !important;
  right: auto !important;
  bottom: auto !important;
  width: var(--sg-img-w) !important;
  height: var(--sg-img-h) !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: fill !important;
  object-position: center center !important;
  display: block !important;
  transform: none !important;
  transform-origin: center center;
  transition: opacity 0.35s ease, top 0.45s var(--sg-ease), left 0.45s var(--sg-ease), width 0.45s var(--sg-ease), height 0.45s var(--sg-ease) !important;
}

.sg-card__img--alt {
  opacity: 0 !important;
  z-index: 1;
}
.sg-card__img--main {
  z-index: 0;
  opacity: 1 !important;
}
.sg-card--has-hover .sg-card__media.has-hover:hover .sg-card__img--main,
.sg-card--has-hover:hover .sg-card__img--main {
  opacity: 0 !important;
}
.sg-card--has-hover .sg-card__media.has-hover:hover .sg-card__img--alt,
.sg-card--has-hover:hover .sg-card__img--alt {
  opacity: 1 !important;
}

.sg-card__flags {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  pointer-events: none;
}
.sg-card__flag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.sg-card__flag--sale { background: var(--sg-orange, #fa522e); }
.sg-card__flag--new { background: var(--sg-navy, #123a5c); }

.sg-card__wish {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.65rem;
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--sg-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 14px rgba(12, 10, 9, 0.1);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s, background 0.2s, color 0.2s;
}
.sg-card:hover .sg-card__wish,
.sg-card:focus-within .sg-card__wish {
  opacity: 1;
  transform: none;
}
.sg-card__wish:hover {
  background: var(--sg-navy, #123a5c);
  color: #fff;
}
.sg-card__wish:focus-visible {
  opacity: 1;
  transform: none;
  outline: 2px solid var(--sg-orange, #fa522e);
  outline-offset: 2px;
}

.sg-card__overlay { display: none; }

.sg-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1rem 1.05rem;
  flex: 1;
}
.sg-card__cat {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--sg-muted);
  text-decoration: none !important;
}
.sg-card__cat:hover { color: var(--sg-orange, #fa522e); }
.sg-card__title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--sg-ink);
}
.sg-card__title a {
  text-decoration: none !important;
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sg-card__title a:hover { color: var(--sg-navy, #123a5c); }
.sg-card__rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.sg-card__stars {
  color: #ca8a04;
  font-size: 0.76rem;
  letter-spacing: 0.5px;
}
.sg-card__reviews {
  font-size: 0.72rem;
  color: var(--sg-muted);
}

.sg-card__meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.sg-card__price {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--sg-navy, #123a5c);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.sg-card__price--ask {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--sg-muted);
}
.sg-card__price del {
  color: var(--sg-muted);
  font-weight: 500;
  font-size: 0.84rem;
}
.sg-card__price ins { text-decoration: none; }

.sg-card__cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--sg-navy, #123a5c) !important;
  color: #fff !important;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none !important;
  border: 0 !important;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.sg-card__cta:hover {
  background: var(--sg-navy-hover, #1a4d75) !important;
  transform: translateY(-1px);
}
.sg-card__cta--ghost {
  background: transparent !important;
  color: var(--sg-ink) !important;
  border: 1.5px solid rgba(15, 23, 42, 0.12) !important;
}
.sg-card__cta--ghost:hover {
  border-color: var(--sg-navy, #123a5c) !important;
  background: var(--sg-navy, #123a5c) !important;
  color: #fff !important;
}

.sg-products .sg-card { height: 100%; }



/* Pagination — clean circles, no WC bar / dividers / outer pill */
.woocommerce nav.woocommerce-pagination,
.sg-shop__content .woocommerce-pagination,
.sg-pdp #reviews .woocommerce-pagination {
  display: flex;
  justify-content: center;
  clear: both;
  margin: 2rem 0 0.75rem;
  padding: 0;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul,
.woocommerce nav.woocommerce-pagination ul.page-numbers,
.sg-shop__content .woocommerce-pagination ul.page-numbers,
.sg-pdp #reviews .woocommerce-pagination ul {
  display: inline-flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: auto !important;
  max-width: 100%;
  margin: 0 auto !important;
  padding: 0 !important;
  list-style: none !important;
  float: none !important;
  white-space: normal !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.woocommerce nav.woocommerce-pagination ul::before,
.woocommerce nav.woocommerce-pagination ul::after {
  display: none !important;
  content: none !important;
}

.woocommerce nav.woocommerce-pagination ul li,
.sg-shop__content .woocommerce-pagination ul li,
.sg-pdp #reviews .woocommerce-pagination ul li {
  display: inline-flex !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-right: 0 !important;
  border-left: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.sg-shop__content .woocommerce-pagination .page-numbers,
.sg-pdp #reviews .woocommerce-pagination .page-numbers {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 42px;
  min-height: 42px;
  height: 42px;
  width: auto !important;
  margin: 0 !important;
  padding: 0 0.7rem !important;
  border: 1.5px solid rgba(18, 58, 92, 0.14) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--sg-navy, #123a5c) !important;
  font-family: inherit !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:focus,
.sg-shop__content .woocommerce-pagination a.page-numbers:hover {
  background: rgba(18, 58, 92, 0.07) !important;
  border-color: var(--sg-navy, #123a5c) !important;
  color: var(--sg-navy, #123a5c) !important;
  transform: none;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.sg-shop__content .woocommerce-pagination .page-numbers.current {
  background: var(--sg-navy, #123a5c) !important;
  border-color: var(--sg-navy, #123a5c) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.woocommerce nav.woocommerce-pagination ul li span.dots,
.sg-shop__content .woocommerce-pagination .page-numbers.dots {
  min-width: 1.25rem !important;
  min-height: auto !important;
  height: auto !important;
  padding: 0 0.15rem !important;
  border: 0 !important;
  background: transparent !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  pointer-events: none;
}

.woocommerce nav.woocommerce-pagination ul li a.prev,
.woocommerce nav.woocommerce-pagination ul li a.next {
  font-size: 1rem !important;
  min-width: 42px;
  padding: 0 !important;
}

@media (max-width: 520px) {
  .woocommerce nav.woocommerce-pagination ul,
  .sg-shop__content .woocommerce-pagination ul.page-numbers {
    gap: 0.3rem;
  }

  .woocommerce nav.woocommerce-pagination ul li a,
  .woocommerce nav.woocommerce-pagination ul li span,
  .sg-shop__content .woocommerce-pagination .page-numbers {
    min-width: 38px;
    min-height: 38px;
    height: 38px;
    padding: 0 0.55rem !important;
    font-size: 0.82rem !important;
  }
}

.woocommerce span.onsale {
  display: none !important;
}

/* Mobile filter drawer */
.sg-shop-filter-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 9, 0.45);
  z-index: 120;
}
body.sg-filters-open .sg-shop-filter-backdrop {
  display: block;
}

@media (max-width: 1100px) {
  .sg-shop__cats-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .sg-shop__content[data-cols="4"] ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 991px) {
  .sg-shop__layout {
    grid-template-columns: 1fr !important;
  }

  /* Full-screen filter sheet (app) */
  .sg-shop__sidebar {
    position: fixed !important;
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    height: 100dvh !important;
    z-index: 280 !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    transform: translate3d(0, 105%, 0) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.32s var(--sg-ease), visibility 0.32s;
    padding: 0 !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }
  body.sg-filters-open .sg-shop__sidebar {
    transform: translate3d(0, 0, 0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  body.sg-filters-open {
    overflow: hidden !important;
  }
  body.sg-filters-open .sg-tabbar {
    display: none !important;
  }
  .sg-shop-filter-backdrop {
    z-index: 270 !important;
    background: rgba(11, 36, 56, 0.45) !important;
  }
  .sg-shop-filter {
    border: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background: #fff;
  }
  .sg-shop-filter__head {
    position: sticky;
    top: 0;
    z-index: 2;
    flex-shrink: 0;
    min-height: 56px;
    padding: 0.85rem 1.1rem;
    background: #fff;
    border-bottom: 1px solid rgba(18, 58, 92, 0.1);
  }
  .sg-shop-filter__title {
    font-size: 1.05rem;
  }
  .sg-shop-filter__close {
    display: grid !important;
    place-items: center;
    width: 44px !important;
    height: 44px !important;
    font-size: 1.35rem;
    background: rgba(18, 58, 92, 0.06);
  }
  .sg-shop-filter__form {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 1.15rem 1.5rem;
  }
  .sg-shop-filter__go,
  .sg-shop-filter__reset {
    min-height: 48px;
  }
  .sg-shop-tools__filter-btn {
    display: inline-flex;
  }
  .sg-shop__content ul.products,
  .sg-shop__content[data-cols="3"] ul.products,
  .sg-shop__content[data-cols="4"] ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .sg-card__wish {
    opacity: 1;
    transform: none;
  }

  /* Category chips: horizontal rail */
  .sg-shop__cats {
    overflow: hidden;
  }
  .sg-shop__cats-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.75rem !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
  }
  .sg-shop__cats-row::-webkit-scrollbar {
    display: none;
  }
  .sg-shop-cat {
    flex: 0 0 auto;
    width: 76px;
    max-width: 76px;
    scroll-snap-align: start;
  }
}

@media (max-width: 560px) {
  .sg-shop-cat__title {
    font-size: 0.7rem;
  }
  .sg-shop-tools__views {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-card__img,
  .sg-card__overlay,
  .sg-card__wish,
  .sg-shop-cat__media,
  .sg-shop-cat__media img {
    transition: none !important;
  }
}
