/* ── BestPrice – Home Page ── */

/* ── Hero ── */
.hero { background: white; border-bottom: 1px solid rgba(0,0,0,0.07); padding: 48px 0 52px; position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 48px; }
.hero-text { flex: 1; min-width: 0; }
.hero h1 { font-size: clamp(28px,3.8vw,52px); font-weight: 900; letter-spacing: -1.5px; color: var(--dark); line-height: 1.08; }
.hero h1 span { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: #999; font-size: 15px; margin-top: 12px; }

.stats-strip { display: flex; gap: 28px; margin-top: 28px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 20px; font-weight: 800; color: var(--dark); letter-spacing: -0.5px; }
.stat-label { font-size: 10px; color: #bbb; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: #e8e8e8; align-self: center; }

.hero-visual { flex-shrink: 0; width: 360px; height: 260px; position: relative; }
@media (max-width: 860px) { .hero-visual { display: none; } }

.hero-pcard { position: absolute; background: white; border-radius: 16px; border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 8px 32px rgba(0,0,0,0.1); overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 12px; width: 200px; text-decoration: none; transition: transform 0.3s ease; }
.hero-pcard:hover { transform: translateY(-3px) !important; }
.hero-pcard img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; mix-blend-mode: multiply; }
.hero-pcard-info { min-width: 0; }
.hero-pcard-name { font-size: 11px; font-weight: 600; color: var(--dark); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-pcard-price { font-size: 13px; font-weight: 800; color: var(--accent); margin-top: 4px; }

/* ── Categories ── */
.categories-section { padding: 52px 0 70px; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (min-width: 600px)  { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px)  { .cat-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }

.cat-card { background: white; border-radius: 16px; text-decoration: none; display: flex; flex-direction: column; align-items: center; padding: 24px 12px 18px; gap: 10px; border: 1px solid rgba(0,0,0,0.06); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.1); border-color: rgba(0,0,0,0.12); }
.cat-icon { width: 52px; height: 52px; background: #f0f0f0; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.cat-icon svg { width: 26px; height: 26px; stroke: #111; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cat-name { font-size: 12px; font-weight: 600; color: var(--dark); text-align: center; line-height: 1.35; }
.cat-count { font-size: 11px; color: var(--muted); font-weight: 400; }

/* ── Product strips ── */
.products-section { padding: 52px 0 0; }
.deals-section    { padding: 36px 0 0; }

.product-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px)  { .product-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .product-strip { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .product-strip { grid-template-columns: repeat(8, 1fr); } }

.deals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .deals-grid { grid-template-columns: repeat(4, 1fr); } }

.pcard { background: white; border-radius: 14px; overflow: hidden; text-decoration: none; border: 1px solid rgba(0,0,0,0.06); display: flex; flex-direction: column; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.1); }
.pcard-img { aspect-ratio: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 12px; }
.pcard-img img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pcard-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-brand { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.pcard-name { font-size: 12px; font-weight: 600; color: var(--dark); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-price { font-size: 14px; font-weight: 800; color: var(--accent); margin-top: auto; padding-top: 6px; }
.deals-grid .pcard-img { aspect-ratio: 4/3; }
.pcard-img-wrap { position: relative; }
.deal-badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: white; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ── Articles & Tips ── */
.articles-section { padding: 52px 0 0; }
.tips-section     { padding: 36px 0 70px; }

.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 800px) { .article-grid { grid-template-columns: repeat(4, 1fr); } }

.acard { background: white; border-radius: 16px; overflow: hidden; text-decoration: none; border: 1px solid rgba(0,0,0,0.06); display: flex; flex-direction: column; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.acard:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.1); }
.acard-thumb { height: 110px; display: flex; align-items: center; justify-content: center; }
.acard-thumb svg { width: 36px; height: 36px; stroke: rgba(255,255,255,0.85); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.acard-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.acard-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); }
.acard-title { font-size: 14px; font-weight: 700; color: var(--dark); line-height: 1.4; }
.acard-desc { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.acard-link { font-size: 12px; font-weight: 600; color: var(--accent); margin-top: auto; padding-top: 10px; }

.tips-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .tips-grid { grid-template-columns: repeat(3, 1fr); } }

.tcard { background: white; border-radius: 16px; padding: 28px; border: 1px solid rgba(0,0,0,0.06); text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.tcard:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.1); }
.tcard-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tcard-icon svg { width: 22px; height: 22px; stroke: white; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tcard-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.tcard-title { font-size: 16px; font-weight: 800; color: var(--dark); line-height: 1.3; }
.tcard-desc { font-size: 13px; color: #666; line-height: 1.6; }
.tcard-link { font-size: 12px; font-weight: 600; color: var(--accent); margin-top: 4px; }

/* ── Home Footer (multi-column) ── */
footer {
    margin-top: 80px;
    text-align: left;
    padding: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}

.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; padding: 56px 0 48px; border-bottom: 1px solid rgba(255,255,255,0.07); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; gap: 28px; } }

.footer-brand img { height: 52px; margin: 10px 0 14px; display: block; }
.footer-brand p { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,0.35); max-width: 240px; }

.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.3); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; transition: color 0.15s; }
.footer-col ul li a:hover { color: white; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-size: 12px; color: rgba(255,255,255,0.3); gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-bottom a:hover { color: white; }
