@charset "UTF-8";

main.archive-product {
  padding-top: calc(var(--top-bar-height) + var(--header-height) + 30px);

  padding-left: var(--space-4);
  padding-right: var(--space-4);

  @media (max-width: 768px) {
    padding: 0;
  }
}

/* Header Section: Two Column Layout */
.archive-product-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.archive-product-header.is-sale {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-12);
  margin-top: var(--space-6);
  padding: clamp(2rem, 5vw, 1.5rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--secondary);
  color: var(--white);
}

.archive-product-header.is-sale .archive-product-breadcrumbs,
.archive-product-header-sale-eyebrow,
.archive-product-header.is-sale .archive-product-header-left h1,
.archive-product-header-sale-message,
.archive-product-header.is-sale .archive-product-description-accordion {
  position: relative;
  z-index: 1;
}

.archive-product-header.is-brand .archive-product-breadcrumbs,
.archive-product-header.is-brand .archive-product-breadcrumbs a {
  color: rgba(255, 255, 255, 0.72);
}

.archive-product-header.is-brand .archive-product-header-left,
.archive-product-header.is-brand .archive-product-header-right {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 48rem;
}

.archive-product-header.is-brand .archive-product-header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.archive-product-header.is-brand .archive-product-header-left h1 {
  margin: 0;
  color: var(--white);
  font-size: var(--h2-lg-size);
  line-height: var(--h2-lg-height);
}

.archive-product-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  min-height: 5rem;
  margin: 0 0 var(--space-4);
  padding: 0.75rem 1rem;
}

.archive-product-brand-logo img {
  display: block;
  width: auto;
  max-width: 13rem;
  max-height: 3.5rem;
  object-fit: contain;
  object-position: left center;
}

.archive-product-header.is-sale
  .archive-product-breadcrumbs
  .woocommerce-breadcrumb,
.archive-product-header.is-sale
  .archive-product-breadcrumbs
  .woocommerce-breadcrumb
  a {
  color: rgba(255, 255, 255, 0.78);
}

.archive-product-header-sale-eyebrow {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.archive-product-header.is-sale .archive-product-header-left h1 {
  display: inline-block;
  width: fit-content;
  margin: 0;
  padding: 0.08em 0.16em 0.12em;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--white);
  background: var(--primary);
  text-transform: uppercase;
}

.archive-product-header-sale-message {
  max-width: 48rem;
  margin: 0 0 var(--space-4);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
}

.archive-product-header.is-sale .archive-product-header-left,
.archive-product-header.is-sale .archive-product-header-right {
  width: 100%;
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.archive-product-header.is-sale .archive-product-header-right {
  padding-top: calc(var(--text-sm) + var(--space-3));
}

.archive-product-header-left h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: var(--font-weight-heading);
  line-height: 1.2;
}

.archive-product-header.is-brand {
  position: relative;
  overflow: hidden;
  align-items: center;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-10);
  margin-top: var(--space-6);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #313131;
  color: var(--white);
}

.archive-product-header.is-brand .archive-product-breadcrumbs,
.archive-product-header.is-brand .archive-product-breadcrumbs a {
  color: rgba(255, 255, 255, 0.72);
}

.archive-product-header.is-brand .archive-product-header-left,
.archive-product-header.is-brand .archive-product-header-right {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 48rem;
}

.archive-product-header.is-brand .archive-product-header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.archive-product-header.is-brand .archive-product-header-left h1 {
  margin: 0;
  color: var(--white);
  font-size: var(--h2-lg-size);
  line-height: var(--h2-lg-height);
}

.archive-product-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  min-height: 5rem;
  margin: 0 0 var(--space-4);
  padding: 0.75rem 1rem;
}

.archive-product-brand-logo img {
  display: block;
  width: auto;
  max-width: 13rem;
  max-height: 3.5rem;
  object-fit: contain;
  object-position: left center;
}

.archive-product-header.is-brand .archive-product-header-right {
  display: flex;
  justify-content: flex-end;
}

.archive-product-header.is-brand .archive-product-description-accordion {
  width: 100%;
  max-width: 64ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.archive-product-header.is-brand .archive-product-description-content > * {
  max-width: 100%;
}

.archive-product-header.is-brand .archive-product-description-content p {
  margin: 0 0 var(--space-3);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.archive-product-header.is-brand .archive-product-description-content h2,
.archive-product-header.is-brand .archive-product-description-content h3,
.archive-product-header.is-brand .archive-product-description-content h4 {
  margin: var(--space-4) 0 var(--space-2);
  color: var(--white);
  font-weight: var(--font-weight-heading);
  line-height: var(--leading-tight);
}

.archive-product-header.is-brand .archive-product-description-content h2 {
  font-size: var(--h4-lg-size);
}

.archive-product-header.is-brand .archive-product-description-content h3 {
  font-size: var(--h5-lg-size);
}

.archive-product-header.is-brand .archive-product-description-content ul,
.archive-product-header.is-brand .archive-product-description-content ol {
  margin: 0 0 var(--space-3);
  padding-left: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.archive-product-header.is-brand .archive-product-description-content a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.archive-product-header.is-brand
  .archive-product-description-accordion.is-collapsed
  .archive-product-description-content {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.archive-product-header.is-brand
  .archive-product-description-accordion.is-collapsed
  .archive-product-description-more {
  display: none;
}

.archive-product-header.is-brand
  .archive-product-description-accordion.is-expanded
  .archive-product-description-content {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.archive-product-header.is-brand
  .archive-product-description-accordion.is-expanded
  .archive-product-description-more {
  display: block;
  margin-top: var(--space-3);
}

.archive-product-header.is-brand
  .archive-product-description-content
  > :last-child {
  margin-bottom: 0;
}

.archive-product-header.is-brand .archive-product-description-toggle {
  margin-top: var(--space-2);
  padding: 0;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.archive-product-subcategory-shortcuts {
  margin: 0 0 var(--space-5);
  margin-top: 2rem;
}

.archive-product-subcategory-shortcuts h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--h5-lg-size);
  font-weight: var(--font-weight-heading);
  line-height: var(--h5-lg-height);
}

.archive-product-subcategory-shortcuts ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-product-subcategory-shortcuts li {
  min-width: 0;
}

.archive-product-subcategory-shortcuts a {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  gap: var(--space-3);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.archive-product-subcategory-shortcuts a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.archive-product-subcategory-shortcut-image {
  display: block;
  width: 3rem;
  height: 2.5rem;
  flex: 0 0 3rem;
  overflow: hidden;
  background: var(--background-color-2, #f3f3f3);
}

.archive-product-subcategory-shortcut-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-product-subcategory-shortcut-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
}

.archive-product-subcategory-shortcut-arrow {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--primary);
}

.archive-product-brand-description {
  max-width: 80ch;
  margin-inline: auto;
  padding-top: var(--space-10);
  padding-bottom: var(--space-12);
  color: var(--text);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  scroll-margin-top: calc(var(--header-height, 0px) + var(--space-4));
}

.archive-product-brand-description h2 {
  margin: 0 0 var(--space-5);
  font-size: var(--h2-lg-size);
  font-weight: var(--font-weight-heading);
  line-height: var(--h2-lg-height);
}

.archive-product-brand-description-content > * {
  max-width: 100%;
}

.archive-product-brand-description-content p {
  margin: 0 0 var(--space-4);
  color: var(--text);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.archive-product-brand-description-content h2,
.archive-product-brand-description-content h3,
.archive-product-brand-description-content h4 {
  margin: var(--space-8) 0 var(--space-3);
  color: var(--text);
  font-weight: var(--font-weight-heading);
  line-height: var(--leading-tight);
}

.archive-product-brand-description-content h2 {
  font-size: var(--h3-lg-size);
  line-height: var(--h3-lg-height);
}

.archive-product-brand-description-content h3 {
  font-size: var(--h4-lg-size);
  line-height: var(--h4-lg-height);
}

.archive-product-brand-description-content ul,
.archive-product-brand-description-content ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.5rem;
}

.archive-product-brand-description-content li {
  margin-bottom: var(--space-2);
  line-height: var(--leading-relaxed);
}

.archive-product-brand-description-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.archive-product-brand-description-content > :first-child {
  margin-top: 0;
}

.archive-product-brand-description-content > :last-child {
  margin-bottom: 0;
}

.archive-product-description-content {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.archive-product-description-toggle {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: all 0.3s ease;
}

.archive-product-description-toggle:hover {
  text-decoration: underline;
}

.archive-product-description-toggle .chevron-icon {
  transition: transform 0.3s ease;
}

.archive-product-description-accordion.is-expanded
  .archive-product-description-toggle
  .chevron-icon {
  transform: rotate(180deg);
}

.archive-product-description-accordion.is-expanded::after {
  display: none;
}

/* Category Filter Navigation */
.archive-product-category-filter {
  margin-bottom: var(--space-1);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-dark);
  position: relative;

  @media (max-width: 768px) {
    margin-bottom: var(--space-4);
  }
}

/* Mobile filter toggle button */
.archive-product-filter-toggle {
  display: none;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  color: var(--text);
  border: none;
  border-radius: var(--border-radius-lg);
  font-size: var(--text-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--border-dark);
  align-items: center;
  justify-content: space-between;
}

.archive-product-filter-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.archive-product-filter-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.archive-product-filter-toggle.active svg {
  transform: rotate(180deg);
}

.archive-product-category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-product-category-list li {
  margin: 0;
}

.archive-product-category-list li a {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.archive-product-category-list li.active a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  font-weight: 600;
}

.archive-product-category-list li a:hover {
  color: var(--primary);
}

/* Product Count Section */
.archive-product-product-count {
  display: flex;
  align-items: center;
  justify-content: end;
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-);
  border-radius: var(--border-radius-smort);
  font-size: var(--text-sm);
  color: var(--text-muted, #666);
  font-family: var(--font-body);
  gap: 0.4rem;
}

/* ============================================================
   Sidebar + main content layout
   ============================================================ */
.archive-product-content-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-5);
  align-items: start;
  padding-bottom: var(--space-10);
}

.archive-product-content-layout.is-no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.archive-product-sidebar {
  position: sticky;
  top: calc(var(--top-bar-height, 0px) + var(--header-height, 80px) + 58px);
  max-height: calc(
    100vh - (var(--top-bar-height, 0px) + var(--header-height, 80px) + 32px)
  );
  max-height: calc(
    100dvh - (var(--top-bar-height, 0px) + var(--header-height, 80px) + 32px)
  );
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;

  &::-webkit-scrollbar {
    display: none;
  }
}

.archive-product-main {
  min-width: 0; /* prevent grid blow-out */
}

.archive-product-product-count strong {
  font-weight: 600;
}

.archive-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-20);

  .product-item {
    overflow: hidden;
    height: 100%;
  }

  .product-item-card {
    height: 100%;
  }

  .archive-product-category-tile {
    display: block;
    position: relative;
    grid-column: 3 / span 2;
    grid-row: 2;
    align-self: stretch;
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    overflow: hidden;
    background: var(--black, #111);
  }

  .archive-product-category-tile img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
  }

  @media (max-width: 1024px) {
    gap: var(--space-2);

    .archive-product-category-tile {
      grid-column: 1 / -1;
      grid-row: auto;
      align-self: start;
      aspect-ratio: 16 / 9;
      min-height: 0;
    }
  }
}

.archive-product-results .woocommerce-pagination {
  display: none;
}

.archive-product-text-under-loop-wrapper {
  border-top: 1px solid var(--black);
  /* border-bottom: 1px solid var(--black); */
  margin-top: var(--space-20);

  padding-top: var(--space-10);

  .container {
    display: flex;
    justify-content: center;
  }
}

/* Content wrapper (FAQ + Text under loop) */
.archive-product-content-wrapper {
  padding-block: var(--space-8);
  background: transparent;
}

/* FAQ section */
.archive-product-faq {
  margin-bottom: var(--space-8);
}

.archive-product-faq-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 0;
  padding-bottom: var(--space-4);
  text-align: start;
  color: var(--text);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-dark);
}

.archive-product-faq-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.archive-product-faq-item {
  border-bottom: 1px solid var(--border-dark);
  overflow: hidden;
  transition: all 0.3s ease;
}

.archive-product-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  background-color: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s ease;
}

.archive-product-faq-question svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.archive-product-faq-item.active .archive-product-faq-question svg {
  transform: rotate(45deg);
}

.archive-product-faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  stroke: var(--primary);
}

.archive-product-faq-item.active .archive-product-faq-icon {
  transform: rotate(180deg);
  stroke: var(--accent-color);
}

.archive-product-faq-item.active .archive-product-faq-question {
  color: var(--accent-color);
}

.archive-product-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.archive-product-faq-item.active .archive-product-faq-answer {
  max-height: 1000px;
}

.archive-product-faq-answer-content {
  padding: 0 0 var(--space-4) 0;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-color);
}

.archive-product-faq-answer-content p {
  margin-bottom: var(--space-3);
}

.archive-product-faq-answer-content p:last-child {
  margin-bottom: 0;
}

/* Text under loop section */
.archive-product-text-under-loop {
  padding-block: var(--space-6);
  max-width: 100ch;
  margin: 0 auto;
  position: relative;
}

.archive-product-text-under-loop-content {
  max-height: none;
  overflow: visible;
  position: relative;
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text);
}

.archive-product-text-under-loop-content p {
  margin-bottom: var(--space-3);
}

.archive-product-text-under-loop-content p:last-child {
  margin-bottom: 0;
}

.archive-product-text-under-loop-content strong {
  font-weight: 700;
}

/* CTA 50/50 Section */
.archive-product-cta {
  padding: var(--space-16) 0;
  margin-top: var(--space-10);
  background-image: url("/wp-content/themes/smort-tema/assets/img/elements/pattern-parkys.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.archive-product-cta-grid {
  display: grid;
  grid-template-columns: 2.5fr 1.5fr;
  gap: var(--space-4);
  align-items: center;
}

.archive-product-cta-content {
  padding: var(--space-8);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  background-color: #f0f0f0;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.archive-product-cta-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  margin-bottom: var(--space-10);
  color: var(--text);
  line-height: 1.2;
}

.archive-product-cta-description {
  font-size: var(--text-lg);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  color: var(--text-secondary);
  width: 80%;
}

.archive-product-cta-description p {
  margin: 0;
}

.archive-product-cta-button {
  margin-top: var(--space-6);
}

.archive-product-cta-image {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  min-height: 550px;
  height: 100%;
  width: 100%;
}

.archive-product-cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-product-cta-contact {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-1);
}

.archive-product-cta-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all 0.2s ease;
  background-color: var(--primary);
  padding: var(--space-4) var(--space-4);
  border-radius: 100%;
}

.archive-product-cta-contact-item:hover {
  color: var(--primary);
}

.archive-product-cta-contact-item svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .archive-product-cta-contact {
    flex-direction: column;
    gap: var(--space-4);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .archive-product-cta-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .archive-product-cta-content {
    padding: 0;
  }

  .archive-product-cta-title {
    font-size: var(--text-2xl);
  }

  .archive-product-cta-description {
    font-size: var(--text-base);
  }
}

@media (width <= 1024px) {
  .archive-product-header {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .archive-product-category-list {
    gap: var(--space-4);
  }

  .archive-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .archive-product-sidebar {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
  }
}

@media (width <= 768px) {
  .archive-product-category-filter,
  .archive-product-sidebar {
    display: none;
  }

  .archive-product-header {
    padding: var(--space-6) 0;
  }

  .archive-product-header.is-sale {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    padding: 2.5rem 1.25rem;
  }

  .archive-product-header.is-sale .archive-product-header-right {
    padding-top: 0;
  }

  .archive-product-header.is-sale .archive-product-header-left h1 {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .archive-product-header-sale-message {
    font-size: var(--text-lg);
  }

  .archive-product-header-left h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  /* Show mobile filter toggle button */
  .archive-product-filter-toggle {
    display: flex;
    margin-bottom: var(--space-3);
  }

  /* Hide category list by default on mobile */
  .archive-product-category-list {
    display: none;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-3);
    padding: var(--space-4);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  /* Show category list when active */
  .archive-product-category-list.active {
    display: flex;
  }

  .archive-product-category-list li a {
    display: block;
    padding: var(--space-3);
    background: var(--white);
    border-radius: var(--border-radius);
    border: 2px solid var(--color-border-light);
    text-align: center;
    transition: all 0.3s ease;
  }

  .archive-product-category-list li.active a {
    border-color: var(--primary);
    background: linear-gradient(
      135deg,
      var(--primary) 0%,
      var(--accent-color) 100%
    );
    color: var(--white);
  }

  .archive-product-category-list li a:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .archive-product-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: min-content;
    align-content: start;
    row-gap: var(--space-2);
  }

  .archive-product-grid > .archive-product-category-tile {
    grid-column: 1 / -1;
    grid-row: auto;
    align-self: start;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
  }

  .archive-product-grid > .archive-product-category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .archive-product-grid .product-item-card > a {
    min-height: 0;
  }

  .archive-product-grid .product-item-title-container > * {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
  }

  .archive-product-content-wrapper {
    padding-block: var(--space-6);
  }

  .archive-product-faq-title {
    font-size: var(--text-sm);
    padding-bottom: var(--space-3);
  }

  .archive-product-faq-question {
    font-size: var(--text-base);
    padding: var(--space-3) 0;
  }

  .archive-product-text-under-loop {
    padding-block: var(--space-5);
  }

  .archive-product-text-under-loop-content {
    font-size: var(--text-base);
    line-height: 1.6;
  }
}

@media (width <= 480px) {
  .archive-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.woocommerce-result-count,
.woocommerce-ordering {
  display: none !important;
}

/* ==========================================================================
   PRODUCT FILTER PLUGIN STYLING (prdctfltr)
   ========================================================================== */

/* Main filter container */
.prdctfltr_wc {
  margin-bottom: var(--space-6);
  z-index: 0;
}

/* Filter wrapper - horizontal layout */
.prdctfltr_wc .prdctfltr_filter_wrapper {
  display: flex !important;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: center;
  margin-top: var(--space-6);
}

.prdctfltr_wc .prdctfltr_filter_inner {
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Each filter item */
.prdctfltr_wc .prdctfltr_filter {
  position: relative;
  flex: 0 0 auto;
}

/* Filter button/trigger - the clickable title */
.prdctfltr_wc .prdctfltr_regular_title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 140px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  height: 48px;
}

.prdctfltr_wc .prdctfltr_regular_title:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Hide the default icon */
.prdctfltr_wc .prdctfltr_regular_title i,
.prdctfltr_wc .prdctfltr_regular_title .prdctfltr-down {
  background-color: var(--primary);
  border-radius: 50%;
  padding: 6px 12px;
  color: var(--white);
  position: absolute;
  top: 4px !important;
  right: 16px !important;
}

.prdctfltr-down:before {
  font-size: 20px !important;
}

.prdctfltr-up:before {
  font-size: 20px !important;
}

/* Orange circle with arrow - using ::after */
.prdctfltr_wc .prdctfltr_regular_title::after {
  content: "";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #f6b055 0%, #f59e3d 100%);
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease;
}

/* Arrow rotation when filter is open/active */
.prdctfltr_wc
  .prdctfltr_filter.prdctfltr_active
  .prdctfltr_regular_title::after,
.prdctfltr_wc
  .prdctfltr_filter.prdctfltr_click
  .prdctfltr_regular_title::after {
  transform: rotate(180deg);
  padding: 6px 12px;
}

/* Active filter styling */
.prdctfltr_wc .prdctfltr_filter.prdctfltr_active .prdctfltr_regular_title {
  border-color: var(--primary);
  background: rgba(246, 176, 85, 0.05);
}

/* Dropdown panel */
.prdctfltr_wc .prdctfltr_add_scroll {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  padding: var(--space-4);
  z-index: 100;
  overflow-y: auto;
}

/* Checkbox/option items in dropdown */
.prdctfltr_wc .prdctfltr_add_scroll label,
.prdctfltr_wc .prdctfltr_checkboxes label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: var(--text-sm);
  color: var(--text);
}

.prdctfltr_wc .prdctfltr_add_scroll label:hover,
.prdctfltr_wc .prdctfltr_checkboxes label:hover {
  background: var(--accent);
}

/* Checkbox styling */
.prdctfltr_wc input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Clear/Reset button */
.prdctfltr_wc .prdctfltr_reset,
.prdctfltr_wc .prdctfltr_clear {
  padding: var(--space-2) var(--space-4);
  background: var(--accent);
  border: none;
  border-radius: 50px;
  font-size: var(--text-sm);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.prdctfltr_wc .prdctfltr_reset:hover,
.prdctfltr_wc .prdctfltr_clear:hover {
  background: var(--border-light);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .prdctfltr_wc .prdctfltr_filter_inner {
    flex-direction: column;
    align-items: stretch;
  }

  .prdctfltr_wc .prdctfltr_regular_title {
    width: 100%;
    justify-content: space-between;
  }

  .prdctfltr_wc .prdctfltr_add_scroll {
    position: relative;
    width: 100%;
    margin-top: var(--space-2);
    box-shadow: none;
    border: 1px solid var(--border-light);
  }
}

/* ── Sidebar layout: collapse to single column on mobile ──── */
@media (max-width: 768px) {
  .archive-product-subcategory-shortcuts {
    margin-bottom: var(--space-4);
  }

  .archive-product-subcategory-shortcuts ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
  }

  .archive-product-subcategory-shortcuts a {
    min-height: 3rem;
    gap: 0.35rem;
    padding: 0.4rem;
  }

  .archive-product-subcategory-shortcut-image {
    width: 2.25rem;
    height: 2rem;
    flex-basis: 2.25rem;
  }

  .archive-product-subcategory-shortcut-name {
    font-size: var(--text-xs);
  }

  .archive-product-header.is-brand {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-3);
    padding: 1.25rem;
  }

  .archive-product-header.is-brand .archive-product-header-left h1 {
    font-size: var(--h3-sm-size);
    line-height: var(--h3-sm-height);
  }

  .archive-product-brand-logo {
    min-width: 5.5rem;
    min-height: 3.5rem;
    margin-bottom: var(--space-3);
    padding: 0.5rem 0.75rem;
  }

  .archive-product-brand-logo img {
    max-width: min(100%, 9rem);
    max-height: 2.5rem;
  }

  .archive-product-header.is-brand .archive-product-header-right {
    justify-content: flex-start;
    padding-top: 0;
  }

  .archive-product-brand-description {
    padding: var(--space-6) var(--space-4);
    font-size: var(--text-sm);
  }

  .archive-product-brand-description h2 {
    margin-bottom: var(--space-4);
    font-size: var(--h2-sm-size);
    line-height: var(--h2-sm-height);
  }

  .archive-product-brand-description-content h2 {
    font-size: var(--h3-sm-size);
    line-height: var(--h3-sm-height);
  }

  .archive-product-brand-description-content h3 {
    font-size: var(--h4-sm-size);
    line-height: var(--h4-sm-height);
  }

  .archive-product-header.is-brand .archive-product-description-content p {
    font-size: var(--text-sm);
  }

  .archive-product-content-layout {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .archive-product-sidebar {
    position: static;
  }
}

/* ============================================================
   Läs mer / Läs mindre på plats (kategori, varumärke, REA)
   ============================================================ */
.archive-product-description-accordion.is-expanded
  .archive-product-description-content {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.archive-product-description-content {
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (width > 768px) {
  .archive-product-header.is-category:has(
      .archive-product-description-accordion.is-expanded
    )
    .archive-product-header-right {
    grid-column: 1 / -1;
    max-width: none;
  }
}

/* REA/kampanjkategori: samma tvåspaltslayout som andra kategorier (rubrik vänster, text höger),
   ljus text på mörk bakgrund. På mobil hamnar texten under rubriken. */
.archive-product-header.is-sale .archive-product-header-right:not(:has(*)) {
  display: none;
}

.archive-product-header.is-sale .archive-product-description-content,
.archive-product-header.is-sale .archive-product-description-content * {
  color: rgba(255, 255, 255, 0.9) !important;
}

.archive-product-header.is-sale .archive-product-description-content p {
  margin: 0 0 var(--space-3);
  line-height: 1.6;
}

.archive-product-header.is-sale .archive-product-description-toggle {
  margin-top: var(--space-2);
  padding: 0;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (width <= 768px) {
  .archive-product-header.is-sale {
    gap: var(--space-4);
  }
}

/* ------------------------------------------------------------------
   Hela bilder på arkivsidorna (kategori, varumärke, REA)
   Bilderna skalas in i rutan i stället för att beskäras. Rutornas
   storlek är oförändrad; tom yta fylls med neutral bakgrund.
   ------------------------------------------------------------------ */

/* Produktkort i rutnätet */
.archive-product-grid .product-item-card > a {
  background-color: var(--white, #fff);
}

.archive-product-grid .product-item-card img {
  object-fit: contain;
  object-position: center;
}

/* Kategoribilden i rutnätet */
.archive-product-grid .archive-product-category-tile,
.archive-product-grid > .archive-product-category-tile {
  background: var(--background-color-2, #f3f3f3);
}

.archive-product-grid .archive-product-category-tile img,
.archive-product-grid > .archive-product-category-tile img {
  object-fit: contain;
  object-position: center;
}

/* Underkategorier (genvägar ovanför rutnätet) */
.archive-product-subcategory-shortcuts
  .archive-product-subcategory-shortcut-image {
  background: var(--white, #fff);
}

.archive-product-subcategory-shortcuts
  .archive-product-subcategory-shortcut-image
  img {
  object-fit: contain;
  object-position: center;
}

/* ============================================================
   Kategoritexter: rubriker, stycken och listor
   (överst i rubrikytan och i #archive-text-under-loop).
   Temat nollställer list-style globalt, så punkter/siffror
   läggs tillbaka här – bara inom textytorna.
   ============================================================ */
.archive-product-description-content :is(p, ul, ol) {
  margin: 0 0 var(--space-3);
}

.archive-product-description-content :is(h2, h3, h4, h5) {
  margin: var(--space-6) 0 var(--space-2);
  font-style: normal;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  line-height: var(--leading-snug);
}

.archive-product-description-content h2 {
  font-size: var(--h5-lg-size);
}

.archive-product-description-content :is(h3, h4, h5) {
  margin-top: var(--space-4);
  font-size: var(--text-lg);
}

.archive-product-description-content h2 + :is(h3, h4, h5) {
  margin-top: var(--space-3);
}

.archive-product-description-content p {
  line-height: var(--leading-relaxed);
}

.archive-product-description-content > :first-child,
.archive-product-brand-description-content > :first-child {
  margin-top: 0;
}

.archive-product-description-content > :last-child {
  margin-bottom: 0;
}

.archive-product-description-content :is(ul, ol),
.archive-product-brand-description-content :is(ul, ol) {
  padding-left: 1.5rem;
}

.archive-product-description-content ul,
.archive-product-brand-description-content ul {
  list-style: disc outside;
}

.archive-product-description-content ol,
.archive-product-brand-description-content ol {
  list-style: decimal outside;
}

.archive-product-description-content li,
.archive-product-brand-description-content li {
  display: list-item;
  margin-bottom: var(--space-1);
  padding-left: var(--space-1);
}

.archive-product-description-content li::marker,
.archive-product-brand-description-content li::marker {
  color: currentColor;
}

.archive-product-brand-description-content h2 + h3 {
  margin-top: var(--space-4);
}

@media (width <= 768px) {
  .archive-product-description-content h2 {
    font-size: var(--text-xl);
  }

  .archive-product-description-content :is(h3, h4, h5) {
    font-size: var(--text-base);
  }

  .archive-product-description-content :is(ul, ol) {
    font-size: var(--text-sm);
  }
}
