/* =========================================================
   Sinorah Jewels - home page design  (wwwroot/css/home.css)
   Elegant look: maroon + gold on warm cream, serif headings.
   ========================================================= */
.home-page {
    --maroon: #6b0f1a;
    --maroon-deep: #4a0a12;
    --gold: #b8860b;
    --gold-soft: #d9b45a;
    --cream: #fbf7f1;
    --ink: #2b2023;
    background: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
}

/* ---------- Section headings ---------- */
.home-page .sec-head { text-align: center; margin: 0 auto 28px; padding: 0 16px; }
.home-page .sec-eyebrow {
    display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 600;
    letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px;
}
.home-page .sec-head h2 {
    font-family: var(--font-heading); font-weight: 700; color: var(--maroon);
    font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin: 0; line-height: 1.15;
}
.home-page .sec-rule {
    display: block; width: 90px; height: 1px; margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent); position: relative;
}
.home-page .sec-rule::after {
    content: "\2726"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%);
    background: var(--cream); padding: 0 8px; color: var(--gold); font-size: .7rem;
}

/* ---------- Hero ---------- */
.home-page .hero-slider { position: relative; border-bottom: 3px solid var(--gold); }
.home-page .slide img { height: clamp(230px, 40vw, 540px); }
.home-page .slider-wrapper::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 90px; pointer-events: none;
    background: linear-gradient(to top, rgba(74,10,18,.35), transparent);
}
.home-page .arrow {
    width: 44px; height: 44px; padding: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
    background: rgba(255,255,255,.85); color: var(--maroon);
    box-shadow: 0 4px 14px rgba(0,0,0,.2); transition: background .2s, color .2s;
}
.home-page .arrow:hover { background: var(--maroon); color: #fff; }
.home-page .arrow.left { left: 18px; }
.home-page .arrow.right { right: 18px; }
.home-page .hero-dots {
    position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px;
    display: flex; justify-content: center; gap: 8px;
}
.home-page .hero-dots button {
    width: 9px; height: 9px; padding: 0; border: 1px solid #fff; border-radius: 50%;
    background: transparent; cursor: pointer; transition: all .25s;
}
.home-page .hero-dots button.on { background: #fff; width: 26px; border-radius: 6px; }

/* ---------- Promise line under the hero ---------- */
.home-page .promise { text-align: center; padding: 34px 16px 6px; }
.home-page .promise p {
    font-family: var(--font-script); font-size: clamp(1.5rem, 3.6vw, 2.2rem);
    color: var(--gold); margin: 0;
}

/* ---------- Highlights strip ---------- */
.home-page .highlights-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    max-width: 1100px; margin: 16px auto 8px; padding: 0 16px;
}
.home-page .highlight-item {
    background: transparent; box-shadow: none; border-radius: 0;
    flex-direction: column; text-align: center; gap: 6px; padding: 14px 10px;
    border-left: 1px solid rgba(184,134,11,.3);
}
.home-page .highlight-item:first-child { border-left: 0; }
.home-page .highlight-item i { font-size: 1.6rem; color: var(--gold); }
.home-page .highlight-item strong { display: block; color: var(--maroon); font-size: .95rem; }
.home-page .highlight-item span { display: block; color: #7a6a6d; font-size: .8rem; }

/* ---------- Categories ---------- */
.home-page .jewelry-categories { margin: 46px 0 20px; }
.home-page .categories-grid {
    max-width: 1180px; margin: 0 auto; padding: 0 16px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.home-page .cat-card {
    position: relative; display: block; overflow: hidden; border-radius: 14px;
    aspect-ratio: 4 / 5; background: #e9dfd2; text-decoration: none; color: #fff;
    box-shadow: 0 10px 26px rgba(74,10,18,.12); transition: transform .35s, box-shadow .35s;
}
.home-page .cat-card img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform .7s ease;
}
.home-page .cat-card::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(40,6,12,.82) 0%, rgba(40,6,12,.15) 55%, transparent 100%);
}
.home-page .cat-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(74,10,18,.22); }
.home-page .cat-card:hover img { transform: scale(1.07); }
.home-page .cat-overlay { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 18px 16px 20px; text-align: center; }
.home-page .cat-overlay h3 { font-size: 1.7rem; margin: 0 0 4px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.home-page .cat-overlay p {
    font-size: .8rem; font-style: italic; color: rgba(255,244,224,.9); margin: 0 0 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.home-page .cat-link {
    display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    color: #fff; padding-bottom: 3px; border-bottom: 1px solid var(--gold-soft); transition: letter-spacing .3s, color .3s;
}
.home-page .cat-card:hover .cat-link { letter-spacing: 3px; color: var(--gold-soft); }

/* ---------- Product sections ---------- */
.home-page .home-products { max-width: 1180px; margin: 0 auto; padding: 40px 16px 8px; }
.home-page .home-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.home-page .hp-card {
    display: block; text-align: center; text-decoration: none; color: inherit;
    background: #fff; border-radius: 14px; padding: 10px 10px 16px;
    box-shadow: 0 2px 14px rgba(74,10,18,.07); border: 1px solid rgba(184,134,11,.12);
    transition: transform .3s, box-shadow .3s;
}
.home-page .hp-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(74,10,18,.16); }
.home-page .hp-photo { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 1 / 1; background: #f3ecec; }
.home-page .hp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.home-page .hp-card:hover .hp-photo img { transform: scale(1.06); }
.home-page .hp-tag {
    position: absolute; color: #fff;
    top: 10px; left: 10px; border-radius: 20px; padding: 3px 11px; font-size: .68rem;
    letter-spacing: 1px; font-weight: 600;
}
.home-page .hp-soldout {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); padding: 3px 12px;
    border-radius: 20px; background: rgba(255,255,255,.92); color: #842029; font-size: .72rem;
    font-weight: 600; white-space: nowrap;
}
.home-page .hp-sale { background: var(--maroon); }
.home-page .hp-new { background: var(--gold); }
.home-page .hp-name {
    margin: 12px 6px 2px; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700;
    color: var(--maroon); line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; justify-content: center;
}
.home-page .hp-card:hover .hp-name { color: var(--gold); }
.home-page .hp-price { color: var(--ink); font-weight: 600; font-size: 1rem; }
.home-page .hp-old { margin-left: 6px; color: #9a8f91; font-weight: 400; font-size: .85rem; text-decoration: line-through; }

/* ---------- Customer words (real, approved reviews) ---------- */
.home-page .words { max-width: 1180px; margin: 0 auto; padding: 56px 16px 20px; }
.home-page .words-row {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr);
    gap: 18px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x proximity;
}
.home-page .word-card {
    scroll-snap-align: start; background: #fff; border-radius: 14px; padding: 22px 22px 18px;
    border: 1px solid rgba(184,134,11,.18); box-shadow: 0 2px 14px rgba(74,10,18,.06); position: relative;
}
.home-page .word-card::before {
    content: "\201C"; position: absolute; top: 2px; right: 18px; font-family: var(--font-heading);
    font-size: 4.5rem; color: rgba(184,134,11,.22); line-height: 1;
}
.home-page .word-stars { color: var(--gold); letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 8px; }
.home-page .word-text { font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.45; color: var(--ink); margin: 0 0 14px; }
.home-page .word-by { font-size: .85rem; font-weight: 600; color: var(--maroon); }
.home-page .word-by small { display: block; font-weight: 400; color: #8a7b7e; margin-top: 2px; }
.home-page .word-ok { color: #198754; font-weight: 600; font-size: .75rem; margin-left: 6px; }

/* ---------- Recently viewed (match the new look) ---------- */
.home-page .rv-wrap h2 { font-family: var(--font-heading); color: var(--maroon); }
.home-page .rv-photo { border-radius: 12px; }
.home-page .rv-name { font-family: var(--font-heading); font-size: 1.05rem; color: var(--maroon); }

/* ---------- Mobile ---------- */
@media (max-width: 1000px) {
    .home-page .categories-grid, .home-page .home-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .home-page .categories-grid, .home-page .home-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .home-page .highlights-strip { grid-template-columns: repeat(2, 1fr); }
    .home-page .highlight-item:nth-child(3) { border-left: 0; }
    .home-page .highlight-item:nth-child(n+3) { border-top: 1px solid rgba(184,134,11,.3); }
    .home-page .arrow { width: 36px; height: 36px; }
    .home-page .arrow.left { left: 8px; } .home-page .arrow.right { right: 8px; }
    .home-page .cat-overlay h3 { font-size: 1.3rem; }
    .home-page .cat-overlay p { display: none; }
    .home-page .hp-name { font-size: 1.05rem; }
    .home-page .words-row { grid-auto-columns: 82%; }
}
@media (prefers-reduced-motion: reduce) {
    .home-page * { transition: none !important; }
}

.home-page .hp-best { background: linear-gradient(135deg, #b8860b, #d9b45a); }
.home-page .sec-link { display: inline-block; margin-top: 10px; color: var(--maroon); font-weight: 600; font-size: .88rem; text-decoration: none; border-bottom: 1px solid var(--gold); }
.home-page .sec-link:hover { color: var(--gold); }
