/* ========================================
   Shop Page - Matching How It Works Page Style
   ======================================== */

/* BeeQR Brand Colors */
:root {
  --beeqr-yellow: #FFC107;
  --beeqr-dark-grey: #333333;
  --beeqr-yellow-light: #FFD54F;
  --beeqr-yellow-dark: #FFA000;
}

/* Shop Page Container */
.shop-page {
  background: #ffffff;
}

/* Hero Section */
.shop-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 40px 0 30px;
  border-bottom: 1px solid #e9ecef;
}

.shop-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--beeqr-dark-grey);
  margin-bottom: 1rem;
}

.shop-hero-subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  color: #6c757d;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 1rem;
}

.shop-hero-description {
  font-size: 1.125rem;
  font-weight: 400;
  color: #6c757d;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

.category-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Categories Section */
.shop-categories {
  background: #ffffff;
  padding: 80px 0;
}

.category-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.category-card:hover {
  border-color: var(--beeqr-yellow);
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.2);
}

@media (min-width: 992px) {
  .category-card-link:hover,
  .category-card-link:focus,
  .category-card-link:hover *,
  .category-card-link:focus * {
    text-decoration: none;
  }
}

.category-card .card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--beeqr-dark-grey);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.category-card .card-img-top {
  margin-bottom: 1rem;
}

.category-card__image-container {
  width: 260px;
  height: 140px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card__image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 16px;
  display: block;
}

.category-card__images--placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  border: 1px dashed #ced4da;
  border-radius: 12px;
  color: #adb5bd;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.category-card .card-text {
  font-size: 1rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.category-card .btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Popup styles matching existing */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.popup-overlay.hidden {
  display: none;
  opacity: 0;
}

.popup-box {
  background: #ffffff;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--beeqr-yellow);
  color: var(--beeqr-dark-grey);
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: var(--beeqr-yellow-dark);
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .shop-hero-title {
    font-size: 2.5rem;
  }

  .shop-hero-subtitle,
  .shop-hero-description {
    font-size: 1.125rem;
  }

  .category-card {
    padding: 1.75rem;
  }

  .shop-categories {
    padding: 60px 0;
  }
}

@media (max-width: 767.98px) {
  .shop-hero {
    padding: 60px 0 40px;
  }

  .shop-hero-title {
    font-size: 2rem;
  }

  .shop-hero-subtitle,
  .shop-hero-description {
    font-size: 1rem;
  }

  .category-card {
    padding: 1.5rem;
  }

  .category-card .card-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .shop-hero-title {
    font-size: 1.75rem;
  }

  .category-card .card-img-top {
    max-height: 80px !important;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.category-card:focus {
  outline: 2px solid var(--beeqr-yellow);
  outline-offset: 4px;
}
