/* assets/css/homepage.css - pagina de start (model: docs/mockup-colectionezi-v3.html)
   Se încarcă doar pe index.php. Cardul de produs, butoanele și grila sunt în site-v2.css. */

.hm-wrap {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: var(--ink);
    background: var(--bg);
    padding: 0 0 8px;
}
:where(.hm-wrap) a { color: inherit; text-decoration: none; }

/* lista de categorii + banner */
.hm-first { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0; }
.hm-side { background: #fff; border: 1px solid var(--line); border-top: 0; }
.hm-side a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 16px; font-size: 13.5px; border-bottom: 1px solid var(--line-soft); }
.hm-side a:last-child { border-bottom: 0; }
.hm-side a:hover { color: var(--blue); background: var(--blue-l); }
.hm-side a span { color: #6B6B6B; }

.hm-banner { margin: 16px 0 0 16px; background: #E9F0FB; border-radius: 4px; position: relative; overflow: hidden; min-height: 420px; }
.hm-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: center; padding: 24px 40px 40px; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.hm-slide.on { opacity: 1; visibility: visible; z-index: 1; }
.hm-slide h1, .hm-slide h2 { font-size: 30px; line-height: 1.15; margin: 0 0 10px; color: #0E2A5C; font-weight: 700; }
.hm-slide p { font-size: 15px; color: #3C4A63; margin: 0 0 18px; max-width: 380px; }
.hm-covers { position: relative; height: 340px; }
.hm-covers a { position: absolute; display: block; line-height: 0; transition: transform .2s; }
.hm-covers a img { display: block; height: 290px; width: auto; max-width: none; object-fit: contain; border-radius: 2px; box-shadow: 0 6px 16px rgba(14, 42, 92, .22); background: transparent; padding: 0; border: 0; }
.hm-covers a:nth-child(1) { left: 0; top: 40px; transform: rotate(-9deg); z-index: 1; }
.hm-covers a:nth-child(2) { left: 16%; top: 20px; transform: rotate(-4.5deg); z-index: 2; }
.hm-covers a:nth-child(3) { left: 32%; top: 6px; z-index: 5; }
.hm-covers a:nth-child(4) { left: 48%; top: 20px; transform: rotate(4.5deg); z-index: 3; }
.hm-covers a:nth-child(5) { left: 64%; top: 40px; transform: rotate(9deg); z-index: 2; }
.hm-covers a:hover, .hm-covers a:focus-visible { transform: translateY(-6px) rotate(0deg); z-index: 6; }
.hm-covers img.hm-cover-one { position: static; display: block; margin: 0 auto; height: 340px; max-width: 100%; transform: none; box-shadow: none; background: none; object-fit: contain; }
.hm-bdots { position: absolute; left: 40px; bottom: 16px; display: flex; gap: 6px; z-index: 3; }
.hm-bdots button { width: 10px; height: 10px; border-radius: 50%; background: #B9C8E6; padding: 0; border: 0; cursor: pointer; }
.hm-bdots button.on { background: var(--blue); }
.hm-arrow { position: absolute; top: 50%; z-index: 4; width: 32px; height: 56px; margin-top: -28px; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .72); color: #0E2A5C; font-size: 26px; line-height: 1; font-family: inherit; font-weight: 700; cursor: pointer; opacity: .55; transition: opacity .2s, background .2s; padding: 0; }
.hm-arrow:hover, .hm-arrow:focus-visible { opacity: 1; background: #fff; }
.hm-pause { position: absolute; right: 12px; bottom: 10px; z-index: 4; height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
.hm-pause:hover, .hm-pause:focus-visible { border-color: var(--blue); color: var(--blue); }
.hm-pause[hidden] { display: none; }
.hm-prev { left: 6px; }
.hm-next { right: 6px; }

/* beneficii */
.hm-perks { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); margin-top: 16px; border-radius: 4px; }
.hm-perk { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-right: 1px solid var(--line); }
.hm-perk:last-child { border-right: 0; }
.hm-perk svg { width: 30px; height: 30px; stroke: var(--blue); fill: none; stroke-width: 1.6; flex: none; }
.hm-perk b { display: block; font-size: 13.5px; }
.hm-perk span { font-size: 12px; color: var(--muted); }

/* secțiuni de produse */
.hm-sec { background: #fff; border: 1px solid var(--line); border-radius: 4px; margin-top: 16px; padding: 16px; }
.hm-sh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; gap: 12px; }
.hm-sh h2 { font-size: 20px; margin: 0; font-weight: 700; }
.hm-sh a { color: var(--blue); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.hm-sh a:hover { text-decoration: underline; }

/* newsletter */
.hm-nl { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: 4px; margin-top: 16px; padding: 18px 20px; }
.hm-nl b { font-size: 16px; }
.hm-nl p { color: var(--muted); font-size: 13px; margin: 2px 0 0; max-width: 560px; }
.hm-nl p a { color: var(--blue); text-decoration: underline; }
.hm-nl-box { width: 460px; max-width: 100%; }
.hm-nl form { display: flex; gap: 8px; margin: 0; }
.hm-nl form[hidden] { display: none; }
.hm-nl input[type="email"] { flex: 1; min-width: 0; height: 40px; border: 1px solid #CFCFCF; border-radius: 4px; padding: 0 12px; font: inherit; }
.hm-nl-msg { font-weight: 700; color: var(--green); }
.hm-nl-msg[hidden] { display: none; }
.hm-nl-msg.hm-err { color: var(--red); }

@media (max-width: 860px) {
    .hm-first { grid-template-columns: 1fr; }
    .hm-side { display: none; }
    .hm-banner { margin: 12px 0 0; height: 460px; touch-action: pan-y; }
    .hm-slide { grid-template-columns: 1fr; padding: 22px 22px 40px; align-content: start; }
    .hm-slide h1, .hm-slide h2 { font-size: 24px; }
    .hm-covers { height: 230px; margin-top: 12px; }
    .hm-covers a:nth-child(1), .hm-covers a:nth-child(5) { display: none; }
    .hm-covers a:nth-child(2) { left: 6%; top: 24px; }
    .hm-covers a:nth-child(3) { left: 34%; top: 6px; }
    .hm-covers a:nth-child(4) { left: 62%; top: 24px; }
    .hm-covers a img { height: 190px; }
    .hm-covers img.hm-cover-one { height: 220px; }
    .hm-bdots { left: 22px; }
    .hm-arrow { display: none; }
    .hm-perks { grid-template-columns: 1fr 1fr; }
    .hm-perk:nth-child(2) { border-right: 0; }
    .hm-perk:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .hm-nl { flex-direction: column; align-items: flex-start; }
    .hm-nl-box { width: 100%; }
}
@media (max-width: 600px) {
    .hm-perks { grid-template-columns: 1fr; }
    .hm-perk { border-right: 0 !important; border-bottom: 1px solid var(--line); }
    .hm-perk:last-child { border-bottom: 0; }
    .hm-sec { padding: 12px; }
    .hm-sh h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .hm-slide { transition: none !important; }
}
