/* PAGE DESIGN ROLL — Appily-onehundredthirteen shop
   Roll: sidebar + content · seed-packet label cards · wavy field divider
         · stagger fade-up · sticky trellis filter bar with vine progress fill ratio
   Palette: Field Guide (--fg-herb, --fg-lavender, --fg-kraft, --fg-bark, --fg-wheat) */

.page-a113-aisle {
  --aisle-bar-bg: rgba(255, 252, 245, 0.96);
  --aisle-vine-h: 10px;
}

.aisle-main { padding-bottom: var(--a113-space-5); }

.aisle-mast { text-align: left; }

/* Layout: sidebar + content */
.aisle-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) 1fr;
  gap: var(--a113-space-4);
  align-items: start;
}

.aisle-sidebar {
  position: relative;
  padding: var(--a113-space-2);
  border-radius: var(--a113-radius-lg);
  background: var(--fg-kraft);
  border: 2px solid var(--a113-border);
  box-shadow: var(--a113-shadow-soft);
}
.aisle-sidebar-label {
  margin: 0 0 var(--a113-space-1);
  font-family: var(--a113-font-tab);
  font-size: var(--a113-type-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-herb-deep);
}
.aisle-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35em;
}
.aisle-sidebar-link {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
  padding: 0.45em 0.65em;
  border-radius: var(--a113-radius-sm);
  font-size: var(--a113-type-sm);
  font-weight: 600;
  color: var(--fg-bark);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.aisle-sidebar-link em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.65;
  font-size: var(--a113-type-xs);
}
.aisle-sidebar-link:hover { background: rgba(255, 255, 255, 0.55); }
.aisle-sidebar-link.is-active {
  background: var(--fg-herb);
  color: var(--fg-on-herb);
}
.aisle-sidebar-link.is-active em { opacity: 0.85; }
.aisle-sidebar-note {
  margin: var(--a113-space-2) 0 0;
  font-size: var(--a113-type-xs);
  color: var(--fg-mute);
  line-height: 1.45;
}
.aisle-sidebar-note a { color: var(--fg-lavender-deep); font-weight: 600; }

/* Trellis sticky filter bar */
.aisle-trellis { position: relative; z-index: 40; margin-bottom: var(--a113-space-2); }

.aisle-trellis-sticky {
  position: relative;
  z-index: 1;
  padding: var(--a113-space-2);
  border-radius: var(--a113-radius-lg);
  background: var(--aisle-bar-bg);
  backdrop-filter: blur(12px);
  border: 2px solid var(--a113-border);
  box-shadow: var(--a113-shadow-soft);
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 18px,
      rgba(74, 103, 65, 0.06) 18px,
      rgba(74, 103, 65, 0.06) 19px
    );
}

.aisle-trellis-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--a113-space-2);
}

.aisle-search {
  flex: 1 1 220px;
  display: flex;
  align-items: stretch;
  border: 2px solid var(--a113-border);
  border-radius: var(--a113-radius-md);
  overflow: hidden;
  background: var(--a113-surface);
}
.aisle-search input {
  flex: 1;
  border: 0;
  padding: 0.65em 1em;
  font: inherit;
  background: transparent;
  color: var(--a113-text);
}
.aisle-search input:focus { outline: none; }
.aisle-search-go {
  border: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0 1.1em;
  background: var(--fg-herb);
  color: var(--fg-on-herb);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.2s;
}
.aisle-search-go:hover { background: var(--fg-herb-deep); }

.aisle-sort select {
  padding: 0.65em 2em 0.65em 1em;
  border: 2px solid var(--a113-border);
  border-radius: var(--a113-radius-md);
  background: var(--a113-surface);
  font: inherit;
  font-weight: 600;
  color: var(--fg-bark);
  cursor: pointer;
}

.aisle-filter-toggle {
  min-height: 44px;
  padding: 0.65em 1.2em;
  border: 2px solid var(--fg-lavender);
  border-radius: var(--a113-radius-md);
  background: var(--fg-lavender);
  color: var(--fg-on-lavender);
  font-family: var(--a113-font-tab);
  font: inherit;
  font-weight: 700;
  font-size: var(--a113-type-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.2s var(--a113-ease);
}
.aisle-filter-toggle:hover { transform: translateY(-1px); }
.aisle-filter-toggle:focus-visible,
.aisle-search-go:focus-visible,
.aisle-drawer-close:focus-visible,
.aisle-density button:focus-visible {
  outline: 3px solid var(--fg-lavender);
  outline-offset: 2px;
}

/* Vine progress — filter fill ratio */
.aisle-vine {
  margin: var(--a113-space-2) 0;
  padding: 0.35em 0;
}
.aisle-vine-track {
  position: relative;
  height: var(--aisle-vine-h);
  border-radius: var(--a113-radius-pill);
  background: rgba(74, 103, 65, 0.12);
  border: 1px solid rgba(74, 103, 65, 0.2);
  overflow: visible;
}
.aisle-vine-fill {
  height: 100%;
  width: var(--aisle-fill, 0%);
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fg-herb) 0%, #6B8F5E 60%, var(--fg-lavender) 100%);
  transition: width 0.45s var(--a113-ease);
  position: relative;
}
.aisle-vine-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(255, 255, 255, 0.12) 4px,
    rgba(255, 255, 255, 0.12) 8px
  );
  border-radius: inherit;
}
.aisle-vine-leaf {
  position: absolute;
  top: 50%;
  left: var(--aisle-fill, 0%);
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  background: var(--fg-herb);
  border-radius: 0 80% 0 80%;
  transform: rotate(-35deg);
  box-shadow: 0 2px 6px rgba(61, 41, 20, 0.2);
  transition: left 0.45s var(--a113-ease);
}
.aisle-vine-label {
  margin: 0.45em 0 0;
  font-size: var(--a113-type-xs);
  color: var(--fg-mute);
}
.aisle-vine-label strong { color: var(--fg-herb-deep); font-size: 1.05em; }

.aisle-cat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-top: 0.25em;
}

.aisle-cat-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4em 0.9em;
  border: 2px solid var(--a113-border);
  border-radius: var(--a113-radius-pill);
  background: var(--a113-surface);
  color: var(--fg-bark);
  font-size: var(--a113-type-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.aisle-cat-chip em { font-style: normal; opacity: 0.65; font-weight: 500; }
.aisle-cat-chip.is-active,
.aisle-cat-chip:has(input:checked) {
  background: var(--fg-herb);
  border-color: var(--fg-herb-deep);
  color: var(--fg-on-herb);
}

/* Filter drawer — bottom sheet mobile, panel desktop */
.aisle-drawer[hidden] { display: none; }
.aisle-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.aisle-drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(30, 24, 16, 0.45);
  cursor: pointer;
}
.aisle-drawer-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--a113-space-3);
  border-radius: var(--a113-radius-lg) var(--a113-radius-lg) 0 0;
  background: var(--fg-wheat);
  border: 2px solid var(--a113-border);
  border-bottom: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--a113-space-3);
}
.aisle-drawer-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.aisle-drawer-head strong {
  font-family: var(--a113-font-tab);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-bark);
}
.aisle-drawer-close {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border: 2px solid var(--a113-border);
  border-radius: 50%;
  background: var(--a113-surface);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--fg-bark);
}

.aisle-fieldset {
  margin: 0;
  padding: var(--a113-space-2);
  border: 2px dashed var(--a113-border);
  border-radius: var(--a113-radius-md);
  background: var(--a113-surface);
}
.aisle-fieldset legend {
  padding: 0 0.4em;
  font-family: var(--a113-font-tab);
  font-size: var(--a113-type-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-lavender-deep);
}
.aisle-check {
  display: flex;
  align-items: center;
  gap: 0.55em;
  margin-top: 0.45em;
  font-size: var(--a113-type-sm);
  cursor: pointer;
}
.aisle-check input { accent-color: var(--fg-herb); }
.aisle-note { margin: 0 0 0.5em; font-size: var(--a113-type-sm); color: var(--fg-mute); }
.aisle-price-row {
  display: flex;
  gap: 0.65em;
  margin-bottom: 0.65em;
}
.aisle-price-row label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 700;
  color: var(--fg-bark);
}
.aisle-price-row input {
  flex: 1;
  padding: 0.5em 0.65em;
  border: 2px solid var(--a113-border);
  border-radius: var(--a113-radius-sm);
  font: inherit;
}
.aisle-apply { margin-top: 0.25em; }
.aisle-clear {
  align-self: center;
  font-size: var(--a113-type-sm);
  font-weight: 700;
  color: var(--fg-lavender-deep);
}

/* Toolbar + grid */
.aisle-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--a113-space-2);
  margin-bottom: var(--a113-space-2);
  font-size: var(--a113-type-sm);
  color: var(--fg-mute);
}
.aisle-toolbar strong { color: var(--fg-herb-deep); font-size: 1.15rem; }

.aisle-density { display: flex; gap: 0.35em; }
.aisle-density button {
  min-width: 44px;
  min-height: 44px;
  width: 2.75em;
  height: 2.75em;
  border: 2px solid var(--a113-border);
  border-radius: var(--a113-radius-sm);
  background: var(--a113-surface);
  font: inherit;
  font-weight: 700;
  font-size: var(--a113-type-xs);
  color: var(--fg-bark);
  cursor: pointer;
}
.aisle-density button.is-active {
  background: var(--fg-herb);
  border-color: var(--fg-herb-deep);
  color: var(--fg-on-herb);
}

.aisle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--a113-space-3) var(--a113-space-2);
}
.aisle-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.aisle-grid[data-cols="5"] { grid-template-columns: repeat(5, 1fr); }

/* Seed-packet label cards — stagger fade-up */
@keyframes aisle-packet-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.aisle-packet {
  display: block;
  text-decoration: none;
  color: inherit;
  animation: aisle-packet-in 0.55s var(--a113-ease) backwards;
  animation-delay: calc(var(--aisle-i, 0) * 45ms);
}
@media (prefers-reduced-motion: reduce) {
  .aisle-packet { animation: none; }
}

.aisle-packet-body {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.65em 0.65em 0.75em;
  border-radius: var(--a113-radius-md);
  background: var(--a113-surface);
  border: 2px solid var(--packet-accent, var(--fg-herb));
  box-shadow: 0 4px 0 rgba(61, 41, 20, 0.08), var(--a113-shadow-soft);
  transition: transform 0.25s var(--a113-ease), box-shadow 0.25s;
}
.aisle-packet:hover .aisle-packet-body {
  transform: translateY(-4px);
  box-shadow: 0 8px 0 rgba(61, 41, 20, 0.1), var(--a113-shadow-lift);
}
.aisle-packet.is-sold-out { opacity: 0.55; filter: grayscale(0.35); }

.aisle-packet-label {
  position: relative;
  display: block;
  height: 14px;
  margin: 0 auto 0.35em;
  width: 42%;
  border-radius: 2px 2px 0 0;
  background: var(--packet-accent, var(--fg-kraft));
  border: 2px solid var(--packet-accent, var(--fg-kraft-deep));
  border-bottom: 0;
  position: relative;
}
.aisle-packet-label::before,
.aisle-packet-label::after {
  content: "";
  position: absolute;
  bottom: -4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-bark);
  opacity: 0.25;
}
.aisle-packet-label::before { left: -3px; }
.aisle-packet-label::after { right: -3px; }

.aisle-packet--herb { --packet-accent: var(--fg-herb); }
.aisle-packet--lavender { --packet-accent: var(--fg-lavender); }
.aisle-packet--kraft { --packet-accent: var(--fg-kraft-deep); }
.aisle-packet--wheat { --packet-accent: #D4C4A8; }
.aisle-packet--bark { --packet-accent: var(--fg-bark); }

.aisle-packet-img {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--a113-radius-sm);
  overflow: hidden;
  background: var(--fg-wheat);
}
.aisle-packet-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.aisle-packet-sale {
  position: absolute;
  top: 0.55em;
  right: 0.55em;
  z-index: 2;
  padding: 0.2em 0.55em;
  border-radius: var(--a113-radius-pill);
  background: var(--fg-lavender);
  color: var(--fg-on-lavender);
  font-family: var(--a113-font-tab);
  font-size: var(--a113-type-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.aisle-packet-info {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  margin-top: 0.55em;
  text-align: center;
}
.aisle-packet-info strong {
  font-size: var(--a113-type-sm);
  line-height: 1.25;
  color: var(--fg-bark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aisle-packet-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4em;
  font-size: var(--a113-type-sm);
}
.aisle-packet-price s { color: var(--fg-mute); font-size: 0.85em; }
.aisle-packet-price em {
  font-style: normal;
  font-weight: 800;
  color: var(--packet-accent, var(--fg-herb-deep));
}

.aisle-empty { margin-top: var(--a113-space-2); }

.page-a113-aisle .a36-shop-pagination {
  margin-top: var(--a113-space-3);
  justify-content: center;
}

/* Responsive */
@media (max-width: 960px) {
  .aisle-layout { grid-template-columns: 1fr; }
  .aisle-sidebar { display: none; }
}

@media (max-width: 900px) {
  .aisle-grid,
  .aisle-grid[data-cols="5"] { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  body.aisle-filters-open {
    overflow: hidden;
  }

  .aisle-grid,
  .aisle-grid[data-cols="3"],
  .aisle-grid[data-cols="4"],
  .aisle-grid[data-cols="5"] { grid-template-columns: repeat(2, 1fr); }
  .aisle-trellis-row { flex-direction: column; align-items: stretch; }
  .aisle-sort select { width: 100%; }
}

@media (min-width: 721px) {
  .aisle-drawer {
    position: static;
    inset: auto;
    display: block;
    z-index: auto;
  }
  .aisle-drawer-scrim,
  .aisle-drawer-head { display: none; }
  .aisle-drawer-sheet {
    max-width: none;
    max-height: none;
    overflow: visible;
    padding: var(--a113-space-2) 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    border-top: 2px dashed var(--a113-border);
    margin-top: var(--a113-space-2);
  }
}
