/* ==========================================================
   Footer additions
   - Products column (dynamic categories)
   - "Visit Our Factory" column (map + live open status)
   Used by: resources/views/layouts/master.blade.php
   Matches theme: bg #050709, accent #ffc527, text #c2c2c2
   ========================================================== */

/* Products column: long category names wrap neatly */
.single-footer-widget .products-links li a {
    display: inline-block;
    line-height: 1.4;
}
.single-footer-widget .products-links li.cf-foot-viewall a {
    color: #ffc527;
    font-weight: 500;
}
.single-footer-widget .products-links li.cf-foot-viewall a:hover {
    color: #ffffff;
}

/* ---------- Visit Our Factory ---------- */
.cf-foot-map {
    position: relative;
    height: 170px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-top: 3px solid #ffc527;
    margin-bottom: 18px;
}
.cf-foot-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    /* dark map to match the footer */
    filter: grayscale(1) invert(.92) contrast(.9) brightness(.95);
    transition: filter .4s ease;
}
.cf-foot-map:hover iframe {
    filter: none;
}
.cf-foot-map-pin {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 5px 10px;
    background: #000000;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
}
.cf-foot-map-pin i {
    color: #ffc527;
    margin-right: 4px;
}

.cf-foot-visit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.cf-foot-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #c2c2c2;
}
.cf-foot-status strong {
    font-weight: 600;
}
.cf-foot-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8a8a8a;
    flex-shrink: 0;
}
.cf-foot-status.is-open .cf-foot-dot {
    background: #25d366;
}
.cf-foot-status.is-open .cf-foot-dot:after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    animation: cfFootPulse 1.8s ease-out infinite;
}
.cf-foot-status.is-open strong { color: #25d366; }
.cf-foot-status.is-closed .cf-foot-dot { background: #ff5b5b; }
.cf-foot-status.is-closed strong { color: #ff5b5b; }

@keyframes cfFootPulse {
    0%   { transform: scale(1);   opacity: .7; }
    100% { transform: scale(2.6); opacity: 0; }
}

.cf-foot-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ffc527;
    border: 2px solid #ffc527;
    color: #000000;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background .3s ease, color .3s ease;
}
.cf-foot-btn:hover,
.cf-foot-btn:focus {
    background: transparent;
    color: #ffc527;
}

.cf-foot-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 10px;
}

.cf-foot-social-links {
    display: flex;
    gap: 10px;
}
.cf-foot-social-links a {
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    color: #ffffff;
    font-size: 15px;
    transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.cf-foot-social-links a:hover {
    background: #ffc527;
    border-color: #ffc527;
    color: #000000;
}

@media (prefers-reduced-motion: reduce) {
    .cf-foot-status.is-open .cf-foot-dot:after { animation: none; }
}

@media (max-width: 991.98px) {
    .cf-foot-visit {
        margin-top: 40px;
    }
}
