/* ==== CSS VARIABLES ==== */
:root {
  --color-primary: #007bff;
  --color-primary-dark: #0056b3;
  --color-primary-light: #63b3ed;
  --color-text-dark: #1a202c;
  --color-text-muted: #4a5568;
  --color-bg-light: #f9fafb;
  --color-white: #ffffff;
  --color-border: #e5e7eb;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #128c7e;
}

/* ==== RESET & BASE ==== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-image: url('assets/images/bg.jpg'), url('https://i.pinimg.com/736x/01/47/f9/0147f92a4bd05b893c814dd2105899b7.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: var(--color-bg-light);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-text-dark);
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1 {
  text-align: center;
  margin: 2rem 1rem 3rem;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-text-dark);
}

/* ==== ANIMATIONS ==== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(15px); }
}

@keyframes fadeInText {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-menu {
  animation: fadeIn 0.3s ease forwards;
}

/* ==== PRODUCT GRID ==== */
.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  animation: fadeSlideUp 0.6s ease forwards;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  will-change: transform;
}

.products-container .product-card:nth-child(1) { animation-delay: 0.1s; }
.products-container .product-card:nth-child(2) { animation-delay: 0.2s; }
.products-container .product-card:nth-child(3) { animation-delay: 0.3s; }

.product-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background-color: #f1f5f9;
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.product-card img:hover {
  transform: scale(1.05);
}

.product-card h2 {
  font-size: 1.25rem;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  white-space: pre-wrap;
  margin-bottom: 0.75rem;
}

.product-card .price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
}

/* ==== HEADER ==== */
.site-header {
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(180%) blur(10px);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  flex-wrap: wrap;
}

.branding h1 {
  font-size: 1.75rem;
  color: var(--color-text-dark);
}

.branding a {
  text-decoration: none;
  color: inherit;
}

/* ==== NAVIGATION ==== */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--color-primary);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
  width: 100%;
}

/* ==== CONTACT LINKS ==== */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-link {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--color-primary);
}

/* ==== HAMBURGER ==== */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
}

/* ==== RESPONSIVE MENU ==== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .nav-menu.active {
    display: flex;
    animation: fadeIn 0.3s ease;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 1rem;
  }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-card img {
    height: 140px;
  }
}

/* ==== HOMEPAGE SECTIONS ==== */
.hero {
  background: linear-gradient(90deg, #f0f4f8, #ffffff);
  padding: 4rem 1rem;
  text-align: center;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  opacity: 0;
  animation: fadeInText 1.2s ease forwards;
  animation-delay: 0.4s;
}

.intro {
  padding: 2rem 1rem;
}

.intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.intro ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2;
}

.intro li::before {
  content: '✔️ ';
  margin-right: 0.5rem;
  color: green;
}

.cta {
  text-align: center;
  padding: 2rem 1rem;
}

.btn {
  background-color: var(--color-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4);
  display: inline-block;
}

.btn:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 6px 14px rgba(0, 86, 179, 0.6);
}

/* ==== FOOTER ==== */
.site-footer {
  background-color: var(--color-text-dark);
  color: #f7fafc;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 3rem;
}

.footer-link {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--color-white);
}

.footer-map {
  margin-top: 1.5rem;
  height: 300px;
  width: 100%;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* ==== WHATSAPP FLOATING BUTTON ==== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--color-whatsapp);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover img {
  transform: scale(1.1);
}

.whatsapp-chatbox {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 280px;
  background: var(--color-white);
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
}

.whatsapp-chatbox.visible {
  display: flex;
}

.chat-header {
  background-color: var(--color-whatsapp);
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header button {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.chat-body {
  padding: 1rem;
  background: #f9f9f9;
}

.start-chat {
  display: inline-block;
  margin-top: 1rem;
  background: var(--color-whatsapp);
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.start-chat:hover {
  background: var(--color-whatsapp-dark);
}

/* ==== PAGINATION ==== */
.pagination {
  margin: 2rem 0;
  text-align: center;
  font-family: Arial, sans-serif;
}

.pagination ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination li {
  display: inline-block;
}

.pagination a,
.pagination button {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  color: var(--color-primary);
  background-color: var(--color-white);
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover,
.pagination button:hover,
.pagination a:focus,
.pagination button:focus {
  background-color: var(--color-primary);
  color: #fff;
  outline: none;
}

.pagination a.active,
.pagination a[aria-current="page"] {
  background-color: var(--color-primary);
  color: white;
  cursor: default;
  pointer-events: none;
  font-weight: bold;
  border-color: var(--color-primary);
}

.pagination button[disabled] {
  color: #aaa;
  border-color: #ddd;
  background-color: #f9f9f9;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 480px) {
  .pagination a,
  .pagination button {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }
}

/* ==== FOCUS OUTLINE FOR ACCESSIBILITY ==== */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}
