:root {
  --forest: #3f7d4f;
  --leaf: #5f9b62;
  --sage: #e5f0e2;
  --cream: #fbfaf3;
  --sand: #f1eadb;
  --terracotta: #c85f58;
  --rose: #f3ddd8;
  --ink: #365244;
  --muted: #6d7e73;
  --line: #d9e3d7;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font:
    15px/1.7 Inter,
    Arial,
    sans-serif;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 248, 241, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 5vw;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 245px;
}
.brand #logoWrap {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 62px;
  overflow: hidden;
}
.brand #logoWrap:empty {
  display: none;
}
.brand .headerLogo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  display: block;
}
.brand #logoWrap.logoFailed {
  display: none;
}
.brand b {
  display: block;
  line-height: 1.05;
  letter-spacing: 0.04em;
}
.ag {
  color: #3f8a4b !important;
  font-size: 19px;
}
.im {
  color: #c85b54 !important;
  font-size: 16px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  margin-top: 5px;
}
nav {
  display: flex;
  gap: 17px;
  flex: 1;
  justify-content: center;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  position: relative;
}
nav a:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: 0.25s;
}
nav a:hover:after {
  width: 100%;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.actions button,
.adminLink {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px 11px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
}
.hero {
  min-height: 70vh;
  padding: 8vw 7vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: center;
  background: linear-gradient(120deg, #fbfaf3 0%, #e8f1e4 58%, #f3dfda 100%);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--terracotta);
  font-weight: 800;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  color: var(--forest);
  margin: 14px 0;
}
.hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 600px;
}
.primary {
  display: inline-block;
  background: #4f8f57;
  color: #fff;
  border: 0;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.25s;
}
.primary:hover {
  transform: translateY(-2px);
  background: #659d68;
}
.section {
  padding: 78px 7vw;
}
.section:nth-of-type(odd) {
  background: #f8f5ec;
}
.section:nth-of-type(even) {
  background: #edf5eb;
}
.section h2 {
  font-size: 38px;
  line-height: 1.15;
  color: var(--forest);
  margin: 8px 0 25px;
}
.section p {
  color: var(--muted);
  max-width: 760px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  align-items: center;
}
.mediaBox {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f1f5eb;
  min-height: 320px;
}
.heroImg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}
.heroImage,
.aboutImageEl,
.pageImageEl,
.mdImageEl {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  display: block;
}
.mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
  background: #f4efe3;
}
.infoCard {
  padding: 32px;
  border-radius: 18px;
  background: #e7f1e4;
  border: 1px solid #d4e4d2;
}
.infoCard.accent {
  background: #f4e3df;
}
.infoCard.warm {
  background: #eee7d5;
}
.infoCard h3 {
  color: var(--forest);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card,
.productCard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: 0.25s;
}
.card:hover,
.productCard:hover {
  transform: translateY(-4px);
  background: #fffdf8;
}
.cardImg {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
  background: #f1f5eb;
}
/* FINAL FIX: product images are constrained to the card and never render at natural size. */
.productCard .productImage,
.productCard .productImage.placeholder {
  width: 100%;
  height: 220px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f1f5eb;
  overflow: hidden;
}
.productCard .productImage {
  padding: 10px;
}
.productCard .productImage.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.cardBody {
  padding: 18px;
}
.cardBody h3 {
  margin: 0;
  color: var(--forest);
}
.meta {
  font-size: 12px;
  color: var(--muted);
}
.price {
  font-weight: 800;
  color: var(--terracotta);
  margin-top: 7px;
}
.detailBtn {
  margin-top: 12px;
  border: 1px solid var(--leaf);
  background: #edf5eb;
  color: var(--forest);
  padding: 8px 12px;
  border-radius: 8px;
}
.people {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.person {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.personImg {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #f1f5eb;
  display: block;
}
.person h3,
.person p,
.person small {
  margin-left: 15px;
  margin-right: 15px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery img {
  width: 100%;
  height: 260px;
  object-fit: contain !important;
  background: #f1f5eb;
  border-radius: 10px;
}
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  background: #edf5eb;
}
.contact form {
  display: grid;
  gap: 10px;
}
.contact input,
.contact textarea {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.contact textarea {
  min-height: 150px;
  resize: vertical;
}
footer {
  padding: 34px 7vw;
  background: #f1dfd7;
  color: #486650;
  border-top: 4px solid #8caf7b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foot {
  min-width: auto;
}
.footerSocials,
.headerSocials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.socialIcon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 4px;
  border-radius: 50%;
  background: #e8f2e5;
  color: #3d7a4b;
  text-decoration: none;
  transition: 0.2s;
}
.socialIcon:hover {
  transform: translateY(-2px);
  background: #f4e1dc;
  color: #b95c55;
}
.socialIcon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.headerSocials .socialIcon {
  width: 32px;
  height: 32px;
  margin: 0;
}
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(239, 245, 236, 0.96);
  overflow: auto;
}
.overlay.show,
.overlay.open {
  display: block;
}
.panel {
  min-height: 100vh;
  background: var(--cream);
  padding: 30px 6vw;
}
.close {
  float: right;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  padding: 8px 12px;
}
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  padding-top: 45px;
}
.detailImg {
  width: 100%;
  height: 65vh;
  object-fit: contain;
  background: #f1f5eb;
  border-radius: 18px;
  display: block;
}
.detail h1 {
  font-size: 48px;
  color: var(--forest);
  line-height: 1.05;
}
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  margin-top: 25px;
}
.spec {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.spec b {
  display: block;
  color: var(--forest);
}
@media (max-width: 1000px) {
  nav {
    display: none;
  }
  .hero,
  .split,
  .detail,
  .contact {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .people,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .section {
    padding: 60px 5vw;
  }
  .top {
    padding: 10px 4vw;
  }
  .brand {
    min-width: auto;
  }
  .heroImg {
    min-height: 300px;
  }
  .headerSocials {
    display: flex;
  }
}
@media (max-width: 600px) {
  .grid,
  .people,
  .gallery {
    grid-template-columns: 1fr;
  }
  .detail h1 {
    font-size: 34px;
  }
  .detailImg {
    height: 45vh;
  }
  .specs {
    grid-template-columns: 1fr;
  }
  footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .actions .adminLink {
    display: none;
  }
  .mosaic {
    grid-template-columns: 1fr;
  }
}

.mobileMenuBtn {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--forest);
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 700;
}
.mobileMenu {
  display: none;
}
.mediaBox,
.heroImg,
.detailImg,
.cardImg,
.personImg,
.gallery img,
.galleryImg,
.mediaImg {
  box-shadow: none;
}
.mediaBox img,
.heroImg img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
}
.placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 30px;
  text-align: center;
  color: var(--muted);
  background: var(--sage);
}
@media (max-width: 1000px) {
  .mobileMenuBtn {
    display: block;
  }
  .top {
    flex-wrap: wrap;
  }
  .top nav {
    display: none;
    width: 100%;
    order: 10;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    padding: 8px 0;
  }
  .top nav.open {
    display: flex;
  }
  .top nav a {
    padding: 10px 5px;
    border-bottom: 1px solid var(--line);
  }
}
/* V8 visual corrections */
.heroCopy {
  max-width: 680px;
}
.hero h1 {
  color: #3f8a4b;
}
.hero h1 span {
  color: #c85b54;
}
.heroActions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.secondary {
  display: inline-block;
  padding: 11px 19px;
  border: 1px solid #cbdccc;
  border-radius: 8px;
  background: #f7eee9;
  color: #a7524c;
  text-decoration: none;
}
.heroVisual {
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.visualPlaceholder {
  width: 100%;
  min-height: 320px;
  border: 1px solid #d8e4d5;
  background: linear-gradient(145deg, #eef6ea, #fbf3ec);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  color: #6b7d70;
}
.mediaBox {
  background: #f4f1e6;
  min-height: 360px;
}
.officeSection {
  background: #eef5eb !important;
}
.valuesSection {
  background: #fbf4ed !important;
}
.miniGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 25px 0;
}
.miniGrid .infoCard {
  padding: 20px;
}
.miniGrid strong,
.miniGrid span {
  display: block;
}
.footerCopy {
  max-width: 420px;
  text-align: right;
}
@media (max-width: 1000px) {
  .heroVisual {
    min-height: 300px;
  }
  .visualPlaceholder {
    min-height: 280px;
  }
}
@media (max-width: 600px) {
  .miniGrid {
    grid-template-columns: 1fr;
  }
  .footerCopy {
    text-align: center;
  }
}
/* V8 final visual rules: no image shadows, no dark/black UI, full-image display */
img,
.heroImg img,
.mediaBox img,
.detailImg,
.cardImg,
.personImg,
.gallery img,
.galleryImg,
.mediaImg,
.cartRow img,
.preview,
.thumb {
  box-shadow: none !important;
  filter: none !important;
  object-fit: contain !important;
}
.heroVisual .heroImage {
  max-height: 520px;
  background: transparent;
}
.mediaBox {
  background: #f4f0e5;
}
footer {
  background: #e8efe1 !important;
  color: #58705e !important;
  border-top: 4px solid #d38b82 !important;
}
footer .ag {
  color: #3f8a4b !important;
}
footer .im {
  color: #c85b54 !important;
}
footer .socialIcon {
  background: #f7f3ea;
  color: #4b8055;
  border: 1px solid #d8e2d4;
}
footer .socialIcon:hover {
  background: #f3dfdb;
  color: #b55c55;
}
.hero {
  background: linear-gradient(120deg, #fbfaf3 0%, #eef5ea 56%, #f5e5e1 100%);
}
.officeSection {
  background: #edf5eb !important;
}
.valuesSection {
  background: #fbf3ed !important;
}
.section:nth-of-type(odd) {
  background: #f8f4ea;
}
.section:nth-of-type(even) {
  background: #eef5eb;
}
.card,
.productCard,
.person,
.review,
.panel,
.infoCard {
  box-shadow: none !important;
}
.hero h1 .heroAg {
  color: #3f8a4b !important;
}
.hero h1 .heroIm {
  color: #c85b54 !important;
}
.hero h1 .heroAg,
.hero h1 .heroIm {
  display: block;
}

.categoryTile {
  min-width: 150px;
  border: 1px solid #d8e4d7;
  background: #fff;
  border-radius: 14px;
  padding: 15px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #31463a;
  cursor: pointer;
  transition: 0.2s;
}
.categoryTile span {
  font-size: 25px;
}
.categoryTile b {
  font-size: 15px;
}
.categoryTile small {
  font-size: 11px;
  color: #708176;
}
.categoryTile:hover,
.categoryTile.active {
  border-color: #4f8b58;
  background: #edf6e9;
  transform: translateY(-2px);
}
#cats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}
.productBuyBox {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #d8e4d7;
  border-radius: 14px;
  background: #f3f8f0;
}
.productBuyBox h3 {
  margin: 0 0 5px;
}
.productBuyBox p {
  margin: 0 0 13px;
  color: #68786d;
}
.detailBuy {
  display: inline-block;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 8px;
}
.detailBuy:hover {
  opacity: 0.9;
}
@media (max-width: 1000px) {
  #cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  #cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .categoryTile {
    min-width: 0;
    padding: 12px;
  }
}
.homeCarousel {
  position: relative;
  background: #173d2b;
  border-bottom: 1px solid #d9e3d7;
  overflow: hidden;
  width: 100%;
  height: calc(100vh - 78px);
  min-height: 520px;
  max-height: 820px;
}
.carouselTrack,
.carouselSlide {
  width: 100%;
  height: 100%;
}
.carouselTrack {
  position: relative;
}
.carouselSlide {
  display: none;
  position: absolute;
  inset: 0;
}
.carouselSlide.active {
  display: block;
}
.bannerImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carouselSlide:after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.035);
  pointer-events: none;
}
.carouselOverlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 6vw 8vw;
}
.carouselOverlayInner {
  max-width: 760px;
  color: #fff;
}
.carouselOverlay .eyebrow {
  color: #f1c1b9;
}
.carouselOverlay h2 {
  font-size: clamp(38px, 6vw, 82px);
  line-height: 1.02;
  margin: 12px 0 8px;
  color: #fff;
}
.carouselOverlay h3 {
  font-size: clamp(20px, 2.4vw, 32px);
  margin: 16px 0 6px;
  color: #fff;
}
.carouselOverlay p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, 1.8vw, 22px);
  margin: 8px 0;
}
.carouselOverlay .carouselTagline {
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f3ddd8;
}
.carouselPrev,
.carouselNext {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
  backdrop-filter: blur(6px);
}
.carouselPrev {
  left: 24px;
}
.carouselNext {
  right: 24px;
}
.carouselDots {
  position: absolute;
  z-index: 4;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carouselDots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.65);
  padding: 0;
}
.carouselDots button.active {
  background: #fff;
  width: 28px;
  border-radius: 9px;
}
@media (max-width: 600px) {
  .homeCarousel {
    height: calc(100vh - 70px);
    min-height: 500px;
  }
  .carouselOverlay {
    padding: 28px;
  }
  .carouselOverlay h2 {
    font-size: 40px;
  }
  .carouselPrev {
    left: 10px;
  }
  .carouselNext {
    right: 10px;
  }
}
.contactExtras {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.locationGrid {
  display: grid;
  gap: 14px;
}
.locationCard {
  background: #fff;
  border: 1px solid #d9e3d7;
  border-radius: 12px;
  padding: 18px;
}
.locationCard h3 {
  margin: 4px 0;
  color: #3f7d4f;
}
.contact form {
  grid-column: 1/-1;
}
.contact form input,
.contact form textarea {
  width: 100%;
}
@media (max-width: 1000px) {
  .carouselSlide {
    grid-template-columns: 1fr;
  }
  .carouselTrack {
    min-height: 520px;
  }
  .contactExtras {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .carouselSlide {
    padding: 0;
  }
  .bannerImage {
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
  .carouselOverlay {
    padding: 22px 18px;
  }
  .carouselOverlayInner {
    max-width: 82%;
  }
  .carouselOverlay h2 {
    font-size: clamp(28px, 9vw, 42px);
  }
  .carouselOverlay p {
    font-size: 15px;
  }
  .carouselPrev {
    left: 8px;
  }
  .carouselNext {
    right: 8px;
  }
}

.videoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.videoCard {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
}
.videoFrame {
  aspect-ratio: 16/9;
  background: #111;
}
.videoFrame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.videoCard h3 {
  padding: 14px 16px;
  margin: 0;
}
.sectionHead {
  margin-bottom: 20px;
}

/* V4.11 corporate leadership + sales report */
.peopleAdminGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.personAdminCard {
  background: #fff;
  border: 1px solid #dbe6d7;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.personAdminPhoto {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: #edf5eb;
  border: 4px solid #f3e2de;
  display: grid;
  place-items: center;
  color: #728074;
}
.personAdminPhoto img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  border-radius: 50%;
}
.personAdminCard b {
  display: block;
  color: #315f3b;
  font-size: 18px;
}
.personAdminCard small {
  display: block;
  color: #68776d;
  margin-top: 4px;
}
.personAdminCard .rowActions {
  display: flex;
  gap: 7px;
}
.salesReportHead {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  flex-wrap: wrap;
}
.salesActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.salesCards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 20px;
}
.salesCards > div {
  background: linear-gradient(135deg, #edf6e9, #fbefeb);
  border: 1px solid #d9e4d5;
  border-radius: 16px;
  padding: 18px;
}
.salesCards span {
  display: block;
  color: #68786d;
  font-size: 13px;
}
.salesCards b {
  display: block;
  color: #315f3b;
  font-size: 25px;
  margin-top: 7px;
}
@media (max-width: 900px) {
  .salesCards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .salesCards {
    grid-template-columns: 1fr;
  }
  .salesReportHead {
    align-items: stretch;
  }
  .salesActions .btn {
    width: 100%;
  }
}
/* Leadership presentation */
.mdImageEl {
  max-height: 620px !important;
  width: 100%;
  object-fit: contain !important;
}
.teamPageMd {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) 1.1fr;
  gap: 7vw;
  align-items: center;
}
.teamPageMd .mdPhotoLarge {
  width: min(100%, 520px);
  height: 520px;
  object-fit: contain !important;
  border-radius: 24px;
  background: #f4f1e6;
}
.teamPageMd .mdText h2 {
  font-size: 46px;
}
.teamPageMd .mdText h3 {
  color: #b85d55;
}
.teamPeopleGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
}
.teamPeopleGrid .person {
  background: transparent;
  border: 0;
  text-align: center;
  overflow: visible;
}
.teamPeopleGrid .personImg {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover !important;
  margin: 0 auto 14px;
  border: 5px solid #edf5eb;
  background: #f4f1e6;
}
.teamPeopleGrid .person h3 {
  margin: 0 5px;
  color: #315f3b;
}
.teamPeopleGrid .person p,
.teamPeopleGrid .person small {
  display: block;
  margin: 5px;
  color: #6a786e;
}
.teamPeopleGrid .person:nth-child(1) .personImg,
.teamPeopleGrid .person[data-role*='NSM'] .personImg {
  width: 170px;
  height: 170px;
}
.teamPeopleGrid .person[data-role*='RSM'] .personImg {
  width: 150px;
  height: 150px;
}
@media (max-width: 900px) {
  .teamPageMd {
    grid-template-columns: 1fr;
  }
  .teamPageMd .mdPhotoLarge {
    height: 420px;
  }
}

/* Final clarity & bright UI corrections */
:root {
  --green: #3f8a4b;
  --green-dark: #2f6e3a;
  --green-soft: #eef8ea;
  --red: #c85b54;
  --red-soft: #fff0ed;
  --ivory: #fffdf8;
  --char: #294536;
  --line: #d8e6d5;
  --white: #fff;
  --sage: #edf7e9;
  --cream: #fffaf3;
}
body {
  background: var(--ivory);
  color: var(--char);
}
.homeCarousel {
  background: #eef6e9;
  isolation: isolate;
}
.bannerImage {
  image-rendering: auto;
  filter: none !important;
  opacity: 1 !important;
  object-position: center center;
}
.carouselSlide:after {
  background: rgba(255, 255, 255, 0.035);
}
.carouselOverlay {
  align-items: center;
}
.carouselOverlayInner {
  color: var(--char);
  text-shadow: none;
}
.carouselOverlay .eyebrow {
  color: var(--red);
}
.carouselOverlay h2 {
  color: var(--green-dark);
  text-shadow: none;
}
.carouselOverlay h3 {
  color: var(--red);
  text-shadow: none;
}
.carouselOverlay p {
  color: var(--char);
  text-shadow: none;
}
.carouselOverlay .carouselTagline {
  color: var(--red);
  text-shadow: none;
}
.carouselPrev,
.carouselNext {
  background: rgba(255, 255, 255, 0.86);
  color: var(--green-dark);
  border-color: rgba(63, 138, 75, 0.28);
  backdrop-filter: none;
}
.carouselDots button {
  background: rgba(63, 138, 75, 0.45);
}
.carouselDots button.active {
  background: var(--green);
}
.btn,
.mobileMenuBtn {
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}
.btn:hover {
  border-color: var(--green);
  background: #f2f8ef;
  transform: translateY(-1px);
}
.btn.primary,
.primary {
  background: var(--green) !important;
  color: #fff !important;
}
.btn.primary:hover,
.primary:hover {
  background: var(--green-dark) !important;
}
.leadershipBlock {
  background: linear-gradient(180deg, #ffffff, #f7fbf3);
  border-top: 1px solid #e2eedf;
}
.teamPeopleGrid .person {
  background: #fff;
  border: 1px solid #e1ecde;
  border-radius: 18px;
  padding: 18px;
}
.teamPeopleGrid .personImg {
  background: #f1f8ed;
}
.uploadBox {
  background: #f7fbf4;
}

/* Launch clarity: preserve banner image detail; keep text on a light readable panel */
.carouselOverlayInner {
  background: rgba(255, 255, 255, 0.82);
  padding: 24px 28px;
  border-radius: 18px;
  backdrop-filter: blur(2px);
}
.teamPageMd .mdPhotoLarge {
  width: min(100%, 560px);
  height: 560px;
}
.teamPeopleGrid .personImg {
  width: 140px;
  height: 140px;
}
#nsmGrid .personImg {
  width: 200px;
  height: 200px;
}
#rsmGrid .personImg {
  width: 140px;
  height: 140px;
}
@media (max-width: 600px) {
  .carouselOverlayInner {
    padding: 16px 18px;
  }
  .teamPageMd .mdPhotoLarge {
    height: 420px;
  }
  #nsmGrid .personImg {
    width: 170px;
    height: 170px;
  }
}

/* V4.11.7 Banner refinement */
.homeCarousel {
  background: #eef7ea;
}
.carouselSlide:after {
  background: rgba(255, 255, 255, 0.02) !important;
}
.carouselOverlay {
  align-items: flex-end !important;
  justify-content: flex-start !important;
  padding: 0 0 6vh 6vw !important;
}
.carouselOverlayInner {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 7px !important;
  max-width: min(430px, 78vw) !important;
  padding: 13px 17px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 8px 28px rgba(49, 95, 59, 0.1) !important;
  backdrop-filter: blur(3px) !important;
}
.carouselOverlay h3 {
  font-size: clamp(17px, 2vw, 25px) !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  color: #315f3b !important;
}
.carouselOverlay p {
  font-size: clamp(13px, 1.35vw, 17px) !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  max-width: 390px !important;
  color: #46634e !important;
}
.carouselOverlay .primary {
  font-size: 13px !important;
  padding: 8px 13px !important;
  margin-top: 2px !important;
}
.carouselOverlay .eyebrow,
.carouselOverlay .carouselTagline {
  display: none !important;
}
@media (max-width: 600px) {
  .carouselOverlay {
    padding: 0 16px 28px !important;
  }
  .carouselOverlayInner {
    max-width: 78vw !important;
    padding: 11px 13px !important;
    gap: 5px !important;
  }
  .carouselOverlay h3 {
    font-size: 18px !important;
  }
  .carouselOverlay p {
    font-size: 13px !important;
  }
  .carouselOverlay .primary {
    font-size: 12px !important;
    padding: 7px 11px !important;
  }
}
/* Dedicated MD photo space */
.teamPageMd .mdPhotoLarge {
  width: min(100%, 560px);
  height: 560px;
  object-fit: contain !important;
  border-radius: 24px;
  background: #f4f8ed;
  border: 2px solid #d9e8d2;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.teamPageMd .mdPhotoLarge:empty:before {
  content: 'MD Sir-এর ছবি এখানে যোগ করুন';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82%;
  height: 82%;
  border: 2px dashed #9fbe9f;
  border-radius: 20px;
  color: #6c866f;
  font-size: 18px;
  text-align: center;
  padding: 20px;
  background: #fbfdf9;
}
.teamPageMd .mdPhotoLarge img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  box-shadow: none !important;
}
@media (max-width: 900px) {
  .teamPageMd .mdPhotoLarge {
    height: 440px;
  }
}

/* Refined MD presentation */
.teamPageMd {
  position: relative;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: 6vw;
  padding-top: 72px;
  padding-bottom: 72px;
}
.teamPageMd:before {
  content: '';
  position: absolute;
  inset: 24px 4vw 24px;
  background: linear-gradient(135deg, #eef7e9, #fffaf1 55%, #f8e8e3);
  border: 1px solid #dbe9d6;
  border-radius: 30px;
  z-index: 0;
}
.teamPageMd > * {
  position: relative;
  z-index: 1;
}
.teamPageMd .mdPhotoLarge {
  width: min(100%, 430px);
  height: 430px;
  border-radius: 22px;
  background: #f8fbf4;
  border: 2px solid #d9e8d2;
  box-shadow: none !important;
}
.teamPageMd .mdPhotoLarge img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  padding: 10px;
}
.teamPageMd .mdText {
  padding: 18px 22px 18px 0;
}
.teamPageMd .mdText h2 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.08;
  color: #315f3b;
  margin: 8px 0;
}
.teamPageMd .mdText h3 {
  font-size: 18px;
  color: #b85d55;
  margin: 0 0 16px;
}
.teamPageMd .mdText p {
  font-size: 16px;
  line-height: 1.8;
  color: #50665a;
}
.mdMeta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.mdMeta span {
  background: #fff;
  border: 1px solid #dce8d8;
  border-radius: 999px;
  padding: 7px 12px;
  color: #4d6954;
  font-size: 13px;
}
.mdBio {
  max-width: 700px;
}
.analyticsTotals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0 20px;
}
.analyticsTotals > div {
  background: #f5f9f2;
  border: 1px solid #dce9d8;
  border-radius: 12px;
  padding: 14px;
}
.analyticsTotals span {
  display: block;
  font-size: 12px;
  color: #68786d;
}
.analyticsTotals strong {
  display: block;
  font-size: 28px;
  color: #315f3b;
  margin-top: 3px;
}
@media (max-width: 900px) {
  .teamPageMd {
    grid-template-columns: 1fr;
  }
  .teamPageMd:before {
    inset: 16px 3vw;
  }
  .teamPageMd .mdPhotoLarge {
    width: min(100%, 390px);
    height: 390px;
    margin: auto;
  }
  .teamPageMd .mdText {
    padding: 10px 0 18px;
  }
}
@media (max-width: 600px) {
  .analyticsTotals {
    grid-template-columns: 1fr;
  }
  .teamPageMd {
    padding-top: 50px;
  }
  .teamPageMd .mdPhotoLarge {
    height: 330px;
  }
}

.videoFrame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.videoFrame {
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.videoFrame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.bannerVideo {
  object-fit: cover !important;
}

/* Homepage static agriculture banner and content gallery */
.homeBanner {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #eaf4e6;
  display: flex;
  align-items: center;
}
.homeBannerImage {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.homeBannerMedia {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.homeBannerShade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 60, 36, 0.78) 0%,
    rgba(20, 60, 36, 0.48) 42%,
    rgba(20, 60, 36, 0.08) 75%,
    rgba(20, 60, 36, 0) 100%
  );
  z-index: 1;
}
.homeBannerContent {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 90px 7vw;
  color: #fff;
}
.homeBannerContent .eyebrow {
  color: #f5c9c0;
}
.homeBannerContent h1 {
  font-size: clamp(46px, 6vw, 86px);
  line-height: 1.02;
  margin: 15px 0 18px;
}
.homeBannerContent .heroAg {
  display: block;
  color: #bfe0ad !important;
}
.homeBannerContent .heroIm {
  display: block;
  color: #f0b5ac !important;
}
.homeBannerContent p {
  font-size: 20px;
  line-height: 1.75;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.94);
  margin: 0;
}
.homeBannerContent .heroActions {
  margin-top: 28px;
}
.homeBannerContent .secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.agricultureIntro .sectionHead p {
  font-size: 18px;
  max-width: 980px;
}
.agriPhotoGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 35px;
}
.agriPhotoGrid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(50, 90, 55, 0.07);
}
.agriPhotoGrid img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
  background: #edf5eb;
}
.agriPhotoGrid h3 {
  margin: 18px 18px 6px;
  color: var(--forest);
  font-size: 22px;
}
.agriPhotoGrid p {
  margin: 0 18px 22px;
  color: var(--muted);
  font-size: 14px;
}
.valuesSection .mosaic {
  max-width: 1200px;
  margin: auto;
}
.valuesSection .infoCard {
  min-height: 230px;
}
@media (max-width: 1100px) {
  .agriPhotoGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .homeBanner {
    min-height: 620px;
  }
  .homeBannerShade {
    background: linear-gradient(90deg, rgba(20, 60, 36, 0.8), rgba(20, 60, 36, 0.4));
  }
  .homeBannerContent {
    padding: 70px 6vw;
  }
  .homeBannerContent h1 {
    font-size: 46px;
  }
  .homeBannerContent p {
    font-size: 17px;
  }
  .agriPhotoGrid {
    grid-template-columns: 1fr;
  }
  .agriPhotoGrid img {
    height: 230px;
  }
}
.productCardActions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.smsBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #2f7d32;
  color: #2f7d32;
  font-weight: 700;
  background: #fff;
}
.smsBtn:hover {
  filter: brightness(0.97);
}
.productActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.detailSms {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Final homepage/banner requirements */
.homeBanner {
  position: relative;
  width: 100%;
  height: calc(100vh - 78px);
  min-height: 560px;
  overflow: hidden;
  background: #eef4e9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.homeBannerImage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4e9;
}
.homeBannerMedia {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.homeBannerContent {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 30px 6vw;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  pointer-events: none;
}
.homeBannerContent h1 {
  margin: 0;
  white-space: nowrap;
  font-size: clamp(24px, 4.6vw, 76px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.8);
}
.homeBannerContent .heroAg {
  display: inline;
  color: #2f8b49 !important;
}
.homeBannerContent .heroIm {
  display: inline;
  color: #d5534f !important;
}
.bannerSlogan {
  margin: 14px 0 0;
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 800;
  color: #244e32;
  white-space: nowrap;
  text-align: right;
  direction: rtl;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.9);
}
.companyLargeImage {
  min-height: 520px;
  border-radius: 24px;
}
.companyLargeImage .aboutImageEl {
  width: 100%;
  height: 520px;
  max-height: none;
  object-fit: contain;
  background: #f2f6ee;
}
.aboutDetails {
  font-size: 18px;
  line-height: 1.9;
  max-width: 980px;
}
@media (max-width: 900px) {
  .homeBanner {
    height: calc(100vh - 70px);
    min-height: 500px;
  }
  .homeBannerContent {
    padding: 24px;
  }
  .homeBannerContent h1 {
    font-size: clamp(25px, 7vw, 52px);
  }
  .bannerSlogan {
    font-size: clamp(16px, 4vw, 23px);
  }
  .companyLargeImage {
    min-height: 380px;
  }
  .companyLargeImage .aboutImageEl {
    height: 380px;
  }
}
@media (max-width: 600px) {
  .homeBanner {
    min-height: 480px;
  }
  .homeBannerMedia {
    object-fit: contain;
  }
  .homeBannerContent {
    padding: 18px 14px;
    align-items: center;
    text-align: center;
  }
  .homeBannerContent h1 {
    font-size: clamp(19px, 6vw, 32px);
  }
  .bannerSlogan {
    font-size: clamp(14px, 4vw, 19px);
  }
}

/* Final responsive banner, leadership and footer refinements */
.homeBanner {
  height: calc(100vh - 78px);
  min-height: 560px;
  align-items: stretch;
  justify-content: stretch;
}
.homeBannerImage {
  z-index: 0;
}
.homeBannerMedia {
  object-fit: contain !important;
  object-position: center center !important;
}
.homeBannerContent {
  height: 100%;
  max-width: none;
  padding: 34px 6vw 7vh;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
}
.homeBannerContent h1 {
  white-space: nowrap;
  font-size: clamp(15px, 4.6vw, 76px);
  text-align: right;
}
.homeBannerContent .heroAg,
.homeBannerContent .heroIm {
  display: inline !important;
}
.bannerSlogan {
  white-space: nowrap;
  text-align: right !important;
  direction: rtl;
  margin-top: 12px;
}
.leadershipPair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  background: #f8f5ec !important;
}
.leadershipProfile {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid #dbe8d7;
  border-radius: 24px;
  background: linear-gradient(135deg, #eef7e9, #fffaf4);
  box-shadow: 0 10px 30px rgba(50, 90, 55, 0.06);
}
.leadershipProfile .mdPhotoLarge {
  width: 100%;
  height: 280px;
  border-radius: 20px;
  background: #f4f8ed;
  border: 2px solid #d9e8d2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.leadershipProfile .mdPhotoLarge img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  padding: 8px;
}
.leadershipProfile .mdPhotoLarge:empty:before {
  content: 'ছবি অ্যাডমিন থেকে যোগ করুন';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82%;
  height: 82%;
  border: 2px dashed #9fbe9f;
  border-radius: 18px;
  color: #6c866f;
  text-align: center;
  padding: 15px;
}
.leadershipProfile .mdText {
  padding: 0;
}
.leadershipProfile .mdText h2 {
  font-size: clamp(28px, 3vw, 42px);
  margin: 7px 0;
}
.companyHighlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.companyHighlights article {
  padding: 28px;
  border: 1px solid #d9e5d6;
  border-radius: 18px;
  background: #fff;
  min-height: 210px;
}
.companyHighlights article:nth-child(even) {
  background: #f7ebe7;
}
.companyHighlights article > span {
  font-weight: 900;
  color: #c85f58;
  font-size: 13px;
  letter-spacing: 0.15em;
}
.companyHighlights h3 {
  color: #3f7d4f;
  margin: 10px 0 7px;
}
.companyHighlights p {
  margin: 0;
  font-size: 14px;
}
.footerMiddle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footerNav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.footerNav a {
  font-size: 12px;
  color: #58705e;
  text-decoration: none;
  font-weight: 700;
}
.footerNav a:hover {
  color: #b55c55;
}
@media (max-width: 1100px) {
  .companyHighlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .leadershipPair {
    grid-template-columns: 1fr;
  }
  .leadershipProfile {
    grid-template-columns: minmax(200px, 280px) 1fr;
  }
}
@media (max-width: 900px) {
  .homeBanner {
    height: calc(100vh - 70px);
    min-height: 500px;
  }
  .homeBannerContent {
    padding: 24px 5vw 7vh;
  }
  .homeBannerContent h1 {
    font-size: clamp(15px, 6vw, 52px);
  }
  .bannerSlogan {
    font-size: clamp(15px, 3.8vw, 23px);
  }
  .leadershipProfile {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .leadershipProfile .mdPhotoLarge {
    width: min(100%, 330px);
    height: 330px;
    margin: auto;
  }
  .leadershipProfile .mdText {
    padding: 0;
  }
  .leadershipProfile .mdMeta {
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .homeBanner {
    min-height: 480px;
  }
  .homeBannerContent {
    padding: 18px 12px 5vh;
    align-items: flex-end;
    text-align: right;
  }
  .homeBannerContent h1 {
    font-size: clamp(13px, 5vw, 30px);
    letter-spacing: 0;
  }
  .bannerSlogan {
    font-size: clamp(13px, 4vw, 19px);
    white-space: nowrap;
  }
  .companyHighlights {
    grid-template-columns: 1fr;
  }
  .companyHighlights article {
    min-height: 0;
    padding: 22px;
  }
  .leadershipProfile {
    padding: 18px;
  }
  .leadershipProfile .mdPhotoLarge {
    height: 280px;
  }
  .footerMiddle {
    width: 100%;
  }
  .footerNav {
    gap: 9px;
  }
}

.reviewCard {
  background: #fff;
  border: 1px solid #d9e3d7;
  border-radius: 18px;
  padding: 24px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(50, 90, 55, 0.05);
}
.reviewCard p {
  margin: 14px 0;
  color: #53675a;
  font-size: 16px;
}
.reviewCard h3 {
  margin-top: auto;
  color: #3f7d4f;
}
.reviewStars {
  color: #c85f58;
  letter-spacing: 2px;
  font-size: 20px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.empty {
  padding: 30px;
  border: 1px dashed #cddbc9;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  color: #6d7e73;
}
@media (max-width: 900px) {
  .grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  footer {
    flex-wrap: wrap;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  .grid3 {
    grid-template-columns: 1fr;
  }
  footer .footerCopy {
    max-width: 100%;
  }
}

.reviewSubmitPanel {
  margin-top: 42px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.reviewForm {
  display: grid;
  grid-template-columns: 1fr 1fr 180px;
  gap: 12px;
}
.reviewForm textarea {
  grid-column: 1/-1;
  min-height: 130px;
}
.reviewForm button {
  justify-self: start;
}
.reviewForm #reviewSubmitMsg {
  grid-column: 1/-1;
}
.categoryIconNav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 30px;
}
.categoryIconChip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--char);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(49, 70, 58, 0.06);
  transition: 0.18s ease;
}
.categoryIconChip:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: 0 7px 18px rgba(49, 70, 58, 0.1);
}
.categoryIconChip.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 8px 20px rgba(47, 125, 74, 0.18);
}
.categoryIcon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--sage);
  font-size: 20px;
}
.categoryIconChip.active .categoryIcon {
  background: rgba(255, 255, 255, 0.18);
}
.categoryTitleLine {
  display: flex;
  align-items: center;
  gap: 13px;
}
.categoryHeroIcon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--sage);
  font-size: 27px;
  border: 1px solid var(--line);
}
.productCategoryBlock {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.productCategoryBlock:first-child {
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}
.productCategoryHead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.productCategoryHead h2 {
  margin: 4px 0 0;
}
.categoryCount {
  background: var(--sage);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.productCategoryBlock .grid {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .reviewForm {
    grid-template-columns: 1fr 1fr;
  }
  .productCategoryBlock .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .reviewForm {
    grid-template-columns: 1fr;
  }
  .reviewForm textarea {
    grid-column: auto;
  }
  .productCategoryHead {
    align-items: start;
    flex-direction: column;
  }
  .productCategoryBlock .grid {
    grid-template-columns: 1fr;
  }
}

/* Public product category icons stay in one clean horizontal line; scroll on small screens. */
.categoryIconNav {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding: 3px 3px 10px;
  margin: 18px 0 30px;
  scrollbar-width: thin;
}
.categoryIconChip {
  flex: 0 0 auto;
  white-space: nowrap;
}
.categoryIconNav::-webkit-scrollbar {
  height: 7px;
}
.categoryIconNav::-webkit-scrollbar-thumb {
  background: #cbdcc8;
  border-radius: 10px;
}

/* Final product categories: single straight icon row. */
.categoryIconNav {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  gap: 12px;
  padding: 3px 3px 11px;
  margin: 18px 0 30px;
  scrollbar-width: thin;
}
.categoryIconChip {
  flex: 0 0 auto;
  white-space: nowrap;
}
.categoryIconNav::-webkit-scrollbar {
  height: 7px;
}
.categoryIconNav::-webkit-scrollbar-thumb {
  background: #cbdcc8;
  border-radius: 10px;
}

/* FINAL PRODUCT CATEGORY DESIGN — original icon-led one-row layout */
.categoryIconNav {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  margin: 20px auto 34px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scrollbar-width: thin;
  max-width: 1200px;
}
.categoryIconChip {
  flex: 1 0 150px;
  max-width: 190px;
  min-width: 150px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  padding: 12px 10px 10px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: transparent !important;
  color: var(--char) !important;
  font-weight: 700;
  box-shadow: none !important;
  transform: none !important;
}
.categoryIconChip:hover {
  background: #f1f7ed !important;
  color: var(--green) !important;
}
.categoryIconChip.active {
  background: #edf6e9 !important;
  color: var(--green) !important;
  box-shadow: none !important;
}
.categoryIcon {
  width: 58px !important;
  height: 58px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: #eef6ea !important;
  border: 1px solid #d7e7d3 !important;
  font-size: 28px !important;
  box-shadow: 0 5px 14px rgba(49, 70, 58, 0.07);
}
.categoryIconChip.active .categoryIcon {
  background: var(--green) !important;
  color: #fff !important;
  border-color: var(--green) !important;
}
.categoryIconChip span:last-child {
  white-space: nowrap;
  font-size: 14px;
}
.dynamicPeopleArea[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  .categoryIconNav {
    justify-content: flex-start;
    gap: 8px;
  }
  .categoryIconChip {
    flex: 0 0 120px;
    min-width: 120px;
  }
  .categoryIcon {
    width: 50px !important;
    height: 50px !important;
    font-size: 24px !important;
  }
}

/* Final launch polish: category navigation stays in one straight row and team photos render from saved upload URLs. */
#cats {
  width: 100%;
  overflow: hidden;
}
#cats .categoryIconNav {
  display: flex;
  flex-wrap: nowrap !important;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 12px;
  margin: 18px 0 28px;
  scrollbar-width: thin;
}
#cats .categoryTile {
  flex: 0 0 150px;
  min-width: 150px;
  max-width: 170px;
  box-sizing: border-box;
  border: 1px solid #d8e4d7;
  background: #fff;
  border-radius: 14px;
  padding: 13px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #31463a;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}
#cats .categoryTile span {
  font-size: 27px;
  line-height: 1.1;
}
#cats .categoryTile b {
  font-size: 14px;
}
#cats .categoryTile small {
  font-size: 11px;
  color: #708176;
}
#cats .categoryTile:hover,
#cats .categoryTile.active {
  border-color: #4f8b58;
  background: #edf6e9;
  transform: translateY(-2px);
}
#cats .categoryTile.all span {
  font-size: 28px;
}
.teamPeopleGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  align-items: start;
}
.teamPeopleGrid .person {
  text-align: center;
  padding: 10px 8px;
}
.teamPeopleGrid .personPhotoWrap {
  width: 150px;
  height: 150px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  background: #f4f8ed;
  border: 5px solid #edf5eb;
  display: grid;
  place-items: center;
}
.teamPeopleGrid .personImg {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  display: block;
}
.teamPeopleGrid .personPlaceholder {
  font-size: 13px;
  color: #748278;
  padding: 12px;
  box-sizing: border-box;
}
.teamPeopleGrid .person.imageFailed .personPhotoWrap:after {
  content: 'Photo unavailable';
  font-size: 12px;
  color: #748278;
}
.teamPeopleGrid .person h3 {
  margin: 0 5px;
  color: #315f3b;
}
.teamPeopleGrid .person p,
.teamPeopleGrid .person small {
  display: block;
  margin: 5px;
  color: #6a786e;
}
@media (max-width: 700px) {
  #cats .categoryIconNav {
    justify-content: flex-start;
    gap: 9px;
  }
  #cats .categoryTile {
    flex-basis: 125px;
    min-width: 125px;
    padding: 11px 8px;
  }
  .teamPeopleGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .teamPeopleGrid .personPhotoWrap {
    width: 125px;
    height: 125px;
  }
}
body.modalOpen {
  overflow: hidden;
}

/* PRODUCT FINAL FIX 4.12.2 — stable admin upload preview, card sizing and detail view */
.productCard {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.productCard .productImage {
  width: 100%;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  max-width: 100%;
  padding: 14px;
  object-fit: contain !important;
  object-position: center;
  display: block;
  background: #f1f5eb;
  overflow: hidden;
}
.productCard .productCardBody {
  padding: 16px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.productCard .productCardBody h3 {
  margin: 5px 0 7px;
  overflow-wrap: anywhere;
}
.productCard .productCardBody p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.productCardActions {
  margin-top: auto;
  padding-top: 14px;
}
.productDetail {
  width: min(1180px, 94vw);
  min-height: min(760px, 92vh);
  margin: 4vh auto;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  position: relative;
}
.productDetail .detailImage {
  width: 100%;
  height: 520px;
  max-width: 100%;
  max-height: 520px;
  display: block;
  object-fit: contain !important;
  object-position: center;
  background: #f1f5eb;
  border-radius: 16px;
  padding: 18px;
  box-shadow: none !important;
}
.productDetail > div:last-child {
  min-width: 0;
  padding-top: 28px;
}
.productDetail h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  color: var(--forest);
  margin: 8px 0 14px;
  overflow-wrap: anywhere;
}
.productDetail p {
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.productDetail .detailRow {
  display: grid;
  grid-template-columns: minmax(130px, 190px) minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.productDetail .detailRow b {
  color: var(--forest);
}
.productDetail .detailRow span {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.productDetail .overlayClose {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--forest);
  font-size: 26px;
  line-height: 1;
  z-index: 2;
}
.uploadBox .preview {
  display: block;
  width: 220px !important;
  height: 170px !important;
  max-width: 100% !important;
  max-height: 170px !important;
  object-fit: contain !important;
  margin-top: 10px;
  padding: 8px;
  background: #f1f5eb;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.tableWrap .thumb {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  object-fit: contain !important;
  display: block;
  background: #f1f5eb;
  border-radius: 8px;
}
@media (max-width: 900px) {
  .productDetail {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 2vh auto;
    padding: 20px;
  }
  .productDetail .detailImage {
    height: 380px;
    max-height: 380px;
  }
  .productDetail > div:last-child {
    padding-top: 5px;
  }
  .productDetail .detailRow {
    grid-template-columns: 1fr;
  }
  .productDetail .overlayClose {
    right: 12px;
    top: 10px;
  }
}
@media (max-width: 600px) {
  .productCard .productImage {
    height: 200px;
    min-height: 200px;
    max-height: 200px;
  }
  .productDetail {
    width: 96vw;
    border-radius: 14px;
    padding: 14px;
  }
  .productDetail .detailImage {
    height: 300px;
    max-height: 300px;
    padding: 10px;
  }
  .productDetail h2 {
    font-size: 30px;
  }
  .uploadBox .preview {
    width: 180px !important;
    height: 140px !important;
    max-height: 140px !important;
  }
}

/* About page — Success & Beautiful Moments */
.successMoments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.successMomentCard {
  margin: 0;
  border: 1px solid #d9e5d6;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(63, 125, 79, 0.08);
}
.successMomentImage {
  display: block;
  width: 100%;
  height: 260px;
  padding: 0;
  border: 0;
  background: #f7faf6;
  cursor: pointer;
  overflow: hidden;
}
.successMomentImage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.successMomentImage:hover img {
  transform: scale(1.025);
}
.successMomentCaption {
  padding: 18px 20px 20px;
}
.successMomentCaption h3 {
  margin: 0 0 7px;
  color: #3f7d4f;
}
.successMomentCaption p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}
.successAdminItem {
  margin: 14px 0;
  padding: 18px;
  border: 1px solid #d9e5d6;
  border-radius: 14px;
}
.successAdminPanel .preview {
  max-width: 180px;
  max-height: 130px;
  object-fit: contain;
  display: block;
  margin-top: 10px;
  border-radius: 10px;
}
.imageViewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 45, 25, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.imageViewer.open {
  display: flex;
}
.imageViewerInner {
  max-width: min(1100px, 94vw);
  max-height: 92vh;
  text-align: center;
}
.imageViewer img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}
.imageViewerTitle {
  color: #fff;
  font-weight: 700;
  margin-top: 10px;
}
.imageViewerClose {
  position: absolute;
  right: 20px;
  top: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  background: #fff;
  color: #333;
}
.viewerOpen {
  overflow: hidden;
}
@media (max-width: 900px) {
  .successMoments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .successMoments {
    grid-template-columns: 1fr;
  }
  .successMomentImage {
    height: 240px;
  }
}
