/* ===== CSS Variables ===== */
:root {
  --brand-green: #2f6b3a;
  --brand-green-dark: #1f4d28;
  --brand-sand: #f7f2e8;
  --brand-ink: #1d2a1f;
}

/* ===== Transitions ===== */
a, button, .btn, .card, .nav-link, .quick-link-card, .case-strip, .info-card, .stat-card, .hero-card, .contact-panel, .table tbody tr {
  transition: transform .28s ease, box-shadow .28s ease, background-color .28s ease, color .28s ease, border-color .28s ease, opacity .28s ease;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes floatBlob {
  0%, 100% { transform: translateY(0) translate(0) scale(1); }
  50% { transform: translateY(-20px) translate(10px) scale(1.05); }
}

.public-shell main > section,
.card,
.page-banner,
.info-card,
.hero-card,
.case-strip,
.stat-card,
.contact-panel {
  animation: fadeUp .7s ease both;
}

.public-shell main > section:nth-child(2),
.card:nth-child(2),
.info-card:nth-child(2),
.case-strip:nth-child(2) {
  animation-delay: .08s;
}

.public-shell main > section:nth-child(3),
.card:nth-child(3),
.info-card:nth-child(3),
.case-strip:nth-child(3) {
  animation-delay: .16s;
}

/* ===== Navbar ===== */
.navbar-brand {
  position: relative;
  transition: transform .25s ease, color .25s ease;
}

.navbar-brand:hover {
  transform: translateY(-1px);
}

.nav-link {
  position: relative;
  font-weight: 500;
}

.nav-link:after {
  content: "";
  position: absolute;
  left: .5rem;
  right: .5rem;
  bottom: .35rem;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-green), #90b16f);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
  transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-green-dark) !important;
}

/* ===== Hero Section ===== */
.hero-section {
  background: radial-gradient(circle at top left, rgba(255,255,255,.22), transparent 35%),
              linear-gradient(135deg, #23452c, #437a4d, #8baa76);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-section:before,
.hero-section:after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  filter: blur(2px);
  animation: floatBlob 10s ease-in-out infinite;
}

.hero-section:before {
  width: 240px;
  height: 240px;
  right: -60px;
  top: 40px;
}

.hero-section:after {
  width: 180px;
  height: 180px;
  left: -40px;
  bottom: -20px;
  animation-delay: -3s;
}

/* ===== Cards ===== */
.hero-card,
.info-card,
.stat-card,
.contact-panel {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
}

.hero-card {
  overflow: hidden;
  background: rgba(255,255,255,0.95);
  color: var(--brand-ink);
}

.hero-card:hover,
.info-card:hover,
.case-strip:hover,
.contact-panel:hover,
.stat-card:hover,
.page-banner:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(24,45,29,0.14);
}

/* ===== Images ===== */
.hero-image,
.object-cover,
.detail-cover,
.detail-list-cover,
.news-detail-cover {
  object-fit: cover;
}

.hero-image {
  height: 180px;
}

.object-cover {
  height: 220px;
}

.detail-cover {
  min-height: 420px;
}

.detail-list-cover {
  min-height: 220px;
}

.news-detail-cover {
  width: 100%;
  max-height: 420px;
}

.card:hover .object-cover,
.hero-card:hover .hero-image,
.case-strip:hover img,
.page-banner:hover .page-banner-image,
.card:hover .detail-list-cover {
  transform: scale(1.06);
}

/* ===== Section Kicker ===== */
.section-kicker {
  color: var(--brand-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  margin-bottom: .5rem;
}

/* ===== Page Banner ===== */
.page-banner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #fff, #eef4ea);
}

.page-banner-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 1rem;
  transition: transform .4s ease;
}

/* ===== Case Strip ===== */
.case-strip {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  padding: .9rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
}

.case-strip img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: .75rem;
  transition: transform .35s ease;
}

/* ===== Rich Content ===== */
.rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 1rem 0;
}

.rich-content p {
  line-height: 1.9;
}

.rich-content h2,
.rich-content h3 {
  margin-top: 1.5rem;
  margin-bottom: .75rem;
  color: var(--brand-green-dark);
}

/* ===== Quick Link Card ===== */
.quick-link-card {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: #f4f8f3;
  color: var(--brand-green-dark);
  text-decoration: none;
}

.quick-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(37,79,46,0.14);
}

/* ===== Stat Card ===== */
.stat-card {
  border-radius: 1.2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.stat-card.highlight {
  background: linear-gradient(135deg, #fffbe5, #fff0c4);
}

/* ===== Button Success Override ===== */
.btn-success {
  --bs-btn-bg: var(--brand-green);
  --bs-btn-border-color: var(--brand-green);
  --bs-btn-hover-bg: var(--brand-green-dark);
  --bs-btn-hover-border-color: var(--brand-green-dark);
  --bs-btn-active-bg: var(--brand-green-dark);
  --bs-btn-active-border-color: var(--brand-green-dark);
}

.text-success {
  color: var(--brand-green) !important;
}

.bg-success {
  background-color: var(--brand-green) !important;
}

/* ===== Footer ===== */
.footer-link {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color .28s ease;
}

.footer-link:hover {
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .page-banner {
    grid-template-columns: 1fr;
  }

  .page-banner-image {
    height: 240px;
  }
}

@media (max-width: 575.98px) {
  .hero-section:before,
  .hero-section:after {
    display: none;
  }
}

/* ===== Back to Top & Float Consult ===== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 80px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(47,107,58,0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  background: var(--brand-green-dark);
}

.float-consult {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand-green);
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(47,107,58,0.3);
  transition: transform .3s ease, background .3s ease;
}

.float-consult:hover {
  transform: translateY(-4px);
  background: var(--brand-green-dark);
  color: #fff;
}

/* ===== Map Placeholder ===== */
.map-placeholder {
  height: 300px;
  background: linear-gradient(135deg, #2f6b3a, #437a4d, #8baa76);
  border-radius: 1rem;
  transition: transform .3s ease;
}

.map-placeholder:hover {
  transform: scale(1.02);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: var(--brand-green);
}

.breadcrumb-item a:hover {
  color: var(--brand-green-dark);
}

/* ===== FAQ Accordion ===== */
.faq-item {
  border: none;
  border-bottom: 1px solid #e9ecef;
}

.faq-item .accordion-button {
  font-weight: 600;
  color: var(--brand-ink);
}

.faq-item .accordion-button:not(.collapsed) {
  background: #f4f8f3;
  color: var(--brand-green-dark);
}

.faq-item .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(47,107,58,0.15);
}

/* ===== Text Truncate for News Nav ===== */
.text-truncate {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Shop: Search + Category Tabs ===== */
.shop-toolbar {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.shop-search-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.shop-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  font-size: .9rem;
  pointer-events: none;
}

.shop-search-input {
  padding-left: 38px;
  border-radius: 999px;
  border: 2px solid #e9ecef;
  flex: 1;
  transition: border-color .25s ease;
}

.shop-search-input:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 .15rem rgba(47,107,58,0.1);
}

.shop-search-btn {
  border-radius: 999px;
  padding: .45rem 1.5rem;
  white-space: nowrap;
}

.category-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.category-tab {
  border: 2px solid #e9ecef;
  background: #fff;
  color: #495057;
  padding: .35rem 1.1rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s ease;
}

.category-tab:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.category-tab.active {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
}

/* ===== Shop: Product Card ===== */
.shop-card {
  display: block;
  background: #fff;
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform .25s ease, box-shadow .25s ease;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(24,45,29,0.12);
}

.shop-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: #f8f9fa;
}

.shop-card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.shop-card:hover .shop-card-img-wrap img {
  transform: scale(1.08);
}

.shop-card-body {
  padding: .6rem .7rem .7rem;
}

.shop-card-name {
  font-size: .95rem;
  font-weight: 600;
  color: #1d2a1f;
  margin: 0 0 .15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-card-desc {
  font-size: .78rem;
  color: #adb5bd;
  margin: 0 0 .35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-card-price {
  font-size: .95rem;
  font-weight: 700;
  color: #e74c3c;
}

.shop-card-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f4f8f3;
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  transition: background .2s ease;
}

.shop-card:hover .shop-card-btn {
  background: var(--brand-green);
  color: #fff;
}

/* ===== Shop: Detail Page ===== */
.shop-detail-img-wrap {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  aspect-ratio: 1 / 1;
}

.shop-detail-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-detail-info {
  padding: .5rem 0;
}

.shop-detail-cat {
  font-size: .8rem;
  color: var(--brand-green);
  font-weight: 600;
  margin-bottom: .3rem;
}

.shop-detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1d2a1f;
  margin-bottom: .3rem;
}

.shop-detail-subtitle {
  font-size: .95rem;
  color: #6c757d;
  margin-bottom: 1rem;
}

.shop-detail-price-box {
  background: linear-gradient(135deg, #fff5f5, #fff0f0);
  border-radius: .75rem;
  padding: .8rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: .6rem;
}

.shop-detail-price-label {
  font-size: .8rem;
  color: #adb5bd;
}

.shop-detail-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: #e74c3c;
}

.shop-detail-summary {
  font-size: .9rem;
  color: #495057;
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

/* Specs */
.shop-specs,
.shop-spec-table {
  margin-bottom: 1.2rem;
}

.shop-spec-row {
  display: flex;
  padding: .4rem 0;
  border-bottom: 1px dashed #e9ecef;
  font-size: .88rem;
}

.shop-spec-row:last-child {
  border-bottom: none;
}

.shop-spec-label {
  width: 90px;
  flex-shrink: 0;
  color: #adb5bd;
}

.shop-spec-value {
  color: #495057;
  flex: 1;
}

/* Action Buttons */
.shop-detail-actions {
  display: flex;
  gap: .6rem;
  margin-bottom: 1rem;
}

.shop-btn-buy {
  flex: 2;
  border-radius: .5rem;
  font-weight: 600;
}

.shop-btn-ask {
  flex: 1;
  border-radius: .5rem;
}

/* Service Icons */
.shop-detail-service {
  display: flex;
  gap: 1.2rem;
  padding-top: .8rem;
  border-top: 1px solid #f0f0f0;
  font-size: .8rem;
  color: #6c757d;
}

/* Detail Sections */
.shop-detail-sections {
  margin-top: 1rem;
}

.shop-detail-section {
  background: #fff;
  border-radius: .75rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.shop-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-green-dark);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid #f4f8f3;
}

.shop-spec-table .shop-spec-row:last-child {
  border-bottom: 1px solid #e9ecef;
}

/* ===== Video Showcase ===== */
.video-main-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  background: #000;
}

.video-main-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: background .3s ease;
}

.video-play-overlay:hover {
  background: rgba(0,0,0,0.2);
}

.video-play-overlay i {
  font-size: 4rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  transition: transform .3s ease;
}

.video-play-overlay:hover i {
  transform: scale(1.15);
}

.video-play-overlay span {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: .6rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.video-thumbs {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  height: 100%;
}

.video-thumb-item {
  display: flex;
  gap: .6rem;
  padding: .5rem;
  border-radius: .6rem;
  cursor: pointer;
  transition: background .25s ease;
  background: rgba(255,255,255,0.08);
}

.video-thumb-item:hover {
  background: rgba(255,255,255,0.15);
}

.video-thumb-item.active {
  background: rgba(255,255,255,0.2);
  box-shadow: inset 3px 0 0 #90b16f;
}

.video-thumb-img {
  position: relative;
  width: 100px;
  height: 64px;
  border-radius: .4rem;
  overflow: hidden;
  flex-shrink: 0;
}

.video-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb-img i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  color: #fff;
  font-size: 1.2rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.video-thumb-info {
  flex: 1;
  min-width: 0;
}

.video-thumb-title {
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  margin: 0 0 .15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-thumb-desc {
  color: rgba(255,255,255,0.55);
  font-size: .75rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
