/* =============================================
   Footer — HJ Theme
   ============================================= */

.hj-footer {
    background-color: #2d1b2e;
    color: #ccc;
    font-family: 'Poppins', sans-serif;
}

.hj-footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4rem;
    flex-direction: column;
}

.hj-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr;
    gap: 40px;
    padding: 50px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand col */
.hj-footer-logo {
    margin-bottom: 12px;
}

.hj-footer-logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.hj-footer-bio {
    font-size: 14px;
    color: #999;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 220px;
}

.hj-footer-socials {
    display: flex;
    gap: 10px;
}
.hj-footer-soc {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    text-decoration: none;
    transition:
        border-color 0.2s,
        background 0.2s;
}
.hj-footer-soc svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}
.hj-footer-soc:hover {
    border-color: var(--primary, #e8547a);
    background: rgba(232, 84, 122, 0.15);
    color: var(--primary, #e8547a);
}

/* Col titles */
.hj-footer-col-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 18px;
}

.hj-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hj-footer-links a {
    font-size: 14px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}
.hj-footer-links a:hover {
    color: var(--primary, #e8547a);
}

/* Newsletter */
.hj-footer-newsletter-text {
    font-size: 13px;
    color: #999;
    margin-bottom: 14px;
    line-height: 1.6;
}
.hj-newsletter-form {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.hj-newsletter-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.07);
    border: none;
    padding: 10px 14px;
    font-size: 13px;
    color: #fff;
    outline: none;
    font-family: inherit;
}
.hj-newsletter-input::placeholder {
    color: #666;
}
.hj-newsletter-btn {
    background: var(--primary, #e8547a);
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    font-family: inherit;
}
.hj-newsletter-btn:hover {
    background: #c73d62;
}

/* Payment badges */
.hj-payment-methods {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.hj-payment-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #ddd;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Footer bottom */
.hj-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
    gap: 8px;
}
.hj-footer-bottom a {
    color: var(--primary, #e8547a);
    text-decoration: none;
}
.hj-footer-bottom a:hover {
    text-decoration: underline;
}

/* Scroll to top */
.hj-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary, #e8547a);
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(232, 84, 122, 0.4);
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.3s,
        transform 0.3s;
    z-index: 999;
}
.hj-scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}
.hj-scroll-top:hover {
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .hj-footer-container {
        padding: 0 2.5rem;
    }
    .hj-footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 32px;
    }
    .hj-footer-grid > div:last-child {
        grid-column: 1 / -1;
    }
}
@media (max-width: 768px) {
    .hj-footer-container {
        padding: 0 1.75rem;
    }
    .hj-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .hj-footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}
@media (max-width: 480px) {
    .hj-footer-container {
        padding: 0 1rem;
    }
    .hj-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hj-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
