/* 08C-3B visual refinement. Layered on the existing theme stylesheet. */

.department-list > li.elly-shop-link { margin-inline-start: 4px; }
.department-list > li.elly-shop-link > a {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--burgundy);
  border-radius: 999px;
  color: var(--burgundy);
  background: transparent;
  line-height: 1.2;
}
.department-list > li.elly-shop-link > a:hover,
.department-list > li.elly-shop-link > a[aria-current="page"] {
  background: var(--burgundy);
  color: #fff7ef;
}

.site-content:has(.elly-shop) {
  width: min(1480px, calc(100% - 40px));
}
.elly-shop {
  width: 100%;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
}

.elly-acc {
  border: 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
  padding: 0;
}
.elly-acc-group { margin-bottom: 4px; }
.elly-acc-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7f5b41;
}
[dir="rtl"] .elly-acc-label { letter-spacing: 0; }
.elly-acc > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 8px 0;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--burgundy-dark);
}
.elly-acc > summary::-webkit-details-marker { display: none; }
.elly-acc > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex: 0 0 auto;
}
.elly-acc[open] > summary::after { transform: rotate(225deg); }
.elly-acc-body { padding: 0 0 12px 2px; }
.elly-acc-child { border-bottom: 0; margin-inline-start: 12px; }
.elly-acc-child > summary { min-height: 36px; font-size: 13px; font-weight: 600; }
.elly-size-label {
  margin: 10px 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7f5b41;
}
[dir="rtl"] .elly-size-label { letter-spacing: 0; }
.elly-check { display: flex; gap: 8px; min-height: 32px; align-items: center; }
.elly-filter-group { margin-bottom: 8px; }
.elly-filters [data-slot="color"] { display: none; }
.elly-grid .elly-card { display: flex; flex-direction: column; height: 100%; }
.elly-grid .elly-card-media { aspect-ratio: 3/4; background: #f6f1ec; overflow: hidden; }
.elly-grid .elly-card-img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.elly-grid .elly-card-action { margin-top: auto; }
.elly-shop a.button,
.elly-shop button.button,
.homepage-content a.button,
.homepage-content button.button {
  background: #620d2e;
  color: #fff7ef;
  border: 1px solid #620d2e;
}
.elly-shop a.button:hover,
.elly-shop button.button:hover,
.homepage-content a.button:hover,
.homepage-content button.button:hover {
  background: #340714;
  color: #fff7ef;
}
.elly-price { display: grid; gap: 10px; }
.elly-price label { display: grid; gap: 4px; font-size: 12px; color: #6f5e60; }
.elly-price input { width: 100%; min-height: 36px; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .elly-card { transition: box-shadow .28s ease, border-color .28s ease; }
  .elly-card-media { overflow: hidden; }
  .elly-card-img { transition: transform .28s ease; }
  .elly-card:hover { box-shadow: 0 12px 28px #34071414; }
  .elly-card:hover .elly-card-img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .elly-acc > summary::after,
  .elly-card,
  .elly-card-img,
  .elly-card:hover .elly-card-img { transition: none; transform: none; }
  .elly-acc[open] > summary::after { transform: rotate(225deg); }
}
@media (max-width: 1199px) {
  .site-content:has(.elly-shop) { width: min(100% - 32px, 1480px); }
}
@media (max-width: 899px) {
  .elly-shop { grid-template-columns: minmax(0, 1fr); }
  .elly-acc > summary,
  .elly-check,
  .elly-price input { min-height: 44px; }
}
