/*
  This file is part of the Dacor Vet Website.
  Copyright (C) 2025 Dacor Vet Web Team

  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.
*/

/* ----------------------------------
   BASIC RESET AND VARIABLES
---------------------------------- */

:root {
  --color-primary: #a88bda;
  --color-secondary: #f4f4f4;
  --color-text: #333;
  --color-background: #f7f5fa;
  --color-btn-normal: #c4a7e7;
  --color-btn-hover: #b192dd;
  --color-btn-active: #6f54ad;
  --color-contact-section: #e8e3f1;
  --color-footer: #695a87;
  --color-price: #6f54ad;
  --color-link: #7ac8ff;
  --font-main: "Segoe UI", sans-serif;
}

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

html,
body {
  height: 100%;
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* ----------------------------------
   WEBSITE LAYOUT
---------------------------------- */
main {
  flex: 1;
  padding-top: 70px;
}

/* ----------------------------------
   HEADER - NAVIGATION
---------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.header-container__logo {
  height: 50px;
  transition: transform 0.3s ease;
}

.header-container__logo:hover {
  transform: scale(1.1);
}

.pages.active {
  display: flex;
}

.pages__link {
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.3s ease;
  margin: 0 5px;
  font-weight: 600;
}

.pages a[aria-current="page"] {
  font-weight: bold;
  color: #f0f0f0;
}

.pages__link:hover {
  font-weight: bold;
  color: lightpink;
  cursor: pointer;
  font-weight: 700;
}

/* Burger Menu */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

/* === Cookie Consent Banner === */
.cookie-banner {
  position: fixed;
  bottom: 0px;
  left: 0px;
  width: 100%;
  background-color: #f8f8f8;
  color: #333;
  font-size: 0.95rem;
  padding: 1rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
  display: none; /* shown dynamically */
  z-index: 1100;
}

.cookie-banner p {
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

.cookie-banner button {
  margin-left: 0.5rem;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#accept-cookies {
  background-color: #3fa34d; /* green accent */
  color: white;
}

#accept-cookies:hover {
  background-color: #348a40;
}

#decline-cookies {
  background-color: #ddd;
  color: #333;
}

#decline-cookies:hover {
  background-color: #ccc;
}

@media (max-width: 600px) {
  .cookie-banner p {
    font-size: 0.9rem;
  }
  .cookie-banner button {
    margin-top: 0.4rem;
    display: inline-block;
  }
}


/* ----------------------------------
   MAIN PAGE
---------------------------------- */
.hero {
  padding: 2rem 2rem;
}

.hero__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__text {
  flex: 1 1 500px;
}

.hero__title {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero__description {
  font-size: 1.25rem;
  color: #444;
  margin-bottom: 2rem;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__cta {
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: var(--color-btn-normal);
  color: white;
}

.hero__cta:hover {
  background-color: var(--color-btn-hover);
  transform: scale(1.1);
}

.hero__cta:active {
  background-color: var(--color-btn-active);
}

.hero__image {
  flex: 1 1 400px;
  text-align: center;
}

.hero__image img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ----------------------------------
   FEATURED PRODUCTS (MAIN PAGE)
---------------------------------- */

.featured-products {
  padding: 4rem 2rem;
  text-align: center;
}

.featured-products__title {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.featured-products__description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

.featured-products__card {
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.featured-products__card-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background-color: #fff;
}

.featured-products__card-info {
  padding: 1rem;
}

.featured-products__card-title {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.featured-products__card-description {
  font-size: 1rem;
  color: #444;
}

.featured-products__product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-products__cta {
  margin-top: 3rem;
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.featured-products__cta:hover {
  background-color: var(--color-btn-hover);
  transform: scale(1.1);
}

.featured-products__cta:active {
  background-color: var(--color-btn-active);
}

/* ----------------------------------
    TESTIMONIALS (MAIN PAGE)
---------------------------------- */
.testimonials {
  padding: 4rem 1rem;
  text-align: center;
}

.testimonials__title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

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

.testimonials__testimonial {
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.testimonials__testimonial-text {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonials__testimonial-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: #222;
}

.testimonials__stars {
  color: #f4c150;
}

.testimonials__google-reviews-button {
  margin-top: 2rem;
  text-align: center;
}

.testimonials__google-reviews-button a {
  display: inline-block;
  background-color: var(--color-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.testimonials__google-reviews-button a:hover {
  background-color: var(--color-btn-hover);
  transform: scale(1.05);
}

/* ----------------------------------
   CONTACT INFORMATION (MAIN PAGE)
---------------------------------- */

.contact-content__card {
  background-color: #fff;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.contact-content__whatsapp-info {
  font-size: 1rem;
  color: #444;
}

.contact-content__whatsapp-btn {
  display: flex;
  padding: 1rem 1.5rem;
  color: white;
  font-weight: bold;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.1rem;
  background-color: var(--color-primary);
  transition: transform 0.3s ease, background-color 0.3s ease;
  gap: 8px;
}

.contact-content__whatsapp-btn:hover {
  background-color: var(--color-btn-hover);
  transform: scale(1.1);
}

.contact-content__whatsapp-btn:active {
  background-color: var(--color-btn-active);
}

.contact-information {
  background-color: var(--color-contact-section);
  padding: 1rem 1rem;
  text-align: center;
}

.contact-information__container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-information__content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.contact-information__details {
  flex: 1 1 400px;
  text-align: center;
}

.contact-information__details p {
  font-size: 1.1rem;
  color: var(--color-text);
}

.contact-information__details--openingHours {
  list-style: none;
  padding-left: 1rem;
  padding-top: 1rem;
  margin: 0 auto 1rem;
  color: #555;
  font-style: italic;
  font-size: 1rem;
}

.contact-information__socialMedia--images {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-information__socialMedia--images .social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.contact-information__socialMedia--images .social-icon:hover {
  transform: scale(1.2);
}

.google-maps {
  flex: 1 1 400px;
  width: 100%;
  max-width: 450px;
  height: 450px;
  border-radius: 1rem;
  transition: transform 0.3s ease;
}

.google-maps:hover {
  transform: scale(1.03);
}

.contact-information__phones {
  display: flex;
  flex-direction: column;
  align-items: center;        /* center the whole block */
  gap: 12px;
  margin: 10px auto 0;        /* center horizontally */
  max-width: 280px;           /* keeps items nicely aligned */
}

.phone-item {
  display: flex;
  align-items: center;
  justify-content: center;    /* center each row */
  gap: 10px;
  width: 100%;                /* prevents shrinking left */
}

.phone-item__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.phone-item__data {
  display: flex;
  flex-direction: column;
  text-align: center;           /* keep text readable, not fully centered */
}

.phone-item__label {
  font-weight: 600;
}

.phone-item__wa {
  display: inline-block;
  margin-bottom: 3px;
}


/* ----------------------------------
   FOOTER
---------------------------------- */
.footer {
  background-color: var(--color-footer);
  color: #dadada;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #ccc;
}

.footer__content a {
  color: var(--color-link);
  text-decoration: none;
}

.footer__content a:hover {
  text-decoration: underline;
}

/* ----------------------------------
   PRODUCTS PAGE
---------------------------------- */

.products-content {
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--color-background);
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem;
  text-align: center;
}

.products-content__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  max-width: 100%;
  margin: 1.5rem 1.5rem;
}

.products-content__title {
  color: var(--color-primary);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.products-content__card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0.1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.products-content__card-image,
.products-content__card-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

.products-content__card-thumbnail {
  width: 40px;
  height: auto;
  cursor: pointer;
  border-radius: 5px;
  border: 0.1rem solid var(--color-primary);
  transition: transform 0.2s;
}

.products-content__card-thumbnail:hover {
  transform: scale(1.1);
}

.products-content__card-main-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.products-content__card-title {
  font-size: 1rem;
  margin: 0.2rem 0.5rem;
  color: var(--color-text);
  text-align: center;
}

.products-content__card-description {
  font-size: 0.8rem;
  margin: 0 0.5rem;
  color: #555;
  text-align: center;
}

.products-content__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.products-content__searchBox,
.products-content__internSearchBox {
  width: 100%;
  max-width: 400px;
  margin: 0.5rem 0.5rem;
  padding: 0.5rem 0.5rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.hidden {
  display: none;
}

.products-content__categorySelector,
.products-content__subcategorySelector,
.products-content__sortSelector {
  width: 240px;
  max-width: 400px;
  margin: 0.5rem 0.5rem;
  padding: 0.5rem 0.5rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: white;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,40 70,120 140,40' fill='%23A88BDA'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.products-content__checkboxStock {
  margin: 0.5rem 0.5rem;
  padding: 0.5rem 0.5rem;
}

.products-content__searchBox:focus,
.products-content__internSearchBox:focus,
.products-content__categorySelector:focus,
.products-content__sortSelector:focus {
  border: 1px solid var(--color-primary);
  outline: none;
}

.products-content__card-stock-available {
  display: block;
  font-size: 0.8rem;
  color: green;
  font-weight: bold;
  margin-top: 0.2rem;
  text-align: center;
}

.products-content__card-stock-unavailable {
  display: block;
  font-size: 0.8rem;
  color: red;
  font-weight: bold;
  margin-top: 0.2rem;
  text-align: center;
}

.products-content__card-price {
  margin-top: 0.2rem;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
}

.products-content__card-price--purple {
  color: var(--color-price);
}

.products-content__pages {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.products-content__pages-btn {
  padding: 0.5rem 1rem;
  border: none;
  background-color: var(--color-primary);
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.products-content__pages-btn--active {
  background-color: var(--color-btn-active);
}

.products-content__pages-btn:hover {
  background-color: var(--color-btn-hover);
  transform: scale(1.1);
}

.variant-stock.in-stock { color: #3ca800; }
.variant-stock.out-of-stock { color: #b30000; }

/* Disclaimer */
.products-content__disclaimer {
  padding: 0.5rem 1rem;
  margin: 1rem auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
  border-left: 4px solid orange;
  font-size: 0.9rem;
  color: #555;
}

.products-content__disclaimer-text {
  margin: 0;
  line-height: 1.4;
}

/* Floating Whatsapp Button */
.products-content__whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.products-content__whatsapp-btn:hover {
  transform: scale(1.3);
}

.products-content__whatsapp-img {
  width: 40px;
  height: 40px;
}

/* ----------------------------------
   SERVICES PAGE
---------------------------------- */

.services-content {
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--color-background);
  text-align: center;
  padding: 1rem 1rem;
}

.services-content__title {
  font-size: 2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 1rem;
}

.services-content__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.services-content__card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.services-content__card:hover {
  transform: scale(1.02);
}

.services-content__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.services-content__card-title {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

/* -----------------------------------
   HOW TO BUY PAGE
----------------------------------- */

.under-construction {
  background-color: #fff8e1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.under-construction__message {
  max-width: 600px;
  text-align: center;
  padding: 1rem 1rem;
  min-height: 70vh;
}

.under-construction__title {
  font-size: 2rem;
  color: #e65100;
  margin-bottom: 1rem;
}

.under-construction__description {
  font-size: 1.1rem;
  color: #5d4037;
  margin-bottom: 1rem;
}

.under-construction__image {
  width: 220px;
  max-width: 100%;
  margin: 2rem auto;
  display: block;
}

/* ----------------------------------
   CONTACT PAGE
---------------------------------- */
.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}

.contact-content__title {
  text-align: center;
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.contact-content__whatsapp-cta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-content__whatsapp-cta a {
  display: flex;
  padding: 1rem 1.5rem;
  color: white;
  font-weight: bold;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.1rem;
  background-color: var(--color-primary);
  transition: transform 0.3s ease;
  align-items: center;;
}

.contact-content__whatsapp-cta a:hover {
  background-color: var(--color-btn-hover);
  transform: scale(1.1);
}

.contact-content__whatsapp-cta a:active {
  background-color: var(--color-btn-active);
}

.contact-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.btn {
  display: inline-block;
  padding: 1rem 1.5rem;
  color: white;
  font-weight: bold;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.1rem;
  background-color: var(--color-primary);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--color-btn-hover);
  transform: scale(1.05);
}

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

.btn-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* ----------------------------------
   PRIVACY POLICY PAGE
---------------------------------- */
.privacy-policy__content {
  padding: 6rem 2rem;
  background-color: var(--color-background);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.privacy-policy__content--text--title {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.privacy-policy__content--text--description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
  max-width: 1200px;
  text-align: center;
}

/* ----------------------------------
   RESPONSIVE - MOBILE STYLES
---------------------------------- */
@media (max-width: 768px) {
  .hero__content {
    flex-direction: column;
    text-align: center;
  }

  .hero__text,
  .hero__image {
    flex: 1 1 100%;
  }

  .hero__buttons {
    justify-content: center;
  }

  .header-container__logo {
    height: 40px;
  }

  .nav {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .pages {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--color-primary);
    padding: 10px 0;
  }

  .pages.active {
    display: flex;
  }

  .pages__link {
    padding: 10px 20px;
    margin: 0;
    color: black;
  }

  .pages a[aria-current="page"] {
    color: white;
    font-weight: bold;
  }

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

  .menu-toggle {
    display: block;
    color: white;
  }

  .google-maps {
    margin-top: 2rem;
    width: 100%;
    height: auto;
  }
}
