/* ICC Online Shop — additive styles for live Firestore catalogue cards */

.product-grid.shop-grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.product-grid.shop-list-view {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.live-product-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(7, 26, 61, 0.07);
  min-width: 0;
}

.shop-grid-view .live-product-card {
  grid-template-columns: 1fr;
}

.live-product-media {
  position: relative;
  min-height: 150px;
  background: linear-gradient(145deg, #f8fafc, #eef4fb);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.live-product-media img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

.live-product-placeholder {
  font-size: 2.2rem;
  font-weight: 900;
  color: #94a3b8;
}

.live-product-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  background: rgba(7, 26, 61, 0.92);
  color: #fff;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.live-product-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.live-product-section {
  color: #64748b;
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.live-product-title {
  margin: 6px 0 5px;
  font-size: 1rem;
  line-height: 1.35;
  color: #071a3d;
  font-weight: 900;
}

.live-product-description {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.live-product-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 800;
}

.live-product-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 13px;
}

.live-product-price {
  color: #071a3d;
  font-size: 1.08rem;
  font-weight: 950;
}

.live-product-stock {
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 850;
}

.live-product-stock.low { color: #b45309; }
.live-product-stock.out { color: #b91c1c; }

.live-add-button {
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  background: #071a3d;
  color: #fff;
  padding: 0 13px;
  font-weight: 900;
  cursor: pointer;
}

.live-add-button:hover { background: #0f3d85; }
.live-add-button:disabled { opacity: 0.5; cursor: not-allowed; }

.live-empty,
.live-error,
.live-loading {
  grid-column: 1 / -1;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  padding: 28px;
  text-align: center;
  color: #64748b;
  font-weight: 750;
}

.live-error {
  border-color: #fecaca;
  background: #fff7f7;
  color: #b91c1c;
}

.cart-line-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.cart-line-item img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.cart-line-copy { min-width: 0; }
.cart-line-copy strong { display: block; color: #071a3d; }
.cart-line-copy small { color: #64748b; }

.cart-line-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}

.cart-line-controls button,
.cart-remove-button {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  min-width: 30px;
  min-height: 30px;
  font-weight: 900;
  cursor: pointer;
}

.cart-remove-button { color: #b91c1c; }

.live-order-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 13px;
  margin-top: 10px;
  background: #fff;
}

.live-order-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.live-order-card strong { color: #071a3d; }
.live-order-card p { margin: 7px 0 0; color: #64748b; font-size: 0.82rem; line-height: 1.45; }

.live-order-status {
  border-radius: 999px;
  padding: 5px 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .live-product-card { grid-template-columns: 105px minmax(0, 1fr); padding: 10px; }
  .shop-grid-view .live-product-card { grid-template-columns: 1fr; }
  .live-product-media { min-height: 110px; }
  .live-product-bottom { align-items: stretch; flex-direction: column; }
  .live-add-button { width: 100%; }
}


/* ============================================================
   ICC Shop Pack & Pathway Cards — 2026/2027
   ============================================================ */
.live-pack-card {
  border-color: #c7d7ee;
  background:
    linear-gradient(135deg, rgba(7,26,61,.025), transparent 55%),
    #fff;
}

.live-pack-card .live-product-media {
  min-height: 185px;
  background: #071a3d;
}

.live-pack-card .live-product-media img {
  padding: 0;
  max-height: 260px;
  object-fit: cover;
}

.live-pack-card .live-product-badge {
  background: linear-gradient(135deg, #071a3d, #0f4c81);
  box-shadow: 0 6px 18px rgba(7,26,61,.18);
}

.pack-contents {
  margin-top: 12px;
  border: 1px solid #dbe5f4;
  border-radius: 12px;
  background: #f8fbff;
  overflow: hidden;
}

.pack-contents summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  color: #071a3d;
  font-size: .76rem;
  font-weight: 900;
}

.pack-contents summary::-webkit-details-marker { display: none; }

.pack-contents summary::after {
  content: "+";
  float: right;
  font-size: 1rem;
}

.pack-contents[open] summary::after { content: "−"; }

.pack-contents ul {
  list-style: none;
  margin: 0;
  padding: 0 12px 10px;
  border-top: 1px solid #dbe5f4;
}

.pack-contents li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed #dbe5f4;
  color: #475569;
  font-size: .72rem;
  line-height: 1.35;
}

.pack-contents li:last-child { border-bottom: 0; }

.pack-contents li b {
  white-space: nowrap;
  color: #071a3d;
}

.pack-option-tag {
  display: inline-flex;
  margin-left: 5px;
  border-radius: 999px;
  padding: 2px 6px;
  background: #fff7ed;
  color: #9a3412;
  font-size: .58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pack-confirmation-note {
  margin: 0 12px 12px !important;
  padding: 9px 10px;
  border-left: 4px solid #f4c542;
  border-radius: 7px;
  background: #fffaf0;
  color: #7c5b0a !important;
  font-size: .7rem !important;
  font-weight: 700;
}

.pack-price-confirm {
  color: #b45309;
  font-size: .9rem;
  line-height: 1.25;
}

.live-product-price + small,
.pack-price-confirm + small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: .68rem;
  font-weight: 750;
}

@media (max-width: 760px) {
  .live-pack-card .live-product-media { min-height: 125px; }
  .pack-contents li { display: block; }
  .pack-contents li b { display: block; margin-top: 3px; }
}


/* ============================================================
   ICC Shop — Browse by Class
   ============================================================ */
.class-shopper{
  margin:16px 0 2px;
  border:1px solid #dbe5f4;
  border-radius:18px;
  background:
    radial-gradient(circle at top right,rgba(244,197,66,.16),transparent 28%),
    linear-gradient(135deg,#f8fbff,#ffffff);
  padding:18px;
  box-shadow:0 10px 30px rgba(7,26,61,.06);
}
.class-shopper-copy{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:14px;
}
.class-shopper-kicker{
  display:block;
  color:#0f4c81;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.class-shopper h2{
  margin:4px 0 3px;
  color:#071a3d;
  font-size:1.22rem;
  line-height:1.15;
  letter-spacing:-.035em;
}
.class-shopper p{
  margin:0;
  color:#64748b;
  font-size:.8rem;
  line-height:1.5;
}
.class-year-tabs{
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding:2px 2px 8px;
  scrollbar-width:thin;
}
.class-year-tab{
  flex:0 0 auto;
  min-height:38px;
  border:1px solid #cbd5e1;
  border-radius:999px;
  background:#fff;
  color:#071a3d;
  padding:0 14px;
  font-family:var(--font,Inter,Arial,sans-serif);
  font-size:.76rem;
  font-weight:850;
  cursor:pointer;
  transition:.15s ease;
}
.class-year-tab:hover{
  border-color:#0f4c81;
  transform:translateY(-1px);
}
.class-year-tab.active{
  border-color:#071a3d;
  background:#071a3d;
  color:#fff;
  box-shadow:0 8px 20px rgba(7,26,61,.18);
}
.class-quick-actions{
  margin-top:8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border-top:1px solid #dbe5f4;
  padding-top:14px;
}
.class-quick-actions[hidden]{display:none!important}
.class-quick-actions strong{
  display:block;
  color:#071a3d;
  font-size:.92rem;
}
.class-quick-actions span{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:.74rem;
}
.class-action-buttons{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.class-action-buttons button{
  min-height:38px;
  border:1px solid #071a3d;
  border-radius:999px;
  background:#071a3d;
  color:#fff;
  padding:0 14px;
  font-family:var(--font,Inter,Arial,sans-serif);
  font-size:.74rem;
  font-weight:850;
  cursor:pointer;
}
.class-action-buttons button.secondary{
  border-color:#cbd5e1;
  background:#fff;
  color:#071a3d;
}
.class-action-buttons button:disabled{
  opacity:.5;
  cursor:not-allowed;
}
.class-match-badge{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  margin-top:7px;
  border-radius:999px;
  background:#ecfdf3;
  color:#08744f;
  padding:0 8px;
  font-size:.64rem;
  font-weight:900;
}
@media(max-width:760px){
  .class-shopper{padding:14px;border-radius:15px}
  .class-shopper-copy{display:block}
  .class-quick-actions{align-items:stretch;flex-direction:column}
  .class-action-buttons{display:grid;grid-template-columns:1fr}
  .class-action-buttons button{width:100%}
}
