/* Product listing page — styled to match the Swarn & Company homepage */
.shop-hero {
  min-height: 245px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #092b12 url("assets/hero-grain-plant.png") center 48% / cover no-repeat;
}
.shop-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,28,12,.94) 0%, rgba(9,43,18,.78) 55%, rgba(9,43,18,.30) 100%);
}
.shop-hero-content { position: relative; z-index: 1; color: #fff; padding-top: 28px; padding-bottom: 34px; }
.shop-crumb { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.72); font-size: 12px; margin-bottom: 22px; }
.shop-crumb a { color: #f0c34a; }
.shop-hero h1 { font-family: var(--font-display); font-size: clamp(42px, 5vw, 64px); line-height: 1; letter-spacing: -.055em; margin: 12px 0 10px; }
.shop-hero h1 em { color: #e9b32d; font-style: normal; }
.shop-hero p { color: rgba(255,255,255,.82); font-size: 15px; max-width: 620px; margin: 0; }
.shop-main { background: #f7f8f4; padding: 64px 0 78px; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }
.shop-toolbar h2 { font-family: var(--font-display); font-size: clamp(30px, 3vw, 42px); line-height: 1.1; letter-spacing: -.055em; margin: 10px 0 7px; color: #171c18; }
.shop-toolbar h2 em { color: #13481d; font-style: normal; }
.results-count { color: #788178; font-size: 12px; margin: 0; }
.results-count strong { color: #13481d; font-weight: 800; }
.toolbar-controls { display: flex; gap: 12px; align-items: center; }
.search-box { width: min(300px, 28vw); height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #e1e6dc; border-radius: 6px; background: #fff; }
.search-box svg { width: 17px; height: 17px; fill: none; stroke: #7c887d; stroke-width: 1.8; flex: 0 0 auto; }
.search-box input { border: 0; outline: 0; width: 100%; min-width: 0; background: transparent; color: #17251a; font: inherit; font-size: 12px; }
.search-box input::placeholder { color: #9aa39a; }
.sort-box { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; background: #fff; border: 1px solid #e1e6dc; border-radius: 6px; color: #7c887d; font-size: 11px; }
.sort-box select { border: 0; outline: 0; background: transparent; color: #17251a; font: inherit; font-weight: 700; cursor: pointer; }
.shop-layout { display: grid; grid-template-columns: 238px minmax(0,1fr); gap: 26px; align-items: start; }
.shop-sidebar { background: #fff; border: 1px solid #e8ece5; border-radius: 8px; padding: 22px 18px; box-shadow: 0 8px 24px rgba(17,45,19,.035); position: sticky; top: 112px; }
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sidebar-heading h3 { margin: 0; font-size: 16px; font-family: var(--font-display); color: #1b271d; }
.sidebar-heading button { border: 0; background: transparent; color: #a07b18; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.filter-category { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 8px; border: 0; border-radius: 5px; background: transparent; color: #59645b; text-align: left; font: inherit; font-size: 11px; line-height: 1.4; cursor: pointer; transition: background .2s, color .2s; }
.filter-category:hover { background: #f5f7f1; color: #13481d; }
.filter-category.is-active { background: #eef4e9; color: #13481d; font-weight: 800; }
.filter-check { width: 14px; height: 14px; border: 1px solid #cbd4c8; border-radius: 50%; flex: 0 0 auto; position: relative; }
.filter-category.is-active .filter-check { border-color: #13481d; background: #13481d; }
.filter-category.is-active .filter-check:after { content: ""; position: absolute; width: 4px; height: 7px; left: 4px; top: 1px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.filter-count { margin-left: auto; color: #829082; font-size: 10px; }
.sidebar-divider { height: 1px; background: #edf0eb; margin: 12px 0; }
.filter-list { display: grid; gap: 1px; max-height: 520px; overflow: auto; }
.sidebar-note { margin-top: 22px; padding: 15px 13px; border-radius: 6px; background: #f5f7f1; border: 1px solid #e8ede3; }
.sidebar-note-icon { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #e9b32d; color: #092b12; font-size: 14px; margin-bottom: 10px; }
.sidebar-note strong { display: block; color: #17251a; font-family: var(--font-display); font-size: 12px; }
.sidebar-note p { color: #7b857c; font-size: 10px; line-height: 1.65; margin: 7px 0 10px; }
.sidebar-note a { color: #13481d; font-size: 10px; font-weight: 800; }
.shop-results { min-width: 0; }
.active-filter-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #7b857c; font-size: 11px; margin: 0 0 14px; }
.grid-label { color: #9aa398; font-size: 9px; letter-spacing: .16em; font-weight: 800; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.listing-card { min-width: 0; background: #fff; border: 1px solid #e7ebe4; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 22px rgba(17,45,19,.045); transition: transform .25s ease, box-shadow .25s ease; }
.listing-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(17,45,19,.10); }
.listing-image { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .88; background: #f1f3ef; overflow: hidden; padding: 12px; }
.listing-image img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; mix-blend-mode: multiply; transition: transform .35s ease; }
.listing-card:hover .listing-image img { transform: scale(1.045); }
.listing-number { position: absolute; z-index: 1; left: 13px; top: 13px; padding: 5px 7px; border-radius: 3px; background: rgba(255,255,255,.9); color: #527052; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.listing-info { padding: 16px 16px 17px; }
.listing-tag { display: inline-block; margin-bottom: 8px; color: #a07b18; font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.listing-info h2 { margin: 0 0 7px; color: #17251a; font-family: var(--font-display); font-size: 16px; line-height: 1.3; letter-spacing: -.025em; }
.listing-info p { min-height: 48px; margin: 0; color: #788178; font-size: 10px; line-height: 1.6; }
.listing-actions { display: grid; grid-template-columns: 1fr 1.12fr; gap: 7px; margin-top: 14px; }
.listing-actions a { min-height: 36px; display: flex; justify-content: center; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 4px; font-size: 10px; font-weight: 800; text-align: center; transition: background .2s, color .2s, border-color .2s; }
.details-btn { border: 1px solid #dce4d8; color: #23452b; background: #fff; }
.details-btn:hover { border-color: #13481d; background: #f1f6ed; }
.price-btn { border: 1px solid #13481d; background: #13481d; color: #fff; }
.price-btn:hover { background: #092b12; border-color: #092b12; }
.no-results { padding: 70px 20px; text-align: center; background: #fff; border: 1px solid #e7ebe4; border-radius: 8px; }
.no-results > span { color: #d6a62b; font-size: 34px; }
.no-results h3 { margin: 8px 0; color: #17251a; font-family: var(--font-display); }
.no-results p { color: #788178; font-size: 12px; }
.no-results button { border: 0; background: #13481d; color: #fff; padding: 10px 16px; border-radius: 4px; cursor: pointer; }
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; padding-top: 17px; border-top: 1px solid #e4e9e1; }
.pagination > button { border: 0; background: transparent; color: #536256; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.pagination > button:disabled { opacity: .35; cursor: not-allowed; }
#page-numbers { display: flex; gap: 5px; }
.page-number { width: 30px; height: 30px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #68756a; font: inherit; font-size: 11px; cursor: pointer; }
.page-number.is-current { background: #13481d; color: #fff; }
.listing-enquiry { padding: 52px 0; background: #092b12; color: #fff; }
.listing-enquiry-inner { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.listing-enquiry h2 { margin: 10px 0 7px; font-family: var(--font-display); font-size: clamp(28px,3vw,40px); letter-spacing: -.05em; line-height: 1.1; }
.listing-enquiry h2 em { color: #e9b32d; font-style: normal; }
.listing-enquiry p { margin: 0; color: rgba(255,255,255,.7); font-size: 12px; }
.listing-enquiry .button { flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.dropdown-toggle.current { color: #13481d; }
@media (max-width: 1050px) {
  .shop-layout { grid-template-columns: 210px minmax(0,1fr); gap: 18px; }
  .listing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .shop-sidebar { top: 98px; }
}
@media (max-width: 760px) {
  .shop-hero { min-height: 220px; }
  .shop-main { padding: 48px 0 58px; }
  .shop-toolbar { align-items: stretch; flex-direction: column; gap: 18px; }
  .toolbar-controls { width: 100%; }
  .search-box { width: auto; flex: 1; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; padding: 16px; }
  .filter-list { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 230px; }
  .sidebar-note { display: none; }
}
@media (max-width: 520px) {
  .shop-hero { min-height: 205px; }
  .shop-hero-content { padding-top: 22px; padding-bottom: 25px; }
  .shop-crumb { margin-bottom: 15px; }
  .shop-toolbar h2 { font-size: 31px; }
  .toolbar-controls { align-items: stretch; flex-direction: column; }
  .search-box, .sort-box { width: 100%; min-height: 44px; box-sizing: border-box; }
  .sort-box { justify-content: space-between; }
  .listing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .listing-image { aspect-ratio: 1 / .9; padding: 7px; }
  .listing-info { padding: 11px 10px 12px; }
  .listing-info h2 { font-size: 13px; }
  .listing-info p { font-size: 9px; min-height: 58px; }
  .listing-actions { grid-template-columns: 1fr; gap: 6px; margin-top: 10px; }
  .listing-actions a { min-height: 33px; font-size: 9px; }
  .listing-number { left: 8px; top: 8px; }
  .active-filter-row { align-items: flex-start; }
  .grid-label { display: none; }
  .listing-enquiry-inner { align-items: flex-start; flex-direction: column; }
}
