/* Shop catalog (/shop): equal-height cards, actions, pagination aligned with Greeny theme */

.shop-catalog-main .row.content-reverse {
  align-items: flex-start;
}

/* Equal-height columns */
.shop-catalog-grid > [class*="col"] {
  display: flex;
  align-items: stretch;
}

.shop-product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin-bottom: 0;
}

.shop-product-card .product-media {
  flex-shrink: 0;
}

.shop-product-card .product-image {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--chalk, #f5f6f7);
}

.shop-product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.shop-product-card .product-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  text-align: center;
}

.shop-product-card .product-name {
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-product-card .product-price {
  min-height: 2.5rem;
  margin-bottom: 10px;
}

.shop-product-card .shop-card-actions {
  margin-top: auto;
  padding-top: 8px;
}

.shop-product-card .btn-add-cart {
  width: 100%;
  padding: 10px 14px;
  font-weight: 600;
  border-radius: 8px;
}

.shop-view-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary, #008bcc);
  text-decoration: none;
  transition: color 0.2s ease;
}

.shop-view-more:hover {
  color: var(--heading, #39404a);
}

.shop-view-more i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.shop-view-more:hover i {
  transform: translateX(3px);
}

/* Pagination: Bootstrap 5 + Greeny circular buttons */
.shop-pagination-wrap {
  width: 100%;
  padding: 20px 0 8px;
  border-top: 1px solid var(--border, #e8e8e8);
  margin-top: 8px;
}

.shop-pagination-wrap nav {
  width: 100%;
}

.shop-pagination-wrap .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-pagination-wrap .page-item {
  margin: 0;
}

.shop-pagination-wrap .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  line-height: 1;
  border-radius: 50% !important;
  border: none;
  font-weight: 500;
  color: var(--text, #5f5f5f);
  background: var(--white, #fff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.shop-pagination-wrap .page-item.active .page-link {
  color: var(--white, #fff) !important;
  background: var(--primary, #008bcc) !important;
  box-shadow: none;
}

.shop-pagination-wrap .page-item.disabled .page-link {
  opacity: 0.45;
  pointer-events: none;
}

.shop-pagination-wrap .page-link:hover:not(.disabled) {
  color: var(--white, #fff);
  background: var(--primary, #008bcc);
}

.shop-pagination-wrap .pagination-summary {
  width: 100%;
  text-align: center;
  margin-bottom: 14px;
  font-size: 14px;
  color: #666;
}

/* --- Category sidebar (modal-inspired card + accordion) --- */
.shop-categories-panel {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--sf-border, rgba(45, 106, 79, 0.12));
  box-shadow: 0 0.35rem 1.1rem rgba(27, 67, 50, 0.08);
  margin-bottom: 1.25rem;
}

.shop-categories-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(90deg, var(--sf-green-mid, #2d6a4f), var(--sf-green-light, #40916c));
}

.shop-categories-panel__head-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 14px;
}

.shop-categories-panel__body {
  padding: 12px 12px 14px;
  background: linear-gradient(180deg, var(--sf-cream, #f8f9f5) 0%, #fff 48%);
}

.shop-cat-all {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sf-green, #1b4332);
  background: #fff;
  border: 1px solid var(--sf-border, rgba(45, 106, 79, 0.12));
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.shop-cat-all i {
  opacity: 0.85;
  font-size: 15px;
  color: var(--sf-green-mid, #2d6a4f);
}

.shop-cat-all:hover {
  text-decoration: none;
  color: var(--sf-green, #1b4332);
  border-color: rgba(45, 106, 79, 0.22);
  box-shadow: 0 4px 14px rgba(27, 67, 50, 0.1);
  transform: translateY(-1px);
}

.shop-cat-all.is-active {
  border-color: var(--sf-green-mid, #2d6a4f);
  background: linear-gradient(135deg, #fff 0%, var(--sf-accent, #d8f3dc) 100%);
  box-shadow: inset 0 0 0 1px rgba(45, 106, 79, 0.15);
}

.shop-cat-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-cat-group {
  border-radius: 10px;
  background: #fff;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-cat-group--highlight {
  border-color: var(--sf-border, rgba(45, 106, 79, 0.12));
  box-shadow: 0 2px 8px rgba(27, 67, 50, 0.06);
}

.shop-cat-group__row {
  display: flex;
  align-items: stretch;
  min-height: 44px;
}

.shop-cat-group__link {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading, #39404a);
  text-decoration: none;
  line-height: 1.3;
  border-radius: 10px 0 0 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.shop-cat-group__row:not(:has(.shop-cat-toggle)) .shop-cat-group__link {
  border-radius: 10px;
}

.shop-cat-group__link:hover {
  text-decoration: none;
  color: var(--sf-green-mid, #2d6a4f);
  background: rgba(216, 243, 220, 0.35);
}

.shop-cat-group__link.is-active {
  color: var(--sf-green-mid, #2d6a4f);
  background: rgba(216, 243, 220, 0.55);
}

.shop-cat-toggle {
  flex-shrink: 0;
  width: 44px;
  border: none;
  background: transparent;
  color: var(--sf-green-mid, #2d6a4f);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 10px 10px 0;
  transition: background 0.15s ease;
}

.shop-cat-toggle:hover,
.shop-cat-toggle:focus {
  background: rgba(45, 106, 79, 0.08);
  outline: none;
}

.shop-cat-toggle i {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.shop-cat-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* Instant show/hide — not Bootstrap .collapse (avoids BS5 height animation + data-api mismatch) */
.shop-cat-collapse[hidden] {
  display: none !important;
}

.shop-cat-sub {
  padding: 4px 8px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shop-cat-sub__link {
  display: block;
  padding: 8px 10px 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #5a6168;
  text-decoration: none;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.shop-cat-sub__link:hover {
  text-decoration: none;
  color: var(--sf-green-mid, #2d6a4f);
  background: rgba(216, 243, 220, 0.4);
}

.shop-cat-sub__link.is-active {
  color: var(--sf-green, #1b4332);
  font-weight: 600;
  background: rgba(216, 243, 220, 0.65);
  border-left-color: var(--sf-green-mid, #2d6a4f);
}

@media (max-width: 991px) {
  .shop-categories-panel {
    margin-bottom: 1.5rem;
  }
}
