:root {
  --idc-blue: #0b57d0;
  --idc-blue-hover: #0842a0;
  --idc-blue-soft: #e8f0fe;
  --idc-ink: #1f1f1f;
  --idc-muted: #5f6368;
  --idc-border: #dadce0;
  --idc-surface: #f8fafd;
  --idc-green: #188038;
  --idc-red: #d93025;
}
/* Region / product-group segmented filter (Google Cloud console style) */
.cart-filter { margin: 18px 0 4px; padding: 16px 18px; background: #fff; border: 1px solid var(--idc-border); border-radius: 8px; }
.cart-filter-row { display: flex; align-items: flex-start; gap: 16px; padding: 10px 0; }
.cart-filter-row + .cart-filter-row { border-top: 1px solid #eef0f2; }
.cart-filter-label { flex: 0 0 auto; min-width: 72px; padding-top: 7px; color: var(--idc-muted); font-size: 13px; font-weight: 600; }
.cart-filter-options { min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; overflow-x: auto; }
.cart-filter-option { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 14px; color: #3c4043; background: #fff; border: 1px solid var(--idc-border); border-radius: 999px; font-size: 14px; white-space: nowrap; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.cart-filter-option:hover { color: var(--idc-blue); border-color: #a8c7fa; background: var(--idc-surface); text-decoration: none; }
.cart-filter-option.active { color: #fff; background: var(--idc-blue); border-color: var(--idc-blue); font-weight: 600; }

/* Product list */
.idc-products { margin-top: 18px; }
.idc-product-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.idc-product-card { position: relative; min-width: 0; display: flex; flex-direction: column; min-height: 330px; padding: 24px; background: #fff; border: 1px solid var(--idc-border); border-radius: 8px; transition: border-color .18s ease, box-shadow .18s ease; }
.idc-product-card:hover { border-color: #a8c7fa; box-shadow: 0 4px 14px rgba(60,64,67,.10); }
.idc-product-name { margin: 0; color: var(--idc-ink); font-size: 19px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.idc-product-description { min-height: 70px; margin: 12px 0 18px; color: var(--idc-muted); font-size: 14px; line-height: 1.65; overflow: hidden; }
.idc-product-stock { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px; color: var(--idc-green); font-size: 13px; }
.idc-product-stock::before { content: ""; width: 7px; height: 7px; background: var(--idc-green); border-radius: 50%; }
.idc-product-stock.sold-out { color: var(--idc-red); }
.idc-product-stock.sold-out::before { background: var(--idc-red); }
.idc-price-wrap { margin-top: auto; padding-top: 18px; border-top: 1px solid #eef0f2; }
.idc-price-label { color: var(--idc-muted); font-size: 12px; }
.idc-price { margin-top: 3px; color: var(--idc-ink); font-size: 26px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.idc-price-cycle { color: var(--idc-muted); font-size: 13px; font-weight: 400; }
.idc-original { min-height: 20px; margin-top: 4px; color: #80868b; font-size: 12px; }
.idc-trial { margin-top: 6px; color: #b06000; font-size: 12px; }
.idc-buy { display: flex; align-items: center; justify-content: center; min-height: 42px; margin-top: 18px; padding: 8px 16px; color: #fff !important; background: var(--idc-blue); border: 1px solid var(--idc-blue); border-radius: 4px; font-weight: 600; transition: background .16s ease, border-color .16s ease; }
.idc-buy:hover { background: var(--idc-blue-hover); border-color: var(--idc-blue-hover); text-decoration: none; }
.idc-buy.disabled { color: #80868b !important; background: #f1f3f4; border-color: var(--idc-border); cursor: not-allowed; }
.idc-product-empty { padding: 56px 24px; color: var(--idc-muted); background: #fff; border: 1px dashed #bdc1c6; border-radius: 8px; text-align: center; }
.idc-pagination { display: flex; justify-content: center; margin-top: 28px; }
.idc-pagination .pagination { margin: 0; }
.idc-pagination .page-link, .idc-pagination a { color: var(--idc-blue); border-color: var(--idc-border); }
.idc-pagination .active .page-link, .idc-pagination .active a { color: #fff; background: var(--idc-blue); border-color: var(--idc-blue); }
@media (max-width: 1100px) { .idc-product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .idc-product-list { grid-template-columns: 1fr; }
  .idc-product-card { min-height: 0; }
  .idc-product-description { min-height: 0; }
  .cart-filter-row { flex-direction: column; gap: 8px; }
  .cart-filter-options { flex-wrap: nowrap; padding-bottom: 4px; }
}