/* FILE: include/css/recently_viewed.css - Recently Viewed page styles */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 24px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.page-header h1 { font-family: 'DM Serif Display', serif; font-size: 1.6rem; }
.page-header .count { color: #7A7062; font-size: 0.9rem; }
.btn-clear { background: none; border: 1px solid #ddd; color: #666; padding: 6px 14px; border-radius: 4px; font-size: 0.8rem; cursor: pointer; }
.btn-clear:hover { border-color: #c00; color: #c00; }

.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.rv-card { background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(44,36,22,0.08); overflow: hidden; position: relative; transition: box-shadow 0.2s; }
.rv-card:hover { box-shadow: 0 4px 12px rgba(44,36,22,0.12); }
.rv-card-img { width: 100%; aspect-ratio: 3/2; object-fit: contain; display: block; background: #EDE8DF; border-bottom: 1px solid #eee; }
.rv-card-img-placeholder { width: 100%; aspect-ratio: 3/2; background: #EDE8DF; display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 0.8rem; border-bottom: 1px solid #eee; }
.rv-card-body { padding: 14px; }
.rv-card-title { font-size: 0.85rem; font-weight: 500; line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-card-title a { color: #111; text-decoration: none; }
.rv-card-title a:hover { color: #B8542A; }
.rv-card-price { font-size: 0.95rem; font-weight: 600; color: #B8542A; margin-bottom: 10px; }
.rv-card-status { font-size: 0.75rem; color: #888; font-style: italic; margin-bottom: 10px; }
.rv-card-actions { display: flex; gap: 8px; }
.btn-add { flex: 1; background: #059669; color: #fff; border: none; padding: 8px 12px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; cursor: pointer; text-align: center; }
.btn-add:hover { background: #047857; }
.btn-add.added { background: #9ca3af; cursor: default; }
.btn-remove { background: none; border: 1px solid #ddd; color: #999; padding: 8px 10px; border-radius: 4px; font-size: 0.8rem; cursor: pointer; }
.btn-remove:hover { border-color: #c00; color: #c00; }
.badge-overlay { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 3px; color: #fff; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.badge-sold { background: rgba(220,53,69,0.85); }
.badge-reserved { background: rgba(180,120,40,0.85); }
.empty-state { text-align: center; padding: 60px 20px; color: #999; }
.empty-state p { margin-bottom: 16px; }
.empty-state a { color: #B8542A; }