/* HORIZON MATERIALS PRIVATE LIMITED — Grove Catalog shop (Neon Grove creative) */

@keyframes a36-shop-scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.page-shop.a36-shop-creative {
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --shop-ink: #0B1320;
  --shop-panel: #121B2E;
  --shop-surface: #F4F0E8;
  --shop-mint: #4ECDC4;
  --shop-mango: #FF9F1C;
  background:
    radial-gradient(circle at 0% 20%, rgba(90, 24, 154, 0.04) 0%, transparent 42%),
    var(--shop-surface);
}

.page-shop .page-main {
  padding-top: 0;
}

.a36-shop {
  padding: 0 0 3.5rem;
}

/* ── Catalog hero strip ── */
.a36-shop-hero {
  position: relative;
  padding: 1.75rem 0 1.5rem;
  background: var(--shop-panel);
  color: #fff;
  overflow: hidden;
  margin-bottom: 1.75rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.a36-shop-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(78, 205, 196, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 205, 196, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, #000, transparent 95%);
  pointer-events: none;
}

.a36-shop-hero-inner {
  position: relative;
  z-index: 1;
}

.a36-shop-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.45rem;
  padding: 0.22rem 0.6rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shop-mint);
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.22);
}

.a36-shop-hero-kicker::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--shop-mango);
}

.a36-shop-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.a36-shop-hero-search {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Layout ── */
.a36-shop-layout {
  display: grid;
  grid-template-columns: minmax(var(--a36-sidebar-min), 260px) minmax(0, 1fr);
  gap: var(--a36-layout-gap);
  align-items: start;
}

/* ── Filter sidebar ── */
.a36-shop-filters {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid rgba(11, 19, 32, 0.08);
  padding: 1.25rem 1.1rem;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  box-shadow: 0 12px 36px rgba(11, 19, 32, 0.06);
}

.a36-filters-title {
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shop-ink);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--shop-mango), var(--shop-mint)) 1;
}

.a36-filter-block {
  border-bottom: 1px solid rgba(11, 19, 32, 0.06);
}

.a36-filter-block:last-of-type {
  border-bottom: 0;
}

.a36-filter-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shop-ink);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.a36-filter-head:hover {
  color: var(--shop-mango);
}

.a36-filter-toggle {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 0;
  background: var(--shop-surface);
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
}

.a36-filter-block.is-open .a36-filter-toggle::before {
  content: '−';
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--shop-ink);
}

.a36-filter-block:not(.is-open) .a36-filter-toggle::before {
  content: '+';
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--shop-ink);
}

.a36-filter-panel {
  padding: 0 0 0.85rem;
  display: grid;
  gap: 0.45rem;
}

.a36-filter-panel[hidden] {
  display: none;
}

.a36-filter-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--a36-muted);
  cursor: pointer;
  line-height: 1.35;
  padding: 0.35rem 0.45rem;
  margin: 0 -0.45rem;
  transition: background 0.15s, color 0.15s;
}

.a36-filter-check:hover {
  background: rgba(78, 205, 196, 0.08);
}

.a36-filter-check input {
  margin-top: 0.12rem;
  accent-color: var(--shop-ink);
}

.a36-filter-check:has(input:checked) {
  color: var(--shop-ink);
  font-weight: 600;
}

.a36-price-note {
  margin: 0 0 0.6rem;
  font-size: 0.74rem;
  color: var(--a36-muted);
}

.a36-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
}

.a36-price-field {
  position: relative;
}

.a36-price-field span {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  color: var(--a36-muted);
  pointer-events: none;
}

.a36-price-field input {
  width: 100%;
  padding: 0.48rem 0.5rem 0.48rem 1.25rem;
  border: 1px solid rgba(11, 19, 32, 0.12);
  background: var(--shop-surface);
  font: inherit;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}

.a36-price-field input:focus {
  border-color: var(--shop-mint);
}

.a36-price-apply {
  width: 100%;
  padding: 0.55rem;
  border: 0;
  background: var(--shop-ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: background 0.2s, filter 0.2s;
}

.a36-price-apply:hover {
  background: var(--shop-mango);
  color: var(--shop-ink);
}

.a36-clear-filters {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--shop-ink);
  text-decoration: underline;
  text-decoration-color: var(--shop-mango);
  text-underline-offset: 3px;
}

.a36-filter-mobile-toggle {
  display: none;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.7rem 1rem;
  border: 0;
  background: var(--shop-ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

/* ── Toolbar ── */
.a36-shop-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-bottom: 1.15rem;
  padding: 0.85rem 1rem;
  background: var(--shop-ink);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  position: relative;
  overflow: hidden;
}

.a36-shop-toolbar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.06), transparent);
  animation: a36-shop-scan 5s ease-in-out infinite;
  pointer-events: none;
}

.a36-shop-count {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  flex: 1;
  position: relative;
  z-index: 1;
}

.a36-shop-count strong {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--shop-mango);
  font-size: 0.95rem;
}

.a36-shop-sort {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  position: relative;
  z-index: 1;
}

.a36-shop-sort span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.a36-shop-sort select {
  padding: 0.38rem 1.6rem 0.38rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  outline: none;
}

.a36-shop-sort select option {
  color: var(--shop-ink);
  background: #fff;
}

.a36-view-switch {
  display: flex;
  gap: 0.3rem;
  position: relative;
  z-index: 1;
}

.a36-view-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  font-size: 0.75rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

.a36-view-btn.is-active {
  background: var(--shop-mango);
  border-color: var(--shop-mango);
  color: var(--shop-ink);
}

.a36-view-btn:hover:not(.is-active) {
  border-color: var(--shop-mint);
  color: var(--shop-mint);
}

/* ── Product grid ── */
.a36-shop-grid {
  display: grid;
  gap: clamp(0.85rem, 1.5vw, 1rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--shop-col-min, 200px)), 1fr));
}

.a36-shop-grid[data-cols="3"] { --shop-col-min: 240px; }
.a36-shop-grid[data-cols="4"] { --shop-col-min: 210px; }
.a36-shop-grid[data-cols="5"] { --shop-col-min: 190px; }
.a36-shop-grid[data-cols="6"] { --shop-col-min: 170px; }

.a36-shop-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(11, 19, 32, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  overflow: hidden;
}

.a36-shop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--shop-mango), var(--shop-mint));
  opacity: 0;
  transition: opacity 0.25s;
}

.a36-shop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(11, 19, 32, 0.12);
}

.a36-shop-card:hover::before {
  opacity: 1;
}

.a36-shop-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
  padding: 0.85rem 0.75rem 0.95rem;
}

.a36-shop-card-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  margin-bottom: 0.65rem;
  padding: 0.75rem;
  background: linear-gradient(160deg, #FAFAF8 0%, #EDE8E0 100%);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.a36-shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.a36-shop-card:hover .a36-shop-card-img img {
  transform: scale(1.08);
}

.a36-shop-sale {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  background: var(--a36-berry);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 0 100%);
}

.a36-shop-card-title {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--shop-ink);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.a36-shop-card-price {
  margin: 0;
  font-size: 0.82rem;
  color: var(--shop-ink);
}

.a36-shop-card-price strong {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--a36-berry);
}

.a36-shop-card-price s {
  color: var(--a36-muted);
  font-weight: 400;
  margin-right: 0.3rem;
  font-size: 0.74rem;
}

.a36-shop-card.is-sold-out {
  opacity: 0.65;
}

.a36-shop-card.is-sold-out .a36-shop-card-img {
  filter: grayscale(0.4);
}

.a36-shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--a36-muted);
  background: #fff;
  border: 1px dashed rgba(11, 19, 32, 0.12);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.a36-shop-empty a {
  color: var(--shop-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--shop-mango);
}

/* ── Pagination ── */
.a36-shop .a36-shop-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}

.a36-shop .a36-page-num,
.a36-shop .a36-page-arrow {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(11, 19, 32, 0.12);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none !important;
  color: var(--shop-ink);
  background: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

.a36-shop .a36-page-num.is-active {
  background: var(--shop-mango);
  border-color: var(--shop-mango);
  color: var(--shop-ink);
}

.a36-shop .a36-page-arrow:hover,
.a36-shop .a36-page-num:not(.is-active):hover {
  border-color: var(--shop-mint);
  background: rgba(78, 205, 196, 0.1);
}

.a36-shop .a36-page-gap {
  padding: 0 0.25rem;
  color: var(--a36-muted);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .a36-shop-grid[data-cols="5"],
  .a36-shop-grid[data-cols="6"] {
    --shop-col-min: 200px;
  }
}

@media (max-width: 900px) {
  .a36-shop-hero {
    clip-path: none;
  }

  .a36-filter-mobile-toggle {
    display: block;
  }

  .a36-shop-filters {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1200;
    width: min(300px, 88vw);
    padding: 1.25rem;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 8px 0 40px rgba(11, 19, 32, 0.25);
    clip-path: none;
    top: 0;
  }

  body.a36-filters-open .a36-shop-filters {
    transform: translateX(0);
  }

  .a36-filter-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(11, 19, 32, 0.55);
    backdrop-filter: blur(3px);
  }

  body.a36-filters-open .a36-filter-backdrop {
    display: block;
  }

  .a36-shop-grid {
    --shop-col-min: 180px;
  }

  .a36-shop-toolbar {
    clip-path: none;
  }
}

@media (max-width: 640px) {
  .a36-shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .a36-view-switch {
    justify-content: flex-end;
  }

  .a36-shop-grid {
    --shop-col-min: 155px;
  }

  .a36-shop-card {
    clip-path: none;
  }

  .a36-shop-card-img {
    clip-path: none;
  }
}

@media (max-width: 400px) {
  .a36-shop-grid {
    --shop-col-min: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a36-shop-toolbar::after {
    animation: none;
  }

  .a36-shop-card:hover .a36-shop-card-img img {
    transform: none;
  }
}
