/* ================================
   PRODUCTS PAGE STYLES
   ================================ */

.products-hero {
  padding-top: 200px;
  padding-bottom: 20px;
}

.products-section {
  position: relative;
  padding: 40px 0 80px 0;
  background-attachment: fixed;
  background-size: 200% 200%;
}

/* Container positioning */
.products-section .container {
  position: relative;
}

/* ======= FILTER TABS ======= */
.tabs {
  margin-bottom: 32px;
  text-align: center;
}

.tabs button {
  padding: 10px 22px;
  margin: 0 6px;
  cursor: pointer;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #0b1d26;
  box-shadow: 0 2px 10px rgba(0, 114, 255, 0.15);
  transition: all 0.25s ease;
}

.tabs button:hover {
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  color: #fff;
  transform: translateY(-2px);
}

.tabs button.active {
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 114, 255, 0.35);
}

/* ======= GRID LAYOUT ======= */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* ======= CARD STYLE ======= */
.product-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
}

.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 42px rgba(0, 114, 255, 0.35),
              0 8px 22px rgba(0, 0, 0, 0.4);
}

/* ======= CARD MEDIA ======= */
.product-media {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.06);
}

/* ======= CARD CONTENT ======= */
.product-content {
  padding: 16px 18px 5px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.product-title {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: #ffffff;
  font-weight: 700;
}

.product-desc {
  margin: 0 0 12px 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.7;
  flex-grow: 1;
}

.product-price {
  font-size: 24px;
  font-weight: 700;
  color: #5ddad1;
  margin-bottom: 16px;
  text-align: center;
}

/* ======= ACTION BUTTONS ======= */
.product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

/* .btn-primary {
  flex: 1;
  padding: 10px 16px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 114, 255, 0.4);
} */

.btn-secondary {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ======= CATEGORY PILLS ======= */
.wwg-meta {
  margin: 0px 17px 10px 0px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.wwg-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: linear-gradient(
    90deg,
    rgba(52, 245, 155, 0.08),
    rgba(52, 245, 155, 0.02)
  );
  color: #5ddad1;
  border: 1px solid rgba(52, 245, 155, 0.06);
}

/* ======= MOBILE OPTIMIZATION ======= */
@media (max-width: 767px) {
  .tabs button {
    margin-bottom: 10px;
    font-size: 14px;
    padding: 8px 16px;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

/* ======= ANIMATIONS ======= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeInUp 0.6s ease both;
}

/* Smooth fade when filtered */
.product-card {
  will-change: transform, opacity;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ======= ACCESSIBILITY ======= */
.btn-primary:focus,
.btn-secondary:focus,
.tabs button:focus {
  outline: 2px solid rgba(93, 218, 209, 0.5);
  outline-offset: 2px;
}

/* ======= LOADING STATES ======= */
.product-card.loading {
  opacity: 0.6;
  pointer-events: none;
}

.product-card.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}
