
/* =========================
   SHOP PAGE (CENTER FINAL)
========================= */

.shop {
    width: 100%;
    min-height: 400px;

    display: flex;
    flex-direction: column;

    align-items: center;   /* ⭐ 전체 가운데 정렬 */
    justify-content: flex-start;

    background: linear-gradient(
            to bottom,
            #f8fafc,
            #ffffff
    );
}

/* =========================
   HEADER AREA
========================= */

.shop-box {
    width: 100%;
    max-width: 1200px;

    display: flex;
    flex-direction: column;

    align-items: center;   /* ⭐ 텍스트 + 버튼 중앙 */
    text-align: center;

    padding: 60px 20px 20px 20px;
    gap: 12px;
}

/* TITLE */
.shop-title {
    font-size: 56px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

/* SUBTITLE */
.shop-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* =========================
   FILTER BUTTONS
========================= */

.shop-buttons {
    display: flex;
    justify-content: center;  /* ⭐ 가운데 정렬 */
    flex-wrap: wrap;

    gap: 10px;
    margin-top: 10px;
}

.shop-btn {
    padding: 10px 18px;

    border: 1px solid #e5e7eb;
    border-radius: 999px;

    background: white;
    color: #0f172a;

    cursor: pointer;

    font-weight: 600;

    transition: 0.2s;
}

.shop-btn:hover {
    background: #0f172a;
    color: white;
}

.shop-btn.active {
    background: #0f172a;
    color: white;
}

/* =========================
   PRODUCT GRID
========================= */

.shop-list {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;

    padding: 40px 20px;
    box-sizing: border-box;
}

/* ITEM */
.shop-item {
    display: flex;
    justify-content: center;
}

/* CARD */
.shop-card {
    width: 100%;
    max-width: 220px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    cursor: pointer;
    transition: 0.2s;
}

/* hover */
.shop-card:hover {
    transform: translateY(-4px);
}

/* IMAGE */
.shop-card img {
    width: 100%;
    height: 180px;

    object-fit: cover;
    border-radius: 10px;
}

/* TEXT */
.shop-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-name {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
}

.shop-price {
    font-size: 13px;
    color: #666;
}

/* =========================
   SHOP PAGE Mobile Responsive
========================= */
@media (max-width: 768px) {

    .shop-box {
        padding: 40px 15px 10px;
        gap: 8px;
    }

    .shop-title {
        font-size: 32px;
    }

    .shop-subtitle {
        font-size: 14px;
    }

    .shop-buttons {
        gap: 8px;
    }

    .shop-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    /* ===== PRODUCT GRID ===== */

    .shop-list {
        grid-template-columns: repeat(2, 1fr); /* 핵심: 2열 */
        gap: 14px;
        padding: 25px 15px;
    }

    .shop-card {
        max-width: 100%;
    }

    .shop-card img {
        height: 140px;
    }

    .shop-name {
        font-size: 13px;
    }

    .shop-price {
        font-size: 12px;
    }

    /* hover 제거 (모바일 UX 최적화) */
    .shop-card:hover {
        transform: none;
    }
}