/* FCTTN Merch Widget — fcttn-merch-widget.css */

.fcttn-embed *,
.fcttn-embed *::before,
.fcttn-embed *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.fcttn-embed {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    padding: 1.5rem;
    max-width: 100%;
    background: #111;
    border-radius: 16px;
    color: #fff;
}

/* ── Header ── */
.fcttn-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.fcttn-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fcttn-logo {
    height: 28px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.fcttn-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.fcttn-sub {
    font-size: 11px;
    color: #888;
    line-height: 1.3;
    margin-top: 2px;
}

.fcttn-view-all {
    font-size: 12px;
    color: #aaa !important;
    text-decoration: none !important;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 5px 12px;
    white-space: nowrap;
    transition: border-color 0.15s, color 0.15s;
}

.fcttn-view-all:hover {
    border-color: #7522f6 !important;
    color: #fff !important;
}

/* ── Scroll wrapper ── */
.fcttn-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.fcttn-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* ── Grid ── */
.fcttn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    min-width: 100%;
}

/* ── Cards ── */
.fcttn-card {
    background: #1c1c1c;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s;
    text-decoration: none !important;
    display: block;
    color: inherit;
}

.fcttn-card:hover {
    border-color: #7522f6;
    text-decoration: none !important;
}

/* ── Image ── */
.fcttn-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #222;
    border-radius: 11px 11px 0 0;
}

.fcttn-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    transition: transform 0.3s ease;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
}

.fcttn-card:hover .fcttn-img-wrap img {
    transform: scale(1.03);
}

/* ── Card body ── */
.fcttn-card-body {
    padding: 10px 12px 12px;
}

.fcttn-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    background: #7522f6;
    color: #fff;
    border-radius: 4px;
    padding: 2px 7px;
    margin-bottom: 7px;
    line-height: 1.4;
}

.fcttn-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
    line-height: 1.3;
}

.fcttn-price {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    line-height: 1.3;
}

.fcttn-btn {
    display: block;
    width: 100%;
    padding: 8px 0;
    background: #7522f6;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    line-height: 1.4;
    transition: background 0.15s;
}

.fcttn-btn:hover {
    background: #8f3fff;
    color: #fff !important;
    text-decoration: none !important;
}

/* ── Footer ── */
.fcttn-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.fcttn-footer-note {
    font-size: 11px;
    color: #666;
}

.fcttn-footer-note strong {
    color: #aaa;
    font-weight: 600;
}

.fcttn-join {
    font-size: 11px;
    color: #7522f6 !important;
    text-decoration: none !important;
    transition: color 0.15s;
}

.fcttn-join:hover {
    color: #8f3fff !important;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .fcttn-grid {
        grid-template-columns: repeat(3, 200px);
    }

    .fcttn-img-wrap {
        height: 160px;
    }

    .fcttn-embed {
        padding: 1rem;
        border-radius: 12px;
    }
}
