:root {
  --green: #6daa00;
  --green-deep: #4f7f00;
  --green-soft: #edf7d2;
  --text: #2d3328;
  --muted: #73796d;
  --line: #dce4cf;
  --cream: #fbfaf5;
  --card: #ffffff;
  --accent: #f5b53b;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--text);
  background: #f7f8f2;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  max-width: 1180px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 10px 30px rgba(85, 101, 63, 0.08);
}

.organic-nav {
  padding: 0.9rem 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-leaf {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(145deg, var(--green) 0%, #8bc523 100%);
}

.brand-mark strong,
.brand-mark small {
  display: block;
  line-height: 1.1;
}

.brand-mark strong {
  color: var(--green-deep);
}

.brand-mark small {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-link {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--green);
}

.nav-actions {
  display: flex;
  align-items: center;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-select:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.18rem rgba(109, 170, 0, 0.2);
  border-color: rgba(109, 170, 0, 0.35);
}

.btn-brand,
.btn-pill {
  color: #fff;
  background: var(--green);
}

.btn-brand:hover,
.btn-pill:hover {
  color: #fff;
  background: var(--green-deep);
}

.btn-ghost,
.btn-pill-light {
  color: var(--green-deep);
  background: #f2f8e7;
  border: 1px solid #d6e9af;
}

.btn-pill {
  padding-inline: 1.1rem;
}

.btn-pill-light:hover,
.btn-ghost:hover {
  color: var(--green-deep);
  background: #eaf4d4;
}

.utility-bar {
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
}

.utility-inner,
.utility-copy,
.service-pills,
.stage-nav,
.hero-highlight-list,
.section-title-wrap,
.footer-bottom {
  display: flex;
}

.utility-inner {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0;
}

.utility-copy {
  gap: 1rem;
  flex-wrap: wrap;
}

.utility-right {
  justify-content: flex-end;
}

.home-stage {
  padding: 1.2rem 0 3.5rem;
}

.service-pills {
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.service-pills article {
  flex: 1;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.service-pills strong,
.service-pills span {
  display: block;
}

.service-pills strong {
  color: var(--green-deep);
  font-size: 0.95rem;
}

.service-pills span {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.stage-nav {
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
  border-radius: 18px;
  background: var(--green);
  color: #fff;
  flex-wrap: wrap;
}

.stage-nav a,
.stage-search {
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.stage-nav a.active {
  background: rgba(255, 255, 255, 0.18);
}

.stage-search {
  margin-left: auto;
  color: #5e6654;
  background: #fff;
}

.hero-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1rem;
}

.category-sidebar,
.hero-banner,
.quick-card,
.market-card,
.article-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.category-sidebar {
  padding: 1rem;
}

.sidebar-title {
  margin-bottom: 0.85rem;
  color: var(--green-deep);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sidebar-link {
  display: block;
  padding: 0.62rem 0;
  color: #4c5443;
  font-size: 0.92rem;
  border-bottom: 1px dashed #d7dfca;
}

.sidebar-link:last-child {
  border-bottom: 0;
}

.hero-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 1rem;
  padding: 1.25rem;
}

.hero-copy-block {
  padding: 1rem 0.5rem 1rem 0.75rem;
  background:
    radial-gradient(circle at center, rgba(109, 170, 0, 0.08), transparent 54%),
    linear-gradient(180deg, #fff 0%, #fbfaf5 100%);
  border-radius: 18px;
}

.hero-copy-block h1 {
  margin: 0.25rem 0 0.9rem;
  color: #1d2617;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.hero-copy-block p,
.section-title-wrap p,
.market-body p,
.article-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-kicker,
.section-badge,
.promo-chip,
.article-card span {
  display: inline-block;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-highlight-list {
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.4rem;
}

.hero-highlight-list span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 150px);
  gap: 0.8rem;
}

.hero-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(140deg, #a6cf57 0%, #4f7f00 100%);
  text-align: center;
  padding: 1rem;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.hero-visual span {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-visual-tall {
  grid-row: span 2;
  background: linear-gradient(160deg, #30401d 0%, #88b63a 100%);
  color: #fff;
}

.quick-row,
.market-grid,
.article-grid {
  display: grid;
  gap: 1rem;
}

.quick-row {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 1rem;
}

.quick-card {
  padding: 0.85rem;
  text-align: center;
}

.quick-thumb {
  aspect-ratio: 1 / 1;
  margin-bottom: 0.75rem;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f4f7eb 0%, #eef2df 100%);
}

.quick-thumb span,
.market-image span {
  color: rgba(79, 127, 0, 0.45);
  font-size: 2rem;
  font-weight: 800;
}

.quick-card h3,
.market-body h3,
.article-card h3 {
  font-size: 0.95rem;
}

.price,
.market-body strong {
  color: var(--green);
  font-weight: 800;
}

.section-block,
.news-section {
  padding: 0 0 2.8rem;
}

.section-title-wrap {
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  text-align: center;
}

.section-title-wrap h2 {
  margin: 0;
  color: #27321e;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
}

.market-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.market-card {
  overflow: hidden;
}

.market-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f4f7eb 0%, #eef2df 100%);
}

.market-image img,
.quick-thumb img,
.hero-visual img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-image img,
.quick-thumb img {
  position: static;
}

.market-body {
  padding: 0.9rem;
}

.market-body h3 {
  min-height: 2.6rem;
  margin: 0 0 0.35rem;
}

.market-body p {
  min-height: 2.8rem;
  margin-bottom: 0.55rem;
  font-size: 0.84rem;
}

.section-cta {
  margin-top: 1rem;
  text-align: center;
}

.promo-banner {
  padding-bottom: 2.8rem;
}

.promo-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem 1.5rem;
  border-radius: 22px;
  background: linear-gradient(120deg, #ffefb1 0%, #dff1b0 100%);
  border: 1px solid #dce7b4;
}

.promo-panel h3 {
  margin: 0.35rem 0 0;
  color: #305017;
}

.news-section {
  padding-bottom: 3.5rem;
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-card {
  padding: 1.25rem;
}

.article-card h3 {
  margin: 0.8rem 0;
  color: #27321e;
  font-size: 1.15rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 2rem;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(180deg, #629000 0%, #4f7f00 100%);
}

.site-footer h5,
.site-footer h6 {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer a {
  display: block;
  margin-bottom: 0.7rem;
}

.footer-bottom {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
}

.content-section {
  padding: 4rem 0;
}

.narrow {
  max-width: 860px;
}

.info-stack {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.info-card {
  padding: 1.35rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.catalog-stage,
.catalog-content,
.product-detail-stage,
.related-products-section,
.product-editor-stage {
  padding: 2rem 0 3rem;
}

.catalog-stage-grid,
.product-detail-grid,
.product-editor-grid,
.editor-two-column {
  display: grid;
  gap: 1.25rem;
}

.catalog-stage-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.catalog-copy,
.catalog-panel,
.catalog-product-card,
.product-detail-media,
.product-detail-copy,
.editor-main-card,
.editor-side-card {
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.catalog-copy {
  padding: 2rem;
  background:
    radial-gradient(circle at top right, rgba(109, 170, 0, 0.12), transparent 28%),
    linear-gradient(180deg, #fff 0%, #f8fbef 100%);
}

.catalog-copy h1,
.product-detail-copy h1,
.editor-heading h1 {
  margin: 0.35rem 0 0.85rem;
  color: #1d2617;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.2;
}

.catalog-copy p,
.catalog-toolbar-copy p,
.catalog-card-body p,
.product-detail-lead,
.product-detail-panel p,
.editor-heading p,
.editor-tip-box p {
  color: var(--muted);
  line-height: 1.7;
}

.catalog-stat-row,
.catalog-toolbar,
.catalog-card-meta,
.catalog-card-footer,
.catalog-card-actions,
.product-detail-price,
.product-detail-actions,
.editor-heading,
.editor-actions {
  display: flex;
}

.catalog-stage {
  padding: 4rem 0;
  background: radial-gradient(circle at top right, rgba(109, 170, 0, 0.08), transparent 40%),
              linear-gradient(180deg, #fbfcf8 0%, #f7f8f2 100%);
}

.catalog-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: #fff;
  color: var(--green-deep);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.catalog-stat-row article {
  flex: 1;
  padding: 1.5rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #eef2df;
  box-shadow: 0 8px 24px rgba(85, 101, 63, 0.04);
}

.catalog-stat-row strong {
  display: block;
  color: var(--green);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.catalog-stat-row span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}
.catalog-panel {
  padding: 2rem;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(85, 101, 63, 0.05);
}

.catalog-panel-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f4e8;
}

.catalog-panel-head strong {
  display: block;
  color: #1d2617;
  font-size: 1.15rem;
  font-weight: 800;
}

.catalog-panel-head span {
  color: var(--muted);
  font-size: 0.85rem;
}

.catalog-filter-form {
  display: grid;
  gap: 1.25rem;
}


.filter-label,
.editor-field label {
  color: #405035;
  font-size: 0.9rem;
  font-weight: 700;
}

.filter-toggle,
.editor-checkbox {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: #f5f8ee;
  border: 1px solid #dde7cb;
}

.catalog-filter-actions,
.catalog-chip-row,
.product-detail-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.catalog-toolbar {
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.catalog-toolbar-copy h2,
.related-products-section h2 {
  margin: 0.35rem 0 0;
  color: #27321e;
}

.catalog-chip-row {
  margin-bottom: 1.2rem;
}

.btn-brand {
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(109, 170, 0, 0.2);
}

.btn-brand:hover {
  background: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(109, 170, 0, 0.3);
}

.catalog-chip {
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  color: #506146;
  font-size: 0.85rem;
  font-weight: 700;
  background: #fff;
  border: 1px solid #dbe4cd;
  transition: all 0.2s ease;
}

.catalog-chip.active,
.catalog-chip:hover {
  color: #fff;
  background: var(--green-deep);
  border-color: var(--green-deep);
  transform: scale(1.05);
}


.catalog-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.catalog-product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(85, 101, 63, 0.12);
}

.catalog-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f4f7eb 0%, #eef2df 100%);
  border-bottom: 1px solid var(--line);
}

.catalog-card-media img,
.product-detail-media img,
.editor-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-placeholder,
.product-detail-placeholder,
.editor-preview-placeholder {
  color: rgba(79, 127, 0, 0.45);
  font-size: 3rem;
  font-weight: 800;
}

.catalog-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--green-deep);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.catalog-card-body,
.product-detail-copy,
.editor-main-card,
.editor-side-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.catalog-card-meta {
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.catalog-card-body h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.catalog-card-body p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.catalog-card-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8faf2;
  border-radius: 12px;
}

.catalog-card-specs dt {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.catalog-card-specs dd {
  margin: 0;
  color: var(--green-deep);
  font-weight: 700;
  font-size: 0.95rem;
}

.catalog-card-footer {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
}

.catalog-card-footer strong,
.product-detail-price strong {
  display: block;
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 800;
}

.catalog-card-footer span,
.product-detail-price span {
  color: var(--muted);
  font-size: 0.8rem;
}

.catalog-card-actions {
  align-items: center;
  gap: 0.75rem;
}

.product-detail-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.product-detail-media {
  min-height: 540px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f4f7eb 0%, #eef2df 100%);
}

.product-detail-copy {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.product-detail-lead {
  margin: 0;
  font-size: 1rem;
}

.product-detail-price {
  align-items: baseline;
  gap: 1rem;
}

.product-detail-badges span {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  color: var(--green-deep);
  font-size: 0.85rem;
  font-weight: 700;
  background: #f0f7dc;
}

.product-detail-panel {
  display: grid;
  gap: 0.9rem;
}

.product-detail-panel article,
.editor-tip-box {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #f8faf2;
  border: 1px solid #dce5cf;
}

.product-detail-panel strong,
.editor-tip-box strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #30401d;
}

.product-detail-actions,
.editor-heading,
.editor-actions {
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.editor-heading {
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.product-editor-grid {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.editor-section {
  display: grid;
  gap: 0.9rem;
}

.editor-two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-field {
  display: grid;
  gap: 0.45rem;
}

.editor-preview-frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f4f7eb 0%, #eef2df 100%);
}

.catalog-product-card.compact .catalog-card-media {
  aspect-ratio: 4 / 3;
}

.empty-state {
  padding: 3rem;
  text-align: center;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.form-control,
.form-select {
  min-height: 3rem;
  border-radius: 14px;
  border-color: #d9e2cb;
}

textarea.form-control {
  min-height: 120px;
}

@media (max-width: 1199.98px) {
  .quick-row,
  .market-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .hero-layout,
  .hero-banner,
  .promo-panel,
  .footer-grid,
  .article-grid,
  .catalog-stage-grid,
  .product-detail-grid,
  .product-editor-grid,
  .editor-two-column {
    grid-template-columns: 1fr;
  }

  .service-pills,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .stage-search {
    margin-left: 0;
  }

  .quick-row,
  .market-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .utility-inner,
  .utility-copy,
  .stage-nav,
  .section-title-wrap,
  .footer-bottom,
  .catalog-toolbar,
  .catalog-card-footer,
  .catalog-card-actions,
  .product-detail-price,
  .product-detail-actions,
  .editor-heading,
  .editor-actions,
  .catalog-stat-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-row,
  .market-grid,
  .article-grid,
  .catalog-product-grid,
  .catalog-card-specs {
    grid-template-columns: 1fr;
  }

  .home-stage,
  .section-block,
  .news-section,
  .catalog-stage,
  .catalog-content,
  .product-detail-stage,
  .related-products-section,
  .product-editor-stage {
    padding-bottom: 2rem;
  }
}

/* Search Bar Styles */
.header-search-container {
    flex-grow: 1;
    max-width: 500px;
}

.search-box-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    border-radius: 99px;
    padding: 0.6rem 1.5rem;
    padding-right: 3rem;
    border: 1px solid #e0e0e0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
    border-color: var(--green);
}

.search-btn {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--green);
    font-size: 1.1rem;
    cursor: pointer;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid #eee;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f8f9fa;
    color: var(--green-deep);
}

.search-result-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    background: #eee;
}

.search-result-info div:first-child {
    font-weight: 600;
    font-size: 0.9rem;
}

.search-result-info div:last-child {
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 700;
}

/* Floating Controls */
.floating-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

#back-to-top {
    position: fixed;
    bottom: 100px; /* Dịch lên cao để tránh đè Zalo Widget */
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-circle:hover {
    transform: scale(1.1) translateY(-5px);
}

/* Product Card Enhancements */
.catalog-product-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.catalog-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.catalog-card-media img {
    transition: transform 0.6s ease;
}

.catalog-product-card:hover .catalog-card-media img {
    transform: scale(1.08);
}

/* Review Section Styles */
.review-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.review-stars {
    color: #ffc107;
    margin-bottom: 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1.5rem;
}

.review-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #eee;
}

/* Section AOS Spacing */
.section-block {
    overflow: hidden; /* Prevent horizontal scroll from AOS slide animations */
}

/* --- Live Chat Styles --- */
.chat-wrapper { position: fixed; bottom: 30px; right: 30px; z-index: 2000; }
.chat-box { position: absolute; bottom: 80px; right: 0; width: 320px; height: 450px; background: white; border-radius: 15px; display: flex; flex-direction: column; overflow: hidden; transform: translateY(20px); opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.chat-box.show { transform: translateY(0); opacity: 1; visibility: visible; }
.chat-header { background: var(--brand-color, #2ecc71); color: white; padding: 15px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.chat-messages { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: #f8f9fa; }
.message { padding: 8px 12px; border-radius: 12px; max-width: 85%; font-size: 14px; line-height: 1.4; }
.message.system { align-self: center; background: #e9ecef; color: #6c757d; font-size: 12px; }
.message.user { align-self: flex-end; background: var(--brand-color, #2ecc71); color: white; border-bottom-right-radius: 2px; }
.message.other { align-self: flex-start; background: white; color: #333; border-bottom-left-radius: 2px; border: 1px solid #dee2e6; }
.message .time { font-size: 10px; opacity: 0.7; margin-top: 4px; display: block; text-align: right; }
.chat-input-area { padding: 10px; background: white; border-top: 1px solid #eee; display: flex; gap: 8px; }
.chat-input-area input { flex: 1; border: 1px solid #dee2e6; border-radius: 20px; padding: 8px 15px; outline: none; font-size: 14px; }
.chat-input-area button { background: none; border: none; font-size: 20px; cursor: pointer; transition: transform 0.2s; }
.chat-input-area button:hover { transform: scale(1.2); }
#chat-toggle { width: 60px; height: 60px; font-size: 24px; display: flex; align-items: center; justify-content: center; background: var(--brand-color, #2ecc71); color: white; border: none; cursor: pointer; }
#chat-toggle:hover { transform: scale(1.05); }


/* --- Footer Refinement --- */
.site-footer { padding: 3rem 0 1.5rem; background: #2c3e50; color: #ecf0f1; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer-grid h5, .footer-grid h6 { color: #fff; margin-bottom: 1.2rem; font-weight: 700; font-size: 1.1rem; }
.footer-grid p { line-height: 1.6; opacity: 0.8; }
.footer-grid a { display: block; color: #bdc3c7; text-decoration: none; margin-bottom: 0.6rem; transition: all 0.2s; }
.footer-grid a:hover { color: #2ecc71; padding-left: 5px; }
.footer-grid a i { width: 20px; text-align: center; margin-right: 8px; font-size: 0.85rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; opacity: 0.6; }


/* --- Enhanced Chat UI & Floating Controls --- */
.floating-controls { position: fixed; bottom: 30px; right: 30px; z-index: 2000; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

#back-to-top { opacity: 0; visibility: hidden; transition: all 0.3s ease; transform: translateY(10px); }
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

.chat-wrapper { position: relative; }

/* Custom Scrollbar for Chat */
.chat-messages::-webkit-scrollbar, #chat-history::-webkit-scrollbar, #user-list::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-track, #chat-history::-webkit-scrollbar-track, #user-list::-webkit-scrollbar-track { background: #f1f1f1; }
.chat-messages::-webkit-scrollbar-thumb, #chat-history::-webkit-scrollbar-thumb, #user-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.chat-messages::-webkit-scrollbar-thumb:hover, #chat-history::-webkit-scrollbar-thumb:hover, #user-list::-webkit-scrollbar-thumb:hover { background: #2ecc71; }

.chat-messages { scroll-behavior: smooth; }

/* Layout Fix for Admin Support History */
#chat-history { scroll-behavior: smooth; min-height: 0; overflow-y: auto; }

