
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================
   Common Header & Search Styles
   ============================================ */
.store-discovery-header {
  text-align: center;
  margin-bottom: 50px;
  /*background-image: url('./source/bg-search.png');*/
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  background-color: #E8F5E9;
  padding: 30px 0 30px;
  position: relative;
}

.store-discovery-header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #2E456A;
  margin-bottom: 30px;
}

.search-bar-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-bar {
  width: 100%;
  padding: 15px 20px 15px 50px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid orange;
}

.search-bar:focus {
  outline: none;
  box-shadow: 0 6px 20px rgba(46, 69, 106, 0.2);
}

.search-icon {
  position: absolute;
  left: 25px;
  top: 52%;
  transform: translateY(-50%);
  color: #5F5F5F;
  font-size: 1.2rem;
}

/* ============================================
   Pagination Styles (Common)
   ============================================ */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 50px 0px;
  gap: 10px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #5F5F5F;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: white;
  border: 1px solid #e0e0e0;
}

.pagination-link i {
  font-size: 1rem;
}

.pagination-link:hover {
  background: #f5f5f5;
  color: #2E456A;
  border-color: #2E456A;
}

.pagination-link.active {
  background: #FF6B35;
  color: white;
  border-color: #FF6B35;
}

.pagination-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-ellipsis {
  color: #5F5F5F;
  padding: 0 5px;
  font-weight: 500;
}

/* ============================================
   Store Card Styles (prebuy.html)
   ============================================ */
.store-card {
  background: white;
  border-radius: 15px;
  overflow: visible;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.store-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.store-card:hover .store-image {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15), 0 6px 12px rgba(0, 0, 0, 0.1);
}

.store-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: visible;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.store-info {
  padding:0px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.store-name {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  color: #008080;
  margin: 10px 0px;
}

.store-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #696969;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  margin-top: 5px;
}

.store-location i {
  color: #dc3545;
  font-size: 21px;
}

/* ============================================
   Brand Card Styles (explore-brand.html)
   ============================================ */
.explore-brand {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.explore-brand:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.explore-brand .img-container {
  width: 100%;
  height: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.explore-brand img {
  width: 80%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.brand-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #333;
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  flex-shrink: 0;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brands-grid {
  padding: 40px 0;
}

/* ============================================
   Responsive Styles
   ============================================ */

/* Large Desktop (1200px and below) */
@media (max-width: 1200px) {
  .store-location {
    padding: 0px 30px 0px 0px;
  }
}

/* Desktop (992px and below) */
@media (max-width: 992px) {
  .store-discovery-header h1 {
    font-size: 20px;
  }

  .store-image-container {
    height: 180px;
  }

  .store-location {
    padding: 0px 15px 0px 0px;
    font-size: 14px;
  }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
  .store-discovery-header h1 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .search-bar-container {
    max-width: 100%;
    padding: 0 15px;
  }

  .search-bar {
    width: 90%;
    padding: 12px 40px;
    border: none;
    border-radius: 50px;
    font-size: 10px;
    border: 1px solid orange;
  }

  .search-icon {
    left: 65px;
  }

  .store-image-container {
    height: 160px;
  }

  .pagination-link {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .pagination {
    gap: 5px;
  }

  .pagination-link i {
    font-size: 0.9rem;
  }

  .explore-brand {
    padding: 15px;
  }

  .explore-brand .img-container {
    height: 60%;
  }

  .brand-title {
    font-size: 12px;
  }

  .brands-grid {
    padding: 30px 15px;
  }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
  .store-discovery-header h1 {
    font-size: 12px;
  }

  .search-bar {
    width: 94%;
    padding: 6px 40px;
    border: none;
    border-radius: 50px;
    font-size: 10px;
    border: 1px solid orange;
  }

  .search-icon {
    left: 35px;
  }

  .pagination-link {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .pagination-link i {
    font-size: 0.85rem;
  }

  .pagination-ellipsis {
    padding: 0 3px;
  }

  .store-location {
    padding: 0px 15px 0px 0px;
    font-size: 12px;
  }

  .explore-brand {
    padding: 12px;
  }

  .explore-brand .img-container {
    height: 60%;
  }

  .brand-title {
    font-size: 11px;
  }

  .brands-grid {
    padding: 20px 10px;
  }
}

