@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@700&family=Dancing+Script:wght@700&family=Poppins:wght@400;500;600&display=swap');

:root {
    --primary-brand: #2a9d8f; /* Rich Teal */
    --primary-hover: #248b7f;
    --secondary-accent: #f4a261; /* Sandy Orange */
    --background-light: #fdfdfd; /* Almost white */
    --card-bg: #ffffff;
    --text-dark: #264653; /* Dark Slate Green/Blue */
    --text-light: #6a7f8d;
    --border-color: #e0eaf0;
    --shadow-color-light: rgba(42, 157, 143, 0.1);
    --shadow-color-dark: rgba(38, 70, 83, 0.1);

    --font-heading: 'Baloo 2', cursive;
    --font-body: 'Poppins', sans-serif;
    --font-script: 'Dancing Script', cursive;

    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

/* 10. Product Pages
-------------------------------------------------- */
.products-hero {
    min-height: 40vh; /* Taller for a more epic feel */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
    text-align: center;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    position: relative;
    overflow: hidden; /* Ensure pseudo-elements and animations are contained */
    /* New curved bottom */
    clip-path: ellipse(120% 100% at 50% 100%);
    animation: slowZoom 40s infinite alternate ease-in-out; /* Add background animation */
}

@keyframes slowZoom {
    from {
        background-size: cover;
    }
    to {
        background-size: cover;
    }
}

.products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* A more subtle, uniform overlay for the glass effect */
    background: rgba(0, 0, 0, 0.2);
}

.products-hero .hero-content {
    position: relative;
    z-index: 2;
    /* Glassmorphism effect removed */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 2.5rem 3.5rem;
    border: none;
    box-shadow: none;
    animation: fadeInUp 0.8s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.products-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.products-hero p.subtitle {
    color: #fff;
    font-size: 1.2rem;
    animation: fadeInUp 0.8s 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.products-grid-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    /* padding: 2rem 2rem 4rem; */
    width: 100%;
}

/* --- FILTER BUTTONS --- */
.filter-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 2px 0 0 0;
  align-items: stretch;
}

.filter-btn {
  background: none;
  color: var(--text-light, #6a7f8d);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 15px;
  padding: 10px 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  outline: none;
  letter-spacing: 0.5px;
  font-family: inherit;
}

.filter-btn.active,
.filter-btn:focus {
  background: var(--primary-brand, #26a69a);
  color: #fff;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.10);
  transform: translateY(-2px) scale(1.03);
}

.filter-btn:hover:not(.active) {
  background: var(--primary-brand, #26a69a);
  color: #fff;
}

/* --- SIDEBAR --- */
.filters-sidebar {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 8px 10px 0 var(--shadow-color-light);
  border: 1.5px solid var(--border-color);
  padding: 20px 28px 20px 28px;
  /* min-width: 260px; */
  max-width: 260px;
  margin-right: 32px;
  margin-bottom: 32px;
  font-family: var(--font-body);
}
.filters-sidebar h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.sidebar-search-group {
  position: relative;
  margin-bottom: 24px;
}

.sidebar-search-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: 16px;
  border: 2px solid var(--border-color);
  background: #fff;
  font-size: 1.08rem;
  color: var(--text-dark);
  box-shadow: 0 2px 8px var(--shadow-color-light);
  outline: none;
  transition: border 0.18s, box-shadow 0.18s;
  font-family: var(--font-body);
}

.sidebar-search-input:focus {
  border: 2px solid var(--primary-brand);
  box-shadow: 0 4px 16px var(--shadow-color-light);
}

.sidebar-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #b0bec5;
  font-size: 1.2em;
  pointer-events: none;
}

/* --- PRODUCTS GRID --- */

.products-grid-section {
    grid-template-columns: 1fr;
    padding: 2rem 2rem 4rem;
}
.products-grid-container {
  flex: 1;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

/* --- PET CARD --- */
.pet-card {
  position: relative;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 330px;
  min-height: 500px;
  transition: box-shadow 0.2s;
  margin-bottom: 32px;
  max-width: 600px;
  max-height: 600px;
  margin-right: auto;
}

.pet-card__image {
    width: 100%;
    aspect-ratio: 4/3;
    background-size: contain;         /* Show the whole image, not cropped */
    background-repeat: no-repeat;
    background-position: center center; /* Center the image */
    background-color: #fff;            /* Optional: white background */
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    min-height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0;                  /* Optional: vertical padding for better centering */
  }

  .pet-price-tag {
    position: absolute;
    right: 0%;
    top: calc(260px - 24px); /* 220px is min-height of image, adjust as needed */
    transform: translateX(-50%);
    background: #f4a261;
    color: #222;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 32px;
    padding: 10px 32px;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.16);
    z-index: 2;
    display: inline-block;
    letter-spacing: 0.5px;
    border: none;
    text-align: center;
  }

.pet-card-info {
  padding: 32px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

/* --- SOLD RIBBON --- */
.sold-ribbon {
    position: absolute;
    top: 1.7rem;
    right: 0rem;
    background: #ff5858;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.35rem 1.5rem;
    border-radius: 0.7rem;
    transform: rotate(45deg);
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    letter-spacing: 2px;
    pointer-events: none;
}
.sold-ribbon span {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 1px;
}
.pet-card.sold .pet-card__image {
    filter: grayscale(1) brightness(0.85);
    transition: filter 0.3s;
}

/* --- EMPTY STATE --- */
.empty-state {
  text-align: center;
  color: #90a4ae;
  font-size: 1.2rem;
  padding: 40px 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  .products-grid-section {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the grid section horizontally */
  }
  .products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    justify-items: center;   /* Center cards in each column */
    align-items: start;
    width: 100%;
    max-width: 800px;        /* Optional: limit grid width for aesthetics */
    margin: 0 auto;
  }
  .pet-card {
    max-width: 340px;
    width: 100%;
    margin: 0;
  }
  .filters-sidebar {
    margin-right: 0;
    margin-bottom: 24px;
    max-width: 100%;
  }
  .products-hero {
    padding: 3rem 0.5rem 2rem 0.5rem;
    max-height: 50vh;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    clip-path: ellipse(140% 100% at 50% 100%);
  }
  .products-hero .hero-content {
    padding: 0.5rem 0.2rem;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .products-hero h1,
  .heading-with-icon {
    font-size: 1.5rem;
    margin-bottom: 0.3em;
    word-break: break-word;
  }
  .available-badge, .prebooking-badge {
    margin: 0.5em auto 0.5em auto;
    display: inline-flex;
    font-size: 0.92rem;
    padding: 0.3em 0.7em;
  }
  .products-hero h1 {
    font-size: 1.5em;
    margin-bottom: 0em;
  }
  .products-hero p.subtitle {
    font-size: 1rem;
    margin-bottom: -3em;

  }
  .floating-cart-icon {
    right: 18px;
    bottom: 18px;
    font-size: 1.1rem;
    padding: 10px 14px;
  }
  .floating-cart-icon .cart-count {
    font-size: 0.7rem;
    padding: 2px 6px;
  }
  .filter-btns {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1em;
    justify-content: center; /* Center the buttons in the container */
  }
  .filter-btn {
    flex: 1 1 0;
    min-width: 90px;
    padding: 10px 0;
    text-align: center;
    border-radius: 16px;
    font-size: 1rem;
    margin: 0;
    border: 2px solid #2a9d8f; /* Add border */
    background: #fff;           /* White background for contrast */
    color: #264653;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }
  .filter-btn.active,
  .filter-btn:focus {
    background: #2a9d8f;
    color: #fff;
    border-color: #2a9d8f;
  }
  .filters-sidebar {
    margin: 0 auto 18px auto;   /* Center the filter card */
    max-width: 600px;           /* Optional: limit width for aesthetics */
    width: 100%;
    border-radius: 18px;
    padding: 12px 6px 10px 6px;
    box-sizing: border-box;
    display: block;
  }
}

@media (max-width: 768px) {
  .products-hero {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 50vh;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    position: relative;
  }
  .products-hero .hero-content {
    padding: 0.5rem 0.2rem;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.7em; /* Add vertical gap between children */
  }
  .products-hero h1,
  .heading-with-icon {
    font-size: 1.3rem;
    margin: 0.1em 0 0.1em 0;
    /* gap: 0.1em; */
    word-break: break-word;
    /* line-height: 0.5; */
  }
  .available-badge, .prebooking-badge {
    margin: 0.1em auto 0.1em auto;
    display: inline-flex;
    font-size: 0.92rem;
    padding: 0.3em 0.7em;
  }
  .products-hero p.subtitle {
    font-size: 1rem;
    margin: 0.1em 0 0 0;
    /* line-height: 1.4; */
  }
  .filters-sidebar {
    margin: 0 auto 18px auto;   /* Center horizontally */
    max-width: 400px;           /* Optional: limit width for aesthetics */
    width: 80%;
    border-radius: 18px;
    padding: 12px 6px 10px 6px;
    box-sizing: border-box;
    display: block;
  }
  .products-grid-section {
    display: flex;
    flex-direction: column; 
    align-items: center;
  }
  .filter-btns {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1em;
  }
  .filter-btn {
    flex: 1 1 0;
    min-width: 90px;
    padding: 10px 0;
    text-align: center;
    border-radius: 16px;
    font-size: 1rem;
    margin: 0;
    border: 1px solid #2a9d8f;
    background: #fff;
    color: #264653;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }
  .filter-btn.active,
  .filter-btn:focus {
    background: #2a9d8f;
    color: #fff;
    border-color: #2a9d8f;
  }
  .products-grid {
    grid-template-columns: 1fr; /* 1 column */
  }
}

@media (max-width: 1300px) {
  .products-hero {
    padding: 4rem 1rem 2rem 1rem;
    min-height: 28vh;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    clip-path: ellipse(130% 100% at 50% 100%);
  }
  .products-hero .hero-content {
    padding: 1.2rem 0.5rem;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .products-hero h1,
  .heading-with-icon {
    font-size: 2rem;
    margin-top: 2em;
    word-break: break-word;
  }
  .available-badge, .prebooking-badge {
    margin: 1em auto 0.5em auto;
    display: inline-flex;
    font-size: 1rem;
    padding: 0.35em 0.9em;
  }
  .products-hero p.subtitle {
    font-size: 1.1rem;
    margin-top: 1em;
  }
}

/* --- ADD TO CART BUTTON --- */
.add-to-cart-btn {
    margin-top: 14px;
    padding: 10px 20px;
    width: 100%;
    background: #26a69a; /* Teal shade */
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 28px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.10);
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
    letter-spacing: 0.5px;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .add-to-cart-btn i {
    font-size: 1.2em;
    margin-right: 6px;
  }
  .add-to-cart-btn:hover, .add-to-cart-btn:focus {
    background: #219080;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.16);
    transform: translateY(-2px) scale(1.03);
  }
  .add-to-cart-btn:active {
    background: #17806d;
    box-shadow: 0 1px 4px rgba(44, 62, 80, 0.10);
    transform: scale(0.98);
  }

/* --- SIDEBAR CATEGORY LIST --- */
.sidebar-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-category-list li {
  font-size: 1.25rem;
  color: var(--text-light);
  font-weight: 500;
  margin: 22px 0;
  cursor: pointer;
  transition: color 0.18s, font-weight 0.18s;
  border-radius: 12px;
  padding: 4px 12px;
}

.sidebar-category-list li.active,
.sidebar-category-list li:hover {
  color: var(--primary-brand);
  background: rgba(42, 157, 143, 0.08);
  font-weight: 700;
}

/* --- FLOATING CART ICON --- */
.floating-cart-icon {
    position: fixed;
    right: 50px;
    bottom: 40px;
    background: #26a69a;
    color: #fff;
    border-radius: 50px;
    padding: 16px 24px;
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.18);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    text-decoration: none;
    transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  }
  .floating-cart-icon:hover {
    background: #219080;
    transform: translateY(-2px) scale(1.03);
  }
  .floating-cart-icon .cart-count {
    background: var(--secondary-accent);
    color: #fff;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 6px;
  }

/* --- NOTIFICATION --- */

.notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: bottom 0.5s ease-in-out;
    z-index: 1000;
    font-size: 1rem;
    font-weight: 500;
}

.notification.show {
    bottom: 20px;
}

.heading-with-icon {
  display: flex;
  align-items: center;
  gap: 16px; /* space between icon and text */
  font-size: 2.8rem; /* or whatever your h1 size is */
  font-weight: 700;
  margin-bottom: 0.5em;
}

.heading-with-icon .fa-store {
  font-size: 1em; /* 1em makes icon same height as text */
  line-height: 1;
  /* Optional: vertical-align tweak if needed */
}

.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: linear-gradient(90deg, #2ed573 0%, #1e90ff 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 1em;
  padding: 0.4em 1.1em;
  margin-bottom: 0.7em;
  box-shadow: 0 2px 8px rgba(46, 213, 115, 0.10);
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(30, 144, 255, 0.08);
  border: none;
  white-space: nowrap;
}

.available-badge i {
  color: #fff;
  font-size: 1.1em;
  margin-right: 0.3em;
  filter: drop-shadow(0 1px 2px rgba(46,213,115,0.12));
}

/* Responsive adjustments for tablets */
@media (max-width: 900px) {
  .available-badge {
    font-size: 0.95rem;
    padding: 0.35em 0.9em;
    gap: 0.3em;
  }
  .available-badge i {
    font-size: 1em;
  }
}

/* Responsive adjustments for mobile */
@media (max-width: 600px) {
  .available-badge {
    font-size: 0.88rem;
    padding: 0.32em 0.7em;
    gap: 0.25em;
    margin-bottom: 0.5em;
  }
  .available-badge i {
    font-size: 0.95em;
  }
}


.pets-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 0 1rem 2rem 1rem;
}
.pet-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    width: 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}
.pet-card:hover {
    box-shadow: 0 8px 24px rgba(45,156,144,0.13);
}
.pet-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e2e8f0;
}
.pet-info {
    padding: 1.2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.pet-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
    color: #f4a261;
}
.pet-type {
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
    margin-left: 0.5rem;
}
.pet-breed {
    font-family: 'Nunito', 'Poppins', Arial, sans-serif;
    font-size: 1.5rem;
    color: #22323b;
    margin: 0.2rem 0 0.5rem 0;
    letter-spacing: 0.5px;
    text-align: left;
}
.pet-details {
    font-size: 0.98rem;
    color: #6b7280;
    margin-bottom: 0.1rem;
}

.pet-health {
  font-size: 0.95rem;
  color: #6b7280;
  font-weight: 500;
  text-align: left;
}
.health-green { color: #059669; font-weight: 700; }
.health-yellow { color: #eab308; font-weight: 700; }
.health-red { color: #dc2626; font-weight: 700; }
.vacc-green { color: #059669; font-weight: 700; }
.vacc-yellow { color: #eab308; font-weight: 700; }
.pet-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #43a047;
    margin: 0 0 0.2rem 0;
}
.pet-description {
    font-size: 1rem;
    color: #444;
    margin: 0 0 0.5rem 0;
    min-height: 1.2em;
}
@media (max-width: 700px) {
    .pets-container {
        flex-direction: column;
        align-items: center;
    }
    .pet-card {
        width: 95vw;
        max-width: 370px;
    }
}

.loading-bounce {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2em 0;
  font-size: 1.1em;
  color: #2a9d8f;
}
.loading-bounce span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 3px;
  background: #2a9d8f;
  border-radius: 50%;
  animation: bounce 1.2s infinite both;
}
.loading-bounce span:nth-child(1) { animation-delay: 0s; }
.loading-bounce span:nth-child(2) { animation-delay: 0.2s; }
.loading-bounce span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.7); }
  40% { transform: scale(1.2); }
}
.loading-bounce div {
  margin-top: 0.7em;
  font-weight: 500;
}






