@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Lato:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a3a52;
  --secondary: #cc0000;
  --accent: #ffcc00;
  --background: #f5f3f0;
  --foreground: #2a2a2a;
  --muted: #e8e8e8;
  --border: #d0d0d0;
  --white: #ffffff;
  /* Carousel Thumbnails Scrollbar */
  --scrollbar-track: rgba(255, 255, 255, 0.1);
  --scrollbar-thumb: rgba(255, 255, 255, 0.3);
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Merriweather', serif;
  font-weight: bold;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Top Bar */
.top-bar {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  display: none;
}

.top-bar.visible {
  display: block;
}

.top-bar-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  gap: 1.5rem;
}

.top-bar-right {
  display: flex;
  gap: 1rem;
}

.top-bar-right a {
  color: var(--white);
  transition: color 0.3s;
}

.top-bar-right a:hover {
  color: var(--accent);
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-bottom: 4px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.logo-section img {
  height: 4rem;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  display: none;
}

@media (min-width: 640px) {
  .logo-text {
    display: block;
  }
}

/* Navigation */
nav {
  display: none;
  gap: 2rem;
  align-items: center;
}

nav.visible {
  display: flex;
}

@media (min-width: 768px) {
  nav {
    display: flex !important;
  }
}

nav a {
  font-size: 0.875rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: var(--foreground);
  transition: all 0.3s;
  padding-bottom: 0.25rem;
}

nav a:hover {
  color: var(--primary);
}

nav a.active {
  color: var(--secondary);
  border-bottom: 3px solid var(--secondary);
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 9999px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #b30000;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary);
}

.menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.75rem;
  color: var(--primary);
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  nav.visible {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    align-items: stretch;
    z-index: 49;
    border-top: 1px solid var(--muted);
    animation: slideDown 0.3s ease-out;
  }

  nav.visible a {
    text-align: center;
    padding: 0.75rem 0;
    width: 100%;
    display: block;
    border-bottom: 1px solid var(--muted);
  }

  nav.visible a:last-child {
    border-bottom: none;
  }

  nav.visible .btn {
    margin-top: 0.5rem;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 40rem;
  padding: 2rem;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  background-color: rgba(204, 0, 0, 0.9);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #d0d0d0;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-divider {
  height: 4px;
  width: 6rem;
  background-color: var(--secondary);
  margin: 0 auto 1.5rem;
  border-radius: 9999px;
}

.section-header p {
  color: #666;
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* Features Section */
.features {
  background: linear-gradient(to bottom, rgba(26, 58, 82, 0.05), rgba(204, 0, 0, 0.05));
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s;
  transform: translateY(0);
}

.feature-card:hover {
  box-shadow: 0 12px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-0.5rem);
}

.feature-card.primary {
  background-color: var(--primary);
  color: var(--white);
}

.feature-card.secondary {
  background-color: var(--secondary);
  color: var(--white);
}

.feature-card.accent {
  background-color: var(--accent);
  color: var(--primary);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  opacity: 0.9;
}

/* Categories Section */
.categories {
  background: linear-gradient(to bottom, rgba(26, 58, 82, 0.08), rgba(204, 0, 0, 0.08));
}

.categories-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.category-card {
  background-color: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  border: 2px solid rgba(26, 58, 82, 0.2);
  display: flex;
  flex-direction: column;
}

/* Base width for responsiveness - mobile first */
.category-card {
  width: 100%;
}

@media (min-width: 768px) {

  /* Large cards: 3 per row (approx 33% minus gap) */
  .category-card.card-large {
    width: calc(33.333% - 1.34rem);
  }

  /* Small cards: 2 per row (approx 50% minus gap, but let's make them smaller as requested 2 small ones) 
     Actually, if we want them "smaller", maybe we just constrain their width to be less than 50% 
     and center them. Let's try 40% or just keep them consistent but smaller height? 
     The user asked for "smaller" ones. Let's make them narrower. */
  .category-card.card-small {
    width: calc(50% - 1rem);
    /* 2 per row */
    max-width: 400px;
    /* Limit max width to make them feel "smaller" than full 50% if screen is huge */
  }
}

.category-card:hover {
  box-shadow: 0 12px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-0.5rem);
  border-color: var(--secondary);
}

.category-image {
  position: relative;
  overflow: hidden;
}

/* Adjust image heights based on card size */
.category-card.card-large .category-image {
  height: 18rem;
}

.category-card.card-small .category-image {
  height: 14rem;
}

/* Default fallback if no class */
.category-image {
  height: 16rem;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.category-card:hover .category-image img {
  transform: scale(1.1);
}

.category-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.category-content h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.category-card:hover .category-content h3 {
  color: var(--secondary);
}

.category-content p {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.category-link {
  color: var(--secondary);
  font-weight: bold;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

/* CTA Section */
.cta {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.cta p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 2rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer-section p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  opacity: 0.8;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s;
}

.social-links a:hover {
  background-color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgb(255, 255, 255);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.6;
}

/* Produtos Page */
.products-header {
  background: linear-gradient(to right, var(--primary), var(--secondary), var(--primary));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.products-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.products-header p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 42rem;
  margin: 0 auto;
}

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
  background-color: var(--white);
  padding: 0.5rem;
  border-radius: 9999px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background-color: transparent;
  color: var(--foreground);
  font-weight: bold;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.tab-btn.active {
  background-color: var(--secondary);
  color: var(--white);
}

.tab-btn:hover {
  background-color: rgba(26, 58, 82, 0.1);
}

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

.product-card {
  background-color: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 12px 16px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-tags {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.25rem;
}

.tag {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-content h3 {
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.product-content p {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.product-content .btn {
  width: 100%;
  margin-top: auto;
}

/* Sobre Page */
.about-header {
  background: linear-gradient(to right, var(--primary), var(--secondary), var(--primary));
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 4rem 0;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

.about-image {
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 100%;
  height: 100%;
  border: 2px solid var(--secondary);
  border-radius: 0.75rem;
  z-index: 0;
}

.about-image img {
  position: relative;
  z-index: 10;
  border-radius: 0.75rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.about-text h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.0625rem;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

.value-card {
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--accent);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.value-card.primary {
  background-color: var(--primary);
  color: var(--white);
  border-left-color: var(--accent);
}

.value-card.secondary {
  background-color: var(--secondary);
  color: var(--white);
  border-left-color: var(--accent);
}

.value-card h3 {
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.value-card p {
  font-size: 0.875rem;
  opacity: 0.9;
  color: var(--accent);
}

/* Contato Page */
.contact-header {
  background: linear-gradient(to right, var(--primary), var(--secondary), var(--primary));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.contact-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin: 3rem 0;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  background-color: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}


.contact-info-header {
  background-color: var(--white);
  color: var(--primary);
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-info-header h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.contact-info-header p {
  opacity: 0.9;
  font-size: 0.875rem;
  color: #666;
}

.contact-info-content {
  padding: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item-icon {
  background-color: rgba(26, 58, 82, 0.1);
  padding: 0.75rem;
  border-radius: 50%;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item h4 {
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: #666;
  font-size: 0.875rem;
}

.contact-item2 {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item2-icon {
  background-color: rgba(26, 58, 82, 0.1);
  padding: 0.75rem;
  border-radius: 50%;
  color: var(--primary);
  flex-shrink: 0;
}


.contact-item2 p {
  color: var(--white);
  font-size: 0.875rem;
}

.contact-form {
  background-color: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.contact-form h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
  background-color: rgba(26, 58, 82, 0.02);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.opacity-90 {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .top-bar.visible {
    display: none;
  }

  .hero {
    height: 400px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.875rem;
  }

  section {
    padding: 3rem 0;
  }
}

/* Lightbox / Gallery */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 0.25rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--white);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: transform 0.2s;
  z-index: 1001;
}

.lightbox-close:hover {
  transform: scale(1.1);
  color: var(--secondary);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem 0.5rem;
  z-index: 1001;
  transition: all 0.3s;
  border-radius: 0.25rem;
}

.lightbox-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--secondary);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

@media (max-width: 768px) {

  .lightbox-prev,
  .lightbox-next {
    font-size: 1.5rem;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  color: #fff;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
}

/* Carousel Modal */
.carousel-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.carousel-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.close-carousel {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1001;
}

.close-carousel:hover,
.close-carousel:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.carousel-prev,
.carousel-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.carousel-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.carousel-prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.carousel-prev:hover,
.carousel-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
}

/* Animations */
.carousel-content {
  animation-name: zoom;
  animation-duration: 0.4s;
}

@keyframes zoom {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

@media only screen and (max-width: 700px) {
  .carousel-content {
    width: 100%;
  }
}

/* Updated Carousel Styles for Thumbnails */
.carousel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  /* Slightly wider to accommodate thumbnails comfortably */
}

.carousel-main-image-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

/* Adjust original carousel-content to not use margin auto and handle max-height better */
.carousel-content {
  margin: 0;
  /* Reset auto margin */
  max-width: 100%;
  max-height: 70vh;
  /* Reduced from 80vh to make room for thumbnails */
  object-fit: contain;
  /* Ensure it doesn't stretch */
}

.carousel-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 5px;
  max-width: 90%;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.carousel-thumbnails::-webkit-scrollbar {
  height: 8px;
}

.carousel-thumbnails::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 4px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 4px;
}

.carousel-thumbnail {
  height: 60px;
  width: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.carousel-thumbnail:hover {
  opacity: 1;
  transform: scale(1.05);
}

.carousel-thumbnail.active {
  opacity: 1;
  border-color: var(--accent);
  transform: scale(1.1);
}

@media only screen and (max-width: 768px) {

  .carousel-prev,
  .carousel-next {
    font-size: 1.5rem;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.3);
  }

  .carousel-prev {
    left: 0;
    border-radius: 0 3px 3px 0;
  }

  .carousel-next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }

  .carousel-thumbnails {
    padding: 5px 2px;
  }

  .carousel-thumbnail {
    height: 50px;
    width: 50px;
  }
}