/* hub.css — хаб подборок /find/ (06.10.2026). Подключается вместе с find.css
   (оттуда h1, .facts-line, .analysis-block, .delivery-block). home.css на
   хабе НЕ подключается: в нём много глобальных правил главной (.links, .btn,
   .faq-item…), нужные карточки скопированы сюда со скоупом .page-hub. */

.page-hub .wrap { max-width: 1080px; }

/* Ссылки в .analysis-block/.delivery-block стилизует find.css; здесь — только свои */
.page-hub .hub-from a { color: #FF8A3D; text-decoration: none; border-bottom: 1px solid rgba(255,138,61,0.35); }
.page-hub .hub-from a:hover { color: #fff; border-bottom-color: #FF6B00; }

.page-hub .hub-section { margin-bottom: 34px; }
.page-hub .hub-section h2 { font-size: 22px; font-weight: 700; margin: 0 0 18px; }

/* Карточки подборок */
.hub-collections { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 620px)  { .hub-collections { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hub-collections { grid-template-columns: repeat(3, 1fr); } }
.hub-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 18px; text-decoration: none; color: #fff; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); transition: all .25s ease; }
.hub-card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.1); border-color: rgba(255,107,0,0.4); box-shadow: 0 8px 28px rgba(255,107,0,0.12); }
.hub-card__title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; line-height: 1.35; }
.hub-card__icon { font-size: 20px; flex-shrink: 0; }
.hub-card__facts { font-size: 13px; color: rgba(255,255,255,0.6); }
.hub-card__previews { display: flex; gap: 8px; }
.hub-card__previews img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: rgba(255,255,255,0.05); }
.hub-card__more { font-size: 13px; font-weight: 600; color: #FF8A3D; margin-top: auto; }

/* Товары — по образцу .product-mini-card главной */
.hub-products { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 480px)  { .hub-products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px)  { .hub-products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .hub-products { grid-template-columns: repeat(4, 1fr); } }
.hub-product { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; }
.hub-product img { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; display: block; }
.hub-product__title { color: rgba(255,255,255,0.92); text-decoration: none; font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; margin-bottom: 8px; }
.hub-product__title:hover { color: #fff; }
.hub-product__meta { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 8px; }
.hub-product__price { font-weight: 800; font-size: 19px; color: #FF6B00; margin-bottom: 8px; }
.hub-from { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 12px; line-height: 1.5; }
.hub-product .buy-btn { margin-top: auto; display: block; text-align: center; font-size: 14px; font-weight: 600; background: #FF6B00; color: #fff; text-decoration: none; padding: 12px; border-radius: 20px; }
.hub-product .buy-btn:hover { background: #ff7d1a; }

/* Календарь поводов */
.hub-occasions p { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.hub-date { font-weight: 700; color: #fff; min-width: 96px; }
.hub-days { font-size: 12px; color: rgba(255,255,255,0.5); }
.hub-note { opacity: 0.75; margin-top: 6px; }

/* Соцсети внизу */
.hub-social { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 10px 0 30px; }
.hub-social a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 40px; font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.hub-social a:hover { transform: translateY(-2px); }
.hub-social .vk { background: #0077FF; box-shadow: 0 4px 16px rgba(0,119,255,0.3); }
.hub-social .tg { background: linear-gradient(135deg, #1DA1F2, #0b7bc1); box-shadow: 0 4px 16px rgba(29,161,242,0.3); }

@media (max-width: 480px) {
    .page-hub .hub-section h2 { font-size: 19px; }
    .hub-card__previews img { width: 48px; height: 48px; }
    .hub-social a { flex: 1 1 100%; justify-content: center; }
}
