/* ── Corporate Shop — Frontend Styles v2.1 ── */
/* Card design mirrors WC Category Filter plugin */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --cs-primary:  #030222;
  --cs-accent:   #5a2d66;
  --cs-bg:       #f8f8f8;
  --cs-border:   #e8e8e8;
  --cs-text:     #111111;
  --cs-muted:    #666666;
  --cs-font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Wrap ── */
.corp-shop-wrap {
  font-family: var(--cs-font);
}

/* ── Product Grid ── */
.corp-shop-products {
  display: grid;
  gap: 20px;
}
.corp-shop-cols-1 { grid-template-columns: repeat(1, 1fr); }
.corp-shop-cols-2 { grid-template-columns: repeat(2, 1fr); }
.corp-shop-cols-3 { grid-template-columns: repeat(3, 1fr); }
.corp-shop-cols-4 { grid-template-columns: repeat(4, 1fr); }
.corp-shop-cols-5 { grid-template-columns: repeat(5, 1fr); }
.corp-shop-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1100px) {
  .corp-shop-cols-5,
  .corp-shop-cols-6 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .corp-shop-cols-4,
  .corp-shop-cols-5,
  .corp-shop-cols-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .corp-shop-cols-3,
  .corp-shop-cols-4,
  .corp-shop-cols-5,
  .corp-shop-cols-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .corp-shop-products { grid-template-columns: 1fr !important; }
}

/* ── Product Card ── */
.corp-shop-product-card {
  background: #fff;
  border: 1px solid var(--cs-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.corp-shop-product-card:hover {
  box-shadow: 0 6px 24px rgba(3,2,34,0.13);
  transform: translateY(-2px);
}

/* ── Product Image ── */
.corp-shop-product-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--cs-bg);
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
}
.corp-shop-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
  transition: transform 0.35s ease;
}
.corp-shop-product-card:hover .corp-shop-product-img-wrap img {
  transform: scale(1.04);
}

/* ── Badges ── */
.corp-shop-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  pointer-events: none;
}
.corp-shop-badge--sale       { background: #c0392b; }
.corp-shop-badge--outofstock { background: #999; }

/* ── Product Info ── */
.corp-shop-product-info {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.corp-shop-product-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cs-text);
}
.corp-shop-product-title a {
  color: inherit;
  text-decoration: none;
}
.corp-shop-product-title a:hover { color: var(--cs-accent); }

.corp-shop-product-price {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--cs-primary);
}

/* ── Cart Row (simple products) ── */
.corp-shop-cart-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
}
.corp-shop-qty {
  width: 56px;
  flex-shrink: 0;
  padding: 0 8px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: #222;
  background: #fff;
  height: 42px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
  appearance: textfield;
}
.corp-shop-qty:focus { border-color: var(--cs-primary); }
.corp-shop-qty::-webkit-inner-spin-button,
.corp-shop-qty::-webkit-outer-spin-button { opacity: 1; }

.corp-shop-add-btn {
  flex: 1;
  height: 42px;
  padding: 0 12px;
  background: var(--cs-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--cs-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s;
  white-space: nowrap;
}
.corp-shop-add-btn:hover    { background: var(--cs-accent); }
.corp-shop-add-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.corp-shop-add-btn.added    { background: #27ae60; }

/* ── Options Button (variable / out-of-stock) ── */
.corp-shop-options-btn {
  display: block;
  width: 100%;
  height: 42px;
  line-height: 42px;
  text-align: center;
  background: var(--cs-primary);
  color: #fff;
  border-radius: 6px;
  font-family: var(--cs-font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
  margin-top: auto;
  box-sizing: border-box;
}
.corp-shop-options-btn:hover { background: var(--cs-accent); color: #fff; }

/* ── Toast ── */
.corp-shop-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--cs-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--cs-font);
  font-size: 14px;
  font-weight: 500;
  z-index: 99999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.corp-shop-toast.is-visible { opacity: 1; transform: translateY(0); }
.corp-shop-toast.is-error   { background: #c0392b; }

/* ── Pagination ── */
.corp-shop-pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 36px;
  justify-content: center;
}
.corp-shop-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  color: var(--cs-text);
  font-family: var(--cs-font);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--cs-border);
  transition: background 0.2s, color 0.2s;
}
.corp-shop-page-link.is-active,
.corp-shop-page-link:hover {
  background: var(--cs-primary);
  color: #fff;
  border-color: var(--cs-primary);
}

/* ── Notices ── */
.corp-shop-notice {
  background: #fff8e1;
  border-left: 4px solid #c9a84c;
  border-radius: 8px;
  padding: 16px 20px;
  font-family: var(--cs-font);
  color: var(--cs-text);
}
.corp-shop-notice a { color: var(--cs-primary); font-weight: 600; }
.corp-shop-empty {
  font-family: var(--cs-font);
  color: var(--cs-muted);
  text-align: center;
  padding: 60px 0;
}
