/* Celena Shop — фронт магазина */
.shop-search { display: flex; gap: 8px; margin-bottom: 16px; }
.shop-search input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); }
.shop-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.shop-cats a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: 13px; }
.shop-cats a:hover, .shop-cats a.active { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); text-decoration: none; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product-cover { display: block; }
.product-cover img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; }
.product-cover .no-cover { width: 100%; height: 180px; background: var(--surface-2); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.product-card h3 { margin: 10px 0 6px; font-size: 15px; }
.product-card h3 a { color: var(--text); }
.product-card h3 a:hover { color: var(--accent); text-decoration: none; }
.product-price { font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.product-card form { margin-top: auto; }
.product-card .btn-primary { width: 100%; }

.product-full { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-full .product-gallery img { width: 100%; border-radius: 8px; }
.product-price-big { font-size: 28px; font-weight: 700; margin: 12px 0; }
.product-price-big .old { font-size: 16px; color: var(--text-muted); text-decoration: line-through; margin-left: 8px; }
.product-full .short { color: var(--text-muted); margin-bottom: 16px; }
.add-to-cart { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.add-to-cart input[type="number"] { width: 80px; padding: 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); }
.cart-table .cart-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 8px; }
.cart-table tfoot td { font-size: 16px; padding: 16px 12px; border-top: 2px solid var(--border); border-bottom: 0; }
.cart-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.cart-actions .btn-primary,
.cart-actions .btn-secondary { padding: 12px 22px; font-size: 15px; font-weight: 600; }
.cart-actions .btn-primary { box-shadow: 0 6px 18px rgba(109, 92, 255, 0.32); }
.cart-actions .btn-primary:hover { box-shadow: 0 8px 22px rgba(109, 92, 255, 0.42); }
.btn-secondary { display: inline-block; padding: 9px 18px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.checkout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.checkout-form .form-group { margin-bottom: 12px; }
.checkout-form input, .checkout-form textarea { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); }
.checkout-summary ul { padding-left: 18px; font-size: 14px; }

.breadcrumbs { color: var(--text-muted); font-size: 13px; margin-bottom: 12px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

.cart-widget { font-size: 13px; color: var(--text-muted); padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; }
.cart-widget:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.cart-count { font-weight: 700; color: var(--accent); }
.cart-qty { width: 72px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); }
.cart-del { background: transparent; border: 1px solid var(--border); color: var(--text-muted); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1; padding: 0; }
.cart-del:hover { color: var(--danger); border-color: var(--danger); }

.shop-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translate(-50%, 20px);
  background: var(--surface, #fff); color: var(--text, #111);
  border: 1px solid var(--border, #ddd); border-radius: 8px;
  padding: 10px 18px; font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
}
.shop-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 700px) {
  .product-full, .checkout-grid { grid-template-columns: 1fr; }
}
