.whatsapp-widget,
.floating-widget {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 200;
  transition: transform 250ms ease-in-out ease-in-out;
}
.whatsapp-widget a,
.whatsapp-widget button,
.floating-widget a,
.floating-widget button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 9999px;
  background-color: #25d366;
  color: #ffffff;
  text-decoration: none;
  font-size: 24px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transition: transform 250ms ease-in-out ease-in-out, box-shadow 250ms ease-in-out ease-in-out;
}
.whatsapp-widget a:hover,
.whatsapp-widget button:hover,
.floating-widget a:hover,
.floating-widget button:hover {
  transform: scale(1.1);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}
.whatsapp-widget a svg,
.whatsapp-widget a i,
.whatsapp-widget button svg,
.whatsapp-widget button i,
.floating-widget a svg,
.floating-widget a i,
.floating-widget button svg,
.floating-widget button i {
  width: 30px;
  height: 30px;
}
@media (min-width: 768px) {
  .whatsapp-widget,
  .floating-widget {
    bottom: 32px;
    right: 32px;
  }
}

.messenger-widget {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 200;
}
.messenger-widget iframe {
  display: block;
}
@media (min-width: 768px) {
  .messenger-widget {
    bottom: 32px;
    right: 32px;
  }
}

.back-to-top {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #8b0e0e;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 200;
  transition: opacity 250ms ease-in-out ease-in-out, visibility 250ms ease-in-out ease-in-out, transform 250ms ease-in-out ease-in-out;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background-color: #5d0909;
  transform: translateY(-2px);
}
.back-to-top svg,
.back-to-top i {
  width: 20px;
  height: 20px;
}
@media (min-width: 768px) {
  .back-to-top {
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
  }
}

.popup-overlay,
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease-in-out ease-in-out, visibility 250ms ease-in-out ease-in-out;
}
.popup-overlay.show,
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.popup-overlay .popup-content,
.popup-overlay .modal-content,
.modal-overlay .popup-content,
.modal-overlay .modal-content {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 32px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transition: transform 250ms ease-in-out ease-in-out;
}
.popup-overlay .popup-content .popup-close,
.popup-overlay .popup-content .modal-close,
.popup-overlay .modal-content .popup-close,
.popup-overlay .modal-content .modal-close,
.modal-overlay .popup-content .popup-close,
.modal-overlay .popup-content .modal-close,
.modal-overlay .modal-content .popup-close,
.modal-overlay .modal-content .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: #666666;
  transition: color 250ms ease-in-out ease-in-out;
}
.popup-overlay .popup-content .popup-close:hover,
.popup-overlay .popup-content .modal-close:hover,
.popup-overlay .modal-content .popup-close:hover,
.popup-overlay .modal-content .modal-close:hover,
.modal-overlay .popup-content .popup-close:hover,
.modal-overlay .popup-content .modal-close:hover,
.modal-overlay .modal-content .popup-close:hover,
.modal-overlay .modal-content .modal-close:hover {
  color: #222222;
}

.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  border-left: 4px solid #e0e0e0;
  transition: opacity 250ms ease-in-out ease-in-out;
}
.alert.alert-success {
  background-color: #d1e7dd;
  border-left-color: #28a745;
  color: #155724;
}
.alert.alert-danger, .alert.alert-error {
  background-color: #fee;
  border-left-color: #e74c3c;
  color: #e74c3c;
}
.alert.alert-warning {
  background-color: #fff3cd;
  border-left-color: #ffc107;
  color: #664d03;
}
.alert.alert-info {
  background-color: #cfe2ff;
  border-left-color: #0d6efd;
  color: #084298;
}
.alert p {
  margin: 0;
}
.alert p:not(:last-child) {
  margin-bottom: 12px;
}
.alert .alert-close {
  float: right;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}
.alert .alert-close:hover {
  opacity: 0.7;
}

.tabs-container .tabs-nav {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .tabs-container .tabs-nav {
    gap: 16px;
  }
}
.tabs-container .tab-link {
  padding: 12px 16px;
  background-color: transparent;
  border: none;
  color: #666666;
  cursor: pointer;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 250ms ease-in-out ease-in-out, border-color 250ms ease-in-out ease-in-out;
}
.tabs-container .tab-link:hover {
  color: #222222;
}
.tabs-container .tab-link.active {
  color: #8b0e0e;
  border-bottom-color: #8b0e0e;
}
.tabs-container .tab-content {
  display: none;
}
.tabs-container .tab-content.active {
  display: block;
}

.accordion {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid #e0e0e0;
}
.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  background-color: #f8f8f8;
  padding: 16px;
  cursor: pointer;
  transition: background-color 250ms ease-in-out ease-in-out;
}
.accordion-header:hover {
  background-color: #e0e0e0;
}
.accordion-header .accordion-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #222222;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-header .accordion-title .accordion-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  transition: transform 250ms ease-in-out ease-in-out;
}
.accordion-header .accordion-title .accordion-icon.open {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
  padding: 16px;
  background-color: #ffffff;
}
.accordion-body.show {
  display: block;
}
.accordion-body p {
  margin: 0 0 12px 0;
}
.accordion-body p:last-child {
  margin-bottom: 0;
}

.breadcrumb-trail {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 14px;
}
.breadcrumb-trail a {
  color: #8b0e0e;
  text-decoration: none;
}
.breadcrumb-trail a:hover {
  text-decoration: underline;
}
.breadcrumb-trail span {
  color: #666666;
}

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rating .stars {
  display: flex;
  gap: 2px;
}
.rating .stars .star {
  color: #ffa500;
  font-size: 18px;
}
.rating .stars .star.empty {
  color: #e0e0e0;
}
.rating .rating-count {
  font-size: 14px;
  color: #666666;
}

.price-display {
  font-size: 20px;
  font-weight: 700;
  color: #8b0e0e;
}
.price-display .price-currency {
  font-size: 14px;
  margin-right: 4px;
}
.price-display .price-original {
  font-size: 14px;
  color: #999999;
  text-decoration: line-through;
  margin-right: 12px;
}
.price-display .price-discount {
  background-color: #e74c3c;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  margin-left: 12px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  background-color: #8b0e0e;
  color: #ffffff;
}
.badge.badge-secondary {
  background-color: #d4af37;
  color: #222222;
}
.badge.badge-success {
  background-color: #28a745;
}
.badge.badge-danger {
  background-color: #e74c3c;
}
.badge.badge-warning {
  background-color: #ffc107;
  color: #222222;
}
.badge.badge-info {
  background-color: #17a2b8;
}
.badge.badge-dark {
  background-color: #222222;
}
.badge.badge-outline {
  background-color: transparent;
  border: 1px solid;
  color: #8b0e0e;
}
.badge.badge-outline.badge-secondary {
  border-color: #d4af37;
  color: #d4af37;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-top-color: #8b0e0e;
  border-radius: 9999px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.empty-state {
  text-align: center;
  padding: 48px 16px;
}
.empty-state .empty-icon {
  font-size: 36px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.empty-state .empty-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #222222;
}
.empty-state .empty-message {
  color: #666666;
  margin-bottom: 24px;
  line-height: 1.75;
}
.empty-state .empty-action {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.access-denied {
  padding: 32px;
  background-color: #f8f8f8;
  border-radius: 12px;
  text-align: center;
}
.access-denied .lock-icon {
  font-size: 36px;
  color: #e74c3c;
  margin-bottom: 16px;
}
.access-denied h2 {
  color: #222222;
  margin-bottom: 12px;
}
.access-denied p {
  color: #666666;
  margin-bottom: 16px;
}

.tooltip-trigger {
  position: relative;
  display: inline-block;
}
.tooltip-trigger .tooltip-text {
  position: absolute;
  background-color: #222222;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease-in-out ease-in-out, visibility 250ms ease-in-out ease-in-out;
  z-index: 600;
}
.tooltip-trigger .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #222222;
}
.tooltip-trigger:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
}

.sticky-element {
  position: sticky;
  top: 0;
  z-index: 200;
}

.divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 16px 0;
}
.divider.divider-text {
  position: relative;
  text-align: center;
}
.divider.divider-text span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 0 12px;
  color: #666666;
  font-size: 14px;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aspect-ratio {
  position: relative;
  overflow: hidden;
}
.aspect-ratio.ratio-16-9 {
  padding-bottom: 56.25%;
}
.aspect-ratio.ratio-4-3 {
  padding-bottom: 75%;
}
.aspect-ratio.ratio-1-1 {
  padding-bottom: 100%;
}
.aspect-ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media print {
  .no-print,
  .hidden-print {
    display: none !important;
  }
  a[href]::after {
    content: " (" attr(href) ")";
  }
  img {
    max-width: 100% !important;
  }
}
