/* =============================================
   PETSHOP - stylesShop.css
   Shop page specific styles
   ============================================= */

/* SHOP HERO */
.shop-hero {
  background: linear-gradient(135deg, #fff8f4, #fff3e0);
  padding: 6rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.shop-hero-paws {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 2rem;
  opacity: 0.1;
  margin-top: 1rem;
}

/* PROMO STRIP */
.promo-strip {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  overflow: hidden;
  padding: 0.75rem 0;
}

.promo-strip-inner {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  width: max-content;
}

.promo-strip-inner span {
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* SHOP LAYOUT */
.shop-section { padding: 3rem 2rem 5rem; background: var(--gray-light); }

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* SIDEBAR */
.shop-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-widget {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.widget-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gray-light);
}

.cat-filter-list { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }

.cat-filter-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-dark);
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cat-filter-btn:hover, .cat-filter-btn.active {
  background: rgba(255,145,77,0.1);
  color: var(--orange);
}

.cat-filter-btn span {
  background: var(--gray-light);
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-light);
}

.cat-filter-btn.active span {
  background: rgba(255,145,77,0.2);
  color: var(--orange);
}

.species-btns { display: flex; flex-direction: column; gap: 0.5rem; }

.species-btn {
  background: var(--gray-light);
  border: 2px solid transparent;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.species-btn.active, .species-btn:hover {
  border-color: var(--orange);
  background: rgba(255,145,77,0.08);
  color: var(--orange);
}

.range-input {
  width: 100%;
  accent-color: var(--orange);
  margin-bottom: 0.5rem;
}

.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-mid);
}

.rating-filters { display: flex; flex-direction: column; gap: 0.5rem; }

.rating-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
}

.rating-filter input { accent-color: var(--orange); }

.sidebar-promo {
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: white;
}

.sidebar-promo span { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.sidebar-promo h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.35rem; }
.sidebar-promo p { font-size: 0.85rem; opacity: 0.9; line-height: 1.5; }
.sidebar-promo strong { background: rgba(255,255,255,0.25); padding: 0.1rem 0.4rem; border-radius: 6px; }

/* PRODUCTS AREA */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.products-count { font-weight: 700; color: var(--text-mid); font-size: 0.9rem; }

.toolbar-right { display: flex; align-items: center; gap: 0.75rem; }

.sort-select {
  border: 2px solid var(--gray);
  border-radius: 10px;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dark);
  background: white;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.sort-select:focus { border-color: var(--orange); }

.view-toggle { display: flex; gap: 4px; }

.view-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 2px solid var(--gray);
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}

.view-btn.active, .view-btn:hover { border-color: var(--orange); background: rgba(255,145,77,0.1); }

/* Products Grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.shop-grid.list-view {
  grid-template-columns: 1fr;
}

.shop-grid.list-view .product-card-shop {
  flex-direction: row;
}

.shop-grid.list-view .product-img-shop {
  width: 200px;
  height: 160px;
  flex-shrink: 0;
}

.product-card-shop {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}

.product-card-shop:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,145,77,0.2);
}

.product-img-shop {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--gray-light);
}

.product-img-shop img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card-shop:hover .product-img-shop img { transform: scale(1.07); }

.product-img-shop .badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 1;
}

.product-overlay-shop {
  position: absolute;
  inset: 0;
  background: rgba(255,145,77,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.product-card-shop:hover .product-overlay-shop { opacity: 1; }

.overlay-quick-view {
  background: white;
  color: var(--orange);
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-body);
}

.wishlist-btn {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  background: white;
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: var(--transition);
}

.wishlist-btn.loved { background: #ff4444; color: white; }
.wishlist-btn.loved i { display: none; }
.wishlist-btn.loved::after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f004";
  display: inline;
}
.wishlist-btn:hover { transform: scale(1.1); }

.product-body-shop { padding: 1rem; flex: 1; display: flex; flex-direction: column; }

.product-meta-shop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.product-cat-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-rating-shop { display: flex; align-items: center; gap: 4px; }
.product-rating-shop .stars { font-size: 0.8rem; }
.review-count-shop { font-size: 0.75rem; color: var(--text-light); }

.product-title-shop {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  flex: 1;
}

.product-footer-shop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.product-pricing { display: flex; flex-direction: column; }
.old-price { font-size: 0.78rem; color: var(--text-light); text-decoration: line-through; }
.current-price { font-size: 1.15rem; font-weight: 900; color: var(--orange); }

.add-to-cart-shop {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  border: none;
  padding: 0.55rem 0.9rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(255,145,77,0.3);
}

.add-to-cart-shop:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,145,77,0.45); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.page-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 2px solid var(--gray);
  background: white;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.page-btn.active, .page-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

/* No products */
.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-light);
}
.no-products span { font-size: 3rem; display: block; margin-bottom: 1rem; }

/* RESPONSIVE */
@media (max-width: 1200px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-widget { flex: 1; min-width: 220px; }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-toolbar { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}

@media (max-width: 480px) {
  .shop-grid { grid-template-columns: 1fr; }
  .shop-sidebar { flex-direction: column; }
}

/* ── Extended catalog adjustments ──────────────────────────────────────── */

/* List-view: ensure body fills remaining width */
.shop-grid.list-view .product-body-shop {
  padding: 1.25rem;
}

/* List-view: keep title readable and footer aligned */
.shop-grid.list-view .product-title-shop {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Smoother animation stagger for larger catalogs */
.product-card-shop.animate-on-scroll {
  transition-delay: 0s;
}

/* Subtle entrance animation reset on filter change */
.product-card-shop {
  animation: cardIn 0.35s ease both;
}

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

/* Ensure grid never overflows on very large screen */
@media (min-width: 1400px) {
  .shop-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tighten up card image height slightly on smaller laptops */
@media (max-width: 1280px) and (min-width: 993px) {
  .product-img-shop { height: 185px; }
}
