.recent-section, .newest-section, .categories-section {
  width: min(77.7%, 1300px);
  margin: 60px auto 40px;
  color: var(--logo-ink);
  font-family: var(--logo-font);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 14px;
}
.section-heading h1, .section-heading h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -.8px;
}
.section-heading #recent-title, .section-heading #categories-title, .section-heading #newest-title { font-family: 'Montserrat', Arial, sans-serif; }
.section-heading #recent-title { font-size: 22.4px; color: #50552d; }
.recent-section .view-all { color: #50552d; }
.view-all {
  color: inherit;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}
.view-all span { margin-left: 10px; font-size: 24px; }
.view-all:hover { text-decoration: none; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.product-tile {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: transparent;
  border-radius: 3px;
  box-shadow: 0 7px 18px rgba(28, 36, 44, .12);
  scroll-margin-top: 24px;
}
.product-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-tile:hover { box-shadow: 0 7px 20px rgba(28, 36, 44, .23); }
.recent-carousel { position: relative; }
.carousel-viewport { overflow: hidden; padding: 6px 0 20px; margin: -6px 0 -20px; }
.recent-carousel .product-grid { display: flex; gap: 14px; will-change: transform; }
.recent-carousel .product-tile { flex: 0 0 calc((100% - 56px) / 5); min-width: 0; }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .65);
  color: var(--logo-ink);
  cursor: pointer;
}
.carousel-arrow::before { content: ''; width: 10px; height: 10px; border-top: 2px solid; border-right: 2px solid; }
.carousel-arrow[data-previous] { left: -46px; }
.carousel-arrow[data-next] { right: -46px; }
.carousel-arrow[data-previous]::before { transform: rotate(-135deg); margin-left: 5px; }
.carousel-arrow[data-next]::before { transform: rotate(45deg); margin-right: 5px; }
.carousel-arrow:hover { background: #fff; }
.carousel-arrow:focus-visible { outline: 2px solid var(--logo-ink); outline-offset: 2px; }
.carousel-arrow:disabled { visibility: hidden; }
.categories-section { margin-top: 26px; }
.categories-section .section-heading h2 { font-size: 22.4px; color: #50552d; }
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.category-card { color: #50552d; text-decoration: none; text-align: center; min-width: 0; background: #f4eddf; border: 1px solid #e4ddcf; border-radius: 12px; overflow: hidden; box-shadow: 0 7px 18px rgba(28, 36, 44, .12); }
.category-card .category-art {
  position: relative;
  display: block;
  aspect-ratio: 320 / 636;
  overflow: hidden;
  margin: 0;
}
.category-art img {
  position: absolute;
  display: block;
  width: 642.5%;
  max-width: none;
  height: 120.283%;
  top: -3.145%;
}
.category-card > span:not(.category-art) {
  background: #fff;
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 2px;
  font-size: 16px;
  font-weight: 400;
}
.category-card[href="category.html?category=bracelets"] .category-art img {
  top: -3.797%;
  height: 121.044%;
}
.category-card { transition: transform .4s ease, box-shadow .4s ease; }
.category-card > span:not(.category-art) { transition: background-color .4s ease, color .4s ease; }
.category-card:hover, .category-card:focus-visible { transform: translateY(-4px) scale(1.025); box-shadow: 0 11px 24px rgba(28, 36, 44, .18); }
.category-card:hover > span:not(.category-art), .category-card:focus-visible > span:not(.category-art) { background-color: #f5f3e8; color: #69733b; }
@media (prefers-reduced-motion: reduce) {
  .category-card, .category-card > span:not(.category-art) { transition: none; }
  .category-card:hover, .category-card:focus-visible { transform: none; }
}
.category-card:focus-visible { outline: 2px solid var(--logo-ink); outline-offset: 4px; }
.product-tile:focus-visible, .view-all:focus-visible, .product-tile:target {
  outline: 2px solid var(--logo-ink);
  outline-offset: 4px;
}
@media (max-width: 760px) {
  .recent-section, .newest-section, .categories-section { width: calc(100% - 40px); margin-top: 42px; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
  .categories-section .section-heading h2 { font-size: 19.2px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .recent-carousel .product-grid { gap: 12px; }
  .recent-carousel .product-tile { flex-basis: calc((100% - 12px) / 2); }
  .carousel-arrow { width: 30px; }
  .carousel-arrow[data-previous] { left: -16px; }
  .carousel-arrow[data-next] { right: -16px; }
  .section-heading h1, .section-heading h2 { font-size: 24px; }
  .section-heading #recent-title { font-size: 19.2px; }
  .view-all { font-size: 13px; }
}

/* Marble jewelry at rest, original green and gold on interaction. */
.category-jewelry-color { opacity: 0; transition: opacity 300ms ease; }
.category-card:hover .category-jewelry-color, .category-card:focus-visible .category-jewelry-color { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .category-jewelry-color { transition: none; } }
.section-heading #category-title { font-family: 'Montserrat', Arial, sans-serif; font-size: 23px; }
@media (max-width: 760px) { .section-heading #category-title { font-size: 22px; } }
.category-results-layout{display:grid;grid-template-columns:0 minmax(0,1fr);gap:0;transition:grid-template-columns 250ms ease,gap 250ms ease}
.category-results-layout.filters-open{grid-template-columns:180px minmax(0,1fr);gap:24px}
.category-filters{min-width:0;overflow:hidden;visibility:hidden;display:grid;grid-template-rows:0fr;transition:grid-template-rows 280ms ease,visibility 280ms}
.filters-open .category-filters{visibility:visible;grid-template-rows:1fr}
.category-filter-controls{overflow:hidden;min-height:0;display:flex;flex-direction:column;gap:20px}
.category-filter-controls label{display:flex;flex-direction:column;gap:10px;font:14px 'Montserrat',Arial,sans-serif}
.category-filter-controls input[name="ring_size"],.category-filter-controls select{width:100%;box-sizing:border-box;padding:9px 6px;border:1px solid #929982;border-radius:5px;background:transparent;color:var(--logo-ink);font:13px Arial}
@media(max-width:760px){.category-results-layout.filters-open{grid-template-columns:130px minmax(0,1fr);gap:12px}.filters-open .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.category-results-layout,.category-filters{transition:none}}
.newest-section:has([data-product-grid="category"]){width:var(--site-shell-width,min(77.7%,1300px));max-width:none}
@media(max-width:760px){.newest-section:has([data-product-grid="category"]){width:calc(100% - 40px)}}

.product-count { font-family: 'Montserrat', Arial, sans-serif; }

/* Use a styleable browser picker so its open list also shows the plaster. */
@supports (appearance: base-select) {
  .category-filter-controls select,
  .category-filter-controls select::picker(select) {
    appearance: base-select;
  }
  .category-filter-controls select::picker(select) {
    position-anchor: auto;
    position-area: none;
    top: anchor(bottom);
    left: anchor(left);
    right: auto;
    bottom: auto;
    margin: 4px 0 0;
    position-try-fallbacks: none;
    max-height: min(260px, 30dvh);
    overflow-y: auto;
    background: #f2ede3;
    color: var(--logo-ink);
    border: 1px solid #929982;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(28, 36, 44, .10);
    font: 13px Arial, sans-serif;
    padding: 4px 0;
  }
  .category-filter-controls select option {
    background: transparent;
    padding: 8px 10px;
  }
  .category-filter-controls select option:hover,
  .category-filter-controls select option:focus {
    background: rgba(89, 99, 67, .14);
    color: var(--logo-ink);
  }
}

.category-filter-controls select[name=sort] { anchor-name: --category-sort; }

/* Standalone Newly Added page title. */
.section-heading #newest-title { font-family:'Montserrat',Arial,sans-serif; font-size:23px; font-weight:400; line-height:1.2; color:var(--logo-olive); }
@media(max-width:760px){.section-heading #newest-title{font-size:22px}}

/* Crop the pale side gutters from the last two category sprite panels. */
.category-card[href='category.html?category=necklaces'] .category-art img { transform:scaleX(1.025); transform-origin:74.805% center; }
.category-card[href='category.html?category=other'] .category-art img { transform:scaleX(1.025); transform-origin:91.537% center; }

/* Keep the last two category photos flush with the rounded card edge. */
.category-card { border:0; }
.category-card[href='category.html?category=necklaces'] .category-art,
.category-card[href='category.html?category=other'] .category-art { width:100%; margin-left:0; }

.section-heading #shop-title { font-family:'Montserrat',Arial,sans-serif; font-size:23px; font-weight:400; line-height:1.2; color:var(--logo-olive); }
@media(max-width:760px){.section-heading #shop-title{font-size:22px}}

/* Website previews show the whole 400px photo, clipped only at the card corners. */
.product-tile,.product-tile img{border-radius:12px}

/* Reserve category controls/count before deferred rendering to prevent visible jumps. */
html.category-page{scrollbar-gutter:stable}
.category-page .section-heading{min-height:44px;align-items:center}
.category-page #category-title{line-height:1.2;min-height:30px}
.category-page .product-count{min-height:24px;line-height:24px;margin:16px 0}
.category-page .newest-section{opacity:1;transition:opacity 110ms ease-out}
.category-page.category-loading .newest-section{opacity:0}
@media(prefers-reduced-motion:reduce){.category-page .newest-section{transition:none}}

@supports (appearance: base-select) {
  .category-filter-controls select[name=added] { anchor-name: --category-added; }
  .category-filter-controls select[name=style] { anchor-name: --category-style; }
  .category-filter-controls select[name=added]::picker(select) { position-anchor: --category-added; }
  .category-filter-controls select[name=style]::picker(select) { position-anchor: --category-style; }
  .category-filter-controls select[name=sort]::picker(select) { position-anchor: --category-sort; }
}