/* ==========================================================================
   THUNDER HOST — VISITOR THEME — CART, FOOTER, MISC
   ========================================================================== */

.th-cart-table {
    background: #fff;
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius);
    overflow: hidden;
}
.th-cart-table table { width: 100%; margin: 0; border-collapse: collapse; }
.th-cart-table th { background: var(--th-soft-2); padding: 1rem; text-align: left; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--th-muted); }
.th-cart-table td { padding: 1.25rem 1rem; border-top: 1px solid var(--th-border); vertical-align: middle; }
.th-cart-summary { background: #fff; border: 1px solid var(--th-border); border-radius: var(--th-radius); padding: 1.75rem; }
.th-cart-summary-row { display: flex; justify-content: space-between; padding: .65rem 0; font-size: .95rem; }
.th-cart-summary-row.total { border-top: 1px solid var(--th-border); margin-top: .5rem; padding-top: 1rem; font-size: 1.1rem; font-weight: 800; color: var(--th-ink); }

.th-empty-state { text-align: center; padding: 4rem 1rem; }
.th-empty-state svg { width: 64px; height: 64px; color: var(--th-muted); margin-bottom: 1rem; }
.th-empty-state h3 { margin-bottom: .5rem; }
.th-empty-state p { color: var(--th-muted); margin-bottom: 1.5rem; }

/* Footer */
.th-footer { background: var(--th-ink); color: #94a3b8; padding: 4rem 0 0; margin-top: 4rem; }
.th-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}
@media (max-width: 991.98px) { .th-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .th-footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.th-footer-grid > * { min-width: 0; }
.th-footer-brand { color: #cbd5e1; }
.th-footer-brand p { color: #94a3b8; font-size: .9rem; line-height: 1.7; margin: 1rem 0 1.25rem; }
.th-footer h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 1.1rem; text-transform: uppercase; letter-spacing: .04em; }
.th-footer-links { list-style: none; padding: 0; margin: 0; }
.th-footer-links li { margin-bottom: .6rem; }
.th-footer-links a { color: #94a3b8; font-size: .9rem; transition: all .15s ease; display: inline-flex; align-items: center; gap: .35rem; }
.th-footer-links a:hover { color: #fff; padding-left: 4px; }
.th-footer-contact { color: #94a3b8; font-size: .9rem; line-height: 1.7; }
.th-footer-contact a { color: #cbd5e1; }
.th-footer-contact a:hover { color: #fff; }
.th-footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.th-footer-social a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.06);
    color: #cbd5e1;
    border-radius: 8px;
    transition: all .2s ease;
}
.th-footer-social a:hover { background: var(--th-primary); color: #fff; }
.th-footer-social svg { width: 18px; height: 18px; }
.th-footer-newsletter { display: flex; gap: .5rem; margin-top: 1rem; }
.th-footer-newsletter input {
    flex: 1 1 auto;
    min-width: 0;
    padding: .6rem .9rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    border-radius: 8px;
    font-size: .9rem;
    box-sizing: border-box;
    width: 100%;
}
.th-footer-newsletter input::placeholder { color: #64748b; }
.th-footer-newsletter input:focus { outline: none; border-color: var(--th-primary); background: rgba(255,255,255,.1); }
.th-footer-newsletter button {
    flex-shrink: 0;
    padding: .6rem 1rem;
    background: var(--th-primary);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    white-space: nowrap;
}
.th-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: #64748b;
    font-size: .82rem;
}
.th-footer-bottom a { color: #94a3b8; }
.th-footer-bottom a:hover { color: #fff; }
.th-footer-payments { display: flex; gap: .5rem; align-items: center; }
.th-footer-payments .pmt {
    height: 24px; min-width: 36px;
    padding: 0 .4rem;
    background: rgba(255,255,255,.06);
    border-radius: 4px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .65rem; font-weight: 800; color: #cbd5e1;
    letter-spacing: .04em;
}

/* Cookie banner */
.th-cookie-banner {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 680px;
    background: var(--th-ink);
    color: #cbd5e1;
    padding: 1rem 1.25rem;
    border-radius: var(--th-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,.3);
    z-index: 9999;
    display: none;
    align-items: center;
    gap: .75rem;
    flex-wrap: nowrap;
    box-sizing: border-box;
}
.th-cookie-banner.show { display: flex; }
.th-cookie-banner p { margin: 0; flex: 1 1 auto; font-size: .9rem; min-width: 0; }
.th-cookie-banner a { color: var(--th-primary-light); }
.th-cookie-banner .th-btn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 575.98px) {
    .th-cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        bottom: .75rem;
    }
    .th-cookie-banner .th-btn { width: 100%; justify-content: center; }
}

.toast-container { z-index: 1080 !important; }

.th-loader {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid var(--th-border);
    border-top-color: var(--th-primary);
    border-radius: 50%;
    animation: th-spin .7s linear infinite;
}
.th-loader-lg { width: 36px; height: 36px; border-width: 3px; }
@keyframes th-spin { to { transform: rotate(360deg); } }

/* Alert component */
.th-alert {
    padding: .85rem 1.1rem;
    border-radius: var(--th-radius-sm);
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}
.th-alert-danger {
    background: rgba(220,38,38,.07);
    border-color: rgba(220,38,38,.25);
    color: #b91c1c;
}
.th-alert-success {
    background: rgba(16,185,129,.07);
    border-color: rgba(16,185,129,.25);
    color: #065f46;
}
