/* ============================================
   SHOP PAGE SPECIFIC STYLES
   ============================================ */

.shop-hero {
  color: var(--bs-light-bg-subtle);
  padding: 1rem 1rem;
  text-align: center;
}

.curved {
  position: relative;
  border-bottom-left-radius: 51% 3%;
  border-bottom-right-radius: 50% 3%;
  background: var(--bs-secondary);
  background: linear-gradient(140deg, var(--bs-primary) 11%, var(--bs-secondary) 47%, var(--bs-primary) 100%);
}

.shop-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--bs-light);
  text-transform: capitalize;
}

.shop-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  color: var(--bs-light);
}

.shop-filters {
  padding: 0.5rem 0;
  background: var(--bs-danger);
  border-bottom: 1px solid var(--bs-danger-text-emphasis);
  margin-bottom: 20px;
}

.filter-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.filter-btn {
  padding: 0.7rem 0.5rem;
  border-color: var(--bs-focus-ring-color);
  background: var(--bs-secondary-bg-subtle);
  color: var(--bs-secondary-text-emphasis);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--bs-focus-ring-color);
  width: 120px;
}

.filter-btn:hover {
  border-color: var(--bs-focus-ring-color);
  color: var(--bs-secondary);
  transform: translateY(-2px);
  background: var(--bs-info);
}

.filter-btn.active {
  background: var(--bs-info);
  color: var(--bs-secondary);
  border-color: var(--bs-focus-ring-color);
  transform: none;
}

.shop-products {
  min-height: 60vh;
  /*background: var(--bs-light-bg-subtle);*/
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  padding: 1.5rem 0;
}

@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* ── Card ── */

.shop-product-card {
  background: var(--bs-light-bg-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.shop-product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  /*transform: translateY(-3px);*/
}

/* ── Square image ── */

.shop-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bs-secondary-bg);
}

.shop-card-img-wrap .shop-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* ── Badges ── */

.shop-badge-row {
  position: absolute;
  bottom: 1px;
  right: 1px;
  display: flex;
  z-index: 2;
}

.shop-badge-rows {
  text-align: end;
  justify-content: end;
  display: flex;
  height: 1px;
  margin-bottom: 5px;
  align-content: center;
  align-items: center;
  margin-top: 16px;
  right: 6px;
  position: absolute;
  width: 94%;
}

/* ── Footer row ── */

.shop-card-footer {
  display: flex;
  flex-direction: column;
  background: var(--bs-light-bg-subtle);
  flex-grow: 1;
}

.shop-card-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
  cursor: pointer;
}

.shop-card-footers {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  align-content: center!important;
  padding: 2px 10px 10px 10px;
}

.bundle-card-footers {
  display: block;
  justify-content: space-between;
  margin-top: auto;
  text-align: right;
  padding: 2px 10px 10px 10px;
}

.shop-footer-badge-row {
  text-align: end;
  justify-content: end;
  display: flex;
  height: 1px;
  margin-bottom: 5px;
  align-content: start;
  align-items: end;
  margin-top: 30px;
  right: 4px;
  position: absolute;
}

.NC-Badge {
  font-size: 9px;
  padding: 6.5px 2px;
  color: var(--bs-white);
  border-radius: 50%;
  text-transform: lowercase;
  width: 28px;
  z-index: 3;
  height: 28px;
  text-align: center;
  background: radial-gradient(circle,var(--bs-primary) 25%, var(--bs-secondary) 74%);
}

.NB-Badge {
  font-size: 9px;
  padding: 6.5px 2px;
  color: var(--bs-light-bg-subtle);
  border-radius: 20px;
  text-transform: lowercase;
  width: 40px;
  z-index: 3;
  height: 28px;
  text-align: center;
  background: radial-gradient(circle,var(--bs-primary) 25%, var(--bs-secondary) 74%);
}

.shop-product-name {
  font-size: 13px!important;
  color: var(--bs-highlight-color);
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
  margin: 0;
  font-family: 'Anta';
  text-align: start;
  padding: 5px;
}

.shop-product-price {
  font-size: 20px!important;
  color: var(--bs-primary);
  margin-left: 10px;
  align-self: center;
  font-family: 'Anta';
  font-weight: 900;
}

.bundle-product-price {
  font-size: 29px !important;
  color: var(--bs-secondary);
  margin: 0;
  align-self: center;
  font-weight: 999;
}

/* ── Cart button ── */

.shop-card-cart-btn {
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
  color: var(--bs-primary-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.5s, color 0.5s, transform 1s;
  align-self: center;
  background: radial-gradient(circle,var(--bs-primary) 25%, var(--bs-secondary) 74%);
  margin-right: 10px;
}

.shop-card-cart-btn:hover {
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-secondary);
  transform: scale(1.3);
}

.shop-card-cart-btn.in-cart {
  background: var(--bs-success);
  color: var(--bs-success-bg-subtle);
}

.shop-card-cart-btn.in-cart:hover {
  background: var(--bs-success-bg-subtle);
  color: var(--bs-success);
}

.shop-card-cart-btn svg {
  font-size: 25px;
}

@media (max-width: 768px) {
  .shop-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .filter-row {
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .shop-card-bottom {
    position: relative;
    z-index: 5;
  }
}

@media (max-width: 480px) {
  .shop-product-name {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .shop-product-price {
    font-size: 1rem;
  }
}

.filter-dropdown {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--bs-border-color, #ccc);
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-secondary-text-emphasis);
  font-size: 0.9rem;
  cursor: pointer;
  min-width: 230px;
  outline: none;
  transition: border-color 0.2s;
}

.filter-dropdown:focus {
  border-color: var(--bs-primary);
}

.filter-subcat-btn {
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--bs-border-color, #ccc);
  background: transparent;
  cursor: pointer;
  transition: all 0.18s;
  color: var(--bs-body-color);
  white-space: nowrap;
}

.filter-subcat-btn:hover {
  background: var(--bs-secondary-bg);
}

.filter-subcat-btn.active {
  background: var(--bs-primary);
  color: #fff;
  border-color: var(--bs-primary);
}

.filter-subcat-btn .sub-count {
  font-size: 0.72rem;
  opacity: 0.7;
  margin-left: 3px;
}

/* ============================================
   PRODUCT INFO OVERLAY
   ============================================ */

/* The overlay sits inside .shop-card-img-wrap and covers the whole card */

.shop-card-overlay {
  position: absolute;
  inset: 0;
  bottom: -60px;
  background: rgba(15, 15, 20, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.shop-overlay-body li {
  font-size: 0.7rem;
  margin-bottom: 12px;
}

.shop-overlay-body ul {
  font-size: 0.7rem;
  text-align: start;
  color: var(--bs-light-bg-subtle);
  padding: 5px 10px;
  font-family: 'Lato';
}

.shop-card-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Inner content box slides up */

.shop-overlay-body {
  width: 100%;
  padding: 10px 10px;
  color: #fff;
  transform: translateY(12px);
  transition: transform 0.25s ease;
  position: relative;
  max-height: 70%;
  overflow-y: auto;
}

.shop-card-overlay.open .shop-overlay-body {
  transform: translateY(0);
}

.shop-overlay-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 10px 0 0 6px;
  color: var(--bs-light);
  text-transform: capitalize;
  /*padding-right: 24px;*/
  text-align: start;
  font-family: 'Lato';
}

.shop-overlay-body p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  text-align: start;
  padding: 0 12px;
  line-height: 1;
}

.shop-overlay-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.shop-overlay-specs li {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  padding: 2px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.shop-overlay-specs li:last-child {
  border-bottom: none;
}

/* Close ✕ button */

.shop-overlay-close {
  position: sticky;
  top: 2px;
  right: 0px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 100%;
  height: 26px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.shop-overlay-close:hover {
  background: rgba(255,255,255,0.3);
}

/* "View Product" button */

.shop-overlay-goto {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 14px;
  background: var(--bs-primary, #0d6efd);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.shop-overlay-goto:hover {
  background: var(--bs-primary-hover, var(--bs-secondary-text-emphasis));
  transform: translateX(2px);
}

/* Footer info area — show a subtle hint that it's clickable */

.shop-card-info {
  cursor: pointer;
}

.shop-card-info:hover .shop-product-name {
  color: var(--bs-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   PAGINATION
   ============================================ */

#shopPagination {
  padding: 2rem 0 2.5rem;
}

.pg-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pg-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--bs-border-color, #dee2e6);
  background: var(--bs-light-bg-subtle);
  color: var(--bs-secondary-text-emphasis);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.15s;
}

.pg-btn:hover:not(:disabled):not(.pg-active) {
  background: var(--bs-secondary-bg);
  border-color: var(--bs-primary);
  color: var(--bs-primary);
  transform: translateY(-1px);
}

.pg-btn.pg-active {
  color: #fff;
  border-color: var(--bs-primary);
  cursor: default;
  box-shadow: 0 3px 10px rgba(var(--bs-primary-rgb, 13,110,253), 0.35);
  background: radial-gradient(circle,var(--bs-primary) 25%, var(--bs-secondary) 74%);
}

.pg-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pg-btn.pg-arrow {
  color: var(--bs-secondary-text-emphasis);
}

.pg-ellipsis {
  min-width: 32px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-secondary-color);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  user-select: none;
}

@media (max-width: 480px) {
  .pg-btn {
    min-width: 34px;
    height: 34px;
    font-size: 0.82rem;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .pg-wrap {
    gap: 4px;
  }
}

