/* ==========================
   VARIABLES & BASE
========================== */

:root {
  --primary-color: rgb(87, 169, 70);
  --primary-dark: #086b01;
  --secondary-color: #25a3dd;
  --secondary-dark: #1d86b3;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --border-color: #e9ecef;
  --error-color: #dc3545;
  --success-color: #28a745;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding-bottom: 80px;
  background-color: #f5f5f5;
  user-select: none;
}

a {
  text-decoration: none;
  color: inherit;
}

#cookieConsent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--dark-color);
  color: #fff;
  padding: 15px 20px;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  display: none;
  gap: 10px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

#cookieConsent button,
#cookieConsent a {
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

#cookieConsent button {
  background-color: #4CAF50;
  border: none;
  color: white;
  cursor: pointer;
}

#cookieConsent button:hover {
  background-color: #45a049;
}

#cookieConsent a {
  color: #ccc;
  text-decoration: underline;
}

#cookieConsent a:hover {
  color: white;
}


/* ==========================
   LAYOUT & CONTAINERS
========================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  margin-bottom: 3rem;
  margin-top: 3rem;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

/* ==========================
   TYPOGRAPHY
========================== */

section h1, .heading {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #2a4365;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.3;
}

section h2, .section-headings {
  font-size: 1.25rem;
  color: var(--dark-color);
  font-weight: 700;
  margin-top: 1.5rem;
  padding: 10px 0;
  letter-spacing: .28px;
}

section p, .heading + p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  color: #4a5568;
  margin: 0 auto 10px;
  line-height: 1.5;
  padding: 0 10px;
}

section ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

section ul li, section p {
  color: #555;
}

section strong {
  font-weight: bold;
  color: #222;
}

section em {
  font-style: italic;
  color: #666;
}

/* ==========================
   HEADER & NAVIGATION
========================== */

.header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  max-width: 40px;
  max-height: 50px;
  object-fit: contain;
}

.logo h1 {
  font-size: 15px;
  margin: 0;
  line-height: 1.2;
  color: var(--primary-color);
}

.logo p {
  font-size: 12px;
  margin: 0;
  color: var(--dark-color);
}

.main-nav {
  padding: 0 20px;
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0 15px;
}

.main-nav a {
  color: var(--dark-color);
  font-weight: 500;
  font-size: 14px;
  padding: 5px 0;
  position: relative;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--primary-color);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--dark-color);
}

.nav-toggle :hover {
  color: var(--primary-color);
}
.nav-toggle:focus {
  outline: none;
}

/* ==========================
   BUTTONS & FORMS
========================== */

.btn, .btn-primary, .btn-outline {
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.1s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-primary:hover,
.btn-outline:hover {
  background: var(--dark-color);
  color: #fff;
}

.btn-outline {
  background: var(--primary-color);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
  gap: 0.5rem;
}

.form-actions button {
  padding: 6px 16px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.form-actions button:hover {
  background: #0056b3;
}

/* ==========================
   GOOGLE SIGN-IN
========================== */

.google-btn {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #757575;
  border: 1px solid #dadce0;
  border-radius: 20px;
  font-family: Roboto, sans-serif;
  font-size: 12px;
  font-weight: 500;
  height: 35px;
  padding: 0 10px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.google-btn:hover {
  background: #f7f8f8;
  box-shadow: 0 2px 2px rgba(60,64,67,0.1), 0 6px 10px rgba(60,64,67,0.1);
}

.google-icon-wrapper {
  margin-right: 10px;
  display: flex;
  align-items: center;
}

.google-icon {
  width: 15px;
  height: 15px;
}

.btn-text {
  white-space: nowrap;
}

/* ==========================
   USER PROFILE
========================== */

.user-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-profile span {
  font-weight: 500;
  color: var(--dark-color);
  font-size: 12px;
}

/* ==========================
   SUBSCRIBE WRAPPER
========================== */

.subscribe-wrapper {
  display: flex;
  min-width: 130px;
  max-width: 220px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  background-color: white;
  margin-left: 1rem; /* Adjust spacing as needed */
}

.subscribe-wrapper input {
  border: none;
  padding: 0.5rem 1rem;
  font-size: 12px;
  flex: 1;
  min-width: 0;
}

.subscribe-wrapper input:focus {
  outline: none;
}

.subscribe-wrapper button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 0.5rem;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subscribe-wrapper button:hover {
  background-color: var(--dark-color); /* Or any darker shade of your primary color */
}

/* ==========================
   HERO & SORT
========================== */

.hero {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: transparent;
  padding: 1rem;
  margin-bottom: 5px;
  margin-top: 5px;
  align-items: center;
}

.sort-wrapper {
  text-align: center;
}

/* ==========================
   HEADINGS & DESCRIPTION
========================== */

.heading {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #2a4365;
  text-align: center;
  margin: 5px 0 12px 0;
  line-height: 1.3;
}

.heading + p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  color: #4a5568;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 10px;
  line-height: 1.5;
  padding: 0 10px;
}

/* ==========================
   DISCLAIMER
========================== */

.disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-color);
  padding: 12px 26px;
  margin: 25px auto;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.7rem;
  color: white;
  text-align: center;
  max-width: 100%;
}


.disclaimer a {
  font-weight: 600;
  text-decoration: underline;
}

.disclaimer strong {
  font-weight: 700;
}

/* ==========================
   CATALOGUE HIGHLIGHTS & STORE CAROUSEL
========================== */

.catalog-highlights {
  background: rgb(228, 228, 228);
  border-radius: 12px;
  padding: 20px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.store-carousel {
  margin: 40px auto;
  padding: 0 20px; /* Adds spacing on the left and right */
  max-width: 1200px; /* Prevents full width on large screens */
  justify-content: center;
}

.section-header {
  display: flex;
  justify-content: space-between; /* space between the h3 and link */
  align-items: center;
  max-width: 1200px;                /* desired width */
  margin: 0 auto 5px auto;        /* centers the whole container */
  padding: 0 16px;                 /* optional: adds space inside */
}

.section-headings  {
  font-family: 'Poppins', sans-serif; /* Modern font */
  letter-spacing: .28px;
  word-wrap: break-word;
  align-items: center;
  color: rgba(0, 0, 0, .8);
  line-height: 18px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark-color);
  padding: 5px 0;
}

.see-all-link {
  font-size: 15px;
  color: rgb(44, 147, 231);
  text-decoration: none;
  margin-right: 10px;
  transition: text-decoration 0.2s;
  position: relative;
  top: 10px; /* Adjust this value as needed (positive moves it down) */
}

.see-all-link:hover {
  text-decoration: underline;
  color: var(--primary-color);
}

.store-carousel-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.store-list {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 12px;
  padding: 10px 0;
}

.store-card {
  min-width: 150px;
  flex: 0 0 auto;
  background: transparent;
  padding: 10px;
  text-align: center;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.store-card a {
  min-width: 120px;
  flex: 0 0 auto;
  padding: 12px;
  text-align: center;
  border-radius: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

.store-card img {
  width: 80px;
  height: 80px; /* force full height */
  object-fit: contain; /* show full image, even if smaller */
  border-radius: 50%;
  border: 1px solid #ddd;
}

.store-card span {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-top: 8px; /* space between image and text */
}

.store-card:hover span {
  color: var(--primary-color) !important;
}

.arrow {
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  padding: 10px;
  margin-left: 10px;
  margin-right: 10px;
}

.arrow:hover {
  color: var(--dark-color);
}

.catalogue-card,
.store-card,
.catalogue-viewer-card {
  user-select: none;
}

/* Add to your styles.css */
.no-catalogues-message {
  text-align: center;
  color: #888;
  font-size: 1.1rem;
  padding: 32px 0 24px 0;
  font-style: italic;
  letter-spacing: 0.5px;
}

/* ==========================
   FILTERS & SEARCH
========================== */

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: transparent;
  padding: 0.1rem;
  margin: 20px 0;
}

.filters select,
.filters input {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: #fff;
  font-size: 14px;
  min-width: 150px;
}

.filters select:focus,
.filters input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.filters-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-color);
  border-radius: 6px;
  background: #fff;
  padding: 0.5rem 1rem;
  font-size: 14px;
  cursor: pointer;
  color: var(--dark-color);
  transition: background 0.2s, color 0.2s;
}

.filters-toggle:hover {
  background: var(--dark-color);
  color: #fff;
}



.subscribe-section {
  display: none;
}

.search-wrapper {
  display: flex;
  min-width: 150px;
  max-width: 300px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.search-wrapper input {
  border: none;
  padding: 0.5rem 1rem;
  font-size: 14px;
  flex: 1;
  min-width: 0;
}

.search-wrapper input:focus {
  outline: none;
}

.search-wrapper button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0 1rem;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.search-wrapper button:hover {
  background: var(--dark-color);
}

/* ==========================
   COMMENT SECTION
========================== */

#comment-form {
    display: flex;
    flex-direction: column;
    max-width: 740px;
    margin: 0.8rem auto;
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: none;
    border-radius: 0.5rem;
  }

  #comment-text {
    width: 100%;
    resize: none;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 0.75rem 0;
    font-size: 1rem;
    background: transparent;
    outline: none;
    transition: border-color 0.2s;
  }

  #comment-text:focus {
    border-color: var(--dark-color);
  }

  #comment-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: background-color 0.2s;
  }

  #comment-form button:hover {
    background-color: var(--dark-color);
  }

  /* --- Comments Section --- */
.blog-comment, .blog-comment-form {
  padding-left: 15%;
  padding-right: 15%;
}

.blog-comment h3, .blog-comment-form h3 {
  margin-bottom: 10px;
  font-size: 26px;
  line-height: 30px;
  font-weight: 800;
}

hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid #fff;
}

.blog-comment ul, .blog-comment ul.comments {
  list-style-type: none;
  padding: 0;
}

.post-comments {
  border: 1px solid #eee;
  margin-bottom: 20px;
  margin-left: 0;
  padding: 10px 20px;
  border-radius: 4px;
  background: #fff;
  color: #6b6e80;
  position: relative;
}

.post-comments .meta {
  font-size: 13px;
  color: #aaa;
  padding-bottom: 8px;
  margin-bottom: 10px !important;
  border-bottom: 1px solid #eee;
}

.post-comments .comment-body {
  font-size: 15px;
  color: #333;
}

.blog-comment-form {
  padding-top: 10px;
}

#comment-text.form-control {
  resize: vertical;
  min-height: 60px;
  max-height: 200px;
  font-size: 14px;
  width: 100%;
  margin-bottom: 10px;
}

/* ==========================
   CATALOGUE GRID & CARDS
========================== */

.catalogue-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 1rem;
  justify-content: center;
  align-items: start; /* aligns items to top */
}

.catalogue-card {
  display: flex;
  flex-direction: row; /* Align carousel and details side by side */
  width: 100%;
  max-width: 800px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Catalogue Viewer */
.catalogue-viewer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 1rem;
  justify-content: center;
  align-items: start; /* aligns items to top */
}

.catalogue-viewer-card {
  display: flex;
  flex-direction: column; /* Align carousel and details side by side */
  width: 100%;
  max-width: 1200px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* --- Carousel --- */
.catalogue-carousel,
.catalogue-viewer-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-images,
.carousel-viewer-images {
  display: flex;
  transition: transform 0.3s ease-in-out;
}

.carousel-image,
.carousel-viewer-image {
  width: 100%;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
}

.carousel-overlay,
.carousel-viewer-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.0) 20%,
    rgba(0, 0, 0, 0.0) 80%,
    rgba(0, 0, 0, 0.4) 100%
  );
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.catalogue-carousel:hover .carousel-overlay,
.catalogue-viewer-carousel:hover .carousel-viewer-overlay {
  opacity: 1;
}

#zoomPreview {
  position: fixed;
  width: 200px;
  height: 200px;
  border: 1px solid #fff;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  background-repeat: no-repeat;
  display: none;
  pointer-events: none;
  z-index: 100;
}

/* --- Carousel Arrows & Dots --- */
.carousel-arrow,
.carousel-viewer-arrow {
  position: absolute;
  top: 50%;
  width: 60px;
  height: 10px;
  font-size: 30px;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  opacity: 0;
  transition: transform 0.2s, opacity 0.2s;
  pointer-events: auto;
  z-index: 10;
}

.carousel-arrow.prev, .carousel-viewer-arrow.prev { left: 0; transform: translate(-100%, -50%); }
.carousel-arrow.next, .carousel-viewer-arrow.next { right: 0; transform: translate(100%, -50%); }
.catalogue-carousel:hover .carousel-arrow.prev,
.catalogue-carousel:hover .carousel-arrow.next,
.catalogue-viewer-carousel:hover .carousel-viewer-arrow.prev,
.catalogue-viewer-carousel:hover .carousel-viewer-arrow.next {
  transform: translate(0, -50%);
  opacity: 1;
}

.carousel-dots,
.carousel-viewer-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.carousel-dot,
.carousel-viewer-dot {
  width: 10px;
  height: 10px;
  margin: 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.carousel-dot.active,
.carousel-viewer-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

/* --- Catalogue Details --- */

.catalogue-details,
.catalogue-viewer-details {
  position: relative;
  width: 50%;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.catalogue-title,
.catalogue-viewer-title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px;
}

.catalogue-location,
.catalogue-viewer-location {
  font-size: 12px;
  color: #555;
  margin-bottom: 10px;
}

.catalogue-rating,
.catalogue-viewer-rating {
  display: flex;
  gap: 5px;
  font-size: 18px;
  color: rgb(255, 123, 0);
  margin-bottom: 10px;
}

.rating-value,
.rating-viewer-value {
  font-size: 12px;
  color: #333;
  line-height: 2.1;
  position: relative;
  top: 1px;
}

.catalogue-summary,
.catalogue-viewer-summary {
  font-size: 12px;
  color: black;
  margin-bottom: 10px;
}

.catalogue-summary {
  white-space: pre-wrap;
  line-height: 1.6;
}

.catalogue-source {
  position: absolute;
  bottom: 5px;
  right: 10px;
  font-size: 11px;
  color: #555;
}

.catalogue-viewer-source {
  position: absolute;
  bottom: 5px;
  left: 10px;
  font-size: 11px;
  color: #555;
}

.catalogue-source a,
.catalogue-viewer-source a {
  color: #007bff;
  text-decoration: none;
}

.catalogue-source a:hover,
.catalogue-viewer-source a:hover {
  text-decoration: underline;
}

/* --- Likes, Dislikes, Comments --- */

.likes {
  display: flex;
  gap: 20px;
  margin: 10px auto;
  position: absolute;
  bottom: 30px;
  left: 30px;
  font-size: 15px;
  align-items: center;
  justify-content: center;
}

.likes-viewer {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  position: relative;
  left: 0;
  bottom: 0;
  font-size: 15px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 10px 0;
}

.likes i,
.likes-viewer i {
  cursor: pointer;
  color: #009DDC;
  transition: color 0.1s, transform 0.1s;
}

.likes i:hover,
.likes-viewer i:hover {
  color: var(--dark-color);
}

.dislike i,
.dislike-viewer i {
  color: #d50000;
  transform: scaleX(-1);
}

.comment i,
.comment-viewer i {
  color: var(--dark-color);
}

.like-count, .dislike-count, .comment-count,
.like-count-viewer, .dislike-count-viewer, .comment-count-viewer {
  margin-left: 5px;
  font-weight: bold;
}

.like, .dislike,
.like-viewer, .dislike-viewer {
  transition: transform 0.15s cubic-bezier(.4,2,.6,1), color 0.15s;
}

.like.animated, .dislike.animated,
.like-viewer.animated, .dislike-viewer.animated {
  transform: scale(1.3) rotate(-10deg);
}

.like.animated, .like-viewer.animated { color: #2ecc40; }
.dislike.animated, .dislike-viewer.animated { color: #ff4136; }

/* ==========================
   ADMIN PANEL
========================== */
.admin-panel,
.adminProduct-panel {
  position: absolute;
  bottom: 70px;
  right: 20px;
  background: #f9f9f9;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  width: 600px;
  z-index: 999;
}
.admin-panel { position: absolute; }
.adminProduct-panel { position: fixed; }
.admin-panel h3 {
  margin-bottom: 1rem;
  color: var(--dark-color);
  text-align: center;
  font-size: 1.1rem;
}
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.admin-form input,
.admin-form select,
.admin-form textarea {
  padding: 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 12px;
}
.admin-form textarea {
  min-height: 80px;
  resize: vertical;
}
.admin-form button {
  margin-top: 8px;
  font-size: 14px;
  padding: 0.5rem;
}

#adminPanel{
  display: none;
}

/* Add to your styles.css */
.region-picker {
  margin: 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.region-option {
  background: #f2f2f2;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s;
}
.region-option:hover {
  background: #e0e0e0;
}

#toggleAdmin {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 60%;
  cursor: pointer;
  font-size: larger;
  font-weight: bold;
  transition: background-color 0.1s;
}
#toggleAdmin:hover {
  background: var(--dark-color);
}

.removeCatalogueBtn {
  display: none;
}

/* ==========================
   FOOTER
========================== */

.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--dark-color);
  color: white;
  padding: 20px 0;
}
.footer-bottom {
  text-align: center;
  font-size: 14px;
}
.footer-bottom a {
  text-decoration: none;
  transition: color 0.1s;
}
.footer-bottom a:hover {
  color: var(--primary-color);
}
.footer-divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 10px auto;
  width: 80%;
}

.footer a.active {
  color: var(--primary-color);
}

/* ==========================
   AD BANNERS
========================== */

.ad-banner-horizontal {
  width: 100%;
  max-height: 150px;
  margin: 5px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f5f5;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}
.ad-banner-horizontal img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.ad-banner-vertical {
  position: fixed;
  top: 100px;
  width: 120px;
  max-height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f5f5;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  z-index: 1000;
}
.ad-banner-vertical img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.ad-banner-vertical.left-banner { left: 20px; }
.ad-banner-vertical.right-banner { right: 20px; }

/* Responsive Design */

@media (max-width: 1024px) {
  body {
    padding-bottom: 60px;
  }

  .container {
    max-width: 900px;
  }

  section {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 1.2rem;
  }

  section h1,
  .heading {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  section h2,
  .section-headings {
    font-size: 1.1rem;
    padding: 3px 0;
  }

  section p,
  .heading + p {
    font-size: 1rem;
    padding: 0 5px;
  }

  section ul {
    padding-left: 1rem;
  }

  .post-comments .comment-body {
    font-size: 13px;
  }

  #cookieConsent {
    padding: 13px 18px;
    gap: 9px;
    font-size: 0.8rem;
  }

  #cookieConsent button,
  #cookieConsent a {
    font-size: 0.8rem;
    padding: 7px 12px;
  }

  /* ==========================
    HEADER & NAVIGATION
  ========================== */
  .header {
    padding: 20px 0;
  }

  .header .container {
    padding: 0 10px;
    justify-content: space-between;
  }

  .logo-container {
    gap: 3px;
  }

  .logo-img {
    max-width: 30px;
    max-height: 40px;
  }

  .logo h1 {
    font-size: 12px;
    margin: 0;
    line-height: 1;
  }

  .logo p {
    font-size: 10px;
  }

 .main-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  background-color: white; /* 80% opacity */
  position: absolute;
  top: 100%;
  right: 0;
  width: 30%; /* Slightly larger for tablets */
  padding: 20px 24px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  z-index: 100;
  animation: slideDown 0.25s ease-out;
}

.main-nav.open {
  display: flex;
}

.main-nav ul {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-nav li {
  margin: 0;
  padding: 10px 0;
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.main-nav a {
  font-size: 16px;
  font-weight: 500;
  color: #1f2937;
  text-decoration: none;
  width: 100%;
  padding: 10px 0;
  display: inline-block;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: #111827;
  transform: scale(1.08);
}


@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


  .nav-toggle {
    display: block;
  }

  .subscribe-header {
    display: none;
  }
  .subscribe-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* ==========================
   BUTTONS & FORMS
  ========================== */

  .btn, .btn-primary, .btn-outline {
    padding: 0.4rem 0.8rem;
    font-size: 0.95rem;
  }

  .btn-outline {
    font-size: 11px;
  }

  .form-actions button {
    padding: 5px 12px;
    font-size: 0.95rem;
  }

  .google-btn {
    font-size: 10px;
    height: 25px;
    padding: 0 8px;
  }

  .google-icon-wrapper {
    margin-right: 5px;
  }

  .google-icon {
    width: 13px;
    height: 13px;
  }

  .user-profile span {
    font-size: 10px;
  }

  .subscribe-wrapper {
    min-width: 110px;
    max-width: 600px;
  }

  .subscribe-wrapper input,
  .subscribe-wrapper button {
    font-size: 14px;
    padding: 0.4rem 0.8rem;
  }

  /* ==========================
   HERO & SORT
  ========================== */

  .hero {
    gap: 0.7rem;
    margin-top: 2px;
    margin-bottom: 2px;
    padding: 0.7rem;
  }

  /* ==========================
   HEADINGS, DESCRIPTION & DICLAIMER
  ========================== */

  .heading {
    font-size: 1rem;
    margin: 5px 0 8px 0;
  }

  .heading + p {
    font-size: 0.7rem;
    max-width: 600px;
    padding: 0 5px;
  }

  .disclaimer {
    font-size: 0.65rem;
    padding: 12px 20px;
    margin: 20px auto;
    max-width: 100%;
  }

  /* ==========================
   CATALOGUE HIGHLIGHTS & STORE CAROUSEL
  ========================== */

  .catalog-highlights {
    padding: 14px 10px;
  }

  .store-carousel {
    margin: 30px auto;
    padding: 0 10px;
    max-width: 90%;
  }

  .section-header {
    max-width: 90%;
    padding: 0 8px;
  }

  .section-headings {
    font-size: 1.1rem;
    padding: 1px 0;
  }

  .see-all-link {
    font-size: 12px;
    margin-right: 6px;
  }

  .store-list {
    gap: 8px;
    padding: 8px 0;
  }

  .store-card {
    min-width: 110px;
    padding: 8px;
    gap: 6px;
  }

  .store-card a {
    min-width: 90px;
    padding: 8px;
    gap: 6px;
  }

  .store-card img {
    width: 60px;
    height: 60px;
  }

  .store-card span {
    font-size: 12px;
    margin-top: 5px;
  }

  .arrow {
    font-size: 20px;
    padding: 8px;
    margin-left: 6px;
    margin-right: 6px;
  }

  .carousel-overlay,
  .carousel-viewer-overlay {
    opacity: 1 !important;
    pointer-events: auto;
  }
  .carousel-arrow,
  .carousel-viewer-arrow {
    opacity: 1 !important;
    pointer-events: auto;
    transform: translateY(-50%) !important;
  }

  /* ==========================
   FILTERS & SEARCH
  ========================== */

  .filters select,
  .filters input {
    width: 100%;
    max-width: 130px;
    font-size: 12px;
    min-width: 80px;
  }

  .filters option {
    font-size: 12px;
    padding-top: 1px;
    padding-bottom: 1px;
    height: 20px;
    min-height: 0;
    line-height: 0.9;
  }

  .search-wrapper {
    min-width: 110px;
    max-width: 200px;
  }

  .search-wrapper input {
    padding: 0.4rem 0.8rem;
    font-size: 13px;
  }

  .search-wrapper button {
    padding: 0 0.8rem;
    font-size: 14px;
  }

  /* ==========================
   COMMENT SECTION
  ========================== */
  #comment-form {
    max-width: 95vw;
    padding: 0.2rem 0.2rem;
  }

  #comment-text {
    font-size: 0.95rem;
    padding: 0.6rem 0;
  }

  #comment-form button {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .blog-comment, .blog-comment-form {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .blog-comment h3, .blog-comment-form h3 {
    font-size: 22px;
    line-height: 26px;
  }

  .post-comments .comment-body {
    font-size: 13px;
  }

  /* ==========================
   CATALOGUE GRID & CARDS
  ========================== */

  .catalogue-container {
    grid-template-columns: 1fr;
    max-width: 90%;
    gap: 14px;
    padding: 0 0.5rem;
  }

  .catalogue-card {
    max-width: 100%;
  }

  .catalogue-viewer-container {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 0.5rem;
    max-width: 95%;
  }

  .catalogue-viewer-card {
    max-width: 100%;
  }

  .catalogue-details {
    width: 60%;
    padding: 4px;
  }

  .catalogue-viewer-details {
    width: 100%;
    padding: 4px;
  }

  .catalogue-title,
  .catalogue-viewer-title {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .catalogue-location,
  .catalogue-viewer-location {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .catalogue-rating,
  .catalogue-viewer-rating {
    font-size: 12px;
    margin-bottom: 8px;
    gap: 4px;
  }

  .rating-value,
  .rating-viewer-value {
    font-size: 10px;
    line-height: 1.8;
  }

  .catalogue-summary,
  .catalogue-viewer-summary {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .catalogue-source {
    bottom: 2px;
    right: 6px;
    font-size: 10px;
  }

  .catalogue-viewer-source {
    font-size: 10px;
    bottom: 2px;
    right: 6px;
    left: 6px;
  }

  /* --- Likes, Dislikes, Comments --- */
  .likes {
    gap: 12px;
    font-size: 12px;
    bottom: 18px;
    left: 12px;
    padding: 6px 0;
  }

  .likes-viewer {
    gap: 12px;
    font-size: 12px;
    padding: 6px 0;
  }

  .like-count, .dislike-count, .comment-count,
  .like-count-viewer, .dislike-count-viewer, .comment-count-viewer {
    margin-left: 3px;
    font-size: 11px;
  }

  /* ==========================
   ADMIN PANEL
  ========================== */

  .admin-panel,
  .adminProduct-panel {
    width: 80%;
    bottom: 50px;
    right: 5%;
    padding: 8px;
  }

  .admin-form {
    gap: 0.6rem;
  }

  .admin-form input,
  .admin-form select,
  .admin-form textarea {
    padding: 0.5rem;
    font-size: 11px;
  }

  .admin-form button {
    font-size: 13px;
    padding: 0.4rem;
  }


  /* ==========================
   FOOTER
  ========================== */

  .footer {
    padding: 14px 0;
  }
  .footer-bottom {
    font-size: 12px;
  }
  .footer-divider {
    width: 90%;
  }

}

@media (max-width: 600px) {
  body {
    padding-bottom: 40px;
  }
  
  .container {
    max-width: 90%;
  }

  section {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.7rem;
  }

  section h1,
  .heading {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  section h2,
  .section-headings {
    font-size: 0.9rem;
    padding: 2px 0;
  }

  section p,
  .heading + p {
    font-size: 0.9rem;
    padding: 0 2px;
  }

  section ul {
    padding-left: 0.7rem;
  }

  .post-comments .comment-body {
    font-size: 11px;
  }

  #cookieConsent {
    padding: 8px 2px;
    gap: 5px;
    font-size: 0.49rem;
  }

  #cookieConsent button,
  #cookieConsent a {
    font-size: 0.4rem;
    padding: 4px 4px;
  }

  /* ==========================
    HEADER & NAVIGATION
  ========================== */
  .header {
    padding: 10px 0;
  }

  .header .container {
    padding: 0 1px;
    justify-content: space-between;
  }

  .logo-container {
    gap: 1px;
  }

  .logo-img {
    max-width: 20px;
    max-height: 30px;
  }

  .logo h1 {
    font-size: 10px;
  }

  .logo p {
    font-size: 8px;
  }

  .main-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  background-color: #ffffff;
  position: absolute;
  top: 100%;
  right: 0;
  width: 40%;
  padding: 16px 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color, #e5e7eb); /* fallback */
  border-radius: 12px;
  z-index: 100;
  animation: slideDown 0.25s ease-out;
}

.main-nav.open {
  display: flex;
}

.main-nav ul {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-nav li {
  margin: 0;
  padding: 8px 0;
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.main-nav a {
  font-size: 12px;
  font-weight: 500;
  color: #1f2937; /* slate-800 */
  text-decoration: none;
  padding: 8px 0;
  display: inline-block;
  width: 100%;
  border-radius: 6px;
}

/* Smooth dropdown animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


  .nav-toggle {
    display: block;
    font-size: 16px;
  }

  .subscribe-header {
    display: none;
  }
  .subscribe-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* ==========================
   BUTTONS & FORMS
  ========================== */

  .btn, .btn-primary, .btn-outline {
    padding: 0.2rem 0.4rem;
    font-size: 0.55rem;
  }

  .btn-outline {
    font-size: 8px;
  }

  .form-actions button {
    padding: 4px 8px;
    font-size: 0.85rem;
  }

  .google-btn {
    font-size: 8px;
    height: 20px;
    padding: 0 4px;
  }

  .google-icon-wrapper {
    margin-right: 3px;
  }

  .google-icon {
    width: 10px;
    height: 10px;
  }

  .user-profile span {
    font-size: 8px;
  }

  .subscribe-wrapper {
    min-width: 90px;
    max-width: 200px;
  }

  .subscribe-wrapper input,
  .subscribe-wrapper button {
    font-size: 10px;
    padding: 0.3rem 0.6rem;
  }

  /* ==========================
   HERO & SORT
  ========================== */

  .hero {
    gap: 0.4rem;
    margin-top: 1px;
    margin-bottom: 1px;
    padding: 0.4rem;
  }

  /* ==========================
   HEADINGS, DESCRIPTION & DICLAIMER
  ========================== */

  .heading {
    font-size: 0.7rem;
    margin: 5px 0 6px 0;
  }

  .heading + p {
    font-size: 0.5rem;
    max-width: 95vw;
    padding: 0 2px;
  }

  .disclaimer {
    font-size: 0.5rem;
    padding: 10px 5px;
    margin: 20px auto;
    max-width: 100%;
  }

  /* ==========================
   CATALOGUE HIGHLIGHTS & STORE CAROUSEL
  ========================== */

  .catalog-highlights {
    padding: 8px 4px;
  }

  .store-carousel {
    margin: 15px auto;
    padding: 0 2px;
  }

  .section-header {
    padding: 0 2px;
  }

  .section-headings {
    font-size: 0.9rem;
    padding: 2px 0;
  }

  .see-all-link {
    font-size: 10px;
    margin-right: 2px;
  }

  .store-list {
    gap: 4px;
    padding: 4px 0;
  }

  .store-card {
    min-width: 80px;
    padding: 4px;
    gap: 3px;
  }

  .store-card a {
    min-width: 60px;
    padding: 4px;
    gap: 3px;
  }

  .store-card img {
    width: 40px;
    height: 40px;
  }

  .store-card span {
    font-size: 10px;
    margin-top: 3px;
  }

  .arrow {
    font-size: 16px;
    padding: 4px;
    margin-left: 3px;
    margin-right: 3px;
  }

  /* ==========================
   FILTERS & SEARCH
  ========================== */
  .filters-toggle {
    display: block;
    padding: 0.2rem 0.4rem;
    font-size: 10px;
  }

  .filters-toggle i {
    font-size: 8px;
  }

  .filters {
    display: none;
    align-items: center;
  }

  .filters.open {
    display: flex;
    font-size: 8px;
  }
  
  .filters select,
  .filters input {
    width: 70%;
    max-width: 100px;
    min-width: 60px;
    font-size: 8px;
  }

  .filters option {
    font-size: 8px;
    padding-top: 1px;
    padding-bottom: 1px;
    height: 15px;
    min-height: 0;
    line-height: 0.5;
  }

  .search-wrapper {
    min-width: 80px;
    max-width: 120px;
  }

  .search-wrapper input {
    padding: 0.3rem 0.6rem;
    font-size: 12px;
  }

  .search-wrapper button {
    padding: 0 0.6rem;
    font-size: 12px;
  }

  /* ==========================
   COMMENT SECTION
  ========================== */

  #comment-form {
    max-width: 100vw;
    padding: 0.1rem 0.1rem;
  }

  #comment-text {
    font-size: 0.9rem;
    padding: 0.4rem 0;
  }

  #comment-form button {
    padding: 0.2rem 0.3rem;
    font-size: 0.6rem;
  }

  .blog-comment, .blog-comment-form {
    padding-left: 2vw;
    padding-right: 2vw;
  }

  .blog-comment h3, .blog-comment-form h3 {
    font-size: 16px;
    line-height: 20px;
  }

  .post-comments .comment-body {
    font-size: 11px;
  }

  /* ==========================
   CATALOGUE GRID & CARDS
  ========================== */
  .catalogue-container {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 0.2rem;
  }

  .catalogue-card {
    max-width: 100%;
  }

  .catalogue-viewer-container {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 0.2rem;
  }

  .catalogue-viewer-card {
    max-width: 100%;
  }

  .catalogue-details {
    width: 60%;
    padding: 4px;
  }

  .catalogue-viewer-details {
    width: 100%;
    padding: 4px;
  }

  .catalogue-title,
  .catalogue-viewer-title {
    font-size: 10px;
    margin-bottom: 5px;
  }

  .catalogue-location,
  .catalogue-viewer-location {
    font-size: 8px;
    margin-bottom: 5px;
  }

  .catalogue-rating,
  .catalogue-viewer-rating {
    font-size: 10px;
    margin-bottom: 5px;
    gap: 2px;
  }

  .rating-value,
  .rating-viewer-value {
    font-size: 8px;
    line-height: 1.4;
  }

  .catalogue-summary,
  .catalogue-viewer-summary {
    font-size: 8px;
    margin-bottom: 5px;
  }

  .catalogue-source {
    bottom: 1px;
    right: 3px;
    font-size: 8px;
  }

  .catalogue-viewer-source {
    font-size: 8px;
    bottom: 1px;
    right: 3px;
    left: 3px;
  }

  /* --- Likes, Dislikes, Comments --- */
  .likes {
    gap: 8px;
    font-size: 9px;
    bottom: 8px;
    left: 6px;
  }

  .likes-viewer {
    gap: 2px;
    font-size: 9px;
    padding: 3px 0;
  }

  .like-count, .dislike-count, .comment-count,
  .like-count-viewer, .dislike-count-viewer, .comment-count-viewer {
    margin-left: 2px;
    font-size: 8px;
  }

  /* ==========================
   ADMIN PANEL
  ========================== */

  .admin-panel,
  .adminProduct-panel {
    width: 90%;
    bottom: 30px;
    right: 2.5%;
    padding: 6px;
  }

  .admin-panel h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .admin-form {
    gap: 0.5rem;
  }

  .admin-form input,
  .admin-form select,
  .admin-form textarea {
    padding: 0.4rem;
    font-size: 10px;
  }

  .admin-form button {
    font-size: 12px;
    padding: 0.3rem;
  }

  .region-option {
    font-size: 10px;
    padding: 3px 8px;
  }

  /* ==========================
   FOOTER
  ========================== */

  .footer {
    padding: 8px 0;
  }
  .footer-bottom {
    font-size: 8px;
  }
  .footer-divider {
    width: 98%;
  }

}

@media (min-width: 1440px) {
}