.wcgcp-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.wcgcp-header {
  margin-bottom: 12px;
}

.wcgcp-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.wcgcp-subtitle {
  font-size: 13px;
  opacity: 0.7;
}

.wcgcp-categories-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 2px 10px;
  scrollbar-width: none;
}

.wcgcp-categories-scroll::-webkit-scrollbar {
  display: none;
}

.wcgcp-cat-item {
  border: 1px solid #eee;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  min-width: 85px;
  cursor: pointer;
  text-align: center;
  transition: 0.2s ease;
  color: #111111 !important;
}

.wcgcp-cat-item.active {
  border-color: #111;
  transform: translateY(-1px);
}

.wcgcp-cat-img {
  width: 54px;
  height: 54px;
  margin: 0 auto 6px;
  border-radius: 14px;
  overflow: hidden;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wcgcp-cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wcgcp-cat-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.wcgcp-products-area {
  margin-top: 12px;
}

.wcgcp-products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.wcgcp-products-title {
  font-size: 16px;
  font-weight: 800;
}

.wcgcp-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 900px) {
  .wcgcp-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.wcgcp-product-card {
  border: 1px solid #eee;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  transition: 0.2s ease;
  position: relative;
}

.wcgcp-product-card.wcgcp-updating {
  opacity: 0.6;
  pointer-events: none;
}

.wcgcp-product-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: #f7f7f7;
}

.wcgcp-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wcgcp-product-info {
  margin-top: 8px;
}

.wcgcp-product-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: #111;
  line-height: 1.2;
  min-height: 32px;
}

.wcgcp-product-price {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 800;
}

.wcgcp-qty-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.wcgcp-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.wcgcp-qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wcgcp-qty {
  min-width: 18px;
  text-align: center;
  font-weight: 800;
}

.wcgcp-loading,
.wcgcp-empty {
  padding: 16px;
  opacity: 0.7;
  font-size: 14px;
}
.wcgcp-selected-category-name{
  font-size: 20px;
  font-weight: 700;
  margin: 15px 0;
}
.wcgcp-products-topbar{
  display:flex;
  align-items:center;
  gap:12px;
  margin: 10px 0 15px;
}

.wcgcp-back-btn{
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
}

.wcgcp-selected-category-name{
  font-size:20px;
  font-weight:700;
}

.wcgcp-category-count{
  font-size:14px;
  opacity:0.7;
}

@media (max-width: 769px) {

  /* Category card */
  /* ===============================
   WCGCP Category – Compact Rounded UI
   =============================== */

.wcgcp-cat-item {
  min-width: 76px !important;
  padding: 4px !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08) !important;
  margin: 0 !important;
}

/* Image container */
.wcgcp-cat-img {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  margin: 0 auto 4px !important;
}

/* Image */
.wcgcp-cat-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

/* Category name */
.wcgcp-cat-name {
  font-size: 10.5px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.wcgcp-subtitle{
    display: none !important;
}
}
@media (max-width: 769px) {

  .wcgcp-cat-item {
    min-width: 100px !important;
    padding: 14px 12px !important;
    border-radius: 22px !important;

    background: linear-gradient(180deg, #ffffff 0%, #f5f6f8 100%) !important;

    border: 1px solid rgba(0,0,0,0.06) !important;

    box-shadow:
      0 14px 30px rgba(0, 0, 0, 0.10),
      0 6px 14px rgba(0, 0, 0, 0.06),
      inset 0 1px 0 rgba(255,255,255,0.95) !important;

    margin: 6px !important;
    position: relative !important;
    overflow: hidden !important;

    transition:
      transform 0.18s cubic-bezier(.4,0,.2,1),
      box-shadow 0.18s cubic-bezier(.4,0,.2,1) !important;
  }

  /* Premium shine sweep */
  .wcgcp-cat-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      120deg,
      transparent 25%,
      rgba(255,255,255,0.6),
      transparent 75%
    );
    opacity: 0.3 !important;
    pointer-events: none !important;
  }

  /* Press feedback */
  .wcgcp-cat-item:active {
    transform: translateY(2px) scale(0.96) !important;
    box-shadow:
      0 8px 18px rgba(0, 0, 0, 0.14),
      inset 0 3px 6px rgba(0,0,0,0.10) !important;
  }

  .wcgcp-cat-img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    margin: 0 auto 10px !important;
    padding: 3px !important;

    background: linear-gradient(135deg, #ffffff, #e6e7ea) !important;

    border: 1px solid rgba(0,0,0,0.06) !important;

    box-shadow:
      0 8px 18px rgba(0,0,0,0.18),
      inset 0 1px 0 rgba(255,255,255,0.9) !important;

    overflow: hidden !important;
  }

  .wcgcp-cat-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
  }

  .wcgcp-cat-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    color: #111827 !important;
    letter-spacing: 0.3px !important;
  }

  .wcgcp-subtitle {
    display: none !important;
  }
}
@media (max-width: 760px) {

  .wcgcp-header {
    margin-bottom: 4px !important;
    padding: 0 !important;
  }

  .wcgcp-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    margin: 0 !important;
  }

  .wcgcp-subtitle {
    font-size: 11px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    opacity: 0.6 !important;
  }
}

.wcgcp-end{
  text-align: center;
  padding: 14px 6px;
  font-size: 13px;
  opacity: .7;
}
