:root {
  --ec-burgundy: #8B1A2B;
  --ec-burgundy-dark: #6B1320;
  --ec-gold: #C9A84C;
  --ec-gold-light: #E8D5A3;
  --ec-ivory: #FAF5F0;
  --ec-warm-white: #FFFCF8;
  --ec-dark: #2C1810;
  --ec-text: #3D2B1F;
  --ec-muted: #8B7355;
}

.text-secondary,
.fst-italic.text-secondary {
  color: var(--ec-gold) !important;
}

.text-dark {
  color: var(--ec-text) !important;
}

.text-muted {
  color: var(--ec-muted) !important;
}

.bg-dark {
  background-color: var(--ec-dark) !important;
}

.bg-light {
  background-color: var(--ec-ivory) !important;
}

body {
  background-color: var(--ec-warm-white);
  color: var(--ec-text);
  padding-top: 76px;
}

.btn-primary {
  background-color: var(--ec-burgundy) !important;
  border-color: var(--ec-burgundy) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--ec-burgundy-dark) !important;
  border-color: var(--ec-burgundy-dark) !important;
}

.btn-outline-dark {
  border-color: var(--ec-burgundy) !important;
  color: var(--ec-burgundy) !important;
}

.btn-outline-dark:hover {
  background-color: var(--ec-burgundy) !important;
  border-color: var(--ec-burgundy) !important;
  color: #fff !important;
}

.btn-outline-light {
  border-color: var(--ec-gold) !important;
  color: var(--ec-gold) !important;
}

.btn-outline-light:hover {
  background-color: var(--ec-gold) !important;
  border-color: var(--ec-gold) !important;
  color: var(--ec-dark) !important;
}

.navbar-custom .nav-link.active,
.navbar-custom .nav-link:hover {
  color: var(--ec-burgundy) !important;
}

.navbar-custom .nav-link {
  color: var(--ec-text) !important;
}

.ec-navbar-brand {
  min-width: 0;
}

.ec-navbar-logo {
  height: 38px;
  flex: 0 0 auto;
}

.ec-navbar-text {
  min-width: 0;
}

.ec-navbar-name {
  color: var(--ec-burgundy);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1rem;
  white-space: nowrap;
}

.ec-navbar-subtitle {
  color: var(--ec-gold);
  font-size: 0.65rem;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .ec-navbar-brand {
    gap: 0.4rem !important;
    margin-right: 0.25rem;
  }

  .ec-navbar-logo {
    height: 30px;
  }

  .ec-navbar-name {
    font-size: 0.52rem;
    letter-spacing: .035rem;
  }

  .ec-navbar-subtitle {
    font-size: 0.5rem;
  }

  .ec-call-btn {
    font-size: 0.72rem;
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
  }

  .ec-call-btn .bi {
    margin-right: 0.15rem !important;
  }
}

@media (max-width: 340px) {
  .ec-navbar-subtitle {
    display: none;
  }
}

.ec-mobile-nav-toggle {
  border: 0;
  background: transparent;
  color: var(--ec-dark);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0;
  position: relative;
  z-index: 10001;
}

.ec-mobile-nav-layer {
  position: fixed;
  inset: 0;
  background: rgba(44, 24, 16, 0.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9998;
}

.ec-mobile-nav-panel {
  position: absolute;
  top: 74px;
  left: 20px;
  right: 20px;
  background: #fff;
  border-radius: 0.45rem;
  padding: 0.65rem 0;
  box-shadow: 0 22px 60px rgba(0,0,0,0.22);
  transform: translateY(-8px);
  transition: transform 0.25s ease;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.ec-mobile-nav-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ec-dark);
  text-decoration: none;
  padding: 0.78rem 1.2rem;
  font-size: 1.05rem;
  font-weight: 300;
}

.ec-mobile-nav-panel a:hover,
.ec-mobile-nav-panel a.active {
  color: var(--ec-burgundy);
}

.ec-mobile-nav-panel .ec-mobile-call {
  margin: 0.55rem 1rem 0;
  justify-content: center;
  background: var(--ec-burgundy);
  color: #fff;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1rem;
}

.ec-mobile-nav-panel .ec-mobile-call:hover {
  color: #fff;
  background: var(--ec-burgundy-dark);
}

body.ec-mobile-nav-active {
  overflow: hidden;
}

body.ec-mobile-nav-active .ec-mobile-nav-layer {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.ec-mobile-nav-active .ec-mobile-nav-panel {
  transform: translateY(0);
}

body.ec-mobile-nav-active .ec-mobile-nav-toggle {
  color: #fff;
}



.bg-secondary {
  background-color: var(--ec-gold) !important;
  opacity: 0.3;
}

.card {
  border-color: rgba(139, 26, 43, 0.1);
}

.product-card .card-img-top {
  border-bottom: 3px solid var(--ec-gold-light);
}

.product-card:hover {
  border-color: var(--ec-gold);
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5 {
  color: var(--ec-dark);
}

.navbar-brand span:first-child {
  color: var(--ec-burgundy);
  letter-spacing: .12rem;
}

.navbar-brand span:last-child {
  color: var(--ec-gold);
}

.page-link {
  color: var(--ec-burgundy);
}

.page-link:hover {
  color: var(--ec-burgundy-dark);
}

.page-item.active .page-link {
  background-color: var(--ec-burgundy);
  border-color: var(--ec-burgundy);
}

.form-control:focus {
  border-color: var(--ec-gold);
  box-shadow: 0 0 0 .2rem rgba(201, 168, 76, 0.25);
}

.form-select:focus {
  border-color: var(--ec-gold);
  box-shadow: 0 0 0 .2rem rgba(201, 168, 76, 0.25);
}

.form-check-input:checked {
  background-color: var(--ec-burgundy);
  border-color: var(--ec-burgundy);
}

.border {
  border-color: rgba(139, 26, 43, 0.15) !important;
}

/* Prevent red selection/drag on images */
img, a img {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Selection color - gold instead of red/burgundy */
::selection {
  background: rgba(201, 168, 76, 0.35);
  color: var(--ec-dark);
}
::-moz-selection {
  background: rgba(201, 168, 76, 0.35);
  color: var(--ec-dark);
}

/* Hero Slider */
.hero-editorial {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 520px;
  max-height: 800px;
  overflow: hidden;
  background: var(--ec-dark);
}

.hero-editorial .swiper,
.hero-editorial .swiper-wrapper,
.hero-editorial .swiper-slide {
  height: 100%;
}

.hero-slide-editorial {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transition: transform 6s ease-out;
}

.swiper-slide-active .hero-image {
  transform: scale(1);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(44, 24, 16, 0.82) 0%, rgba(44, 24, 16, 0.5) 50%, rgba(44, 24, 16, 0.2) 100%);
}

.hero-texture {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
}

.hero-content-editorial {
  position: relative;
  z-index: 4;
  padding: 0 2rem;
  max-width: 640px;
  margin-left: 5vw;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.swiper-slide-active .hero-content-editorial {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ec-gold);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-line {
  width: 60px;
  height: 2px;
  background: var(--ec-gold);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.5);
  color: var(--ec-gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: all 0.35s ease;
}

.hero-btn:hover {
  background: var(--ec-gold);
  border-color: var(--ec-gold);
  color: var(--ec-dark);
  text-decoration: none;
}

/* Hero pagination */
.hero-pagination-wrapper {
  position: absolute;
  bottom: 2rem;
  left: 5vw;
  z-index: 5;
}

.hero-pagination .swiper-pagination-bullet {
  width: 40px;
  height: 2px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  margin: 0 6px !important;
  transition: background 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--ec-gold);
}

/* Hero navigation */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  backdrop-filter: blur(4px);
}

.hero-nav::after {
  display: none;
}

.hero-nav:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.hero-nav-prev {
  left: 2rem;
}

.hero-nav-next {
  right: 2rem;
}

@media (max-width: 768px) {
  .hero-editorial {
    height: 75vh;
    min-height: 480px;
  }

  .hero-content-editorial {
    margin-left: 0;
    padding: 0 1.5rem;
    max-width: 100%;
  }

  .hero-gradient {
    background: linear-gradient(180deg, rgba(44, 24, 16, 0.7) 0%, rgba(44, 24, 16, 0.85) 60%, rgba(44, 24, 16, 0.9) 100%);
  }

  .hero-nav {
    display: none;
  }

  .hero-pagination-wrapper {
    left: 50%;
    transform: translateX(-50%);
    bottom: 1.5rem;
  }
}

/* Footer */
.footer {
  background: linear-gradient(180deg, var(--ec-dark) 0%, #1a0f08 100%);
  color: var(--ec-gold-light);
}

.footer-main {
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.footer .navbar-brand {
  color: #fff;
  font-size: 1.1rem;
}

.footer .navbar-brand span:first-child {
  color: var(--ec-gold-light);
}

.footer .navbar-brand span:last-child {
  color: var(--ec-gold);
}

.footer-text {
  color: rgba(232, 213, 163, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-heading {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(232, 213, 163, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--ec-gold);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(232, 213, 163, 0.75);
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-contact li i {
  color: var(--ec-gold);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact a {
  color: rgba(232, 213, 163, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-all;
}

.footer-contact a:hover {
  color: var(--ec-gold);
}

.footer-email {
  font-size: 0.875rem;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
}

.footer-copyright {
  color: rgba(232, 213, 163, 0.5);
  font-size: 0.8rem;
}

.footer-legal-link {
  color: rgba(232, 213, 163, 0.5);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: var(--ec-gold);
}

.footer-separator {
  color: rgba(232, 213, 163, 0.3);
  margin: 0 0.5rem;
  font-size: 0.8rem;
}

@media (max-width: 767px) {
  .footer-heading {
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
  }
}

/* Gallery Preview (Home) */
.gallery-preview-card {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.gallery-preview-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.gallery-preview-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f5f5f5;
}

.gallery-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.gallery-preview-card:hover .gallery-preview-img {
  transform: scale(1.05);
}

/* Home Gallery Carousel Navigation */
.swiper-navigation-wrapper {
  position: relative;
}

.home-gallery-prev,
.home-gallery-next {
  position: static;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(139, 26, 43, 0.2);
  border-radius: 50%;
  background: #fff;
  color: var(--ec-burgundy);
  margin: 0;
  transition: all 0.25s ease;
}

.home-gallery-prev::after,
.home-gallery-next::after {
  font-size: 0.9rem;
  font-weight: 700;
}

.home-gallery-prev:hover,
.home-gallery-next:hover {
  background: var(--ec-burgundy);
  border-color: var(--ec-burgundy);
  color: #fff;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  cursor: pointer;
  height: 100%;
}

.gallery-card {
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.gallery-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  flex-shrink: 0;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(139, 26, 43, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  text-align: center;
  color: #fff;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-overlay-content {
  transform: translateY(0);
}

.gallery-zoom-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.gallery-view-text {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-caption {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.gallery-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ec-dark);
  line-height: 1.3;
}

.gallery-desc {
  font-size: 0.875rem;
  color: var(--ec-muted);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-content {
  position: relative;
  z-index: 5;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #000;
  max-width: 80vw;
  max-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  transition: none;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-info {
  text-align: center;
  color: #fff;
  margin-top: 1.25rem;
  max-width: 600px;
}

.lightbox-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #fff;
}

.lightbox-desc {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox-counter {
  font-size: 0.875rem;
  opacity: 0.6;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-title {
    font-size: 1.1rem;
  }

  .lightbox-desc {
    font-size: 0.85rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
}

/* Chatbot Widget */
.chatbot-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  font-family: inherit;
}

/* Floating Toggle Button */
.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ec-burgundy) 0%, var(--ec-burgundy-dark) 100%);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(107, 19, 32, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(107, 19, 32, 0.5);
}

.chatbot-toggle:active {
  transform: scale(0.95);
}

.chatbot-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--ec-gold);
  color: var(--ec-dark);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: chatbot-pulse 2s infinite;
}

@keyframes chatbot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Chat Window */
.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 3rem);
  height: 520px;
  max-height: calc(100vh - 10rem);
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.chatbot-header {
  background: linear-gradient(135deg, var(--ec-burgundy) 0%, var(--ec-burgundy-dark) 100%);
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chatbot-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.chatbot-status {
  font-size: 0.75rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.chatbot-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
}

.chatbot-header-actions {
  display: flex;
  gap: 0.5rem;
}

.chatbot-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  font-size: 1rem;
}

.chatbot-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Chat Messages */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.chatbot-message {
  max-width: 85%;
  animation: chatbot-fadeIn 0.3s ease;
}

.bot-message {
  align-self: flex-start;
}

.user-message {
  align-self: flex-end;
}

@keyframes chatbot-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.bot-message {
  align-self: flex-start;
}

.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chatbot-message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ec-burgundy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.user-message .chatbot-message-avatar {
  background: var(--ec-gold);
  color: var(--ec-dark);
}

.chatbot-message-content {
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border-top-left-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.user-message .chatbot-message-content {
  background: linear-gradient(135deg, var(--ec-burgundy) 0%, var(--ec-burgundy-dark) 100%);
  color: #fff;
  border-top-left-radius: 1rem;
  border-top-right-radius: 0.25rem;
}

.chatbot-message-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chatbot-action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.chatbot-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(139, 26, 43, 0.08);
  color: var(--ec-burgundy);
  border: 1px solid rgba(139, 26, 43, 0.16);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.chatbot-action-link:hover {
  background: var(--ec-burgundy);
  color: #fff;
  border-color: var(--ec-burgundy);
}

.user-message .chatbot-action-link {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.chatbot-message-time {
  font-size: 0.7rem;
  color: #999;
  margin-top: 0.3rem;
  display: block;
}

.user-message .chatbot-message-time {
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
}

/* Quick Actions */
.chatbot-quick-actions {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chatbot-quick-btn {
  background: rgba(139, 26, 43, 0.1);
  border: 1px solid rgba(139, 26, 43, 0.2);
  color: var(--ec-burgundy);
  padding: 0.4rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chatbot-quick-btn:hover {
  background: var(--ec-burgundy);
  color: #fff;
}

/* Chat Input */
.chatbot-input-area {
  padding: 1rem;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.chatbot-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 1.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.chatbot-input:focus {
  border-color: var(--ec-burgundy);
}

.chatbot-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ec-burgundy) 0%, var(--ec-burgundy-dark) 100%);
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chatbot-send-btn:hover {
  transform: scale(1.05);
}

.chatbot-send-btn:active {
  transform: scale(0.95);
}

/* Typing Indicator */
.chatbot-typing {
  display: flex;
  gap: 0.3rem;
  padding: 0.75rem 1rem;
}

.chatbot-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #999;
  animation: chatbot-typing 1.4s infinite;
}

.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatbot-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .chatbot-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .chatbot-toggle {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }

  .chatbot-window {
    width: calc(100vw - 2rem);
    height: calc(100vh - 8rem);
    bottom: 70px;
    right: 0;
    border-radius: 0.75rem;
  }
}
