/* ================= FILTER TOGGLE & SLIDE PANEL ================= */

.pcc-filter-toggle {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.pcc-top-rightbar {
  width: 100%;
  margin: 0 0 20px;
}

.pcc-main-layout > .lsm-main {
  flex: 1 1 100%;
  width: 100%;
}

.pcc-top-rightbar > .lsm-right-sidebar {
  position: static;
  top: auto;
  align-self: stretch;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.pcc-top-rightbar .lsm-right-sidebar-inner {
  width: 100%;
}

.pcc-filter-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.pcc-filter-panel.open {
  transform: translateX(0);
}

.pcc-filter-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pcc-filter-panel-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 24px;
  padding: 12px 16px;
  cursor: pointer;
}

.pcc-filter-panel-body {
  padding: 16px;
  overflow-y: auto;
  font-size: 14px;
}

.filter-group {
  border-top: 1px solid #e5e5e5;
  padding: 10px 0;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
}

.filter-body {
  display: none;
  margin-top: 6px;
}

.filter-body.show {
  display: block;
}

.icon {
  font-size: 14px;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #ccc;
  cursor: pointer;
}

@media (max-width: 768px) {
  .pcc-filter-toggle {
    top: auto;
    bottom: 16px;
    transform: none;
  }
}

/* ================= PRODUCT GRID ================= */
.pcc-category-design-shell {
  --sidebar-w: 300px;
  --ink: #2a2a2a;
  --muted: #8a8a8a;
  --line: #ececec;
  --accent2: #b14b8e;
  --bg: #fff;
  --panel: #faf8f6;
  --price: #1f1f1f;
  display: flex;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

.pcc-category-design-shell .lsm-left-sidebar.lsm-category {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  max-width: var(--sidebar-w);
  height: 100vh;
  padding: 0;
  z-index: 50;
  background: var(--bg);
}

.pcc-category-design-shell .lsm-sidebar-desktop {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  padding: 34px 30px 26px;
  border-right: 1px solid var(--line);
  background: var(--bg);
  overflow-y: auto;
}

.pcc-category-design-shell .lsm-sidebar-logo-desktop {
  margin-bottom: 48px;
}

.pcc-category-design-shell .lsm-sidebar-logo-desktop .custom-logo {
  width: auto;
  height: 54px;
  max-width: 100%;
}

.pcc-category-design-shell .lsm-sidebar-nav-desktop {
  display: block;
}

.pcc-category-design-shell .lsm-menu-desktop {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pcc-category-design-shell .lsm-menu-desktop li {
  position: relative;
}

.pcc-category-design-shell .lsm-menu-desktop li + li {
  margin-top: 0;
}

.pcc-category-design-shell .lsm-menu-desktop a,
.pcc-category-design-shell .lsm-sidebar-desktop .lsm-menu a {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100% !important;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 15px 0 !important;
  color: #3a3a3a;
  font-size: 14px !important;
  line-height: 1.5 !important;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pcc-category-design-shell .lsm-menu-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-right: 14px;
  color: #6f6f6f;
}

.pcc-category-design-shell .lsm-menu-desktop a:hover,
.pcc-category-design-shell .lsm-menu-desktop .current-menu-item > a,
.pcc-category-design-shell .lsm-menu-desktop .current_page_item > a,
.pcc-category-design-shell .lsm-menu-desktop .current-menu-ancestor > a,
.pcc-category-design-shell .lsm-menu-desktop .lsm-active-menu-item > a {
  color: #111;
  opacity: 1;
  font-weight: 500;
}

.pcc-category-design-shell .lsm-menu-desktop .current-menu-item > a::before,
.pcc-category-design-shell .lsm-menu-desktop .current_page_item > a::before,
.pcc-category-design-shell .lsm-menu-desktop .current-menu-ancestor > a::before,
.pcc-category-design-shell .lsm-menu-desktop .lsm-active-menu-item > a::before {
  left: -30px;
  width: 3px;
  height: 26px;
  background: linear-gradient(#7c5cff, #b14b8e);
  border-radius: 0 3px 3px 0;
}

.pcc-category-content {
  flex: 1;
  height: 100vh;
  margin-left: var(--sidebar-w);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y proximity;
  background: var(--bg);
}

.pcc-category-panel {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
}

.pcc-category-hero-design {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
}

.pcc-category-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0 6% 0 7%;
}

.pcc-category-hero-eyebrow {
  margin-bottom: 20px;
  color: var(--accent2);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.pcc-category-hero-design h1 {
  margin: 0;
  color: #262626;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 74px);
  font-weight: 500;
  line-height: 0.98;
}

.pcc-category-hero-description {
  max-width: 340px;
  margin-top: 24px;
  color: #6a6a6a;
  font-size: 15px;
  line-height: 1.8;
}

.pcc-category-hero-description p {
  margin: 0 0 12px;
}

.pcc-category-hero-description p:last-child {
  margin-bottom: 0;
}

.pcc-category-hero-visual {
  position: relative;
  overflow: hidden;
  background: var(--panel);
}

.pcc-category-hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: contain;
}

.pcc-category-product-panel {
  display: flex;
  flex-direction: column;
}

.pcc-category-row-head {
  text-align: center;
  padding: 30px 5% 4px;
}

.pcc-category-row-head .k {
  color: var(--accent2);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.pcc-category-row-head .count {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.pcc-category-product-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex: 1;
  height: calc(100vh - 96px);
  border-top: 1px solid var(--line);
}

.pcc-category-product-row .pcc-category-gallery-card {
  display: flex;
  min-width: 0;
  width: 100% !important;
  max-width: none !important;
  border-right: 1px solid var(--line);
  background: var(--bg);
  transition: background 0.3s ease;
}

.pcc-category-product-row .pcc-category-gallery-card:last-child {
  border-right: none;
}

.pcc-category-product-row .pcc-category-gallery-card:hover {
  background: var(--panel);
}

.pcc-category-product-row .product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 26px 20px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  text-align: center;
}

.pcc-category-product-row .image-wrapper {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-bottom: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #f4f1ee, #e9e4df);
}

.pcc-category-product-row .pcc-card-gallery,
.pcc-category-product-row .pcc-card-gallery-item,
.pcc-category-product-row .pcc-card-gallery-link,
.pcc-category-product-row .pcc-card-gallery-media {
  width: 100%;
  height: 100%;
}

.pcc-category-product-row .pcc-card-gallery {
  display: block;
  gap: 0;
}

.pcc-category-product-row .pcc-card-gallery-item {
  display: block;
  max-width: 100%;
  background: transparent;
}

.pcc-category-product-row .pcc-card-gallery-link,
.pcc-category-product-row .pcc-card-gallery-media {
  display: block;
}

.pcc-category-product-row .image-wrapper {
  height: auto;
  overflow: visible;
  margin-bottom: 0;
  background: transparent;
}

.pcc-category-product-row .pcc-card-gallery,
.pcc-category-product-row .pcc-card-gallery-item,
.pcc-category-product-row .pcc-card-gallery-link {
  height: auto !important;
  overflow: visible;
}

.pcc-category-product-row .pcc-card-gallery-link {
  display: flex;
  flex-direction: column;
}

.pcc-category-product-row .pcc-card-gallery-media {
  position: relative;
  width: 100%;
  height: clamp(425px, calc(100vh - 215px), 624px);
  overflow: hidden;
  background: #fff;
}

.pcc-category-product-row .pcc-card-gallery-media img,
.pcc-category-product-row .image-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transition: transform 0.6s ease;
  object-position: top;
}

.pcc-category-product-row .product-card:hover .image-wrapper img {
  transform: scale(1.04);
}

.pcc-category-product-row .card-body {
  display: none !important;
}

.pcc-category-product-row .product-title,
.pcc-category-product-row .product-title a {
  display: -webkit-box;
  width: 100%;
  color: #3a3a3a;
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pcc-category-product-row .product-price {
  margin-top: 6px;
  color: var(--price);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
}

.pcc-category-product-row .product-price del,
.pcc-category-product-row .product-price ins {
  text-decoration-thickness: 1px;
}

.pcc-category-scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 3;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  animation: pcc-category-design-bob 2s ease-in-out infinite;
}

@keyframes pcc-category-design-bob {
  0%, 100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 6px);
  }
}

.pcc-category-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 96px;
  padding: 24px;
  border-top: 1px solid var(--line, #ececec);
  background: #fff;
}

.pcc-category-footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 0 7%;
  border-top: 1px solid var(--line, #ececec);
  background: var(--bg, #fff);
  color: #3a3a3a;
  scroll-snap-align: start;
}

.pcc-category-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line, #ececec);
}

.pcc-category-footer h4 {
  margin: 0 0 18px;
  color: #1c1c1c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
}

.pcc-category-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pcc-category-footer li {
  margin-bottom: 11px;
}

.pcc-category-footer a {
  color: #6a6a6a;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pcc-category-footer a:hover {
  color: #000;
}

.pcc-category-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 6px;
}

.pcc-category-footer-social a {
  font-size: 12px;
  letter-spacing: 0.04em;
}

.pcc-category-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 38px;
  text-align: center;
}

.pcc-category-footer-bottom img {
  display: block;
  width: auto;
  height: 64px;
  max-width: 100%;
  object-fit: contain;
}

.pcc-category-footer-copy {
  color: #9a9a9a;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.pcc-product-grid {
  display: flex;
  flex-wrap: wrap;
  /* width: 83%; */
  /* margin: 0 20px 0 100px; */
  gap: 120px 24px;
  width: 100%;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.pcc-product-grid .product-item--mobile {
  display: none;
}

.pcc-product-grid .product-item--desktop {
  display: block;
}

/* Hide view toggle controls */
.pcc-view-toggle {
  display: none;
}

/* Default desktop grid: one product card per row */
.pcc-product-grid .product-item {
  flex: 0 0 83%;
  max-width: 100%;
  width: 100%;
}

/*.pcc-product-grid .product-item img {*/
/*  align-self: self-start !important;*/
/*  width: 190px !important;*/
/*}*/

.presence-screen {
  padding: 100px 0;
}

.pcc-category-hero.presence-screen {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  min-height: 100vh;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid #ececec;
  position: relative;
  overflow: hidden;
}

.pcc-category-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6% 0 7%;
  min-width: 0;
}

.pcc-category-hero-eyebrow {
  margin-bottom: 20px;
  color: #b14b8e;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.pcc-category-hero h1 {
  margin: 0;
  color: #262626;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 74px);
  font-weight: 500;
  line-height: 0.98;
}

.pcc-category-hero-description {
  max-width: 360px;
  margin-top: 24px;
  color: #6a6a6a;
  font-size: 15px;
  line-height: 1.8;
}

.pcc-category-hero-description p {
  margin: 0 0 12px;
}

.pcc-category-hero-description p:last-child {
  margin-bottom: 0;
}

.pcc-category-hero-visual {
  position: relative;
  min-height: 100vh;
  background: #faf8f6;
  overflow: hidden;
}

.pcc-category-hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pcc-category-hero-scroll {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #8a8a8a;
  font-size: 22px;
  line-height: 1;
  animation: pcc-category-hero-bob 2s ease-in-out infinite;
  z-index: 3;
}

@keyframes pcc-category-hero-bob {
  0%, 100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 6px);
  }
}

.presence-screen-res {
  padding: 0 !important;
}

.presence-screen .pcc-product-grid .pcc-category-gallery-card.product-item,
.presence-screen-res .pcc-product-grid .pcc-category-gallery-card.product-item {
  flex: 0 0 calc((100% - 72px) / 4) !important;
  max-width: calc((100% - 72px) / 4) !important;
  width: calc((100% - 72px) / 4) !important;
}

#pccProductGrid,
#pccProductGrid > .presence-screen,
#pccProductGrid > .presence-screen-res {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.presence-screen .pcc-product-grid .pcc-category-gallery-card .pcc-card-gallery,
.presence-screen-res .pcc-product-grid .pcc-category-gallery-card .pcc-card-gallery {
  gap: 0;
}

.presence-screen .pcc-product-grid .pcc-category-gallery-card .pcc-card-gallery-item,
.presence-screen-res .pcc-product-grid .pcc-category-gallery-card .pcc-card-gallery-item {
  flex: 0 0 100%;
  max-width: 100%;
}

.presence-screen .pcc-product-grid .pcc-category-gallery-card .image-wrapper,
.presence-screen-res .pcc-product-grid .pcc-category-gallery-card .image-wrapper {
  height: auto;
  overflow: visible;
  margin-bottom: 0;
  background: transparent;
}

.presence-screen .pcc-product-grid .pcc-category-gallery-card .pcc-card-gallery,
.presence-screen .pcc-product-grid .pcc-category-gallery-card .pcc-card-gallery-item,
.presence-screen .pcc-product-grid .pcc-category-gallery-card .pcc-card-gallery-link,
.presence-screen-res .pcc-product-grid .pcc-category-gallery-card .pcc-card-gallery,
.presence-screen-res .pcc-product-grid .pcc-category-gallery-card .pcc-card-gallery-item,
.presence-screen-res .pcc-product-grid .pcc-category-gallery-card .pcc-card-gallery-link {
  height: auto !important;
  overflow: visible;
}

.presence-screen .pcc-product-grid .pcc-category-gallery-card .pcc-card-gallery-link,
.presence-screen-res .pcc-product-grid .pcc-category-gallery-card .pcc-card-gallery-link {
  display: flex;
  flex-direction: column;
}

.presence-screen .pcc-product-grid .pcc-category-gallery-card .pcc-card-gallery-media,
.presence-screen-res .pcc-product-grid .pcc-category-gallery-card .pcc-card-gallery-media {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(425px, calc(100vh - 215px), 624px);
  overflow: hidden;
  background: #fff;
}

.presence-screen .pcc-product-grid .pcc-category-gallery-card .pcc-card-gallery-media img,
.presence-screen .pcc-product-grid .pcc-category-gallery-card .image-wrapper img,
.presence-screen-res .pcc-product-grid .pcc-category-gallery-card .pcc-card-gallery-media img,
.presence-screen-res .pcc-product-grid .pcc-category-gallery-card .image-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transition: transform 0.6s ease;
  object-position: top;
}

.presence-screen .pcc-product-grid .pcc-category-gallery-card .pcc-card-gallery-copy,
.presence-screen-res .pcc-product-grid .pcc-category-gallery-card .pcc-card-gallery-copy {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  gap: 5px;
  align-items: center;
  text-align: center;
}

.presence-screen .pcc-product-grid .pcc-category-gallery-card .card-body,
.presence-screen-res .pcc-product-grid .pcc-category-gallery-card .card-body {
  display: none !important;
}

.presence-screen .pcc-product-grid .pcc-category-gallery-card .product-title,
.presence-screen .pcc-product-grid .pcc-category-gallery-card .product-title a,
.presence-screen-res .pcc-product-grid .pcc-category-gallery-card .product-title,
.presence-screen-res .pcc-product-grid .pcc-category-gallery-card .product-title a {
  display: -webkit-box;
  width: 100%;
  text-align: center;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.presence-screen .pcc-product-grid .pcc-category-gallery-card .product-price,
.presence-screen-res .pcc-product-grid .pcc-category-gallery-card .product-price {
  display: block;
  text-align: center;
}

header .presence-screen {
  padding: 0 !important;
}

/* Explicit 2-column view (desktop) */
.pcc-product-grid.two-grid .product-item {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

.pcc-product-grid.four-grid .product-item {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

.pcc-product-grid.fx-grid .product-item {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

@media (max-width: 768px) {
  .pcc-category-design-shell {
    --sidebar-w: 280px;
  }

  .pcc-category-design-shell .lsm-left-sidebar.lsm-category {
    position: static !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
  }

  .pcc-category-content {
    height: auto;
    min-height: 100vh;
    margin-left: 0;
    overflow-y: visible;
    scroll-snap-type: none;
  }

  .pcc-category-panel {
    min-height: auto;
    scroll-snap-align: none;
  }

  .pcc-category-hero-design {
    grid-template-columns: 1fr;
  }

  .pcc-category-hero-copy {
    padding: 56px 8% 34px;
  }

  .pcc-category-hero-visual {
    min-height: 52vh;
  }

  .pcc-category-product-row {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
    min-height: calc(100vh - 96px);
  }

  .pcc-category-product-row .pcc-category-gallery-card {
    border-bottom: 1px solid var(--line);
  }

  .pcc-category-product-row .pcc-category-gallery-card:nth-child(2n) {
    border-right: none;
  }

  .pcc-category-product-row .image-wrapper {
    min-height: 320px;
  }

  .pcc-category-footer {
    min-height: auto;
    padding: 64px 8%;
    scroll-snap-align: none;
  }

  .pcc-category-footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  /* Mobile: show two product cards per row */
  .pcc-product-grid .product-item {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }

  .presence-screen .pcc-product-grid .pcc-category-gallery-card.product-item,
  .presence-screen-res .pcc-product-grid .pcc-category-gallery-card.product-item {
    flex: 0 0 calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
    width: calc(50% - 8px) !important;
  }

  .pcc-category-hero.presence-screen {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pcc-category-hero-copy {
    padding: 56px 8% 34px;
  }

  .pcc-category-hero-visual {
    min-height: 52vh;
  }

  /* Keep the same 2-column width for explicit views too */
  .pcc-product-grid.four-grid .product-item,
  .pcc-product-grid.two-grid .product-item {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
  }

  .pcc-product-grid .product-item--desktop {
    display: none;
  }

  .pcc-product-grid .product-item--mobile {
    display: block;
  }
}

@media (max-width: 540px) {
  .pcc-category-product-row {
    grid-template-columns: 1fr;
  }

  .pcc-category-product-row .pcc-category-gallery-card {
    border-right: none;
  }

  .pcc-category-product-row .image-wrapper {
    min-height: 380px;
  }

  .pcc-category-footer-cols {
    grid-template-columns: 1fr;
  }
}

/* ================= PRODUCT CARD & HOVER ================= */
.image-wrapper {
  position: relative;
  overflow: hidden;
  height: auto;
}

.pcc-gallery-wrapper > a {
  display: flex;
  width: 100%;
  justify-content: flex-start;
}

.pcc-card-gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: flex-start;
  gap: 60px 28px;
  width: 100%;
  max-width: 100%;
}

.pcc-card-gallery--1 {
  width: 100%;
}

.pcc-card-gallery--2 {
  justify-content: flex-start;
}

.pcc-card-gallery-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: #fff;
  flex: 0 1 calc((100% - 84px) / 4);
  max-width: calc((100% - 84px) / 4);
}

.pcc-card-gallery-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.pcc-card-gallery-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.pcc-card-gallery-media--video {
  justify-content: var(--pcc-video-align, center);
}

.pcc-card-gallery--1 .pcc-card-gallery-item {
  flex-basis: 100%;
  max-width: 100%;
}

.pcc-card-gallery--2 .pcc-card-gallery-item {
  flex-basis: min(320px, calc((100% - 28px) / 2));
  max-width: min(320px, calc((100% - 28px) / 2));
}

.pcc-card-gallery--3 .pcc-card-gallery-item,
.pcc-card-gallery--rows .pcc-card-gallery-item {
  flex-basis: calc((100% - 84px) / 4);
  max-width: calc((100% - 84px) / 4);
}

.pcc-card-gallery--rows .pcc-card-gallery-item--occupy-2 {
  flex-basis: calc(((100% - 84px) / 4 * 2) + 28px);
  max-width: calc(((100% - 84px) / 4 * 2) + 28px);
}

.pcc-card-gallery--rows .pcc-card-gallery-item--occupy-3 {
  flex-basis: calc(((100% - 84px) / 4 * 3) + 56px);
  max-width: calc(((100% - 84px) / 4 * 3) + 56px);
}

.pcc-card-gallery--rows .pcc-card-gallery-item--occupy-4 {
  flex-basis: 100%;
  max-width: 100%;
}

.pcc-card-gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  max-height: var(--pcc-gallery-max-height, none);
}

.pcc-card-gallery-item video {
  width: 100%;
  max-width: 100%;
  height: 360px;
  min-height: 360px;
  object-fit: contain;
  object-position: var(--pcc-video-object-position, center center);
  display: block;
  background: #f6f6f6;
}

.pcc-card-gallery-item.is-hidden {
  display: none;
}

.pcc-gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.pcc-gallery-page-btn {
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #111;
  min-width: 76px;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}

.pcc-gallery-page-btn:disabled {
  color: #999;
  cursor: not-allowed;
  opacity: 0.55;
}

.pcc-gallery-page-status {
  min-width: 72px;
  text-align: center;
  font-size: 13px;
  color: #555;
}

.pcc-card-gallery-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 10px;
  text-align: center;
  align-items: center;
}

.pcc-card-gallery-amount {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
  color: #111;
}

.pcc-card-gallery-title {
  width: 100%;
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 400;
  color: #111;
  text-transform: capitalize;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pcc-card-gallery-subtitle {
  width: 100%;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700 !important;
  color: #111;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcc-card-gallery-empty {
  display: block;
  width: 100%;
  min-height: 220px;
  background: #f7f7f7;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .image-wrapper img {
  transform: scale(1.08);
}

/* Show full product image (no cut) in product grid */
.pcc-product-grid .image-wrapper{
  background:#fff;
}

.pcc-product-grid .image-wrapper img{
  object-fit: contain;
}

.pcc-product-grid .pcc-gallery-count-2 {
  max-width: 820px;
}

/*.pcc-product-grid .pcc-gallery-count-2 .pcc-card-gallery-item img,*/
/*.pcc-product-grid .pcc-gallery-count-3 .pcc-card-gallery-item img,*/
/*.pcc-product-grid .pcc-gallery-count-4 .pcc-card-gallery-item img,*/
/*.pcc-product-grid .pcc-gallery-count-5 .pcc-card-gallery-item img,*/
/*.pcc-product-grid .pcc-gallery-count-6 .pcc-card-gallery-item img,*/
/*.pcc-product-grid .pcc-card-gallery-item video {*/
/*  max-width: 100%;*/
/*  max-height: 360px !important;*/
/*  min-height: 360px !important;*/
/*}*/

/*.pcc-product-grid .pcc-gallery-count-2 .pcc-card-gallery-item img {*/
/*  max-height: 360px !important;*/
/*  min-height: 360px !important;*/
/*}*/

/*@media screen and (min-width: 760px) and (max-width: 1280px) {*/
/*  .pcc-product-grid .pcc-gallery-count-2 .pcc-card-gallery-item img,*/
/*  .pcc-product-grid .pcc-gallery-count-3 .pcc-card-gallery-item img,*/
/*  .pcc-product-grid .pcc-gallery-count-4 .pcc-card-gallery-item img,*/
/*  .pcc-product-grid .pcc-gallery-count-5 .pcc-card-gallery-item img,*/
/*  .pcc-product-grid .pcc-gallery-count-6 .pcc-card-gallery-item img,*/
/*  .pcc-product-grid .image-wrapper img {*/
/*    max-height: 300px !important;*/
/*    min-height: 300px !important;*/
/*  }*/
/*}*/

@media screen and (min-width: 1281px) {
  .pcc-product-grid .pcc-gallery-count-2 .pcc-card-gallery-item img,
  .pcc-product-grid .pcc-gallery-count-3 .pcc-card-gallery-item img,
  .pcc-product-grid .pcc-gallery-count-4 .pcc-card-gallery-item img,
  .pcc-product-grid .pcc-gallery-count-5 .pcc-card-gallery-item img,
  .pcc-product-grid .pcc-gallery-count-6 .pcc-card-gallery-item img,
  .pcc-product-grid .image-wrapper img {
    /* max-height: 500px !important; */
    /* min-height: 500px !important; */
  }
}

.pcc-product-grid .product-card:hover .image-wrapper img{
  transform: none;
}

.pcc-product-grid.is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pcc-products-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 36px auto 0;
  padding-top: 12px;
}

.pcc-products-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pcc-products-page-btn:hover,
.pcc-products-page-btn:focus,
.pcc-products-page-btn.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.pcc-products-page-btn:hover,
.pcc-products-page-btn:focus {
  transform: translateY(-1px);
}

.pcc-products-page-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.12);
}

.pcc-products-page-btn:disabled {
  cursor: progress;
  opacity: 0.65;
}

/* ================= CUSTOMIZE BUTTON ================= */
.customize-overlay {
  position: absolute;
  inset: auto 0 16px 0;
  display: flex;
  justify-content: center;
}

.customize-btn {
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s ease;
  text-decoration: none;
  color: #000;
  display: inline-block;
  cursor: pointer;
}

.pcc-quick-view-btn {
  background: #fff;
  border: 1px solid #ddd;
}

.product-card:hover .customize-btn {
  opacity: 1;
}

.customize-btn:hover {
  background: #f5f5f5;
  color: #000;
}

/* ================= CARD BODY ================= */
.card-body {
  padding: 12px 14px;
  text-align: left;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-brand {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.product-actions {
  display: flex;
  gap: 14px;
  font-size: 16px;
}

.product-actions i {
  cursor: pointer;
  color: #555;
  transition: color 0.2s ease;
}

.product-actions i:hover {
  color: #000;
}

.product-title {
  font-size: 14px;
  margin-top: 4px;
  text-align: left;
}

.product-title a {
  display: block;
  width: 100%;
  font-size: 24px;
  font-weight: 400;
  text-transform: capitalize;
  color: #333;
  text-decoration: none;
  text-align: left;
}

.product-title a:hover {
  color: #000;
}

.product-usage {
  font-size: 12.5px;
  color: #777;
  margin-top: 2px;
}

.product-price {
  font-size: 15px;
  font-weight: 600;
  margin-top: 6px;
  color: #333;
  text-align: left;
}

.product-colors {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid #ccc;
  transition: all 0.2s ease;
}

.color-swatch.active {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.color-swatch:hover {
  transform: scale(1.1);
}

/* ================= TOP CONTROLS ================= */
.pcc-top-controls {
  flex-wrap: wrap;
}

.pcc-view-toggle .btn {
  font-size: 13px;
  padding: 6px 12px;
}

.pcc-view-toggle .btn.active {
  background-color: #333;
  color: #fff;
  border-color: #333;
}

/* ================= MAIN LAYOUT ================= */
.pcc-main-layout {
  padding: 0 15px;
}

.pcc-main-layout .border {
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
  .pcc-filter-sticky {
    position: relative;
    top: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  body.tax-product_cat .pcc-product-grid .image-wrapper img,
  body.tax-product_cat .pcc-product-grid .pcc-card-gallery-item img,
  body.tax-product_cat .pcc-product-grid .product-item img {
    object-fit: fill !important;
  }

  .pcc-product-grid {
    gap: 16px;
    justify-content: space-between;
  }

  .pcc-product-grid .image-wrapper img {
    object-fit: fill !important;
    max-height: 360px !important;
    min-height: 360px !important;
  }

  .pcc-gallery-wrapper > a {
    display: flex;
    justify-content: center;
  }

  .pcc-card-gallery {
    gap: 6px;
    width: 100%;
    justify-content: center;
  }

  .pcc-card-gallery-item,
  .pcc-card-gallery--3 .pcc-card-gallery-item,
  .pcc-card-gallery--rows .pcc-card-gallery-item {
    flex-basis: 40%;
    max-width: 40%;
    aspect-ratio: 4 / 5;
  }

  .pcc-card-gallery--2 .pcc-card-gallery-item {
    flex-basis: 40%;
    max-width: 40%;
    aspect-ratio: 4 / 5;
  }

  .pcc-card-gallery--1 .pcc-card-gallery-item {
    flex-basis: 40%;
    max-width: 40%;
  }

  .pcc-card-gallery-item img {
    width: 100%;
    height: 400px;
    min-height: 390px !important;
    object-fit: contain;
    max-height: 400px;
  }

  .pcc-card-gallery-item video {
    width: 100%;
    height: 400px;
    min-height: 390px !important;
    object-fit: contain;
    max-height: 400px;
  }

  .pcc-card-gallery-copy {
    margin-top: 8px;
  }

  .pcc-card-gallery-amount {
    font-size: 12px;
  }

  .pcc-card-gallery-title {
    font-size: 12px;
  }

  .pcc-card-gallery-subtitle {
    font-size: 12px;
  }

  .card-body {
    padding: 8px 8px 4px;
  }

  .product-title {
    margin-top: 2px;
  }

  .product-title a {
    font-size: 16px;
    line-height: 1.25;
  }

  .product-price {
    margin-top: 4px;
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .product-item--mobile .pcc-card-gallery {
    gap: 0;
    justify-content: center;
  }

  .product-item--mobile .pcc-card-gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .product-item--mobile .pcc-card-gallery--1 .pcc-card-gallery-item {
    flex-basis: 100%;
    max-width: 100%;
    aspect-ratio: auto;
  }

  .product-item--mobile .pcc-card-gallery-copy {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    text-align: left;
  }

  .product-item--mobile .pcc-card-gallery-media {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .product-item--mobile .pcc-card-gallery-title,
  .product-item--mobile .pcc-card-gallery-subtitle {
    width: 100%;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
  }

  .product-item--mobile .pcc-card-gallery-amount,
  .product-item--mobile .pcc-card-gallery-title,
  .product-item--mobile .pcc-card-gallery-subtitle {
    padding-inline: 4px;
  }

  .pcc-card-gallery--1.pcc-card-gallery--mobile-slot-left {
    justify-content: flex-start;
  }

  .pcc-card-gallery--1.pcc-card-gallery--mobile-slot-right {
    justify-content: flex-end;
  }

  .pcc-card-gallery--3.pcc-card-gallery--mobile-trailing-left,
  .pcc-card-gallery--3.pcc-card-gallery--mobile-trailing-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 40%));
    justify-content: center;
    column-gap: 6px;
    row-gap: 6px;
  }

  .pcc-card-gallery--3.pcc-card-gallery--mobile-trailing-left .pcc-card-gallery-item,
  .pcc-card-gallery--3.pcc-card-gallery--mobile-trailing-right .pcc-card-gallery-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .pcc-card-gallery--3.pcc-card-gallery--mobile-trailing-left .pcc-card-gallery-item:last-child {
    grid-column: 1;
  }

  .pcc-card-gallery--3.pcc-card-gallery--mobile-trailing-right .pcc-card-gallery-item:last-child {
    grid-column: 2;
  }

  .pcc-card-gallery-item img {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 400px !important;
    min-height: 390px !important;
    object-fit: fill !important;
    max-height: 400px !important;
  }

  .pcc-card-gallery-item video {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 400px !important;
    min-height: 390px !important;
    object-fit: contain !important;
    max-height: 400px !important;
  }

  .term-183 .pcc-card-gallery-item img,
  .term-183 .pcc-product-grid .product-item img,
  .term-135 .pcc-card-gallery-item img,
  .term-135 .pcc-product-grid .product-item img {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 400px !important;
    min-height: 390px !important;
    max-height: 400px !important;
    object-fit: fill !important;
  }
}

@media (max-width: 768px) {
  .pcc-top-controls {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 15px;
  }
  
  .pcc-view-toggle {
    width: 100%;
  }
  
  .pcc-view-toggle .btn {
    flex: 1;
  }
}
