:root {
  --orange: #f56a16;
  --text: #111318;
  --muted: #687080;
  --border: #e8e9ec;
  --green: #16a34a;
  --navy: #101b2c;
}

.shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  font-family: var(--font-family);
}

.hero {
  position: relative;
  width: 100%;
  margin: 0 auto 32px auto;
  min-height: 420px;
  height: auto;
  aspect-ratio: 2.85 / 1;
  background-color: #F8F3EE;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

@media (min-width: 1024px) {
  .hero {
    min-height: 420px;
    aspect-ratio: 2.85 / 1;
  }
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  image-rendering: -webkit-optimize-contrast;
}

.hero-copy {
  position: relative;
  z-index: 10;
  width: 50%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 44px 0 0 44px;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  .hero-copy {
    padding: 48px 0 0 48px;
    max-width: 580px;
    width: 50%;
  }
}

.hero-copy h1 {
  font-family: var(--font-heading, system-ui, -apple-system, sans-serif);
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 3.8vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #111827;
  text-align: left;
}

.hero-copy p {
  font-family: var(--font-body, system-ui, -apple-system, sans-serif);
  margin: 0 0 6px;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.55;
  color: #1f2937;
  max-width: 100%;
  text-align: left;
  font-weight: 500;
}

.hero-features {
  position: absolute;
  bottom: 26px;
  left: 44px;
  right: auto;
  width: auto;
  max-width: calc(100% - 88px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  z-index: 15;
  box-sizing: border-box;
}

@media (min-width: 1200px) {
  .hero-features {
    left: 48px;
    bottom: 28px;
    padding: 15px 30px;
    gap: 36px;
  }
}

/* Putty & Plaster specific 2x2 compact card to avoid overlapping bucket */
.hero[data-category*="putty"] .hero-features {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 24px;
  padding: 14px 22px;
  border-radius: 16px;
  max-width: 375px;
  width: auto;
  bottom: 24px;
  left: 44px;
}

@media (min-width: 1200px) {
  .hero[data-category*="putty"] .hero-features {
    left: 48px;
    bottom: 26px;
    padding: 14px 24px;
    gap: 14px 28px;
    max-width: 390px;
  }
}

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

.feature-icon {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 0;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: #111827;
  display: block;
}

.feature b {
  font-family: var(--font-heading, system-ui, -apple-system, sans-serif);
  font-size: 12.5px;
  font-weight: 700;
  color: #111827;
  display: block;
  line-height: 1.25;
  white-space: nowrap;
}

.feature small {
  font-family: var(--font-body, system-ui, -apple-system, sans-serif);
  font-size: 11px;
  font-weight: 500;
  color: #4b5563;
  display: block;
  line-height: 1.25;
  white-space: nowrap;
}

/* Subcategory Section with Circular Design */
.category-section {
  margin-bottom: 36px;
  text-align: center;
}

.category-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: #111827;
  text-align: center;
}

.category-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  margin: 0 auto 12px;
  flex-wrap: wrap;
  max-width: 100%;
}

.category-row .category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 125px !important;
  min-width: 125px;
  max-width: 125px;
  flex: 0 0 125px !important;
  padding: 0;
  box-sizing: border-box;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  border: none;
  outline: none;
  user-select: none;
}

.category-row .category-img-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transform: translateZ(0);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, background-color 0.2s ease;
  padding: 0;
  box-sizing: border-box;
}

.category-row .category-image,
.category-row .category-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-row .category-card:hover .category-img-wrapper {
  transform: translateY(-4px);
  border-color: #CBD5E1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}

.category-row .category-card:hover strong {
  color: #111827;
}

.category-row .category-card.active .category-img-wrapper {
  transform: translateY(-4px);
  border-color: #CBD5E1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
  background-color: #FFFFFF;
}

.category-row .category-card.active:hover .category-img-wrapper {
  transform: translateY(-4px);
  border-color: #CBD5E1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}

.category-row .category-card.active strong {
  color: #111827;
  font-weight: 800;
}

.category-row .category-card strong {
  font-family: var(--font-heading);
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.category-row .category-card span {
  font-family: var(--font-body);
  display: block;
  margin-top: 3px;
  color: #64748B;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
}

/* Catalog & Filters */
.catalog {
  display: grid;
  grid-template-columns: 215px 1fr;
  gap: 30px;
}

.filters {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 16px;
  align-self: start;
}

.filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
}

.filter-head h2,
.filter-head span {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
}

.filter-head button {
  border: 0;
  background: none;
  color: #64748B;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.filter-head button:hover {
  color: var(--orange);
}

.filter-group {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.filter-group h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 10px;
  display: flex;
  justify-content: space-between;
}

.check {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #334155;
}

.check label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.check em {
  font-style: normal;
  font-size: 11.5px;
  color: #94A3B8;
}

.more {
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
}

.support-box {
  margin-top: 20px;
  background: #FFF7F2;
  border-radius: 16px;
  padding: 18px 16px 16px;
  border: 1px solid #FFE8DC;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.support-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.support-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-wa-icon {
  width: 36px;
  height: 36px;
  display: block;
}

.support-title {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
}

.support-desc {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  line-height: 1.45;
  margin: 12px 0 16px 0;
}

.support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #16A34A;
  color: #FFFFFF !important;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
  cursor: pointer;
  border: none;
  width: 100%;
  box-sizing: border-box;
  letter-spacing: 0.01em;
}

.support-btn:hover {
  background-color: #15803D;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.35);
}

.support-btn svg {
  flex-shrink: 0;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.results-head > div {
  display: flex;
  align-items: baseline;
  gap: 13px;
}

.results-head h2 {
  font-family: var(--font-heading);
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.results-head span {
  font-family: var(--font-body);
  color: #64748B;
  font-size: 13px;
  font-weight: 500;
}

.results-head select {
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  padding: 0 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: #1E293B;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  grid-auto-flow: row;
  overflow: visible;
}

@media (max-width: 1023px) {
  .shell {
    width: min(100% - 40px, 1100px);
  }
  .hero {
    position: relative;
    width: 100%;
    height: auto;
    min-height: unset;
    aspect-ratio: 1024 / 394;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: #F8F3EE;
    padding: 0;
    margin-bottom: 20px;
  }
  .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;
  }
  .hero-copy {
    position: relative;
    z-index: 10;
    width: 44%;
    max-width: 44%;
    padding: clamp(10px, 2.5vw, 28px) clamp(10px, 2vw, 24px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    box-sizing: border-box;
  }
  .hero-copy h1 {
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 3.2vw, 2.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: clamp(3px, 0.8vw, 8px);
    color: #111827;
    text-align: left;
  }
  .hero-copy p {
    font-family: var(--font-body);
    font-size: clamp(0.55rem, 1.6vw, 0.95rem);
    line-height: 1.35;
    color: #475569;
    margin-bottom: clamp(3px, 0.8vw, 6px);
    max-width: 100%;
    font-weight: 500;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-features {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(6px, 1.2vw, 12px) clamp(10px, 2vw, 24px);
    width: 100%;
    max-width: none;
    transform: none;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0 0 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    z-index: 20;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
  }
  .feature {
    gap: 8px;
  }
  .feature-icon svg {
    width: 20px;
    height: 20px;
  }
  .feature b {
    font-size: 11.5px;
  }
  .feature small {
    font-size: 10px;
  }
  .category-image {
    width: 125px;
    height: 125px;
  }
  .catalog {
    grid-template-columns: 200px 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .shell {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  /* ── HERO: Exact Homepage Mobile Pattern ── */
  .hero {
    position: relative;
    width: 100%;
    height: auto;
    min-height: unset;
    aspect-ratio: 1024 / 394;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: #F8F3EE;
    padding: 0;
    margin-bottom: 16px;
  }

  .hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;
  }

  /* Left text column — 44% of hero width */
  .hero-copy {
    position: relative;
    z-index: 10;
    width: 44%;
    max-width: 44%;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    box-sizing: border-box;
  }

  .hero-copy h1 {
    font-family: var(--font-heading);
    font-size: clamp(0.85rem, 3.8vw, 1.35rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 4px;
    letter-spacing: -0.025em;
    color: #111827;
    text-align: left;
  }

  .hero-copy p {
    font-family: var(--font-body);
    font-size: clamp(0.52rem, 2.2vw, 0.76rem);
    line-height: 1.3;
    color: #475569;
    margin-bottom: 2px;
    max-width: 100%;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Hide features on mobile just like homepage hero */
  .hero-features,
  .hero[data-category*="putty"] .hero-features {
    display: none !important;
  }

  /* ── SUBCATEGORY ROW ── */
  .category-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 14px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 0.5rem;
  }
  .category-row::-webkit-scrollbar {
    display: none;
  }
  .category-row .category-card {
    width: 105px !important;
    min-width: 105px;
    max-width: 105px;
    flex: 0 0 105px !important;
    scroll-snap-align: start;
  }
  .category-row .category-img-wrapper {
    width: 110px;
    height: 110px;
    padding: 0;
  }
  .category-row .category-card strong {
    font-size: 12.5px;
    margin-top: 8px;
  }
  .category-row .category-card span {
    font-size: 10.5px;
  }

  /* ── CATALOG / FILTER ── */
  .catalog {
    display: block;
  }
  .filters,
  aside.filters {
    display: none !important;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Prevent long titles pushing sort select off-screen */
  .results-head {
    flex-wrap: wrap;
    gap: 6px 0;
  }
  .results-head > div {
    flex: 1 1 100%;
    min-width: 0;
  }
  .results-head h2 {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .results-head select {
    max-width: 180px;
    width: auto;
  }
}


@media (max-width: 767px) {
  body, html {
    overflow-x: hidden !important;
  }
  .product-grid {
    width: 100%;
    box-sizing: border-box;
  }
}

