/* ══════════════════════════════════════════
   Pressio — Customer-facing shop theme
   Inspired by tiskplus.cz design
   ══════════════════════════════════════════ */

:root {
  --primary: #773c9f;
  --primary-light: #9b6bbf;
  --primary-dark: #5a2d78;
  --accent: #ffa53b;
  --accent-light: #ffbe6b;
  --bg-light: #f8f8f8;
  --text-dark: #222;
  --text-muted: #4a5568;
  --border-light: #ececec;
}

* { box-sizing: border-box; }
body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: #fff;
  margin: 0;
}

.fw-600 { font-weight: 600; }

/* ─── Header ─── */
.shop-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.shop-brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.shop-brand:hover { color: #fff; }
.shop-brand small {
  font-size: .5em;
  font-weight: 400;
  opacity: .6;
}
.shop-header .nav-link {
  color: rgba(255,255,255,.8);
  font-weight: 500;
  font-size: .9rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.shop-header .nav-link:hover,
.shop-header .nav-link.active {
  color: #fff;
  border-bottom-color: var(--accent);
}

/* ─── Hero ─── */
.shop-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
}
.shop-hero h1 { font-size: 2rem; }
.shop-hero .lead { color: rgba(255,255,255,.75); }

/* ─── Category filters ─── */
.btn-filter {
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  transition: all .2s;
}
.btn-filter:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-filter.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ─── Product cards ─── */
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px 16px 16px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all .25s ease;
  height: 100%;
}
.product-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(119,60,159,.12);
  transform: translateY(-4px);
}
.product-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--primary);
}
.product-icon i { font-size: 2.5rem; }
.product-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.product-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.product-category {
  font-size: .75rem;
  color: var(--primary);
  font-weight: 500;
  background: rgba(119,60,159,.08);
  padding: 2px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.product-hint {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  flex: 1;
}
.product-meta {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.product-cta {
  width: 100%;
  margin-top: auto;
}
.product-cta .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  font-size: .85rem;
}
.product-cta .btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ─── Trust bar ─── */
.trust-bar {
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.trust-bar .text-primary { color: var(--primary) !important; }

/* ─── Footer ─── */
.shop-footer {
  background: #1a1a2e;
  color: #ccc;
}
.shop-footer .shop-brand { font-size: 1.1rem; }
.shop-footer h6 { color: #fff; }
.shop-footer a {
  color: #aaa;
  text-decoration: none;
  transition: color .2s;
}
.shop-footer a:hover { color: var(--accent); }

/* ─── Product detail page ─── */
.product-detail-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 2rem 0;
}
.product-detail-header .breadcrumb-item a { color: rgba(255,255,255,.7); }
.product-detail-header .breadcrumb-item.active { color: rgba(255,255,255,.9); }

.config-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.config-card h6 {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
  font-size: .95rem;
}
.config-card .fw-500 { font-weight: 500; }
.config-card .form-label {
  color: var(--text-muted);
  font-size: .88rem;
}
.config-card .form-select,
.config-card .form-control {
  border-radius: 8px;
}

/* Property variant radio cards */
.variant-option {
  display: block;
  padding: 8px 14px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 6px;
  font-size: .88rem;
}
.variant-option:hover {
  border-color: var(--primary-light);
  background: rgba(119,60,159,.03);
}
.variant-option.selected {
  border-color: var(--primary);
  background: rgba(119,60,159,.06);
  font-weight: 600;
}
.variant-option .variant-name { flex: 1; }
.variant-option .variant-desc {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Price display */
.price-box {
  background: linear-gradient(135deg, #f0e6f6 0%, #fff 100%);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  position: sticky;
  top: 80px;
}
.price-total {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.price-per-piece {
  font-size: .9rem;
  color: var(--text-muted);
}
.price-loading {
  color: var(--text-muted);
  font-style: italic;
}

/* Quantity input */
.qty-input {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-input .btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  background: #fff;
  color: var(--text-dark);
  font-size: 1.1rem;
}
.qty-input .btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.qty-input input {
  width: 90px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 767px) {
  .shop-hero h1 { font-size: 1.4rem; }
  .shop-hero .lead { font-size: .9rem; }
  .product-card { padding: 16px 10px 12px; }
  .product-icon { width: 48px; height: 48px; }
  .product-icon i { font-size: 2rem; }
  .product-name { font-size: .9rem; }
  .price-box { position: static; }
}
