/*
 * Oro Compare — Frontend Styles
 * Plugin: oro-compare
 * Version: 1.0.0
 */

/* =========================================================
   Design Tokens
   ========================================================= */
:root {
  --orc-primary:    #2563EB;
  --orc-primary-h:  #1d4ed8;
  --orc-bg:         #f1f5f9;
  --orc-card-bg:    #ffffff;
  --orc-star-color: #f59e0b;
  --orc-check-color:#22c55e;
  --orc-cross-color:#ef4444;
  --orc-dash-color: #94a3b8;
  --orc-text:       #1e293b;
  --orc-muted:      #64748b;
  --orc-border:     #e2e8f0;
  --orc-radius-card:12px;
  --orc-radius-btn: 6px;
  --orc-shadow:     0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --orc-shadow-h:   0 4px 12px rgba(37,99,235,.3);
}

/* =========================================================
   Wrapper
   ========================================================= */
.orc-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 48px;
  background: var(--orc-bg);
  border-radius: 16px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   Header
   ========================================================= */
.orc-header {
  text-align: center;
  padding-bottom: 36px;
}

.orc-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orc-muted);
  margin-bottom: 10px;
}

.orc-title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  color: var(--orc-text);
  line-height: 1.25;
  margin: 0 0 14px;
}

.orc-subtitle {
  font-size: 15px;
  color: var(--orc-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}

/* =========================================================
   Grid
   ========================================================= */
.orc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* =========================================================
   Card
   ========================================================= */
.orc-card {
  position: relative;
  background: var(--orc-card-bg);
  border-radius: var(--orc-radius-card);
  box-shadow: var(--orc-shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}

.orc-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

.orc-card-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
}

/* Badge */
.orc-badge {
  position: absolute;
  top: -13px;
  left: 20px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--orc-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  line-height: 1.6;
  box-shadow: 0 2px 6px rgba(37,99,235,.35);
}

/* Product name */
.orc-product-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--orc-text);
  margin-top: 18px;
  margin-bottom: 4px;
  line-height: 1.3;
}

/* Tagline */
.orc-product-tagline {
  font-size: 12px;
  color: var(--orc-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* =========================================================
   Star Rating
   ========================================================= */
.orc-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.orc-stars {
  display: flex;
  gap: 1px;
  font-size: 18px;
  letter-spacing: 1px;
  line-height: 1;
}

.orc-star--full,
.orc-star--half {
  color: var(--orc-star-color);
}

.orc-star--empty {
  color: #cbd5e1;
}

.orc-rating-score {
  font-size: 12px;
  color: var(--orc-muted);
  font-weight: 600;
}

/* =========================================================
   Price
   ========================================================= */
.orc-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin: 16px 0;
}

.orc-price-from {
  font-size: 12px;
  color: var(--orc-muted);
  font-weight: 500;
}

.orc-price-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--orc-text);
  line-height: 1;
}

.orc-price-unit {
  font-size: 13px;
  color: var(--orc-muted);
  font-weight: 500;
}

.orc-price-note {
  width: 100%;
  font-size: 11px;
  color: var(--orc-muted);
  margin-top: 2px;
}

/* =========================================================
   Feature List
   ========================================================= */
.orc-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.orc-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.5;
}

.orc-features li:last-child {
  border-bottom: none;
}

.orc-icon {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  width: 18px;
  text-align: center;
}

.orc-icon--check { color: var(--orc-check-color); }
.orc-icon--cross  { color: var(--orc-cross-color); }
.orc-icon--dash   { color: var(--orc-dash-color); }

/* =========================================================
   Card Footer / CTA Button
   ========================================================= */
.orc-card-footer {
  margin-top: auto;
  padding-top: 22px;
  text-align: center;
}

.orc-btn {
  display: inline-block;
  background: var(--orc-primary);
  color: #ffffff;
  padding: 11px 28px;
  border-radius: var(--orc-radius-btn);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  cursor: pointer;
}

.orc-btn:hover,
.orc-btn:focus {
  background: var(--orc-primary-h);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--orc-shadow-h);
  text-decoration: none;
  outline: none;
}

.orc-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.orc-btn--no-link {
  opacity: .6;
  cursor: default;
}

/* =========================================================
   Responsive
   ========================================================= */

/* Tablet: 2 columns max */
@media (max-width: 1024px) and (min-width: 769px) {
  .orc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: single column */
@media (max-width: 768px) {
  .orc-wrap {
    padding: 28px 16px 36px;
    border-radius: 12px;
  }

  .orc-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .orc-card-inner {
    padding: 24px 20px 20px;
  }

  .orc-title {
    font-size: 22px;
  }

  .orc-subtitle {
    font-size: 14px;
  }
}
