@import url('/css/variables.css');

/* ============================================================
   Smartmart 商品一覧 — MacClaw-inspired カードグリッド
   ============================================================ */

/* ─── Section / Container ───────────────────────────── */
.pl-section {
    padding: 24px 0 80px;
    min-height: 60vh;
}

.pl-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Breadcrumb ────────────────────────────────────── */
.pl-breadcrumb {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pl-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.pl-breadcrumb a:hover {
    color: var(--primary-color);
}

.pl-breadcrumb-sep {
    margin: 0 8px;
    color: var(--text-light);
}

.pl-breadcrumb span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* ─── Page Header ───────────────────────────────────── */
.pl-header {
    margin-bottom: 24px;
}

.pl-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.pl-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─── Features Row ──────────────────────────────────── */
.pl-features-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.pl-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.pl-feature-badge i {
    color: var(--primary-color);
    font-size: 13px;
}

/* ─── Product Grid ──────────────────────────────────── */
.pl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

/* ─── Product Card ──────────────────────────────────── */
.pl-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.pl-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

/* ─── Card Image ────────────────────────────────────── */
.pl-card-image {
    background: var(--bg-tertiary);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pl-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s;
}

.pl-card:hover .pl-card-image img {
    transform: scale(1.05);
}

.pl-card-placeholder {
    font-size: 48px;
    color: var(--text-light);
    opacity: 0.3;
}

/* ─── Card Body ─────────────────────────────────────── */
.pl-card-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pl-card-brand {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.pl-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.pl-card-price-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.pl-card-price-label {
    font-size: 11px;
    color: var(--text-light);
}

.pl-card-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.3px;
}

.pl-card-cta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 12px;
    transition: gap 0.2s;
}

.pl-card-cta i {
    font-size: 11px;
}

.pl-card:hover .pl-card-cta {
    gap: 8px;
}

/* ─── CTA Banner ────────────────────────────────────── */
.pl-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
}

.pl-cta-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.pl-cta-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.pl-cta-actions {
    flex-shrink: 0;
}

/* ─── Buttons ───────────────────────────────────────── */
.pl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.pl-btn-primary {
    background: #fff;
    color: var(--primary-color);
}

.pl-btn-primary:hover {
    background: var(--bg-secondary);
    color: var(--primary-dark);
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
    .pl-section {
        padding: 16px 0 60px;
    }

    .pl-title {
        font-size: 22px;
    }

    .pl-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pl-card-image {
        height: 160px;
    }

    .pl-card-body {
        padding: 12px 14px 16px;
    }

    .pl-card-name {
        font-size: 13px;
    }

    .pl-card-price {
        font-size: 17px;
    }

    .pl-features-row {
        gap: 8px;
    }

    .pl-feature-badge {
        padding: 6px 12px;
        font-size: 12px;
    }

    .pl-cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
        gap: 20px;
    }

    .pl-cta-actions {
        width: 100%;
    }

    .pl-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pl-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pl-card-image {
        height: 130px;
    }

    .pl-card-price {
        font-size: 15px;
    }
}
