/* style.css - minimal overrides and palette extracted from original site (editable) */

/* Example font import - adjust if original used custom fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --brand-100: #f3f4f6;
  --brand-500: #1f2937;
  --accent: #b91c1c;
  /* example */
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

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

/* Catalogue grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

/* Loader */
.loader {
  text-align: center;
  padding: 2rem;
}

/* Default hidden state */
.out-of-screen.is-inactive,
.fade-up.is-inactive,
.fade-in.is-inactive {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Activated (revealed) state */
.out-of-screen.is-active,
.fade-up.is-active,
.fade-in.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax elements should be transform-friendly */
.parallax {
  will-change: transform;
  transition: transform 0.2s ease-out;
}

/* Catalogue */
#catalogue-section {
  text-align: center;
}

#catalogue-categories {
  margin-bottom: 10px;
}

.category-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 300px;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid rgb(18,166,153);
}

.category-card.cat-active {
  border-color: rgb(18,166,153);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.15);
}

.category-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  object-fit: cover;

  /* width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease; */
}

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

@media (max-width: 640px) {
  #catalogue-categories {
    width: 100%;
    display: grid;                 /* fallback if Tailwind grid isn’t present */
    grid-template-columns: 1fr;    /* 1 column on mobile */
    gap: 1rem;
    text-align: left;              /* avoid centering */
  }
  #catalogue-categories .category-card {
    max-width: none;               /* remove 300px cap */
    width: 100%;
    height: auto;
  }

  .category-image {
    height: auto;
    object-fit: unset;

  }
}

.category-label {
  background: #fff;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  color: #222;
  border-top: 1px solid #f0f0f0;
}


.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
  margin-top: 20px;
}

.product-card {
  border: 1px solid #eee;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 15px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
}

.product-card h3 {
  font-size: 1.1rem;
  margin: 10px 0 5px;
}

.product-card .price {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
}

.loader {
  text-align: center;
  padding: 40px;
  color: #666;
}

.collection-btn,
.pagination-btn {
  background: #fff;
  border: 1px solid rgb(18,166,153);
  color: rgb(18,166,153);
  border-radius: 2rem;
  padding: 7px 20px;
  margin-right: 10px;
  font-size: 16px;
  font-weight: 500;
}

.collection-btn:hover,
.pagination-btn:hover {
  background: rgb(18,166,153);
  color: #fff;
}

.collection-btn.collection-active,
.pagination-btn.pagination-active {
  background: rgb(18,166,153);
  color: #fff;
}

.pagination-container {
  text-align: left;
  margin-top: 40px;
  margin-bottom: 60px;
}

.pagination-info {
    text-align: left;
    margin-top: 20px;
    font-weight: 500;
}

/* Mobile Menu Styles */
.nav-mobile {
  transition: all 0.3s ease-in-out;
  opacity: 0;
  transform: translateY(-20px);
  z-index: 9999;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.nav-mobile.nav-mobile-open {
  opacity: 1;
  transform: translateY(0);
}

.nav-mobile-btn {
  transition: transform 0.2s ease;
}

.nav-mobile-btn:hover {
  transform: scale(1.05);
}

.nav-mobile-open ~ * .nav-mobile-btn,
body:has(.nav-mobile-open) .nav-mobile-btn {
  display: none;
}

.nav-mobile-btn.menu-hidden {
  display: none;
}

.nav-mobile-close {
  z-index: 10000;
  color: rgb(18,166,153);
  background: transparent;
  border: none;
  padding: 0.5rem;
}

.nav-mobile-close:hover {
  transform: scale(1.05);
}

.nav-mobile-close svg {
  color: rgb(18,166,153);
}

.menu-icon {
  transition: all 0.3s ease;
}

.menu-active .menu-icon {
  transform: rotate(45deg);
}

.mobile-links a {
  transform: translateX(-30px);
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-links a.link-animate-in {
  transform: translateX(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .nav-mobile {
    padding-top: 2rem;
  }
  
  .mobile-links a {
    font-size: 1.5rem;
    padding: 1rem 0;
  }
}

body.menu-open {
  overflow: hidden;
}

/* SVG social icon colors */
.nav-underline svg,
.mobile-social svg {
  fill: rgb(18,166,153);
}

.footer-social svg {
  fill: #ffffff;
}


.back-btn,
a.back-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgb(18,166,153);
  background: #fff;
  color: rgb(18,166,153);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  /* place it at the start of the grid row */
  justify-self: start;
  grid-column: 1 / -1;
  margin-bottom: 1rem;
}

.back-btn::before {
  content: "←";
  font-size: 1rem;
  line-height: 1;
}

.back-btn:hover,
.back-btn:focus-visible {
  background: rgb(18,166,153);
  color: #fff;
  box-shadow: 0 4px 12px rgba(18,166,153,0.25);
}

.back-btn:active {
  transform: translateY(1px);
}

@media (max-width: 640px) {
  #catalogue-categories .back-btn {
    width: max-content; /* keep it compact on mobile */
  }
}
