:root {
  --purple: #39075d;
  --violet: #9100cf;
  --pink: #ff0055;
  --orange: #ff8036;
  --lavender: #f4e6ff;
  --green: #008d29;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--purple);
  background: white;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 4%;
  min-height: 68px;
  background: white;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 34px;
  font-weight: 900;
  white-space: nowrap;
}

.logo-icon { color: var(--pink); font-size: 35px; }
.logo b, .footer-brand span { color: var(--orange); }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 12px;
  font-weight: 800;
}

.main-nav a { padding: 12px 4px; white-space: nowrap; }

.main-nav .selected {
  border-bottom: 5px solid var(--pink);
}

.rescue-nav, .fridge-nav {
  border-radius: 30px;
  padding: 12px 15px !important;
}

.rescue-nav { background: #e5ffdc; color: #00691c; }
.fridge-nav { background: #f3ddff; color: #7600a8; }

.account-actions { display: flex; gap: 12px; }

.account-actions a {
  padding: 11px 20px;
  border-radius: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.login-btn { border: 2px solid var(--purple); }
.signup-btn { background: var(--violet); color: white; }

.food-hero {
  position: relative;
  display: flex;
  min-height: 285px;
  overflow: hidden;
  background: linear-gradient(115deg, #eddaff 0%, #f9e7ff 48%, #ff7393 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 67%;
  padding: 16px 0 20px 6%;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(34px, 3.5vw, 55px);
  line-height: .96;
  letter-spacing: -2px;
  font-weight: 900;
}

.hero-content p {
  margin: 9px 0;
  font-size: 20px;
  line-height: 1.15;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 870px;
  padding: 5px 5px 5px 20px;
  border-radius: 40px;
  background: white;
  box-shadow: 0 4px 12px #39075d22;
}

.hero-search span { font-size: 30px; color: var(--violet); }

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 0;
}

.hero-search button {
  border: 0;
  border-radius: 30px;
  padding: 12px 35px;
  background: var(--violet);
  color: white;
  font-weight: bold;
}

.location-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.location-buttons button {
  border: 0;
  padding: 10px 20px;
  border-radius: 25px;
  background: #f7f0ff;
  color: var(--purple);
  font-weight: bold;
  box-shadow: 0 3px 8px #39075d20;
}

.location-buttons button.active {
  background: #edccff;
  color: #8000b5;
}

.hero-art {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 30%;
  text-align: center;
}

.grocery-illustration {
  font-size: clamp(55px, 7vw, 105px);
  white-space: nowrap;
}

.grocery-bag {
  display: inline-block;
  min-width: 200px;
  padding: 15px 40px;
  background: #e6ac65;
  color: #e6002c;
  font-size: 27px;
  font-weight: 900;
  line-height: .95;
  transform: rotate(-3deg);
}

.category-navigation {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 9px;
  padding: 12px 5%;
}

.category {
  min-height: 80px;
  border: 1px solid transparent;
  border-radius: 17px;
  background: #f5eafb;
  color: var(--purple);
  font-weight: 800;
}

.category span {
  display: block;
  margin-bottom: 4px;
  font-size: 29px;
}

.category.active {
  border: 2px solid var(--violet);
  background: #efd7ff;
}

.rescue-category { background: #e4ffdc; color: #006c1d; }
.fridge-category { border: 2px solid var(--violet); }

.browse-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 30px;
  padding: 0 5% 25px;
}

.filter-panel {
  padding: 10px 15px;
  border: 1px solid #e8e3eb;
  border-radius: 17px;
  box-shadow: 0 3px 6px #00000018;
  align-self: start;
}

.filter-panel h2 { margin: 0 0 5px; font-size: 22px; }

.filter-panel fieldset {
  margin: 0;
  padding: 5px 0;
  border: 0;
  border-top: 1px solid #e5e1e7;
}

.filter-panel legend {
  padding-top: 6px;
  font-weight: 800;
}

.filter-panel label {
  display: block;
  font-size: 14px;
  color: #19101e;
  line-height: 1.3;
}

.filter-panel input { accent-color: var(--violet); }

.special-filters {
  margin-top: 8px;
  padding: 7px;
  border-radius: 15px;
  background: #e6ffdf;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.results-toolbar h2 { font-size: 20px; }

.results-toolbar select {
  margin-left: 8px;
  padding: 8px 15px;
  border: 1px solid #d8d1dd;
  border-radius: 25px;
  background: white;
}

.demo-notice {
  margin: 0 0 10px;
  color: #756b7d;
  font-size: 12px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.listing-card {
  overflow: hidden;
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 9px #00000025;
}

.listing-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 135px;
  background: linear-gradient(135deg, #e7ffc7, #ffd6a6);
  font-size: 72px;
}

.listing-body { padding: 10px 15px 15px; }

.listing-body h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.listing-body p {
  margin: 4px 0;
  font-size: 14px;
}

.listing-type {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 15px;
  border-radius: 20px;
  font-weight: 800;
}

.listing-type.free { background: #dcffd5; color: green; }
.listing-type.half { background: #ffe2eb; color: #f05; }

.site-footer {
  border-top: 1px solid #e8e2ec;
  padding: 15px 5%;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 2fr 1fr 1.2fr;
  gap: 20px;
  align-items: center;
}

.footer-brand strong { font-size: 30px; }
.footer-brand p { font-size: 13px; }
.footer-column h3 { margin: 0 0 8px; }
.footer-column p { margin: 0; font-size: 13px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #ddd;
  margin-top: 15px;
  padding-top: 12px;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .main-header { flex-wrap: wrap; }
  .category-navigation { grid-template-columns: repeat(5, 1fr); }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .hero-content { width: 100%; padding: 25px; }
  .hero-art { display: none; }
  .browse-layout { grid-template-columns: 1fr; }
  .category-navigation { grid-template-columns: repeat(3, 1fr); }
  .listing-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-wrap: wrap; }
}

/* Approved Browse listing image badges */
.listing-image .listing-type {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  margin: 0;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.2;
}

.listing-image .listing-type.free {
  background: #2f9b52;
  color: #fff;
}

.listing-image .listing-type.half {
  background: #ec0064;
  color: #fff;
}

/* FRIDGE24_APPROVED_BROWSE_V1 — screenshot-aligned design layer */
body { color:#39075d; background:#fff; font-family:Arial,Helvetica,sans-serif; }
.main-header { min-height:68px; gap:10px; padding:5px 4.2%; box-shadow:0 1px 5px #3c005019; }
.logo { gap:3px; font-size:30px; text-decoration:none; color:#39075d; }
.logo b,.footer-brand strong span { color:#ff8036; }
.main-nav { gap:12px; font-size:15px; }
.main-nav a { text-decoration:none; color:#39075d; padding:10px 3px; }
.main-nav .selected { border-bottom:5px solid #ff0055; }
.main-nav .rescue-nav { background:#e4ffd8; color:#006a20; padding:12px 14px!important; }
.main-nav .fridge-nav { background:#f3dfff; color:#7800ac; padding:12px 14px!important; }
.account-actions a { padding:11px 19px; text-decoration:none; }
.food-hero { position:relative; overflow:hidden; min-height:284px; background:linear-gradient(116deg,#f0ddff 0%,#f8e9ff 49%,#ff8aab 78%,#ff426f 100%); }
.food-hero::after { content:""; position:absolute; width:65%; height:220px; border-radius:50% 50% 0 0; right:-12%; bottom:-142px; transform:rotate(-17deg); background:linear-gradient(95deg,#ff91ae,#ff2665); opacity:.6; }
.hero-content { width:66%; padding:12px 0 16px 6%; }
.hero-content h1 { font-size:clamp(36px,3.5vw,55px); line-height:.96; letter-spacing:-1.7px; }
.hero-content p { margin:8px 0 12px; font-size:19px; line-height:1.16; }
.hero-search { max-width:870px; position:relative; z-index:3; padding:4px 5px 4px 18px; }
.hero-search button { background:#8d00c4; font-size:16px; min-width:170px; }
.location-buttons { position:relative; z-index:3; gap:13px; margin-top:10px; }
.location-buttons button { padding:11px 20px; font-size:14px; }
.hero-art { position:absolute; z-index:2; width:37%; right:1%; bottom:0; height:100%; display:flex; align-items:flex-end; justify-content:center; }
.hero-art img { display:block; width:100%; max-height:100%; object-fit:contain; object-position:center bottom; mix-blend-mode:multiply; }
.category-navigation { gap:9px; padding:12px 5.7%; }
.category { min-height:80px; padding:7px 4px; background:linear-gradient(#f9f4ff,#f3e5fc); font-size:14px; cursor:pointer; }
.category-icon { display:block; margin:0 auto 3px; width:34px; height:35px; }
.category-icon svg { display:block; width:100%; height:100%; }
.category.active { background:#f1ddff; border:2px solid #9700e3; }
.rescue-category { background:#e7ffdb; color:#006c1d; border:1px solid #32bf17; }
.fridge-category { border:2px solid #9200d2; }
.browse-layout { grid-template-columns:255px minmax(0,1fr); gap:35px; padding:0 4.8% 25px; }
.filter-panel { padding:10px 14px; border-radius:17px; }
.filter-panel h2 { font-size:22px; }
.filter-panel label { font-size:14px; }
.filter-panel input { accent-color:#8d00c4; }
.results-toolbar h2 { font-size:20px; }
.results-toolbar select { min-width:185px; }
.listing-grid { gap:23px; }
.listing-card { position:relative; border-radius:15px; min-width:0; box-shadow:0 4px 9px #00000025; }
.listing-image { height:137px; background:#f5e7ff; overflow:hidden; }
.listing-image > img { width:100%; height:100%; object-fit:cover; display:block; }
.listing-image .listing-type { position:absolute; top:7px; left:8px; border-radius:24px; font-size:18px; padding:6px 14px; box-shadow:0 2px 5px #0002; }
.listing-image .listing-type.free { background:#05b42c; color:white; }
.listing-image .listing-type.half { background:#ff0055; color:white; }
.listing-photo-tags { position:absolute; top:7px; right:7px; display:flex; flex-direction:column; align-items:flex-end; gap:5px; }
.photo-tag { padding:5px 9px; border-radius:25px; font-size:12px; font-weight:800; white-space:nowrap; }
.photo-tag.rescue { background:#e6ffdd; color:#006c20; }
.photo-tag.fridge { background:#f2d9ff; color:#65009c; }
.listing-body { position:relative; min-height:157px; padding:7px 14px 11px; display:flex; flex-direction:column; }
.listing-body h3 { font-size:19px; line-height:1.1; margin:0 0 3px; }
.listing-location { margin:0 0 6px!important; font-size:13px!important; }
.listing-chips { display:flex; gap:6px; flex-wrap:wrap; padding-right:75px; }
.listing-chip { background:#f2e0ff; color:#39075d; border-radius:22px; padding:7px 11px; font-size:12px; font-weight:800; }
.listing-chip.produce { background:#e2ffdc; color:#076520; }
.listing-chip.bakery { background:#ffe5d9; }
.listing-prices { position:absolute; right:13px; top:34px; display:flex; flex-direction:column; align-items:flex-end; line-height:1.05; }
.listing-prices s { font-size:16px; color:#6d6676; font-weight:800; }
.listing-prices strong { font-size:24px; color:#ff0055; }
.listing-prices small { font-size:12px; color:#ff0055; }
.listing-pickup { display:flex; align-items:center; justify-content:space-between; border-top:1px solid #e9e4ec; margin-top:auto; padding-top:8px; gap:6px; font-size:13px; }
.listing-arrow { flex-shrink:0; border:2px solid #9700e3; border-radius:11px; width:44px; height:31px; display:flex; align-items:center; justify-content:center; font-size:27px; line-height:1; color:#9700e3; }
.site-footer { padding:14px 4.8%; }
.footer-main { grid-template-columns:1.35fr 2.1fr 1.05fr 1.25fr; gap:20px; }
.footer-column { border-left:2px solid #39075d; padding-left:24px; min-height:50px; }
.footer-column h3 { font-size:16px; }
.footer-column p { font-size:12px; line-height:1.7; }
.footer-column a { color:inherit; text-decoration:none; }
.footer-brand strong { white-space:nowrap; }
.footer-bottom { margin-top:12px; }
@media(max-width:1280px) { .main-header { flex-wrap:wrap; } .main-nav { order:3; width:100%; justify-content:space-around; } .hero-content { width:69%; } .hero-art { width:35%; } .listing-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:850px) { .hero-content { width:100%; padding:22px 5%; } .hero-art { opacity:.22; width:50%; right:0; } .category-navigation { grid-template-columns:repeat(3,minmax(0,1fr)); } .browse-layout { grid-template-columns:1fr; gap:15px; } .filter-panel { width:100%; } .footer-main { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:580px) { .hero-content h1 { font-size:36px; } .hero-content p { font-size:16px; } .hero-search button { min-width:100px; padding:10px; } .location-buttons { gap:6px; } .location-buttons button { padding:9px 11px; } .category-navigation { grid-template-columns:repeat(3,minmax(0,1fr)); } .listing-grid { grid-template-columns:1fr; } .footer-main { grid-template-columns:1fr; } .footer-column { padding-left:12px; } }

/* FRIDGE24_BROWSE_IMAGE_CARD_FIX_V2 */
.hero-content { position:relative; z-index:5; }
.hero-search, .location-buttons { position:relative; z-index:6; }
.hero-art { z-index:1; pointer-events:none; right:0; width:38%; }
.hero-art img { width:100%; height:100%; object-fit:cover; object-position:center bottom; mix-blend-mode:multiply; -webkit-mask-image:radial-gradient(ellipse 76% 83% at 60% 55%, #000 48%, transparent 98%); mask-image:radial-gradient(ellipse 76% 83% at 60% 55%, #000 48%, transparent 98%); }
.listing-image > img { object-fit:cover; object-position:center; }
.listing-photo-tags { z-index:2; }
.listing-image .listing-type { z-index:3; }
.listing-body { min-height:147px; }
.listing-pickup { min-height:33px; }
@media(min-width:1281px) { .listing-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }


/* Fridge24 minimalist category design */

.category-navigation {
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.category-navigation .category {
  background: #ffffff;
  border: 1px solid #e9e1ef;
  border-radius: 14px;
  color: #39075d;
  box-shadow: 0 2px 6px rgba(57, 7, 93, 0.05);
  transition: background-color 0.2s, border-color 0.2s;
}

.category-navigation .category span,
.category-navigation .category svg {
  filter: none;
}

.category-navigation .category svg {
  width: 35px;
  height: 35px;
}

.category-navigation .category.active {
  background: #faf5ff;
  border: 2px solid #9100cf;
}

.category-navigation .rescue-category {
  border-color: #cbe9ce;
}

.category-navigation .rescue-category.active {
  border-color: #168a39;
  background: #f1fbf1;
}

.category-navigation .category:hover {
  background: #faf7fd;
  border-color: #cda5e5;
}


/* Fridge24 approved footer V2 */

.site-footer {
  padding: 0;
  border-top: 1px solid #d7b3ef;
  background: #fff;
  color: #39075d;
}

.site-footer .footer-main {
  display: grid;
  grid-template-columns: 1.25fr 1.65fr 1.25fr 1.35fr;
  align-items: center;
  gap: 0;
  padding: 28px 4%;
}

.site-footer .footer-main > div {
  min-width: 0;
  padding: 0 24px;
}

.site-footer .footer-main > div:first-child {
  padding-left: 0;
}

.site-footer .footer-main > div + div {
  border-left: 2px solid #9100cf;
}

.site-footer .footer-brand-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer .footer-brand-name strong {
  font-size: clamp(24px, 2.2vw, 37px);
  font-weight: 900;
  white-space: nowrap;
}

.site-footer .footer-brand-name strong span {
  color: #ff8036;
}

.site-footer .footer-brand p {
  margin: 8px 0 0;
  font-size: 14px;
  white-space: nowrap;
}

.site-footer .footer-column h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: clamp(16px, 1.45vw, 22px);
  white-space: nowrap;
}

.site-footer .footer-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: #9100cf;
}

.site-footer .footer-column p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.site-footer .footer-column p b,
.site-footer .footer-bottom b {
  padding: 0 8px;
  font-weight: 600;
}

.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 17px 4%;
  border-top: 0;
  background: #f6edfc;
  font-size: 15px;
}

@media (max-width: 1100px) {
  .site-footer .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 0;
  }
  .site-footer .footer-main > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 650px) {
  .site-footer .footer-main {
    grid-template-columns: 1fr;
  }
  .site-footer .footer-main > div {
    padding: 0 !important;
    border-left: 0 !important;
  }
  .site-footer .footer-brand p {
    white-space: normal;
  }
  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Fridge24: keep pickup date and time on one line */
.listing-pickup > span {
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: -0.2px;
}


/* Keep pickup date and time readable on one line */
.listing-pickup > span {
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: normal;
  min-width: 0;
}

.listing-pickup .listing-arrow {
  flex-shrink: 0;
}


/* FRIDGE24_BROWSE_QUANTITY_V1 — approved availability addition */
.listing-availability {
  margin-top: 13px;
  margin-bottom: 11px;
}

.listing-availability-heading {
  font-size: 13px;
  color: #62596b;
  margin-bottom: 4px;
}

.listing-availability-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.listing-availability-summary strong {
  font-size: 16px;
  color: #087b31;
}

.listing-availability-status {
  color: #087b31;
  background: #e5f8e9;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
}

.listing-availability-status.unavailable {
  color: #9c2932;
  background: #ffe9eb;
}

.listing-availability-track {
  height: 9px;
  background: #eee7f4;
  border-radius: 20px;
  overflow: hidden;
}

.listing-availability-fill {
  height: 100%;
  background: #8c24c8;
  border-radius: 20px;
}

.listing-availability-limit {
  margin-top: 9px;
  font-size: 12px;
  color: #62596b;
}
